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