; LLVM IR from mateeeeeee/Adria-DX11 :: ThirdParty/ImGui/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, %"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 }
%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_S4_S4_S4_(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 55), 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 %101

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 45), 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 i32, ptr %13, align 4, !tbaa !9
  switch i32 %53, label %72 [
    i32 1, label %54
    i32 0, label %60
    i32 2, label %66
    i32 3, label %72
  ]

54:                                               ; preds = %52
  %55 = load ptr, ptr %15, align 8, !tbaa !5
  %56 = load ptr, ptr %16, align 8, !tbaa !5
  %57 = load ptr, ptr %17, align 8, !tbaa !5
  %58 = call noundef zeroext i1 @_ZN8ImGuizmoL14HandleRotationEPfS0_RiS0_(ptr noundef %55, ptr noundef %56, ptr noundef nonnull align 4 dereferenceable(4) %23, ptr noundef %57)
  %59 = zext i1 %58 to i8
  store i8 %59, ptr %24, align 1, !tbaa !25
  br label %72

60:                                               ; preds = %52
  %61 = load ptr, ptr %15, align 8, !tbaa !5
  %62 = load ptr, ptr %16, align 8, !tbaa !5
  %63 = load ptr, ptr %17, align 8, !tbaa !5
  %64 = call noundef zeroext i1 @_ZN8ImGuizmoL17HandleTranslationEPfS0_RiS0_(ptr noundef %61, ptr noundef %62, ptr noundef nonnull align 4 dereferenceable(4) %23, ptr noundef %63)
  %65 = zext i1 %64 to i8
  store i8 %65, ptr %24, align 1, !tbaa !25
  br label %72

66:                                               ; preds = %52
  %67 = load ptr, ptr %15, align 8, !tbaa !5
  %68 = load ptr, ptr %16, align 8, !tbaa !5
  %69 = load ptr, ptr %17, align 8, !tbaa !5
  %70 = call noundef zeroext i1 @_ZN8ImGuizmoL11HandleScaleEPfS0_RiS0_(ptr noundef %67, ptr noundef %68, ptr noundef nonnull align 4 dereferenceable(4) %23, ptr noundef %69)
  %71 = zext i1 %70 to i8
  store i8 %71, ptr %24, align 1, !tbaa !25
  br label %72

72:                                               ; preds = %66, %60, %54, %52, %52
  br label %73

73:                                               ; preds = %72, %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 @_ZN8ImGuizmoL24HandleAndDrawLocalBoundsEPfPNS_8matrix_tES0_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 58), align 4, !tbaa !29
  %87 = load i8, ptr getelementptr inbounds (%"struct.ImGuizmo::Context", ptr @_ZN8ImGuizmoL8gContextE, i32 0, i32 45), align 4, !tbaa !27, !range !21, !noundef !22
  %88 = trunc i8 %87 to i1
  br i1 %88, label %98, label %89

89:                                               ; preds = %85
  %90 = load i32, ptr %13, align 4, !tbaa !9
  switch i32 %90, label %97 [
    i32 1, label %91
    i32 0, label %93
    i32 2, label %95
    i32 3, label %97
  ]

91:                                               ; preds = %89
  %92 = load i32, ptr %23, align 4, !tbaa !24
  call void @_ZN8ImGuizmoL17DrawRotationGizmoEi(i32 noundef %92)
  br label %97

93:                                               ; preds = %89
  %94 = load i32, ptr %23, align 4, !tbaa !24
  call void @_ZN8ImGuizmoL20DrawTranslationGizmoEi(i32 noundef %94)
  br label %97

95:                                               ; preds = %89
  %96 = load i32, ptr %23, align 4, !tbaa !24
  call void @_ZN8ImGuizmoL14DrawScaleGizmoEi(i32 noundef %96)
  br label %97

97:                                               ; preds = %95, %93, %91, %89, %89
  br label %98

98:                                               ; preds = %97, %85
  %99 = load i8, ptr %24, align 1, !tbaa !25, !range !21, !noundef !22
  %100 = trunc i8 %99 to i1
  store i1 %100, 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 %101

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

; 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 @_ZN8ImGuizmoL14HandleRotationEPfS0_RiS0_(ptr noundef, ptr noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef) #3

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN8ImGuizmoL14DrawScaleGizmoEi(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, !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}
!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, %"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 }
%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_S4_S4_S4_(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)
  %.not29 = icmp eq ptr %5, null
  br i1 %.not29, 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 %53

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 %37

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 %37, label %30

30:                                               ; preds = %27
  switch i32 %2, label %37 [
    i32 1, label %31
    i32 0, label %33
    i32 2, label %35
  ]

31:                                               ; preds = %30
  %32 = call noundef zeroext i1 @_ZN8ImGuizmoL14HandleRotationEPfS0_RiS0_(ptr noundef %4, ptr noundef %5, ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef %6)
  br label %37

33:                                               ; preds = %30
  %34 = call noundef zeroext i1 @_ZN8ImGuizmoL17HandleTranslationEPfS0_RiS0_(ptr noundef %4, ptr noundef %5, ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef %6)
  br label %37

35:                                               ; preds = %30
  %36 = call noundef zeroext i1 @_ZN8ImGuizmoL11HandleScaleEPfS0_RiS0_(ptr noundef %4, ptr noundef %5, ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef %6)
  br label %37

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

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

41:                                               ; preds = %38
  call void @_ZN8ImGuizmoL24HandleAndDrawLocalBoundsEPfPNS_8matrix_tES0_NS_9OPERATIONE(ptr noundef nonnull %7, ptr noundef %4, ptr noundef %8, i32 noundef %2)
  br label %42

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

45:                                               ; preds = %42
  switch i32 %2, label %52 [
    i32 1, label %46
    i32 0, label %48
    i32 2, label %50
  ]

46:                                               ; preds = %45
  %47 = load i32, ptr %12, align 4, !tbaa !20
  call void @_ZN8ImGuizmoL17DrawRotationGizmoEi(i32 noundef %47)
  br label %52

48:                                               ; preds = %45
  %49 = load i32, ptr %12, align 4, !tbaa !20
  call void @_ZN8ImGuizmoL20DrawTranslationGizmoEi(i32 noundef %49)
  br label %52

50:                                               ; preds = %45
  %51 = load i32, ptr %12, align 4, !tbaa !20
  call void @_ZN8ImGuizmoL14DrawScaleGizmoEi(i32 noundef %51)
  br label %52

52:                                               ; preds = %45, %46, %48, %50, %42
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #4
  br label %53

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

; 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 @_ZN8ImGuizmoL14HandleRotationEPfS0_RiS0_(ptr noundef, ptr noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef) local_unnamed_addr #3

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN8ImGuizmoL14DrawScaleGizmoEi(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, !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}
!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