; LLVM IR from InsightSoftwareConsortium/ITK :: Modules/ThirdParty/MINC/src/libminc/nifti (nifti1_io)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.mat44 = type { [4 x [4 x float]] }

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nounwind uwtable
define dso_local void @nifti_quatern_to_mat44(ptr dead_on_unwind noalias writable sret(%struct.mat44) align 4 %0, float noundef %1, float noundef %2, float noundef %3, float noundef %4, float noundef %5, float noundef %6, float noundef %7, float noundef %8, float noundef %9, float noundef %10) #1 {
  %12 = alloca float, align 4
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %15 = alloca float, align 4
  %16 = alloca float, align 4
  %17 = alloca float, align 4
  %18 = alloca float, align 4
  %19 = alloca float, align 4
  %20 = alloca float, align 4
  %21 = alloca float, align 4
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  %25 = alloca double, align 8
  %26 = alloca double, align 8
  %27 = alloca double, align 8
  %28 = alloca double, align 8
  store float %1, ptr %12, align 4, !tbaa !5
  store float %2, ptr %13, align 4, !tbaa !5
  store float %3, ptr %14, align 4, !tbaa !5
  store float %4, ptr %15, align 4, !tbaa !5
  store float %5, ptr %16, align 4, !tbaa !5
  store float %6, ptr %17, align 4, !tbaa !5
  store float %7, ptr %18, align 4, !tbaa !5
  store float %8, ptr %19, align 4, !tbaa !5
  store float %9, ptr %20, align 4, !tbaa !5
  store float %10, ptr %21, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  %29 = load float, ptr %12, align 4, !tbaa !5
  %30 = fpext float %29 to double
  store double %30, ptr %23, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #4
  %31 = load float, ptr %13, align 4, !tbaa !5
  %32 = fpext float %31 to double
  store double %32, ptr %24, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #4
  %33 = load float, ptr %14, align 4, !tbaa !5
  %34 = fpext float %33 to double
  store double %34, ptr %25, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #4
  %35 = getelementptr inbounds %struct.mat44, ptr %0, i32 0, i32 0
  %36 = getelementptr inbounds [4 x [4 x float]], ptr %35, i64 0, i64 3
  %37 = getelementptr inbounds [4 x float], ptr %36, i64 0, i64 2
  store float 0.000000e+00, ptr %37, align 4, !tbaa !5
  %38 = getelementptr inbounds %struct.mat44, ptr %0, i32 0, i32 0
  %39 = getelementptr inbounds [4 x [4 x float]], ptr %38, i64 0, i64 3
  %40 = getelementptr inbounds [4 x float], ptr %39, i64 0, i64 1
  store float 0.000000e+00, ptr %40, align 4, !tbaa !5
  %41 = getelementptr inbounds %struct.mat44, ptr %0, i32 0, i32 0
  %42 = getelementptr inbounds [4 x [4 x float]], ptr %41, i64 0, i64 3
  %43 = getelementptr inbounds [4 x float], ptr %42, i64 0, i64 0
  store float 0.000000e+00, ptr %43, align 4, !tbaa !5
  %44 = getelementptr inbounds %struct.mat44, ptr %0, i32 0, i32 0
  %45 = getelementptr inbounds [4 x [4 x float]], ptr %44, i64 0, i64 3
  %46 = getelementptr inbounds [4 x float], ptr %45, i64 0, i64 3
  store float 1.000000e+00, ptr %46, align 4, !tbaa !5
  %47 = load double, ptr %23, align 8, !tbaa !9
  %48 = load double, ptr %23, align 8, !tbaa !9
  %49 = load double, ptr %24, align 8, !tbaa !9
  %50 = load double, ptr %24, align 8, !tbaa !9
  %51 = fmul double %49, %50
  %52 = call double @llvm.fmuladd.f64(double %47, double %48, double %51)
  %53 = load double, ptr %25, align 8, !tbaa !9
  %54 = load double, ptr %25, align 8, !tbaa !9
  %55 = call double @llvm.fmuladd.f64(double %53, double %54, double %52)
  %56 = fpext double %55 to x86_fp80
  %57 = fsub x86_fp80 0xK3FFF8000000000000000, %56
  %58 = fptrunc x86_fp80 %57 to double
  store double %58, ptr %22, align 8, !tbaa !9
  %59 = load double, ptr %22, align 8, !tbaa !9
  %60 = fpext double %59 to x86_fp80
  %61 = fcmp olt x86_fp80 %60, 0xK3FE7D6BF94D5E57A42BC
  br i1 %61, label %62, label %85

