// // sub_879F70 from 0x879f70 to 0x87a2b4 (836 bytes) // // 0 xrefs: // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 12:03:05 +0000 // unsigned int __fastcall sub_879F70(int a1, const char **a2, _DWORD *a3, int a4, int a5) { unsigned int v5; // lr unsigned int result; // r0 const char *v9; // r3 const char *v10; // t1 char *v11; // r2 unsigned int v12; // r4 const char *v13; // r5 const char *v14; // r6 const char *v15; // r7 bool v16; // cf char v17; // r8 bool v18; // cf char v19; // r0 bool v20; // cf char v21; // r0 const char *v22; // r7 unsigned int v23; // r8 int v24; // r12 int v25; // r0 bool v26; // cf int v27; // r0 unsigned int v28; // r12 int v29; // r9 bool v30; // cf int v31; // r0 int v32; // r7 bool v33; // cf int v34; // r0 int v35; // r12 const char *v36; // r0 _QWORD *v37; // r8 _QWORD *v38; // r12 char *v39; // r7 unsigned int v40; // r6 const char *v41; // r9 unsigned int v42; // r6 unsigned int v43; // r7 unsigned int v44; // r6 unsigned int v45; // r7 unsigned int v46; // r6 unsigned int v47; // r7 unsigned int v48; // r6 unsigned int v49; // r7 unsigned int v50; // r6 unsigned int v51; // r7 unsigned int v52; // r6 unsigned int v53; // r7 unsigned int v54; // r6 _BYTE *v55; // r3 unsigned int v56; // r4 char v57; // r5 int v58; // [sp+4h] [bp-20h] int v59; // [sp+8h] [bp-1Ch] unsigned int v60; // [sp+1Ch] [bp-8h] int8x8x3_t v61; // 0:d16.8,8:d18.8,16:d20.8 int8x8x3_t v62; // 0:d17.8,8:d19.8,16:d21.8 v5 = *(_DWORD *)(a1 + 28); v58 = 4 * a4 - (_DWORD)a2 - 4; result = v5 - 16; v59 = 3 * v5; v60 = ((v5 - 16) >> 4) + 1; LABEL_2: while ( --a5 >= 0 ) { while ( 1 ) { v10 = *a2++; v9 = v10; result = a3[2]; v11 = *(char **)((char *)a2 + v58 + *a3); v12 = *(unsigned int *)((char *)a2 + v58 + a3[1]); v13 = *(const char **)((char *)a2 + v58 + result); if ( !v5 ) break; v14 = &v11[v5]; v15 = &v9[v59]; v16 = v11 >= &v9[v59]; if ( v11 < &v9[v59] ) v16 = v9 >= v14; v17 = v16; v18 = v12 >= (unsigned int)v15; if ( v12 < (unsigned int)v15 ) v18 = (unsigned int)v9 >= v12 + v5; v19 = v18; v20 = v13 >= v15; if ( v13 < v15 ) v20 = v9 >= &v13[v5]; v21 = v17 & v19; v22 = v11 + 16; v23 = v12 + 16; v24 = v20; if ( v5 > 0xF ) v25 = v21 & 1; else v25 = 0; v26 = v12 >= (unsigned int)v22; if ( v12 < (unsigned int)v22 ) v26 = (unsigned int)v11 >= v23; v27 = v25 & v24; v28 = (unsigned int)(v13 + 16); v29 = v26; v30 = v13 >= v22; if ( v13 < v22 ) v30 = (unsigned int)v11 >= v28; v31 = v27 & v29; v32 = v30; v33 = (unsigned int)v13 >= v23; if ( (unsigned int)v13 < v23 ) v33 = v12 >= v28; v34 = v31 & v32; v35 = v33; if ( (v34 & v35) == 0 ) { v55 = v9 + 3; v56 = v12 - 1; result = (unsigned int)(v13 - 1); do { v57 = *(v55 - 3); v55 += 3; *v11++ = v57; *(_BYTE *)++v56 = *(v55 - 5); *(_BYTE *)++result = *(v55 - 4); } while ( v11 != v14 ); goto LABEL_2; } if ( v5 - 1 <= 0xE ) { result = 0; LABEL_45: v42 = result + 1; v11[result] = *v9; *(_BYTE *)(v12 + result) = v9[1]; v13[result] = v9[2]; if ( v5 > result + 1 ) { v43 = result + 2; v11[v42] = v9[3]; *(_BYTE *)(v12 + v42) = v9[4]; v13[v42] = v9[5]; if ( v5 > result + 2 ) { v44 = result + 3; v11[v43] = v9[6]; *(_BYTE *)(v12 + v43) = v9[7]; v13[v43] = v9[8]; if ( v5 > result + 3 ) { v45 = result + 4; v11[v44] = v9[9]; *(_BYTE *)(v12 + v44) = v9[10]; v13[v44] = v9[11]; if ( v5 > result + 4 ) { v46 = result + 5; v11[v45] = v9[12]; *(_BYTE *)(v12 + v45) = v9[13]; v13[v45] = v9[14]; if ( v5 > result + 5 ) { v47 = result + 6; v11[v46] = v9[15]; *(_BYTE *)(v12 + v46) = v9[16]; v13[v46] = v9[17]; if ( v5 > result + 6 ) { v48 = result + 7; v11[v47] = v9[18]; *(_BYTE *)(v12 + v47) = v9[19]; v13[v47] = v9[20]; if ( v5 > result + 7 ) { v49 = result + 8; v11[v48] = v9[21]; *(_BYTE *)(v12 + v48) = v9[22]; v13[v48] = v9[23]; if ( v5 > result + 8 ) { v50 = result + 9; v11[v49] = v9[24]; *(_BYTE *)(v12 + v49) = v9[25]; v13[v49] = v9[26]; if ( v5 > result + 9 ) { v51 = result + 10; v11[v50] = v9[27]; *(_BYTE *)(v12 + v50) = v9[28]; v13[v50] = v9[29]; if ( v5 > result + 10 ) { v52 = result + 11; v11[v51] = v9[30]; *(_BYTE *)(v12 + v51) = v9[31]; v13[v51] = v9[32]; if ( v5 > result + 11 ) { v53 = result + 12; v11[v52] = v9[33]; *(_BYTE *)(v12 + v52) = v9[34]; v13[v52] = v9[35]; if ( v5 > result + 12 ) { v54 = result + 13; v11[v53] = v9[36]; *(_BYTE *)(v12 + v53) = v9[37]; v13[v53] = v9[38]; if ( v5 > result + 13 ) { result += 14; v11[v54] = v9[39]; *(_BYTE *)(v12 + v54) = v9[40]; v13[v54] = v9[41]; if ( v5 > result ) { v11[result] = v9[42]; *(_BYTE *)(v12 + result) = v9[43]; v13[result] = v9[44]; } } } } } } } } } } } } } } goto LABEL_2; } v36 = v9; v37 = *(const char **)((char *)a2 + v58 + *a3); v38 = *(const char **)((char *)a2 + v58 + a3[1]); v39 = (char *)v13; v40 = 0; do { v61 = vld3_s8(v36); v41 = v36 + 24; ++v40; v36 += 48; v62 = vld3_s8(v41); *v37 = v61.val[0].n64_u64[0]; v37[1] = v62.val[0].n64_u64[0]; v37 += 2; *v38 = v61.val[1].n64_u64[0]; v38[1] = v62.val[1].n64_u64[0]; v38 += 2; *(_QWORD *)v39 = v61.val[2].n64_u64[0]; *((_QWORD *)v39 + 1) = v62.val[2].n64_u64[0]; v39 += 16; } while ( v40 < v60 ); v9 += 48 * v60; result = 16 * v60; if ( v5 != 16 * v60 ) goto LABEL_45; if ( --a5 < 0 ) return result; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source