; LLVM IR from mateeeeeee/Adria-DX11 :: ThirdParty/tinygltf/examples/common/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, [2 x i8], %"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", float, [3 x i8], [3 x i8], [2 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, [3 x i8], %"struct.ImGuizmo::matrix_t", i32, float, float, float, float, float, float, [4 x i8] }>
%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 nounwind uwtable
declare dso_local { <2 x float>, <2 x float> } @_ZN8ImGuizmo8makeVectEffff(float noundef, float noundef, float noundef, float noundef) #0

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

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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 void @_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 ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca %"struct.ImGuizmo::vec_t", align 4
  %20 = alloca %"struct.ImGuizmo::vec_t", align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  store ptr %0, ptr %10, align 8, !tbaa !5
  store ptr %1, ptr %11, align 8, !tbaa !5
  store i32 %2, ptr %12, align 4, !tbaa !9
  store i32 %3, ptr %13, align 4, !tbaa !11
  store ptr %4, ptr %14, align 8, !tbaa !5
  store ptr %5, ptr %15, align 8, !tbaa !5
  store ptr %6, ptr %16, align 8, !tbaa !5
  store ptr %7, ptr %17, align 8, !tbaa !5
  store ptr %8, ptr %18, align 8, !tbaa !5
  %23 = load ptr, ptr %10, align 8, !tbaa !5
  %24 = load ptr, ptr %11, align 8, !tbaa !5
  %25 = load ptr, ptr %14, align 8, !tbaa !5
  %26 = load i32, ptr %13, align 4, !tbaa !11
  call void @_ZN8ImGuizmoL14ComputeContextEPKfS1_PfNS_4MODEE(ptr noundef %23, ptr noundef %24, ptr noundef %25, i32 noundef %26)
  %27 = load ptr, ptr %15, align 8, !tbaa !5
  %28 = icmp ne ptr %27, null
  br i1 %28, label %29, label %31

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

31:                                               ; preds = %29, %9
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #4
  %32 = 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)
  %33 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %20, i32 0, i32 0
  %34 = extractvalue { <2 x float>, <2 x float> } %32, 0
  store <2 x float> %34, ptr %33, align 4
  %35 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %20, i32 0, i32 1
  %36 = extractvalue { <2 x float>, <2 x float> } %32, 1
  store <2 x float> %36, ptr %35, align 4
  call void @_ZN8ImGuizmo5vec_t14TransformPointERKS0_RKNS_8matrix_tE(ptr noundef nonnull align 4 dereferenceable(16) %19, ptr noundef nonnull align 4 dereferenceable(16) %20, 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 %20) #4
  %37 = getelementptr inbounds %"struct.ImGuizmo::vec_t", ptr %19, i32 0, i32 2
  %38 = load float, ptr %37, align 4, !tbaa !13
  %39 = fcmp olt float %38, 0x3F50624DE0000000
  br i1 %39, label %40, label %41

40:                                               ; preds = %31
  store i32 1, ptr %21, align 4
  br label %86

41:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #4
  store i32 0, ptr %22, align 4, !tbaa !16
  %42 = load i8, ptr getelementptr inbounds (%"struct.ImGuizmo::Context", ptr @_ZN8ImGuizmoL8gContextE, i32 0, i32 24), align 1, !tbaa !18, !range !23, !noundef !24
  %43 = trunc i8 %42 to i1
  br i1 %43, label %44, label %63

44:                                               ; preds = %41
  %45 = load i8, ptr getelementptr inbounds (%"struct.ImGuizmo::Context", ptr @_ZN8ImGuizmoL8gContextE, i32 0, i32 45), align 4, !tbaa !25, !range !23, !noundef !24
  %46 = trunc i8 %45 to i1
  br i1 %46, label %62, label %47

47:                                               ; preds = %44
  %48 = load i32, ptr %12, align 4, !tbaa !9
  switch i32 %48, label %61 [
    i32 1, label %49
    i32 0, label %53
    i32 2, label %57
  ]

49:                                               ; preds = %47
  %50 = load ptr, ptr %14, align 8, !tbaa !5
  %51 = load ptr, ptr %15, align 8, !tbaa !5
  %52 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN8ImGuizmoL14HandleRotationEPfS0_RiS0_(ptr noundef %50, ptr noundef %51, ptr noundef nonnull align 4 dereferenceable(4) %22, ptr noundef %52)
  br label %61

53:                                               ; preds = %47
  %54 = load ptr, ptr %14, align 8, !tbaa !5
  %55 = load ptr, ptr %15, align 8, !tbaa !5
  %56 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN8ImGuizmoL17HandleTranslationEPfS0_RiS0_(ptr noundef %54, ptr noundef %55, ptr noundef nonnull align 4 dereferenceable(4) %22, ptr noundef %56)
  br label %61

57:                                               ; preds = %47
  %58 = load ptr, ptr %14, align 8, !tbaa !5
  %59 = load ptr, ptr %15, align 8, !tbaa !5
  %60 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN8ImGuizmoL11HandleScaleEPfS0_RiS0_(ptr noundef %58, ptr noundef %59, ptr noundef nonnull align 4 dereferenceable(4) %22, ptr noundef %60)
  br label %61

