// // sub_87A590 from 0x87a590 to 0x87a63c (172 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:03:05 +0000 // int __fastcall sub_87A590(int a1, _DWORD *a2, int a3, int a4, int a5, int a6, int a7) { int v7; // r4 int result; // r0 int v10; // r5 int v12; // r6 int v13; // r9 int v14; // r10 char **v15; // r11 bool v16; // cc __int16 v17; // r3 int v18; // r2 char *v19; // t1 int v20; // r3 int v21; // t1 int v22; // r1 void (__fastcall *v23)(char *, int, int); // [sp+4h] [bp-118h] int v24; // [sp+8h] [bp-114h] int v25; // [sp+Ch] [bp-110h] char *v26; // [sp+14h] [bp-108h] BYREF char v27; // [sp+18h] [bp-104h] BYREF _BYTE v28[8]; // [sp+114h] [bp-8h] BYREF v7 = *(_DWORD *)(a1 + 420); result = a5; v24 = a3 + 4 * a5; v23 = *(void (__fastcall **)(char *, int, int))(v7 + 4 * a2[1] + 44); if ( a7 ) { v10 = a4 - 2; v12 = 0; v25 = a2[21] - 4; v26 = &v27; do { v13 = v10; v14 = v25; v23(v26, v24, a6); v15 = &v26; do { while ( 1 ) { v19 = v15[1]; ++v15; v18 = (int)v19; v21 = *(_DWORD *)(v14 + 4); v14 += 4; v20 = v21; v22 = v21; result = v18 + (v21 >> 1); if ( v18 >= 0 ) { v16 = v20 <= result; v17 = 0; if ( v16 ) { result /= v22; v17 = result; } goto LABEL_7; } result = (v20 >> 1) - v18; v16 = v20 <= result; v17 = 0; if ( v16 ) break; LABEL_7: *(_WORD *)(v13 + 2) = v17; v13 += 2; if ( v15 == (char **)v28 ) goto LABEL_12; } result = -(result / v22); *(_WORD *)(v13 + 2) = result; v13 += 2; } while ( v15 != (char **)v28 ); LABEL_12: ++v12; v10 += 128; a6 += a2[9]; } while ( v12 != a7 ); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source