//
// SongUsagePopup::layoutPopup from 0xc8c4cc to 0xc8c6a8 (476 bytes)
//
// 3 xrefs:
// > SongUsagePopup::init @ 0xc8d230
// > SongUsagePopup::songUsageFinished @ 0xc8db44
// > ??> @ 0xe7610
//
// 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 13:05:45 +0000
//
__int64 __fastcall SongUsagePopup::layoutPopup(SongUsagePopup *this, float a2)
{
cocos2d::CCDirector *v4; // x0
__int64 v5; // x23
float v6; // s8
void (__fastcall *v7)(__int64, _BYTE *); // x24
__int64 v8; // x22
void (__fastcall *v9)(__int64, _BYTE *); // x23
__int64 v10; // x22
void (__fastcall *v11)(__int64, _BYTE *); // x23
__int64 v12; // x22
void (__fastcall *v13)(__int64, _BYTE *); // x23
__int64 v14; // x22
void (__fastcall *v15)(__int64, _BYTE *); // x23
__int64 v17; // [xsp+60h] [xbp+60h] BYREF
float v18; // [xsp+68h] [xbp+68h] BYREF
float v19; // [xsp+6Ch] [xbp+6Ch]
_BYTE v20[8]; // [xsp+70h] [xbp+70h] BYREF
v4 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(_stack_chk_guard);
cocos2d::CCDirector::getWinSize(&v17, v4);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v18, *(float *)&v17 * 0.5, *((float *)&v17 + 1) * 0.5);
v5 = *((_QWORD *)this + 86);
v6 = v19 + (float)(a2 * 0.5);
*((float *)this + 182) = a2;
v7 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v5 + 320LL);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v20, 380.0, a2);
v7(v5, v20);
(*(void (__fastcall **)(_QWORD, float *))(**((_QWORD **)this + 86) + 184LL))(*((_QWORD *)this + 86), &v18);
v8 = *((_QWORD *)this + 87);
v9 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v8 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v20, v18, v6 - 22.0);
v9(v8, v20);
v10 = *((_QWORD *)this + 88);
v11 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v10 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v20, v18, v6 - 45.0);
v11(v10, v20);
v12 = *((_QWORD *)this + 89);
v13 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v12 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v20, (float)(v18 - 190.0) + 8.0, v6 - 8.0);
v13(v12, v20);
v14 = *((_QWORD *)this + 90);
v15 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v14 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v20, (float)(v18 + 190.0) - 16.0, v6 - 16.0);
v15(v14, v20);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v20,
v18,
(float)((float)(v6 - 90.0) + (float)((float)(v19 - (float)(a2 * 0.5)) + 12.0)) * 0.5);
cocos2d::CCPoint::operator=((char *)this + 732, v20);
return _stack_chk_guard;
}