//
// sub_B834D4 from 0xb834d4 to 0xb83564 (144 bytes)
//
// 2 xrefs:
// > MusicBrowser::setupMusicBrowser @ 0xb85b18
// > MusicBrowser::setupMusicBrowser @ 0xb85b28
//
// 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:02:29 +0000
//
__int64 __fastcall sub_B834D4(__int64 result, __int64 *a2)
{
unsigned int *v2; // x2
__int64 *v3; // x5
__int64 *v4; // x7
__int64 i; // x6
__int64 v6; // x3
int v7; // w4
int v8; // t1
if ( result )
{
v2 = *(unsigned int **)(result + 56);
result = *v2;
if ( (_DWORD)result )
{
v3 = *((__int64 **)v2 + 2);
v4 = &v3[(unsigned int)result - 1];
if ( v3 <= v4 )
{
for ( i = *v3; *v3; i = *v3 )
{
result = *a2;
v6 = a2[1];
if ( *a2 != v6 )
{
v7 = *(_DWORD *)(i + 56);
if ( *(_DWORD *)result == v7 )
{
LABEL_13:
*(_BYTE *)(i + 60) = 1;
}
else
{
result += 4;
while ( v6 != result )
{
v8 = *(_DWORD *)result;
result += 4;
if ( v7 == v8 )
goto LABEL_13;
}
}
}
if ( v4 < ++v3 )
break;
}
}
}
}
return result;
}