//
// GauntletSprite::create from 0x10037f480 to 0x10037f53c (188 bytes)
//
// 1 xrefs:
// > GauntletLayer::setupGauntlet @ 0x10037e510
//
// 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:29:08 +0000
//
_DWORD *__fastcall GauntletSprite::create(int a1, char a2)
{
__int64 v2; // rax
_DWORD *v3; // rbx
float v5[8]; // [rsp+0h] [rbp-20h] BYREF
*(_QWORD *)v5 = v2;
v3 = operator new(0x140u);
__bzero(v3, 320);
cocos2d::CCNode::CCNode((__int64)v3);
*(_QWORD *)v3 = off_100B28678;
if ( cocos2d::CCNode::init() )
{
v3[79] = a1;
sub_100278260(v5, 60.0, 60.0);
(*(void (__fastcall **)(_DWORD *, float *))(*(_QWORD *)v3 + 320LL))(v3, v5);
(*(void (__fastcall **)(_DWORD *))(*(_QWORD *)v3 + 576LL))(v3);
if ( a2 )
GauntletSprite::addLockedSprite(v3);
else
GauntletSprite::addNormalSprite(v3);
cocos2d::CCObject::autorelease(v3);
}
else
{
(*(void (__fastcall **)(_DWORD *))(*(_QWORD *)v3 + 16LL))(v3);
return nullptr;
}
return v3;
}