; LLVM IR from SourangshuGhosh/Fluid-Simulation-for-Computer-Graphics :: src (anisotropicparticlemesher)

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

%"class.vmath::quat" = type { float, float, float, float }
%"class.vmath::vec3" = type { float, float, float }
%"class.vmath::mat3" = type { [9 x float] }

declare i32 @__gxx_personality_v0(...)

; 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

declare void @_ZN5vmath4vec3C1Ev(ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #1

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

; Function Attrs: nounwind
declare void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #3

declare void @_ZN5vmath4vec3C1Efff(ptr noundef nonnull align 4 dereferenceable(12), float noundef, float noundef, float noundef) unnamed_addr #1

; Function Attrs: nounwind
declare void @_ZN5vmath4mat3D1Ev(ptr noundef nonnull align 4 dereferenceable(36)) unnamed_addr #3

declare noundef float @_ZN5vmath4vec3ixEi(ptr noundef nonnull align 4 dereferenceable(12), i32 noundef) #1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN25AnisotropicParticleMesher18_diagonalizeMatrixEN5vmath4mat3E(ptr dead_on_unwind noalias writable sret(%"class.vmath::quat") align 4 %0, ptr noundef nonnull align 8 dereferenceable(784) %1, ptr noundef %2) #5 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i1, align 1
  %9 = alloca %"class.vmath::vec3", align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca %"class.vmath::mat3", align 4
  %14 = alloca %"class.vmath::mat3", align 4
  %15 = alloca %"class.vmath::mat3", align 4
  %16 = alloca %"class.vmath::mat3", align 4
  %17 = alloca %"class.vmath::vec3", align 4
  %18 = alloca %"class.vmath::vec3", align 4
  %19 = alloca %"class.vmath::vec3", align 4
  %20 = alloca %"class.vmath::vec3", align 4
  %21 = alloca %"class.vmath::vec3", align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca float, align 4
  %27 = alloca %"class.vmath::vec3", align 4
  %28 = alloca %"class.vmath::vec3", align 4
  %29 = alloca float, align 4
  %30 = alloca float, align 4
  %31 = alloca float, align 4
  %32 = alloca [3 x float], align 4
  %33 = alloca %"class.vmath::quat", align 4
  %34 = alloca %"class.vmath::vec3", align 4
  %35 = alloca %"class.vmath::quat", align 4
  %36 = alloca %"class.vmath::quat", align 4
  store ptr %0, ptr %4, align 8
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %37 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #8
  store i32 24, ptr %7, align 4, !tbaa !9
  store i1 false, ptr %8, align 1
  call void @llvm.lifetime.start.p0(i64 12, ptr %9) #8
  call void @_ZN5vmath4vec3C1Ev(ptr noundef nonnull align 4 dereferenceable(12) %9)
  invoke void @_ZN5vmath4quatC1EfRKNS_4vec3E(ptr noundef nonnull align 4 dereferenceable(16) %0, float noundef 1.000000e+00, ptr noundef nonnull align 4 dereferenceable(12) %9)
          to label %38 unwind label %101

38:                                               ; preds = %3
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %9) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %9) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  store i32 0, ptr %12, align 4, !tbaa !9
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %39

39:                                               ; preds = %281, %38
  %40 = load i32, ptr %12, align 4, !tbaa !9
  %41 = load i32, ptr %7, align 4, !tbaa !9
  %42 = icmp slt i32 %40, %41
  br i1 %42, label %43, label %300

43:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 36, ptr %13) #8
  invoke void @_ZN5vmath9mat3_castERKNS_4quatE(ptr dead_on_unwind writable sret(%"class.vmath::mat3") align 4 %13, ptr noundef nonnull align 4 dereferenceable(16) %0)
          to label %44 unwind label %105

44:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 36, ptr %14) #8
  call void @llvm.lifetime.start.p0(i64 36, ptr %15) #8
  call void @llvm.lifetime.start.p0(i64 36, ptr %16) #8
  invoke void @_ZN5vmath9transposeERKNS_4mat3E(ptr dead_on_unwind writable sret(%"class.vmath::mat3") align 4 %16, ptr noundef nonnull align 4 dereferenceable(36) %13)
          to label %45 unwind label %109

45:                                               ; preds = %44
  invoke void @_ZN5vmathmlERKNS_4mat3ES2_(ptr dead_on_unwind writable sret(%"class.vmath::mat3") align 4 %15, ptr noundef nonnull align 4 dereferenceable(36) %16, ptr noundef nonnull align 4 dereferenceable(36) %2)
          to label %46 unwind label %113

46:                                               ; preds = %45
  invoke void @_ZN5vmathmlERKNS_4mat3ES2_(ptr dead_on_unwind writable sret(%"class.vmath::mat3") align 4 %14, ptr noundef nonnull align 4 dereferenceable(36) %15, ptr noundef nonnull align 4 dereferenceable(36) %13)
          to label %47 unwind label %117

47:                                               ; preds = %46
  call void @_ZN5vmath4mat3D1Ev(ptr noundef nonnull align 4 dereferenceable(36) %15) #8
  call void @_ZN5vmath4mat3D1Ev(ptr noundef nonnull align 4 dereferenceable(36) %16) #8
  call void @llvm.lifetime.end.p0(i64 36, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 36, ptr %15) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %17) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %18) #8
  invoke void @_ZN5vmath4mat3ixEi(ptr dead_on_unwind writable sret(%"class.vmath::vec3") align 4 %18, ptr noundef nonnull align 4 dereferenceable(36) %14, i32 noundef 2)
          to label %48 unwind label %123

48:                                               ; preds = %47
  %49 = invoke noundef float @_ZN5vmath4vec3ixEi(ptr noundef nonnull align 4 dereferenceable(12) %18, i32 noundef 1)
          to label %50 unwind label %127

50:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 12, ptr %19) #8
  invoke void @_ZN5vmath4mat3ixEi(ptr dead_on_unwind writable sret(%"class.vmath::vec3") align 4 %19, ptr noundef nonnull align 4 dereferenceable(36) %14, i32 noundef 2)
          to label %51 unwind label %131

51:                                               ; preds = %50
  %52 = invoke noundef float @_ZN5vmath4vec3ixEi(ptr noundef nonnull align 4 dereferenceable(12) %19, i32 noundef 0)
          to label %53 unwind label %135

53:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 12, ptr %20) #8
  invoke void @_ZN5vmath4mat3ixEi(ptr dead_on_unwind writable sret(%"class.vmath::vec3") align 4 %20, ptr noundef nonnull align 4 dereferenceable(36) %14, i32 noundef 1)
          to label %54 unwind label %139

54:                                               ; preds = %53
  %55 = invoke noundef float @_ZN5vmath4vec3ixEi(ptr noundef nonnull align 4 dereferenceable(12) %20, i32 noundef 0)
          to label %56 unwind label %143

56:                                               ; preds = %54
  invoke void @_ZN5vmath4vec3C1Efff(ptr noundef nonnull align 4 dereferenceable(12) %17, float noundef %49, float noundef %52, float noundef %55)
          to label %57 unwind label %143

