//
// KeybindingsSettingsPopup::onEntry from 0xcefb0c to 0xcefbc4 (184 bytes)
//
// 3 xrefs:
// > ??> @ 0x61fa8
// > KeybindingsSettingsPopup::init @ 0xcf0374
// > ??> @ 0x1542568
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:06:44 +0000
//
__int64 __fastcall KeybindingsSettingsPopup::onEntry(KeybindingsSettingsPopup *this, cocos2d::CCObject *a2)
{
__int64 result; // x0
__int64 v4; // x2
__int64 v5; // x2
KeybindingsSettingsPopup *v6; // x3
__int64 v7; // x0
__int64 (*v8)(void); // x4
int v9; // w20
result = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2);
if ( (result & 0x80000000) == 0 )
{
v4 = *((_QWORD *)this + 85);
if ( (int)result < (int)(-1431655765 * ((*((_QWORD *)this + 86) - v4) >> 4)) )
{
v5 = v4 + 48LL * (int)result;
v6 = *(KeybindingsSettingsPopup **)(v5 + 16);
v7 = *(_QWORD *)(v5 + 32);
v8 = *(__int64 (**)(void))(v5 + 24);
v9 = *(unsigned __int8 *)(v5 + 40);
if ( !v6 )
v6 = this;
if ( (v7 & 1) != 0 )
v8 = *(__int64 (**)(void))((char *)v8 + *(_QWORD *)((char *)v6 + (v7 >> 1)));
result = v8();
if ( v9 )
return KeybindingsSettingsPopup::onClose(this, nullptr);
}
}
return result;
}