//
// GauntletSelectLayer::dGauntletSelectLayer from 0x1001be4d0 to 0x1001be57c (172 bytes)
//
// 4 xrefs:
// > j_GauntletSelectLayer::dGauntletSelectLayer @ 0x1001be580
// > sub_1001BE584 @ 0x1001be588
// > sub_1001BE58C @ 0x1001be594
// > sub_1001BE5A0 @ 0x1001be5ac
//
// 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; // x0
*(_QWORD *)a1 = off_1007B6558;
*(_QWORD *)(a1 + 320) = off_1007B6A00;
*(_QWORD *)(a1 + 328) = &off_1007B6A70;
*(_QWORD *)(a1 + 336) = off_1007B6A88;
*(_QWORD *)(a1 + 344) = &off_1007B6AA8;
*(_QWORD *)(a1 + 352) = off_1007B6AC8;
*(_QWORD *)(a1 + 408) = off_1007B6AF0;
*(_QWORD *)(a1 + 416) = off_1007B6B20;
*(_QWORD *)(a1 + 424) = off_1007B6B58;
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);
}