//
// sub_1005EB7E8 from 0x1005eb7e8 to 0x1005eb854 (108 bytes)
//
// 4 xrefs:
// > ??> @ 0x1009abcb8
// > ??> @ 0x1009abe60
// > ??> @ 0x1009ac008
// > ??> @ 0x1009ac198
//
// 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_1005EB7E8(__int64 a1, _DWORD *a2, int *a3, _DWORD *a4, _DWORD *a5)
{
int v5; // w8
int v6; // w8
unsigned int v7; // w8
if ( a2 )
*a2 = *(_DWORD *)(a1 + 36);
if ( a3 )
{
if ( (*(_BYTE *)(a1 + 45) & 2) != 0 && !*(_DWORD *)(a1 + 176) )
v5 = 6;
else
v5 = *(_DWORD *)(a1 + 40);
*a3 = v5;
}
if ( a4 )
*a4 = *(_DWORD *)(a1 + 104);
if ( a5 )
{
v6 = *(_DWORD *)(a1 + 40);
*a5 = 0;
v7 = v6 - 1;
if ( v7 <= 4 )
*a5 = dword_100774350[v7];
}
return 0;
}