//
// SecretLayer5::dSecretLayer5 from 0x100073e10 to 0x100073ebc (172 bytes)
//
// 4 xrefs:
// > j_SecretLayer5::dSecretLayer5 @ 0x100073ec0
// > sub_100073EC4 @ 0x100073ec8
// > sub_100073ECC @ 0x100073ed4
// > sub_100073EE0 @ 0x100073eec
//
// 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
//
__int64 __fastcall SecretLayer5::dSecretLayer5(__int64 a1)
{
cocos2d::CCObject *v2; // x0
void *v3; // x0
*(_QWORD *)a1 = off_100779CB8;
*(_QWORD *)(a1 + 320) = off_10077A170;
*(_QWORD *)(a1 + 328) = &off_10077A1E0;
*(_QWORD *)(a1 + 336) = off_10077A1F8;
*(_QWORD *)(a1 + 344) = &off_10077A218;
*(_QWORD *)(a1 + 352) = off_10077A238;
*(_QWORD *)(a1 + 408) = off_10077A260;
*(_QWORD *)(a1 + 416) = &off_10077A2A8;
*(_QWORD *)(a1 + 424) = &off_10077A2C0;
*(_QWORD *)(a1 + 432) = off_10077A2D8;
v2 = *(cocos2d::CCObject **)(a1 + 504);
if ( v2 )
cocos2d::CCObject::release(v2);
if ( GameLevelManager::sharedState()->m_GJOnlineRewardDelegate == (GJOnlineRewardDelegate *)(a1 + 432) )
GameLevelManager::sharedState()->m_GJOnlineRewardDelegate = nullptr;
v3 = *(void **)(a1 + 592);
if ( v3 )
{
*(_QWORD *)(a1 + 600) = v3;
operator delete(v3);
}
if ( *(char *)(a1 + 543) < 0 )
operator delete(*(void **)(a1 + 520));
return cocos2d::CCLayer::dCCLayer(a1);
}