// // sub_701768 from 0x701768 to 0x7019b8 (592 bytes) // // 0 xrefs: // // 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 // const char *__fastcall sub_701768( const char *result, const char *a2, const char *a3, const char *a4, int a5, unsigned int a6) { unsigned int v6; // r8 bool v7; // cf unsigned int v8; // r6 unsigned int v9; // r7 unsigned int v10; // r12 char v11; // lr int v12; // lr bool v13; // cf int v14; // r6 bool v15; // cf int v16; // r6 int v17; // r7 bool v18; // cf int v19; // r6 int v20; // r12 int v21; // r12 const char *v22; // lr const char *v23; // r7 const char *v24; // r8 const char *v25; // r12 unsigned int v26; // r3 int64x2_t *v27; // r6 const char *v28; // r11 const char *v29; // r9 const char *v30; // r10 int64x2_t *v31; // r11 uint16x8_t v32; // q9 uint16x8_t v33; // q11 __int128 v34; // q0 const char *v35; // r9 int64x2_t v36; // q15 int64x2_t *v37; // r9 uint16x8_t v38; // q8 uint16x8_t v39; // q13 int64x2_t *v40; // r10 __int128 v41; // q5 int64x2_t v42; // q0 uint16x8_t v43; // q10 uint16x8_t v44; // q12 uint16x4_t v45; // d28 uint16x4_t v46; // d29 uint16x8_t v47; // q9 uint16x8_t v48; // q8 int v49; // lr int *v50; // r4 int v51; // r8 int v52; // r6 int v53; // r12 int v54; // r7 unsigned int v55; // r8 int v56; // lr int v57; // r4 int v58; // r7 int v59; // r6 unsigned int v60; // [sp+Ch] [bp-20h] const char *v61; // [sp+24h] [bp-8h] int8x8_t v62; // 0:d0.8 int8x8_t v63; // 0:d1.8 int8x8_t v64; // 0:d8.8 int8x8_t v65; // 0:d9.8 int8x8_t v66; // 0:d24.8 int8x8_t v67; // 0:d25.8 if ( a5 > 0 ) { v6 = a6 + 64; v7 = a6 >= (unsigned int)(result + 64); if ( a6 < (unsigned int)(result + 64) ) v7 = (unsigned int)result >= v6; v8 = (unsigned int)(a2 + 64); v9 = (unsigned int)(a3 + 64); v10 = (unsigned int)(a4 + 64); v11 = v7; if ( (unsigned int)a5 > 0xF ) v12 = v11 & 1; else v12 = 0; v13 = a6 >= v8; if ( a6 < v8 ) v13 = (unsigned int)a2 >= v6; v14 = v13; v15 = a6 >= v9; if ( a6 < v9 ) v15 = (unsigned int)a3 >= v6; v16 = v12 & v14; v17 = v15; v18 = a6 >= v10; if ( a6 < v10 ) v18 = (unsigned int)a4 >= v6; v19 = v16 & v17; v20 = v18; v21 = v19 & v20; if ( v21 ) { v60 = ((unsigned int)(a5 - 17) >> 4) + 1; if ( a5 == 16 ) { v49 = 0; } else { v22 = a3; v23 = a4; v24 = result; v61 = a4; v25 = a2; v26 = 0; v27 = (int64x2_t *)a6; do { v62.n64_u64[0] = vld4_s8(v25).val[0].n64_u64[0]; v28 = v25 + 32; v29 = v22 + 32; v30 = v24 + 32; ++v26; v25 += 64; v66.n64_u64[0] = vld4_s8(v22).val[0].n64_u64[0]; v22 += 64; v63.n64_u64[0] = vld4_s8(v28).val[0].n64_u64[0]; v31 = v27 + 1; v64.n64_u64[0] = vld4_s8(v24).val[0].n64_u64[0]; v24 += 64; v32 = vmovl_u8(v62); v33 = vmovl_u8(v63); *(_QWORD *)&v34 = vld4_s8(v23).val[0].n64_u64[0]; v67.n64_u64[0] = vld4_s8(v29).val[0].n64_u64[0]; v35 = v23 + 32; v23 += 64; v36 = vshll_n_s16((int16x4_t)v32.n128_u64[0], 0x10u); *((_QWORD *)&v34 + 1) = vld4_s8(v35).val[0].n64_u64[0]; v37 = v27 + 3; v38 = vmovl_u8(v66); v65.n64_u64[0] = vld4_s8(v30).val[0].n64_u64[0]; v39 = vmovl_u8(v67); v40 = v27 + 2; v41 = v34; v42 = vshll_n_s16(*(int16x4_t *)&v32.n128_i8[8], 0x10u); v43 = vmovl_u8(v65); v44 = vmovl_u8(v64); v45.n64_u64[0] = v38.n128_u64[0]; v46.n64_u64[0] = *(unsigned __int64 *)&v38.n128_i8[8]; v47 = vmovl_u8(*(uint8x8_t *)&v41); v48 = vmovl_u8(*((uint8x8_t *)&v41 + 1)); *v27 = vorrq_s64( vorrq_s64(vorrq_s64(vshll_n_u16(v45, 8u), v36), vmovl_u16((uint16x4_t)v47.n128_u64[0])), vshlq_n_s32(vmovl_u16((uint16x4_t)v44.n128_u64[0]), 0x18u)); v27 += 4; *v31 = vorrq_s64( vorrq_s64(vorrq_s64(vshll_n_u16(v46, 8u), v42), vmovl_u16(*(uint16x4_t *)&v47.n128_i8[8])), vshlq_n_s32(vmovl_u16(*(uint16x4_t *)&v44.n128_i8[8]), 0x18u)); *v40 = vorrq_s64( vorrq_s64( vorrq_s64( vshll_n_u16((uint16x4_t)v39.n128_u64[0], 8u), vshll_n_s16((int16x4_t)v33.n128_u64[0], 0x10u)), vmovl_u16((uint16x4_t)v48.n128_u64[0])), vshlq_n_s32(vmovl_u16((uint16x4_t)v43.n128_u64[0]), 0x18u)); *v37 = vorrq_s64( vorrq_s64( vorrq_s64( vshll_n_u16(*(uint16x4_t *)&v39.n128_i8[8], 8u), vshll_n_s16(*(int16x4_t *)&v33.n128_i8[8], 0x10u)), vmovl_u16(*(uint16x4_t *)&v48.n128_i8[8])), vshlq_n_s32(vmovl_u16(*(uint16x4_t *)&v43.n128_i8[8]), 0x18u)); } while ( v60 > v26 ); v49 = 16 * v60; a4 = v61; if ( a5 == 16 * v60 ) return result; } v50 = (int *)(a6 + 4 * v49); do { v51 = (unsigned __int8)result[4 * v49]; v52 = (unsigned __int8)a4[4 * v49]; v53 = (unsigned __int8)a2[4 * v49]; v54 = (unsigned __int8)a3[4 * v49++]; *v50++ = v52 | (v51 << 24) | (v53 << 16) | (v54 << 8); } while ( a5 > v49 ); return result; } v55 = a6 - 4; do { v56 = (unsigned __int8)result[4 * v21]; v57 = (unsigned __int8)a4[4 * v21]; v58 = (unsigned __int8)a2[4 * v21]; v59 = (unsigned __int8)a3[4 * v21++]; *(_DWORD *)(v55 + 4) = v57 | (v56 << 24) | (v58 << 16) | (v59 << 8); v55 += 4; } while ( v21 != a5 ); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source