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

; 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]] }

@_ZN8ImGuizmoL8gContextE = external hidden global %"struct.ImGuizmo::Context", align 8

; 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> } @_ZN8ImGuizmo8makeVectEffff(float noundef, float noundef, float noundef, float noundef) #1

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN8ImGuizmo10ManipulateEPKfS1_NS_9OPERATIONENS_4MODEEPfS4_S1_S1_S1_(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8) #3 {
  %10 = alloca i1, align 1
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca %"struct.ImGuizmo::vec_t", align 4
  %21 = alloca %"struct.ImGuizmo::vec_t", align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i8, align 1
  store ptr %0, ptr %11, align 8, !tbaa !5
  store ptr %1, ptr %12, align 8, !tbaa !5
  store i32 %2, ptr %13, align 4, !tbaa !9
  store i32 %3, ptr %14, align 4, !tbaa !11
  store ptr %4, ptr %15, align 8, !tbaa !5
  store ptr %5, ptr %16, align 8, !tbaa !5
  store ptr %6, ptr %17, align 8, !tbaa !5
  store ptr %7, ptr %18, align 8, !tbaa !5
  store ptr %8, ptr %19, align 8, !tbaa !5
  %25 = load ptr, ptr %11, align 8, !tbaa !5
  %26 = load ptr, ptr %12, align 8, !tbaa !5
  %27 = load ptr, ptr %15, align 8, !tbaa !5
  %28 = load i32, ptr %14, align 4, !tbaa !11
  call void @_ZN8ImGuizmoL14ComputeContextEPKfS1_PfNS_4MODEE(ptr noundef %25, ptr noundef %26, ptr noundef %27, i32 noundef %28)
  %29 = load ptr, ptr %16, align 8, !tbaa !5
  %30 = icmp ne ptr %29, null
  br i1 %30, label %31, label %33

31:                                               ; preds = %9
  %32 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN8ImGuizmo8matrix_t13SetToIdentityEv(ptr noundef nonnull align 4 dereferenceable(64) %32)
  br label %33

