//
// CreatorLayer::onGauntlets from 0x1000dbcac to 0x1000dbd2c (128 bytes)
//
// 1 xrefs:
// > CreatorLayer::init @ 0x1000daebc
//
// 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 10:58:59 +0000
//
__int64 __fastcall CreatorLayer::onGauntlets(__int64 a1)
{
__int64 v2; // x0
__int64 v3; // x0
__int64 v4; // x0
__int64 v5; // x19
__int64 v6; // x0
__int64 v7; // x0
__int64 v8; // x0
__int64 result; // x0
v2 = GameLevelManager::sharedState();
if ( sub_1000B9028(v2) )
*(_BYTE *)(GameLevelManager::sharedState() + 1448) = 1;
v3 = GameLevelManager::sharedState();
sub_1000B9074(v3);
v4 = *(_QWORD *)(a1 + 472);
if ( v4 )
v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 576LL))(v4);
v5 = cocos2d::CCDirector::sharedDirector(v4);
v6 = GauntletSelectLayer::scene(0);
v7 = cocos2d::CCTransitionFade::create_1(v6, 0.5);
v8 = cocos2d::CCDirector::pushScene(v5, v7);
result = GameManager::sharedState(v8);
*(_DWORD *)(result + 708) = 1;
return result;
}