; LLVM IR from hadryansalles/Luz :: deps/imgui/ImGuizmo.ll (ZN8ImGuizmo9DrawCubesEPKfS1_S1_i)

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

%"struct.ImGuizmo::Context" = type { ptr, i32, %"struct.ImGuizmo::matrix_t", %"struct.ImGuizmo::matrix_t", %"struct.ImGuizmo::matrix_t", %"struct.ImGuizmo::matrix_t", %"struct.ImGuizmo::matrix_t", %"struct.ImGuizmo::matrix_t", %"struct.ImGuizmo::matrix_t", %"struct.ImGuizmo::matrix_t", %"struct.ImGuizmo::vec_t", %"struct.ImGuizmo::vec_t", %"struct.ImGuizmo::vec_t", %"struct.ImGuizmo::vec_t", %"struct.ImGuizmo::vec_t", %"struct.ImGuizmo::vec_t", %"struct.ImGuizmo::vec_t", float, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, %"struct.ImGuizmo::vec_t", i8, i8, i8, %"struct.ImGuizmo::vec_t", %"struct.ImGuizmo::vec_t", %"struct.ImGuizmo::vec_t", %"struct.ImGuizmo::vec_t", %"struct.ImGuizmo::vec_t", float, float, %"struct.ImGuizmo::vec_t", %"struct.ImGuizmo::vec_t", %"struct.ImGuizmo::vec_t", float, [3 x i8], [3 x i8], [3 x float], %"struct.ImGuizmo::vec_t", %"struct.ImGuizmo::vec_t", %"struct.ImGuizmo::vec_t", %"struct.ImGuizmo::vec_t", i32, [2 x i32], i8, %"struct.ImGuizmo::matrix_t", i32, float, float, float, float, float, float, float, i8, i32, i32, i32, i8, float }
%struct.ImVec2 = type { float, float }
%"struct.ImGuizmo::vec_t" = type { float, float, float, float }
%"struct.ImGuizmo::matrix_t" = type { %union.anon }
%union.anon = type { [4 x [4 x float]] }
%class.anon = type { i8 }
%struct.CubeFace = type { float, [4 x %struct.ImVec2], i32 }

@_ZN8ImGuizmoL8gContextE = external hidden global %"struct.ImGuizmo::Context", align 8
@_ZN8ImGuizmoL14directionUnaryE = external hidden global [3 x %"struct.ImGuizmo::vec_t"], align 16
@_ZN8ImGuizmoL14directionColorE = external hidden constant [3 x i32], align 4

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { <2 x float>, <2 x float> } @_ZNK8ImGuizmo5vec_tmlEf(ptr noundef nonnull align 4 dereferenceable(16), float noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { <2 x float>, <2 x float> } @_ZNK8ImGuizmo5vec_tmiERKS0_(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { <2 x float>, <2 x float> } @_ZNK8ImGuizmo5vec_tplERKS0_(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16)) #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN8ImGuizmo8matrix_t7InverseERKS0_b(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64), i1 noundef zeroext) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8ImGuizmo8matrix_tC2Ev(ptr noundef nonnull align 4 dereferenceable(64)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK8ImGuizmo8matrix_tmlERKS0_(ptr dead_on_unwind noalias writable sret(%"struct.ImGuizmo::matrix_t") align 4, ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8ImGuizmo5vec_t14TransformPointERKS0_RKNS_8matrix_tE(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(64)) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8ImGuizmo20ComputeFrustumPlanesEPNS_5vec_tEPKf(ptr noundef, ptr noundef) #5

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8ImGuizmo9DrawCubesEPKfS1_S1_i(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) #5 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %"struct.ImGuizmo::matrix_t", align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca [6 x %"struct.ImGuizmo::vec_t"], align 16
  %13 = alloca %"struct.ImGuizmo::matrix_t", align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca %"struct.ImGuizmo::matrix_t", align 4
  %18 = alloca %"struct.ImGuizmo::matrix_t", align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca float, align 4
  %24 = alloca [4 x %"struct.ImGuizmo::vec_t"], align 16
  %25 = alloca %"struct.ImGuizmo::vec_t", align 4
  %26 = alloca %"struct.ImGuizmo::vec_t", align 4
  %27 = alloca %"struct.ImGuizmo::vec_t", align 4
  %28 = alloca %"struct.ImGuizmo::vec_t", align 4
  %29 = alloca %"struct.ImGuizmo::vec_t", align 4
  %30 = alloca %"struct.ImGuizmo::vec_t", align 4
  %31 = alloca %"struct.ImGuizmo::vec_t", align 4
  %32 = alloca %"struct.ImGuizmo::vec_t", align 4
  %33 = alloca %"struct.ImGuizmo::vec_t", align 4
  %34 = alloca %"struct.ImGuizmo::vec_t", align 4
  %35 = alloca i8, align 1
  %36 = alloca i32, align 4
  %37 = alloca float, align 4
  %38 = alloca ptr, align 8
  %39 = alloca i32, align 4
  %40 = alloca %struct.ImVec2, align 4
  %41 = alloca %"struct.ImGuizmo::vec_t", align 4
  %42 = alloca %"struct.ImGuizmo::vec_t", align 4
  %43 = alloca %struct.ImVec2, align 4
  %44 = alloca %struct.ImVec2, align 4
  %45 = alloca %class.anon, align 1
  %46 = alloca i32, align 4
  %47 = alloca ptr, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store i32 %3, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 64, ptr %9) #8
  call void @_ZN8ImGuizmo8matrix_tC2Ev(ptr noundef nonnull align 4 dereferenceable(64) %9)
  %48 = load ptr, ptr %5, align 8, !tbaa !5
  %49 = call noundef float @_ZN8ImGuizmo8matrix_t7InverseERKS0_b(ptr noundef nonnull align 4 dereferenceable(64) %9, ptr noundef nonnull align 4 dereferenceable(64) %48, i1 noundef zeroext false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  %50 = load i32, ptr %8, align 4, !tbaa !9
  %51 = sext i32 %50 to i64
  %52 = mul i64 40, %51
  %53 = mul i64 %52, 6
  %54 = alloca i8, i64 %53, align 16
  store ptr %54, ptr %10, align 8, !tbaa !5
  %55 = load ptr, ptr %10, align 8, !tbaa !5
  %56 = icmp ne ptr %55, null
  br i1 %56, label %58, label %57

57:                                               ; preds = %4
  store i32 1, ptr %11, align 4
  br label %319

58:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 96, ptr %12) #8
  call void @llvm.lifetime.start.p0(i64 64, ptr %13) #8
  %59 = load ptr, ptr %5, align 8, !tbaa !5
  %60 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZNK8ImGuizmo8matrix_tmlERKS0_(ptr dead_on_unwind writable sret(%"struct.ImGuizmo::matrix_t") align 4 %13, ptr noundef nonnull align 4 dereferenceable(64) %59, ptr noundef nonnull align 4 dereferenceable(64) %60)
  %61 = getelementptr inbounds [6 x %"struct.ImGuizmo::vec_t"], ptr %12, i64 0, i64 0
  %62 = getelementptr inbounds %"struct.ImGuizmo::matrix_t", ptr %13, i32 0, i32 0
  %63 = getelementptr inbounds [16 x float], ptr %62, i64 0, i64 0
  call void @_ZN8ImGuizmo20ComputeFrustumPlanesEPNS_5vec_tEPKf(ptr noundef %61, ptr noundef %63)
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  store i32 0, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %64

64:                                               ; preds = %290, %58
  %65 = load i32, ptr %15, align 4, !tbaa !9
  %66 = load i32, ptr %8, align 4, !tbaa !9
  %67 = icmp slt i32 %65, %66
  br i1 %67, label %69, label %68

68:                                               ; preds = %64
  store i32 2, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  br label %293

69:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %70 = load ptr, ptr %7, align 8, !tbaa !5
  %71 = load i32, ptr %15, align 4, !tbaa !9
  %72 = mul nsw i32 %71, 16
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds float, ptr %70, i64 %73
  store ptr %74, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 64, ptr %17) #8
  call void @llvm.lifetime.start.p0(i64 64, ptr %18) #8
  %75 = load ptr, ptr %16, align 8, !tbaa !5
  %76 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZNK8ImGuizmo8matrix_tmlERKS0_(ptr dead_on_unwind writable sret(%"struct.ImGuizmo::matrix_t") align 4 %18, ptr noundef nonnull align 4 dereferenceable(64) %75, ptr noundef nonnull align 4 dereferenceable(64) %76)
  %77 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZNK8ImGuizmo8matrix_tmlERKS0_(ptr dead_on_unwind writable sret(%"struct.ImGuizmo::matrix_t") align 4 %17, ptr noundef nonnull align 4 dereferenceable(64) %18, ptr noundef nonnull align 4 dereferenceable(64) %77)
  call void @llvm.lifetime.end.p0(i64 64, ptr %18) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  store i32 0, ptr %19, align 4, !tbaa !9
  br label %78

78:                                               ; preds = %286, %69
  %79 = load i32, ptr %19, align 4, !tbaa !9
  %80 = icmp slt i32 %79, 6
  br i1 %80, label %82, label %81

