//
// sub_100427598 from 0x100427598 to 0x100427620 (136 bytes)
//
// 1 xrefs:
// > sub_100426FFC @ 0x10042740c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__n128 __fastcall sub_100427598(__int64 a1, __n128 *a2)
{
int v4; // w8
int v5; // w9
int v6; // w9
int v7; // w8
__int64 v8; // x1
__n128 result; // q0
v4 = *(_DWORD *)(a1 + 8);
v5 = *(_DWORD *)(a1 + 12);
if ( v5 < 0 )
v5 = -v5;
if ( v5 > v4 )
goto LABEL_12;
v6 = (int)(float)((float)v5 * 1.5);
if ( v6 <= v4 + 1 )
v7 = v4 + 1;
else
v7 = v6;
if ( v7 <= 4 )
v8 = 4;
else
v8 = (unsigned int)v7;
if ( !(unsigned int)sub_100427DA8(a1, v8) )
{
v4 = *(_DWORD *)(a1 + 8);
LABEL_12:
result = *a2;
*(__n128 *)(*(_QWORD *)a1 + 16LL * v4) = *a2;
++*(_DWORD *)(a1 + 8);
}
return result;
}