62:                                               ; preds = %11
  %63 = load double, ptr %23, align 8, !tbaa !9
  %64 = load double, ptr %23, align 8, !tbaa !9
  %65 = load double, ptr %24, align 8, !tbaa !9
  %66 = load double, ptr %24, align 8, !tbaa !9
  %67 = fmul double %65, %66
  %68 = call double @llvm.fmuladd.f64(double %63, double %64, double %67)
  %69 = load double, ptr %25, align 8, !tbaa !9
  %70 = load double, ptr %25, align 8, !tbaa !9
  %71 = call double @llvm.fmuladd.f64(double %69, double %70, double %68)
  %72 = call double @sqrt(double noundef %71) #4
  %73 = fpext double %72 to x86_fp80
  %74 = fdiv x86_fp80 0xK3FFF8000000000000000, %73
  %75 = fptrunc x86_fp80 %74 to double
  store double %75, ptr %22, align 8, !tbaa !9
  %76 = load double, ptr %22, align 8, !tbaa !9
  %77 = load double, ptr %23, align 8, !tbaa !9
  %78 = fmul double %77, %76
  store double %78, ptr %23, align 8, !tbaa !9
  %79 = load double, ptr %22, align 8, !tbaa !9
  %80 = load double, ptr %24, align 8, !tbaa !9
  %81 = fmul double %80, %79
  store double %81, ptr %24, align 8, !tbaa !9
  %82 = load double, ptr %22, align 8, !tbaa !9
  %83 = load double, ptr %25, align 8, !tbaa !9
  %84 = fmul double %83, %82
  store double %84, ptr %25, align 8, !tbaa !9
  store double 0.000000e+00, ptr %22, align 8, !tbaa !9
  br label %88

85:                                               ; preds = %11
  %86 = load double, ptr %22, align 8, !tbaa !9
  %87 = call double @sqrt(double noundef %86) #4
  store double %87, ptr %22, align 8, !tbaa !9
  br label %88

88:                                               ; preds = %85, %62
  %89 = load float, ptr %18, align 4, !tbaa !5
  %90 = fpext float %89 to double
  %91 = fcmp ogt double %90, 0.000000e+00
  br i1 %91, label %92, label %95

92:                                               ; preds = %88
  %93 = load float, ptr %18, align 4, !tbaa !5
  %94 = fpext float %93 to x86_fp80
  br label %96

95:                                               ; preds = %88
  br label %96

96:                                               ; preds = %95, %92
  %97 = phi x86_fp80 [ %94, %92 ], [ 0xK3FFF8000000000000000, %95 ]
  %98 = fptrunc x86_fp80 %97 to double
  store double %98, ptr %26, align 8, !tbaa !9
  %99 = load float, ptr %19, align 4, !tbaa !5
  %100 = fpext float %99 to double
  %101 = fcmp ogt double %100, 0.000000e+00
  br i1 %101, label %102, label %105

102:                                              ; preds = %96
  %103 = load float, ptr %19, align 4, !tbaa !5
  %104 = fpext float %103 to x86_fp80
  br label %106

105:                                              ; preds = %96
  br label %106

106:                                              ; preds = %105, %102
  %107 = phi x86_fp80 [ %104, %102 ], [ 0xK3FFF8000000000000000, %105 ]
  %108 = fptrunc x86_fp80 %107 to double
  store double %108, ptr %27, align 8, !tbaa !9
  %109 = load float, ptr %20, align 4, !tbaa !5
  %110 = fpext float %109 to double
  %111 = fcmp ogt double %110, 0.000000e+00
  br i1 %111, label %112, label %115

112:                                              ; preds = %106
  %113 = load float, ptr %20, align 4, !tbaa !5
  %114 = fpext float %113 to x86_fp80
  br label %116

115:                                              ; preds = %106
  br label %116

