// // sub_A60A0 from 0xa60a0 to 0xa6154 (180 bytes) // // 2 xrefs: // > sub_A5D24 @ 0xa5dc0 // > sub_A64D6 @ 0xa6656 // // 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 11:41:35 +0000 // int __fastcall sub_A60A0(int result) { int v1; // r5 int v2; // r2 int v3; // r1 int *v4; // r4 int v5; // r6 int v6; // t1 int v7; // r3 int v8; // r4 float *v9; // r2 float v10; // s4 int v11; // r5 int v12; // r6 int v13; // r5 v1 = *(_DWORD *)(result + 824); v2 = 0; v3 = -1; v4 = (int *)&unk_41344; while ( v2 != 5 ) { v5 = v3; if ( v1 < 9 ) v5 = v2; v6 = *v4; v4 += 9; ++v2; if ( v6 == v1 ) v3 = v5; } v7 = result + 496; v8 = 0; v9 = (float *)((char *)&unk_41344 + 36 * v3 + 4); while ( v8 < v1 ) { if ( v3 < 0 ) v10 = (float)(*(float *)(result + 408) * 5.0) / (float)v1; else v10 = *(float *)(result + 408) * *v9; v11 = (int)(float)((float)(*(float *)(result + 400) - v10) * *(float *)(result + 444)); *(_DWORD *)(v7 + 4 * v8) = v11; v12 = *(_DWORD *)(result + 448); if ( v12 <= v11 ) { v13 = v11 - v12; } else { if ( v11 > -1 ) goto LABEL_18; v13 = v11 + v12; } *(_DWORD *)(v7 + 4 * v8) = v13; LABEL_18: ++v9; v1 = *(_DWORD *)(result + 824); ++v8; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source