//
// sub_6BCFCA from 0x6bcfca to 0x6bd00a (64 bytes)
//
// 2 xrefs:
// > MusicBrowser::setupMusicBrowser @ 0x6be7f6
// > MusicBrowser::setupMusicBrowser @ 0x6be804
//
// 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:47 +0000
//
int *__fastcall sub_6BCFCA(int *result, int **a2)
{
_DWORD *v2; // r2
int v3; // r3
int *v4; // r2
int *v5; // r3
int v6; // r4
int v7; // t1
int v8; // r7
if ( result )
{
v2 = (_DWORD *)result[13];
if ( *v2 )
{
v3 = *v2 + 0x40000000;
v4 = (int *)v2[3];
v5 = &v4[v3 - 1];
LABEL_4:
while ( v4 <= v5 )
{
v7 = *v4++;
v6 = v7;
if ( !v7 )
break;
result = *a2;
while ( result != a2[1] )
{
v8 = *result++;
if ( v8 == *(_DWORD *)(v6 + 52) )
{
*(_BYTE *)(v6 + 56) = 1;
goto LABEL_4;
}
}
}
}
}
return result;
}