//
// GauntletSprite::addNormalSprite from 0x100394d50 to 0x100394dfc (172 bytes)
//
// 4 xrefs:
// > GauntletSprite::create @ 0x1003945b1
// > GauntletLayer::unlockActiveItem @ 0x100394673
// > GauntletSprite::toggleLockedSprite @ 0x100394c1b
// > GauntletSprite::init @ 0x100394d2c
//
// 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
//
void __fastcall GauntletSprite::addNormalSprite(GauntletSprite *a1)
{
const char *v2; // rdi
cocos2d::CCSprite *v3; // rbx
__int64 v4; // rax
float v5; // [rsp+8h] [rbp-38h] BYREF
char v6; // [rsp+10h] [rbp-30h] BYREF
char v7; // [rsp+11h] [rbp-2Fh] BYREF
void *__p; // [rsp+20h] [rbp-20h]
float v9; // [rsp+2Ch] [rbp-14h]
GauntletNode::frameForType(&v6, (unsigned int)a1->m_gauntletType);
if ( (v6 & 1) != 0 )
v2 = (const char *)__p;
else
v2 = &v7;
v3 = cocos2d::CCSprite::createWithSpriteFrameName(v2);
((void (__fastcall *)(GauntletSprite *, cocos2d::CCSprite *))a1->addChild)(a1, v3);
v9 = *(float *)((__int64 (__fastcall *)(GauntletSprite *))a1->getContentSize)(a1);
v4 = ((__int64 (__fastcall *)(GauntletSprite *))a1->getContentSize)(a1);
sub_10028CBE0(&v5, v9 * 0.5, 0.5 * *(float *)(v4 + 4));
((void (__fastcall *)(cocos2d::CCSprite *, float *))v3->setPosition)(v3, &v5);
if ( (v6 & 1) != 0 )
operator delete(__p);
}