//
// GauntletSelectLayer::scene from 0x1402fd8c0 to 0x1402fda28 (360 bytes)
//
// 4 xrefs:
// > CreatorLayer::onGauntlets @ 0x140137acd
// > GauntletLayer::onBack @ 0x1402fd241
// > GauntletLayer::keyBackClicked @ 0x1402fd298
// > ??> @ 0x14091e3e0
//
// 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 11:30:06 +0000
//
// Hidden C++ exception states: #wind=1
__int64 __fastcall GauntletSelectLayer::scene(__int64 a1, __int64 a2, __int64 a3, __int64 a4)
{
__int64 v4; // rdi
__int64 v5; // rcx
void *v6; // rbx
v4 = cocos2d::CCScene::create(a1, a2, a3, a4);
*(_QWORD *)(cocos2d::CCApplication::sharedApplication(v5) + 232) = v4;
v6 = operator new(0x208u);
memset(v6, 0, 0x208u);
cocos2d::CCLayer::CCLayer((cocos2d::CCLayer *)v6);
*(_QWORD *)v6 = &GauntletSelectLayer::`vftable';
*((_QWORD *)v6 + 40) = &GauntletSelectLayer::`vftable';
*((_QWORD *)v6 + 41) = &GauntletSelectLayer::`vftable';
*((_QWORD *)v6 + 42) = &GauntletSelectLayer::`vftable';
*((_QWORD *)v6 + 43) = &GauntletSelectLayer::`vftable';
*((_QWORD *)v6 + 44) = &GauntletSelectLayer::`vftable';
*((_QWORD *)v6 + 51) = &GauntletSelectLayer::`vftable';
*((_QWORD *)v6 + 52) = &GauntletSelectLayer::`vftable';
*((_QWORD *)v6 + 53) = &GauntletSelectLayer::`vftable';
*((_QWORD *)v6 + 54) = 0;
*((_QWORD *)v6 + 55) = 0;
*((_QWORD *)v6 + 56) = 0;
*((_QWORD *)v6 + 57) = 0;
*((_QWORD *)v6 + 58) = 0;
*((_WORD *)v6 + 236) = 0;
*((_QWORD *)v6 + 60) = 0;
*((_QWORD *)v6 + 61) = 0;
*((_QWORD *)v6 + 62) = 0;
*((_BYTE *)v6 + 504) = 0;
*((_DWORD *)v6 + 127) = 0;
*((_WORD *)v6 + 256) = 0;
if ( (unsigned __int8)GauntletSelectLayer::init(v6, 0) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v6);
}
else
{
(*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v6 + 8LL))(v6, 1);
v6 = nullptr;
}
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v4 + 464LL))(v4, v6);
return v4;
}