57:                                               ; preds = %56
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %20) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %20) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %19) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %19) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %18) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %18) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %21) #8
  %58 = getelementptr inbounds %"class.vmath::vec3", ptr %17, i32 0, i32 0
  %59 = load float, ptr %58, align 4, !tbaa !11
  %60 = call float @llvm.fabs.f32(float %59)
  %61 = getelementptr inbounds %"class.vmath::vec3", ptr %17, i32 0, i32 1
  %62 = load float, ptr %61, align 4, !tbaa !14
  %63 = call float @llvm.fabs.f32(float %62)
  %64 = getelementptr inbounds %"class.vmath::vec3", ptr %17, i32 0, i32 2
  %65 = load float, ptr %64, align 4, !tbaa !15
  %66 = call float @llvm.fabs.f32(float %65)
  invoke void @_ZN5vmath4vec3C1Efff(ptr noundef nonnull align 4 dereferenceable(12) %21, float noundef %60, float noundef %63, float noundef %66)
          to label %67 unwind label %152

67:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  %68 = getelementptr inbounds %"class.vmath::vec3", ptr %21, i32 0, i32 0
  %69 = load float, ptr %68, align 4, !tbaa !11
  %70 = getelementptr inbounds %"class.vmath::vec3", ptr %21, i32 0, i32 1
  %71 = load float, ptr %70, align 4, !tbaa !14
  %72 = fcmp ogt float %69, %71
  br i1 %72, label %73, label %80

73:                                               ; preds = %67
  %74 = getelementptr inbounds %"class.vmath::vec3", ptr %21, i32 0, i32 0
  %75 = load float, ptr %74, align 4, !tbaa !11
  %76 = getelementptr inbounds %"class.vmath::vec3", ptr %21, i32 0, i32 2
  %77 = load float, ptr %76, align 4, !tbaa !15
  %78 = fcmp ogt float %75, %77
  br i1 %78, label %79, label %80

79:                                               ; preds = %73
  br label %88

80:                                               ; preds = %73, %67
  %81 = getelementptr inbounds %"class.vmath::vec3", ptr %21, i32 0, i32 1
  %82 = load float, ptr %81, align 4, !tbaa !14
  %83 = getelementptr inbounds %"class.vmath::vec3", ptr %21, i32 0, i32 2
  %84 = load float, ptr %83, align 4, !tbaa !15
  %85 = fcmp ogt float %82, %84
  %86 = zext i1 %85 to i64
  %87 = select i1 %85, i32 1, i32 2
  br label %88

88:                                               ; preds = %80, %79
  %89 = phi i32 [ 0, %79 ], [ %87, %80 ]
  store i32 %89, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #8
  %90 = load i32, ptr %22, align 4, !tbaa !9
  %91 = add nsw i32 %90, 1
  %92 = srem i32 %91, 3
  store i32 %92, ptr %23, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #8
  %93 = load i32, ptr %22, align 4, !tbaa !9
  %94 = add nsw i32 %93, 2
  %95 = srem i32 %94, 3
  store i32 %95, ptr %24, align 4, !tbaa !9
  %96 = load i32, ptr %22, align 4, !tbaa !9
  %97 = invoke noundef float @_ZN5vmath4vec3ixEi(ptr noundef nonnull align 4 dereferenceable(12) %17, i32 noundef %96)
          to label %98 unwind label %156

98:                                               ; preds = %88
  %99 = fcmp oeq float %97, 0.000000e+00
  br i1 %99, label %100, label %160

100:                                              ; preds = %98
  store i32 2, ptr %25, align 4
  br label %278

101:                                              ; preds = %3
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %10, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %11, align 4
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %9) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %9) #8
  br label %304

105:                                              ; preds = %43
  %106 = landingpad { ptr, i32 }
          cleanup
  %107 = extractvalue { ptr, i32 } %106, 0
  store ptr %107, ptr %10, align 8
  %108 = extractvalue { ptr, i32 } %106, 1
  store i32 %108, ptr %11, align 4
  br label %299

109:                                              ; preds = %44
  %110 = landingpad { ptr, i32 }
          cleanup
  %111 = extractvalue { ptr, i32 } %110, 0
  store ptr %111, ptr %10, align 8
  %112 = extractvalue { ptr, i32 } %110, 1
  store i32 %112, ptr %11, align 4
  br label %122

113:                                              ; preds = %45
  %114 = landingpad { ptr, i32 }
          cleanup
  %115 = extractvalue { ptr, i32 } %114, 0
  store ptr %115, ptr %10, align 8
  %116 = extractvalue { ptr, i32 } %114, 1
  store i32 %116, ptr %11, align 4
  br label %121

117:                                              ; preds = %46
  %118 = landingpad { ptr, i32 }
          cleanup
  %119 = extractvalue { ptr, i32 } %118, 0
  store ptr %119, ptr %10, align 8
  %120 = extractvalue { ptr, i32 } %118, 1
  store i32 %120, ptr %11, align 4
  call void @_ZN5vmath4mat3D1Ev(ptr noundef nonnull align 4 dereferenceable(36) %15) #8
  br label %121

121:                                              ; preds = %117, %113
  call void @_ZN5vmath4mat3D1Ev(ptr noundef nonnull align 4 dereferenceable(36) %16) #8
  br label %122

122:                                              ; preds = %121, %109
  call void @llvm.lifetime.end.p0(i64 36, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 36, ptr %15) #8
  br label %298

123:                                              ; preds = %47
  %124 = landingpad { ptr, i32 }
          cleanup
  %125 = extractvalue { ptr, i32 } %124, 0
  store ptr %125, ptr %10, align 8
  %126 = extractvalue { ptr, i32 } %124, 1
  store i32 %126, ptr %11, align 4
  br label %151

127:                                              ; preds = %48
  %128 = landingpad { ptr, i32 }
          cleanup
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %10, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %11, align 4
  br label %150

131:                                              ; preds = %50
  %132 = landingpad { ptr, i32 }
          cleanup
  %133 = extractvalue { ptr, i32 } %132, 0
  store ptr %133, ptr %10, align 8
  %134 = extractvalue { ptr, i32 } %132, 1
  store i32 %134, ptr %11, align 4
  br label %149

135:                                              ; preds = %51
  %136 = landingpad { ptr, i32 }
          cleanup
  %137 = extractvalue { ptr, i32 } %136, 0
  store ptr %137, ptr %10, align 8
  %138 = extractvalue { ptr, i32 } %136, 1
  store i32 %138, ptr %11, align 4
  br label %148

139:                                              ; preds = %53
  %140 = landingpad { ptr, i32 }
          cleanup
  %141 = extractvalue { ptr, i32 } %140, 0
  store ptr %141, ptr %10, align 8
  %142 = extractvalue { ptr, i32 } %140, 1
  store i32 %142, ptr %11, align 4
  br label %147

