//
// sub_6BFBBC from 0x6bfbbc to 0x6bfc16 (90 bytes)
//
// 2 xrefs:
// > MusicBrowser::onClose @ 0x6bfd3e
// > MusicBrowser::onClose @ 0x6bfd50
//
// 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:49 +0000
//
void __fastcall sub_6BFBBC(int a1, int *a2)
{
int v3; // r2
int v4; // r3
_DWORD *v5; // r2
int *v6; // r6
int *v7; // r4
int v8; // r1
int v9; // t1
_DWORD *v10; // r3
v3 = *a2;
while ( 1 )
{
v4 = a2[1];
if ( v3 == v4 )
break;
a2[1] = v4 - 4;
}
if ( a1 )
{
v5 = *(_DWORD **)(a1 + 52);
if ( *v5 )
{
v6 = (int *)v5[3];
v7 = &v6[*v5 - 1];
while ( v6 <= v7 )
{
v9 = *v6++;
v8 = v9;
if ( !v9 )
break;
if ( *(_BYTE *)(v8 + 56) )
{
v10 = (_DWORD *)a2[1];
if ( v10 == (_DWORD *)a2[2] )
{
std::vector::__push_back_slow_path((int)a2, (_DWORD *)(v8 + 52));
}
else
{
if ( v10 )
*v10 = *(_DWORD *)(v8 + 52);
a2[1] += 4;
}
}
}
}
}
}