81:                                               ; preds = %78
  store i32 5, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  br label %289

82:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  %83 = load i32, ptr %19, align 4, !tbaa !9
  %84 = srem i32 %83, 3
  store i32 %84, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  %85 = load i32, ptr %20, align 4, !tbaa !9
  %86 = add nsw i32 %85, 1
  %87 = srem i32 %86, 3
  store i32 %87, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  %88 = load i32, ptr %20, align 4, !tbaa !9
  %89 = add nsw i32 %88, 2
  %90 = srem i32 %89, 3
  store i32 %90, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #8
  %91 = load i32, ptr %19, align 4, !tbaa !9
  %92 = icmp sgt i32 %91, 2
  %93 = zext i1 %92 to i64
  %94 = select i1 %92, float -1.000000e+00, float 1.000000e+00
  store float %94, ptr %23, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 64, ptr %24) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #8
  %95 = load i32, ptr %20, align 4, !tbaa !9
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [3 x %"struct.ImGuizmo::vec_t"], ptr @_ZN8ImGuizmoL14directionUnaryE, i64 0, i64 %96
  %98 = load i32, ptr %21, align 4, !tbaa !9
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [3 x %"struct.ImGuizmo::vec_t"], ptr @_ZN8ImGuizmoL14directionUnaryE, i64 0, i64 %99
  %101 = call { <2 x float>, <2 x float> } @_ZNK8ImGuizmo5vec_tplERKS0_(ptr noundef nonnull align 4 dereferenceable(16) %97, ptr noundef nonnull align 4 dereferenceable(16) %100)
  %102 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %25, i32 0, i32 0
  %103 = extractvalue { <2 x float>, <2 x float> } %101, 0
  store <2 x float> %103, ptr %102, align 4
  %104 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %25, i32 0, i32 1
  %105 = extractvalue { <2 x float>, <2 x float> } %101, 1
  store <2 x float> %105, ptr %104, align 4
  %106 = load i32, ptr %22, align 4, !tbaa !9
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [3 x %"struct.ImGuizmo::vec_t"], ptr @_ZN8ImGuizmoL14directionUnaryE, i64 0, i64 %107
  %109 = call { <2 x float>, <2 x float> } @_ZNK8ImGuizmo5vec_tplERKS0_(ptr noundef nonnull align 4 dereferenceable(16) %25, ptr noundef nonnull align 4 dereferenceable(16) %108)
  %110 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %24, i32 0, i32 0
  %111 = extractvalue { <2 x float>, <2 x float> } %109, 0
  store <2 x float> %111, ptr %110, align 16
  %112 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %24, i32 0, i32 1
  %113 = extractvalue { <2 x float>, <2 x float> } %109, 1
  store <2 x float> %113, ptr %112, align 8
  %114 = getelementptr inbounds %"struct.ImGuizmo::vec_t", ptr %24, i64 1
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #8
  %115 = load i32, ptr %20, align 4, !tbaa !9
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds [3 x %"struct.ImGuizmo::vec_t"], ptr @_ZN8ImGuizmoL14directionUnaryE, i64 0, i64 %116
  %118 = load i32, ptr %21, align 4, !tbaa !9
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds [3 x %"struct.ImGuizmo::vec_t"], ptr @_ZN8ImGuizmoL14directionUnaryE, i64 0, i64 %119
  %121 = call { <2 x float>, <2 x float> } @_ZNK8ImGuizmo5vec_tplERKS0_(ptr noundef nonnull align 4 dereferenceable(16) %117, ptr noundef nonnull align 4 dereferenceable(16) %120)
  %122 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %26, i32 0, i32 0
  %123 = extractvalue { <2 x float>, <2 x float> } %121, 0
  store <2 x float> %123, ptr %122, align 4
  %124 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %26, i32 0, i32 1
  %125 = extractvalue { <2 x float>, <2 x float> } %121, 1
  store <2 x float> %125, ptr %124, align 4
  %126 = load i32, ptr %22, align 4, !tbaa !9
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds [3 x %"struct.ImGuizmo::vec_t"], ptr @_ZN8ImGuizmoL14directionUnaryE, i64 0, i64 %127
  %129 = call { <2 x float>, <2 x float> } @_ZNK8ImGuizmo5vec_tmiERKS0_(ptr noundef nonnull align 4 dereferenceable(16) %26, ptr noundef nonnull align 4 dereferenceable(16) %128)
  %130 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %114, i32 0, i32 0
  %131 = extractvalue { <2 x float>, <2 x float> } %129, 0
  store <2 x float> %131, ptr %130, align 16
  %132 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %114, i32 0, i32 1
  %133 = extractvalue { <2 x float>, <2 x float> } %129, 1
  store <2 x float> %133, ptr %132, align 8
  %134 = getelementptr inbounds %"struct.ImGuizmo::vec_t", ptr %24, i64 2
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #8
  %135 = load i32, ptr %20, align 4, !tbaa !9
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds [3 x %"struct.ImGuizmo::vec_t"], ptr @_ZN8ImGuizmoL14directionUnaryE, i64 0, i64 %136
  %138 = load i32, ptr %21, align 4, !tbaa !9
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds [3 x %"struct.ImGuizmo::vec_t"], ptr @_ZN8ImGuizmoL14directionUnaryE, i64 0, i64 %139
  %141 = call { <2 x float>, <2 x float> } @_ZNK8ImGuizmo5vec_tmiERKS0_(ptr noundef nonnull align 4 dereferenceable(16) %137, ptr noundef nonnull align 4 dereferenceable(16) %140)
  %142 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %27, i32 0, i32 0
  %143 = extractvalue { <2 x float>, <2 x float> } %141, 0
  store <2 x float> %143, ptr %142, align 4
  %144 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %27, i32 0, i32 1
  %145 = extractvalue { <2 x float>, <2 x float> } %141, 1
  store <2 x float> %145, ptr %144, align 4
  %146 = load i32, ptr %22, align 4, !tbaa !9
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds [3 x %"struct.ImGuizmo::vec_t"], ptr @_ZN8ImGuizmoL14directionUnaryE, i64 0, i64 %147
  %149 = call { <2 x float>, <2 x float> } @_ZNK8ImGuizmo5vec_tmiERKS0_(ptr noundef nonnull align 4 dereferenceable(16) %27, ptr noundef nonnull align 4 dereferenceable(16) %148)
  %150 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %134, i32 0, i32 0
  %151 = extractvalue { <2 x float>, <2 x float> } %149, 0
  store <2 x float> %151, ptr %150, align 16
  %152 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %134, i32 0, i32 1
  %153 = extractvalue { <2 x float>, <2 x float> } %149, 1
  store <2 x float> %153, ptr %152, align 8
  %154 = getelementptr inbounds %"struct.ImGuizmo::vec_t", ptr %24, i64 3
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #8
  %155 = load i32, ptr %20, align 4, !tbaa !9
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds [3 x %"struct.ImGuizmo::vec_t"], ptr @_ZN8ImGuizmoL14directionUnaryE, i64 0, i64 %156
  %158 = load i32, ptr %21, align 4, !tbaa !9
  %159 = sext i32 %158 to i64
  %160 = getelementptr inbounds [3 x %"struct.ImGuizmo::vec_t"], ptr @_ZN8ImGuizmoL14directionUnaryE, i64 0, i64 %159
  %161 = call { <2 x float>, <2 x float> } @_ZNK8ImGuizmo5vec_tmiERKS0_(ptr noundef nonnull align 4 dereferenceable(16) %157, ptr noundef nonnull align 4 dereferenceable(16) %160)
  %162 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %28, i32 0, i32 0
  %163 = extractvalue { <2 x float>, <2 x float> } %161, 0
  store <2 x float> %163, ptr %162, align 4
  %164 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %28, i32 0, i32 1
  %165 = extractvalue { <2 x float>, <2 x float> } %161, 1
  store <2 x float> %165, ptr %164, align 4
  %166 = load i32, ptr %22, align 4, !tbaa !9
  %167 = sext i32 %166 to i64
  %168 = getelementptr inbounds [3 x %"struct.ImGuizmo::vec_t"], ptr @_ZN8ImGuizmoL14directionUnaryE, i64 0, i64 %167
  %169 = call { <2 x float>, <2 x float> } @_ZNK8ImGuizmo5vec_tplERKS0_(ptr noundef nonnull align 4 dereferenceable(16) %28, ptr noundef nonnull align 4 dereferenceable(16) %168)
  %170 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %154, i32 0, i32 0
  %171 = extractvalue { <2 x float>, <2 x float> } %169, 0
  store <2 x float> %171, ptr %170, align 16
  %172 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %154, i32 0, i32 1
  %173 = extractvalue { <2 x float>, <2 x float> } %169, 1
  store <2 x float> %173, ptr %172, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %29) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %32) #8
  %174 = load i32, ptr %20, align 4, !tbaa !9
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds [3 x %"struct.ImGuizmo::vec_t"], ptr @_ZN8ImGuizmoL14directionUnaryE, i64 0, i64 %175
  %177 = call { <2 x float>, <2 x float> } @_ZNK8ImGuizmo5vec_tmlEf(ptr noundef nonnull align 4 dereferenceable(16) %176, float noundef 5.000000e-01)
  %178 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %32, i32 0, i32 0
  %179 = extractvalue { <2 x float>, <2 x float> } %177, 0
  store <2 x float> %179, ptr %178, align 4
  %180 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %32, i32 0, i32 1
  %181 = extractvalue { <2 x float>, <2 x float> } %177, 1
  store <2 x float> %181, ptr %180, align 4
  %182 = load float, ptr %23, align 4, !tbaa !11
  %183 = call { <2 x float>, <2 x float> } @_ZNK8ImGuizmo5vec_tmlEf(ptr noundef nonnull align 4 dereferenceable(16) %32, float noundef %182)
  %184 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %31, i32 0, i32 0
  %185 = extractvalue { <2 x float>, <2 x float> } %183, 0
  store <2 x float> %185, ptr %184, align 4
  %186 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %31, i32 0, i32 1
  %187 = extractvalue { <2 x float>, <2 x float> } %183, 1
  store <2 x float> %187, ptr %186, align 4
  %188 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN8ImGuizmo5vec_t14TransformPointERKS0_RKNS_8matrix_tE(ptr noundef nonnull align 4 dereferenceable(16) %29, ptr noundef nonnull align 4 dereferenceable(16) %31, ptr noundef nonnull align 4 dereferenceable(64) %188)
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %33) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %34) #8
  %189 = load i32, ptr %20, align 4, !tbaa !9
  %190 = sext i32 %189 to i64
  %191 = getelementptr inbounds [3 x %"struct.ImGuizmo::vec_t"], ptr @_ZN8ImGuizmoL14directionUnaryE, i64 0, i64 %190
  %192 = call { <2 x float>, <2 x float> } @_ZNK8ImGuizmo5vec_tmlEf(ptr noundef nonnull align 4 dereferenceable(16) %191, float noundef 5.000000e-01)
  %193 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %34, i32 0, i32 0
  %194 = extractvalue { <2 x float>, <2 x float> } %192, 0
  store <2 x float> %194, ptr %193, align 4
  %195 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %34, i32 0, i32 1
  %196 = extractvalue { <2 x float>, <2 x float> } %192, 1
  store <2 x float> %196, ptr %195, align 4
  %197 = load float, ptr %23, align 4, !tbaa !11
  %198 = call { <2 x float>, <2 x float> } @_ZNK8ImGuizmo5vec_tmlEf(ptr noundef nonnull align 4 dereferenceable(16) %34, float noundef %197)
  %199 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %33, i32 0, i32 0
  %200 = extractvalue { <2 x float>, <2 x float> } %198, 0
  store <2 x float> %200, ptr %199, align 4
  %201 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %33, i32 0, i32 1
  %202 = extractvalue { <2 x float>, <2 x float> } %198, 1
  store <2 x float> %202, ptr %201, align 4
  call void @_ZN8ImGuizmo5vec_t14TransformPointERKS0_RKNS_8matrix_tE(ptr noundef nonnull align 4 dereferenceable(16) %30, ptr noundef nonnull align 4 dereferenceable(16) %33, ptr noundef nonnull align 4 dereferenceable(64) %17)
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr %35) #8
  store i8 1, ptr %35, align 1, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #8
  store i32 0, ptr %36, align 4, !tbaa !9
  br label %203

