//
// GauntletSprite::create from 0x100394510 to 0x1003945cc (188 bytes)
//
// 1 xrefs:
// > GauntletLayer::setupGauntlet @ 0x1003935a0
//
// 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
//
GauntletSprite *__fastcall GauntletSprite::create(GauntletType a1, bool a2)
{
__int64 v2; // rax
GauntletSprite *v3; // rbx
float v5[8]; // [rsp+0h] [rbp-20h] BYREF
*(_QWORD *)v5 = v2;
v3 = (GauntletSprite *)operator new(0x140u);
__bzero(v3, 320);
cocos2d::CCNode::CCNode((__int64)v3);
v3->__vftable = (GauntletSprite_vtbl *)off_100920278;
if ( cocos2d::CCNode::init(v3) )
{
v3->m_gauntletType = a1;
sub_10028CBF0(v5, 60.0, 60.0);
((void (__fastcall *)(GauntletSprite *, float *))v3->setContentSize)(v3, v5);
((void (__fastcall *)(GauntletSprite *))v3->removeAllChildren)(v3);
if ( a2 )
GauntletSprite::addLockedSprite(v3);
else
GauntletSprite::addNormalSprite(v3);
cocos2d::CCObject::autorelease(v3);
}
else
{
((void (__fastcall *)(GauntletSprite *))v3->~GauntletSprite_0)(v3);
return nullptr;
}
return v3;
}