// // sub_70BECC from 0x70becc to 0x70c262 (918 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 // int __fastcall sub_70BECC(int result, int a2, int a3, int a4, int a5, int a6) { int v6; // r1 _BYTE *v8; // r2 int v9; // r11 _BYTE *v10; // r5 _BYTE *v11; // r5 _BYTE *v12; // r1 _BYTE *v13; // r7 bool v14; // cc _BYTE *v15; // r4 int v16; // r6 bool v17; // cf int v18; // r4 unsigned int v19; // r4 int v20; // r6 unsigned int v21; // r12 unsigned int v22; // lr int v23; // r8 int8x16_t *v24; // r11 int8x16_t *v25; // r4 unsigned int v26; // r3 int8x16_t *v27; // r9 int8x16_t v28; // q8 int v29; // r4 int v30; // r6 _BYTE *v31; // lr char *v32; // r6 _BYTE *v33; // r7 char v34; // r8 char v35; // t1 char v36; // t1 char v37; // r3 _BYTE *v38; // r4 int v39; // [sp+0h] [bp-14h] int v40; // [sp+4h] [bp-10h] v6 = a4 * a3; v8 = (_BYTE *)(a6 + a4 * a3); v9 = a4 + a5; v10 = &v8[-a3]; if ( !a4 ) { if ( result > 1 ) { v37 = *(_BYTE *)(a6 + v6); v38 = v8 + 1; do { v37 += *v38; *v38++ = v37; } while ( v38 != &v8[result] ); } v10 = v8; a4 = 1; v8 += a3; } if ( v9 > a4 ) { v11 = v10 - 1; v12 = v8 + 16; v39 = a4; v40 = v9; do { v13 = v11 + 1; if ( result > 0 ) { v14 = v8 > v12; if ( v8 >= v12 ) v14 = (unsigned int)result > 0x13; v15 = v11 + 17; v16 = v14; v17 = v8 >= v15; if ( v8 < v15 ) v17 = v13 >= v12; v18 = v17; if ( (v16 & v18) != 0 ) { v19 = -((unsigned __int8)v8 & 7) & 0xF; if ( v19 >= result ) v19 = result; if ( !v19 ) goto LABEL_55; *(v12 - 16) += v11[1]; if ( v19 == 1 ) goto LABEL_55; *(v12 - 15) += v11[2]; if ( v19 == 2 ) goto LABEL_55; *(v12 - 14) += v11[3]; if ( v19 == 3 ) goto LABEL_55; *(v12 - 13) += v11[4]; if ( v19 == 4 ) goto LABEL_55; *(v12 - 12) += v11[5]; if ( v19 == 5 ) goto LABEL_55; *(v12 - 11) += v11[6]; if ( v19 == 6 ) goto LABEL_55; *(v12 - 10) += v11[7]; if ( v19 == 7 ) { v20 = 7; goto LABEL_34; } *(v12 - 9) += v11[8]; if ( v19 == 8 || (*(v12 - 8) += v11[9], v19 == 9) || (*(v12 - 7) += v11[10], v19 == 10) || (*(v12 - 6) += v11[11], v19 == 11) || (*(v12 - 5) += v11[12], v19 == 12) || (*(v12 - 4) += v11[13], v19 == 13) ) { LABEL_55: v20 = v19; } else { *(v12 - 3) += v11[14]; if ( v19 == 15 ) { v20 = 15; *(v12 - 2) += v11[15]; } else { v20 = 14; } } LABEL_34: v21 = result - v19; v22 = ((result - v19 - 16) >> 4) + 1; v23 = 16 * v22; if ( result - 1 - v19 <= 0xE ) goto LABEL_38; v24 = (int8x16_t *)&v8[v19]; v25 = (int8x16_t *)&v13[v19]; v26 = 0; v27 = v24; do { ++v26; v28 = vaddq_s8(*v25++, *v24++); *v27++ = v28; } while ( v26 < v22 ); v20 += v23; if ( v21 != v23 ) { LABEL_38: v8[v20] += v13[v20]; if ( result > v20 + 1 ) { v8[v20 + 1] += v13[v20 + 1]; if ( result > v20 + 2 ) { v8[v20 + 2] += v13[v20 + 2]; if ( result > v20 + 3 ) { v8[v20 + 3] += v13[v20 + 3]; if ( result > v20 + 4 ) { v8[v20 + 4] += v13[v20 + 4]; if ( result > v20 + 5 ) { v8[v20 + 5] += v13[v20 + 5]; if ( result > v20 + 6 ) { v8[v20 + 6] += v13[v20 + 6]; if ( result > v20 + 7 ) { v8[v20 + 7] += v13[v20 + 7]; if ( result > v20 + 8 ) { v8[v20 + 8] += v13[v20 + 8]; if ( result > v20 + 9 ) { v8[v20 + 9] += v13[v20 + 9]; if ( result > v20 + 10 ) { v8[v20 + 10] += v13[v20 + 10]; if ( result > v20 + 11 ) { v8[v20 + 11] += v13[v20 + 11]; if ( result > v20 + 12 ) { v29 = v20 + 13; v8[v20 + 12] += v13[v20 + 12]; if ( result > v20 + 13 ) { v30 = v20 + 14; v8[v29] += v13[v29]; if ( result > v30 ) v8[v30] += v13[v30]; } } } } } } } } } } } } } } goto LABEL_53; } v31 = v8 - 1; v32 = v8; v33 = v11; do { v35 = *v32++; v34 = v35; v36 = *++v33; *++v31 = v36 + v34; } while ( v32 != &v8[result] ); } LABEL_53: v8 += a3; v11 += a3; v12 += a3; ++v39; } while ( v39 != v40 ); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source