// // sub_EEC758 from 0xeec758 to 0xeecb08 (944 bytes) // // 1 xrefs: // > sub_EECF00 @ 0xeecfd8 // // 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:11:56 +0000 // __int64 __fastcall sub_EEC758(unsigned __int8 *a1, unsigned __int8 *a2, int a3, int a4, int a5, int a6) { int v6; // w3 int v7; // w11 int v8; // w10 int v9; // w22 int v10; // w8 int v11; // w9 __int64 v12; // x21 int v13; // w19 int v14; // w20 int v15; // w7 int v16; // w12 int v17; // w24 int v18; // w23 int v19; // w21 int v20; // w7 int v21; // w11 int v22; // w10 int v23; // w13 int v24; // w8 int v25; // w9 __int64 result; // x0 int v27; // w18 int v28; // w17 int v29; // w7 int v30; // w12 int v31; // w12 int v32; // w20 int v33; // w19 int v34; // w7 int v35; // w7 int v36; // w9 int v37; // w7 int v38; // w9 v6 = 2 * a4 + 1; v7 = 8; do { while ( 1 ) { v8 = *(a1 - 2); v9 = a1[1]; v10 = *(a1 - 1); v11 = *a1; v12 = v8 - v9; v13 = *(a1 - 3); v14 = a1[2]; if ( v6 < byte_11E4BAF[v12] + 4 * byte_11E4BAF[v10 - v11] ) goto LABEL_12; if ( a5 < byte_11E4BAF[*(a1 - 4) - v13] ) goto LABEL_12; if ( a5 < byte_11E4BAF[v13 - v8] ) goto LABEL_12; v15 = byte_11E4BAF[v8 - v10]; if ( a5 < v15 ) goto LABEL_12; if ( a5 < byte_11E4BAF[a1[3] - v14] ) goto LABEL_12; if ( a5 < byte_11E4BAF[v14 - v9] ) goto LABEL_12; v16 = byte_11E4BAF[v9 - v11]; if ( a5 < v16 ) goto LABEL_12; if ( a6 < v15 || a6 < v16 ) break; v17 = byte_11E46AC[3 * (v11 - v10) + byte_11E46AC[v12]]; v18 = (9 * v17 + 63) >> 7; v19 = (18 * v17 + 63) >> 7; v20 = (27 * v17 + 63) >> 7; *(a1 - 3) = byte_11E3FBF[v13 + v18]; *(a1 - 2) = byte_11E3FBF[v8 + v19]; *(a1 - 1) = byte_11E3FBF[v10 + v20]; *a1 = byte_11E3FBF[v11 - v20]; a1[1] = byte_11E3FBF[v9 - v19]; a1[2] = byte_11E3FBF[v14 - v18]; LABEL_12: --v7; a1 += a3; if ( !v7 ) goto LABEL_13; } --v7; v35 = 3 * (v11 - v10) + byte_11E46AC[v12]; v36 = v11 - byte_11E4230[(v35 + 4) >> 3]; *(a1 - 1) = byte_11E3FBF[v10 + byte_11E4230[(v35 + 3) >> 3]]; *a1 = byte_11E3FBF[v36]; a1 += a3; } while ( v7 ); LABEL_13: v21 = 8; while ( 1 ) { LABEL_14: v22 = *(a2 - 2); v23 = a2[1]; v24 = *(a2 - 1); v25 = *a2; result = v22 - v23; v27 = *(a2 - 3); v28 = a2[2]; if ( v6 < byte_11E4BAF[result] + 4 * byte_11E4BAF[v24 - v25] ) goto LABEL_24; if ( a5 < byte_11E4BAF[*(a2 - 4) - v27] ) goto LABEL_24; if ( a5 < byte_11E4BAF[v27 - v22] ) goto LABEL_24; v29 = byte_11E4BAF[v22 - v24]; if ( a5 < v29 ) goto LABEL_24; if ( a5 < byte_11E4BAF[a2[3] - v28] ) goto LABEL_24; if ( a5 < byte_11E4BAF[v28 - v23] ) goto LABEL_24; v30 = byte_11E4BAF[v23 - v25]; if ( a5 < v30 ) goto LABEL_24; if ( a6 < v29 || a6 < v30 ) break; v31 = byte_11E46AC[3 * (v25 - v24) + byte_11E46AC[result]]; v32 = (9 * v31 + 63) >> 7; v33 = (18 * v31 + 63) >> 7; v34 = (27 * v31 + 63) >> 7; *(a2 - 3) = byte_11E3FBF[v27 + v32]; *(a2 - 2) = byte_11E3FBF[v22 + v33]; *(a2 - 1) = byte_11E3FBF[v24 + v34]; *a2 = byte_11E3FBF[v25 - v34]; a2[1] = byte_11E3FBF[v23 - v33]; result = (unsigned __int8)byte_11E3FBF[v28 - v32]; a2[2] = result; LABEL_24: --v21; a2 += a3; if ( !v21 ) return result; } --v21; v37 = 3 * (v25 - v24) + byte_11E46AC[result]; v38 = v25 - byte_11E4230[(v37 + 4) >> 3]; *(a2 - 1) = byte_11E3FBF[v24 + byte_11E4230[(v37 + 3) >> 3]]; result = (unsigned __int8)byte_11E3FBF[v38]; *a2 = result; a2 += a3; if ( v21 ) goto LABEL_14; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source