//
// LevelBindingsLayer::onClose from 0x797ea4 to 0x797edc (56 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
//
GameSettingsLayer *__fastcall LevelBindingsLayer::onClose(LevelBindingsLayer *this, cocos2d::CCObject *a2)
{
int v4; // r4
int v5; // r5
if ( *((_BYTE *)this + 809) )
{
v4 = *((_DWORD *)this + 201);
v5 = *(unsigned __int8 *)(v4 + 16);
if ( !*(_BYTE *)(v4 + 16) )
{
std::__tree>,std::__map_value_compare>,std::less,true>,std::allocator>>>::destroy(
v4 + 4,
*(_DWORD **)(v4 + 8));
*(_DWORD *)(v4 + 12) = v5;
*(_DWORD *)(v4 + 4) = v4 + 8;
*(_DWORD *)(v4 + 8) = v5;
*(_BYTE *)(v4 + 16) = 1;
}
}
return KeybindingsLayer::onClose(this, a2);
}