//
// MoreOptionsLayer::onClose from 0x8edc08 to 0x8edcdc (212 bytes)
//
// 4 xrefs:
// > MoreOptionsLayer::keyBackClicked @ 0x8edce0
// > ??> @ 0x4f918
// > MoreOptionsLayer::init @ 0x8f898c
// > ??> @ 0x1541ac0
//
// 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:56:56 +0000
//
__int64 __fastcall MoreOptionsLayer::onClose(MoreOptionsLayer *this, cocos2d::CCObject *a2)
{
FMODAudioEngine *v3; // x0
__int64 v4; // x22
char *v5; // x21
__int64 v7[2]; // [xsp+30h] [xbp+30h] BYREF
char *v8; // [xsp+40h] [xbp+40h]
v3 = (FMODAudioEngine *)(*(__int64 (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 91) + 1160LL))(
*((_QWORD *)this + 91),
0);
v4 = FMODAudioEngine::sharedEngine(v3);
CCTextInputNode::getString(*((CCTextInputNode **)this + 91), v7);
if ( (v7[0] & 1) != 0 )
{
v5 = v8;
*(_DWORD *)(v4 + 548) = atoi(v8);
operator delete(v5);
}
else
{
*(_DWORD *)(v4 + 548) = atoi((const char *)v7 + 1);
}
(*(void (__fastcall **)(MoreOptionsLayer *, _QWORD))(*(_QWORD *)this + 1072LL))(this, 0);
(*(void (__fastcall **)(MoreOptionsLayer *, __int64))(*(_QWORD *)this + 528LL))(this, 1);
return _stack_chk_guard;
}