143:                                              ; preds = %56, %54
  %144 = landingpad { ptr, i32 }
          cleanup
  %145 = extractvalue { ptr, i32 } %144, 0
  store ptr %145, ptr %10, align 8
  %146 = extractvalue { ptr, i32 } %144, 1
  store i32 %146, ptr %11, align 4
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %20) #8
  br label %147

147:                                              ; preds = %143, %139
  call void @llvm.lifetime.end.p0(i64 12, ptr %20) #8
  br label %148

148:                                              ; preds = %147, %135
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %19) #8
  br label %149

149:                                              ; preds = %148, %131
  call void @llvm.lifetime.end.p0(i64 12, ptr %19) #8
  br label %150

150:                                              ; preds = %149, %127
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %18) #8
  br label %151

151:                                              ; preds = %150, %123
  call void @llvm.lifetime.end.p0(i64 12, ptr %18) #8
  br label %297

152:                                              ; preds = %57
  %153 = landingpad { ptr, i32 }
          cleanup
  %154 = extractvalue { ptr, i32 } %153, 0
  store ptr %154, ptr %10, align 8
  %155 = extractvalue { ptr, i32 } %153, 1
  store i32 %155, ptr %11, align 4
  br label %296

156:                                              ; preds = %88
  %157 = landingpad { ptr, i32 }
          cleanup
  %158 = extractvalue { ptr, i32 } %157, 0
  store ptr %158, ptr %10, align 8
  %159 = extractvalue { ptr, i32 } %157, 1
  store i32 %159, ptr %11, align 4
  br label %295

160:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %27) #8
  %161 = load i32, ptr %24, align 4, !tbaa !9
  invoke void @_ZN5vmath4mat3ixEi(ptr dead_on_unwind writable sret(%"class.vmath::vec3") align 4 %27, ptr noundef nonnull align 4 dereferenceable(36) %14, i32 noundef %161)
          to label %162 unwind label %207

162:                                              ; preds = %160
  %163 = load i32, ptr %24, align 4, !tbaa !9
  %164 = invoke noundef float @_ZN5vmath4vec3ixEi(ptr noundef nonnull align 4 dereferenceable(12) %27, i32 noundef %163)
          to label %165 unwind label %211

165:                                              ; preds = %162
  call void @llvm.lifetime.start.p0(i64 12, ptr %28) #8
  %166 = load i32, ptr %23, align 4, !tbaa !9
  invoke void @_ZN5vmath4mat3ixEi(ptr dead_on_unwind writable sret(%"class.vmath::vec3") align 4 %28, ptr noundef nonnull align 4 dereferenceable(36) %14, i32 noundef %166)
          to label %167 unwind label %215

167:                                              ; preds = %165
  %168 = load i32, ptr %23, align 4, !tbaa !9
  %169 = invoke noundef float @_ZN5vmath4vec3ixEi(ptr noundef nonnull align 4 dereferenceable(12) %28, i32 noundef %168)
          to label %170 unwind label %219

170:                                              ; preds = %167
  %171 = fsub float %164, %169
  %172 = load i32, ptr %22, align 4, !tbaa !9
  %173 = invoke noundef float @_ZN5vmath4vec3ixEi(ptr noundef nonnull align 4 dereferenceable(12) %17, i32 noundef %172)
          to label %174 unwind label %219

174:                                              ; preds = %170
  %175 = fmul float 2.000000e+00, %173
  %176 = fdiv float %171, %175
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %28) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %28) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %27) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %27) #8
  store float %176, ptr %26, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #8
  %177 = load float, ptr %26, align 4, !tbaa !16
  %178 = fcmp ogt float %177, 0.000000e+00
  %179 = zext i1 %178 to i64
  %180 = select i1 %178, float 1.000000e+00, float -1.000000e+00
  store float %180, ptr %29, align 4, !tbaa !16
  %181 = load float, ptr %29, align 4, !tbaa !16
  %182 = load float, ptr %26, align 4, !tbaa !16
  %183 = fmul float %182, %181
  store float %183, ptr %26, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #8
  %184 = load float, ptr %29, align 4, !tbaa !16
  %185 = load float, ptr %26, align 4, !tbaa !16
  %186 = load float, ptr %26, align 4, !tbaa !16
  %187 = fcmp olt float %186, 1.000000e+06
  br i1 %187, label %188, label %193

188:                                              ; preds = %174
  %189 = load float, ptr %26, align 4, !tbaa !16
  %190 = load float, ptr %26, align 4, !tbaa !16
  %191 = call float @llvm.fmuladd.f32(float %189, float %190, float 1.000000e+00)
  %192 = call float @sqrtf(float noundef %191) #8
  br label %195

193:                                              ; preds = %174
  %194 = load float, ptr %26, align 4, !tbaa !16
  br label %195

195:                                              ; preds = %193, %188
  %196 = phi float [ %192, %188 ], [ %194, %193 ]
  %197 = fadd float %185, %196
  %198 = fdiv float %184, %197
  store float %198, ptr %30, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #8
  %199 = load float, ptr %30, align 4, !tbaa !16
  %200 = load float, ptr %30, align 4, !tbaa !16
  %201 = call float @llvm.fmuladd.f32(float %199, float %200, float 1.000000e+00)
  %202 = call float @sqrtf(float noundef %201) #8
  %203 = fdiv float 1.000000e+00, %202
  store float %203, ptr %31, align 4, !tbaa !16
  %204 = load float, ptr %31, align 4, !tbaa !16
  %205 = fcmp oeq float %204, 1.000000e+00
  br i1 %205, label %206, label %226

206:                                              ; preds = %195
  store i32 2, ptr %25, align 4
  br label %277

207:                                              ; preds = %160
  %208 = landingpad { ptr, i32 }
          cleanup
  %209 = extractvalue { ptr, i32 } %208, 0
  store ptr %209, ptr %10, align 8
  %210 = extractvalue { ptr, i32 } %208, 1
  store i32 %210, ptr %11, align 4
  br label %225

211:                                              ; preds = %162
  %212 = landingpad { ptr, i32 }
          cleanup
  %213 = extractvalue { ptr, i32 } %212, 0
  store ptr %213, ptr %10, align 8
  %214 = extractvalue { ptr, i32 } %212, 1
  store i32 %214, ptr %11, align 4
  br label %224

215:                                              ; preds = %165
  %216 = landingpad { ptr, i32 }
          cleanup
  %217 = extractvalue { ptr, i32 } %216, 0
  store ptr %217, ptr %10, align 8
  %218 = extractvalue { ptr, i32 } %216, 1
  store i32 %218, ptr %11, align 4
  br label %223

219:                                              ; preds = %170, %167
  %220 = landingpad { ptr, i32 }
          cleanup
  %221 = extractvalue { ptr, i32 } %220, 0
  store ptr %221, ptr %10, align 8
  %222 = extractvalue { ptr, i32 } %220, 1
  store i32 %222, ptr %11, align 4
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %28) #8
  br label %223

223:                                              ; preds = %219, %215
  call void @llvm.lifetime.end.p0(i64 12, ptr %28) #8
  br label %224

224:                                              ; preds = %223, %211
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %27) #8
  br label %225