33:                                               ; preds = %31, %9
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #4
  %34 = call { <2 x float>, <2 x float> } @_ZN8ImGuizmo8makeVectEffff(float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %35 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %21, i32 0, i32 0
  %36 = extractvalue { <2 x float>, <2 x float> } %34, 0
  store <2 x float> %36, ptr %35, align 4
  %37 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %21, i32 0, i32 1
  %38 = extractvalue { <2 x float>, <2 x float> } %34, 1
  store <2 x float> %38, ptr %37, align 4
  call void @_ZN8ImGuizmo5vec_t14TransformPointERKS0_RKNS_8matrix_tE(ptr noundef nonnull align 4 dereferenceable(16) %20, ptr noundef nonnull align 4 dereferenceable(16) %21, ptr noundef nonnull align 4 dereferenceable(64) getelementptr inbounds (%"struct.ImGuizmo::Context", ptr @_ZN8ImGuizmoL8gContextE, i32 0, i32 8))
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #4
  %39 = load i8, ptr getelementptr inbounds (%"struct.ImGuizmo::Context", ptr @_ZN8ImGuizmoL8gContextE, i32 0, i32 56), align 8, !tbaa !13, !range !21, !noundef !22
  %40 = trunc i8 %39 to i1
  br i1 %40, label %46, label %41

41:                                               ; preds = %33
  %42 = getelementptr inbounds %"struct.ImGuizmo::vec_t", ptr %20, i32 0, i32 2
  %43 = load float, ptr %42, align 4, !tbaa !23
  %44 = fcmp olt float %43, 0x3F50624DE0000000
  br i1 %44, label %45, label %46

45:                                               ; preds = %41
  store i1 false, ptr %10, align 1
  store i32 1, ptr %22, align 4
  br label %99

46:                                               ; preds = %41, %33
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #4
  store i32 0, ptr %23, align 4, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #4
  store i8 0, ptr %24, align 1, !tbaa !25
  %47 = load i8, ptr getelementptr inbounds (%"struct.ImGuizmo::Context", ptr @_ZN8ImGuizmoL8gContextE, i32 0, i32 24), align 1, !tbaa !26, !range !21, !noundef !22
  %48 = trunc i8 %47 to i1
  br i1 %48, label %49, label %74

49:                                               ; preds = %46
  %50 = load i8, ptr getelementptr inbounds (%"struct.ImGuizmo::Context", ptr @_ZN8ImGuizmoL8gContextE, i32 0, i32 46), align 4, !tbaa !27, !range !21, !noundef !22
  %51 = trunc i8 %50 to i1
  br i1 %51, label %73, label %52

52:                                               ; preds = %49
  %53 = load ptr, ptr %15, align 8, !tbaa !5
  %54 = load ptr, ptr %16, align 8, !tbaa !5
  %55 = load i32, ptr %13, align 4, !tbaa !9
  %56 = load ptr, ptr %17, align 8, !tbaa !5
  %57 = call noundef zeroext i1 @_ZN8ImGuizmoL17HandleTranslationEPfS0_NS_9OPERATIONERiPKf(ptr noundef %53, ptr noundef %54, i32 noundef %55, ptr noundef nonnull align 4 dereferenceable(4) %23, ptr noundef %56)
  br i1 %57, label %70, label %58

58:                                               ; preds = %52
  %59 = load ptr, ptr %15, align 8, !tbaa !5
  %60 = load ptr, ptr %16, align 8, !tbaa !5
  %61 = load i32, ptr %13, align 4, !tbaa !9
  %62 = load ptr, ptr %17, align 8, !tbaa !5
  %63 = call noundef zeroext i1 @_ZN8ImGuizmoL11HandleScaleEPfS0_NS_9OPERATIONERiPKf(ptr noundef %59, ptr noundef %60, i32 noundef %61, ptr noundef nonnull align 4 dereferenceable(4) %23, ptr noundef %62)
  br i1 %63, label %70, label %64

64:                                               ; preds = %58
  %65 = load ptr, ptr %15, align 8, !tbaa !5
  %66 = load ptr, ptr %16, align 8, !tbaa !5
  %67 = load i32, ptr %13, align 4, !tbaa !9
  %68 = load ptr, ptr %17, align 8, !tbaa !5
  %69 = call noundef zeroext i1 @_ZN8ImGuizmoL14HandleRotationEPfS0_NS_9OPERATIONERiPKf(ptr noundef %65, ptr noundef %66, i32 noundef %67, ptr noundef nonnull align 4 dereferenceable(4) %23, ptr noundef %68)
  br label %70

70:                                               ; preds = %64, %58, %52
  %71 = phi i1 [ true, %58 ], [ true, %52 ], [ %69, %64 ]
  %72 = zext i1 %71 to i8
  store i8 %72, ptr %24, align 1, !tbaa !25
  br label %73

73:                                               ; preds = %70, %49
  br label %74

74:                                               ; preds = %73, %46
  %75 = load ptr, ptr %18, align 8, !tbaa !5
  %76 = icmp ne ptr %75, null
  br i1 %76, label %77, label %85

77:                                               ; preds = %74
  %78 = load i8, ptr getelementptr inbounds (%"struct.ImGuizmo::Context", ptr @_ZN8ImGuizmoL8gContextE, i32 0, i32 23), align 4, !tbaa !28, !range !21, !noundef !22
  %79 = trunc i8 %78 to i1
  br i1 %79, label %85, label %80

80:                                               ; preds = %77
  %81 = load ptr, ptr %18, align 8, !tbaa !5
  %82 = load ptr, ptr %15, align 8, !tbaa !5
  %83 = load ptr, ptr %19, align 8, !tbaa !5
  %84 = load i32, ptr %13, align 4, !tbaa !9
  call void @_ZN8ImGuizmoL24HandleAndDrawLocalBoundsEPKfPNS_8matrix_tES1_NS_9OPERATIONE(ptr noundef %81, ptr noundef %82, ptr noundef %83, i32 noundef %84)
  br label %85

85:                                               ; preds = %80, %77, %74
  %86 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %86, ptr getelementptr inbounds (%"struct.ImGuizmo::Context", ptr @_ZN8ImGuizmoL8gContextE, i32 0, i32 59), align 4, !tbaa !29
  %87 = load i8, ptr getelementptr inbounds (%"struct.ImGuizmo::Context", ptr @_ZN8ImGuizmoL8gContextE, i32 0, i32 46), align 4, !tbaa !27, !range !21, !noundef !22
  %88 = trunc i8 %87 to i1
  br i1 %88, label %96, label %89

89:                                               ; preds = %85
  %90 = load i32, ptr %13, align 4, !tbaa !9
  %91 = load i32, ptr %23, align 4, !tbaa !24
  call void @_ZN8ImGuizmoL17DrawRotationGizmoENS_9OPERATIONEi(i32 noundef %90, i32 noundef %91)
  %92 = load i32, ptr %13, align 4, !tbaa !9
  %93 = load i32, ptr %23, align 4, !tbaa !24
  call void @_ZN8ImGuizmoL20DrawTranslationGizmoENS_9OPERATIONEi(i32 noundef %92, i32 noundef %93)
  %94 = load i32, ptr %13, align 4, !tbaa !9
  %95 = load i32, ptr %23, align 4, !tbaa !24
  call void @_ZN8ImGuizmoL14DrawScaleGizmoENS_9OPERATIONEi(i32 noundef %94, i32 noundef %95)
  br label %96

96:                                               ; preds = %89, %85
  %97 = load i8, ptr %24, align 1, !tbaa !25, !range !21, !noundef !22
  %98 = trunc i8 %97 to i1
  store i1 %98, ptr %10, align 1
  store i32 1, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  br label %99

99:                                               ; preds = %96, %45
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #4
  %100 = load i1, ptr %10, align 1
  ret i1 %100
}

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN8ImGuizmoL14ComputeContextEPKfS1_PfNS_4MODEE(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #3

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

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN8ImGuizmoL17HandleTranslationEPfS0_NS_9OPERATIONERiPKf(ptr noundef, ptr noundef, i32 noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN8ImGuizmoL11HandleScaleEPfS0_NS_9OPERATIONERiPKf(ptr noundef, ptr noundef, i32 noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN8ImGuizmoL14HandleRotationEPfS0_NS_9OPERATIONERiPKf(ptr noundef, ptr noundef, i32 noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN8ImGuizmoL24HandleAndDrawLocalBoundsEPKfPNS_8matrix_tES1_NS_9OPERATIONE(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #3

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN8ImGuizmoL17DrawRotationGizmoENS_9OPERATIONEi(i32 noundef, i32 noundef) #3

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN8ImGuizmoL20DrawTranslationGizmoENS_9OPERATIONEi(i32 noundef, i32 noundef) #3

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN8ImGuizmoL14DrawScaleGizmoENS_9OPERATIONEi(i32 noundef, i32 noundef) #3

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


; 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]] }

@_ZN8ImGuizmoL8gContextE = external hidden global %"struct.ImGuizmo::Context", align 8

; 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> } @_ZN8ImGuizmo8makeVectEffff(float noundef, float noundef, float noundef, float noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN8ImGuizmo10ManipulateEPKfS1_NS_9OPERATIONENS_4MODEEPfS4_S1_S1_S1_(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8) local_unnamed_addr #3 {
  %10 = alloca %"struct.ImGuizmo::vec_t", align 4
  %11 = alloca %"struct.ImGuizmo::vec_t", align 8
  %12 = alloca i32, align 4
  tail call void @_ZN8ImGuizmoL14ComputeContextEPKfS1_PfNS_4MODEE(ptr noundef %0, ptr noundef %1, ptr noundef %4, i32 noundef %3)
  %.not33 = icmp eq ptr %5, null
  br i1 %.not33, label %14, label %13

13:                                               ; preds = %9
  tail call void @_ZN8ImGuizmo8matrix_t13SetToIdentityEv(ptr noundef nonnull align 4 dereferenceable(64) %5)
  br label %14

14:                                               ; preds = %13, %9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #4
  %15 = tail call { <2 x float>, <2 x float> } @_ZN8ImGuizmo8makeVectEffff(float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %16 = extractvalue { <2 x float>, <2 x float> } %15, 0
  store <2 x float> %16, ptr %11, align 8
  %17 = getelementptr inbounds i8, ptr %11, i64 8
  %18 = extractvalue { <2 x float>, <2 x float> } %15, 1
  store <2 x float> %18, ptr %17, align 8
  call void @_ZN8ImGuizmo5vec_t14TransformPointERKS0_RKNS_8matrix_tE(ptr noundef nonnull align 4 dereferenceable(16) %10, ptr noundef nonnull align 4 dereferenceable(16) %11, ptr noundef nonnull align 4 dereferenceable(64) getelementptr inbounds (i8, ptr @_ZN8ImGuizmoL8gContextE, i64 396))
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #4
  %19 = load i8, ptr getelementptr inbounds (i8, ptr @_ZN8ImGuizmoL8gContextE, i64 1024), align 8, !tbaa !5, !range !18, !noundef !19
  %20 = trunc nuw i8 %19 to i1
  %21 = getelementptr inbounds i8, ptr %10, i64 8
  %22 = load float, ptr %21, align 4
  %23 = fcmp uge float %22, 0x3F50624DE0000000
  %or.cond.not = select i1 %20, i1 true, i1 %23
  br i1 %or.cond.not, label %24, label %49

24:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #4
  store i32 0, ptr %12, align 4, !tbaa !20
  %25 = load i8, ptr getelementptr inbounds (i8, ptr @_ZN8ImGuizmoL8gContextE, i64 685), align 1, !tbaa !21, !range !18, !noundef !19
  %26 = trunc nuw i8 %25 to i1
  br i1 %26, label %27, label %36

27:                                               ; preds = %24
  %28 = load i8, ptr getelementptr inbounds (i8, ptr @_ZN8ImGuizmoL8gContextE, i64 924), align 4, !tbaa !22, !range !18, !noundef !19
  %29 = trunc nuw i8 %28 to i1
  br i1 %29, label %36, label %30

30:                                               ; preds = %27
  %31 = call noundef zeroext i1 @_ZN8ImGuizmoL17HandleTranslationEPfS0_NS_9OPERATIONERiPKf(ptr noundef %4, ptr noundef %5, i32 noundef %2, ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef %6)
  br i1 %31, label %36, label %32

32:                                               ; preds = %30
  %33 = call noundef zeroext i1 @_ZN8ImGuizmoL11HandleScaleEPfS0_NS_9OPERATIONERiPKf(ptr noundef %4, ptr noundef %5, i32 noundef %2, ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef %6)
  br i1 %33, label %36, label %34

34:                                               ; preds = %32
  %35 = call noundef zeroext i1 @_ZN8ImGuizmoL14HandleRotationEPfS0_NS_9OPERATIONERiPKf(ptr noundef %4, ptr noundef %5, i32 noundef %2, ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef %6)
  br label %36

36:                                               ; preds = %30, %32, %34, %27, %24
  %.0 = phi i1 [ false, %27 ], [ false, %24 ], [ true, %32 ], [ true, %30 ], [ %35, %34 ]
  %.not = icmp eq ptr %7, null
  br i1 %.not, label %41, label %37

37:                                               ; preds = %36
  %38 = load i8, ptr getelementptr inbounds (i8, ptr @_ZN8ImGuizmoL8gContextE, i64 684), align 4, !tbaa !23, !range !18, !noundef !19
  %39 = trunc nuw i8 %38 to i1
  br i1 %39, label %41, label %40

40:                                               ; preds = %37
  call void @_ZN8ImGuizmoL24HandleAndDrawLocalBoundsEPKfPNS_8matrix_tES1_NS_9OPERATIONE(ptr noundef nonnull %7, ptr noundef %4, ptr noundef %8, i32 noundef %2)
  br label %41

41:                                               ; preds = %40, %37, %36
  store i32 %2, ptr getelementptr inbounds (i8, ptr @_ZN8ImGuizmoL8gContextE, i64 1036), align 4, !tbaa !24
  %42 = load i8, ptr getelementptr inbounds (i8, ptr @_ZN8ImGuizmoL8gContextE, i64 924), align 4, !tbaa !22, !range !18, !noundef !19
  %43 = trunc nuw i8 %42 to i1
  br i1 %43, label %48, label %44

44:                                               ; preds = %41
  %45 = load i32, ptr %12, align 4, !tbaa !20
  call void @_ZN8ImGuizmoL17DrawRotationGizmoENS_9OPERATIONEi(i32 noundef %2, i32 noundef %45)
  %46 = load i32, ptr %12, align 4, !tbaa !20
  call void @_ZN8ImGuizmoL20DrawTranslationGizmoENS_9OPERATIONEi(i32 noundef %2, i32 noundef %46)
  %47 = load i32, ptr %12, align 4, !tbaa !20
  call void @_ZN8ImGuizmoL14DrawScaleGizmoENS_9OPERATIONEi(i32 noundef %2, i32 noundef %47)
  br label %48

48:                                               ; preds = %44, %41
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #4
  br label %49

49:                                               ; preds = %14, %48
  %.030 = phi i1 [ %.0, %48 ], [ false, %14 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #4
  ret i1 %.030
}

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN8ImGuizmoL14ComputeContextEPKfS1_PfNS_4MODEE(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

; 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 #1 align 2

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN8ImGuizmoL17HandleTranslationEPfS0_NS_9OPERATIONERiPKf(ptr noundef, ptr noundef, i32 noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN8ImGuizmoL11HandleScaleEPfS0_NS_9OPERATIONERiPKf(ptr noundef, ptr noundef, i32 noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN8ImGuizmoL14HandleRotationEPfS0_NS_9OPERATIONERiPKf(ptr noundef, ptr noundef, i32 noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN8ImGuizmoL24HandleAndDrawLocalBoundsEPKfPNS_8matrix_tES1_NS_9OPERATIONE(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN8ImGuizmoL17DrawRotationGizmoENS_9OPERATIONEi(i32 noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN8ImGuizmoL20DrawTranslationGizmoENS_9OPERATIONEi(i32 noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN8ImGuizmoL14DrawScaleGizmoENS_9OPERATIONEi(i32 noundef, i32 noundef) local_unnamed_addr #3

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


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass