// // sub_70764 from 0x70764 to 0x707f4 (144 bytes) // // 1 xrefs: // > @ 0x118958 // // 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 // // positive sp value has been detected, the output may be wrong! void __fastcall sub_70764(__int64 a1, __int64 a2, __int64 a3, __int64 a4, __int64 a5, __int64 a6) { float *v6; // x19 float *v7; // x20 int v8; // w21 __int64 v9; // x22 float32x4_t *v10; // x23 float32x4_t *v11; // x24 __int64 v12; // x25 __int64 v13; // x30 float v14; // s10 float v15; // s11 float v16; // s12 __int64 v17; // x0 int8x16_t v18; // q0 float32x4_t v19; // q0 int32x4_t v20; // q1 bool v21; // cc long double v22; // q0 float v23; // s0 char v24; // zf char v25; // nf char v26; // vf float32x4_t v27; // q1 v17 = ((__int64 (__fastcall *)(__int64, __int64, __int64, __int64, __int64, __int64, __int64))sub_707F4)( a1, a2, a3, a4, a5, a6, v13); while ( (int)v12 < v8 ) { v18 = vmlaq_f32( vmulq_f32(*(float32x4_t *)(v9 + 32 * v12 + 16), *(float32x4_t *)(v9 + 32 * v12 + 16)), *(float32x4_t *)(v9 + 32 * v12), *(float32x4_t *)(v9 + 32 * v12)); v19 = vaddq_f32(v18, vextq_s8(v18, v18, 8u)); v20 = vdupq_lane_s32((int32x2_t)v19.n128_u64[0], 1); v22 = COERCE_LONG_DOUBLE(vaddq_f32(v19, v20)); v21 = *(float *)&v22 <= *v6; *(float *)&v22 = *(float *)&v22 - *v7; if ( v21 ) v20.n128_f32[0] = v14; else v20.n128_f32[0] = v15; v17 = ((__int64 (__fastcall *)(__int64, long double, long double))sub_70874)(v17, v22, *(long double *)&v20); if ( !(v25 ^ v26 | v24) ) v23 = ((float (__fastcall *)(__int64))sub_70868)(v17) * v16; ++v12; *v10 = vmulq_n_f32(*v11, v23); v27 = v11[1]; v11 += 2; v10[1] = vmulq_n_f32(v27, v23); v10 += 2; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source