//
// GJGarageLayer::scene from 0x8b9874 to 0x8b99cc (344 bytes)
//
// 6 xrefs:
// > MenuLayer::onGarage @ 0x6eb070
// > LevelInfoLayer::onGarage @ 0x7e5584
// > GJShopLayer::onBack @ 0xa7cec4
// > GJShopLayer::dialogClosed @ 0xa7d03c
// > WorldSelectLayer::onGarage @ 0xaa5cb0
// > ??> @ 0x4f570
//
// 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:56:26 +0000
//
AppDelegate *__fastcall GJGarageLayer::scene(GJGarageLayer *this)
{
AppDelegate *v1; // x20
__int64 v2; // x19
v1 = (AppDelegate *)cocos2d::CCScene::create(this);
*(_QWORD *)(AppDelegate::get(v1) + 24) = v1;
v2 = operator new(0x268u);
cocos2d::CCLayer::CCLayer((cocos2d::CCLayer *)v2);
*(_QWORD *)(v2 + 472) = 0;
*(_QWORD *)v2 = &off_145A6F0;
*(_QWORD *)(v2 + 320) = off_145ABD0;
*(_QWORD *)(v2 + 328) = &off_145AC40;
*(_QWORD *)(v2 + 336) = off_145AC58;
*(_QWORD *)(v2 + 344) = off_145AC78;
*(_QWORD *)(v2 + 352) = off_145ACA0;
*(_QWORD *)(v2 + 408) = off_145ACD0;
*(_QWORD *)(v2 + 416) = &off_145AD18;
*(_QWORD *)(v2 + 424) = &off_145AD30;
*(_QWORD *)(v2 + 432) = &off_145AD48;
*(_QWORD *)(v2 + 440) = &off_145AD60;
*(_QWORD *)(v2 + 448) = &off_145AD78;
*(_QWORD *)(v2 + 456) = off_145AD98;
*(_QWORD *)(v2 + 496) = 0;
*(_QWORD *)(v2 + 504) = 0;
*(_BYTE *)(v2 + 512) = 0;
*(_QWORD *)(v2 + 528) = 0;
*(_QWORD *)(v2 + 536) = 0;
*(_QWORD *)(v2 + 520) = v2 + 528;
*(_QWORD *)(v2 + 552) = 0;
*(_QWORD *)(v2 + 560) = 0;
*(_QWORD *)(v2 + 568) = 0;
*(_DWORD *)(v2 + 600) = 0;
*(_DWORD *)(v2 + 604) = 0;
*(_BYTE *)(v2 + 608) = 0;
if ( (unsigned __int8)GJGarageLayer::init((GJGarageLayer *)v2) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
(*(void (__fastcall **)(AppDelegate *, __int64))(*(_QWORD *)v1 + 456LL))(v1, v2);
}
else
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v2 + 16LL))(v2);
(*(void (__fastcall **)(AppDelegate *, _QWORD))(*(_QWORD *)v1 + 456LL))(v1, 0);
}
return v1;
}