//
// SecretRewardsLayer::create from 0xba0c74 to 0xba0d78 (260 bytes)
//
// 2 xrefs:
// > SecretRewardsLayer::scene @ 0xba0d9c
// > ??> @ 0xccc40
//
// 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:02:46 +0000
//
__int64 __fastcall SecretRewardsLayer::create(SecretRewardsLayer *this)
{
unsigned __int8 v1; // w20
__int64 v2; // x19
v1 = (unsigned __int8)this;
v2 = operator new(0x258u);
cocos2d::CCLayer::CCLayer((cocos2d::CCLayer *)v2);
*(_QWORD *)(v2 + 424) = 0;
*(_QWORD *)v2 = &off_14D8E60;
*(_QWORD *)(v2 + 320) = off_14D9300;
*(_QWORD *)(v2 + 328) = &off_14D9370;
*(_QWORD *)(v2 + 336) = off_14D9388;
*(_QWORD *)(v2 + 344) = off_14D93A8;
*(_QWORD *)(v2 + 352) = off_14D93D0;
*(_QWORD *)(v2 + 408) = &off_14D9400;
*(_QWORD *)(v2 + 416) = &off_14D9418;
*(_QWORD *)(v2 + 432) = 0;
*(_QWORD *)(v2 + 448) = 0;
*(_QWORD *)(v2 + 464) = 0;
*(_QWORD *)(v2 + 528) = 0;
*(_DWORD *)(v2 + 540) = 0;
*(_QWORD *)(v2 + 552) = 0;
*(_DWORD *)(v2 + 568) = 0;
*(_DWORD *)(v2 + 572) = 0;
*(_DWORD *)(v2 + 576) = 0;
*(_DWORD *)(v2 + 580) = 0;
*(_BYTE *)(v2 + 584) = 0;
*(_DWORD *)(v2 + 588) = 0;
*(_DWORD *)(v2 + 592) = 0;
if ( (unsigned __int8)SecretRewardsLayer::init((SecretRewardsLayer *)v2, v1) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
return v2;
}
else
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v2 + 16LL))(v2);
return 0;
}
}