//
// KeybindingsLayer::onSettings from 0x994cdc to 0x994df4 (280 bytes)
//
// 3 xrefs:
// > ??> @ 0x7d7d0
// > KeybindingsLayer::init @ 0x9979ac
// > ??> @ 0x15433a8
//
// 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 12:58:01 +0000
//
__int64 __fastcall KeybindingsLayer::onSettings(KeybindingsLayer *this, cocos2d::CCObject *a2)
{
__int64 v3; // x20
void *v5; // [xsp+30h] [xbp+30h] BYREF
char *v6; // [xsp+38h] [xbp+38h]
(*(void (__fastcall **)(void **__return_ptr))(*(_QWORD *)this + 1552LL))(&v5);
v3 = KeybindingsSettingsPopup::create(this, &v5);
if ( v5 )
{
if ( v5 != v6 )
v6 += -48 * ((0xAAAAAAAAAAAAAABLL * ((unsigned __int64)(v6 - 48 - (_BYTE *)v5) >> 4)) & 0xFFFFFFFFFFFFFFFLL) - 48;
operator delete(v5);
}
if ( v3 )
(*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 1312LL))(v3);
return _stack_chk_guard;
}