//
// sub_77DB4 from 0x77db4 to 0x77e48 (148 bytes)
//
// 3 xrefs:
// > FMOD_Memory_GetStats @ 0x501dc
// > sub_6A544 @ 0x6a954
// > sub_7BC78 @ 0x7bea0
//
// 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_77DB4(__int64 a1)
{
_QWORD **v2; // x21
_QWORD *v3; // x8
_QWORD *v4; // x10
__int64 v5; // x20
__int64 result; // x0
sub_7B9D0(a1, 21);
v2 = (_QWORD **)(a1 + 68040);
while ( 1 )
{
v3 = *v2;
if ( *v2 == v2 )
break;
v4 = (_QWORD *)v3[1];
v5 = v3[2];
*v4 = *v3;
*(_QWORD *)(*v3 + 8LL) = v4;
*v3 = v3;
v3[1] = v3;
sub_7B9F0(a1, 21);
result = sub_CA7BC(v5, 0);
if ( (_DWORD)result )
return result;
sub_77E6C(result, 21);
}
sub_7B9F0(a1, 21);
return 0;
}