//
// GauntletSelectLayer::dGauntletSelectLayer from 0x100571090 to 0x10057118b (251 bytes)
//
// 4 xrefs:
// > sub_1005711A0 @ 0x1005711a5
// > sub_1005711B0 @ 0x1005711bc
// > sub_1005711D0 @ 0x1005711d9
// > sub_1005711F0 @ 0x100571203
//
// 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 GauntletSelectLayer::dGauntletSelectLayer(__int64 a1)
{
cocos2d::CCObject *v2; // rdi
*(_QWORD *)a1 = off_1009649F0;
*(_QWORD *)(a1 + 320) = off_100964E98;
*(_QWORD *)(a1 + 328) = &off_100964F08;
*(_QWORD *)(a1 + 336) = off_100964F20;
*(_QWORD *)(a1 + 344) = off_100964F40;
*(_QWORD *)(a1 + 352) = off_100964F60;
*(_QWORD *)(a1 + 408) = off_100964F88;
*(_QWORD *)(a1 + 416) = off_100964FB8;
*(_QWORD *)(a1 + 424) = off_100964FF0;
if ( GameLevelManager::sharedState()->m_levelManagerDelegate == (LevelManagerDelegate *)(a1 + 416) )
GameLevelManager::sharedState()->m_levelManagerDelegate = nullptr;
if ( GameManager::sharedState()->m_rewardedVideoDelegate == (RewardedVideoDelegate *)(a1 + 424) )
GameManager::sharedState()->m_rewardedVideoDelegate = nullptr;
GameManager::sharedState()->m_unk664 = 0;
v2 = *(cocos2d::CCObject **)(a1 + 496);
if ( v2 )
cocos2d::CCObject::release(v2);
return cocos2d::CCLayer::dCCLayer((_QWORD *)a1);
}