// // sub_E6DB94 from 0xe6db94 to 0xe6ddd0 (572 bytes) // // 1 xrefs: // > sub_E6E0B4 @ 0xe6e23c // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // 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 13:10:35 +0000 // __int64 __fastcall sub_E6DB94(__int64 a1, __int64 a2) { int v2; // w19 __int64 v4; // x0 int v5; // w0 __int64 i; // x23 int v7; // w28 __int64 v8; // x4 __int16 *v9; // x27 __int64 v10; // x24 __int64 v11; // x21 __int64 v12; // x1 int v13; // w19 __int64 v14; // x25 _QWORD *v15; // x26 int v16; // w20 __int64 v17; // x20 int *v18; // x24 int v19; // w20 int j; // w25 __int64 v21; // x0 unsigned int v22; // w20 __int64 v23; // x19 int v24; // w19 int v25; // w0 int v26; // w19 __int16 *v27; // x1 void (__fastcall *v29)(__int64); // x5 void (__fastcall *v30)(__int64); // x5 int v31; // w0 __int64 v32; // [xsp+60h] [xbp+60h] v2 = *(_DWORD *)(a1 + 316); v4 = *(_QWORD *)(a1 + 560); v32 = v4; if ( v2 ) { v5 = *(_DWORD *)(v4 + 56); if ( !v5 ) { v31 = *(_DWORD *)(a1 + 372); if ( v31 > 0 ) memset((void *)(v32 + 36), 0, 4 * ((unsigned int)(v31 - 1) + 1LL)); v5 = v2; } *(_DWORD *)(v32 + 56) = v5 - 1; } for ( i = 0; *(_DWORD *)(a1 + 416) > (int)i; *(_DWORD *)(v11 + 36) = *v27 ) { v7 = *(_DWORD *)(a1 + 488); v8 = *(int *)(a1 + 4 * i + 420); v9 = *(__int16 **)(a2 + 8 * i); v10 = *(_QWORD *)(a1 + 480); v11 = v32 + 4 * v8; v12 = *(_QWORD *)(a1 + 8 * v8 + 376); v13 = abs32(*v9 - *(_DWORD *)(v11 + 36)); v14 = *(_QWORD *)(v32 + 8 * (*(int *)(v12 + 20) + 16LL)); v15 = *(_QWORD **)(v32 + 8 * (*(int *)(v12 + 24) + 20LL)); if ( v13 ) { v16 = 0; do { v13 >>= 1; ++v16; } while ( v13 ); if ( v16 > 11 ) { v29 = **(void (__fastcall ***)(__int64))a1; *(_DWORD *)(*(_QWORD *)a1 + 40LL) = 6; v29(a1); } v17 = 8LL * v16; } else { v17 = 0; } ++*(_QWORD *)(v14 + v17); if ( v7 > 0 ) { v18 = (int *)(v10 + 4); v19 = 0; for ( j = 1; j <= v7; ++j ) { v21 = v9[*v18]; if ( v9[*v18] ) { if ( v19 > 15 ) { v22 = v19 - 16; v23 = v22 >> 4; v19 = v22 - 16 * v23; v15[240] += 1 + v23; } v24 = 1; v25 = (int)abs64(v21) >> 1; if ( v25 ) { do { v25 >>= 1; ++v24; } while ( v25 ); if ( v24 > 10 ) { v30 = **(void (__fastcall ***)(__int64))a1; *(_DWORD *)(*(_QWORD *)a1 + 40LL) = 6; v30(a1); } } v26 = v24 + 16 * v19; v19 = 0; ++v15[v26]; } else { ++v19; } ++v18; } if ( v19 ) ++*v15; } v27 = *(__int16 **)(a2 + 8 * i++); } return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source