; LLVM IR from zeux/meshoptimizer :: gltf/node.ll (Z18decomposeTransformPfS_S_PKf)

; 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"

; 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: mustprogress nounwind uwtable
define dso_local void @_Z18decomposeTransformPfS_S_PKf(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #1 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca [4 x [4 x float]], align 16
  %10 = alloca float, align 4
  %11 = alloca float, align 4
  %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 float, align 4
  %23 = alloca float, align 4
  %24 = alloca i32, align 4
  %25 = alloca float, align 4
  %26 = alloca float, align 4
  %27 = alloca float, align 4
  %28 = alloca float, align 4
  %29 = alloca float, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 64, ptr %9) #6
  call void @llvm.memset.p0.i64(ptr align 16 %9, i8 0, i64 64, i1 false)
  %30 = getelementptr inbounds [4 x [4 x float]], ptr %9, i64 0, i64 0
  %31 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %30, ptr align 4 %31, i64 64, i1 false)
  %32 = getelementptr inbounds [4 x [4 x float]], ptr %9, i64 0, i64 3
  %33 = getelementptr inbounds [4 x float], ptr %32, i64 0, i64 0
  %34 = load float, ptr %33, align 16, !tbaa !9
  %35 = load ptr, ptr %5, align 8, !tbaa !5
  %36 = getelementptr inbounds float, ptr %35, i64 0
  store float %34, ptr %36, align 4, !tbaa !9
  %37 = getelementptr inbounds [4 x [4 x float]], ptr %9, i64 0, i64 3
  %38 = getelementptr inbounds [4 x float], ptr %37, i64 0, i64 1
  %39 = load float, ptr %38, align 4, !tbaa !9
  %40 = load ptr, ptr %5, align 8, !tbaa !5
  %41 = getelementptr inbounds float, ptr %40, i64 1
  store float %39, ptr %41, align 4, !tbaa !9
  %42 = getelementptr inbounds [4 x [4 x float]], ptr %9, i64 0, i64 3
  %43 = getelementptr inbounds [4 x float], ptr %42, i64 0, i64 2
  %44 = load float, ptr %43, align 8, !tbaa !9
  %45 = load ptr, ptr %5, align 8, !tbaa !5
  %46 = getelementptr inbounds float, ptr %45, i64 2
  store float %44, ptr %46, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %47 = getelementptr inbounds [4 x [4 x float]], ptr %9, i64 0, i64 0
  %48 = getelementptr inbounds [4 x float], ptr %47, i64 0, i64 0
  %49 = load float, ptr %48, align 16, !tbaa !9
  %50 = getelementptr inbounds [4 x [4 x float]], ptr %9, i64 0, i64 1
  %51 = getelementptr inbounds [4 x float], ptr %50, i64 0, i64 1
  %52 = load float, ptr %51, align 4, !tbaa !9
  %53 = getelementptr inbounds [4 x [4 x float]], ptr %9, i64 0, i64 2
  %54 = getelementptr inbounds [4 x float], ptr %53, i64 0, i64 2
  %55 = load float, ptr %54, align 8, !tbaa !9
  %56 = getelementptr inbounds [4 x [4 x float]], ptr %9, i64 0, i64 2
  %57 = getelementptr inbounds [4 x float], ptr %56, i64 0, i64 1
  %58 = load float, ptr %57, align 4, !tbaa !9
  %59 = getelementptr inbounds [4 x [4 x float]], ptr %9, i64 0, i64 1
  %60 = getelementptr inbounds [4 x float], ptr %59, i64 0, i64 2
  %61 = load float, ptr %60, align 8, !tbaa !9
  %62 = fmul float %58, %61
  %63 = fneg float %62
  %64 = call float @llvm.fmuladd.f32(float %52, float %55, float %63)
  %65 = getelementptr inbounds [4 x [4 x float]], ptr %9, i64 0, i64 0
  %66 = getelementptr inbounds [4 x float], ptr %65, i64 0, i64 1
  %67 = load float, ptr %66, align 4, !tbaa !9
  %68 = getelementptr inbounds [4 x [4 x float]], ptr %9, i64 0, i64 1
  %69 = getelementptr inbounds [4 x float], ptr %68, i64 0, i64 0
  %70 = load float, ptr %69, align 16, !tbaa !9
  %71 = getelementptr inbounds [4 x [4 x float]], ptr %9, i64 0, i64 2
  %72 = getelementptr inbounds [4 x float], ptr %71, i64 0, i64 2
  %73 = load float, ptr %72, align 8, !tbaa !9
  %74 = getelementptr inbounds [4 x [4 x float]], ptr %9, i64 0, i64 1
  %75 = getelementptr inbounds [4 x float], ptr %74, i64 0, i64 2
  %76 = load float, ptr %75, align 8, !tbaa !9
  %77 = getelementptr inbounds [4 x [4 x float]], ptr %9, i64 0, i64 2
  %78 = getelementptr inbounds [4 x float], ptr %77, i64 0, i64 0
  %79 = load float, ptr %78, align 16, !tbaa !9
  %80 = fmul float %76, %79
  %81 = fneg float %80
  %82 = call float @llvm.fmuladd.f32(float %70, float %73, float %81)
  %83 = fmul float %67, %82
  %84 = fneg float %83
  %85 = call float @llvm.fmuladd.f32(float %49, float %64, float %84)
  %86 = getelementptr inbounds [4 x [4 x float]], ptr %9, i64 0, i64 0
  %87 = getelementptr inbounds [4 x float], ptr %86, i64 0, i64 2
  %88 = load float, ptr %87, align 8, !tbaa !9
  %89 = getelementptr inbounds [4 x [4 x float]], ptr %9, i64 0, i64 1
  %90 = getelementptr inbounds [4 x float], ptr %89, i64 0, i64 0
  %91 = load float, ptr %90, align 16, !tbaa !9
  %92 = getelementptr inbounds [4 x [4 x float]], ptr %9, i64 0, i64 2
  %93 = getelementptr inbounds [4 x float], ptr %92, i64 0, i64 1
  %94 = load float, ptr %93, align 4, !tbaa !9
  %95 = getelementptr inbounds [4 x [4 x float]], ptr %9, i64 0, i64 1
  %96 = getelementptr inbounds [4 x float], ptr %95, i64 0, i64 1
  %97 = load float, ptr %96, align 4, !tbaa !9
  %98 = getelementptr inbounds [4 x [4 x float]], ptr %9, i64 0, i64 2
  %99 = getelementptr inbounds [4 x float], ptr %98, i64 0, i64 0
  %100 = load float, ptr %99, align 16, !tbaa !9
  %101 = fmul float %97, %100
  %102 = fneg float %101
  %103 = call float @llvm.fmuladd.f32(float %91, float %94, float %102)
  %104 = call float @llvm.fmuladd.f32(float %88, float %103, float %85)
  store float %104, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %105 = load float, ptr %10, align 4, !tbaa !9
  %106 = fcmp olt float %105, 0.000000e+00
  %107 = zext i1 %106 to i64
  %108 = select i1 %106, float -1.000000e+00, float 1.000000e+00
  store float %108, ptr %11, align 4, !tbaa !9
  %109 = getelementptr inbounds [4 x [4 x float]], ptr %9, i64 0, i64 0
  %110 = getelementptr inbounds [4 x float], ptr %109, i64 0, i64 0
  %111 = load float, ptr %110, align 16, !tbaa !9
  %112 = getelementptr inbounds [4 x [4 x float]], ptr %9, i64 0, i64 0
  %113 = getelementptr inbounds [4 x float], ptr %112, i64 0, i64 0
  %114 = load float, ptr %113, align 16, !tbaa !9
  %115 = getelementptr inbounds [4 x [4 x float]], ptr %9, i64 0, i64 0
  %116 = getelementptr inbounds [4 x float], ptr %115, i64 0, i64 1
  %117 = load float, ptr %116, align 4, !tbaa !9
  %118 = getelementptr inbounds [4 x [4 x float]], ptr %9, i64 0, i64 0
  %119 = getelementptr inbounds [4 x float], ptr %118, i64 0, i64 1
  %120 = load float, ptr %119, align 4, !tbaa !9
  %121 = fmul float %117, %120
  %122 = call float @llvm.fmuladd.f32(float %111, float %114, float %121)
  %123 = getelementptr inbounds [4 x [4 x float]], ptr %9, i64 0, i64 0
  %124 = getelementptr inbounds [4 x float], ptr %123, i64 0, i64 2
  %125 = load float, ptr %124, align 8, !tbaa !9
  %126 = getelementptr inbounds [4 x [4 x float]], ptr %9, i64 0, i64 0
  %127 = getelementptr inbounds [4 x float], ptr %126, i64 0, i64 2
  %128 = load float, ptr %127, align 8, !tbaa !9
  %129 = call float @llvm.fmuladd.f32(float %125, float %128, float %122)
  %130 = call float @sqrtf(float noundef %129) #6
  %131 = load float, ptr %11, align 4, !tbaa !9
  %132 = fmul float %130, %131
  %133 = load ptr, ptr %7, align 8, !tbaa !5
  %134 = getelementptr inbounds float, ptr %133, i64 0
  store float %132, ptr %134, align 4, !tbaa !9
  %135 = getelementptr inbounds [4 x [4 x float]], ptr %9, i64 0, i64 1
  %136 = getelementptr inbounds [4 x float], ptr %135, i64 0, i64 0
  %137 = load float, ptr %136, align 16, !tbaa !9
  %138 = getelementptr inbounds [4 x [4 x float]], ptr %9, i64 0, i64 1
  %139 = getelementptr inbounds [4 x float], ptr %138, i64 0, i64 0
  %140 = load float, ptr %139, align 16, !tbaa !9
  %141 = getelementptr inbounds [4 x [4 x float]], ptr %9, i64 0, i64 1
  %142 = getelementptr inbounds [4 x float], ptr %141, i64 0, i64 1
  %143 = load float, ptr %142, align 4, !tbaa !9
  %144 = getelementptr inbounds [4 x [4 x float]], ptr %9, i64 0, i64 1
  %145 = getelementptr inbounds [4 x float], ptr %144, i64 0, i64 1
  %146 = load float, ptr %145, align 4, !tbaa !9
  %147 = fmul float %143, %146
  %148 = call float @llvm.fmuladd.f32(float %137, float %140, float %147)
  %149 = getelementptr inbounds [4 x [4 x float]], ptr %9, i64 0, i64 1
  %150 = getelementptr inbounds [4 x float], ptr %149, i64 0, i64 2
  %151 = load float, ptr %150, align 8, !tbaa !9
  %152 = getelementptr inbounds [4 x [4 x float]], ptr %9, i64 0, i64 1
  %153 = getelementptr inbounds [4 x float], ptr %152, i64 0, i64 2
  %154 = load float, ptr %153, align 8, !tbaa !9
  %155 = call float @llvm.fmuladd.f32(float %151, float %154, float %148)
  %156 = call float @sqrtf(float noundef %155) #6
  %157 = load float, ptr %11, align 4, !tbaa !9
  %158 = fmul float %156, %157
  %159 = load ptr, ptr %7, align 8, !tbaa !5
  %160 = getelementptr inbounds float, ptr %159, i64 1
  store float %158, ptr %160, align 4, !tbaa !9
  %161 = getelementptr inbounds [4 x [4 x float]], ptr %9, i64 0, i64 2
  %162 = getelementptr inbounds [4 x float], ptr %161, i64 0, i64 0
  %163 = load float, ptr %162, align 16, !tbaa !9
  %164 = getelementptr inbounds [4 x [4 x float]], ptr %9, i64 0, i64 2
  %165 = getelementptr inbounds [4 x float], ptr %164, i64 0, i64 0
  %166 = load float, ptr %165, align 16, !tbaa !9
  %167 = getelementptr inbounds [4 x [4 x float]], ptr %9, i64 0, i64 2
  %168 = getelementptr inbounds [4 x float], ptr %167, i64 0, i64 1
  %169 = load float, ptr %168, align 4, !tbaa !9
  %170 = getelementptr inbounds [4 x [4 x float]], ptr %9, i64 0, i64 2
  %171 = getelementptr inbounds [4 x float], ptr %170, i64 0, i64 1
  %172 = load float, ptr %171, align 4, !tbaa !9
  %173 = fmul float %169, %172
  %174 = call float @llvm.fmuladd.f32(float %163, float %166, float %173)
  %175 = getelementptr inbounds [4 x [4 x float]], ptr %9, i64 0, i64 2
  %176 = getelementptr inbounds [4 x float], ptr %175, i64 0, i64 2
  %177 = load float, ptr %176, align 8, !tbaa !9
  %178 = getelementptr inbounds [4 x [4 x float]], ptr %9, i64 0, i64 2
  %179 = getelementptr inbounds [4 x float], ptr %178, i64 0, i64 2
  %180 = load float, ptr %179, align 8, !tbaa !9
  %181 = call float @llvm.fmuladd.f32(float %177, float %180, float %174)
  %182 = call float @sqrtf(float noundef %181) #6
  %183 = load float, ptr %11, align 4, !tbaa !9
  %184 = fmul float %182, %183
  %185 = load ptr, ptr %7, align 8, !tbaa !5
  %186 = getelementptr inbounds float, ptr %185, i64 2
  store float %184, ptr %186, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %187 = load ptr, ptr %7, align 8, !tbaa !5
  %188 = getelementptr inbounds float, ptr %187, i64 0
  %189 = load float, ptr %188, align 4, !tbaa !9
  %190 = fcmp oeq float %189, 0.000000e+00
  br i1 %190, label %191, label %192