116:                                              ; preds = %115, %112
  %117 = phi x86_fp80 [ %114, %112 ], [ 0xK3FFF8000000000000000, %115 ]
  %118 = fptrunc x86_fp80 %117 to double
  store double %118, ptr %28, align 8, !tbaa !9
  %119 = load float, ptr %21, align 4, !tbaa !5
  %120 = fpext float %119 to double
  %121 = fcmp olt double %120, 0.000000e+00
  br i1 %121, label %122, label %125

122:                                              ; preds = %116
  %123 = load double, ptr %28, align 8, !tbaa !9
  %124 = fneg double %123
  store double %124, ptr %28, align 8, !tbaa !9
  br label %125

125:                                              ; preds = %122, %116
  %126 = load double, ptr %22, align 8, !tbaa !9
  %127 = load double, ptr %22, align 8, !tbaa !9
  %128 = load double, ptr %23, align 8, !tbaa !9
  %129 = load double, ptr %23, align 8, !tbaa !9
  %130 = fmul double %128, %129
  %131 = call double @llvm.fmuladd.f64(double %126, double %127, double %130)
  %132 = load double, ptr %24, align 8, !tbaa !9
  %133 = load double, ptr %24, align 8, !tbaa !9
  %134 = fneg double %132
  %135 = call double @llvm.fmuladd.f64(double %134, double %133, double %131)
  %136 = load double, ptr %25, align 8, !tbaa !9
  %137 = load double, ptr %25, align 8, !tbaa !9
  %138 = fneg double %136
  %139 = call double @llvm.fmuladd.f64(double %138, double %137, double %135)
  %140 = load double, ptr %26, align 8, !tbaa !9
  %141 = fmul double %139, %140
  %142 = fptrunc double %141 to float
  %143 = getelementptr inbounds %struct.mat44, ptr %0, i32 0, i32 0
  %144 = getelementptr inbounds [4 x [4 x float]], ptr %143, i64 0, i64 0
  %145 = getelementptr inbounds [4 x float], ptr %144, i64 0, i64 0
  store float %142, ptr %145, align 4, !tbaa !5
  %146 = load double, ptr %23, align 8, !tbaa !9
  %147 = load double, ptr %24, align 8, !tbaa !9
  %148 = load double, ptr %22, align 8, !tbaa !9
  %149 = load double, ptr %25, align 8, !tbaa !9
  %150 = fmul double %148, %149
  %151 = fneg double %150
  %152 = call double @llvm.fmuladd.f64(double %146, double %147, double %151)
  %153 = fpext double %152 to x86_fp80
  %154 = fmul x86_fp80 0xK40008000000000000000, %153
  %155 = load double, ptr %27, align 8, !tbaa !9
  %156 = fpext double %155 to x86_fp80
  %157 = fmul x86_fp80 %154, %156
  %158 = fptrunc x86_fp80 %157 to float
  %159 = getelementptr inbounds %struct.mat44, ptr %0, i32 0, i32 0
  %160 = getelementptr inbounds [4 x [4 x float]], ptr %159, i64 0, i64 0
  %161 = getelementptr inbounds [4 x float], ptr %160, i64 0, i64 1
  store float %158, ptr %161, align 4, !tbaa !5
  %162 = load double, ptr %23, align 8, !tbaa !9
  %163 = load double, ptr %25, align 8, !tbaa !9
  %164 = load double, ptr %22, align 8, !tbaa !9
  %165 = load double, ptr %24, align 8, !tbaa !9
  %166 = fmul double %164, %165
  %167 = call double @llvm.fmuladd.f64(double %162, double %163, double %166)
  %168 = fpext double %167 to x86_fp80
  %169 = fmul x86_fp80 0xK40008000000000000000, %168
  %170 = load double, ptr %28, align 8, !tbaa !9
  %171 = fpext double %170 to x86_fp80
  %172 = fmul x86_fp80 %169, %171
  %173 = fptrunc x86_fp80 %172 to float
  %174 = getelementptr inbounds %struct.mat44, ptr %0, i32 0, i32 0
  %175 = getelementptr inbounds [4 x [4 x float]], ptr %174, i64 0, i64 0
  %176 = getelementptr inbounds [4 x float], ptr %175, i64 0, i64 2
  store float %173, ptr %176, align 4, !tbaa !5
  %177 = load double, ptr %23, align 8, !tbaa !9
  %178 = load double, ptr %24, align 8, !tbaa !9
  %179 = load double, ptr %22, align 8, !tbaa !9
  %180 = load double, ptr %25, align 8, !tbaa !9
  %181 = fmul double %179, %180
  %182 = call double @llvm.fmuladd.f64(double %177, double %178, double %181)
  %183 = fpext double %182 to x86_fp80
  %184 = fmul x86_fp80 0xK40008000000000000000, %183
  %185 = load double, ptr %26, align 8, !tbaa !9
  %186 = fpext double %185 to x86_fp80
  %187 = fmul x86_fp80 %184, %186
  %188 = fptrunc x86_fp80 %187 to float
  %189 = getelementptr inbounds %struct.mat44, ptr %0, i32 0, i32 0
  %190 = getelementptr inbounds [4 x [4 x float]], ptr %189, i64 0, i64 1
  %191 = getelementptr inbounds [4 x float], ptr %190, i64 0, i64 0
  store float %188, ptr %191, align 4, !tbaa !5
  %192 = load double, ptr %22, align 8, !tbaa !9
  %193 = load double, ptr %22, align 8, !tbaa !9
  %194 = load double, ptr %24, align 8, !tbaa !9
  %195 = load double, ptr %24, align 8, !tbaa !9
  %196 = fmul double %194, %195
  %197 = call double @llvm.fmuladd.f64(double %192, double %193, double %196)
  %198 = load double, ptr %23, align 8, !tbaa !9
  %199 = load double, ptr %23, align 8, !tbaa !9
  %200 = fneg double %198
  %201 = call double @llvm.fmuladd.f64(double %200, double %199, double %197)
  %202 = load double, ptr %25, align 8, !tbaa !9
  %203 = load double, ptr %25, align 8, !tbaa !9
  %204 = fneg double %202
  %205 = call double @llvm.fmuladd.f64(double %204, double %203, double %201)
  %206 = load double, ptr %27, align 8, !tbaa !9
  %207 = fmul double %205, %206
  %208 = fptrunc double %207 to float
  %209 = getelementptr inbounds %struct.mat44, ptr %0, i32 0, i32 0
  %210 = getelementptr inbounds [4 x [4 x float]], ptr %209, i64 0, i64 1
  %211 = getelementptr inbounds [4 x float], ptr %210, i64 0, i64 1
  store float %208, ptr %211, align 4, !tbaa !5
  %212 = load double, ptr %24, align 8, !tbaa !9
  %213 = load double, ptr %25, align 8, !tbaa !9
  %214 = load double, ptr %22, align 8, !tbaa !9
  %215 = load double, ptr %23, align 8, !tbaa !9
  %216 = fmul double %214, %215
  %217 = fneg double %216
  %218 = call double @llvm.fmuladd.f64(double %212, double %213, double %217)
  %219 = fpext double %218 to x86_fp80
  %220 = fmul x86_fp80 0xK40008000000000000000, %219
  %221 = load double, ptr %28, align 8, !tbaa !9
  %222 = fpext double %221 to x86_fp80
  %223 = fmul x86_fp80 %220, %222
  %224 = fptrunc x86_fp80 %223 to float
  %225 = getelementptr inbounds %struct.mat44, ptr %0, i32 0, i32 0
  %226 = getelementptr inbounds [4 x [4 x float]], ptr %225, i64 0, i64 1
  %227 = getelementptr inbounds [4 x float], ptr %226, i64 0, i64 2
  store float %224, ptr %227, align 4, !tbaa !5
  %228 = load double, ptr %23, align 8, !tbaa !9
  %229 = load double, ptr %25, align 8, !tbaa !9
  %230 = load double, ptr %22, align 8, !tbaa !9
  %231 = load double, ptr %24, align 8, !tbaa !9
  %232 = fmul double %230, %231
  %233 = fneg double %232
  %234 = call double @llvm.fmuladd.f64(double %228, double %229, double %233)
  %235 = fpext double %234 to x86_fp80
  %236 = fmul x86_fp80 0xK40008000000000000000, %235
  %237 = load double, ptr %26, align 8, !tbaa !9
  %238 = fpext double %237 to x86_fp80
  %239 = fmul x86_fp80 %236, %238
  %240 = fptrunc x86_fp80 %239 to float
  %241 = getelementptr inbounds %struct.mat44, ptr %0, i32 0, i32 0
  %242 = getelementptr inbounds [4 x [4 x float]], ptr %241, i64 0, i64 2
  %243 = getelementptr inbounds [4 x float], ptr %242, i64 0, i64 0
  store float %240, ptr %243, align 4, !tbaa !5
  %244 = load double, ptr %24, align 8, !tbaa !9
  %245 = load double, ptr %25, align 8, !tbaa !9
  %246 = load double, ptr %22, align 8, !tbaa !9
  %247 = load double, ptr %23, align 8, !tbaa !9
  %248 = fmul double %246, %247
  %249 = call double @llvm.fmuladd.f64(double %244, double %245, double %248)
  %250 = fpext double %249 to x86_fp80
  %251 = fmul x86_fp80 0xK40008000000000000000, %250
  %252 = load double, ptr %27, align 8, !tbaa !9
  %253 = fpext double %252 to x86_fp80
  %254 = fmul x86_fp80 %251, %253
  %255 = fptrunc x86_fp80 %254 to float
  %256 = getelementptr inbounds %struct.mat44, ptr %0, i32 0, i32 0
  %257 = getelementptr inbounds [4 x [4 x float]], ptr %256, i64 0, i64 2
  %258 = getelementptr inbounds [4 x float], ptr %257, i64 0, i64 1
  store float %255, ptr %258, align 4, !tbaa !5
  %259 = load double, ptr %22, align 8, !tbaa !9
  %260 = load double, ptr %22, align 8, !tbaa !9
  %261 = load double, ptr %25, align 8, !tbaa !9
  %262 = load double, ptr %25, align 8, !tbaa !9
  %263 = fmul double %261, %262
  %264 = call double @llvm.fmuladd.f64(double %259, double %260, double %263)
  %265 = load double, ptr %24, align 8, !tbaa !9
  %266 = load double, ptr %24, align 8, !tbaa !9
  %267 = fneg double %265
  %268 = call double @llvm.fmuladd.f64(double %267, double %266, double %264)
  %269 = load double, ptr %23, align 8, !tbaa !9
  %270 = load double, ptr %23, align 8, !tbaa !9
  %271 = fneg double %269
  %272 = call double @llvm.fmuladd.f64(double %271, double %270, double %268)
  %273 = load double, ptr %28, align 8, !tbaa !9
  %274 = fmul double %272, %273
  %275 = fptrunc double %274 to float
  %276 = getelementptr inbounds %struct.mat44, ptr %0, i32 0, i32 0
  %277 = getelementptr inbounds [4 x [4 x float]], ptr %276, i64 0, i64 2
  %278 = getelementptr inbounds [4 x float], ptr %277, i64 0, i64 2
  store float %275, ptr %278, align 4, !tbaa !5
  %279 = load float, ptr %15, align 4, !tbaa !5
  %280 = getelementptr inbounds %struct.mat44, ptr %0, i32 0, i32 0
  %281 = getelementptr inbounds [4 x [4 x float]], ptr %280, i64 0, i64 0
  %282 = getelementptr inbounds [4 x float], ptr %281, i64 0, i64 3
  store float %279, ptr %282, align 4, !tbaa !5
  %283 = load float, ptr %16, align 4, !tbaa !5
  %284 = getelementptr inbounds %struct.mat44, ptr %0, i32 0, i32 0
  %285 = getelementptr inbounds [4 x [4 x float]], ptr %284, i64 0, i64 1
  %286 = getelementptr inbounds [4 x float], ptr %285, i64 0, i64 3
  store float %283, ptr %286, align 4, !tbaa !5
  %287 = load float, ptr %17, align 4, !tbaa !5
  %288 = getelementptr inbounds %struct.mat44, ptr %0, i32 0, i32 0
  %289 = getelementptr inbounds [4 x [4 x float]], ptr %288, i64 0, i64 2
  %290 = getelementptr inbounds [4 x float], ptr %289, i64 0, i64 3
  store float %287, ptr %290, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  ret void
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2

