//
// sub_100559710 from 0x100559710 to 0x10055976c (92 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009d4c20
//
// 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_100559710(__int64 *a1, int a2, __int128 **a3, int *a4, _BYTE *a5)
{
__int64 v5; // x8
__int128 *v6; // x8
int v7; // w9
int v8; // w9
__int64 result; // x0
v5 = *a1;
if ( a2 == 2 )
{
v8 = *(unsigned __int8 *)(v5 + 3545);
v6 = (__int128 *)(v5 + 536);
if ( v8 )
v6 = &xmmword_1009F8A00;
v7 = 292;
}
else
{
if ( a2 != 1 )
return 31;
v6 = (__int128 *)(v5 + 3548);
v7 = 128;
}
*a3 = v6;
*a4 = v7;
result = 0;
if ( a5 )
*a5 = 0;
return result;
}