//
// GauntletSprite::create from 0xa784ec to 0xa785a4 (184 bytes)
//
// 2 xrefs:
// > GauntletLayer::setupGauntlet @ 0xa78928
// > ??> @ 0x5c308
//
// This function is hookable on this platform (idp: arm, 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 13:00:27 +0000
//
void *__fastcall GauntletSprite::create(int a1, unsigned __int8 a2)
{
void *v4; // x19
v4 = (void *)operator new(0x140u);
memset(v4, 0, 0x140u);
cocos2d::CCNode::CCNode((cocos2d::CCNode *)v4);
*(_QWORD *)v4 = &off_1493C80;
if ( (unsigned __int8)GauntletSprite::init((cocos2d::CCNode *)v4, a1, a2) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v4);
return v4;
}
else
{
(*(void (__fastcall **)(void *))(*(_QWORD *)v4 + 16LL))(v4);
return nullptr;
}
}