//
// sub_B764C0 from 0xb764c0 to 0xb7654c (140 bytes)
//
// 1 xrefs:
// > sub_B839AC @ 0xb86fe8
//
// 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
//
_QWORD *__fastcall sub_B764C0(_QWORD *result)
{
_QWORD *v1; // x21
_QWORD *v2; // x22
_QWORD *v3; // x20
_QWORD *v4; // x19
if ( result )
{
v1 = (_QWORD *)*result;
if ( *result )
{
v2 = result;
v3 = (_QWORD *)*result;
result = (_QWORD *)*result;
do
{
while ( 1 )
{
v4 = (_QWORD *)*result;
if ( !result[6] )
break;
v1 = result;
result = (_QWORD *)*result;
if ( !v4 )
goto LABEL_11;
}
if ( v3 == result )
v3 = (_QWORD *)*result;
if ( v1 == result )
v1 = (_QWORD *)*result;
else
*v1 = v4;
sub_B74A90((void **)result);
result = v4;
--v2[3];
}
while ( v4 );
LABEL_11:
*v2 = v3;
}
}
return result;
}