203:                                              ; preds = %219, %82
  %204 = load i32, ptr %36, align 4, !tbaa !9
  %205 = icmp slt i32 %204, 6
  br i1 %205, label %207, label %206

206:                                              ; preds = %203
  store i32 8, ptr %11, align 4
  br label %222

207:                                              ; preds = %203
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #8
  %208 = load i32, ptr %36, align 4, !tbaa !9
  %209 = sext i32 %208 to i64
  %210 = getelementptr inbounds [6 x %"struct.ImGuizmo::vec_t"], ptr %12, i64 0, i64 %209
  %211 = call noundef float @_ZN8ImGuizmoL15DistanceToPlaneERKNS_5vec_tES2_(ptr noundef nonnull align 4 dereferenceable(16) %29, ptr noundef nonnull align 4 dereferenceable(16) %210)
  store float %211, ptr %37, align 4, !tbaa !11
  %212 = load float, ptr %37, align 4, !tbaa !11
  %213 = fcmp olt float %212, 0.000000e+00
  br i1 %213, label %214, label %215

214:                                              ; preds = %207
  store i8 0, ptr %35, align 1, !tbaa !13
  store i32 8, ptr %11, align 4
  br label %216

215:                                              ; preds = %207
  store i32 0, ptr %11, align 4
  br label %216

216:                                              ; preds = %215, %214
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #8
  %217 = load i32, ptr %11, align 4
  switch i32 %217, label %222 [
    i32 0, label %218
  ]

218:                                              ; preds = %216
  br label %219

219:                                              ; preds = %218
  %220 = load i32, ptr %36, align 4, !tbaa !9
  %221 = add nsw i32 %220, 1
  store i32 %221, ptr %36, align 4, !tbaa !9
  br label %203, !llvm.loop !15

222:                                              ; preds = %216, %206
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #8
  br label %223

223:                                              ; preds = %222
  %224 = load i8, ptr %35, align 1, !tbaa !13, !range !17, !noundef !18
  %225 = trunc i8 %224 to i1
  br i1 %225, label %227, label %226

226:                                              ; preds = %223
  store i32 7, ptr %11, align 4
  br label %283

227:                                              ; preds = %223
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #8
  %228 = load ptr, ptr %10, align 8, !tbaa !5
  %229 = load i32, ptr %14, align 4, !tbaa !9
  %230 = sext i32 %229 to i64
  %231 = getelementptr inbounds %struct.CubeFace, ptr %228, i64 %230
  store ptr %231, ptr %38, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #8
  store i32 0, ptr %39, align 4, !tbaa !9
  br label %232

232:                                              ; preds = %263, %227
  %233 = load i32, ptr %39, align 4, !tbaa !9
  %234 = icmp ult i32 %233, 4
  br i1 %234, label %236, label %235

235:                                              ; preds = %232
  store i32 11, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #8
  br label %266

236:                                              ; preds = %232
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %41) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %42) #8
  %237 = load i32, ptr %39, align 4, !tbaa !9
  %238 = zext i32 %237 to i64
  %239 = getelementptr inbounds [4 x %"struct.ImGuizmo::vec_t"], ptr %24, i64 0, i64 %238
  %240 = call { <2 x float>, <2 x float> } @_ZNK8ImGuizmo5vec_tmlEf(ptr noundef nonnull align 4 dereferenceable(16) %239, float noundef 5.000000e-01)
  %241 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %42, i32 0, i32 0
  %242 = extractvalue { <2 x float>, <2 x float> } %240, 0
  store <2 x float> %242, ptr %241, align 4
  %243 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %42, i32 0, i32 1
  %244 = extractvalue { <2 x float>, <2 x float> } %240, 1
  store <2 x float> %244, ptr %243, align 4
  %245 = load float, ptr %23, align 4, !tbaa !11
  %246 = call { <2 x float>, <2 x float> } @_ZNK8ImGuizmo5vec_tmlEf(ptr noundef nonnull align 4 dereferenceable(16) %42, float noundef %245)
  %247 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %41, i32 0, i32 0
  %248 = extractvalue { <2 x float>, <2 x float> } %246, 0
  store <2 x float> %248, ptr %247, align 4
  %249 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %41, i32 0, i32 1
  %250 = extractvalue { <2 x float>, <2 x float> } %246, 1
  store <2 x float> %250, ptr %249, align 4
  %251 = load float, ptr getelementptr inbounds (%"struct.ImGuizmo::Context", ptr @_ZN8ImGuizmoL8gContextE, i32 0, i32 49), align 4, !tbaa !19
  %252 = load float, ptr getelementptr inbounds (%"struct.ImGuizmo::Context", ptr @_ZN8ImGuizmoL8gContextE, i32 0, i32 50), align 8, !tbaa !26
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %43, float noundef %251, float noundef %252)
  %253 = load float, ptr getelementptr inbounds (%"struct.ImGuizmo::Context", ptr @_ZN8ImGuizmoL8gContextE, i32 0, i32 51), align 4, !tbaa !27
  %254 = load float, ptr getelementptr inbounds (%"struct.ImGuizmo::Context", ptr @_ZN8ImGuizmoL8gContextE, i32 0, i32 52), align 8, !tbaa !28
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %44, float noundef %253, float noundef %254)
  %255 = load <2 x float>, ptr %43, align 4
  %256 = load <2 x float>, ptr %44, align 4
  %257 = call <2 x float> @_ZN8ImGuizmoL10worldToPosERKNS_5vec_tERKNS_8matrix_tE6ImVec2S6_(ptr noundef nonnull align 4 dereferenceable(16) %41, ptr noundef nonnull align 4 dereferenceable(64) %17, <2 x float> %255, <2 x float> %256)
  store <2 x float> %257, ptr %40, align 4
  %258 = load ptr, ptr %38, align 8, !tbaa !5
  %259 = getelementptr inbounds %struct.CubeFace, ptr %258, i32 0, i32 1
  %260 = load i32, ptr %39, align 4, !tbaa !9
  %261 = zext i32 %260 to i64
  %262 = getelementptr inbounds [4 x %struct.ImVec2], ptr %259, i64 0, i64 %261
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %262, ptr align 4 %40, i64 8, i1 false), !tbaa.struct !29
  call void @llvm.lifetime.end.p0(i64 16, ptr %42) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %41) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #8
  br label %263

