//
// sub_9069F8 from 0x9069f8 to 0x906a6c (116 bytes)
//
// 3 xrefs:
// > sub_90817C @ 0x9084e8
// > sub_90817C @ 0x9086ae
// > sub_90F434 @ 0x90f742
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:04:18 +0000
//
int __fastcall sub_9069F8(_DWORD *a1)
{
int v2; // r2
int v3; // r2
int v4; // r4
int v5; // r7
int v6; // lr
int v7; // r5
int v8; // r0
int v9; // r12
int v10; // r4
int v11; // r7
int v12; // r1
int v13; // r4
int v14; // r1
int v16; // r1
int v17; // r4
if ( !a1 )
return 2;
v2 = a1[2];
if ( *a1 <= 0xAu )
{
v16 = a1[5];
v17 = a1[4];
a1[5] = -v16;
a1[4] = v17 + v16 * (v2 - 1);
return 0;
}
else
{
v3 = v2 - 1;
v4 = a1[9];
v5 = a1[5];
v6 = a1[10];
v7 = -v4;
v8 = a1[8];
v9 = v5 + v4 * (v3 >> 1);
v10 = a1[6];
a1[9] = v7;
v11 = a1[7];
v12 = v10 + v6 * (v3 >> 1);
v13 = a1[4];
a1[10] = -v6;
a1[5] = v9;
a1[6] = v12;
a1[8] = -v8;
a1[4] = v13 + v8 * v3;
if ( v11 )
{
v14 = a1[11];
a1[11] = -v14;
a1[7] = v11 + v14 * v3;
}
return 0;
}
}