//
// sub_10007C5C0 from 0x10007c5c0 to 0x10007c66c (172 bytes)
//
// 4 xrefs:
// > SecretLayer5::dSecretLayer5 @ 0x10007c670
// > sub_10007C674 @ 0x10007c678
// > sub_10007C67C @ 0x10007c684
// > sub_10007C690 @ 0x10007c69c
//
// 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 10:58:15 +0000
//
__int64 __fastcall sub_10007C5C0(__int64 a1)
{
__int64 v2; // x0
__int64 v3; // x0
void *v4; // x0
*(_QWORD *)a1 = off_1008C6298;
*(_QWORD *)(a1 + 320) = off_1008C6760;
*(_QWORD *)(a1 + 328) = &off_1008C67D0;
*(_QWORD *)(a1 + 336) = off_1008C67E8;
*(_QWORD *)(a1 + 344) = &off_1008C6808;
*(_QWORD *)(a1 + 352) = off_1008C6830;
*(_QWORD *)(a1 + 408) = off_1008C6860;
*(_QWORD *)(a1 + 416) = &off_1008C68A8;
*(_QWORD *)(a1 + 424) = &off_1008C68C0;
*(_QWORD *)(a1 + 432) = off_1008C68D8;
v2 = *(_QWORD *)(a1 + 504);
if ( v2 )
v2 = cocos2d::CCObject::release(v2);
v3 = GameLevelManager::sharedState(v2);
if ( *(_QWORD *)(v3 + 1416) == a1 + 432 )
*(_QWORD *)(GameLevelManager::sharedState(v3) + 1416) = 0;
v4 = *(void **)(a1 + 592);
if ( v4 )
{
*(_QWORD *)(a1 + 600) = v4;
operator delete(v4);
}
if ( *(char *)(a1 + 543) < 0 )
operator delete(*(void **)(a1 + 520));
return cocos2d::CCLayer::dCCLayer(a1);
}