//
// ShareLevelSettingsLayer::onClose from 0x7f25c4 to 0x7f2658 (148 bytes)
//
// 4 xrefs:
// > ShareLevelSettingsLayer::keyBackClicked @ 0x7f2664
// > ??> @ 0x92020
// > ShareLevelSettingsLayer::init @ 0x7f2ea8
// > ??> @ 0x1543ea0
//
// 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:54:36 +0000
//
__int64 __fastcall ShareLevelSettingsLayer::onClose(ShareLevelSettingsLayer *this, cocos2d::CCObject *a2)
{
__int64 v3; // x20
ShareLevelLayer *v4; // x0
int v6; // w0
v3 = *((_QWORD *)this + 85);
if ( *(_DWORD *)(v3 + 980) - *(_DWORD *)(v3 + 984) == -1 )
{
v6 = (int)(float)((float)((float)rand() * 4.6566e-10) * 1000.0);
*(_DWORD *)(v3 + 984) = v6;
*(_DWORD *)(v3 + 980) = v6 + 1;
}
v4 = *((ShareLevelLayer **)this + 88);
if ( v4 )
ShareLevelLayer::updateNotifyToggles(v4);
(*(void (__fastcall **)(ShareLevelSettingsLayer *, _QWORD))(*(_QWORD *)this + 1072LL))(this, 0);
return (*(__int64 (__fastcall **)(ShareLevelSettingsLayer *, __int64))(*(_QWORD *)this + 528LL))(this, 1);
}