61:                                               ; preds = %57, %53, %49, %47
  br label %62

62:                                               ; preds = %61, %44
  br label %63

63:                                               ; preds = %62, %41
  %64 = load ptr, ptr %17, align 8, !tbaa !5
  %65 = icmp ne ptr %64, null
  br i1 %65, label %66, label %73

66:                                               ; preds = %63
  %67 = load i8, ptr getelementptr inbounds (%"struct.ImGuizmo::Context", ptr @_ZN8ImGuizmoL8gContextE, i32 0, i32 23), align 4, !tbaa !26, !range !23, !noundef !24
  %68 = trunc i8 %67 to i1
  br i1 %68, label %73, label %69

69:                                               ; preds = %66
  %70 = load ptr, ptr %17, align 8, !tbaa !5
  %71 = load ptr, ptr %14, align 8, !tbaa !5
  %72 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN8ImGuizmoL24HandleAndDrawLocalBoundsEPfPNS_8matrix_tES0_(ptr noundef %70, ptr noundef %71, ptr noundef %72)
  br label %73

73:                                               ; preds = %69, %66, %63
  %74 = load i8, ptr getelementptr inbounds (%"struct.ImGuizmo::Context", ptr @_ZN8ImGuizmoL8gContextE, i32 0, i32 45), align 4, !tbaa !25, !range !23, !noundef !24
  %75 = trunc i8 %74 to i1
  br i1 %75, label %85, label %76

76:                                               ; preds = %73
  %77 = load i32, ptr %12, align 4, !tbaa !9
  switch i32 %77, label %84 [
    i32 1, label %78
    i32 0, label %80
    i32 2, label %82
  ]

78:                                               ; preds = %76
  %79 = load i32, ptr %22, align 4, !tbaa !16
  call void @_ZN8ImGuizmoL17DrawRotationGizmoEi(i32 noundef %79)
  br label %84

80:                                               ; preds = %76
  %81 = load i32, ptr %22, align 4, !tbaa !16
  call void @_ZN8ImGuizmoL20DrawTranslationGizmoEi(i32 noundef %81)
  br label %84

82:                                               ; preds = %76
  %83 = load i32, ptr %22, align 4, !tbaa !16
  call void @_ZN8ImGuizmoL14DrawScaleGizmoEi(i32 noundef %83)
  br label %84

84:                                               ; preds = %82, %80, %78, %76
  br label %85

85:                                               ; preds = %84, %73
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  store i32 0, ptr %21, align 4
  br label %86

86:                                               ; preds = %85, %40
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #4
  %87 = load i32, ptr %21, align 4
  switch i32 %87, label %89 [
    i32 0, label %88
    i32 1, label %88
  ]

88:                                               ; preds = %86, %86
  ret void

89:                                               ; preds = %86
  unreachable
}

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_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_(ptr noundef, ptr noundef, ptr 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 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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, !15, i64 8}
!14 = !{!"_ZTSN8ImGuizmo5vec_tE", !15, i64 0, !15, i64 4, !15, i64 8, !15, i64 12}
!15 = !{!"float", !7, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"int", !7, i64 0}
!18 = !{!19, !22, i64 685}
!19 = !{!"_ZTSN8ImGuizmo7ContextE", !6, i64 0, !12, i64 8, !20, i64 12, !20, i64 76, !20, i64 140, !20, i64 204, !20, i64 268, !20, i64 332, !20, i64 396, !20, 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, !21, i64 640, !21, i64 648, !21, i64 656, !15, i64 664, !14, i64 668, !22, i64 684, !22, i64 685, !14, i64 688, !14, i64 704, !14, i64 720, !14, i64 736, !15, i64 752, !15, i64 756, !14, i64 760, !14, i64 776, !15, i64 792, !7, i64 796, !7, i64 799, !7, i64 804, !14, i64 816, !14, i64 832, !14, i64 848, !14, i64 864, !17, i64 880, !7, i64 884, !22, i64 892, !20, i64 896, !17, i64 960, !15, i64 964, !15, i64 968, !15, i64 972, !15, i64 976, !15, i64 980, !15, i64 984}
!20 = !{!"_ZTSN8ImGuizmo8matrix_tE", !7, i64 0}
!21 = !{!"_ZTS6ImVec2", !15, i64 0, !15, i64 4}
!22 = !{!"bool", !7, i64 0}
!23 = !{i8 0, i8 2}
!24 = !{}
!25 = !{!19, !22, i64 892}
!26 = !{!19, !22, i64 684}


; 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, [2 x i8], %"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", float, [3 x i8], [3 x i8], [2 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, [3 x i8], %"struct.ImGuizmo::matrix_t", i32, float, float, float, float, float, float, [4 x i8] }>
%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 nounwind uwtable
declare dso_local { <2 x float>, <2 x float> } @_ZN8ImGuizmo8makeVectEffff(float noundef, float noundef, float noundef, float noundef) local_unnamed_addr #0

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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 void @_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)
  %.not = icmp eq ptr %5, null
  br i1 %.not, 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 = getelementptr inbounds i8, ptr %10, i64 8
  %20 = load float, ptr %19, align 4, !tbaa !5
  %21 = fcmp olt float %20, 0x3F50624DE0000000
  br i1 %21, label %48, label %22

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

