//
// GJGarageLayer::onShop from 0x50ae54 to 0x50ae8a (54 bytes)
//
// 0 xrefs:
//
// 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:51:27 +0000
//
int __fastcall GJGarageLayer::onShop(GJGarageLayer *this, cocos2d::CCObject *a2)
{
cocos2d::CCDirector *v3; // r5
float v4; // r0
cocos2d::CCScene *v5; // r2
cocos2d::CCScene *v6; // r0
int result; // r0
v3 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(this);
v4 = GJShopLayer::scene(0);
v6 = (cocos2d::CCScene *)cocos2d::CCTransitionMoveInT::create((cocos2d::CCTransitionMoveInT *)0x3F000000, v4, v5);
result = cocos2d::CCDirector::replaceScene(v3, v6);
if ( result )
return (*(int (__fastcall **)(GJGarageLayer *, _DWORD))(*(_DWORD *)this + 536))(this, 0);
return result;
}