//
// MenuLayer::willClose from 0x6eae70 to 0x6eaec4 (84 bytes)
//
// 5 xrefs:
// > MenuLayer::~MenuLayer @ 0x6eaf3c
// > MenuLayer::onPlay @ 0x6eafa4
// > MenuLayer::onCreator @ 0x6eb000
// > MenuLayer::onGarage @ 0x6eb058
// > ??> @ 0xa5490
//
// 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:51:45 +0000
//
__int64 __fastcall MenuLayer::willClose(MenuLayer *this)
{
GooglePlayManager *v2; // x0
__int64 result; // x0
v2 = *(GooglePlayManager **)(GooglePlayManager::sharedState(this) + 320);
if ( v2 == (MenuLayer *)((char *)this + 416) )
{
v2 = (GooglePlayManager *)GooglePlayManager::sharedState(v2);
*((_QWORD *)v2 + 40) = 0;
}
result = GameManager::sharedState(v2);
*(_BYTE *)(result + 584) = 0;
return result;
}