//
// GauntletNode::create from 0x1005728b0 to 0x100572941 (145 bytes)
//
// 1 xrefs:
// > GauntletSelectLayer::setupGauntlets @ 0x1005721ab
//
// 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
//
GauntletNode *__fastcall GauntletNode::create(GJMapPack *a1)
{
GauntletNode *v1; // rbx
v1 = (GauntletNode *)operator new(0x168u);
cocos2d::CCNode::CCNode((__int64)v1);
v1->__vftable = (GauntletNode_vtbl *)off_100965010;
v1->m_gauntlet = nullptr;
v1->m_locked = 0;
*(_OWORD *)&v1->m_gauntletInfoNode = 0;
if ( cocos2d::CCNode::init(v1) )
{
if ( a1 )
{
v1->m_gauntlet = a1;
cocos2d::CCObject::retain(a1);
}
v1->m_locked = 0;
GauntletNode::generateNode(v1);
cocos2d::CCObject::autorelease(v1);
}
else
{
((void (__fastcall *)(GauntletNode *))v1->~GauntletNode_0)(v1);
return nullptr;
}
return v1;
}