//
// SecretRewardsLayer::create from 0xa64244 to 0xa64348 (260 bytes)
//
// 2 xrefs:
// > SecretRewardsLayer::scene @ 0xa6436c
// > ??> @ 0x9b628
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
SecretRewardsLayer *SecretRewardsLayer::create(bool a1)
{
__int64 v2; // x19
v2 = operator new(0x258u);
cocos2d::CCLayer::CCLayer((cocos2d::CCLayer *)v2);
*(_QWORD *)(v2 + 424) = 0;
*(_QWORD *)v2 = &off_11ECD10;
*(_QWORD *)(v2 + 320) = off_11ED1A0;
*(_QWORD *)(v2 + 328) = &off_11ED210;
*(_QWORD *)(v2 + 336) = &off_11ED228;
*(_QWORD *)(v2 + 344) = &off_11ED248;
*(_QWORD *)(v2 + 352) = off_11ED268;
*(_QWORD *)(v2 + 408) = &off_11ED290;
*(_QWORD *)(v2 + 416) = &off_11ED2A8;
*(_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 ( SecretRewardsLayer::init((SecretRewardsLayer *)v2, a1) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
return (SecretRewardsLayer *)v2;
}
else
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v2 + 16LL))(v2);
return nullptr;
}
}