191:                                              ; preds = %4
  br label %197

192:                                              ; preds = %4
  %193 = load ptr, ptr %7, align 8, !tbaa !5
  %194 = getelementptr inbounds float, ptr %193, i64 0
  %195 = load float, ptr %194, align 4, !tbaa !9
  %196 = fdiv float 1.000000e+00, %195
  br label %197

197:                                              ; preds = %192, %191
  %198 = phi float [ 0.000000e+00, %191 ], [ %196, %192 ]
  store float %198, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %199 = load ptr, ptr %7, align 8, !tbaa !5
  %200 = getelementptr inbounds float, ptr %199, i64 1
  %201 = load float, ptr %200, align 4, !tbaa !9
  %202 = fcmp oeq float %201, 0.000000e+00
  br i1 %202, label %203, label %204

203:                                              ; preds = %197
  br label %209

204:                                              ; preds = %197
  %205 = load ptr, ptr %7, align 8, !tbaa !5
  %206 = getelementptr inbounds float, ptr %205, i64 1
  %207 = load float, ptr %206, align 4, !tbaa !9
  %208 = fdiv float 1.000000e+00, %207
  br label %209

209:                                              ; preds = %204, %203
  %210 = phi float [ 0.000000e+00, %203 ], [ %208, %204 ]
  store float %210, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %211 = load ptr, ptr %7, align 8, !tbaa !5
  %212 = getelementptr inbounds float, ptr %211, i64 2
  %213 = load float, ptr %212, align 4, !tbaa !9
  %214 = fcmp oeq float %213, 0.000000e+00
  br i1 %214, label %215, label %216

