//
// SongUsagePopup::layoutPopup from 0x75fbcc to 0x75fd4e (386 bytes)
//
// 2 xrefs:
// > SongUsagePopup::init @ 0x760520
// > SongUsagePopup::songUsageFinished @ 0x760ae2
//
// 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::layoutPopup(SongUsagePopup *this, float a2)
{
int v4; // r8
float v5; // s16
void (__fastcall *v6)(int, _BYTE *); // r9
float v7; // s16
int v8; // r7
void (__fastcall *v9)(int, _BYTE *); // r8
int v10; // r7
void (__fastcall *v11)(int, _BYTE *); // r8
int v12; // r7
void (__fastcall *v13)(int, _BYTE *); // r8
int v14; // r7
void (__fastcall *v15)(int, _BYTE *); // r8
float v17[2]; // [sp+4h] [bp-8h] BYREF
float v18; // [sp+Ch] [bp+0h] BYREF
float v19; // [sp+10h] [bp+4h]
_BYTE v20[8]; // [sp+14h] [bp+8h] BYREF
cocos2d::CCDirector::sharedDirector(this);
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v17);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v18, v17[0] * 0.5, v17[1] * 0.5);
*((float *)this + 138) = a2;
v4 = *((_DWORD *)this + 133);
v5 = v19;
v6 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v4 + 160);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v20, 380.0, a2);
v6(v4, v20);
v7 = (float)(a2 * 0.5) + v5;
(*(void (__fastcall **)(_DWORD, float *))(**((_DWORD **)this + 133) + 92))(*((_DWORD *)this + 133), &v18);
v8 = *((_DWORD *)this + 134);
v9 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v8 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v20, v18, v7 - 22.0);
v9(v8, v20);
v10 = *((_DWORD *)this + 135);
v11 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v10 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v20, v18, v7 - 45.0);
v11(v10, v20);
v12 = *((_DWORD *)this + 136);
v13 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v12 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v20, (float)(v18 - 190.0) + 8.0, v7 - 8.0);
v13(v12, v20);
v14 = *((_DWORD *)this + 137);
v15 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v14 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v20, (float)(v18 + 190.0) - 16.0, v7 - 16.0);
v15(v14, v20);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v20,
v18,
(float)((float)(v7 - 90.0) + (float)((float)(v19 - (float)(a2 * 0.5)) + 12.0)) * 0.5);
return cocos2d::CCPoint::operator=((char *)this + 556, v20);
}