//
// KeybindingsLayer::onClose from 0x9950fc to 0x995158 (92 bytes)
//
// 3 xrefs:
// > LevelBindingsLayer::onClose @ 0xcf1748
// > ??> @ 0x9b098
// > ??> @ 0x1474ef8
//
// 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
//
GameSettingsLayer *__fastcall KeybindingsLayer::onClose(KeybindingsLayer *this, cocos2d::CCObject *a2)
{
__int64 v4; // x0
GameSettingsLayer *result; // x0
v4 = *((_QWORD *)this + 139);
if ( v4 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v4 + 1160LL))(v4, 0);
SetupTriggerPopup::onClose(this, a2);
result = *((GameSettingsLayer **)this + 136);
if ( result )
return (GameSettingsLayer *)GameSettingsLayer::toggleVisibility(result, 1);
return result;
}