263:                                              ; preds = %236
  %264 = load i32, ptr %39, align 4, !tbaa !9
  %265 = add i32 %264, 1
  store i32 %265, ptr %39, align 4, !tbaa !9
  br label %232, !llvm.loop !30

266:                                              ; preds = %235
  %267 = load i32, ptr %20, align 4, !tbaa !9
  %268 = sext i32 %267 to i64
  %269 = getelementptr inbounds [3 x i32], ptr @_ZN8ImGuizmoL14directionColorE, i64 0, i64 %268
  %270 = load i32, ptr %269, align 4, !tbaa !9
  %271 = or i32 %270, 8421504
  %272 = load ptr, ptr %38, align 8, !tbaa !5
  %273 = getelementptr inbounds %struct.CubeFace, ptr %272, i32 0, i32 2
  store i32 %271, ptr %273, align 4, !tbaa !31
  %274 = getelementptr inbounds %"struct.ImGuizmo::vec_t", ptr %30, i32 0, i32 2
  %275 = load float, ptr %274, align 4, !tbaa !33
  %276 = getelementptr inbounds %"struct.ImGuizmo::vec_t", ptr %30, i32 0, i32 3
  %277 = load float, ptr %276, align 4, !tbaa !34
  %278 = fdiv float %275, %277
  %279 = load ptr, ptr %38, align 8, !tbaa !5
  %280 = getelementptr inbounds %struct.CubeFace, ptr %279, i32 0, i32 0
  store float %278, ptr %280, align 4, !tbaa !35
  %281 = load i32, ptr %14, align 4, !tbaa !9
  %282 = add nsw i32 %281, 1
  store i32 %282, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #8
  store i32 0, ptr %11, align 4
  br label %283

283:                                              ; preds = %266, %226
  call void @llvm.lifetime.end.p0(i64 1, ptr %35) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 64, 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 @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  %284 = load i32, ptr %11, align 4
  switch i32 %284, label %322 [
    i32 0, label %285
    i32 7, label %286
  ]

285:                                              ; preds = %283
  br label %286

286:                                              ; preds = %285, %283
  %287 = load i32, ptr %19, align 4, !tbaa !9
  %288 = add nsw i32 %287, 1
  store i32 %288, ptr %19, align 4, !tbaa !9
  br label %78, !llvm.loop !36

289:                                              ; preds = %81
  call void @llvm.lifetime.end.p0(i64 64, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  br label %290

290:                                              ; preds = %289
  %291 = load i32, ptr %15, align 4, !tbaa !9
  %292 = add nsw i32 %291, 1
  store i32 %292, ptr %15, align 4, !tbaa !9
  br label %64, !llvm.loop !37

293:                                              ; preds = %68
  %294 = load ptr, ptr %10, align 8, !tbaa !5
  %295 = load i32, ptr %14, align 4, !tbaa !9
  %296 = sext i32 %295 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %45) #8
  %297 = call noundef ptr @"_ZZN8ImGuizmo9DrawCubesEPKfS1_S1_iENK3$_0cvPFiPKvS4_EEv"(ptr noundef nonnull align 1 dereferenceable(1) %45) #8
  call void @qsort(ptr noundef %294, i64 noundef %296, i64 noundef 40, ptr noundef %297)
  call void @llvm.lifetime.end.p0(i64 1, ptr %45) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #8
  store i32 0, ptr %46, align 4, !tbaa !9
  br label %298

298:                                              ; preds = %315, %293
  %299 = load i32, ptr %46, align 4, !tbaa !9
  %300 = load i32, ptr %14, align 4, !tbaa !9
  %301 = icmp slt i32 %299, %300
  br i1 %301, label %303, label %302

302:                                              ; preds = %298
  store i32 14, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #8
  br label %318

303:                                              ; preds = %298
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #8
  %304 = load ptr, ptr %10, align 8, !tbaa !5
  %305 = load i32, ptr %46, align 4, !tbaa !9
  %306 = sext i32 %305 to i64
  %307 = getelementptr inbounds %struct.CubeFace, ptr %304, i64 %306
  store ptr %307, ptr %47, align 8, !tbaa !5
  %308 = load ptr, ptr @_ZN8ImGuizmoL8gContextE, align 8, !tbaa !38
  %309 = load ptr, ptr %47, align 8, !tbaa !5
  %310 = getelementptr inbounds %struct.CubeFace, ptr %309, i32 0, i32 1
  %311 = getelementptr inbounds [4 x %struct.ImVec2], ptr %310, i64 0, i64 0
  %312 = load ptr, ptr %47, align 8, !tbaa !5
  %313 = getelementptr inbounds %struct.CubeFace, ptr %312, i32 0, i32 2
  %314 = load i32, ptr %313, align 4, !tbaa !31
  call void @_ZN10ImDrawList19AddConvexPolyFilledEPK6ImVec2ij(ptr noundef nonnull align 8 dereferenceable(196) %308, ptr noundef %311, i32 noundef 4, i32 noundef %314)
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #8
  br label %315

315:                                              ; preds = %303
  %316 = load i32, ptr %46, align 4, !tbaa !9
  %317 = add nsw i32 %316, 1
  store i32 %317, ptr %46, align 4, !tbaa !9
  br label %298, !llvm.loop !39

318:                                              ; preds = %302
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 96, ptr %12) #8
  store i32 0, ptr %11, align 4
  br label %319

319:                                              ; preds = %318, %57
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr %9) #8
  %320 = load i32, ptr %11, align 4
  switch i32 %320, label %322 [
    i32 0, label %321
    i32 1, label %321
  ]

321:                                              ; preds = %319, %319
  ret void

322:                                              ; preds = %319, %283
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef float @_ZN8ImGuizmoL15DistanceToPlaneERKNS_5vec_tES2_(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16)) #4

; Function Attrs: mustprogress uwtable
declare hidden <2 x float> @_ZN8ImGuizmoL10worldToPosERKNS_5vec_tERKNS_8matrix_tE6ImVec2S6_(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(64), <2 x float>, <2 x float>) #5

