// // sub_100438E08 from 0x100438e08 to 0x100438f6c (356 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 // __int64 __fastcall sub_100438E08(__int64 result, int a2, float32x4_t *a3, int a4, float32x4_t *a5, double a6) { __int64 v6; // x11 float v7; // s1 __int64 v8; // x8 __int64 v9; // x13 float *v10; // x14 float *v11; // x12 __int64 v12; // x11 __int64 v13; // x12 float *v14; // x13 float *v15; // x10 __int64 v16; // x9 float32x4_t *v17; // x13 float32x4_t v18; // q1 float32x4_t *v19; // x15 __int64 v20; // x17 float32x4_t v21; // q5 if ( (int)result >= 1 ) { v6 = 0; v7 = 0.0; v8 = 4LL * a2; if ( (_DWORD)result == 1 ) goto LABEL_7; if ( a2 != 1 ) goto LABEL_7; v6 = (unsigned int)result & 0xFFFFFFFE; v7 = 0.0; v9 = v6; v10 = (float *)a3; do { v7 = (float)(v7 + (float)(*v10 * *v10)) + (float)(v10[1] * v10[1]); v10 += 2; v9 -= 2; } while ( v9 ); if ( v6 != (unsigned int)result ) { LABEL_7: v11 = &a3->f32[v6 * a2]; v12 = (unsigned int)result - v6; do { v7 = v7 + (float)(*v11 * *v11); v11 = (float *)((char *)v11 + v8); --v12; } while ( v12 ); } if ( v7 != 0.0 ) { *(float *)&a6 = *(float *)&a6 / sqrtf(v7); if ( (unsigned int)result < 8 ) goto LABEL_11; v13 = 0; if ( a4 != 1 || a2 != 1 ) goto LABEL_12; if ( (float32x4_t *)&a3->f32[(unsigned int)result] > a5 && (float32x4_t *)&a5->f32[(unsigned int)result] > a3 ) { LABEL_11: v13 = 0; LABEL_12: v14 = &a5->f32[v13 * a4]; v15 = &a3->f32[v13 * a2]; v16 = (unsigned int)result - v13; do { *v14 = *v14 + (float)(*(float *)&a6 * *v15); v14 += a4; v15 = (float *)((char *)v15 + v8); --v16; } while ( v16 ); return result; } v13 = (unsigned int)result & 0xFFFFFFF8; v17 = a3 + 1; v18 = (float32x4_t)vdupq_lane_s32(*(int32x2_t *)&a6, 0); v19 = a5 + 1; v20 = v13; do { v21 = vmlaq_f32(*v19, *v17, v18); v19[-1] = vmlaq_f32(v19[-1], v17[-1], v18); *v19 = v21; v17 += 2; v19 += 2; v20 -= 8; } while ( v20 ); if ( v13 != (unsigned int)result ) goto LABEL_12; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source