//
// ShareLevelSettingsLayer::onClose from 0x4a2828 to 0x4a288a (98 bytes)
//
// 1 xrefs:
// > ShareLevelSettingsLayer::keyBackClicked @ 0x4a2892
//
// 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:49:51 +0000
//
int __fastcall ShareLevelSettingsLayer::onClose(ShareLevelSettingsLayer *this, cocos2d::CCObject *a2)
{
int v3; // r5
int v4; // s15
ShareLevelLayer *v5; // r0
v3 = *((_DWORD *)this + 132);
if ( *(_DWORD *)(v3 + 804) - *(_DWORD *)(v3 + 808) == -1 )
{
v4 = (int)(float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0);
*(_DWORD *)(v3 + 808) = v4;
*(_DWORD *)(v3 + 804) = v4 + 1;
}
v5 = *((ShareLevelLayer **)this + 135);
if ( v5 )
ShareLevelLayer::updateNotifyToggles(v5);
(*(void (__fastcall **)(ShareLevelSettingsLayer *, _DWORD))(*(_DWORD *)this + 536))(this, 0);
return (*(int (__fastcall **)(ShareLevelSettingsLayer *, int))(*(_DWORD *)this + 264))(this, 1);
}