25:                                               ; preds = %22
  %26 = load i8, ptr getelementptr inbounds (i8, ptr @_ZN8ImGuizmoL8gContextE, i64 892), align 4, !tbaa !21, !range !19, !noundef !20
  %27 = trunc nuw i8 %26 to i1
  br i1 %27, label %32, label %28

28:                                               ; preds = %25
  switch i32 %2, label %32 [
    i32 1, label %29
    i32 0, label %30
    i32 2, label %31
  ]

29:                                               ; preds = %28
  call void @_ZN8ImGuizmoL14HandleRotationEPfS0_RiS0_(ptr noundef %4, ptr noundef %5, ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef %6)
  br label %32

30:                                               ; preds = %28
  call void @_ZN8ImGuizmoL17HandleTranslationEPfS0_RiS0_(ptr noundef %4, ptr noundef %5, ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef %6)
  br label %32

31:                                               ; preds = %28
  call void @_ZN8ImGuizmoL11HandleScaleEPfS0_RiS0_(ptr noundef %4, ptr noundef %5, ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef %6)
  br label %32

32:                                               ; preds = %25, %31, %30, %29, %28, %22
  %.not21 = icmp eq ptr %7, null
  br i1 %.not21, label %37, label %33

33:                                               ; preds = %32
  %34 = load i8, ptr getelementptr inbounds (i8, ptr @_ZN8ImGuizmoL8gContextE, i64 684), align 4, !tbaa !22, !range !19, !noundef !20
  %35 = trunc nuw i8 %34 to i1
  br i1 %35, label %37, label %36

36:                                               ; preds = %33
  call void @_ZN8ImGuizmoL24HandleAndDrawLocalBoundsEPfPNS_8matrix_tES0_(ptr noundef nonnull %7, ptr noundef %4, ptr noundef %8)
  br label %37

37:                                               ; preds = %36, %33, %32
  %38 = load i8, ptr getelementptr inbounds (i8, ptr @_ZN8ImGuizmoL8gContextE, i64 892), align 4, !tbaa !21, !range !19, !noundef !20
  %39 = trunc nuw i8 %38 to i1
  br i1 %39, label %47, label %40

40:                                               ; preds = %37
  switch i32 %2, label %47 [
    i32 1, label %41
    i32 0, label %43
    i32 2, label %45
  ]

41:                                               ; preds = %40
  %42 = load i32, ptr %12, align 4, !tbaa !10
  call void @_ZN8ImGuizmoL17DrawRotationGizmoEi(i32 noundef %42)
  br label %47

43:                                               ; preds = %40
  %44 = load i32, ptr %12, align 4, !tbaa !10
  call void @_ZN8ImGuizmoL20DrawTranslationGizmoEi(i32 noundef %44)
  br label %47

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

47:                                               ; preds = %40, %41, %43, %45, %37
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #4
  br label %48

48:                                               ; preds = %14, %47
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #4
  ret void
}

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

; Function Attrs: mustprogress uwtable
declare hidden void @_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 void @_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 void @_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_(ptr noundef, ptr noundef, ptr 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 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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, !7, i64 8}
!6 = !{!"_ZTSN8ImGuizmo5vec_tE", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12}
!7 = !{!"float", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!13, !18, i64 685}
!13 = !{!"_ZTSN8ImGuizmo7ContextE", !14, i64 0, !15, i64 8, !16, i64 12, !16, i64 76, !16, i64 140, !16, i64 204, !16, i64 268, !16, i64 332, !16, i64 396, !16, i64 460, !6, i64 524, !6, i64 540, !6, i64 556, !6, i64 572, !6, i64 588, !6, i64 604, !6, i64 620, !7, i64 636, !17, i64 640, !17, i64 648, !17, i64 656, !7, i64 664, !6, i64 668, !18, i64 684, !18, i64 685, !6, i64 688, !6, i64 704, !6, i64 720, !6, i64 736, !7, i64 752, !7, i64 756, !6, i64 760, !6, i64 776, !7, i64 792, !8, i64 796, !8, i64 799, !8, i64 804, !6, i64 816, !6, i64 832, !6, i64 848, !6, i64 864, !11, i64 880, !8, i64 884, !18, i64 892, !16, i64 896, !11, i64 960, !7, i64 964, !7, i64 968, !7, i64 972, !7, i64 976, !7, i64 980, !7, i64 984}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!"_ZTSN8ImGuizmo4MODEE", !8, i64 0}
!16 = !{!"_ZTSN8ImGuizmo8matrix_tE", !8, i64 0}
!17 = !{!"_ZTS6ImVec2", !7, i64 0, !7, i64 4}
!18 = !{!"bool", !8, i64 0}
!19 = !{i8 0, i8 2}
!20 = !{}
!21 = !{!13, !18, i64 892}
!22 = !{!13, !18, i64 684}


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