//
// KeybindingsSettingsPopup::onEntry from 0x796e30 to 0x796e8e (94 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:59:46 +0000
//
int __fastcall KeybindingsSettingsPopup::onEntry(KeybindingsSettingsPopup *this, cocos2d::CCObject *a2)
{
int result; // r0
int v5; // r3
int v6; // r3
KeybindingsSettingsPopup *v7; // r2
int (__fastcall *v8)(char *, cocos2d::CCObject *); // r4
int v9; // r7
int v10; // r0
result = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2);
if ( result >= 0 )
{
v5 = *((_DWORD *)this + 132);
if ( result < -1431655765 * ((*((_DWORD *)this + 133) - v5) >> 3) )
{
v6 = v5 + 24 * result;
v7 = *(KeybindingsSettingsPopup **)(v6 + 8);
v8 = *(int (__fastcall **)(char *, cocos2d::CCObject *))(v6 + 12);
if ( !v7 )
v7 = this;
v9 = *(unsigned __int8 *)(v6 + 20);
v10 = *(int *)(v6 + 16) >> 1;
if ( (*(_DWORD *)(v6 + 16) & 1) != 0 )
v8 = *(int (__fastcall **)(char *, cocos2d::CCObject *))((char *)v8 + *(_DWORD *)((char *)v7 + v10));
result = v8((char *)v7 + v10, a2);
if ( v9 )
return KeybindingsSettingsPopup::onClose(this, nullptr);
}
}
return result;
}