//
// sub_1005EB874 from 0x1005eb874 to 0x1005eb8b0 (60 bytes)
//
// 4 xrefs:
// > ??> @ 0x1009abcc8
// > ??> @ 0x1009abe70
// > ??> @ 0x1009ac018
// > ??> @ 0x1009ac1a8
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:09:45 +0000
//
__int64 __fastcall sub_1005EB874(__int64 a1, unsigned __int64 a2, unsigned __int64 a3)
{
__int64 v3; // x8
__int64 result; // x0
if ( !(a2 | a3) )
return 31;
if ( a2 )
*(_DWORD *)a2 = 0;
if ( a3 )
*(_DWORD *)a3 = 0;
v3 = *(_QWORD *)(a1 + 96);
if ( !v3 )
return 0;
result = *(_QWORD *)(v3 + 360);
if ( result )
return sub_1005D8808((_QWORD *)result, (_DWORD *)a2, (_DWORD *)a3);
return result;
}