// // sub_6E9C90 from 0x6e9c90 to 0x6e9f4c (700 bytes) // // 3 xrefs: // > sub_6E8098 @ 0x6e8140 // > sub_6E8098 @ 0x6e8144 // > @ 0x6e8290 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // int __fastcall sub_6E9C90(int a1, int a2, int a3) { int result; // r0 int v4; // [sp+18h] [bp-14h] _WORD *v6; // [sp+1Ch] [bp-10h] int v7; // [sp+20h] [bp-Ch] int v8; // [sp+20h] [bp-Ch] int i; // [sp+24h] [bp-8h] v4 = *(_DWORD *)(*(_DWORD *)(a1 + 576) + 4); v7 = a3 / 2; result = a3 / (2 * v4); if ( a3 % (2 * v4) ) result = _assert2(); if ( v7 > v4 ) { v8 = v7 - v4; v6 = (_WORD *)(a2 + 2 * (v8 - 1)); while ( 2 ) { switch ( v4 ) { case 0: goto LABEL_13; case 1: goto LABEL_12; case 2: goto LABEL_11; case 3: goto LABEL_10; case 4: goto LABEL_9; default: for ( i = v4 - 4; i > 0; --i ) { v6[v4] -= *v6; --v6; } LABEL_9: v6[v4] -= *v6; --v6; LABEL_10: v6[v4] -= *v6; --v6; LABEL_11: v6[v4] -= *v6; --v6; LABEL_12: v6[v4] -= *v6; --v6; LABEL_13: v8 -= v4; if ( v8 <= 0 ) return result; continue; } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source