// // sub_10044BD84 from 0x10044bd84 to 0x10044c1b0 (1068 bytes) // // 1 xrefs: // > sub_10044AC78 @ 0x10044afe4 // // 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 // __int64 __fastcall sub_10044BD84(__int64 a1, unsigned int a2, __int64 a3, __int64 a4, int a5, int a6) { __int64 v6; // x26 __int64 result; // x0 __int64 v9; // x27 __int64 v10; // x28 __int64 v11; // x20 __int64 v12; // x25 __int64 v13; // x0 int v14; // w8 __int64 v15; // x0 int v16; // w9 int v17; // w8 int v18; // w11 bool v19; // zf int v20; // w21 bool v21; // zf __int64 (__fastcall *v22)(); // x8 float *(__fastcall *v23)(float *, float *, int, float *, float *, float *, int); // x9 __int64 v24; // x22 float32x4_t *v25; // x25 float v26; // s0 int32x2_t v27; // d0 __int64 v28; // x8 __int64 v29; // x22 __int64 v30; // x21 __int64 v31; // x0 __int64 v32; // [xsp+0h] [xbp-70h] __int64 v33; // [xsp+8h] [xbp-68h] unsigned int v35; // [xsp+18h] [xbp-58h] BYREF int v36; // [xsp+1Ch] [xbp-54h] BYREF v6 = *(_QWORD *)(a1 + 8); if ( a6 == 1 ) { if ( a5 ) return 11; if ( *(_DWORD *)(v6 + 80) | *(_DWORD *)(v6 + 60) | *(_DWORD *)(v6 + 40) | *(_DWORD *)(v6 + 20) | *(_DWORD *)v6 ) return 0; return 6; } v9 = 0; v10 = 0; v11 = **(unsigned int **)(a3 + 8); v32 = **(_QWORD **)(a3 + 24); v33 = **(_QWORD **)(a4 + 24); do { v12 = v6 + v10; if ( *(_DWORD *)(v6 + v10 + 176) != (_DWORD)v11 ) { *(_DWORD *)(v12 + 176) = v11; v13 = *(_QWORD *)(v12 + 184); v14 = v11; if ( v13 ) { (*(void (__fastcall **)(__int64, _QWORD, const char *))(*(_QWORD *)(a1 + 40) + 16LL))( v13, 0, "/opt/teamcity-agent/work/570ad728b1678096/core_api/src/fmod_dsp_multiband_eq.cpp"); v14 = *(_DWORD *)(v12 + 176); } v15 = (**(__int64 (__fastcall ***)(_QWORD, _QWORD, const char *))(a1 + 40))( (unsigned int)(32 * v14), 0, "/opt/teamcity-agent/work/570ad728b1678096/core_api/src/fmod_dsp_multiband_eq.cpp"); *(_QWORD *)(v12 + 184) = v15; if ( !v15 ) return 38; } v16 = *(_DWORD *)(v12 + 192); v17 = *(_DWORD *)(v6 + v9 + 16); if ( v16 != v17 ) { v18 = *(_DWORD *)(v6 + v9); if ( v16 ) v19 = *(_DWORD *)(v6 + v10 + 112) == v18; else v19 = 0; v20 = !v19; *(_DWORD *)(v12 + 192) = v17; *(_DWORD *)(v6 + v10 + 112) = v18; switch ( v18 ) { case 2: case 5: v21 = (unsigned int)sub_1004B5E18(5) == 0; v22 = sub_1004AD814; v23 = sub_10044A27C; break; case 3: case 6: v21 = (unsigned int)sub_1004B5E18(5) == 0; v22 = sub_1004AD828; v23 = sub_10044A414; break; default: v21 = (unsigned int)sub_1004B5E18(5) == 0; v22 = sub_1004AD800; v23 = sub_10044A134; break; } if ( v21 ) v22 = (__int64 (__fastcall *)())v23; *(_QWORD *)(v12 + 104) = v22; v36 = 0; result = (*(__int64 (__fastcall **)(__int64, int *))(*(_QWORD *)(a1 + 40) + 24LL))(a1, &v36); if ( (_DWORD)result ) return result; v24 = v6 + v10; v25 = (float32x4_t *)(v6 + v10 + 156); v26 = sub_10044A658( *(_DWORD *)(v6 + v9), v36, v25->f32, *(float *)(v6 + v9 + 4), *(float *)(v6 + v9 + 8), *(float *)(v6 + v9 + 12)); if ( v20 ) { *(float32x4_t *)(v24 + 116) = *v25; *(_DWORD *)(v24 + 132) = *(_DWORD *)(v6 + v10 + 172); *(_QWORD *)(v24 + 136) = 0; *(_QWORD *)(v24 + 144) = 0; *(_DWORD *)(v24 + 152) = 0; } else { v35 = 0; result = (*(__int64 (__fastcall **)(__int64, unsigned int *, float))(*(_QWORD *)(a1 + 40) + 32LL))( a1, &v35, v26); if ( (_DWORD)result ) return result; *(float *)v27.i32 = (float)v35; v28 = v6 + v10; *(float32x4_t *)(v28 + 136) = vdivq_f32( vsubq_f32(*v25, *(float32x4_t *)(v6 + v10 + 116)), (float32x4_t)vdupq_lane_s32(v27, 0)); *(float *)(v28 + 152) = (float)(*(float *)(v6 + v10 + 172) - *(float *)(v6 + v10 + 132)) / *(float *)v27.i32; } } v10 += 96; v9 += 20; } while ( v10 != 480 ); if ( !*(_DWORD *)v6 ) { v30 = a2; v31 = v32; v29 = v33; if ( !*(_DWORD *)(v6 + 20) ) goto LABEL_31; goto LABEL_30; } v29 = v33; v30 = a2; (*(void (__fastcall **)(__int64, __int64, _QWORD, __int64, __int64, _QWORD, __int64))(v6 + 104))( v32, v33, a2, v6 + 116, v6 + 136, *(_QWORD *)(v6 + 184), v11); *(_OWORD *)(v6 + 116) = *(_OWORD *)(v6 + 156); *(_DWORD *)(v6 + 132) = *(_DWORD *)(v6 + 172); *(_QWORD *)(v6 + 136) = 0; *(_QWORD *)(v6 + 144) = 0; *(_DWORD *)(v6 + 152) = 0; v31 = v33; if ( *(_DWORD *)(v6 + 20) ) { LABEL_30: (*(void (__fastcall **)(__int64, __int64, __int64, __int64, __int64, _QWORD, __int64))(v6 + 200))( v31, v29, v30, v6 + 212, v6 + 232, *(_QWORD *)(v6 + 280), v11); *(_OWORD *)(v6 + 212) = *(_OWORD *)(v6 + 252); *(_DWORD *)(v6 + 228) = *(_DWORD *)(v6 + 268); *(_QWORD *)(v6 + 232) = 0; *(_QWORD *)(v6 + 240) = 0; *(_DWORD *)(v6 + 248) = 0; v31 = v29; } LABEL_31: if ( *(_DWORD *)(v6 + 40) ) { (*(void (__fastcall **)(__int64, __int64, __int64, __int64, __int64, _QWORD, __int64))(v6 + 296))( v31, v29, v30, v6 + 308, v6 + 328, *(_QWORD *)(v6 + 376), v11); *(_OWORD *)(v6 + 308) = *(_OWORD *)(v6 + 348); *(_DWORD *)(v6 + 324) = *(_DWORD *)(v6 + 364); *(_QWORD *)(v6 + 328) = 0; *(_QWORD *)(v6 + 336) = 0; *(_DWORD *)(v6 + 344) = 0; v31 = v29; } if ( *(_DWORD *)(v6 + 60) ) { (*(void (__fastcall **)(__int64, __int64, __int64, __int64, __int64, _QWORD, __int64))(v6 + 392))( v31, v29, v30, v6 + 404, v6 + 424, *(_QWORD *)(v6 + 472), v11); *(_OWORD *)(v6 + 404) = *(_OWORD *)(v6 + 444); *(_DWORD *)(v6 + 420) = *(_DWORD *)(v6 + 460); *(_QWORD *)(v6 + 424) = 0; *(_QWORD *)(v6 + 432) = 0; *(_DWORD *)(v6 + 440) = 0; v31 = v29; } if ( *(_DWORD *)(v6 + 80) ) { (*(void (__fastcall **)(__int64, __int64, __int64, __int64, __int64, _QWORD, __int64))(v6 + 488))( v31, v29, v30, v6 + 500, v6 + 520, *(_QWORD *)(v6 + 568), v11); *(_OWORD *)(v6 + 500) = *(_OWORD *)(v6 + 540); *(_DWORD *)(v6 + 516) = *(_DWORD *)(v6 + 556); *(_QWORD *)(v6 + 528) = 0; *(_QWORD *)(v6 + 520) = 0; *(_DWORD *)(v6 + 536) = 0; } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source