//
// sub_1005EB6B8 from 0x1005eb6b8 to 0x1005eb790 (216 bytes)
//
// 1 xrefs:
// > sub_1005EC098 @ 0x1005ec21c
//
// 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_1005EB6B8(int a1, int a2, _DWORD *a3, _DWORD *a4, _QWORD *a5)
{
int v8; // w8
__int64 v9; // x0
_DWORD v11[6]; // [xsp+8h] [xbp-48h] BYREF
if ( !a2 )
return 0;
v11[0] = a1;
v11[1] = a2;
if ( !qword_100884DD0
|| (v8 = sub_1005DE730((int *)qword_100884DD0, (__int64)v11), v8 == -1)
|| (v9 = sub_1005DEA60(qword_100884DD0, v8)) == 0 )
{
v9 = sub_10058B924(
(__int64)v11,
(__int64)&unk_10083DF00,
21,
24,
(__int64 (__fastcall *)(__int64, __int64))sub_1005EB7C4);
if ( !v9 )
return 0;
}
if ( a3 )
*a3 = *(_DWORD *)(v9 + 8);
if ( a4 )
*a4 = *(_DWORD *)(v9 + 12);
if ( a5 )
*a5 = *(_QWORD *)(v9 + 16);
return 1;
}