//
// SecretRewardsLayer::create from 0x10070cba0 to 0x10070ccb1 (273 bytes)
//
// 1 xrefs:
// > SecretRewardsLayer::scene @ 0x10070cb7c
//
// This function is hookable on this platform (idp: pc, 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:36:04 +0000
//
char *__fastcall SecretRewardsLayer::create(unsigned __int8 a1)
{
char *v1; // rbx
v1 = (char *)operator new(0x258u);
cocos2d::CCLayer::CCLayer((__int64)v1);
*(_QWORD *)v1 = off_100B99540;
*((_QWORD *)v1 + 40) = off_100B999E0;
*((_QWORD *)v1 + 41) = &off_100B99A50;
*((_QWORD *)v1 + 42) = off_100B99A68;
*((_QWORD *)v1 + 43) = off_100B99A88;
*((_QWORD *)v1 + 44) = off_100B99AB0;
*((_QWORD *)v1 + 51) = &off_100B99AE0;
*((_QWORD *)v1 + 52) = off_100B99AF8;
*((_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 ( (unsigned __int8)SecretRewardsLayer::init(v1, a1) )
{
cocos2d::CCObject::autorelease((__int64)v1);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v1 + 16LL))(v1);
return nullptr;
}
return v1;
}