//
// GauntletSprite::addNormalSprite from 0x10037fcc0 to 0x10037fd6c (172 bytes)
//
// 4 xrefs:
// > GauntletSprite::create @ 0x10037f521
// > GauntletLayer::unlockActiveItem @ 0x10037f5e3
// > GauntletSprite::toggleLockedSprite @ 0x10037fb8b
// > GauntletSprite::init @ 0x10037fc9c
//
// 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
//
void __fastcall GauntletSprite::addNormalSprite(unsigned int *a1, double a2)
{
char *v3; // rdi
char *v4; // rbx
__int64 v5; // rax
float v6; // [rsp+8h] [rbp-38h] BYREF
char v7; // [rsp+10h] [rbp-30h] BYREF
char v8; // [rsp+11h] [rbp-2Fh] BYREF
void *__p; // [rsp+20h] [rbp-20h]
float v10; // [rsp+2Ch] [rbp-14h]
GauntletNode::frameForType(&v7, a1[79]);
if ( (v7 & 1) != 0 )
v3 = (char *)__p;
else
v3 = &v8;
v4 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)v3, a2);
(*(void (__fastcall **)(unsigned int *, char *))(*(_QWORD *)a1 + 456LL))(a1, v4);
v10 = *(float *)(*(__int64 (__fastcall **)(unsigned int *))(*(_QWORD *)a1 + 328LL))(a1);
v5 = (*(__int64 (__fastcall **)(unsigned int *))(*(_QWORD *)a1 + 328LL))(a1);
sub_100278250(&v6, v10 * 0.5, 0.5 * *(float *)(v5 + 4));
(*(void (__fastcall **)(char *, float *))(*(_QWORD *)v4 + 184LL))(v4, &v6);
if ( (v7 & 1) != 0 )
operator delete(__p);
}