// // sub_90AA60 from 0x90aa60 to 0x90ac2c (460 bytes) // // 1 xrefs: // > sub_90B718 @ 0x90bb66 // // 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:22 +0000 // int __fastcall sub_90AA60(unsigned int *a1, int a2) { int v3; // r9 int v4; // r7 char *v5; // r10 char *v6; // r6 int v7; // r11 int v8; // r8 char *v9; // r7 int v10; // r10 char *v11; // r11 char *v12; // r8 char v13; // r0 int v14; // r1 int v15; // r4 int v16; // t1 unsigned int v17; // r6 unsigned int v18; // r2 unsigned int v19; // r3 unsigned int v20; // r4 unsigned int v21; // r0 int v22; // r6 int v23; // r4 int v24; // r12 int v25; // r2 int result; // r0 unsigned int *v27; // r0 unsigned int v28; // r3 unsigned int v29; // r2 int v30; // [sp+0h] [bp-24h] int v32; // [sp+10h] [bp-14h] int v33; // [sp+14h] [bp-10h] _DWORD *v34; // [sp+1Ch] [bp-8h] v3 = 0; v33 = a2 + 1105; v34 = (_DWORD *)a2; do { v32 = v3 + 264; do { v4 = 0; v5 = (char *)&unk_C42CE8 + v3 + 10; do { v6 = v5 - 11; v7 = v3 + v4; v30 = v4; v8 = v3 + 906 + v4; v9 = v5; v10 = v8 + a2; v11 = (char *)&unk_C428C8 + v7; v12 = v6; do { while ( 1 ) { v14 = a1[2]; v16 = (unsigned __int8)*++v12; v15 = v16; v17 = a1[1]; if ( v14 >= 0 ) goto LABEL_7; v27 = (unsigned int *)a1[3]; if ( (unsigned int)v27 >= a1[5] ) { sub_942F38(a1); v14 = a1[2]; LABEL_7: v18 = *a1; goto LABEL_8; } v28 = *v27; v14 += 24; v29 = *a1; a1[2] = v14; a1[3] = (unsigned int)v27 + 3; v18 = (v29 << 24) | (bswap32(v28) >> 8); *a1 = v18; LABEL_8: v19 = (v17 * v15) >> 8; v20 = (v19 - (v18 >> v14)) >> 31; if ( v19 < v18 >> v14 ) { v21 = v19 + 1; v19 = v17 - v19 - 1; *a1 = v18 - (v21 << v14); } if ( v19 <= 0x7E ) { v22 = byte_C48D00[v19]; v19 = byte_C48D80[v19]; a1[2] = v14 - v22; } a1[1] = v19; if ( v20 ) break; v13 = *v11++; *(_BYTE *)++v10 = v13; if ( v9 == v12 ) goto LABEL_14; } ++v11; *(_BYTE *)++v10 = sub_942F78(a1, 8); } while ( v9 != v12 ); LABEL_14: v5 = v9 + 11; v4 = v30 + 11; } while ( v30 != 22 ); v3 += 33; } while ( v3 != v32 ); v23 = v33; v34[495] = v33; v34[498] = v33; v34[499] = v33; v34[500] = v33; v34[501] = v33; v24 = v33 - 33; v34[502] = v33; v34[503] = v33; v25 = v33 + 33; v34[504] = v33; v34[505] = v33; v33 += 264; v34[491] = v23 - 198; v34[507] = v23 - 198; v34[492] = v23 - 165; v34[493] = v23 - 132; v34[494] = v23 - 99; v34[496] = v23 - 66; v34[497] = v24; v34[506] = v25; v34 += 17; } while ( v3 != 1056 ); result = sub_942F78(a1, 1); *(_DWORD *)(a2 + 2236) = result; if ( result ) { result = sub_942F78(a1, 8); *(_BYTE *)(a2 + 2240) = result; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source