//
// sub_1005E95E8 from 0x1005e95e8 to 0x1005e9668 (128 bytes)
//
// 1 xrefs:
// > sub_1005FF128 @ 0x1005ff15c
//
// 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_1005E95E8(__int64 a1, _DWORD *a2)
{
__int64 v4; // x8
__int64 (__fastcall *v5)(__int64, _DWORD *); // x9
__int64 result; // x0
__int64 (__fastcall *v7)(__int64, _DWORD *); // x2
if ( *(_DWORD *)a1 != *a2 )
return 0xFFFFFFFFLL;
v4 = *(_QWORD *)(a1 + 16);
if ( !v4 )
return 4294967294LL;
v5 = *(__int64 (__fastcall **)(__int64, _DWORD *))(v4 + 136);
if ( v5 )
{
result = v5(a1, a2);
if ( (int)result < 1 )
return result;
v4 = *(_QWORD *)(a1 + 16);
}
v7 = *(__int64 (__fastcall **)(__int64, _DWORD *))(v4 + 48);
if ( v7 )
return v7(a1, a2);
else
return 4294967294LL;
}