215:                                              ; preds = %209
  br label %221

216:                                              ; preds = %209
  %217 = load ptr, ptr %7, align 8, !tbaa !5
  %218 = getelementptr inbounds float, ptr %217, i64 2
  %219 = load float, ptr %218, align 4, !tbaa !9
  %220 = fdiv float 1.000000e+00, %219
  br label %221

221:                                              ; preds = %216, %215
  %222 = phi float [ 0.000000e+00, %215 ], [ %220, %216 ]
  store float %222, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %223 = getelementptr inbounds [4 x [4 x float]], ptr %9, i64 0, i64 0
  %224 = getelementptr inbounds [4 x float], ptr %223, i64 0, i64 0
  %225 = load float, ptr %224, align 16, !tbaa !9
  %226 = load float, ptr %12, align 4, !tbaa !9
  %227 = fmul float %225, %226
  store float %227, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %228 = getelementptr inbounds [4 x [4 x float]], ptr %9, i64 0, i64 1
  %229 = getelementptr inbounds [4 x float], ptr %228, i64 0, i64 0
  %230 = load float, ptr %229, align 16, !tbaa !9
  %231 = load float, ptr %13, align 4, !tbaa !9
  %232 = fmul float %230, %231
  store float %232, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  %233 = getelementptr inbounds [4 x [4 x float]], ptr %9, i64 0, i64 2
  %234 = getelementptr inbounds [4 x float], ptr %233, i64 0, i64 0
  %235 = load float, ptr %234, align 16, !tbaa !9
  %236 = load float, ptr %14, align 4, !tbaa !9
  %237 = fmul float %235, %236
  store float %237, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  %238 = getelementptr inbounds [4 x [4 x float]], ptr %9, i64 0, i64 0
  %239 = getelementptr inbounds [4 x float], ptr %238, i64 0, i64 1
  %240 = load float, ptr %239, align 4, !tbaa !9
  %241 = load float, ptr %12, align 4, !tbaa !9
  %242 = fmul float %240, %241
  store float %242, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  %243 = getelementptr inbounds [4 x [4 x float]], ptr %9, i64 0, i64 1
  %244 = getelementptr inbounds [4 x float], ptr %243, i64 0, i64 1
  %245 = load float, ptr %244, align 4, !tbaa !9
  %246 = load float, ptr %13, align 4, !tbaa !9
  %247 = fmul float %245, %246
  store float %247, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  %248 = getelementptr inbounds [4 x [4 x float]], ptr %9, i64 0, i64 2
  %249 = getelementptr inbounds [4 x float], ptr %248, i64 0, i64 1
  %250 = load float, ptr %249, align 4, !tbaa !9
  %251 = load float, ptr %14, align 4, !tbaa !9
  %252 = fmul float %250, %251
  store float %252, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  %253 = getelementptr inbounds [4 x [4 x float]], ptr %9, i64 0, i64 0
  %254 = getelementptr inbounds [4 x float], ptr %253, i64 0, i64 2
  %255 = load float, ptr %254, align 8, !tbaa !9
  %256 = load float, ptr %12, align 4, !tbaa !9
  %257 = fmul float %255, %256
  store float %257, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  %258 = getelementptr inbounds [4 x [4 x float]], ptr %9, i64 0, i64 1
  %259 = getelementptr inbounds [4 x float], ptr %258, i64 0, i64 2
  %260 = load float, ptr %259, align 8, !tbaa !9
  %261 = load float, ptr %13, align 4, !tbaa !9
  %262 = fmul float %260, %261
  store float %262, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  %263 = getelementptr inbounds [4 x [4 x float]], ptr %9, i64 0, i64 2
  %264 = getelementptr inbounds [4 x float], ptr %263, i64 0, i64 2
  %265 = load float, ptr %264, align 8, !tbaa !9
  %266 = load float, ptr %14, align 4, !tbaa !9
  %267 = fmul float %265, %266
  store float %267, ptr %23, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  %268 = load float, ptr %23, align 4, !tbaa !9
  %269 = fcmp olt float %268, 0.000000e+00
  br i1 %269, label %270, label %276