225:                                              ; preds = %224, %207
  call void @llvm.lifetime.end.p0(i64 12, ptr %27) #8
  br label %294

226:                                              ; preds = %195
  call void @llvm.lifetime.start.p0(i64 12, ptr %32) #8
  call void @llvm.memset.p0.i64(ptr align 4 %32, i8 0, i64 12, i1 false)
  %227 = load float, ptr %29, align 4, !tbaa !16
  %228 = load float, ptr %31, align 4, !tbaa !16
  %229 = fsub float 1.000000e+00, %228
  %230 = fdiv float %229, 2.000000e+00
  %231 = call float @sqrtf(float noundef %230) #8
  %232 = fmul float %227, %231
  %233 = load i32, ptr %22, align 4, !tbaa !9
  %234 = sext i32 %233 to i64
  %235 = getelementptr inbounds [3 x float], ptr %32, i64 0, i64 %234
  store float %232, ptr %235, align 4, !tbaa !16
  %236 = load i32, ptr %22, align 4, !tbaa !9
  %237 = sext i32 %236 to i64
  %238 = getelementptr inbounds [3 x float], ptr %32, i64 0, i64 %237
  %239 = load float, ptr %238, align 4, !tbaa !16
  %240 = fmul float %239, -1.000000e+00
  store float %240, ptr %238, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 16, ptr %33) #8
  %241 = load i32, ptr %22, align 4, !tbaa !9
  %242 = sext i32 %241 to i64
  %243 = getelementptr inbounds [3 x float], ptr %32, i64 0, i64 %242
  %244 = load float, ptr %243, align 4, !tbaa !16
  %245 = load i32, ptr %22, align 4, !tbaa !9
  %246 = sext i32 %245 to i64
  %247 = getelementptr inbounds [3 x float], ptr %32, i64 0, i64 %246
  %248 = load float, ptr %247, align 4, !tbaa !16
  %249 = fneg float %244
  %250 = call float @llvm.fmuladd.f32(float %249, float %248, float 1.000000e+00)
  %251 = call float @sqrtf(float noundef %250) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %34) #8
  %252 = getelementptr inbounds [3 x float], ptr %32, i64 0, i64 0
  %253 = load float, ptr %252, align 4, !tbaa !16
  %254 = getelementptr inbounds [3 x float], ptr %32, i64 0, i64 1
  %255 = load float, ptr %254, align 4, !tbaa !16
  %256 = getelementptr inbounds [3 x float], ptr %32, i64 0, i64 2
  %257 = load float, ptr %256, align 4, !tbaa !16
  invoke void @_ZN5vmath4vec3C1Efff(ptr noundef nonnull align 4 dereferenceable(12) %34, float noundef %253, float noundef %255, float noundef %257)
          to label %258 unwind label %264

258:                                              ; preds = %226
  invoke void @_ZN5vmath4quatC1EfRKNS_4vec3E(ptr noundef nonnull align 4 dereferenceable(16) %33, float noundef %251, ptr noundef nonnull align 4 dereferenceable(12) %34)
          to label %259 unwind label %268

259:                                              ; preds = %258
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %34) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %34) #8
  %260 = getelementptr inbounds %"class.vmath::quat", ptr %33, i32 0, i32 0
  %261 = load float, ptr %260, align 4, !tbaa !17
  %262 = fcmp oeq float %261, 1.000000e+00
  br i1 %262, label %263, label %273

263:                                              ; preds = %259
  store i32 2, ptr %25, align 4
  br label %276

264:                                              ; preds = %226
  %265 = landingpad { ptr, i32 }
          cleanup
  %266 = extractvalue { ptr, i32 } %265, 0
  store ptr %266, ptr %10, align 8
  %267 = extractvalue { ptr, i32 } %265, 1
  store i32 %267, ptr %11, align 4
  br label %272

268:                                              ; preds = %258
  %269 = landingpad { ptr, i32 }
          cleanup
  %270 = extractvalue { ptr, i32 } %269, 0
  store ptr %270, ptr %10, align 8
  %271 = extractvalue { ptr, i32 } %269, 1
  store i32 %271, ptr %11, align 4
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %34) #8
  br label %272

272:                                              ; preds = %268, %264
  call void @llvm.lifetime.end.p0(i64 12, ptr %34) #8
  br label %293

273:                                              ; preds = %259
  call void @llvm.lifetime.start.p0(i64 16, ptr %35) #8
  invoke void @_ZN5vmath5crossERKNS_4quatES2_(ptr dead_on_unwind writable sret(%"class.vmath::quat") align 4 %35, ptr noundef nonnull align 4 dereferenceable(16) %0, ptr noundef nonnull align 4 dereferenceable(16) %33)
          to label %274 unwind label %284

274:                                              ; preds = %273
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %0, ptr align 4 %35, i64 16, i1 false), !tbaa.struct !19
  call void @_ZN5vmath4quatD1Ev(ptr noundef nonnull align 4 dereferenceable(16) %35) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %36) #8
  invoke void @_ZN5vmath9normalizeERKNS_4quatE(ptr dead_on_unwind writable sret(%"class.vmath::quat") align 4 %36, ptr noundef nonnull align 4 dereferenceable(16) %0)
          to label %275 unwind label %288

275:                                              ; preds = %274
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %0, ptr align 4 %36, i64 16, i1 false), !tbaa.struct !19
  call void @_ZN5vmath4quatD1Ev(ptr noundef nonnull align 4 dereferenceable(16) %36) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %36) #8
  store i32 0, ptr %25, align 4
  br label %276

276:                                              ; preds = %275, %263
  call void @_ZN5vmath4quatD1Ev(ptr noundef nonnull align 4 dereferenceable(16) %33) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %32) #8
  br label %277

277:                                              ; preds = %276, %206
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  br label %278

278:                                              ; preds = %277, %100
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %21) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %21) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %17) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %17) #8
  call void @_ZN5vmath4mat3D1Ev(ptr noundef nonnull align 4 dereferenceable(36) %14) #8
  call void @llvm.lifetime.end.p0(i64 36, ptr %14) #8
  call void @_ZN5vmath4mat3D1Ev(ptr noundef nonnull align 4 dereferenceable(36) %13) #8
  call void @llvm.lifetime.end.p0(i64 36, ptr %13) #8
  %279 = load i32, ptr %25, align 4
  switch i32 %279, label %310 [
    i32 0, label %280
    i32 2, label %300
  ]

280:                                              ; preds = %278
  br label %281

281:                                              ; preds = %280
  %282 = load i32, ptr %12, align 4, !tbaa !9
  %283 = add nsw i32 %282, 1
  store i32 %283, ptr %12, align 4, !tbaa !9
  br label %39, !llvm.loop !20

284:                                              ; preds = %273
  %285 = landingpad { ptr, i32 }
          cleanup
  %286 = extractvalue { ptr, i32 } %285, 0
  store ptr %286, ptr %10, align 8
  %287 = extractvalue { ptr, i32 } %285, 1
  store i32 %287, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #8
  br label %292

