//
// sub_ABE7C from 0xabe7c to 0xabf62 (230 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
//
int __fastcall sub_ABE7C(int *a1, int *a2, int a3)
{
int result; // r0
int v5; // r12
int v6; // lr
float *v7; // r2
int v8; // r8
int v9; // r6
float *v10; // r9
float *v11; // r6
int v12; // r3
int v13; // r5
float *v14; // r3
int v15; // r5
int v16; // r6
float *v17; // r3
int v18; // r5
int v19; // r6
float *v20; // r3
int v21; // r5
int v22; // r6
float v23; // s0
float v24; // s2
float v25; // s4
result = 31;
if ( a1 && a2 && a3 )
{
v5 = *a1;
if ( *a1 && *a2 >= 1 )
{
v6 = *(_DWORD *)(v5 + 128);
if ( v6 )
{
v7 = (float *)(a3 + 44);
v8 = 0;
v9 = *(_DWORD *)(v6 + 68252);
if ( *a2 < v9 )
v9 = *a2;
*a2 = v9;
v10 = (float *)(v6 + 67356);
while ( v8 < v9 )
{
v11 = v7 - 11;
v12 = *((_DWORD *)v10 + 1);
v13 = *((_DWORD *)v10 + 2);
*v11 = *v10;
*((_DWORD *)v11 + 1) = v12;
*((_DWORD *)v11 + 2) = v13;
v14 = v7 - 8;
v15 = *((_DWORD *)v10 + 7);
v16 = *((_DWORD *)v10 + 8);
*v14 = v10[6];
*((_DWORD *)v14 + 1) = v15;
*((_DWORD *)v14 + 2) = v16;
v17 = v7 - 5;
v18 = *((_DWORD *)v10 + 19);
v19 = *((_DWORD *)v10 + 20);
*v17 = v10[18];
*((_DWORD *)v17 + 1) = v18;
*((_DWORD *)v17 + 2) = v19;
v20 = v7 - 2;
v21 = *((_DWORD *)v10 + 13);
v22 = *((_DWORD *)v10 + 14);
*v20 = v10[12];
*((_DWORD *)v20 + 1) = v21;
*(_DWORD *)v7 = v22;
if ( (*(_BYTE *)(v6 + 60) & 4) != 0 && **(_DWORD **)(v5 + 164) >= 0x6Du )
{
v23 = -*v7;
v24 = -*(v7 - 3);
v25 = -*(v7 - 6);
*(v7 - 9) = -*(v7 - 9);
*(v7 - 6) = v25;
*(v7 - 3) = v24;
*v7 = v23;
}
v10 += 28;
v7 += 12;
v9 = *a2;
++v8;
}
return 0;
}
else
{
return 28;
}
}
else
{
return 31;
}
}
return result;
}