270:                                              ; preds = %221
  %271 = load float, ptr %15, align 4, !tbaa !9
  %272 = load float, ptr %19, align 4, !tbaa !9
  %273 = fcmp ogt float %271, %272
  %274 = zext i1 %273 to i64
  %275 = select i1 %273, i32 0, i32 1
  br label %283

276:                                              ; preds = %221
  %277 = load float, ptr %15, align 4, !tbaa !9
  %278 = load float, ptr %19, align 4, !tbaa !9
  %279 = fneg float %278
  %280 = fcmp olt float %277, %279
  %281 = zext i1 %280 to i64
  %282 = select i1 %280, i32 2, i32 3
  br label %283

283:                                              ; preds = %276, %270
  %284 = phi i32 [ %275, %270 ], [ %282, %276 ]
  store i32 %284, ptr %24, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  %285 = load i32, ptr %24, align 4, !tbaa !11
  %286 = and i32 %285, 2
  %287 = icmp ne i32 %286, 0
  %288 = zext i1 %287 to i64
  %289 = select i1 %287, float -1.000000e+00, float 1.000000e+00
  store float %289, ptr %25, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  %290 = load i32, ptr %24, align 4, !tbaa !11
  %291 = and i32 %290, 1
  %292 = icmp ne i32 %291, 0
  %293 = zext i1 %292 to i64
  %294 = select i1 %292, float -1.000000e+00, float 1.000000e+00
  store float %294, ptr %26, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #6
  %295 = load i32, ptr %24, align 4, !tbaa !11
  %296 = sub nsw i32 %295, 1
  %297 = and i32 %296, 2
  %298 = icmp ne i32 %297, 0
  %299 = zext i1 %298 to i64
  %300 = select i1 %298, float -1.000000e+00, float 1.000000e+00
  store float %300, ptr %27, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #6
  %301 = load float, ptr %27, align 4, !tbaa !9
  %302 = load float, ptr %15, align 4, !tbaa !9
  %303 = fneg float %301
  %304 = call float @llvm.fmuladd.f32(float %303, float %302, float 1.000000e+00)
  %305 = load float, ptr %26, align 4, !tbaa !9
  %306 = load float, ptr %19, align 4, !tbaa !9
  %307 = fneg float %305
  %308 = call float @llvm.fmuladd.f32(float %307, float %306, float %304)
  %309 = load float, ptr %25, align 4, !tbaa !9
  %310 = load float, ptr %23, align 4, !tbaa !9
  %311 = fneg float %309
  %312 = call float @llvm.fmuladd.f32(float %311, float %310, float %308)
  store float %312, ptr %28, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #6
  %313 = load float, ptr %28, align 4, !tbaa !9
  %314 = call float @sqrtf(float noundef %313) #6
  %315 = fdiv float 5.000000e-01, %314
  store float %315, ptr %29, align 4, !tbaa !9
  %316 = load float, ptr %29, align 4, !tbaa !9
  %317 = load float, ptr %28, align 4, !tbaa !9
  %318 = fmul float %316, %317
  %319 = load ptr, ptr %6, align 8, !tbaa !5
  %320 = load i32, ptr %24, align 4, !tbaa !11
  %321 = xor i32 %320, 0
  %322 = sext i32 %321 to i64
  %323 = getelementptr inbounds float, ptr %319, i64 %322
  store float %318, ptr %323, align 4, !tbaa !9
  %324 = load float, ptr %29, align 4, !tbaa !9
  %325 = load float, ptr %18, align 4, !tbaa !9
  %326 = load float, ptr %25, align 4, !tbaa !9
  %327 = load float, ptr %16, align 4, !tbaa !9
  %328 = call float @llvm.fmuladd.f32(float %326, float %327, float %325)
  %329 = fmul float %324, %328
  %330 = load ptr, ptr %6, align 8, !tbaa !5
  %331 = load i32, ptr %24, align 4, !tbaa !11
  %332 = xor i32 %331, 1
  %333 = sext i32 %332 to i64
  %334 = getelementptr inbounds float, ptr %330, i64 %333
  store float %329, ptr %334, align 4, !tbaa !9
  %335 = load float, ptr %29, align 4, !tbaa !9
  %336 = load float, ptr %17, align 4, !tbaa !9
  %337 = load float, ptr %26, align 4, !tbaa !9
  %338 = load float, ptr %21, align 4, !tbaa !9
  %339 = call float @llvm.fmuladd.f32(float %337, float %338, float %336)
  %340 = fmul float %335, %339
  %341 = load ptr, ptr %6, align 8, !tbaa !5
  %342 = load i32, ptr %24, align 4, !tbaa !11
  %343 = xor i32 %342, 2
  %344 = sext i32 %343 to i64
  %345 = getelementptr inbounds float, ptr %341, i64 %344
  store float %340, ptr %345, align 4, !tbaa !9
  %346 = load float, ptr %29, align 4, !tbaa !9
  %347 = load float, ptr %22, align 4, !tbaa !9
  %348 = load float, ptr %27, align 4, !tbaa !9
  %349 = load float, ptr %20, align 4, !tbaa !9
  %350 = call float @llvm.fmuladd.f32(float %348, float %349, float %347)
  %351 = fmul float %346, %350
  %352 = load ptr, ptr %6, align 8, !tbaa !5
  %353 = load i32, ptr %24, align 4, !tbaa !11
  %354 = xor i32 %353, 3
  %355 = sext i32 %354 to i64
  %356 = getelementptr inbounds float, ptr %352, i64 %355
  store float %351, ptr %356, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %9) #6
  ret void
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #4

