//
// GJCompactUserCell::addStat from 0x739450 to 0x739710 (704 bytes)
//
// 5 xrefs:
// > GJCompactUserCell::createStatStrip @ 0x73975c
// > GJCompactUserCell::createStatStrip @ 0x73977c
// > GJCompactUserCell::createStatStrip @ 0x73979c
// > GJCompactUserCell::createStatStrip @ 0x7397c4
// > ??> @ 0x8a958
//
// 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 12:52:40 +0000
//
__int64 __fastcall GJCompactUserCell::addStat(
GJCompactUserCell *this,
cocos2d::CCSprite *a2,
const char *a3,
cocos2d::CCNode *a4,
float *a5,
float a6)
{
int v10; // w26
const char *v11; // x2
cocos2d::CCLabelBMFont *v12; // x0
__int64 v13; // x19
void (__fastcall *v14)(__int64, __int64 *); // x20
void (__fastcall *v15)(__int64, __int64 *); // x20
const char *v16; // x1
__int64 v17; // x20
void (__fastcall *v18)(__int64, __int64 *); // x27
__int64 v19; // x28
float v20; // s8
long double v21; // q0
int v22; // w0
float v23; // s1
void (__fastcall *v24)(__int64, __int64 *); // x3
float v25; // s9
float v26; // s8
float v28; // [xsp+70h] [xbp+70h]
_BYTE v29[8]; // [xsp+80h] [xbp+80h] BYREF
__int64 v30; // [xsp+88h] [xbp+88h] BYREF
__int64 v31[2]; // [xsp+90h] [xbp+90h] BYREF
cocos2d::CCLabelBMFont *v32; // [xsp+A0h] [xbp+A0h]
v10 = (unsigned __int8)a5;
GameToolbox::intToShortString(this, 1, v31);
v12 = (cocos2d::CCLabelBMFont *)((char *)v31 + 1);
if ( (v31[0] & 1) != 0 )
v12 = v32;
v13 = cocos2d::CCLabelBMFont::create(v12, "bigFont.fnt", v11);
if ( (v31[0] & 1) != 0 )
operator delete(v32);
v14 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v13 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v30, 0.0, 0.5);
v14(v13, &v30);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v13 + 160LL))(v13, 0.4);
v15 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v13 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v30, *(float *)a4, a6);
v15(v13, &v30);
(*(void (__fastcall **)(const char *, __int64, __int64))(*(_QWORD *)a3 + 464LL))(a3, v13, 2);
v17 = cocos2d::CCSprite::createWithSpriteFrameName(a2, v16);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v17 + 160LL))(v17, 0.5);
v18 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v17 + 184LL);
v19 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v13 + 192LL))(v13);
v20 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v13 + 328LL))(v13);
v21 = ((long double (__fastcall *)(__int64))*(_QWORD *)(*(_QWORD *)v13 + 168LL))(v13);
v28 = (float)(v20 * *(float *)&v21) + 7.0;
v22 = strcmp((const char *)a2, "GJ_starsIcon_001.png");
v23 = 0.0;
if ( !v22 )
v23 = -1.0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v29, v28, v23);
cocos2d::CCPoint::operator+(&v30, v19);
v18(v17, &v30);
(*(void (__fastcall **)(const char *, __int64, __int64))(*(_QWORD *)a3 + 464LL))(a3, v17, 2);
if ( v10 )
{
v24 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v13 + 1072LL);
LOWORD(v30) = -32126;
BYTE2(v30) = -126;
v24(v13, &v30);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v13 + 1024LL))(v13, 4294967190LL);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v17 + 912LL))(v17, 110);
}
v25 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v17 + 224LL))(v17);
v26 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v17 + 328LL))(v17);
*(float *)a4 = (float)(v25
+ (float)((float)(v26 * (*(float (__fastcall **)(__int64))(*(_QWORD *)v17 + 168LL))(v17)) * 0.5))
+ 8.0;
return _stack_chk_guard;
}