//
// MusicBrowser::updateSongControlLayout from 0x6bd464 to 0x6bd656 (498 bytes)
//
// 3 xrefs:
// > MusicBrowser::setupSongControls @ 0x6bd78e
// > MusicBrowser::onToggleSearch @ 0x6be67e
// > MusicBrowser::setupMusicBrowser @ 0x6be95c
//
// 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:56:48 +0000
//
int __fastcall MusicBrowser::updateSongControlLayout(const cocos2d::CCPoint **this)
{
int v2; // r0
float v3; // s16
int v4; // r7
const cocos2d::CCPoint *v5; // r10
void (__fastcall *v6)(int, _BYTE *); // r9
float v7; // s16
float v8; // s14
int v9; // r6
void (__fastcall *v10)(int, _BYTE *); // r7
int v11; // r6
void (__fastcall *v12)(int, _BYTE *); // r7
int v13; // r9
void (__fastcall *v14)(int, _BYTE *); // r11
int v15; // r9
void (__fastcall *v16)(int, _BYTE *); // r10
cocos2d::CCPoint *v18; // [sp+4h] [bp-38h]
float v19[2]; // [sp+Ch] [bp-30h] BYREF
_BYTE v20[8]; // [sp+14h] [bp-28h] BYREF
_BYTE v21[8]; // [sp+1Ch] [bp-20h] BYREF
_BYTE v22[8]; // [sp+24h] [bp-18h] BYREF
_BYTE v23[8]; // [sp+2Ch] [bp-10h] BYREF
cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)this);
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v19);
v2 = (int)*(this + 148);
v3 = (float)((float)(v19[1] * 0.5) + 145.0) - 24.0;
if ( v2 )
(*(void (__fastcall **)(int, int))(*(_DWORD *)v2 + 172))(v2, *((unsigned __int8 *)this + 588) ^ 1);
if ( *((_BYTE *)this + 588) )
{
v4 = (int)*(this + 161);
v5 = *(this + 111);
v6 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v4 + 92);
v7 = v3 - 5.0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v22, (float)(v19[0] * 0.5) + 37.0, v7);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v23, v5);
v6(v4, v23);
(*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 161) + 80))(*(this + 161), 1061997773);
v8 = v19[0];
*((_DWORD *)*(this + 161) + 79) = 1061997773;
v9 = (int)*(this + 159);
v10 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v9 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v23, (float)(v8 * 0.5) + 110.0, v7);
v10(v9, v23);
(*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 159) + 80))(*(this + 159), 1060655596);
v11 = (int)*(this + 160);
v12 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v11 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v23, (float)(v19[0] * 0.5) + 170.0, v7);
v12(v11, v23);
}
else
{
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v20, (float)(v19[0] * 0.5) - 50.0, v3);
v13 = (int)*(this + 161);
v14 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v13 + 92);
v18 = *(this + 111);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v21, -100.0, 0.0);
cocos2d::CCPoint::operator+(v22, v20, v21);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v23, v18);
v14(v13, v23);
(*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 161) + 80))(*(this + 161), 1065353216);
*((_DWORD *)*(this + 161) + 79) = 1065353216;
(*(void (__fastcall **)(_DWORD, _BYTE *))(*(_DWORD *)*(this + 159) + 92))(*(this + 159), v20);
(*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 159) + 80))(*(this + 159), 1065353216);
v15 = (int)*(this + 160);
v16 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v15 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v22, 80.0, 0.0);
cocos2d::CCPoint::operator+(v23, v20, v22);
v16(v15, v23);
}
return (*(int (**)(void))(*(_DWORD *)*(this + 160) + 80))();
}