; Function Attrs: nounwind
declare float @sqrtf(float noundef) #5

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 nounwind willreturn memory(argmem: write) }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 #6 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !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"

; Function Attrs: mustprogress nofree nounwind willreturn memory(write, argmem: readwrite) uwtable
define dso_local void @_Z18decomposeTransformPfS_S_PKf(ptr nocapture noundef writeonly %0, ptr nocapture noundef writeonly %1, ptr nocapture noundef writeonly %2, ptr nocapture noundef readonly %3) local_unnamed_addr #0 {
  %.sroa.0.0.copyload = load float, ptr %3, align 4
  %.sroa.8.0..sroa_idx = getelementptr inbounds i8, ptr %3, i64 4
  %.sroa.8.0.copyload = load float, ptr %.sroa.8.0..sroa_idx, align 4
  %.sroa.12.0..sroa_idx = getelementptr inbounds i8, ptr %3, i64 8
  %.sroa.12.0.copyload = load float, ptr %.sroa.12.0..sroa_idx, align 4
  %.sroa.1654.0..sroa_idx = getelementptr inbounds i8, ptr %3, i64 16
  %.sroa.1654.0.copyload = load float, ptr %.sroa.1654.0..sroa_idx, align 4
  %.sroa.21.0..sroa_idx = getelementptr inbounds i8, ptr %3, i64 20
  %.sroa.21.0.copyload = load float, ptr %.sroa.21.0..sroa_idx, align 4
  %.sroa.26.0..sroa_idx = getelementptr inbounds i8, ptr %3, i64 24
  %.sroa.26.0.copyload = load float, ptr %.sroa.26.0..sroa_idx, align 4
  %.sroa.3167.0..sroa_idx = getelementptr inbounds i8, ptr %3, i64 32
  %.sroa.3167.0.copyload = load float, ptr %.sroa.3167.0..sroa_idx, align 4
  %.sroa.36.0..sroa_idx = getelementptr inbounds i8, ptr %3, i64 36
  %.sroa.36.0.copyload = load float, ptr %.sroa.36.0..sroa_idx, align 4
  %.sroa.41.0..sroa_idx = getelementptr inbounds i8, ptr %3, i64 40
  %.sroa.41.0.copyload = load float, ptr %.sroa.41.0..sroa_idx, align 4
  %.sroa.4680.0..sroa_idx = getelementptr inbounds i8, ptr %3, i64 48
  %.sroa.48.0..sroa_idx = getelementptr inbounds i8, ptr %3, i64 56
  %.sroa.48.0.copyload = load float, ptr %.sroa.48.0..sroa_idx, align 4
  %5 = load <2 x float>, ptr %.sroa.4680.0..sroa_idx, align 4
  store <2 x float> %5, ptr %0, align 4, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %0, i64 8
  store float %.sroa.48.0.copyload, ptr %6, align 4, !tbaa !5
  %7 = fneg float %.sroa.36.0.copyload
  %8 = fmul float %.sroa.26.0.copyload, %7
  %9 = tail call float @llvm.fmuladd.f32(float %.sroa.21.0.copyload, float %.sroa.41.0.copyload, float %8)
  %10 = fneg float %.sroa.26.0.copyload
  %11 = fmul float %.sroa.3167.0.copyload, %10
  %12 = tail call float @llvm.fmuladd.f32(float %.sroa.1654.0.copyload, float %.sroa.41.0.copyload, float %11)
  %13 = fneg float %.sroa.8.0.copyload
  %14 = fmul float %12, %13
  %15 = tail call float @llvm.fmuladd.f32(float %.sroa.0.0.copyload, float %9, float %14)
  %16 = fneg float %.sroa.21.0.copyload
  %17 = fmul float %.sroa.3167.0.copyload, %16
  %18 = tail call float @llvm.fmuladd.f32(float %.sroa.1654.0.copyload, float %.sroa.36.0.copyload, float %17)
  %19 = tail call float @llvm.fmuladd.f32(float %.sroa.12.0.copyload, float %18, float %15)
  %20 = fcmp olt float %19, 0.000000e+00
  %21 = select i1 %20, float -1.000000e+00, float 1.000000e+00
  %22 = insertelement <2 x float> poison, float %.sroa.8.0.copyload, i64 0
  %23 = insertelement <2 x float> %22, float %.sroa.21.0.copyload, i64 1
  %24 = fmul <2 x float> %23, %23
  %25 = insertelement <2 x float> poison, float %.sroa.0.0.copyload, i64 0
  %26 = insertelement <2 x float> %25, float %.sroa.1654.0.copyload, i64 1
  %27 = tail call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %26, <2 x float> %26, <2 x float> %24)
  %28 = insertelement <2 x float> poison, float %.sroa.12.0.copyload, i64 0
  %29 = insertelement <2 x float> %28, float %.sroa.26.0.copyload, i64 1
  %30 = tail call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %29, <2 x float> %29, <2 x float> %27)
  %31 = tail call <2 x float> @llvm.sqrt.v2f32(<2 x float> %30)
  %32 = insertelement <2 x float> poison, float %21, i64 0
  %33 = shufflevector <2 x float> %32, <2 x float> poison, <2 x i32> zeroinitializer
  %34 = fmul <2 x float> %31, %33
  store <2 x float> %34, ptr %2, align 4, !tbaa !5
  %35 = fmul float %.sroa.36.0.copyload, %.sroa.36.0.copyload
  %36 = tail call float @llvm.fmuladd.f32(float %.sroa.3167.0.copyload, float %.sroa.3167.0.copyload, float %35)
  %37 = tail call float @llvm.fmuladd.f32(float %.sroa.41.0.copyload, float %.sroa.41.0.copyload, float %36)
  %sqrt = tail call float @llvm.sqrt.f32(float %37)
  %38 = fmul float %sqrt, %21
  %39 = getelementptr inbounds i8, ptr %2, i64 8
  store float %38, ptr %39, align 4, !tbaa !5
  %40 = extractelement <2 x float> %34, i64 0
  %41 = fcmp oeq float %40, 0.000000e+00
  %42 = fdiv float 1.000000e+00, %40
  %43 = select i1 %41, float 0.000000e+00, float %42
  %44 = extractelement <2 x float> %34, i64 1
  %45 = fcmp oeq float %44, 0.000000e+00
  %46 = fdiv float 1.000000e+00, %44
  %47 = select i1 %45, float 0.000000e+00, float %46
  %48 = fcmp oeq float %38, 0.000000e+00
  %49 = fdiv float 1.000000e+00, %38
  %50 = select i1 %48, float 0.000000e+00, float %49
  %51 = fmul float %.sroa.0.0.copyload, %43
  %52 = fmul float %.sroa.21.0.copyload, %47
  %53 = fmul float %.sroa.41.0.copyload, %50
  %54 = fcmp olt float %53, 0.000000e+00
  br i1 %54, label %55, label %58

