//
// GJGarageLayer::onShop from 0x140381940 to 0x140381997 (87 bytes)
//
// 3 xrefs:
// > GJGarageLayer::init @ 0x14037c49c
// > ??> @ 0x14092294c
// > ??> @ 0x140922958
//
// This function is hookable on this platform (idp: pc, 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:31:05 +0000
//
char __fastcall GJGarageLayer::onShop(__int64 a1)
{
struct cocos2d::CCScene *v2; // rax
struct cocos2d::CCScene *v3; // rbx
__int64 v4; // rcx
cocos2d::CCDirector *v5; // rax
char result; // al
v2 = (struct cocos2d::CCScene *)GJShopLayer::scene(0);
v3 = cocos2d::CCTransitionMoveInT::create(0.5, v2);
v5 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v4);
result = cocos2d::CCDirector::replaceScene(v5, v3);
if ( result )
return (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 992LL))(a1, 0);
return result;
}