//
// GauntletSelectLayer::create from 0x100571260 to 0x10057135e (254 bytes)
//
// 1 xrefs:
// > GauntletSelectLayer::scene @ 0x10057123c
//
// 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
//
GauntletSelectLayer *__fastcall GauntletSelectLayer::create(int a1)
{
int v1; // esi
char *v2; // rbx
v2 = (char *)operator new(0x208u);
cocos2d::CCLayer::CCLayer((__int64)v2);
*(_QWORD *)v2 = off_1009649F0;
*((_QWORD *)v2 + 40) = off_100964E98;
*((_QWORD *)v2 + 41) = &off_100964F08;
*((_QWORD *)v2 + 42) = off_100964F20;
*((_QWORD *)v2 + 43) = off_100964F40;
*((_QWORD *)v2 + 44) = off_100964F60;
*((_QWORD *)v2 + 51) = off_100964F88;
*((_QWORD *)v2 + 52) = off_100964FB8;
*((_QWORD *)v2 + 53) = off_100964FF0;
*((_QWORD *)v2 + 58) = 0;
*((_WORD *)v2 + 236) = 0;
*((_DWORD *)v2 + 127) = 0;
*((_WORD *)v2 + 256) = 0;
*((_OWORD *)v2 + 27) = 0;
*((_OWORD *)v2 + 30) = 0;
*(_OWORD *)(v2 + 489) = 0;
if ( GauntletSelectLayer::init((GauntletSelectLayer *)v2, v1) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v2 + 16LL))(v2);
return nullptr;
}
return (GauntletSelectLayer *)v2;
}