; LLVM IR from ashishzero/karma :: src/modules/core/lin_maths.ll (Z12mat3_inverseRK4Mat3)

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

%union.Mat3 = type { [3 x %union.Vec3] }
%union.Vec3 = type { %struct.anon }
%struct.anon = type { float, float, float }

; 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) #0

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z12mat3_inverseRK4Mat3(ptr dead_on_unwind noalias writable sret(%union.Mat3) align 4 %0, ptr noundef nonnull align 4 dereferenceable(36) %1) #3 {
  %3 = alloca ptr, align 8
  %4 = alloca float, align 4
  %5 = alloca i32, align 4
  %6 = alloca %union.Vec3, align 4
  %7 = alloca %union.Vec3, align 4
  %8 = alloca { <2 x float>, float }, align 4
  %9 = alloca { <2 x float>, float }, align 8
  store ptr %1, ptr %3, align 8, !tbaa !5
  %10 = load ptr, ptr %3, align 8, !tbaa !5
  %11 = getelementptr inbounds [3 x [3 x float]], ptr %10, i64 0, i64 1
  %12 = getelementptr inbounds [3 x float], ptr %11, i64 0, i64 1
  %13 = load float, ptr %12, align 4, !tbaa !9
  %14 = load ptr, ptr %3, align 8, !tbaa !5
  %15 = getelementptr inbounds [3 x [3 x float]], ptr %14, i64 0, i64 2
  %16 = getelementptr inbounds [3 x float], ptr %15, i64 0, i64 2
  %17 = load float, ptr %16, align 4, !tbaa !9
  %18 = load ptr, ptr %3, align 8, !tbaa !5
  %19 = getelementptr inbounds [3 x [3 x float]], ptr %18, i64 0, i64 2
  %20 = getelementptr inbounds [3 x float], ptr %19, i64 0, i64 1
  %21 = load float, ptr %20, align 4, !tbaa !9
  %22 = load ptr, ptr %3, align 8, !tbaa !5
  %23 = getelementptr inbounds [3 x [3 x float]], ptr %22, i64 0, i64 1
  %24 = getelementptr inbounds [3 x float], ptr %23, i64 0, i64 2
  %25 = load float, ptr %24, align 4, !tbaa !9
  %26 = fmul float %21, %25
  %27 = fneg float %26
  %28 = call float @llvm.fmuladd.f32(float %13, float %17, float %27)
  %29 = getelementptr inbounds [3 x [3 x float]], ptr %0, i64 0, i64 0
  %30 = getelementptr inbounds [3 x float], ptr %29, i64 0, i64 0
  store float %28, ptr %30, align 4, !tbaa !9
  %31 = load ptr, ptr %3, align 8, !tbaa !5
  %32 = getelementptr inbounds [3 x [3 x float]], ptr %31, i64 0, i64 0
  %33 = getelementptr inbounds [3 x float], ptr %32, i64 0, i64 2
  %34 = load float, ptr %33, align 4, !tbaa !9
  %35 = load ptr, ptr %3, align 8, !tbaa !5
  %36 = getelementptr inbounds [3 x [3 x float]], ptr %35, i64 0, i64 2
  %37 = getelementptr inbounds [3 x float], ptr %36, i64 0, i64 1
  %38 = load float, ptr %37, align 4, !tbaa !9
  %39 = load ptr, ptr %3, align 8, !tbaa !5
  %40 = getelementptr inbounds [3 x [3 x float]], ptr %39, i64 0, i64 0
  %41 = getelementptr inbounds [3 x float], ptr %40, i64 0, i64 1
  %42 = load float, ptr %41, align 4, !tbaa !9
  %43 = load ptr, ptr %3, align 8, !tbaa !5
  %44 = getelementptr inbounds [3 x [3 x float]], ptr %43, i64 0, i64 2
  %45 = getelementptr inbounds [3 x float], ptr %44, i64 0, i64 2
  %46 = load float, ptr %45, align 4, !tbaa !9
  %47 = fmul float %42, %46
  %48 = fneg float %47
  %49 = call float @llvm.fmuladd.f32(float %34, float %38, float %48)
  %50 = getelementptr inbounds [3 x [3 x float]], ptr %0, i64 0, i64 0
  %51 = getelementptr inbounds [3 x float], ptr %50, i64 0, i64 1
  store float %49, ptr %51, align 4, !tbaa !9
  %52 = load ptr, ptr %3, align 8, !tbaa !5
  %53 = getelementptr inbounds [3 x [3 x float]], ptr %52, i64 0, i64 0
  %54 = getelementptr inbounds [3 x float], ptr %53, i64 0, i64 1
  %55 = load float, ptr %54, align 4, !tbaa !9
  %56 = load ptr, ptr %3, align 8, !tbaa !5
  %57 = getelementptr inbounds [3 x [3 x float]], ptr %56, i64 0, i64 1
  %58 = getelementptr inbounds [3 x float], ptr %57, i64 0, i64 2
  %59 = load float, ptr %58, align 4, !tbaa !9
  %60 = load ptr, ptr %3, align 8, !tbaa !5
  %61 = getelementptr inbounds [3 x [3 x float]], ptr %60, i64 0, i64 0
  %62 = getelementptr inbounds [3 x float], ptr %61, i64 0, i64 2
  %63 = load float, ptr %62, align 4, !tbaa !9
  %64 = load ptr, ptr %3, align 8, !tbaa !5
  %65 = getelementptr inbounds [3 x [3 x float]], ptr %64, i64 0, i64 1
  %66 = getelementptr inbounds [3 x float], ptr %65, i64 0, i64 1
  %67 = load float, ptr %66, align 4, !tbaa !9
  %68 = fmul float %63, %67
  %69 = fneg float %68
  %70 = call float @llvm.fmuladd.f32(float %55, float %59, float %69)
  %71 = getelementptr inbounds [3 x [3 x float]], ptr %0, i64 0, i64 0
  %72 = getelementptr inbounds [3 x float], ptr %71, i64 0, i64 2
  store float %70, ptr %72, align 4, !tbaa !9
  %73 = load ptr, ptr %3, align 8, !tbaa !5
  %74 = getelementptr inbounds [3 x [3 x float]], ptr %73, i64 0, i64 1
  %75 = getelementptr inbounds [3 x float], ptr %74, i64 0, i64 2
  %76 = load float, ptr %75, align 4, !tbaa !9
  %77 = load ptr, ptr %3, align 8, !tbaa !5
  %78 = getelementptr inbounds [3 x [3 x float]], ptr %77, i64 0, i64 2
  %79 = getelementptr inbounds [3 x float], ptr %78, i64 0, i64 0
  %80 = load float, ptr %79, align 4, !tbaa !9
  %81 = load ptr, ptr %3, align 8, !tbaa !5
  %82 = getelementptr inbounds [3 x [3 x float]], ptr %81, i64 0, i64 1
  %83 = getelementptr inbounds [3 x float], ptr %82, i64 0, i64 0
  %84 = load float, ptr %83, align 4, !tbaa !9
  %85 = load ptr, ptr %3, align 8, !tbaa !5
  %86 = getelementptr inbounds [3 x [3 x float]], ptr %85, i64 0, i64 2
  %87 = getelementptr inbounds [3 x float], ptr %86, i64 0, i64 2
  %88 = load float, ptr %87, align 4, !tbaa !9
  %89 = fmul float %84, %88
  %90 = fneg float %89
  %91 = call float @llvm.fmuladd.f32(float %76, float %80, float %90)
  %92 = getelementptr inbounds [3 x [3 x float]], ptr %0, i64 0, i64 1
  %93 = getelementptr inbounds [3 x float], ptr %92, i64 0, i64 0
  store float %91, ptr %93, align 4, !tbaa !9
  %94 = load ptr, ptr %3, align 8, !tbaa !5
  %95 = getelementptr inbounds [3 x [3 x float]], ptr %94, i64 0, i64 0
  %96 = getelementptr inbounds [3 x float], ptr %95, i64 0, i64 0
  %97 = load float, ptr %96, align 4, !tbaa !9
  %98 = load ptr, ptr %3, align 8, !tbaa !5
  %99 = getelementptr inbounds [3 x [3 x float]], ptr %98, i64 0, i64 2
  %100 = getelementptr inbounds [3 x float], ptr %99, i64 0, i64 2
  %101 = load float, ptr %100, align 4, !tbaa !9
  %102 = load ptr, ptr %3, align 8, !tbaa !5
  %103 = getelementptr inbounds [3 x [3 x float]], ptr %102, i64 0, i64 0
  %104 = getelementptr inbounds [3 x float], ptr %103, i64 0, i64 2
  %105 = load float, ptr %104, align 4, !tbaa !9
  %106 = load ptr, ptr %3, align 8, !tbaa !5
  %107 = getelementptr inbounds [3 x [3 x float]], ptr %106, i64 0, i64 2
  %108 = getelementptr inbounds [3 x float], ptr %107, i64 0, i64 0
  %109 = load float, ptr %108, align 4, !tbaa !9
  %110 = fmul float %105, %109
  %111 = fneg float %110
  %112 = call float @llvm.fmuladd.f32(float %97, float %101, float %111)
  %113 = getelementptr inbounds [3 x [3 x float]], ptr %0, i64 0, i64 1
  %114 = getelementptr inbounds [3 x float], ptr %113, i64 0, i64 1
  store float %112, ptr %114, align 4, !tbaa !9
  %115 = load ptr, ptr %3, align 8, !tbaa !5
  %116 = getelementptr inbounds [3 x [3 x float]], ptr %115, i64 0, i64 1
  %117 = getelementptr inbounds [3 x float], ptr %116, i64 0, i64 0
  %118 = load float, ptr %117, align 4, !tbaa !9
  %119 = load ptr, ptr %3, align 8, !tbaa !5
  %120 = getelementptr inbounds [3 x [3 x float]], ptr %119, i64 0, i64 0
  %121 = getelementptr inbounds [3 x float], ptr %120, i64 0, i64 2
  %122 = load float, ptr %121, align 4, !tbaa !9
  %123 = load ptr, ptr %3, align 8, !tbaa !5
  %124 = getelementptr inbounds [3 x [3 x float]], ptr %123, i64 0, i64 0
  %125 = getelementptr inbounds [3 x float], ptr %124, i64 0, i64 0
  %126 = load float, ptr %125, align 4, !tbaa !9
  %127 = load ptr, ptr %3, align 8, !tbaa !5
  %128 = getelementptr inbounds [3 x [3 x float]], ptr %127, i64 0, i64 1
  %129 = getelementptr inbounds [3 x float], ptr %128, i64 0, i64 2
  %130 = load float, ptr %129, align 4, !tbaa !9
  %131 = fmul float %126, %130
  %132 = fneg float %131
  %133 = call float @llvm.fmuladd.f32(float %118, float %122, float %132)
  %134 = getelementptr inbounds [3 x [3 x float]], ptr %0, i64 0, i64 1
  %135 = getelementptr inbounds [3 x float], ptr %134, i64 0, i64 2
  store float %133, ptr %135, align 4, !tbaa !9
  %136 = load ptr, ptr %3, align 8, !tbaa !5
  %137 = getelementptr inbounds [3 x [3 x float]], ptr %136, i64 0, i64 1
  %138 = getelementptr inbounds [3 x float], ptr %137, i64 0, i64 0
  %139 = load float, ptr %138, align 4, !tbaa !9
  %140 = load ptr, ptr %3, align 8, !tbaa !5
  %141 = getelementptr inbounds [3 x [3 x float]], ptr %140, i64 0, i64 2
  %142 = getelementptr inbounds [3 x float], ptr %141, i64 0, i64 1
  %143 = load float, ptr %142, align 4, !tbaa !9
  %144 = load ptr, ptr %3, align 8, !tbaa !5
  %145 = getelementptr inbounds [3 x [3 x float]], ptr %144, i64 0, i64 2
  %146 = getelementptr inbounds [3 x float], ptr %145, i64 0, i64 0
  %147 = load float, ptr %146, align 4, !tbaa !9
  %148 = load ptr, ptr %3, align 8, !tbaa !5
  %149 = getelementptr inbounds [3 x [3 x float]], ptr %148, i64 0, i64 1
  %150 = getelementptr inbounds [3 x float], ptr %149, i64 0, i64 1
  %151 = load float, ptr %150, align 4, !tbaa !9
  %152 = fmul float %147, %151
  %153 = fneg float %152
  %154 = call float @llvm.fmuladd.f32(float %139, float %143, float %153)
  %155 = getelementptr inbounds [3 x [3 x float]], ptr %0, i64 0, i64 2
  %156 = getelementptr inbounds [3 x float], ptr %155, i64 0, i64 0
  store float %154, ptr %156, align 4, !tbaa !9
  %157 = load ptr, ptr %3, align 8, !tbaa !5
  %158 = getelementptr inbounds [3 x [3 x float]], ptr %157, i64 0, i64 2
  %159 = getelementptr inbounds [3 x float], ptr %158, i64 0, i64 0
  %160 = load float, ptr %159, align 4, !tbaa !9
  %161 = load ptr, ptr %3, align 8, !tbaa !5
  %162 = getelementptr inbounds [3 x [3 x float]], ptr %161, i64 0, i64 0
  %163 = getelementptr inbounds [3 x float], ptr %162, i64 0, i64 1
  %164 = load float, ptr %163, align 4, !tbaa !9
  %165 = load ptr, ptr %3, align 8, !tbaa !5
  %166 = getelementptr inbounds [3 x [3 x float]], ptr %165, i64 0, i64 0
  %167 = getelementptr inbounds [3 x float], ptr %166, i64 0, i64 0
  %168 = load float, ptr %167, align 4, !tbaa !9
  %169 = load ptr, ptr %3, align 8, !tbaa !5
  %170 = getelementptr inbounds [3 x [3 x float]], ptr %169, i64 0, i64 2
  %171 = getelementptr inbounds [3 x float], ptr %170, i64 0, i64 1
  %172 = load float, ptr %171, align 4, !tbaa !9
  %173 = fmul float %168, %172
  %174 = fneg float %173
  %175 = call float @llvm.fmuladd.f32(float %160, float %164, float %174)
  %176 = getelementptr inbounds [3 x [3 x float]], ptr %0, i64 0, i64 2
  %177 = getelementptr inbounds [3 x float], ptr %176, i64 0, i64 1
  store float %175, ptr %177, align 4, !tbaa !9
  %178 = load ptr, ptr %3, align 8, !tbaa !5
  %179 = getelementptr inbounds [3 x [3 x float]], ptr %178, i64 0, i64 0
  %180 = getelementptr inbounds [3 x float], ptr %179, i64 0, i64 0
  %181 = load float, ptr %180, align 4, !tbaa !9
  %182 = load ptr, ptr %3, align 8, !tbaa !5
  %183 = getelementptr inbounds [3 x [3 x float]], ptr %182, i64 0, i64 1
  %184 = getelementptr inbounds [3 x float], ptr %183, i64 0, i64 1
  %185 = load float, ptr %184, align 4, !tbaa !9
  %186 = load ptr, ptr %3, align 8, !tbaa !5
  %187 = getelementptr inbounds [3 x [3 x float]], ptr %186, i64 0, i64 1
  %188 = getelementptr inbounds [3 x float], ptr %187, i64 0, i64 0
  %189 = load float, ptr %188, align 4, !tbaa !9
  %190 = load ptr, ptr %3, align 8, !tbaa !5
  %191 = getelementptr inbounds [3 x [3 x float]], ptr %190, i64 0, i64 0
  %192 = getelementptr inbounds [3 x float], ptr %191, i64 0, i64 1
  %193 = load float, ptr %192, align 4, !tbaa !9
  %194 = fmul float %189, %193
  %195 = fneg float %194
  %196 = call float @llvm.fmuladd.f32(float %181, float %185, float %195)
  %197 = getelementptr inbounds [3 x [3 x float]], ptr %0, i64 0, i64 2
  %198 = getelementptr inbounds [3 x float], ptr %197, i64 0, i64 2
  store float %196, ptr %198, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  %199 = load ptr, ptr %3, align 8, !tbaa !5
  %200 = getelementptr inbounds [3 x [3 x float]], ptr %199, i64 0, i64 0
  %201 = getelementptr inbounds [3 x float], ptr %200, i64 0, i64 0
  %202 = load float, ptr %201, align 4, !tbaa !9
  %203 = getelementptr inbounds [3 x [3 x float]], ptr %0, i64 0, i64 0
  %204 = getelementptr inbounds [3 x float], ptr %203, i64 0, i64 0
  %205 = load float, ptr %204, align 4, !tbaa !9
  %206 = load ptr, ptr %3, align 8, !tbaa !5
  %207 = getelementptr inbounds [3 x [3 x float]], ptr %206, i64 0, i64 0
  %208 = getelementptr inbounds [3 x float], ptr %207, i64 0, i64 1
  %209 = load float, ptr %208, align 4, !tbaa !9
  %210 = getelementptr inbounds [3 x [3 x float]], ptr %0, i64 0, i64 1
  %211 = getelementptr inbounds [3 x float], ptr %210, i64 0, i64 0
  %212 = load float, ptr %211, align 4, !tbaa !9
  %213 = fmul float %209, %212
  %214 = call float @llvm.fmuladd.f32(float %202, float %205, float %213)
  %215 = load ptr, ptr %3, align 8, !tbaa !5
  %216 = getelementptr inbounds [3 x [3 x float]], ptr %215, i64 0, i64 0
  %217 = getelementptr inbounds [3 x float], ptr %216, i64 0, i64 2
  %218 = load float, ptr %217, align 4, !tbaa !9
  %219 = getelementptr inbounds [3 x [3 x float]], ptr %0, i64 0, i64 2
  %220 = getelementptr inbounds [3 x float], ptr %219, i64 0, i64 0
  %221 = load float, ptr %220, align 4, !tbaa !9
  %222 = call float @llvm.fmuladd.f32(float %218, float %221, float %214)
  store float %222, ptr %4, align 4, !tbaa !10
  %223 = load float, ptr %4, align 4, !tbaa !10
  %224 = load float, ptr %4, align 4, !tbaa !10
  %225 = fdiv float %224, %223
  store float %225, ptr %4, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 0, ptr %5, align 4, !tbaa !12
  br label %226

