//
// SongUsagePopup::layoutPopup from 0x140102320 to 0x140102564 (580 bytes)
//
// 3 xrefs:
// > SongUsagePopup::init @ 0x140102241
// > SongUsagePopup::songUsageFinished @ 0x140102b27
// > ??> @ 0x1409158b4
//
// 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 11:26:43 +0000
//
double __fastcall SongUsagePopup::layoutPopup(__int64 a1, float a2)
{
__int64 v3; // rax
__int64 *v4; // rdi
__int64 v5; // rbx
float v6; // xmm8_4
__int64 v7; // rax
__int64 *v8; // rdi
__int64 v9; // rbx
__int64 v10; // rax
__int64 *v11; // rdi
__int64 v12; // rbx
__int64 v13; // rax
__int64 *v14; // rdi
__int64 v15; // rbx
__int64 v16; // rax
__int64 *v17; // rdi
__int64 v18; // rbx
__int64 v19; // rax
__int64 v20; // rax
float v22; // [rsp+80h] [rbp+8h] BYREF
float v23; // [rsp+84h] [rbp+Ch]
float v24; // [rsp+90h] [rbp+18h] BYREF
float v25; // [rsp+94h] [rbp+1Ch]
char v26; // [rsp+98h] [rbp+20h] BYREF
v3 = cocos2d::CCDirector::sharedDirector(a1);
cocos2d::CCDirector::getWinSize(v3, &v24);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v22, v24 * 0.5, v25 * 0.5);
v4 = *(__int64 **)(a1 + 688);
*(float *)(a1 + 728) = a2;
v5 = *v4;
v6 = (float)(a2 * 0.5) + v23;
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v26, 380.0, a2);
(*(void (__fastcall **)(__int64 *, __int64))(v5 + 312))(v4, v7);
(*(void (__fastcall **)(_QWORD, float *))(**(_QWORD **)(a1 + 688) + 184LL))(*(_QWORD *)(a1 + 688), &v22);
v8 = *(__int64 **)(a1 + 696);
v9 = *v8;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v26, v22, v6 - 22.0);
(*(void (__fastcall **)(__int64 *, __int64))(v9 + 184))(v8, v10);
v11 = *(__int64 **)(a1 + 704);
v12 = *v11;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v26, v22, v6 - 45.0);
(*(void (__fastcall **)(__int64 *, __int64))(v12 + 184))(v11, v13);
v14 = *(__int64 **)(a1 + 712);
v15 = *v14;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v26, (float)(v22 - 190.0) + 8.0, v6 - 8.0);
(*(void (__fastcall **)(__int64 *, __int64))(v15 + 184))(v14, v16);
v17 = *(__int64 **)(a1 + 720);
v18 = *v17;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v26, (float)(v22 + 190.0) - 16.0, v6 - 16.0);
(*(void (__fastcall **)(__int64 *, __int64))(v18 + 184))(v17, v19);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v26,
v22,
(float)((float)((float)(v23 - (float)(a2 * 0.5)) + 12.0) + (float)(v6 - 90.0)) * 0.5);
return cocos2d::CCPoint::operator=(a1 + 732, v20);
}