//
// CreatorLayer::onGauntlets from 0x14009dc00 to 0x14009dc7c (124 bytes)
//
// 2 xrefs:
// > CreatorLayer::init @ 0x14009c78d
// > ??> @ 0x1406c75d8
//
// 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
//
// Hidden C++ exception states: #wind=1
void CreatorLayer::onGauntlets(CreatorLayer *a1, cocos2d::CCObject *a2)
{
struct cocos2d::CCScene *v2; // rax
struct cocos2d::CCTransitionFade *v3; // rbx
__int64 v4; // rcx
cocos2d::CCDirector *v5; // rax
__int64 v6; // rax
void *v7; // [rsp+40h] [rbp+18h]
v2 = GauntletSelectLayer::scene((int)a1);
v3 = cocos2d::CCTransitionFade::create(0.5, v2);
v5 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v4);
cocos2d::CCDirector::pushScene(v5, v3);
v6 = qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v7 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00(v7);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v6 = qword_1406C2ED8;
}
*(_DWORD *)(v6 + 700) = 1;
}