226:                                              ; preds = %244, %2
  %227 = load i32, ptr %5, align 4, !tbaa !12
  %228 = icmp slt i32 %227, 3
  br i1 %228, label %230, label %229

229:                                              ; preds = %226
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %247

230:                                              ; preds = %226
  call void @llvm.lifetime.start.p0(i64 12, ptr %6) #5
  %231 = load i32, ptr %5, align 4, !tbaa !12
  %232 = sext i32 %231 to i64
  %233 = getelementptr inbounds [3 x %union.Vec3], ptr %0, i64 0, i64 %232
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %7, ptr align 4 %233, i64 12, i1 false), !tbaa.struct !14
  %234 = load float, ptr %4, align 4, !tbaa !10
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %8, ptr align 4 %7, i64 12, i1 false)
  %235 = getelementptr inbounds { <2 x float>, float }, ptr %8, i32 0, i32 0
  %236 = load <2 x float>, ptr %235, align 4
  %237 = getelementptr inbounds { <2 x float>, float }, ptr %8, i32 0, i32 1
  %238 = load float, ptr %237, align 4
  %239 = call { <2 x float>, float } @_Zml4Vec3f(<2 x float> %236, float %238, float noundef %234)
  %240 = getelementptr inbounds %union.Vec3, ptr %6, i32 0, i32 0
  store { <2 x float>, float } %239, ptr %9, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %240, ptr align 8 %9, i64 12, i1 false)
  %241 = load i32, ptr %5, align 4, !tbaa !12
  %242 = sext i32 %241 to i64
  %243 = getelementptr inbounds [3 x %union.Vec3], ptr %0, i64 0, i64 %242
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %243, ptr align 4 %6, i64 12, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.end.p0(i64 12, ptr %6) #5
  br label %244

