//
// sub_77D0C from 0x77d0c to 0x77db4 (168 bytes)
//
// 1 xrefs:
// > sub_77E88 @ 0x77e90
//
// 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_77D0C(__int64 a1, unsigned int a2)
{
__int64 v4; // x22
__int64 *i; // x8
__int64 v6; // x8
__int64 v7; // x21
__int64 result; // x0
_QWORD *v9; // x20
__int64 v10; // x8
_QWORD *v11; // x21
v4 = a1 + 496;
for ( i = (__int64 *)(a1 + 872); ; i = (__int64 *)(v7 + 376) )
{
v6 = *i;
v7 = v6 ? v6 - 376 : 0LL;
if ( v7 == v4 )
break;
result = (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v7 + 120LL))(v7, a2);
if ( (_DWORD)result )
return result;
}
v9 = (_QWORD *)(a1 + 69856);
v10 = *v9;
v11 = (_QWORD *)(*v9 + 400LL);
while ( 1 )
{
v11 = (_QWORD *)*v11;
if ( v11 == (_QWORD *)(v10 + 400) )
break;
result = sub_58D3C(v11[2], a2);
if ( (_DWORD)result )
return result;
v10 = *v9;
}
return 0;
}