declare void @qsort(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef ptr @"_ZZN8ImGuizmo9DrawCubesEPKfS1_S1_iENK3$_0cvPFiPKvS4_EEv"(ptr noundef nonnull align 1 dereferenceable(1)) #7 align 2

declare void @_ZN10ImDrawList19AddConvexPolyFilledEPK6ImVec2ij(ptr noundef nonnull align 8 dereferenceable(196), ptr noundef, i32 noundef, i32 noundef) #6

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #6 = { "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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = !{!20, !12, i64 996}
!20 = !{!"_ZTSN8ImGuizmo7ContextE", !6, i64 0, !21, i64 8, !22, i64 12, !22, i64 76, !22, i64 140, !22, i64 204, !22, i64 268, !22, i64 332, !22, i64 396, !22, i64 460, !23, i64 524, !23, i64 540, !23, i64 556, !23, i64 572, !23, i64 588, !23, i64 604, !23, i64 620, !12, i64 636, !24, i64 640, !24, i64 648, !24, i64 656, !12, i64 664, !23, i64 668, !14, i64 684, !14, i64 685, !14, i64 686, !23, i64 688, !23, i64 704, !23, i64 720, !23, i64 736, !23, i64 752, !12, i64 768, !12, i64 772, !23, i64 776, !23, i64 792, !23, i64 808, !12, i64 824, !7, i64 828, !7, i64 831, !7, i64 836, !23, i64 848, !23, i64 864, !23, i64 880, !23, i64 896, !10, i64 912, !7, i64 916, !14, i64 924, !22, i64 928, !10, i64 992, !12, i64 996, !12, i64 1000, !12, i64 1004, !12, i64 1008, !12, i64 1012, !12, i64 1016, !12, i64 1020, !14, i64 1024, !10, i64 1028, !10, i64 1032, !25, i64 1036, !14, i64 1040, !12, i64 1044}
!21 = !{!"_ZTSN8ImGuizmo4MODEE", !7, i64 0}
!22 = !{!"_ZTSN8ImGuizmo8matrix_tE", !7, i64 0}
!23 = !{!"_ZTSN8ImGuizmo5vec_tE", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12}
!24 = !{!"_ZTS6ImVec2", !12, i64 0, !12, i64 4}
!25 = !{!"_ZTSN8ImGuizmo9OPERATIONE", !7, i64 0}
!26 = !{!20, !12, i64 1000}
!27 = !{!20, !12, i64 1004}
!28 = !{!20, !12, i64 1008}
!29 = !{i64 0, i64 4, !11, i64 4, i64 4, !11}
!30 = distinct !{!30, !16}
!31 = !{!32, !10, i64 36}
!32 = !{!"_ZTSZN8ImGuizmo9DrawCubesEPKfS1_S1_iE8CubeFace", !12, i64 0, !7, i64 4, !10, i64 36}
!33 = !{!23, !12, i64 8}
!34 = !{!23, !12, i64 12}
!35 = !{!32, !12, i64 0}
!36 = distinct !{!36, !16}
!37 = distinct !{!37, !16}
!38 = !{!20, !6, i64 0}
!39 = distinct !{!39, !16}


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

%"struct.ImGuizmo::Context" = type { ptr, i32, %"struct.ImGuizmo::matrix_t", %"struct.ImGuizmo::matrix_t", %"struct.ImGuizmo::matrix_t", %"struct.ImGuizmo::matrix_t", %"struct.ImGuizmo::matrix_t", %"struct.ImGuizmo::matrix_t", %"struct.ImGuizmo::matrix_t", %"struct.ImGuizmo::matrix_t", %"struct.ImGuizmo::vec_t", %"struct.ImGuizmo::vec_t", %"struct.ImGuizmo::vec_t", %"struct.ImGuizmo::vec_t", %"struct.ImGuizmo::vec_t", %"struct.ImGuizmo::vec_t", %"struct.ImGuizmo::vec_t", float, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, %"struct.ImGuizmo::vec_t", i8, i8, i8, %"struct.ImGuizmo::vec_t", %"struct.ImGuizmo::vec_t", %"struct.ImGuizmo::vec_t", %"struct.ImGuizmo::vec_t", %"struct.ImGuizmo::vec_t", float, float, %"struct.ImGuizmo::vec_t", %"struct.ImGuizmo::vec_t", %"struct.ImGuizmo::vec_t", float, [3 x i8], [3 x i8], [3 x float], %"struct.ImGuizmo::vec_t", %"struct.ImGuizmo::vec_t", %"struct.ImGuizmo::vec_t", %"struct.ImGuizmo::vec_t", i32, [2 x i32], i8, %"struct.ImGuizmo::matrix_t", i32, float, float, float, float, float, float, float, i8, i32, i32, i32, i8, float }
%struct.ImVec2 = type { float, float }
%"struct.ImGuizmo::vec_t" = type { float, float, float, float }
%"struct.ImGuizmo::matrix_t" = type { %union.anon }
%union.anon = type { [4 x [4 x float]] }
%class.anon = type { i8 }
%struct.CubeFace = type { float, [4 x %struct.ImVec2], i32 }

@_ZN8ImGuizmoL8gContextE = external hidden local_unnamed_addr global %"struct.ImGuizmo::Context", align 8
@_ZN8ImGuizmoL14directionUnaryE = external hidden global [3 x %"struct.ImGuizmo::vec_t"], align 16
@_ZN8ImGuizmoL14directionColorE = external hidden local_unnamed_addr constant [3 x i32], align 4

; 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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { <2 x float>, <2 x float> } @_ZNK8ImGuizmo5vec_tmlEf(ptr noundef nonnull align 4 dereferenceable(16), float noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { <2 x float>, <2 x float> } @_ZNK8ImGuizmo5vec_tmiERKS0_(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { <2 x float>, <2 x float> } @_ZNK8ImGuizmo5vec_tplERKS0_(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN8ImGuizmo8matrix_t7InverseERKS0_b(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64), i1 noundef zeroext) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8ImGuizmo8matrix_tC2Ev(ptr noundef nonnull align 4 dereferenceable(64)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK8ImGuizmo8matrix_tmlERKS0_(ptr dead_on_unwind noalias writable sret(%"struct.ImGuizmo::matrix_t") align 4, ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8ImGuizmo5vec_t14TransformPointERKS0_RKNS_8matrix_tE(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(64)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8ImGuizmo20ComputeFrustumPlanesEPNS_5vec_tEPKf(ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8ImGuizmo9DrawCubesEPKfS1_S1_i(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) local_unnamed_addr #4 {
  %5 = alloca %"struct.ImGuizmo::matrix_t", align 4
  %6 = alloca [6 x %"struct.ImGuizmo::vec_t"], align 16
  %7 = alloca %"struct.ImGuizmo::matrix_t", align 4
  %8 = alloca %"struct.ImGuizmo::matrix_t", align 4
  %9 = alloca %"struct.ImGuizmo::matrix_t", align 4
  %10 = alloca [4 x %"struct.ImGuizmo::vec_t"], align 16
  %11 = alloca %"struct.ImGuizmo::vec_t", align 8
  %12 = alloca %"struct.ImGuizmo::vec_t", align 8
  %13 = alloca %"struct.ImGuizmo::vec_t", align 8
  %14 = alloca %"struct.ImGuizmo::vec_t", align 8
  %15 = alloca %"struct.ImGuizmo::vec_t", align 4
  %16 = alloca %"struct.ImGuizmo::vec_t", align 4
  %17 = alloca %"struct.ImGuizmo::vec_t", align 8
  %18 = alloca %"struct.ImGuizmo::vec_t", align 8
  %19 = alloca %"struct.ImGuizmo::vec_t", align 8
  %20 = alloca %"struct.ImGuizmo::vec_t", align 8
  %21 = alloca %"struct.ImGuizmo::vec_t", align 8
  %22 = alloca %"struct.ImGuizmo::vec_t", align 8
  %23 = alloca %struct.ImVec2, align 8
  %24 = alloca %struct.ImVec2, align 8
  %25 = alloca %class.anon, align 1
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %5) #8
  call void @_ZN8ImGuizmo8matrix_tC2Ev(ptr noundef nonnull align 4 dereferenceable(64) %5)
  %26 = call noundef float @_ZN8ImGuizmo8matrix_t7InverseERKS0_b(ptr noundef nonnull align 4 dereferenceable(64) %5, ptr noundef nonnull align 4 dereferenceable(64) %0, i1 noundef zeroext false)
  %27 = sext i32 %3 to i64
  %28 = mul nsw i64 %27, 240
  %29 = alloca i8, i64 %28, align 16
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %6) #8
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %7) #8
  call void @_ZNK8ImGuizmo8matrix_tmlERKS0_(ptr dead_on_unwind nonnull writable sret(%"struct.ImGuizmo::matrix_t") align 4 %7, ptr noundef nonnull align 4 dereferenceable(64) %0, ptr noundef nonnull align 4 dereferenceable(64) %1)
  call void @_ZN8ImGuizmo20ComputeFrustumPlanesEPNS_5vec_tEPKf(ptr noundef nonnull %6, ptr noundef nonnull %7)
  %30 = icmp sgt i32 %3, 0
  br i1 %30, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %4
  %31 = getelementptr inbounds i8, ptr %11, i64 8
  %32 = getelementptr inbounds i8, ptr %10, i64 8
  %33 = getelementptr inbounds i8, ptr %10, i64 16
  %34 = getelementptr inbounds i8, ptr %12, i64 8
  %35 = getelementptr inbounds i8, ptr %10, i64 24
  %36 = getelementptr inbounds i8, ptr %10, i64 32
  %37 = getelementptr inbounds i8, ptr %13, i64 8
  %38 = getelementptr inbounds i8, ptr %10, i64 40
  %39 = getelementptr inbounds i8, ptr %10, i64 48
  %40 = getelementptr inbounds i8, ptr %14, i64 8
  %41 = getelementptr inbounds i8, ptr %10, i64 56
  %42 = getelementptr inbounds i8, ptr %18, i64 8
  %43 = getelementptr inbounds i8, ptr %17, i64 8
  %44 = getelementptr inbounds i8, ptr %20, i64 8
  %45 = getelementptr inbounds i8, ptr %19, i64 8
  %46 = getelementptr inbounds i8, ptr %22, i64 8
  %47 = getelementptr inbounds i8, ptr %21, i64 8
  %48 = getelementptr inbounds i8, ptr %16, i64 8
  %49 = getelementptr inbounds i8, ptr %16, i64 12
  %wide.trip.count = zext nneg i32 %3 to i64
  %50 = getelementptr inbounds i8, ptr %6, i64 16
  %51 = getelementptr inbounds i8, ptr %6, i64 32
  %52 = getelementptr inbounds i8, ptr %6, i64 48
  %53 = getelementptr inbounds i8, ptr %6, i64 64
  %54 = getelementptr inbounds i8, ptr %6, i64 80
  br label %58

._crit_edge:                                      ; preds = %60, %4
  %.063.lcssa = phi i32 [ 0, %4 ], [ %.2, %60 ]
  %55 = sext i32 %.063.lcssa to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %25) #8
  %56 = call noundef ptr @"_ZZN8ImGuizmo9DrawCubesEPKfS1_S1_iENK3$_0cvPFiPKvS4_EEv"(ptr noundef nonnull align 1 dereferenceable(1) %25) #8
  call void @qsort(ptr noundef nonnull %29, i64 noundef %55, i64 noundef 40, ptr noundef %56)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %25) #8
  %57 = icmp sgt i32 %.063.lcssa, 0
  br i1 %57, label %.lr.ph79.preheader, label %._crit_edge80

.lr.ph79.preheader:                               ; preds = %._crit_edge
  %wide.trip.count88 = zext nneg i32 %.063.lcssa to i64
  br label %.lr.ph79

58:                                               ; preds = %.lr.ph, %60
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %60 ]
  %.06376 = phi i32 [ 0, %.lr.ph ], [ %.2, %60 ]
  %.idx = shl nsw i64 %indvars.iv, 6
  %59 = getelementptr inbounds i8, ptr %2, i64 %.idx
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %8) #8
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %9) #8
  call void @_ZNK8ImGuizmo8matrix_tmlERKS0_(ptr dead_on_unwind nonnull writable sret(%"struct.ImGuizmo::matrix_t") align 4 %9, ptr noundef nonnull align 4 dereferenceable(64) %59, ptr noundef nonnull align 4 dereferenceable(64) %0)
  call void @_ZNK8ImGuizmo8matrix_tmlERKS0_(ptr dead_on_unwind nonnull writable sret(%"struct.ImGuizmo::matrix_t") align 4 %8, ptr noundef nonnull align 4 dereferenceable(64) %9, ptr noundef nonnull align 4 dereferenceable(64) %1)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #8
  br label %61