288:                                              ; preds = %274
  %289 = landingpad { ptr, i32 }
          cleanup
  %290 = extractvalue { ptr, i32 } %289, 0
  store ptr %290, ptr %10, align 8
  %291 = extractvalue { ptr, i32 } %289, 1
  store i32 %291, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %36) #8
  br label %292

292:                                              ; preds = %288, %284
  call void @_ZN5vmath4quatD1Ev(ptr noundef nonnull align 4 dereferenceable(16) %33) #8
  br label %293

293:                                              ; preds = %292, %272
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #8
  br label %294

294:                                              ; preds = %293, %225
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  br label %295

295:                                              ; preds = %294, %156
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %21) #8
  br label %296

296:                                              ; preds = %295, %152
  call void @llvm.lifetime.end.p0(i64 12, ptr %21) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %17) #8
  br label %297

297:                                              ; preds = %296, %151
  call void @llvm.lifetime.end.p0(i64 12, ptr %17) #8
  call void @_ZN5vmath4mat3D1Ev(ptr noundef nonnull align 4 dereferenceable(36) %14) #8
  br label %298

298:                                              ; preds = %297, %122
  call void @llvm.lifetime.end.p0(i64 36, ptr %14) #8
  call void @_ZN5vmath4mat3D1Ev(ptr noundef nonnull align 4 dereferenceable(36) %13) #8
  br label %299

299:                                              ; preds = %298, %105
  call void @llvm.lifetime.end.p0(i64 36, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  call void @_ZN5vmath4quatD1Ev(ptr noundef nonnull align 4 dereferenceable(16) %0) #8
  br label %304

300:                                              ; preds = %278, %39
  store i1 true, ptr %8, align 1
  store i32 1, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  %301 = load i1, ptr %8, align 1
  br i1 %301, label %303, label %302

302:                                              ; preds = %300
  call void @_ZN5vmath4quatD1Ev(ptr noundef nonnull align 4 dereferenceable(16) %0) #8
  br label %303

303:                                              ; preds = %302, %300
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  ret void

304:                                              ; preds = %299, %101
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  br label %305

305:                                              ; preds = %304
  %306 = load ptr, ptr %10, align 8
  %307 = load i32, ptr %11, align 4
  %308 = insertvalue { ptr, i32 } poison, ptr %306, 0
  %309 = insertvalue { ptr, i32 } %308, i32 %307, 1
  resume { ptr, i32 } %309

310:                                              ; preds = %278
  unreachable
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5vmath9mat3_castERKNS_4quatE(ptr dead_on_unwind noalias writable sret(%"class.vmath::mat3") align 4, ptr noundef nonnull align 4 dereferenceable(16)) #6

declare void @_ZN5vmathmlERKNS_4mat3ES2_(ptr dead_on_unwind writable sret(%"class.vmath::mat3") align 4, ptr noundef nonnull align 4 dereferenceable(36), ptr noundef nonnull align 4 dereferenceable(36)) #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5vmath9transposeERKNS_4mat3E(ptr dead_on_unwind noalias writable sret(%"class.vmath::mat3") align 4, ptr noundef nonnull align 4 dereferenceable(36)) #6

declare void @_ZN5vmath4mat3ixEi(ptr dead_on_unwind writable sret(%"class.vmath::vec3") align 4, ptr noundef nonnull align 4 dereferenceable(36), i32 noundef) #1

; Function Attrs: nounwind
declare void @_ZN5vmath4quatD1Ev(ptr noundef nonnull align 4 dereferenceable(16)) unnamed_addr #3

declare void @_ZN5vmath4quatC1EfRKNS_4vec3E(ptr noundef nonnull align 4 dereferenceable(16), float noundef, ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #1

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5vmath5crossERKNS_4quatES2_(ptr dead_on_unwind noalias writable sret(%"class.vmath::quat") align 4, ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16)) #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5vmath9normalizeERKNS_4quatE(ptr dead_on_unwind noalias writable sret(%"class.vmath::quat") align 4, ptr noundef nonnull align 4 dereferenceable(16)) #6

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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: readwrite) }
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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { mustprogress 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 #6 = { inlinehint mustprogress 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 #7 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #8 = { 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 = !{!"int", !7, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"_ZTSN5vmath4vec3E", !13, i64 0, !13, i64 4, !13, i64 8}
!13 = !{!"float", !7, i64 0}
!14 = !{!12, !13, i64 4}
!15 = !{!12, !13, i64 8}
!16 = !{!13, !13, i64 0}
!17 = !{!18, !13, i64 0}
!18 = !{!"_ZTSN5vmath4quatE", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12}
!19 = !{i64 0, i64 4, !16, i64 4, i64 4, !16, i64 8, i64 4, !16, i64 12, i64 4, !16}
!20 = distinct !{!20, !21}
!21 = !{!"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"

%"class.vmath::quat" = type { float, float, float, float }
%"class.vmath::vec3" = type { float, float, float }
%"class.vmath::mat3" = type { [9 x float] }

declare i32 @__gxx_personality_v0(...)

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

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

declare void @_ZN5vmath4vec3C1Ev(ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #1

; Function Attrs: mustprogress 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) #2

; Function Attrs: nounwind
declare void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #3

declare void @_ZN5vmath4vec3C1Efff(ptr noundef nonnull align 4 dereferenceable(12), float noundef, float noundef, float noundef) unnamed_addr #1

; Function Attrs: nounwind
declare void @_ZN5vmath4mat3D1Ev(ptr noundef nonnull align 4 dereferenceable(36)) unnamed_addr #3

declare noundef float @_ZN5vmath4vec3ixEi(ptr noundef nonnull align 4 dereferenceable(12), i32 noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN25AnisotropicParticleMesher18_diagonalizeMatrixEN5vmath4mat3E(ptr dead_on_unwind noalias writable sret(%"class.vmath::quat") align 4 %0, ptr nocapture noundef nonnull readnone align 8 dereferenceable(784) %1, ptr noundef %2) local_unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.vmath::vec3", align 4
  %5 = alloca %"class.vmath::mat3", align 4
  %6 = alloca %"class.vmath::mat3", align 4
  %7 = alloca %"class.vmath::mat3", align 4
  %8 = alloca %"class.vmath::mat3", align 4
  %9 = alloca %"class.vmath::vec3", align 4
  %10 = alloca %"class.vmath::vec3", align 4
  %11 = alloca %"class.vmath::vec3", align 4
  %12 = alloca %"class.vmath::vec3", align 4
  %13 = alloca %"class.vmath::vec3", align 4
  %14 = alloca %"class.vmath::vec3", align 4
  %15 = alloca %"class.vmath::vec3", align 4
  %16 = alloca [3 x float], align 4
  %17 = alloca %"class.vmath::quat", align 4
  %18 = alloca %"class.vmath::vec3", align 4
  %19 = alloca %"class.vmath::quat", align 4
  %20 = alloca %"class.vmath::quat", align 4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #10
  call void @_ZN5vmath4vec3C1Ev(ptr noundef nonnull align 4 dereferenceable(12) %4)
  invoke void @_ZN5vmath4quatC1EfRKNS_4vec3E(ptr noundef nonnull align 4 dereferenceable(16) %0, float noundef 1.000000e+00, ptr noundef nonnull align 4 dereferenceable(12) %4)
          to label %21 unwind label %65

21:                                               ; preds = %3
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %4) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #10
  %22 = getelementptr inbounds i8, ptr %9, i64 4
  %23 = getelementptr inbounds i8, ptr %9, i64 8
  %24 = getelementptr inbounds i8, ptr %13, i64 4
  %25 = getelementptr inbounds i8, ptr %13, i64 8
  %26 = getelementptr inbounds i8, ptr %16, i64 4
  %27 = getelementptr inbounds i8, ptr %16, i64 8
  br label %28

28:                                               ; preds = %159, %21
  %.05688 = phi i32 [ 0, %21 ], [ %160, %159 ]
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %5) #10
  invoke void @_ZN5vmath9mat3_castERKNS_4quatE(ptr dead_on_unwind nonnull writable sret(%"class.vmath::mat3") align 4 %5, ptr noundef nonnull align 4 dereferenceable(16) %0)
          to label %29 unwind label %67

29:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %6) #10
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %7) #10
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %8) #10
  invoke void @_ZN5vmath9transposeERKNS_4mat3E(ptr dead_on_unwind nonnull writable sret(%"class.vmath::mat3") align 4 %8, ptr noundef nonnull align 4 dereferenceable(36) %5)
          to label %30 unwind label %69

