//
// MenuLayer::willClose from 0x1003036cc to 0x10030370c (64 bytes)
//
// 4 xrefs:
// > sub_10030364C @ 0x1003036b4
// > MenuLayer::onPlay @ 0x100304cd8
// > MenuLayer::onGarage @ 0x100304d2c
// > MenuLayer::onCreator @ 0x100304d7c
//
// 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 11:03:06 +0000
//
__int64 __fastcall MenuLayer::willClose(__int64 a1)
{
_QWORD *v2; // x0
__int64 result; // x0
v2 = GooglePlayManager::sharedState();
if ( v2[40] == a1 + 416 )
{
v2 = GooglePlayManager::sharedState();
v2[40] = 0;
}
result = GameManager::sharedState(v2);
*(_BYTE *)(result + 584) = 0;
return result;
}