60:                                               ; preds = %.loopexit
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %8) #8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond84.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond84.not, label %._crit_edge, label %58, !llvm.loop !5

61:                                               ; preds = %58, %.loopexit
  %.174 = phi i32 [ %.06376, %58 ], [ %.2, %.loopexit ]
  %.06673 = phi i32 [ 0, %58 ], [ %195, %.loopexit ]
  %.urem = add nsw i32 %.06673, -3
  %.cmp = icmp ult i32 %.06673, 3
  %62 = select i1 %.cmp, i32 %.06673, i32 %.urem
  %63 = add nuw nsw i32 %62, 1
  %64 = icmp eq i32 %63, 3
  %65 = select i1 %64, i32 0, i32 %63
  %66 = add nuw nsw i32 %62, 2
  %67 = urem i32 %66, 3
  %68 = icmp ugt i32 %.06673, 2
  %69 = select i1 %68, float -1.000000e+00, float 1.000000e+00
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %10) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #8
  %70 = zext nneg i32 %62 to i64
  %71 = getelementptr inbounds [3 x %"struct.ImGuizmo::vec_t"], ptr @_ZN8ImGuizmoL14directionUnaryE, i64 0, i64 %70
  %72 = zext nneg i32 %65 to i64
  %73 = getelementptr inbounds [3 x %"struct.ImGuizmo::vec_t"], ptr @_ZN8ImGuizmoL14directionUnaryE, i64 0, i64 %72
  %74 = call { <2 x float>, <2 x float> } @_ZNK8ImGuizmo5vec_tplERKS0_(ptr noundef nonnull align 4 dereferenceable(16) %71, ptr noundef nonnull align 4 dereferenceable(16) %73)
  %75 = extractvalue { <2 x float>, <2 x float> } %74, 0
  store <2 x float> %75, ptr %11, align 8
  %76 = extractvalue { <2 x float>, <2 x float> } %74, 1
  store <2 x float> %76, ptr %31, align 8
  %77 = zext nneg i32 %67 to i64
  %78 = getelementptr inbounds [3 x %"struct.ImGuizmo::vec_t"], ptr @_ZN8ImGuizmoL14directionUnaryE, i64 0, i64 %77
  %79 = call { <2 x float>, <2 x float> } @_ZNK8ImGuizmo5vec_tplERKS0_(ptr noundef nonnull align 4 dereferenceable(16) %11, ptr noundef nonnull align 4 dereferenceable(16) %78)
  %80 = extractvalue { <2 x float>, <2 x float> } %79, 0
  store <2 x float> %80, ptr %10, align 16
  %81 = extractvalue { <2 x float>, <2 x float> } %79, 1
  store <2 x float> %81, ptr %32, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #8
  %82 = call { <2 x float>, <2 x float> } @_ZNK8ImGuizmo5vec_tplERKS0_(ptr noundef nonnull align 4 dereferenceable(16) %71, ptr noundef nonnull align 4 dereferenceable(16) %73)
  %83 = extractvalue { <2 x float>, <2 x float> } %82, 0
  store <2 x float> %83, ptr %12, align 8
  %84 = extractvalue { <2 x float>, <2 x float> } %82, 1
  store <2 x float> %84, ptr %34, align 8
  %85 = call { <2 x float>, <2 x float> } @_ZNK8ImGuizmo5vec_tmiERKS0_(ptr noundef nonnull align 4 dereferenceable(16) %12, ptr noundef nonnull align 4 dereferenceable(16) %78)
  %86 = extractvalue { <2 x float>, <2 x float> } %85, 0
  store <2 x float> %86, ptr %33, align 16
  %87 = extractvalue { <2 x float>, <2 x float> } %85, 1
  store <2 x float> %87, ptr %35, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #8
  %88 = call { <2 x float>, <2 x float> } @_ZNK8ImGuizmo5vec_tmiERKS0_(ptr noundef nonnull align 4 dereferenceable(16) %71, ptr noundef nonnull align 4 dereferenceable(16) %73)
  %89 = extractvalue { <2 x float>, <2 x float> } %88, 0
  store <2 x float> %89, ptr %13, align 8
  %90 = extractvalue { <2 x float>, <2 x float> } %88, 1
  store <2 x float> %90, ptr %37, align 8
  %91 = call { <2 x float>, <2 x float> } @_ZNK8ImGuizmo5vec_tmiERKS0_(ptr noundef nonnull align 4 dereferenceable(16) %13, ptr noundef nonnull align 4 dereferenceable(16) %78)
  %92 = extractvalue { <2 x float>, <2 x float> } %91, 0
  store <2 x float> %92, ptr %36, align 16
  %93 = extractvalue { <2 x float>, <2 x float> } %91, 1
  store <2 x float> %93, ptr %38, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #8
  %94 = call { <2 x float>, <2 x float> } @_ZNK8ImGuizmo5vec_tmiERKS0_(ptr noundef nonnull align 4 dereferenceable(16) %71, ptr noundef nonnull align 4 dereferenceable(16) %73)
  %95 = extractvalue { <2 x float>, <2 x float> } %94, 0
  store <2 x float> %95, ptr %14, align 8
  %96 = extractvalue { <2 x float>, <2 x float> } %94, 1
  store <2 x float> %96, ptr %40, align 8
  %97 = call { <2 x float>, <2 x float> } @_ZNK8ImGuizmo5vec_tplERKS0_(ptr noundef nonnull align 4 dereferenceable(16) %14, ptr noundef nonnull align 4 dereferenceable(16) %78)
  %98 = extractvalue { <2 x float>, <2 x float> } %97, 0
  store <2 x float> %98, ptr %39, align 16
  %99 = extractvalue { <2 x float>, <2 x float> } %97, 1
  store <2 x float> %99, ptr %41, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #8
  %100 = call { <2 x float>, <2 x float> } @_ZNK8ImGuizmo5vec_tmlEf(ptr noundef nonnull align 4 dereferenceable(16) %71, float noundef 5.000000e-01)
  %101 = extractvalue { <2 x float>, <2 x float> } %100, 0
  store <2 x float> %101, ptr %18, align 8
  %102 = extractvalue { <2 x float>, <2 x float> } %100, 1
  store <2 x float> %102, ptr %42, align 8
  %103 = call { <2 x float>, <2 x float> } @_ZNK8ImGuizmo5vec_tmlEf(ptr noundef nonnull align 4 dereferenceable(16) %18, float noundef %69)
  %104 = extractvalue { <2 x float>, <2 x float> } %103, 0
  store <2 x float> %104, ptr %17, align 8
  %105 = extractvalue { <2 x float>, <2 x float> } %103, 1
  store <2 x float> %105, ptr %43, align 8
  call void @_ZN8ImGuizmo5vec_t14TransformPointERKS0_RKNS_8matrix_tE(ptr noundef nonnull align 4 dereferenceable(16) %15, ptr noundef nonnull align 4 dereferenceable(16) %17, ptr noundef nonnull align 4 dereferenceable(64) %59)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %20) #8
  %106 = call { <2 x float>, <2 x float> } @_ZNK8ImGuizmo5vec_tmlEf(ptr noundef nonnull align 4 dereferenceable(16) %71, float noundef 5.000000e-01)
  %107 = extractvalue { <2 x float>, <2 x float> } %106, 0
  store <2 x float> %107, ptr %20, align 8
  %108 = extractvalue { <2 x float>, <2 x float> } %106, 1
  store <2 x float> %108, ptr %44, align 8
  %109 = call { <2 x float>, <2 x float> } @_ZNK8ImGuizmo5vec_tmlEf(ptr noundef nonnull align 4 dereferenceable(16) %20, float noundef %69)
  %110 = extractvalue { <2 x float>, <2 x float> } %109, 0
  store <2 x float> %110, ptr %19, align 8
  %111 = extractvalue { <2 x float>, <2 x float> } %109, 1
  store <2 x float> %111, ptr %45, align 8
  call void @_ZN8ImGuizmo5vec_t14TransformPointERKS0_RKNS_8matrix_tE(ptr noundef nonnull align 4 dereferenceable(16) %16, ptr noundef nonnull align 4 dereferenceable(16) %19, ptr noundef nonnull align 4 dereferenceable(64) %8)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #8
  %112 = call noundef float @_ZN8ImGuizmoL15DistanceToPlaneERKNS_5vec_tES2_(ptr noundef nonnull align 4 dereferenceable(16) %15, ptr noundef nonnull align 4 dereferenceable(16) %6)
  %113 = fcmp uge float %112, 0.000000e+00
  br i1 %113, label %114, label %.loopexit