30:                                               ; preds = %29
  invoke void @_ZN5vmathmlERKNS_4mat3ES2_(ptr dead_on_unwind nonnull writable sret(%"class.vmath::mat3") align 4 %7, ptr noundef nonnull align 4 dereferenceable(36) %8, ptr noundef nonnull align 4 dereferenceable(36) %2)
          to label %31 unwind label %71

31:                                               ; preds = %30
  invoke void @_ZN5vmathmlERKNS_4mat3ES2_(ptr dead_on_unwind nonnull writable sret(%"class.vmath::mat3") align 4 %6, ptr noundef nonnull align 4 dereferenceable(36) %7, ptr noundef nonnull align 4 dereferenceable(36) %5)
          to label %32 unwind label %73

32:                                               ; preds = %31
  call void @_ZN5vmath4mat3D1Ev(ptr noundef nonnull align 4 dereferenceable(36) %7) #10
  call void @_ZN5vmath4mat3D1Ev(ptr noundef nonnull align 4 dereferenceable(36) %8) #10
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %8) #10
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %7) #10
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #10
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %10) #10
  invoke void @_ZN5vmath4mat3ixEi(ptr dead_on_unwind nonnull writable sret(%"class.vmath::vec3") align 4 %10, ptr noundef nonnull align 4 dereferenceable(36) %6, i32 noundef 2)
          to label %33 unwind label %77

33:                                               ; preds = %32
  %34 = invoke noundef float @_ZN5vmath4vec3ixEi(ptr noundef nonnull align 4 dereferenceable(12) %10, i32 noundef 1)
          to label %35 unwind label %79

35:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %11) #10
  invoke void @_ZN5vmath4mat3ixEi(ptr dead_on_unwind nonnull writable sret(%"class.vmath::vec3") align 4 %11, ptr noundef nonnull align 4 dereferenceable(36) %6, i32 noundef 2)
          to label %36 unwind label %81

36:                                               ; preds = %35
  %37 = invoke noundef float @_ZN5vmath4vec3ixEi(ptr noundef nonnull align 4 dereferenceable(12) %11, i32 noundef 0)
          to label %38 unwind label %83

38:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %12) #10
  invoke void @_ZN5vmath4mat3ixEi(ptr dead_on_unwind nonnull writable sret(%"class.vmath::vec3") align 4 %12, ptr noundef nonnull align 4 dereferenceable(36) %6, i32 noundef 1)
          to label %39 unwind label %85

39:                                               ; preds = %38
  %40 = invoke noundef float @_ZN5vmath4vec3ixEi(ptr noundef nonnull align 4 dereferenceable(12) %12, i32 noundef 0)
          to label %41 unwind label %87

41:                                               ; preds = %39
  invoke void @_ZN5vmath4vec3C1Efff(ptr noundef nonnull align 4 dereferenceable(12) %9, float noundef %34, float noundef %37, float noundef %40)
          to label %42 unwind label %87

42:                                               ; preds = %41
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %12) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %12) #10
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %11) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %11) #10
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %10) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %10) #10
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %13) #10
  %43 = load float, ptr %9, align 4, !tbaa !5
  %44 = call float @llvm.fabs.f32(float %43)
  %45 = load float, ptr %22, align 4, !tbaa !10
  %46 = call float @llvm.fabs.f32(float %45)
  %47 = load float, ptr %23, align 4, !tbaa !11
  %48 = call float @llvm.fabs.f32(float %47)
  invoke void @_ZN5vmath4vec3C1Efff(ptr noundef nonnull align 4 dereferenceable(12) %13, float noundef %44, float noundef %46, float noundef %48)
          to label %49 unwind label %94

49:                                               ; preds = %42
  %50 = load float, ptr %13, align 4, !tbaa !5
  %51 = load float, ptr %24, align 4
  %52 = fcmp ogt float %50, %51
  %53 = load float, ptr %25, align 4
  %54 = fcmp ogt float %50, %53
  %or.cond = select i1 %52, i1 %54, i1 false
  %55 = fcmp ogt float %51, %53
  %56 = select i1 %55, i32 1, i32 2
  %57 = select i1 %or.cond, i32 0, i32 %56
  %58 = add nuw nsw i32 %57, 1
  %59 = icmp eq i32 %58, 3
  %60 = select i1 %59, i32 0, i32 %58
  %.urem = add nsw i32 %56, -1
  %61 = select i1 %or.cond, i32 2, i32 %.urem
  %62 = invoke noundef float @_ZN5vmath4vec3ixEi(ptr noundef nonnull align 4 dereferenceable(12) %9, i32 noundef %57)
          to label %63 unwind label %96

63:                                               ; preds = %49
  %64 = fcmp oeq float %62, 0.000000e+00
  br i1 %64, label %159, label %98

65:                                               ; preds = %3
  %66 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %4) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #10
  br label %173

67:                                               ; preds = %28
  %68 = landingpad { ptr, i32 }
          cleanup
  br label %171

69:                                               ; preds = %29
  %70 = landingpad { ptr, i32 }
          cleanup
  br label %76

71:                                               ; preds = %30
  %72 = landingpad { ptr, i32 }
          cleanup
  br label %75

73:                                               ; preds = %31
  %74 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5vmath4mat3D1Ev(ptr noundef nonnull align 4 dereferenceable(36) %7) #10
  br label %75

75:                                               ; preds = %73, %71
  %.pn = phi { ptr, i32 } [ %74, %73 ], [ %72, %71 ]
  call void @_ZN5vmath4mat3D1Ev(ptr noundef nonnull align 4 dereferenceable(36) %8) #10
  br label %76

