//
// MenuLayer::onGarage from 0x100304d14 to 0x100304d64 (80 bytes)
//
// 2 xrefs:
// > MenuLayer::keyDown @ 0x100305968
// > MenuLayer::init @ 0x100303a54
//
// 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:07 +0000
//
__int64 __fastcall MenuLayer::onGarage(__int64 result)
{
__int64 v1; // x0
__int64 v2; // x19
__int64 v3; // x0
char *v4; // x0
if ( (*(_BYTE *)(result + 432) & 1) == 0 )
{
v1 = MenuLayer::willClose(result);
*(_BYTE *)(GameManager::sharedState(v1) + 927) = 1;
v2 = cocos2d::CCDirector::sharedDirector();
v3 = GJGarageLayer::scene(v2);
v4 = cocos2d::CCTransitionFade::create_1(v3, 0.5);
return cocos2d::CCDirector::replaceScene(v2, v4);
}
return result;
}