114:                                              ; preds = %61
  %115 = call noundef float @_ZN8ImGuizmoL15DistanceToPlaneERKNS_5vec_tES2_(ptr noundef nonnull align 4 dereferenceable(16) %15, ptr noundef nonnull align 4 dereferenceable(16) %50)
  %116 = fcmp uge float %115, 0.000000e+00
  br i1 %116, label %117, label %.loopexit

117:                                              ; preds = %114
  %118 = call noundef float @_ZN8ImGuizmoL15DistanceToPlaneERKNS_5vec_tES2_(ptr noundef nonnull align 4 dereferenceable(16) %15, ptr noundef nonnull align 4 dereferenceable(16) %51)
  %119 = fcmp uge float %118, 0.000000e+00
  br i1 %119, label %120, label %.loopexit

120:                                              ; preds = %117
  %121 = call noundef float @_ZN8ImGuizmoL15DistanceToPlaneERKNS_5vec_tES2_(ptr noundef nonnull align 4 dereferenceable(16) %15, ptr noundef nonnull align 4 dereferenceable(16) %52)
  %122 = fcmp uge float %121, 0.000000e+00
  br i1 %122, label %123, label %.loopexit

123:                                              ; preds = %120
  %124 = call noundef float @_ZN8ImGuizmoL15DistanceToPlaneERKNS_5vec_tES2_(ptr noundef nonnull align 4 dereferenceable(16) %15, ptr noundef nonnull align 4 dereferenceable(16) %53)
  %125 = fcmp uge float %124, 0.000000e+00
  br i1 %125, label %126, label %.loopexit

126:                                              ; preds = %123
  %127 = call noundef float @_ZN8ImGuizmoL15DistanceToPlaneERKNS_5vec_tES2_(ptr noundef nonnull align 4 dereferenceable(16) %15, ptr noundef nonnull align 4 dereferenceable(16) %54)
  %128 = fcmp uge float %127, 0.000000e+00
  br i1 %128, label %.critedge.loopexit, label %.loopexit

.critedge.loopexit:                               ; preds = %126
  %129 = sext i32 %.174 to i64
  %130 = getelementptr inbounds %struct.CubeFace, ptr %29, i64 %129
  %131 = getelementptr inbounds i8, ptr %130, i64 4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %21) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %22) #8
  %132 = call { <2 x float>, <2 x float> } @_ZNK8ImGuizmo5vec_tmlEf(ptr noundef nonnull align 4 dereferenceable(16) %10, float noundef 5.000000e-01)
  %133 = extractvalue { <2 x float>, <2 x float> } %132, 0
  store <2 x float> %133, ptr %22, align 8
  %134 = extractvalue { <2 x float>, <2 x float> } %132, 1
  store <2 x float> %134, ptr %46, align 8
  %135 = call { <2 x float>, <2 x float> } @_ZNK8ImGuizmo5vec_tmlEf(ptr noundef nonnull align 4 dereferenceable(16) %22, float noundef %69)
  %136 = extractvalue { <2 x float>, <2 x float> } %135, 0
  store <2 x float> %136, ptr %21, align 8
  %137 = extractvalue { <2 x float>, <2 x float> } %135, 1
  store <2 x float> %137, ptr %47, align 8
  %138 = load float, ptr getelementptr inbounds (i8, ptr @_ZN8ImGuizmoL8gContextE, i64 996), align 4, !tbaa !7
  %139 = load float, ptr getelementptr inbounds (i8, ptr @_ZN8ImGuizmoL8gContextE, i64 1000), align 8, !tbaa !20
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %23, float noundef %138, float noundef %139)
  %140 = load float, ptr getelementptr inbounds (i8, ptr @_ZN8ImGuizmoL8gContextE, i64 1004), align 4, !tbaa !21
  %141 = load float, ptr getelementptr inbounds (i8, ptr @_ZN8ImGuizmoL8gContextE, i64 1008), align 8, !tbaa !22
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %24, float noundef %140, float noundef %141)
  %142 = load <2 x float>, ptr %23, align 8
  %143 = load <2 x float>, ptr %24, align 8
  %144 = call <2 x float> @_ZN8ImGuizmoL10worldToPosERKNS_5vec_tERKNS_8matrix_tE6ImVec2S6_(ptr noundef nonnull align 4 dereferenceable(16) %21, ptr noundef nonnull align 4 dereferenceable(64) %8, <2 x float> %142, <2 x float> %143)
  store <2 x float> %144, ptr %131, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %22) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %21) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %22) #8
  %145 = call { <2 x float>, <2 x float> } @_ZNK8ImGuizmo5vec_tmlEf(ptr noundef nonnull align 4 dereferenceable(16) %33, float noundef 5.000000e-01)
  %146 = extractvalue { <2 x float>, <2 x float> } %145, 0
  store <2 x float> %146, ptr %22, align 8
  %147 = extractvalue { <2 x float>, <2 x float> } %145, 1
  store <2 x float> %147, ptr %46, align 8
  %148 = call { <2 x float>, <2 x float> } @_ZNK8ImGuizmo5vec_tmlEf(ptr noundef nonnull align 4 dereferenceable(16) %22, float noundef %69)
  %149 = extractvalue { <2 x float>, <2 x float> } %148, 0
  store <2 x float> %149, ptr %21, align 8
  %150 = extractvalue { <2 x float>, <2 x float> } %148, 1
  store <2 x float> %150, ptr %47, align 8
  %151 = load float, ptr getelementptr inbounds (i8, ptr @_ZN8ImGuizmoL8gContextE, i64 996), align 4, !tbaa !7
  %152 = load float, ptr getelementptr inbounds (i8, ptr @_ZN8ImGuizmoL8gContextE, i64 1000), align 8, !tbaa !20
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %23, float noundef %151, float noundef %152)
  %153 = load float, ptr getelementptr inbounds (i8, ptr @_ZN8ImGuizmoL8gContextE, i64 1004), align 4, !tbaa !21
  %154 = load float, ptr getelementptr inbounds (i8, ptr @_ZN8ImGuizmoL8gContextE, i64 1008), align 8, !tbaa !22
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %24, float noundef %153, float noundef %154)
  %155 = load <2 x float>, ptr %23, align 8
  %156 = load <2 x float>, ptr %24, align 8
  %157 = call <2 x float> @_ZN8ImGuizmoL10worldToPosERKNS_5vec_tERKNS_8matrix_tE6ImVec2S6_(ptr noundef nonnull align 4 dereferenceable(16) %21, ptr noundef nonnull align 4 dereferenceable(64) %8, <2 x float> %155, <2 x float> %156)
  %158 = getelementptr inbounds i8, ptr %130, i64 12
  store <2 x float> %157, ptr %158, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %22) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %21) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %22) #8
  %159 = call { <2 x float>, <2 x float> } @_ZNK8ImGuizmo5vec_tmlEf(ptr noundef nonnull align 4 dereferenceable(16) %36, float noundef 5.000000e-01)
  %160 = extractvalue { <2 x float>, <2 x float> } %159, 0
  store <2 x float> %160, ptr %22, align 8
  %161 = extractvalue { <2 x float>, <2 x float> } %159, 1
  store <2 x float> %161, ptr %46, align 8
  %162 = call { <2 x float>, <2 x float> } @_ZNK8ImGuizmo5vec_tmlEf(ptr noundef nonnull align 4 dereferenceable(16) %22, float noundef %69)
  %163 = extractvalue { <2 x float>, <2 x float> } %162, 0
  store <2 x float> %163, ptr %21, align 8
  %164 = extractvalue { <2 x float>, <2 x float> } %162, 1
  store <2 x float> %164, ptr %47, align 8
  %165 = load float, ptr getelementptr inbounds (i8, ptr @_ZN8ImGuizmoL8gContextE, i64 996), align 4, !tbaa !7
  %166 = load float, ptr getelementptr inbounds (i8, ptr @_ZN8ImGuizmoL8gContextE, i64 1000), align 8, !tbaa !20
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %23, float noundef %165, float noundef %166)
  %167 = load float, ptr getelementptr inbounds (i8, ptr @_ZN8ImGuizmoL8gContextE, i64 1004), align 4, !tbaa !21
  %168 = load float, ptr getelementptr inbounds (i8, ptr @_ZN8ImGuizmoL8gContextE, i64 1008), align 8, !tbaa !22
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %24, float noundef %167, float noundef %168)
  %169 = load <2 x float>, ptr %23, align 8
  %170 = load <2 x float>, ptr %24, align 8
  %171 = call <2 x float> @_ZN8ImGuizmoL10worldToPosERKNS_5vec_tERKNS_8matrix_tE6ImVec2S6_(ptr noundef nonnull align 4 dereferenceable(16) %21, ptr noundef nonnull align 4 dereferenceable(64) %8, <2 x float> %169, <2 x float> %170)
  %172 = getelementptr inbounds i8, ptr %130, i64 20
  store <2 x float> %171, ptr %172, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %22) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %21) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %22) #8
  %173 = call { <2 x float>, <2 x float> } @_ZNK8ImGuizmo5vec_tmlEf(ptr noundef nonnull align 4 dereferenceable(16) %39, float noundef 5.000000e-01)
  %174 = extractvalue { <2 x float>, <2 x float> } %173, 0
  store <2 x float> %174, ptr %22, align 8
  %175 = extractvalue { <2 x float>, <2 x float> } %173, 1
  store <2 x float> %175, ptr %46, align 8
  %176 = call { <2 x float>, <2 x float> } @_ZNK8ImGuizmo5vec_tmlEf(ptr noundef nonnull align 4 dereferenceable(16) %22, float noundef %69)
  %177 = extractvalue { <2 x float>, <2 x float> } %176, 0
  store <2 x float> %177, ptr %21, align 8
  %178 = extractvalue { <2 x float>, <2 x float> } %176, 1
  store <2 x float> %178, ptr %47, align 8
  %179 = load float, ptr getelementptr inbounds (i8, ptr @_ZN8ImGuizmoL8gContextE, i64 996), align 4, !tbaa !7
  %180 = load float, ptr getelementptr inbounds (i8, ptr @_ZN8ImGuizmoL8gContextE, i64 1000), align 8, !tbaa !20
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %23, float noundef %179, float noundef %180)
  %181 = load float, ptr getelementptr inbounds (i8, ptr @_ZN8ImGuizmoL8gContextE, i64 1004), align 4, !tbaa !21
  %182 = load float, ptr getelementptr inbounds (i8, ptr @_ZN8ImGuizmoL8gContextE, i64 1008), align 8, !tbaa !22
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %24, float noundef %181, float noundef %182)
  %183 = load <2 x float>, ptr %23, align 8
  %184 = load <2 x float>, ptr %24, align 8
  %185 = call <2 x float> @_ZN8ImGuizmoL10worldToPosERKNS_5vec_tERKNS_8matrix_tE6ImVec2S6_(ptr noundef nonnull align 4 dereferenceable(16) %21, ptr noundef nonnull align 4 dereferenceable(64) %8, <2 x float> %183, <2 x float> %184)
  %186 = getelementptr inbounds i8, ptr %130, i64 28
  store <2 x float> %185, ptr %186, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %22) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #8
  %187 = getelementptr inbounds [3 x i32], ptr @_ZN8ImGuizmoL14directionColorE, i64 0, i64 %70
  %188 = load i32, ptr %187, align 4, !tbaa !23
  %189 = or i32 %188, 8421504
  %190 = getelementptr inbounds i8, ptr %130, i64 36
  store i32 %189, ptr %190, align 4, !tbaa !24
  %191 = load float, ptr %48, align 4, !tbaa !26
  %192 = load float, ptr %49, align 4, !tbaa !27
  %193 = fdiv float %191, %192
  store float %193, ptr %130, align 8, !tbaa !28
  %194 = add nsw i32 %.174, 1
  br label %.loopexit

