// // sub_10060C518 from 0x10060c518 to 0x10060c754 (572 bytes) // // 0 xrefs: // // 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 11:10:07 +0000 // _QWORD *__fastcall sub_10060C518(__int64 a1, __int64 a2, int **a3, _QWORD *a4, _DWORD *a5, int a6) { int v9; // w25 __int64 v10; // x8 _QWORD *v11; // x9 int *v12; // x26 __int64 v13; // x27 int v14; // w28 int v15; // w21 int v16; // w22 _QWORD *v17; // x0 _QWORD *v18; // x19 __int64 v19; // x24 _QWORD *v20; // x21 __int64 v21; // x22 _QWORD *v22; // x0 int v23; // w8 __int64 v24; // x9 __int64 v25; // x12 __int64 v26; // x13 __int64 v27; // x14 float *v28; // x14 float v29; // s2 __int64 v30; // x15 float v31; // s1 float v32; // t1 float v33; // s3 float v34; // s4 float v35; // s2 float *v36; // x15 float v37; // s3 int **v40; // [xsp+8h] [xbp-68h] __int64 v41; // [xsp+10h] [xbp-60h] if ( a6 < 1 ) return nullptr; v9 = 0; v10 = (unsigned int)a6; v11 = a4; do { if ( *a5 ) a4[v9++] = *v11; ++v11; ++a5; --v10; } while ( v10 ); if ( !v9 ) return nullptr; v12 = *a3; v13 = (unsigned int)(*a3)[2]; v14 = (*a3)[3]; v16 = **a3; v15 = (*a3)[1]; v17 = sub_100552B78(a1, a2, 8 * v9); v18 = v17; if ( v17 ) { v40 = a3; v41 = (unsigned int)((v15 - v16) / (int)v13); if ( v9 >= 1 ) { v19 = 4LL * (int)v41; v20 = v17; v21 = (unsigned int)v9; do { v22 = sub_100552B78(a1, a2, v19); *v20 = v22; if ( !v22 ) return nullptr; bzero(v22, v19); ++v20; } while ( --v21 ); } if ( (int)v41 < 1 ) { LABEL_37: ++*((_DWORD *)v40 + 16); return v18; } v23 = 0; v24 = 0; while ( v9 < 1 ) { LABEL_14: ++v24; v23 += v13; if ( v24 == v41 ) goto LABEL_37; } v25 = 0; v26 = 4LL * (*v12 + v23); while ( 1 ) { if ( (int)v13 < 1 ) { v31 = 0.0; v29 = 0.0; if ( v14 > 1 ) goto LABEL_27; } else { v28 = (float *)(a4[v25] + v26); v29 = 0.0; v30 = v13; v31 = 0.0; do { v32 = *v28++; v33 = v32; v34 = fabsf(v32); if ( v34 > v31 ) v31 = v34; v29 = v29 + fabsf(rintf(v33)); --v30; } while ( v30 ); if ( v14 > 1 ) { LABEL_27: v27 = 0; v35 = (float)(int)(float)((float)(100.0 / (float)(int)v13) * v29); while ( 1 ) { v36 = (float *)&v12[v27]; if ( v31 <= v36[325] ) { v37 = v36[389]; if ( v37 < 0.0 || v37 > v35 ) goto LABEL_18; } if ( v14 - 1 == ++v27 ) { LODWORD(v27) = v14 - 1; goto LABEL_18; } } } } LODWORD(v27) = 0; LABEL_18: *(_DWORD *)(v18[v25++] + 4 * v24) = v27; if ( v25 == v9 ) goto LABEL_14; } } return v18; }
GD Web Decomp Icon

GD Web Decomp

Raw Source