76:                                               ; preds = %75, %69
  %.pn.pn = phi { ptr, i32 } [ %.pn, %75 ], [ %70, %69 ]
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %8) #10
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %7) #10
  br label %170

77:                                               ; preds = %32
  %78 = landingpad { ptr, i32 }
          cleanup
  br label %93

79:                                               ; preds = %33
  %80 = landingpad { ptr, i32 }
          cleanup
  br label %92

81:                                               ; preds = %35
  %82 = landingpad { ptr, i32 }
          cleanup
  br label %91

83:                                               ; preds = %36
  %84 = landingpad { ptr, i32 }
          cleanup
  br label %90

85:                                               ; preds = %38
  %86 = landingpad { ptr, i32 }
          cleanup
  br label %89

87:                                               ; preds = %41, %39
  %88 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %12) #10
  br label %89

89:                                               ; preds = %87, %85
  %.pn63 = phi { ptr, i32 } [ %88, %87 ], [ %86, %85 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %12) #10
  br label %90

90:                                               ; preds = %89, %83
  %.pn63.pn = phi { ptr, i32 } [ %.pn63, %89 ], [ %84, %83 ]
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %11) #10
  br label %91

91:                                               ; preds = %90, %81
  %.pn63.pn.pn = phi { ptr, i32 } [ %.pn63.pn, %90 ], [ %82, %81 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %11) #10
  br label %92

92:                                               ; preds = %91, %79
  %.pn63.pn.pn.pn = phi { ptr, i32 } [ %.pn63.pn.pn, %91 ], [ %80, %79 ]
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %10) #10
  br label %93

93:                                               ; preds = %92, %77
  %.pn63.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn63.pn.pn.pn, %92 ], [ %78, %77 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %10) #10
  br label %169

94:                                               ; preds = %42
  %95 = landingpad { ptr, i32 }
          cleanup
  br label %168

96:                                               ; preds = %49
  %97 = landingpad { ptr, i32 }
          cleanup
  br label %167

98:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %14) #10
  invoke void @_ZN5vmath4mat3ixEi(ptr dead_on_unwind nonnull writable sret(%"class.vmath::vec3") align 4 %14, ptr noundef nonnull align 4 dereferenceable(36) %6, i32 noundef %61)
          to label %99 unwind label %121

99:                                               ; preds = %98
  %100 = invoke noundef float @_ZN5vmath4vec3ixEi(ptr noundef nonnull align 4 dereferenceable(12) %14, i32 noundef %61)
          to label %101 unwind label %123

101:                                              ; preds = %99
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %15) #10
  invoke void @_ZN5vmath4mat3ixEi(ptr dead_on_unwind nonnull writable sret(%"class.vmath::vec3") align 4 %15, ptr noundef nonnull align 4 dereferenceable(36) %6, i32 noundef %60)
          to label %102 unwind label %125

102:                                              ; preds = %101
  %103 = invoke noundef float @_ZN5vmath4vec3ixEi(ptr noundef nonnull align 4 dereferenceable(12) %15, i32 noundef %60)
          to label %104 unwind label %127

104:                                              ; preds = %102
  %105 = invoke noundef float @_ZN5vmath4vec3ixEi(ptr noundef nonnull align 4 dereferenceable(12) %9, i32 noundef %57)
          to label %106 unwind label %127

106:                                              ; preds = %104
  %107 = fsub float %100, %103
  %108 = fmul float %105, 2.000000e+00
  %109 = fdiv float %107, %108
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %15) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %15) #10
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %14) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %14) #10
  %110 = fcmp ogt float %109, 0.000000e+00
  %111 = select i1 %110, float 1.000000e+00, float -1.000000e+00
  %112 = fmul float %109, %111
  %113 = fcmp olt float %112, 1.000000e+06
  %114 = call float @llvm.fmuladd.f32(float %112, float %112, float 1.000000e+00)
  %sqrt = call float @llvm.sqrt.f32(float %114)
  %115 = select i1 %113, float %sqrt, float %112
  %116 = fadd float %112, %115
  %117 = fdiv float %111, %116
  %118 = call float @llvm.fmuladd.f32(float %117, float %117, float 1.000000e+00)
  %sqrt87 = call float @llvm.sqrt.f32(float %118)
  %119 = fdiv float 1.000000e+00, %sqrt87
  %120 = fcmp oeq float %119, 1.000000e+00
  br i1 %120, label %159, label %132

121:                                              ; preds = %98
  %122 = landingpad { ptr, i32 }
          cleanup
  br label %131

123:                                              ; preds = %99
  %124 = landingpad { ptr, i32 }
          cleanup
  br label %130

125:                                              ; preds = %101
  %126 = landingpad { ptr, i32 }
          cleanup
  br label %129

127:                                              ; preds = %104, %102
  %128 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %15) #10
  br label %129

129:                                              ; preds = %127, %125
  %.pn69 = phi { ptr, i32 } [ %128, %127 ], [ %126, %125 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %15) #10
  br label %130

130:                                              ; preds = %129, %123
  %.pn69.pn = phi { ptr, i32 } [ %.pn69, %129 ], [ %124, %123 ]
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %14) #10
  br label %131

131:                                              ; preds = %130, %121
  %.pn69.pn.pn = phi { ptr, i32 } [ %.pn69.pn, %130 ], [ %122, %121 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %14) #10
  br label %167

132:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %16) #10
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %16, i8 0, i64 12, i1 false)
  %133 = fsub float 1.000000e+00, %119
  %134 = fmul float %133, 5.000000e-01
  %135 = call float @sqrtf(float noundef %134) #10
  %136 = zext nneg i32 %57 to i64
  %137 = getelementptr inbounds [3 x float], ptr %16, i64 0, i64 %136
  %138 = fneg float %111
  %139 = fmul float %135, %138
  store float %139, ptr %137, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #10
  %140 = fneg float %139
  %141 = call float @llvm.fmuladd.f32(float %140, float %139, float 1.000000e+00)
  %142 = call float @sqrtf(float noundef %141) #10
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %18) #10
  %143 = load float, ptr %16, align 4, !tbaa !12
  %144 = load float, ptr %26, align 4, !tbaa !12
  %145 = load float, ptr %27, align 4, !tbaa !12
  invoke void @_ZN5vmath4vec3C1Efff(ptr noundef nonnull align 4 dereferenceable(12) %18, float noundef %143, float noundef %144, float noundef %145)
          to label %146 unwind label %150

146:                                              ; preds = %132
  invoke void @_ZN5vmath4quatC1EfRKNS_4vec3E(ptr noundef nonnull align 4 dereferenceable(16) %17, float noundef %142, ptr noundef nonnull align 4 dereferenceable(12) %18)
          to label %147 unwind label %152

147:                                              ; preds = %146
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %18) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %18) #10
  %148 = load float, ptr %17, align 4, !tbaa !13
  %149 = fcmp oeq float %148, 1.000000e+00
  br i1 %149, label %158, label %155

150:                                              ; preds = %132
  %151 = landingpad { ptr, i32 }
          cleanup
  br label %154

