//
// WorldSelectLayer::onGarage from 0xaa5c94 to 0xaa5ce0 (76 bytes)
//
// 3 xrefs:
// > ??> @ 0xe8d68
// > WorldSelectLayer::init @ 0xaa809c
// > ??> @ 0x1547068
//
// 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 13:00:51 +0000
//
__int64 __fastcall WorldSelectLayer::onGarage(WorldSelectLayer *this, cocos2d::CCObject *a2)
{
__int64 result; // x0
GJGarageLayer *v3; // x19
AppDelegate *v4; // x0
cocos2d::CCScene *v5; // x1
cocos2d::CCScene *v6; // x0
GameManager *v7; // x0
result = *((unsigned __int8 *)this + 464);
if ( !(_DWORD)result )
{
v3 = (GJGarageLayer *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)result);
v4 = GJGarageLayer::scene(v3);
v6 = (cocos2d::CCScene *)cocos2d::CCTransitionMoveInT::create(v4, 0.5, v5);
v7 = (GameManager *)cocos2d::CCDirector::pushScene(v3, v6);
result = GameManager::sharedState(v7);
*(_BYTE *)(result + 1080) = 1;
}
return result;
}