55:                                               ; preds = %4
  %56 = fcmp ule float %51, %52
  %57 = zext i1 %56 to i32
  br label %62

58:                                               ; preds = %4
  %59 = fneg float %52
  %60 = fcmp olt float %51, %59
  %61 = select i1 %60, i32 2, i32 3
  br label %62

62:                                               ; preds = %58, %55
  %63 = phi i32 [ %57, %55 ], [ %61, %58 ]
  %64 = fmul float %.sroa.26.0.copyload, %47
  %65 = fmul float %.sroa.12.0.copyload, %43
  %66 = fmul float %.sroa.36.0.copyload, %50
  %67 = fmul float %.sroa.8.0.copyload, %43
  %68 = fmul float %.sroa.3167.0.copyload, %50
  %69 = fmul float %.sroa.1654.0.copyload, %47
  %.not = icmp ult i32 %63, 2
  %70 = select i1 %.not, float 1.000000e+00, float -1.000000e+00
  %71 = and i32 %63, 1
  %.not100 = icmp eq i32 %71, 0
  %72 = select i1 %.not100, float 1.000000e+00, float -1.000000e+00
  %73 = add nuw nsw i32 %63, 3
  %74 = and i32 %73, 2
  %.not101 = icmp eq i32 %74, 0
  %75 = select i1 %.not101, float 1.000000e+00, float -1.000000e+00
  %76 = fneg float %75
  %77 = tail call float @llvm.fmuladd.f32(float %76, float %51, float 1.000000e+00)
  %78 = fneg float %72
  %79 = tail call float @llvm.fmuladd.f32(float %78, float %52, float %77)
  %80 = fneg float %70
  %81 = tail call float @llvm.fmuladd.f32(float %80, float %53, float %79)
  %82 = tail call float @sqrtf(float noundef %81) #4
  %83 = fdiv float 5.000000e-01, %82
  %84 = fmul float %83, %81
  %85 = zext nneg i32 %63 to i64
  %86 = getelementptr inbounds float, ptr %1, i64 %85
  store float %84, ptr %86, align 4, !tbaa !5
  %87 = tail call float @llvm.fmuladd.f32(float %70, float %69, float %67)
  %88 = fmul float %83, %87
  %89 = xor i32 %63, 1
  %90 = zext nneg i32 %89 to i64
  %91 = getelementptr inbounds float, ptr %1, i64 %90
  store float %88, ptr %91, align 4, !tbaa !5
  %92 = tail call float @llvm.fmuladd.f32(float %72, float %65, float %68)
  %93 = fmul float %83, %92
  %94 = xor i32 %63, 2
  %95 = zext nneg i32 %94 to i64
  %96 = getelementptr inbounds float, ptr %1, i64 %95
  store float %93, ptr %96, align 4, !tbaa !5
  %97 = tail call float @llvm.fmuladd.f32(float %75, float %66, float %64)
  %98 = fmul float %83, %97
  %99 = xor i32 %63, 3
  %100 = zext nneg i32 %99 to i64
  %101 = getelementptr inbounds float, ptr %1, i64 %100
  store float %98, ptr %101, align 4, !tbaa !5
  ret void
}

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x float> @llvm.fmuladd.v2f32(<2 x float>, <2 x float>, <2 x float>) #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x float> @llvm.sqrt.v2f32(<2 x float>) #3

attributes #0 = { mustprogress nofree nounwind willreturn memory(write, argmem: readwrite) 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++ TBAA"}


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