//
// sub_1005594E4 from 0x1005594e4 to 0x10055953c (88 bytes)
//
// 0 xrefs:
//
// 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:07:59 +0000
//
__int64 __fastcall sub_1005594E4(__int64 a1, int a2, __int128 **a3, int *a4, _BYTE *a5)
{
__int128 *v5; // x8
int v6; // w9
__int64 result; // x0
if ( a2 == 2 )
{
if ( *(_BYTE *)(a1 + 3545) )
v5 = &xmmword_1009F8A00;
else
v5 = (__int128 *)(a1 + 536);
v6 = 292;
}
else
{
if ( a2 != 1 )
return 31;
v5 = (__int128 *)(a1 + 3548);
v6 = 128;
}
*a3 = v5;
*a4 = v6;
result = 0;
if ( a5 )
*a5 = 0;
return result;
}