//
// MoreOptionsLayer::onClose from 0x10087e960 to 0x10087e9f7 (151 bytes)
//
// 3 xrefs:
// > MoreOptionsLayer::keyBackClicked @ 0x10087fce5
// > sub_10087FCF0 @ 0x10087fcfc
// > MoreOptionsLayer::init @ 0x10087db2e
//
// This function is hookable on this platform (idp: pc, 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:36:56 +0000
//
__int64 __fastcall MoreOptionsLayer::onClose(__int64 *a1)
{
__int64 v1; // r14
char *v2; // r15
char *v4[2]; // [rsp+0h] [rbp-30h] BYREF
char *v5; // [rsp+10h] [rbp-20h]
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1[91] + 1160LL))(a1[91], 0);
v1 = FMODAudioEngine::sharedEngine();
CCTextInputNode::getString(v4, a1[91]);
if ( ((__int64)v4[0] & 1) != 0 )
{
v2 = v5;
*(_DWORD *)(v1 + 548) = atoi(v5);
operator delete(v2);
}
else
{
*(_DWORD *)(v1 + 548) = atoi((const char *)v4 + 1);
}
(*(void (__fastcall **)(__int64 *, _QWORD))(*a1 + 1072))(a1, 0);
return (*(__int64 (__fastcall **)(__int64 *, __int64))(*a1 + 528))(a1, 1);
}