//
// GauntletSprite::addNormalSprite from 0xa77c54 to 0xa77d6c (280 bytes)
//
// 2 xrefs:
// > GauntletSprite::toggleLockedSprite @ 0xa78054
// > ??> @ 0x7ef70
//
// 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:26 +0000
//
__int64 __fastcall GauntletSprite::addNormalSprite(GauntletSprite *this)
{
cocos2d::CCSprite *v2; // x0
__int64 v3; // x20
void (__fastcall *v4)(__int64, _BYTE *); // x22
float v5; // s8
__int64 v6; // x0
_BYTE v8[8]; // [xsp+48h] [xbp+48h] BYREF
__int64 v9[2]; // [xsp+50h] [xbp+50h] BYREF
cocos2d::CCSprite *v10; // [xsp+60h] [xbp+60h]
GauntletNode::frameForType(*((_DWORD *)this + 79), v9);
v2 = (cocos2d::CCSprite *)((char *)v9 + 1);
if ( (v9[0] & 1) != 0 )
v2 = v10;
v3 = cocos2d::CCSprite::createWithSpriteFrameName(v2, (const char *)LOBYTE(v9[0]));
(*(void (__fastcall **)(GauntletSprite *, __int64))(*(_QWORD *)this + 456LL))(this, v3);
v4 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v3 + 184LL);
v5 = *(float *)(*(__int64 (__fastcall **)(GauntletSprite *))(*(_QWORD *)this + 328LL))(this) * 0.5;
v6 = (*(__int64 (__fastcall **)(GauntletSprite *))(*(_QWORD *)this + 328LL))(this);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v8, v5, *(float *)(v6 + 4) * 0.5);
v4(v3, v8);
if ( (v9[0] & 1) != 0 )
operator delete(v10);
return _stack_chk_guard;
}