//
// sub_100559680 from 0x100559680 to 0x100559710 (144 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009d4c00
//
// 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_100559680(__int64 *a1, int a2, __int128 *a3, int a4)
{
__int64 result; // x0
__int64 v6; // x8
__int128 v7; // q0
__int128 v8; // q1
__int128 v9; // q2
__int128 v10; // q0
__int128 v11; // q1
__int128 v12; // q2
result = 31;
if ( a2 == 2 )
{
if ( a3 )
return 31;
else
return 0;
}
else if ( a2 == 1 )
{
if ( a3 )
{
if ( a4 == 128 )
{
v6 = *a1;
v7 = *a3;
v8 = a3[1];
v9 = a3[2];
*(_OWORD *)(v6 + 3596) = a3[3];
*(_OWORD *)(v6 + 3580) = v9;
*(_OWORD *)(v6 + 3564) = v8;
*(_OWORD *)(v6 + 3548) = v7;
v10 = a3[4];
v11 = a3[5];
v12 = a3[6];
*(_OWORD *)(v6 + 3660) = a3[7];
*(_OWORD *)(v6 + 3644) = v12;
*(_OWORD *)(v6 + 3628) = v11;
*(_OWORD *)(v6 + 3612) = v10;
*(_WORD *)(v6 + 3544) = 257;
*(_BYTE *)(v6 + 3546) = 1;
return 0;
}
else
{
return 31;
}
}
else
{
return 0;
}
}
return result;
}