//
// SecretRewardsLayer::scene from 0x6cf470 to 0x6cf496 (38 bytes)
//
// 2 xrefs:
// > CreatorLayer::onTreasureRoom @ 0x493fa8
// > GJShopLayer::onBack @ 0x611442
//
// 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:57:02 +0000
//
AppDelegate *__fastcall SecretRewardsLayer::scene(SecretRewardsLayer *this, bool a2)
{
AppDelegate *v3; // r4
bool v4; // r1
cocos2d::CCLayer *v5; // r0
v3 = (AppDelegate *)cocos2d::CCScene::create(this);
*(_DWORD *)(AppDelegate::get(v3) + 12) = v3;
v5 = SecretRewardsLayer::create(this, v4);
(*(void (__fastcall **)(AppDelegate *, cocos2d::CCLayer *))(*(_DWORD *)v3 + 228))(v3, v5);
return v3;
}