152:                                              ; preds = %146
  %153 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %18) #10
  br label %154

154:                                              ; preds = %152, %150
  %.pn73 = phi { ptr, i32 } [ %153, %152 ], [ %151, %150 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %18) #10
  br label %166

155:                                              ; preds = %147
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #10
  invoke void @_ZN5vmath5crossERKNS_4quatES2_(ptr dead_on_unwind nonnull writable sret(%"class.vmath::quat") align 4 %19, ptr noundef nonnull align 4 dereferenceable(16) %0, ptr noundef nonnull align 4 dereferenceable(16) %17)
          to label %156 unwind label %161

156:                                              ; preds = %155
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %0, ptr noundef nonnull align 4 dereferenceable(16) %19, i64 16, i1 false), !tbaa.struct !15
  call void @_ZN5vmath4quatD1Ev(ptr noundef nonnull align 4 dereferenceable(16) %19) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %20) #10
  invoke void @_ZN5vmath9normalizeERKNS_4quatE(ptr dead_on_unwind nonnull writable sret(%"class.vmath::quat") align 4 %20, ptr noundef nonnull align 4 dereferenceable(16) %0)
          to label %157 unwind label %163

157:                                              ; preds = %156
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %0, ptr noundef nonnull align 4 dereferenceable(16) %20, i64 16, i1 false), !tbaa.struct !15
  call void @_ZN5vmath4quatD1Ev(ptr noundef nonnull align 4 dereferenceable(16) %20) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #10
  br label %158

158:                                              ; preds = %147, %157
  %.053 = phi i32 [ 0, %157 ], [ 2, %147 ]
  call void @_ZN5vmath4quatD1Ev(ptr noundef nonnull align 4 dereferenceable(16) %17) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %16) #10
  br label %159

159:                                              ; preds = %158, %106, %63
  %.255 = phi i32 [ 2, %63 ], [ %.053, %158 ], [ 2, %106 ]
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %13) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %13) #10
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %9) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #10
  call void @_ZN5vmath4mat3D1Ev(ptr noundef nonnull align 4 dereferenceable(36) %6) #10
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %6) #10
  call void @_ZN5vmath4mat3D1Ev(ptr noundef nonnull align 4 dereferenceable(36) %5) #10
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %5) #10
  %switch = icmp ne i32 %.255, 0
  %160 = add nuw nsw i32 %.05688, 1
  %exitcond.not = icmp eq i32 %160, 24
  %or.cond89 = select i1 %switch, i1 true, i1 %exitcond.not
  br i1 %or.cond89, label %172, label %28, !llvm.loop !16

161:                                              ; preds = %155
  %162 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #10
  br label %165

163:                                              ; preds = %156
  %164 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #10
  br label %165

165:                                              ; preds = %163, %161
  %.pn75 = phi { ptr, i32 } [ %164, %163 ], [ %162, %161 ]
  call void @_ZN5vmath4quatD1Ev(ptr noundef nonnull align 4 dereferenceable(16) %17) #10
  br label %166

166:                                              ; preds = %165, %154
  %.pn75.pn = phi { ptr, i32 } [ %.pn75, %165 ], [ %.pn73, %154 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %16) #10
  br label %167

167:                                              ; preds = %131, %166, %96
  %.pn75.pn.pn.pn = phi { ptr, i32 } [ %97, %96 ], [ %.pn75.pn, %166 ], [ %.pn69.pn.pn, %131 ]
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %13) #10
  br label %168

168:                                              ; preds = %167, %94
  %.pn75.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn75.pn.pn.pn, %167 ], [ %95, %94 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %13) #10
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %9) #10
  br label %169

169:                                              ; preds = %168, %93
  %.pn75.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn75.pn.pn.pn.pn, %168 ], [ %.pn63.pn.pn.pn.pn, %93 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #10
  call void @_ZN5vmath4mat3D1Ev(ptr noundef nonnull align 4 dereferenceable(36) %6) #10
  br label %170

170:                                              ; preds = %169, %76
  %.pn75.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn75.pn.pn.pn.pn.pn, %169 ], [ %.pn.pn, %76 ]
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %6) #10
  call void @_ZN5vmath4mat3D1Ev(ptr noundef nonnull align 4 dereferenceable(36) %5) #10
  br label %171

171:                                              ; preds = %170, %67
  %.pn75.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn75.pn.pn.pn.pn.pn.pn, %170 ], [ %68, %67 ]
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %5) #10
  call void @_ZN5vmath4quatD1Ev(ptr noundef nonnull align 4 dereferenceable(16) %0) #10
  br label %173

172:                                              ; preds = %159
  ret void

173:                                              ; preds = %171, %65
  %.pn75.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn75.pn.pn.pn.pn.pn.pn.pn, %171 ], [ %66, %65 ]
  resume { ptr, i32 } %.pn75.pn.pn.pn.pn.pn.pn.pn.pn
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5vmath9mat3_castERKNS_4quatE(ptr dead_on_unwind noalias writable sret(%"class.vmath::mat3") align 4, ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #6

declare void @_ZN5vmathmlERKNS_4mat3ES2_(ptr dead_on_unwind writable sret(%"class.vmath::mat3") align 4, ptr noundef nonnull align 4 dereferenceable(36), ptr noundef nonnull align 4 dereferenceable(36)) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5vmath9transposeERKNS_4mat3E(ptr dead_on_unwind noalias writable sret(%"class.vmath::mat3") align 4, ptr noundef nonnull align 4 dereferenceable(36)) local_unnamed_addr #6

declare void @_ZN5vmath4mat3ixEi(ptr dead_on_unwind writable sret(%"class.vmath::vec3") align 4, ptr noundef nonnull align 4 dereferenceable(36), i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind
declare void @_ZN5vmath4quatD1Ev(ptr noundef nonnull align 4 dereferenceable(16)) unnamed_addr #3

declare void @_ZN5vmath4quatC1EfRKNS_4vec3E(ptr noundef nonnull align 4 dereferenceable(16), float noundef, ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #1

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5vmath5crossERKNS_4quatES2_(ptr dead_on_unwind noalias writable sret(%"class.vmath::quat") align 4, ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5vmath9normalizeERKNS_4quatE(ptr dead_on_unwind noalias writable sret(%"class.vmath::quat") align 4, ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #6

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { mustprogress 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 #6 = { inlinehint mustprogress 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 #7 = { 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 #8 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #9 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #10 = { 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, !7, i64 0}
!6 = !{!"_ZTSN5vmath4vec3E", !7, i64 0, !7, i64 4, !7, i64 8}
!7 = !{!"float", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!6, !7, i64 4}
!11 = !{!6, !7, i64 8}
!12 = !{!7, !7, i64 0}
!13 = !{!14, !7, i64 0}
!14 = !{!"_ZTSN5vmath4quatE", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12}
!15 = !{i64 0, i64 4, !12, i64 4, i64 4, !12, i64 8, i64 4, !12, i64 12, i64 4, !12}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: AggressiveInstCombinePass,CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass