//
// GauntletNode::create from 0x10059fc30 to 0x10059fcce (158 bytes)
//
// 1 xrefs:
// > GauntletSelectLayer::setupGauntlets @ 0x10059f490
//
// 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 12:32:32 +0000
//
_QWORD *__fastcall GauntletNode::create(__int64 a1)
{
_QWORD *v1; // rbx
v1 = operator new(0x168u);
__bzero(v1, 360);
cocos2d::CCNode::CCNode((__int64)v1);
*v1 = off_100B72580;
v1[43] = 0;
*((_BYTE *)v1 + 352) = 0;
*((_OWORD *)v1 + 20) = 0;
if ( cocos2d::CCNode::init() )
{
if ( a1 )
{
v1[43] = a1;
cocos2d::CCObject::retain(a1);
}
*((_BYTE *)v1 + 352) = 0;
GauntletNode::generateNode(v1);
cocos2d::CCObject::autorelease((__int64)v1);
}
else
{
(*(void (__fastcall **)(_QWORD *))(*v1 + 16LL))(v1);
return nullptr;
}
return v1;
}