//
// sub_1005B81C8 from 0x1005b81c8 to 0x1005b8208 (64 bytes)
//
// 4 xrefs:
// > sub_1005BB970 @ 0x1005bbabc
// > sub_1005BCF64 @ 0x1005bcf88
// > sub_1005BFB8C @ 0x1005bfbdc
// > sub_1005BFC10 @ 0x1005bfc60
//
// 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_1005B81C8(_QWORD *a1, __int64 a2, __int64 a3, __int64 a4)
{
if ( !a1 )
return 0;
while ( a1[2] != a2 || a1[3] != a3 || a1[4] != a4 )
{
a1 = (_QWORD *)*a1;
if ( !a1 )
return 0;
}
return a1[1];
}