//
// MoreOptionsLayer::onClose from 0x52db0c to 0x52db7e (114 bytes)
//
// 1 xrefs:
// > MoreOptionsLayer::keyBackClicked @ 0x52db86
//
// 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:52:02 +0000
//
int __fastcall MoreOptionsLayer::onClose(MoreOptionsLayer *this, cocos2d::CCObject *a2)
{
FMODAudioEngine *v3; // r0
int v4; // r7
char *v5; // r0
char v7; // [sp+0h] [bp-14h] BYREF
char v8; // [sp+1h] [bp-13h] BYREF
char *v9; // [sp+8h] [bp-Ch]
v3 = (FMODAudioEngine *)(*(int (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 139) + 580))(
*((_DWORD *)this + 139),
0);
v4 = FMODAudioEngine::sharedEngine(v3);
CCTextInputNode::getString((CCTextInputNode *)&v7, *((_DWORD *)this + 139));
if ( (v7 & 1) != 0 )
v5 = v9;
else
v5 = &v8;
*(_DWORD *)(v4 + 400) = atoi(v5);
std::string::~string((int)&v7);
(*(void (__fastcall **)(MoreOptionsLayer *, _DWORD))(*(_DWORD *)this + 536))(this, 0);
return (*(int (__fastcall **)(MoreOptionsLayer *, int))(*(_DWORD *)this + 264))(this, 1);
}