//
// sub_10059E390 from 0x10059e390 to 0x10059e48b (251 bytes)
//
// 4 xrefs:
// > GauntletSelectLayer::dGauntletSelectLayer @ 0x10059e4a5
// > sub_10059E4B0 @ 0x10059e4bc
// > sub_10059E4D0 @ 0x10059e4d9
// > sub_10059E4F0 @ 0x10059e503
//
// 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:32:32 +0000
//
__int64 __fastcall sub_10059E390(_QWORD *a1)
{
_DWORD *v2; // rdi
*a1 = off_100B71F40;
a1[40] = off_100B723F8;
a1[41] = &off_100B72468;
a1[42] = off_100B72480;
a1[43] = off_100B724A0;
a1[44] = off_100B724C8;
a1[51] = off_100B724F8;
a1[52] = off_100B72528;
a1[53] = off_100B72560;
if ( *(_QWORD **)(GameLevelManager::sharedState() + 1224) == a1 + 52 )
*(_QWORD *)(GameLevelManager::sharedState() + 1224) = 0;
if ( *(_QWORD **)(GameManager::sharedState() + 1296) == a1 + 53 )
*(_QWORD *)(GameManager::sharedState() + 1296) = 0;
*(_DWORD *)(GameManager::sharedState() + 1716) = 0;
v2 = (_DWORD *)a1[62];
if ( v2 )
cocos2d::CCObject::release(v2);
return sub_1004A9420(a1);
}