//
// sub_1002CE174 from 0x1002ce174 to 0x1002ce1f0 (124 bytes)
//
// 4 xrefs:
// > GauntletLayer::dGauntletLayer @ 0x1002ce1f4
// > sub_1002CE1F8 @ 0x1002ce1fc
// > sub_1002CE200 @ 0x1002ce208
// > sub_1002CE214 @ 0x1002ce220
//
// 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 11:02:36 +0000
//
__int64 __fastcall sub_1002CE174(_QWORD *a1)
{
_DWORD *v2; // x0
*a1 = off_10091EF60;
a1[40] = off_10091F400;
a1[41] = &off_10091F470;
a1[42] = off_10091F488;
a1[43] = &off_10091F4A8;
a1[44] = off_10091F4D0;
a1[51] = off_10091F500;
if ( *(_QWORD **)(GameLevelManager::sharedState() + 1224) == a1 + 51 )
*(_QWORD *)(GameLevelManager::sharedState() + 1224) = 0;
v2 = (_DWORD *)a1[58];
if ( v2 )
cocos2d::CCObject::release(v2);
return cocos2d::CCLayer::dCCLayer(a1);
}