//
// sub_100253F58 from 0x100253f58 to 0x100254004 (172 bytes)
//
// 4 xrefs:
// > GauntletSelectLayer::dGauntletSelectLayer @ 0x100254008
// > sub_10025400C @ 0x100254010
// > sub_100254014 @ 0x10025401c
// > sub_100254028 @ 0x100254034
//
// 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:01:32 +0000
//
__int64 __fastcall sub_100253F58(_QWORD *a1)
{
__int64 v2; // x0
__int64 v3; // x0
_DWORD *v4; // x0
*a1 = off_10090DEB0;
a1[40] = off_10090E368;
a1[41] = &off_10090E3D8;
a1[42] = off_10090E3F0;
a1[43] = &off_10090E410;
a1[44] = off_10090E438;
a1[51] = off_10090E468;
a1[52] = off_10090E498;
a1[53] = off_10090E4D0;
v2 = GameLevelManager::sharedState();
if ( *(_QWORD **)(v2 + 1224) == a1 + 52 )
{
v2 = GameLevelManager::sharedState();
*(_QWORD *)(v2 + 1224) = 0;
}
v3 = GameManager::sharedState(v2);
if ( *(_QWORD **)(v3 + 1296) == a1 + 53 )
{
v3 = GameManager::sharedState(v3);
*(_QWORD *)(v3 + 1296) = 0;
}
*(_DWORD *)(GameManager::sharedState(v3) + 1716) = 0;
v4 = (_DWORD *)a1[62];
if ( v4 )
cocos2d::CCObject::release(v4);
return cocos2d::CCLayer::dCCLayer(a1);
}