// // sub_918AA4 from 0x918aa4 to 0x918b64 (192 bytes) // // 0 xrefs: // // 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:35 +0000 // bool __fastcall sub_918AA4(int a1, _WORD *a2, int a3) { int v3; // r6 unsigned __int8 *v4; // r12 int v5; // r9 int v6; // r5 int v7; // t1 int v8; // lr int v9; // r7 bool v10; // zf unsigned int v11; // r8 unsigned int v12; // r4 unsigned int v13; // r3 __int16 v14; // r4 unsigned int v15; // r3 __int16 v17; // r8 __int16 v18; // r7 __int16 v19; // r4 v3 = 0; v4 = (unsigned __int8 *)&unk_C4529F; v5 = -1; do { while ( 1 ) { v7 = *++v4; v6 = v7; v12 = *(unsigned __int16 *)(a1 + 2 * v7); v8 = a3 + 2 * v7; v9 = a3 + 4 * v7; v11 = v12 >> 15; v10 = v12 >> 15 == 0; v12 = (__int16)v12; if ( !v10 ) v12 = -(__int16)v12; v13 = *(unsigned __int16 *)(v8 + 192) + v12; if ( v13 > *(_DWORD *)(v9 + 128) ) break; *a2 = 0; *(_WORD *)(a1 + 2 * v6) = 0; LABEL_9: ++v3; ++a2; if ( v3 == 16 ) return v5 >= 0; } v14 = *(_WORD *)(a3 + 2 * v6); v15 = (*(_DWORD *)(v9 + 64) + *(unsigned __int16 *)(v8 + 32) * v13) >> 17; if ( v15 < 0x800 ) { if ( v11 ) v15 = -v15; v17 = v15; v18 = v15; } else { if ( !v11 ) { v5 = v3; *(_WORD *)(a1 + 2 * v6) = 2047 * v14; *a2 = 2047; goto LABEL_9; } v18 = -2047; v15 = -2047; v17 = -2047; } v19 = v17 * v14; if ( v15 ) v5 = v3; ++v3; ++a2; *(_WORD *)(a1 + 2 * v6) = v19; *(a2 - 1) = v18; } while ( v3 != 16 ); return v5 >= 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source