//
// LevelBindingsLayer::onClose from 0xcf1700 to 0xcf174c (76 bytes)
//
// 2 xrefs:
// > ??> @ 0xd6090
// > ??> @ 0x1504128
//
// 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:45 +0000
//
GameSettingsLayer *__fastcall LevelBindingsLayer::onClose(LevelBindingsLayer *this, cocos2d::CCObject *a2)
{
__int64 v3; // x20
cocos2d::CCObject *v5; // [xsp+28h] [xbp+28h]
if ( *((_BYTE *)this + 1201) )
{
v3 = *((_QWORD *)this + 149);
if ( !*(_BYTE *)(v3 + 32) )
{
v5 = a2;
std::__tree>,std::__map_value_compare>,std::less,true>,std::allocator>>>::clear((_QWORD *)(v3 + 8));
a2 = v5;
*(_BYTE *)(v3 + 32) = 1;
}
}
return KeybindingsLayer::onClose(this, a2);
}