244:                                              ; preds = %230
  %245 = load i32, ptr %5, align 4, !tbaa !12
  %246 = add nsw i32 %245, 1
  store i32 %246, ptr %5, align 4, !tbaa !12
  br label %226, !llvm.loop !15

247:                                              ; preds = %229
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { <2 x float>, float } @_Zml4Vec3f(<2 x float>, float, float noundef) #4

attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="64" "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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="64" "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 #5 = { 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 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"float", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{i64 0, i64 12, !9}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}


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

%union.Mat3 = type { [3 x %union.Vec3] }
%union.Vec3 = type { %struct.anon }
%struct.anon = type { float, float, float }

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z12mat3_inverseRK4Mat3(ptr dead_on_unwind noalias nocapture writable sret(%union.Mat3) align 4 %0, ptr nocapture noundef nonnull readonly align 4 dereferenceable(36) %1) local_unnamed_addr #1 {
  %3 = getelementptr inbounds i8, ptr %1, i64 12
  %4 = getelementptr inbounds i8, ptr %1, i64 16
  %5 = load float, ptr %4, align 4, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %1, i64 24
  %7 = getelementptr inbounds i8, ptr %1, i64 28
  %8 = getelementptr inbounds i8, ptr %1, i64 20
  %9 = load float, ptr %8, align 4, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %1, i64 8
  %11 = load float, ptr %10, align 4, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %1, i64 4
  %13 = load float, ptr %12, align 4, !tbaa !5
  %14 = load <2 x float>, ptr %7, align 4, !tbaa !5
  %15 = shufflevector <2 x float> %14, <2 x float> poison, <2 x i32> <i32 1, i32 0>
  %16 = insertelement <2 x float> %14, float %13, i64 1
  %17 = fneg <2 x float> %16
  %18 = insertelement <2 x float> %14, float %9, i64 0
  %19 = fmul <2 x float> %18, %17
  %20 = insertelement <2 x float> poison, float %5, i64 0
  %21 = insertelement <2 x float> %20, float %11, i64 1
  %22 = tail call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %21, <2 x float> %15, <2 x float> %19)
  store <2 x float> %22, ptr %0, align 4, !tbaa !5
  %23 = fneg float %11
  %24 = fmul float %5, %23
  %25 = tail call float @llvm.fmuladd.f32(float %13, float %9, float %24)
  %26 = getelementptr inbounds i8, ptr %0, i64 8
  %27 = load float, ptr %6, align 4, !tbaa !5
  %28 = load float, ptr %3, align 4, !tbaa !5
  %29 = fneg float %28
  %30 = extractelement <2 x float> %14, i64 1
  %31 = fmul float %30, %29
  %32 = tail call float @llvm.fmuladd.f32(float %9, float %27, float %31)
  %33 = getelementptr inbounds i8, ptr %0, i64 12
  store float %32, ptr %33, align 4, !tbaa !5
  %34 = load float, ptr %1, align 4, !tbaa !5
  %35 = fmul float %27, %23
  %36 = tail call float @llvm.fmuladd.f32(float %34, float %30, float %35)
  %37 = getelementptr inbounds i8, ptr %0, i64 16
  store float %36, ptr %37, align 4, !tbaa !5
  %38 = getelementptr inbounds i8, ptr %0, i64 24
  %39 = insertelement <2 x float> poison, float %27, i64 0
  %40 = insertelement <2 x float> %39, float %34, i64 1
  %41 = fneg <2 x float> %40
  %42 = extractelement <2 x float> %41, i64 1
  %43 = fmul float %9, %42
  %44 = tail call float @llvm.fmuladd.f32(float %28, float %11, float %43)
  %45 = insertelement <2 x float> %15, float %5, i64 0
  %46 = fmul <2 x float> %45, %41
  %47 = insertelement <2 x float> poison, float %28, i64 0
  %48 = insertelement <2 x float> %47, float %27, i64 1
  %49 = tail call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %48, <2 x float> %16, <2 x float> %46)
  store <2 x float> %49, ptr %38, align 4, !tbaa !5
  %50 = fmul float %13, %29
  %51 = tail call float @llvm.fmuladd.f32(float %34, float %5, float %50)
  %52 = fmul float %13, %32
  %53 = extractelement <2 x float> %22, i64 0
  %54 = tail call float @llvm.fmuladd.f32(float %34, float %53, float %52)
  %55 = extractelement <2 x float> %49, i64 0
  %56 = tail call float @llvm.fmuladd.f32(float %11, float %55, float %54)
  %57 = fdiv float %56, %56
  %.sroa.03.0.copyload = load <2 x float>, ptr %0, align 4
  %58 = tail call { <2 x float>, float } @_Zml4Vec3f(<2 x float> %.sroa.03.0.copyload, float %25, float noundef %57)
  %.fca.0.extract = extractvalue { <2 x float>, float } %58, 0
  %.fca.1.extract = extractvalue { <2 x float>, float } %58, 1
  store <2 x float> %.fca.0.extract, ptr %0, align 4
  store float %.fca.1.extract, ptr %26, align 4, !tbaa !5
  %.sroa.03.0.copyload.1 = load <2 x float>, ptr %33, align 4
  %.sroa.24.0..sroa_idx.1 = getelementptr inbounds i8, ptr %0, i64 20
  %59 = tail call { <2 x float>, float } @_Zml4Vec3f(<2 x float> %.sroa.03.0.copyload.1, float %44, float noundef %57)
  %.fca.0.extract.1 = extractvalue { <2 x float>, float } %59, 0
  %.fca.1.extract.1 = extractvalue { <2 x float>, float } %59, 1
  store <2 x float> %.fca.0.extract.1, ptr %33, align 4
  store float %.fca.1.extract.1, ptr %.sroa.24.0..sroa_idx.1, align 4, !tbaa !5
  %.sroa.03.0.copyload.2 = load <2 x float>, ptr %38, align 4
  %.sroa.24.0..sroa_idx.2 = getelementptr inbounds i8, ptr %0, i64 32
  %60 = tail call { <2 x float>, float } @_Zml4Vec3f(<2 x float> %.sroa.03.0.copyload.2, float %51, float noundef %57)
  %.fca.0.extract.2 = extractvalue { <2 x float>, float } %60, 0
  %.fca.1.extract.2 = extractvalue { <2 x float>, float } %60, 1
  store <2 x float> %.fca.0.extract.2, ptr %38, align 4
  store float %.fca.1.extract.2, ptr %.sroa.24.0..sroa_idx.2, align 4, !tbaa !5
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { <2 x float>, float } @_Zml4Vec3f(<2 x float>, float, float noundef) local_unnamed_addr #2

; 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

attributes #0 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="64" "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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="64" "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) }

!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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}


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