.loopexit:                                        ; preds = %61, %114, %117, %120, %123, %126, %.critedge.loopexit
  %.2 = phi i32 [ %194, %.critedge.loopexit ], [ %.174, %126 ], [ %.174, %123 ], [ %.174, %120 ], [ %.174, %117 ], [ %.174, %114 ], [ %.174, %61 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %10) #8
  %195 = add nuw nsw i32 %.06673, 1
  %exitcond.not = icmp eq i32 %195, 6
  br i1 %exitcond.not, label %60, label %61, !llvm.loop !29

._crit_edge80:                                    ; preds = %.lr.ph79, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %5) #8
  ret void

.lr.ph79:                                         ; preds = %.lr.ph79.preheader, %.lr.ph79
  %indvars.iv85 = phi i64 [ 0, %.lr.ph79.preheader ], [ %indvars.iv.next86, %.lr.ph79 ]
  %196 = getelementptr inbounds %struct.CubeFace, ptr %29, i64 %indvars.iv85
  %197 = load ptr, ptr @_ZN8ImGuizmoL8gContextE, align 8, !tbaa !30
  %198 = getelementptr inbounds i8, ptr %196, i64 4
  %199 = getelementptr inbounds i8, ptr %196, i64 36
  %200 = load i32, ptr %199, align 4, !tbaa !24
  call void @_ZN10ImDrawList19AddConvexPolyFilledEPK6ImVec2ij(ptr noundef nonnull align 8 dereferenceable(196) %197, ptr noundef nonnull %198, i32 noundef 4, i32 noundef %200)
  %indvars.iv.next86 = add nuw nsw i64 %indvars.iv85, 1
  %exitcond89.not = icmp eq i64 %indvars.iv.next86, %wide.trip.count88
  br i1 %exitcond89.not, label %._crit_edge80, label %.lr.ph79, !llvm.loop !31
}

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef float @_ZN8ImGuizmoL15DistanceToPlaneERKNS_5vec_tES2_(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden <2 x float> @_ZN8ImGuizmoL10worldToPosERKNS_5vec_tERKNS_8matrix_tE6ImVec2S6_(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(64), <2 x float>, <2 x float>) local_unnamed_addr #4

; Function Attrs: nofree
declare void @qsort(ptr noundef, i64 noundef, i64 noundef, ptr nocapture noundef) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef ptr @"_ZZN8ImGuizmo9DrawCubesEPKfS1_S1_iENK3$_0cvPFiPKvS4_EEv"(ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #6 align 2

declare void @_ZN10ImDrawList19AddConvexPolyFilledEPK6ImVec2ij(ptr noundef nonnull align 8 dereferenceable(196), ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #7

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind 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 = { 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 #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = { nofree "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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { "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 = { 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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !15, i64 996}
!8 = !{!"_ZTSN8ImGuizmo7ContextE", !9, i64 0, !12, i64 8, !13, i64 12, !13, i64 76, !13, i64 140, !13, i64 204, !13, i64 268, !13, i64 332, !13, i64 396, !13, i64 460, !14, i64 524, !14, i64 540, !14, i64 556, !14, i64 572, !14, i64 588, !14, i64 604, !14, i64 620, !15, i64 636, !16, i64 640, !16, i64 648, !16, i64 656, !15, i64 664, !14, i64 668, !17, i64 684, !17, i64 685, !17, i64 686, !14, i64 688, !14, i64 704, !14, i64 720, !14, i64 736, !14, i64 752, !15, i64 768, !15, i64 772, !14, i64 776, !14, i64 792, !14, i64 808, !15, i64 824, !10, i64 828, !10, i64 831, !10, i64 836, !14, i64 848, !14, i64 864, !14, i64 880, !14, i64 896, !18, i64 912, !10, i64 916, !17, i64 924, !13, i64 928, !18, i64 992, !15, i64 996, !15, i64 1000, !15, i64 1004, !15, i64 1008, !15, i64 1012, !15, i64 1016, !15, i64 1020, !17, i64 1024, !18, i64 1028, !18, i64 1032, !19, i64 1036, !17, i64 1040, !15, i64 1044}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"_ZTSN8ImGuizmo4MODEE", !10, i64 0}
!13 = !{!"_ZTSN8ImGuizmo8matrix_tE", !10, i64 0}
!14 = !{!"_ZTSN8ImGuizmo5vec_tE", !15, i64 0, !15, i64 4, !15, i64 8, !15, i64 12}
!15 = !{!"float", !10, i64 0}
!16 = !{!"_ZTS6ImVec2", !15, i64 0, !15, i64 4}
!17 = !{!"bool", !10, i64 0}
!18 = !{!"int", !10, i64 0}
!19 = !{!"_ZTSN8ImGuizmo9OPERATIONE", !10, i64 0}
!20 = !{!8, !15, i64 1000}
!21 = !{!8, !15, i64 1004}
!22 = !{!8, !15, i64 1008}
!23 = !{!18, !18, i64 0}
!24 = !{!25, !18, i64 36}
!25 = !{!"_ZTSZN8ImGuizmo9DrawCubesEPKfS1_S1_iE8CubeFace", !15, i64 0, !10, i64 4, !18, i64 36}
!26 = !{!14, !15, i64 8}
!27 = !{!14, !15, i64 12}
!28 = !{!25, !15, i64 0}
!29 = distinct !{!29, !6}
!30 = !{!8, !9, i64 0}
!31 = distinct !{!31, !6}


; Effective O3 passes: ConstraintEliminationPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass