//
// SongUsagePopup::buildStatRow from 0x75fd64 to 0x75ff8e (554 bytes)
//
// 1 xrefs:
// > SongUsagePopup::songUsageFinished @ 0x760cec
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:59:03 +0000
//
int __fastcall SongUsagePopup::buildStatRow(cocos2d::CCDirector *a1, int a2, int a3, int a4, float a5)
{
int v6; // r8
float v7; // s16
int v8; // r4
int v9; // r9
cocos2d::CCNode *WinSize; // r0
int v11; // r7
int v12; // r3
cocos2d::CCSprite *v13; // r0
int v14; // r6
int v15; // r0
int v16; // r3
const void *v17; // r0
float v18; // r0
float v19; // s17
const char *v20; // r2
cocos2d::CCLabelBMFont *v21; // r0
int v22; // r6
float v23; // s16
int (__fastcall *v24)(int, float *); // r4
void (__fastcall *v27)(int, _DWORD); // [sp+Ch] [bp-20h]
void (__fastcall *v28)(int, _DWORD); // [sp+Ch] [bp-20h]
void (__fastcall *v29)(int, float *); // [sp+Ch] [bp-20h]
void (__fastcall *v30)(int, float *); // [sp+Ch] [bp-20h]
void (__fastcall *v31)(int, float *); // [sp+Ch] [bp-20h]
float v32[2]; // [sp+14h] [bp-18h] BYREF
float v33[2]; // [sp+1Ch] [bp-10h] BYREF
v6 = a3 + 1;
v7 = 0.0;
v8 = a2 + 1;
v9 = 0;
cocos2d::CCDirector::sharedDirector(a1);
WinSize = (cocos2d::CCNode *)cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v32);
v11 = cocos2d::CCNode::create(WinSize);
(*(void (__fastcall **)(_DWORD *, int, int))(**((_DWORD **)a1 + 115) + 232))(*((_DWORD **)a1 + 115), v11, 2);
while ( v9 < a4 )
{
v12 = *(unsigned __int8 *)(v8 - 1);
if ( (v12 & 1) != 0 )
v13 = *(cocos2d::CCSprite **)(v8 + 7);
else
v13 = (cocos2d::CCSprite *)v8;
v14 = cocos2d::CCSprite::createWithSpriteFrameName(v13, (const char *)(v12 << 31));
v27 = *(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v14 + 80);
v15 = (*(int (__fastcall **)(int))(*(_DWORD *)v14 + 164))(v14);
v27(v14, 19.2 / *(float *)(v15 + 4));
v16 = *(unsigned __int8 *)(v8 - 1);
if ( (v16 & 1) != 0 )
{
if ( *(_DWORD *)(v8 + 3) != 18 )
goto LABEL_13;
v17 = *(const void **)(v8 + 7);
}
else
{
if ( v16 >> 1 != 18 )
goto LABEL_13;
v17 = (const void *)v8;
}
if ( !memcmp(v17, "exportIcon_001.png", 0x12u) )
{
v28 = *(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v14 + 80);
v18 = COERCE_FLOAT((*(int (__fastcall **)(int))(*(_DWORD *)v14 + 84))(v14));
v28(v14, v18 * 0.9);
}
LABEL_13:
++v9;
v8 += 12;
(*(void (__fastcall **)(int, int, int))(*(_DWORD *)v11 + 232))(v11, v14, 2);
(*(void (__fastcall **)(float *, int))(*(_DWORD *)v14 + 168))(v33, v14);
v19 = v33[0];
v29 = *(void (__fastcall **)(int, float *))(*(_DWORD *)v14 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v33, v7 + (float)(v33[0] * 0.5), 0.0);
v29(v14, v33);
if ( (*(_BYTE *)(v6 - 1) & 1) != 0 )
v21 = *(cocos2d::CCLabelBMFont **)(v6 + 7);
else
v21 = (cocos2d::CCLabelBMFont *)v6;
v6 += 12;
v22 = cocos2d::CCLabelBMFont::create(v21, "bigFont.fnt", v20);
v30 = *(void (__fastcall **)(int, float *))(*(_DWORD *)v22 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v33, 0.0, 0.5);
v30(v22, v33);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v22 + 80))(v22, 1056964608);
(*(void (__fastcall **)(int, int, int))(*(_DWORD *)v11 + 232))(v11, v22, 2);
v31 = *(void (__fastcall **)(int, float *))(*(_DWORD *)v22 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v33, (float)(v7 + v19) + 6.0, 0.0);
v31(v22, v33);
(*(void (__fastcall **)(float *, int))(*(_DWORD *)v22 + 168))(v33, v22);
v7 = v7 + (float)((float)((float)(v19 + 6.0) + v33[0]) + 22.0);
}
v23 = v7 - 22.0;
if ( v23 > 340.0 )
{
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v11 + 80))(v11, 340.0 / v23);
v23 = 340.0;
}
v24 = *(int (__fastcall **)(int, float *))(*(_DWORD *)v11 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v33, (float)(v32[0] * 0.5) - (float)(v23 * 0.5), a5);
return v24(v11, v33);
}