; Function Attrs: nounwind
declare double @sqrt(double noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.mat44 = type { [4 x [4 x float]] }

; Function Attrs: mustprogress nofree nounwind willreturn memory(write) uwtable
define dso_local void @nifti_quatern_to_mat44(ptr dead_on_unwind noalias nocapture writable writeonly sret(%struct.mat44) align 4 %0, float noundef %1, float noundef %2, float noundef %3, float noundef %4, float noundef %5, float noundef %6, float noundef %7, float noundef %8, float noundef %9, float noundef %10) local_unnamed_addr #0 {
  %12 = fpext float %1 to double
  %13 = fpext float %2 to double
  %14 = fpext float %3 to double
  %15 = getelementptr inbounds i8, ptr %0, i64 48
  store <4 x float> <float 0.000000e+00, float 0.000000e+00, float 0.000000e+00, float 1.000000e+00>, ptr %15, align 4, !tbaa !5
  %16 = fmul double %13, %13
  %17 = tail call double @llvm.fmuladd.f64(double %12, double %12, double %16)
  %18 = tail call double @llvm.fmuladd.f64(double %14, double %14, double %17)
  %19 = fpext double %18 to x86_fp80
  %20 = fsub x86_fp80 0xK3FFF8000000000000000, %19
  %21 = fptrunc x86_fp80 %20 to double
  %22 = fpext double %21 to x86_fp80
  %23 = fcmp olt x86_fp80 %22, 0xK3FE7D6BF94D5E57A42BC
  br i1 %23, label %24, label %31

24:                                               ; preds = %11
  %sqrt = tail call double @llvm.sqrt.f64(double %18)
  %25 = fpext double %sqrt to x86_fp80
  %26 = fdiv x86_fp80 0xK3FFF8000000000000000, %25
  %27 = fptrunc x86_fp80 %26 to double
  %28 = fmul double %12, %27
  %29 = fmul double %13, %27
  %30 = fmul double %14, %27
  %.pre = fmul double %29, %29
  br label %33

31:                                               ; preds = %11
  %32 = tail call double @sqrt(double noundef %21) #4
  br label %33

33:                                               ; preds = %31, %24
  %.pre-phi = phi double [ %16, %31 ], [ %.pre, %24 ]
  %.094 = phi double [ %13, %31 ], [ %29, %24 ]
  %.093 = phi double [ %14, %31 ], [ %30, %24 ]
  %.092 = phi double [ %12, %31 ], [ %28, %24 ]
  %.091 = phi double [ %32, %31 ], [ 0.000000e+00, %24 ]
  %34 = fcmp ogt float %9, 0.000000e+00
  %35 = fpext float %9 to double
  %36 = select i1 %34, double %35, double 1.000000e+00
  %37 = fcmp olt float %10, 0.000000e+00
  %38 = fneg double %36
  %.0 = select i1 %37, double %38, double %36
  %39 = fcmp ogt float %8, 0.000000e+00
  %40 = fpext float %8 to double
  %41 = select i1 %39, double %40, double 1.000000e+00
  %42 = fcmp ogt float %7, 0.000000e+00
  %43 = fpext float %7 to double
  %44 = select i1 %42, double %43, double 1.000000e+00
  %45 = fmul double %.092, %.092
  %46 = tail call double @llvm.fmuladd.f64(double %.091, double %.091, double %45)
  %47 = fneg double %.094
  %48 = tail call double @llvm.fmuladd.f64(double %47, double %.094, double %46)
  %49 = fneg double %.093
  %50 = tail call double @llvm.fmuladd.f64(double %49, double %.093, double %48)
  %51 = fmul double %44, %50
  %52 = fptrunc double %51 to float
  store float %52, ptr %0, align 4, !tbaa !5
  %53 = fmul double %.093, %.091
  %54 = fneg double %53
  %55 = tail call double @llvm.fmuladd.f64(double %.092, double %.094, double %54)
  %56 = fpext double %55 to x86_fp80
  %57 = fmul x86_fp80 %56, 0xK40008000000000000000
  %58 = fpext double %41 to x86_fp80
  %59 = fmul x86_fp80 %57, %58
  %60 = fptrunc x86_fp80 %59 to float
  %61 = getelementptr inbounds i8, ptr %0, i64 4
  store float %60, ptr %61, align 4, !tbaa !5
  %62 = fmul double %.094, %.091
  %63 = tail call double @llvm.fmuladd.f64(double %.092, double %.093, double %62)
  %64 = fpext double %63 to x86_fp80
  %65 = fmul x86_fp80 %64, 0xK40008000000000000000
  %66 = fpext double %.0 to x86_fp80
  %67 = fmul x86_fp80 %65, %66
  %68 = fptrunc x86_fp80 %67 to float
  %69 = getelementptr inbounds i8, ptr %0, i64 8
  store float %68, ptr %69, align 4, !tbaa !5
  %70 = tail call double @llvm.fmuladd.f64(double %.092, double %.094, double %53)
  %71 = fpext double %70 to x86_fp80
  %72 = fmul x86_fp80 %71, 0xK40008000000000000000
  %73 = fpext double %44 to x86_fp80
  %74 = fmul x86_fp80 %72, %73
  %75 = fptrunc x86_fp80 %74 to float
  %76 = getelementptr inbounds i8, ptr %0, i64 16
  store float %75, ptr %76, align 4, !tbaa !5
  %77 = tail call double @llvm.fmuladd.f64(double %.091, double %.091, double %.pre-phi)
  %78 = fneg double %.092
  %79 = tail call double @llvm.fmuladd.f64(double %78, double %.092, double %77)
  %80 = tail call double @llvm.fmuladd.f64(double %49, double %.093, double %79)
  %81 = fmul double %41, %80
  %82 = fptrunc double %81 to float
  %83 = getelementptr inbounds i8, ptr %0, i64 20
  store float %82, ptr %83, align 4, !tbaa !5
  %84 = fmul double %.092, %.091
  %85 = fneg double %84
  %86 = tail call double @llvm.fmuladd.f64(double %.094, double %.093, double %85)
  %87 = fpext double %86 to x86_fp80
  %88 = fmul x86_fp80 %87, 0xK40008000000000000000
  %89 = fmul x86_fp80 %88, %66
  %90 = fptrunc x86_fp80 %89 to float
  %91 = getelementptr inbounds i8, ptr %0, i64 24
  store float %90, ptr %91, align 4, !tbaa !5
  %92 = fneg double %62
  %93 = tail call double @llvm.fmuladd.f64(double %.092, double %.093, double %92)
  %94 = fpext double %93 to x86_fp80
  %95 = fmul x86_fp80 %94, 0xK40008000000000000000
  %96 = fmul x86_fp80 %95, %73
  %97 = fptrunc x86_fp80 %96 to float
  %98 = getelementptr inbounds i8, ptr %0, i64 32
  store float %97, ptr %98, align 4, !tbaa !5
  %99 = tail call double @llvm.fmuladd.f64(double %.094, double %.093, double %84)
  %100 = fpext double %99 to x86_fp80
  %101 = fmul x86_fp80 %100, 0xK40008000000000000000
  %102 = fmul x86_fp80 %101, %58
  %103 = fptrunc x86_fp80 %102 to float
  %104 = getelementptr inbounds i8, ptr %0, i64 36
  store float %103, ptr %104, align 4, !tbaa !5
  %105 = fmul double %.093, %.093
  %106 = tail call double @llvm.fmuladd.f64(double %.091, double %.091, double %105)
  %107 = tail call double @llvm.fmuladd.f64(double %47, double %.094, double %106)
  %108 = tail call double @llvm.fmuladd.f64(double %78, double %.092, double %107)
  %109 = fmul double %.0, %108
  %110 = fptrunc double %109 to float
  %111 = getelementptr inbounds i8, ptr %0, i64 40
  store float %110, ptr %111, align 4, !tbaa !5
  %112 = getelementptr inbounds i8, ptr %0, i64 12
  store float %4, ptr %112, align 4, !tbaa !5
  %113 = getelementptr inbounds i8, ptr %0, i64 28
  store float %5, ptr %113, align 4, !tbaa !5
  %114 = getelementptr inbounds i8, ptr %0, i64 44
  store float %6, ptr %114, align 4, !tbaa !5
  ret void
}

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sqrt(double noundef) local_unnamed_addr #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.sqrt.f64(double) #3

attributes #0 = { mustprogress nofree nounwind willreturn memory(write) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { mustprogress nofree nounwind willreturn memory(write) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}


; Effective O3 passes: AggressiveInstCombinePass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass