//
// MenuLayer::willClose from 0x3f9990 to 0x3f99ba (42 bytes)
//
// 4 xrefs:
// > MenuLayer::~MenuLayer @ 0x3f9a24
// > MenuLayer::onPlay @ 0x3f9a62
// > MenuLayer::onCreator @ 0x3f9a9c
// > MenuLayer::onGarage @ 0x3f9ad4
//
// 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:47:19 +0000
//
int __fastcall MenuLayer::willClose(MenuLayer *this)
{
GooglePlayManager *v2; // r0
int result; // r0
v2 = (GooglePlayManager *)GooglePlayManager::sharedState(this);
if ( *((MenuLayer **)v2 + 66) == (MenuLayer *)((char *)this + 320) )
{
v2 = (GooglePlayManager *)GooglePlayManager::sharedState(v2);
*((_DWORD *)v2 + 66) = 0;
}
result = GameManager::sharedState(v2);
*(_BYTE *)(result + 424) = 0;
return result;
}