// // sub_ED0E10 from 0xed0e10 to 0xed1408 (1528 bytes) // // 1 xrefs: // > sub_ED3238 @ 0xed33e4 // // 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:40 +0000 // __int64 __fastcall sub_ED0E10(__int64 a1, char *a2, __int64 a3) { __int64 result; // x0 __int64 v4; // x2 char *v5; // x1 __int64 v6; // x5 __int64 v7; // x9 __int64 v8; // x6 unsigned __int64 v9; // x4 char *v10; // x3 __int64 v11; // x13 unsigned __int64 v12; // x16 unsigned __int64 v13; // x6 __int64 v14; // x15 int8x16_t *v15; // x14 int8x16_t *v16; // x4 int8x16_t *v17; // x18 unsigned __int64 v18; // x17 int8x16_t v19; // q1 int8x16_t v20; // q0 __int64 v21; // x3 char v22; // w4 char v23; // w3 char v24; // w7 char v25; // w6 unsigned int v26; // w5 char *v27; // x4 char v28; // w5 char v29; // w4 char v30; // w3 char v31; // w9 char v32; // w8 char v33; // w7 unsigned int v34; // w6 result = *(_QWORD *)(*(_QWORD *)(a1 + 848) + 8LL); if ( result < a3 ) { v4 = a3 - result; if ( result == 3 ) { v22 = *a2; v23 = a2[1]; LOBYTE(result) = a2[2]; do { v24 = a2[3]; v4 -= 3; v25 = a2[4]; v26 = (unsigned __int8)a2[5]; a2[3] = v24 - v22; a2[4] = v25 - v23; a2[5] = v26 - result; v22 = v24; a2 += 3; v23 = v25; result = v26; } while ( v4 > 0 ); } else { if ( result != 4 ) { v5 = &a2[v4 - 1]; v6 = result - 4; v7 = result - 15; while ( result != 1 ) { if ( result == 2 ) { v21 = 2; goto LABEL_50; } if ( result ) { v8 = result - 1; if ( v6 <= 0 ) goto LABEL_49; if ( (&v5[v7] >= v5 + 1 || result + 1 < -14) && (unsigned __int64)v6 > 0x12 ) { v9 = ((_BYTE)v5 + (_BYTE)v7) & 0xF; if ( v9 > v6 ) v9 = result - 4; if ( v9 ) { v10 = v5 - 1; v11 = result - 5; v5[result] -= *v5; if ( v9 != 1 ) { v11 = result - 6; v10[result] -= *(v5 - 1); v10 = v5 - 2; if ( v9 != 2 ) { v11 = result - 7; v10[result] -= *(v5 - 2); v10 = v5 - 3; if ( v9 != 3 ) { v11 = result - 8; v10[result] -= *(v5 - 3); v10 = v5 - 4; if ( v9 != 4 ) { v11 = result - 9; v10[result] -= *(v5 - 4); v10 = v5 - 5; if ( v9 != 5 ) { v11 = result - 10; v10[result] -= *(v5 - 5); v10 = v5 - 6; if ( v9 != 6 ) { v11 = result - 11; v10[result] -= *(v5 - 6); v10 = v5 - 7; if ( v9 != 7 ) { v11 = result - 12; v10[result] -= *(v5 - 7); v10 = v5 - 8; if ( v9 != 8 ) { v11 = result - 13; v10[result] -= *(v5 - 8); v10 = v5 - 9; if ( v9 != 9 ) { v11 = result - 14; v10[result] -= *(v5 - 9); v10 = v5 - 10; if ( v9 != 10 ) { v11 = result - 15; v10[result] -= *(v5 - 10); v10 = v5 - 11; if ( v9 != 11 ) { v11 = result - 16; v10[result] -= *(v5 - 11); v10 = v5 - 12; if ( v9 != 12 ) { v11 = result - 17; v10[result] -= *(v5 - 12); v10 = v5 - 13; if ( v9 != 13 ) { v11 = result - 18; v10[result] -= *(v5 - 13); v10 = v5 - 14; if ( v9 == 15 ) { v11 = result - 19; v10[result] -= *(v5 - 14); v10 = v5 - 15; } } } } } } } } } } } } } } } else { v11 = result - 4; v10 = v5; } v12 = v6 - v9; v13 = ((v6 - v9 - 16) >> 4) + 1; v14 = 16 * v13; if ( result - 5 - v9 <= 0xE ) goto LABEL_33; v15 = (int8x16_t *)&v5[v7 - v9]; v16 = (int8x16_t *)&v5[-15LL - v9]; v17 = v15; v18 = 0; do { v19 = *v15; ++v18; v20 = *v16; --v15; --v16; *v17-- = vqtbl1q_s8( vsubq_s8( vqtbl1q_s8(v19, (int8x16_t)xmmword_ED1410), vqtbl1q_s8(v20, (int8x16_t)xmmword_ED1410)), (int8x16_t)xmmword_ED1410); } while ( v18 < v13 ); v10 -= v14; v11 -= v14; if ( v12 != v14 ) { LABEL_33: v8 = result - 1; v10[result] -= *v10; if ( v11 - 1 > 0 ) { v10[v8] -= *(v10 - 1); if ( v11 != 2 ) { v10[result - 2] -= *(v10 - 2); if ( v11 != 3 ) { v10[result - 3] -= *(v10 - 3); if ( v11 != 4 ) { v10[result - 4] -= *(v10 - 4); if ( v11 != 5 ) { v10[result - 5] -= *(v10 - 5); if ( v11 != 6 ) { v10[result - 6] -= *(v10 - 6); if ( v11 != 7 ) { v10[result - 7] -= *(v10 - 7); if ( v11 != 8 ) { v10[result - 8] -= *(v10 - 8); if ( v11 != 9 ) { v10[result - 9] -= *(v10 - 9); if ( v11 != 10 ) { v10[result - 10] -= *(v10 - 10); if ( v11 != 11 ) { v10[result - 11] -= *(v10 - 11); if ( v11 != 12 ) { v10[result - 12] -= *(v10 - 12); if ( v11 != 13 ) { v10[result - 13] -= *(v10 - 13); if ( v11 != 14 ) v10[result - 14] -= *(v10 - 14); } } } } } } } } } } } } } LABEL_48: v5 += 4 - result; LABEL_49: v21 = result; v5[result] -= *v5; v5[v8] -= *(v5 - 1); v5 -= 2; LABEL_50: v5[v21] -= *v5; --v5; LABEL_51: v5[v21] -= *v5; --v5; goto LABEL_52; } } else { v27 = &v5[result]; do { *v27 -= v27[-result]; --v27; } while ( v27 != v5 + 4 ); } v8 = result - 1; goto LABEL_48; } LABEL_52: v4 -= result; if ( v4 <= 0 ) return result; } v21 = 1; goto LABEL_51; } v28 = *a2; v29 = a2[1]; v30 = a2[2]; LOBYTE(result) = a2[3]; do { v31 = a2[4]; v4 -= 4; v32 = a2[5]; v33 = a2[6]; v34 = (unsigned __int8)a2[7]; a2[4] = v31 - v28; a2[5] = v32 - v29; a2[6] = v33 - v30; v28 = v31; a2[7] = v34 - result; v29 = v32; a2 += 4; v30 = v33; result = v34; } while ( v4 > 0 ); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source