//
// sub_B765B0 from 0xb765b0 to 0xb76764 (436 bytes)
//
// 1 xrefs:
// > sub_B91EFC @ 0xb9214c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall sub_B765B0(__int64 a1)
{
_QWORD *v1; // x20
__int64 result; // x0
_QWORD *v3; // x19
__int64 v4; // x22
void *v5; // x20
__int64 v6; // x0
v1 = *(_QWORD **)(a1 + 2360);
if ( !v1 )
return 0;
result = v1[3];
if ( result )
{
v3 = (_QWORD *)*v1;
if ( *v1 )
{
v4 = 0;
while ( 1 )
{
if ( v3[5] )
{
v5 = (void *)sub_B8F880("%s%s%s\t%s\t%s\t%s\t%ld\t%s\t%s");
if ( !v5 )
{
sub_BA4C54(v4);
return 0;
}
v6 = sub_BA4A38(v4, v5);
if ( !v6 )
{
off_1231008(v5);
sub_BA4C54(v4);
return 0;
}
v4 = v6;
}
v3 = (_QWORD *)*v3;
if ( !v3 )
return v4;
}
}
return 0;
}
return result;
}