//
// SecretRewardsLayer::create from 0x10062ff70 to 0x100630081 (273 bytes)
//
// 1 xrefs:
// > SecretRewardsLayer::scene @ 0x10062ff4c
//
// 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 *__fastcall SecretRewardsLayer::create(bool a1)
{
char *v1; // rbx
v1 = (char *)operator new(0x258u);
cocos2d::CCLayer::CCLayer((__int64)v1);
*(_QWORD *)v1 = off_1009857D0;
*((_QWORD *)v1 + 40) = off_100985C60;
*((_QWORD *)v1 + 41) = &off_100985CD0;
*((_QWORD *)v1 + 42) = off_100985CE8;
*((_QWORD *)v1 + 43) = off_100985D08;
*((_QWORD *)v1 + 44) = off_100985D28;
*((_QWORD *)v1 + 51) = &off_100985D50;
*((_QWORD *)v1 + 52) = off_100985D68;
*((_QWORD *)v1 + 56) = 0;
*((_QWORD *)v1 + 58) = 0;
*((_QWORD *)v1 + 66) = 0;
*((_DWORD *)v1 + 135) = 0;
*((_QWORD *)v1 + 69) = 0;
*(_QWORD *)(v1 + 588) = 0;
*(_OWORD *)(v1 + 424) = 0;
*(_OWORD *)(v1 + 568) = 0;
v1[584] = 0;
if ( SecretRewardsLayer::init((SecretRewardsLayer *)v1, a1) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v1);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v1 + 16LL))(v1);
return nullptr;
}
return (SecretRewardsLayer *)v1;
}