//
// KeybindingsLayer::onClose from 0x58917e to 0x5891ae (48 bytes)
//
// 1 xrefs:
// > LevelBindingsLayer::onClose @ 0x797ec0
//
// 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:53:00 +0000
//
GameSettingsLayer *__fastcall KeybindingsLayer::onClose(KeybindingsLayer *this, cocos2d::CCObject *a2)
{
int v3; // r0
GameSettingsLayer *result; // r0
v3 = *((_DWORD *)this + 191);
if ( v3 )
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v3 + 580))(v3, 0);
SetupTriggerPopup::onClose(this, a2);
result = *((GameSettingsLayer **)this + 188);
if ( result )
return (GameSettingsLayer *)GameSettingsLayer::toggleVisibility(result, 1);
return result;
}