//
// sub_655D0 from 0x655d0 to 0x65618 (72 bytes)
//
// 1 xrefs:
// > sub_64C98 @ 0x64d00
//
// 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_655D0(__int64 a1, int **a2, _QWORD *a3, _QWORD *a4)
{
int *i; // x8
__int64 v5; // x8
_QWORD *v6; // x8
for ( i = *a2; ; *a2 = i )
{
v5 = *i;
if ( (_DWORD)v5 == -1 )
return 74;
v6 = (_QWORD *)(*(_QWORD *)(a1 + 16) + 16 * v5);
if ( *v6 == *a3 )
break;
i = (int *)(v6 + 1);
}
*a4 = v6;
return 0;
}