// // sub_8788DC from 0x8788dc to 0x878a6c (400 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:04 +0000 // int __fastcall sub_8788DC(_DWORD *a1, int a2) { int v2; // r2 int v5; // r4 int v6; // r8 int v7; // r6 __int16 *v8; // r3 int v9; // r2 int v10; // r6 int v11; // r7 int v12; // r2 int v13; // r3 int v14; // r4 int v15; // r9 _BYTE *v16; // r11 _BYTE *v17; // r10 int v18; // r4 int v19; // r9 int v20; // r11 char *v21; // r7 int v23; // r2 int v24; // r4 int v25; // r3 int v26; // r2 int v27; // [sp+4h] [bp-10h] _DWORD *v28; // [sp+8h] [bp-Ch] int v29; // [sp+Ch] [bp-8h] v2 = a1[106]; v27 = v2; if ( a1[59] ) { v5 = *(_DWORD *)(v2 + 68); if ( !v5 ) { v24 = a1[106]; sub_877FFC(a1, *(_DWORD *)(v2 + 72)); v25 = *(_DWORD *)(v24 + 72); v26 = v24; v5 = a1[59]; *(_DWORD *)(v26 + 72) = ((_BYTE)v25 + 1) & 7; } *(_DWORD *)(v27 + 68) = v5 - 1; } if ( (int)a1[80] > 0 ) { v6 = 0; v29 = a2 - 4; v28 = a1 + 80; do { while ( 1 ) { v7 = v28[1]; ++v28; v8 = *(__int16 **)(v29 + 4); v29 += 4; v9 = v7 + 74; v10 = v27 + 4 * v7; v11 = *(_DWORD *)(a1[v9] + 20); v12 = *v8 >> a1[94]; v13 = *(_DWORD *)(v10 + 52); v14 = v12 - *(_DWORD *)(v10 + 36); v15 = v27 + 4 * v11; v16 = (_BYTE *)(*(_DWORD *)(v15 + 76) + v13); if ( v14 ) break; sub_8779A0((int)a1, (_BYTE *)(*(_DWORD *)(v15 + 76) + v13)); *(_DWORD *)(v10 + 52) = 0; LABEL_8: if ( a1[80] <= ++v6 ) return 1; } *(_DWORD *)(v10 + 36) = v12; sub_8776CC((int)a1, v16); if ( v14 <= 0 ) { sub_8776CC((int)a1, v16 + 1); v14 = -v14; v17 = v16 + 3; *(_DWORD *)(v10 + 52) = 8; } else { v17 = v16 + 2; sub_8779A0((int)a1, v16 + 1); *(_DWORD *)(v10 + 52) = 4; } v18 = v14 - 1; if ( v18 ) { sub_8776CC((int)a1, v17); v23 = *(_DWORD *)(v15 + 76); v19 = v18 >> 1; v20 = 1; v17 = (_BYTE *)(v23 + 20); if ( v18 >> 1 ) { do { sub_8776CC((int)a1, v17); v19 >>= 1; v20 *= 2; ++v17; } while ( v19 ); v19 = v20 >> 1; } } else { v19 = 0; v20 = 0; } v21 = (char *)a1 + v11; sub_8779A0((int)a1, v17); if ( v20 >= 1 << v21[152] >> 1 ) { if ( v20 > 1 << v21[168] >> 1 ) *(_DWORD *)(v10 + 52) += 8; } else { *(_DWORD *)(v10 + 52) = 0; } if ( !v19 ) goto LABEL_8; do { sub_8773F4((int)a1, v17 + 14, (v19 & v18) != 0); v19 >>= 1; } while ( v19 ); ++v6; } while ( a1[80] > v6 ); } return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source