; LLVM IR from yangfengzzz/DigitalVox4 :: editor/imgui_zmo.ll (ZN8ImGuizmo10ManipulateEPKfS1_NS_9OPERATIONENS_4MODEEPfS4_S1_S1_S1_)

; 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::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
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)) #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 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 %"struct.ImGuizmo::matrix_t", align 4
  %22 = alloca i32, align 4
  %23 = alloca i8, align 1
  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
  %24 = load ptr, ptr %10, align 8, !tbaa !5
  %25 = load ptr, ptr %11, align 8, !tbaa !5
  %26 = load ptr, ptr %14, align 8, !tbaa !5
  %27 = load i32, ptr %12, align 4, !tbaa !9
  %28 = call noundef i32 @_ZN8ImGuizmoanENS_9OPERATIONES0_(i32 noundef %27, i32 noundef 896)
  %29 = icmp ne i32 %28, 0
  br i1 %29, label %30, label %31

30:                                               ; preds = %9
  br label %33

31:                                               ; preds = %9
  %32 = load i32, ptr %13, align 4, !tbaa !11
  br label %33

33:                                               ; preds = %31, %30
  %34 = phi i32 [ 0, %30 ], [ %32, %31 ]
  call void @_ZN8ImGuizmoL14ComputeContextEPKfS1_PfNS_4MODEE(ptr noundef %24, ptr noundef %25, ptr noundef %26, i32 noundef %34)
  %35 = load ptr, ptr %15, align 8, !tbaa !5
  %36 = icmp ne ptr %35, null
  br i1 %36, label %37, label %39

37:                                               ; preds = %33
  %38 = load ptr, ptr %15, align 8, !tbaa !5
  call void @_ZN8ImGuizmo8matrix_t13SetToIdentityEv(ptr noundef nonnull align 4 dereferenceable(64) %38)
  br label %39

39:                                               ; preds = %37, %33
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #4
  %40 = 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)
  %41 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %20, i32 0, i32 0
  %42 = extractvalue { <2 x float>, <2 x float> } %40, 0
  store <2 x float> %42, ptr %41, align 4
  %43 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %20, i32 0, i32 1
  %44 = extractvalue { <2 x float>, <2 x float> } %40, 1
  store <2 x float> %44, ptr %43, align 4
  call void @llvm.lifetime.start.p0(i64 64, ptr %21) #4
  call void @_ZNK8ImGuizmo8matrix_tmlERKS0_(ptr dead_on_unwind writable sret(%"struct.ImGuizmo::matrix_t") align 4 %21, ptr noundef nonnull align 4 dereferenceable(64) getelementptr inbounds (%"struct.ImGuizmo::Context", ptr @_ZN8ImGuizmoL8gContextE, i32 0, i32 4), ptr noundef nonnull align 4 dereferenceable(64) getelementptr inbounds (%"struct.ImGuizmo::Context", ptr @_ZN8ImGuizmoL8gContextE, i32 0, i32 2))
  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) %21)
  call void @llvm.lifetime.end.p0(i64 64, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #4
  %45 = load i8, ptr getelementptr inbounds (%"struct.ImGuizmo::Context", ptr @_ZN8ImGuizmoL8gContextE, i32 0, i32 58), align 8, !tbaa !13, !range !21, !noundef !22
  %46 = trunc i8 %45 to i1
  br i1 %46, label %52, label %47

47:                                               ; preds = %39
  %48 = getelementptr inbounds %"struct.ImGuizmo::vec_t", ptr %19, i32 0, i32 2
  %49 = load float, ptr %48, align 4, !tbaa !23
  %50 = fcmp olt float %49, 0x3F50624DE0000000
  br i1 %50, label %51, label %52

51:                                               ; preds = %47
  br label %52

52:                                               ; preds = %51, %47, %39
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #4
  store i32 0, ptr %22, align 4, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #4
  store i8 0, ptr %23, align 1, !tbaa !25
  %53 = load i8, ptr getelementptr inbounds (%"struct.ImGuizmo::Context", ptr @_ZN8ImGuizmoL8gContextE, i32 0, i32 26), align 1, !tbaa !26, !range !21, !noundef !22
  %54 = trunc i8 %53 to i1
  br i1 %54, label %55, label %80

55:                                               ; preds = %52
  %56 = load i8, ptr getelementptr inbounds (%"struct.ImGuizmo::Context", ptr @_ZN8ImGuizmoL8gContextE, i32 0, i32 48), align 4, !tbaa !27, !range !21, !noundef !22
  %57 = trunc i8 %56 to i1
  br i1 %57, label %79, label %58

58:                                               ; preds = %55
  %59 = load ptr, ptr %14, align 8, !tbaa !5
  %60 = load ptr, ptr %15, align 8, !tbaa !5
  %61 = load i32, ptr %12, align 4, !tbaa !9
  %62 = load ptr, ptr %16, align 8, !tbaa !5
  %63 = call noundef zeroext i1 @_ZN8ImGuizmoL17HandleTranslationEPfS0_NS_9OPERATIONERiPKf(ptr noundef %59, ptr noundef %60, i32 noundef %61, ptr noundef nonnull align 4 dereferenceable(4) %22, ptr noundef %62)
  br i1 %63, label %76, label %64

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

70:                                               ; preds = %64
  %71 = load ptr, ptr %14, align 8, !tbaa !5
  %72 = load ptr, ptr %15, align 8, !tbaa !5
  %73 = load i32, ptr %12, align 4, !tbaa !9
  %74 = load ptr, ptr %16, align 8, !tbaa !5
  %75 = call noundef zeroext i1 @_ZN8ImGuizmoL14HandleRotationEPfS0_NS_9OPERATIONERiPKf(ptr noundef %71, ptr noundef %72, i32 noundef %73, ptr noundef nonnull align 4 dereferenceable(4) %22, ptr noundef %74)
  br label %76

76:                                               ; preds = %70, %64, %58
  %77 = phi i1 [ true, %64 ], [ true, %58 ], [ %75, %70 ]
  %78 = zext i1 %77 to i8
  store i8 %78, ptr %23, align 1, !tbaa !25
  br label %79

79:                                               ; preds = %76, %55
  br label %80

80:                                               ; preds = %79, %52
  %81 = load ptr, ptr %17, align 8, !tbaa !5
  %82 = icmp ne ptr %81, null
  br i1 %82, label %83, label %91

83:                                               ; preds = %80
  %84 = load i8, ptr getelementptr inbounds (%"struct.ImGuizmo::Context", ptr @_ZN8ImGuizmoL8gContextE, i32 0, i32 25), align 4, !tbaa !28, !range !21, !noundef !22
  %85 = trunc i8 %84 to i1
  br i1 %85, label %91, label %86

86:                                               ; preds = %83
  %87 = load ptr, ptr %17, align 8, !tbaa !5
  %88 = load ptr, ptr %14, align 8, !tbaa !5
  %89 = load ptr, ptr %18, align 8, !tbaa !5
  %90 = load i32, ptr %12, align 4, !tbaa !9
  call void @_ZN8ImGuizmoL24HandleAndDrawLocalBoundsEPKfPNS_8matrix_tES1_NS_9OPERATIONE(ptr noundef %87, ptr noundef %88, ptr noundef %89, i32 noundef %90)
  br label %91

91:                                               ; preds = %86, %83, %80
  %92 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %92, ptr getelementptr inbounds (%"struct.ImGuizmo::Context", ptr @_ZN8ImGuizmoL8gContextE, i32 0, i32 61), align 4, !tbaa !29
  %93 = load i8, ptr getelementptr inbounds (%"struct.ImGuizmo::Context", ptr @_ZN8ImGuizmoL8gContextE, i32 0, i32 48), align 4, !tbaa !27, !range !21, !noundef !22
  %94 = trunc i8 %93 to i1
  br i1 %94, label %104, label %95

95:                                               ; preds = %91
  %96 = load i32, ptr %12, align 4, !tbaa !9
  %97 = load i32, ptr %22, align 4, !tbaa !24
  call void @_ZN8ImGuizmoL17DrawRotationGizmoENS_9OPERATIONEi(i32 noundef %96, i32 noundef %97)
  %98 = load i32, ptr %12, align 4, !tbaa !9
  %99 = load i32, ptr %22, align 4, !tbaa !24
  call void @_ZN8ImGuizmoL20DrawTranslationGizmoENS_9OPERATIONEi(i32 noundef %98, i32 noundef %99)
  %100 = load i32, ptr %12, align 4, !tbaa !9
  %101 = load i32, ptr %22, align 4, !tbaa !24
  call void @_ZN8ImGuizmoL14DrawScaleGizmoENS_9OPERATIONEi(i32 noundef %100, i32 noundef %101)
  %102 = load i32, ptr %12, align 4, !tbaa !9
  %103 = load i32, ptr %22, align 4, !tbaa !24
  call void @_ZN8ImGuizmoL22DrawScaleUniveralGizmoENS_9OPERATIONEi(i32 noundef %102, i32 noundef %103)
  br label %104

104:                                              ; preds = %95, %91
  %105 = load i8, ptr %23, align 1, !tbaa !25, !range !21, !noundef !22
  %106 = trunc i8 %105 to i1
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #4
  ret i1 %106
}

; 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 hidden noundef i32 @_ZN8ImGuizmoanENS_9OPERATIONES0_(i32 noundef, i32 noundef) #1

; 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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN8ImGuizmoL22DrawScaleUniveralGizmoENS_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 1152}
!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, !15, i64 524, !15, i64 588, !16, i64 652, !16, i64 668, !16, i64 684, !16, i64 700, !16, i64 716, !16, i64 732, !16, i64 748, !17, i64 764, !18, i64 768, !18, i64 776, !18, i64 784, !17, i64 792, !16, i64 796, !19, i64 812, !19, i64 813, !19, i64 814, !16, i64 816, !16, i64 832, !16, i64 848, !16, i64 864, !16, i64 880, !17, i64 896, !17, i64 900, !16, i64 904, !16, i64 920, !16, i64 936, !17, i64 952, !7, i64 956, !7, i64 959, !7, i64 964, !16, i64 976, !16, i64 992, !16, i64 1008, !16, i64 1024, !20, i64 1040, !7, i64 1044, !19, i64 1052, !15, i64 1056, !20, i64 1120, !17, i64 1124, !17, i64 1128, !17, i64 1132, !17, i64 1136, !17, i64 1140, !17, i64 1144, !17, i64 1148, !19, i64 1152, !20, i64 1156, !20, i64 1160, !10, i64 1164, !19, i64 1168, !17, i64 1172}
!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 813}
!27 = !{!14, !19, i64 1052}
!28 = !{!14, !19, i64 812}
!29 = !{!14, !10, i64 1164}


; 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::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
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 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 %"struct.ImGuizmo::matrix_t", align 4
  %13 = alloca i32, align 4
  %14 = tail call noundef i32 @_ZN8ImGuizmoanENS_9OPERATIONES0_(i32 noundef %2, i32 noundef 896)
  %.not = icmp eq i32 %14, 0
  %15 = select i1 %.not, i32 %3, i32 0
  tail call void @_ZN8ImGuizmoL14ComputeContextEPKfS1_PfNS_4MODEE(ptr noundef %0, ptr noundef %1, ptr noundef %4, i32 noundef %15)
  %.not33 = icmp eq ptr %5, null
  br i1 %.not33, label %17, label %16

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

17:                                               ; preds = %16, %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
  %18 = 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)
  %19 = extractvalue { <2 x float>, <2 x float> } %18, 0
  store <2 x float> %19, ptr %11, align 8
  %20 = getelementptr inbounds i8, ptr %11, i64 8
  %21 = extractvalue { <2 x float>, <2 x float> } %18, 1
  store <2 x float> %21, ptr %20, align 8
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %12) #4
  call void @_ZNK8ImGuizmo8matrix_tmlERKS0_(ptr dead_on_unwind nonnull writable sret(%"struct.ImGuizmo::matrix_t") align 4 %12, ptr noundef nonnull align 4 dereferenceable(64) getelementptr inbounds (i8, ptr @_ZN8ImGuizmoL8gContextE, i64 140), ptr noundef nonnull align 4 dereferenceable(64) getelementptr inbounds (i8, ptr @_ZN8ImGuizmoL8gContextE, i64 12))
  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) %12)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #4
  store i32 0, ptr %13, align 4, !tbaa !5
  %22 = load i8, ptr getelementptr inbounds (i8, ptr @_ZN8ImGuizmoL8gContextE, i64 813), align 1, !tbaa !9, !range !19, !noundef !20
  %23 = trunc nuw i8 %22 to i1
  br i1 %23, label %24, label %33

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

27:                                               ; preds = %24
  %28 = call noundef zeroext i1 @_ZN8ImGuizmoL17HandleTranslationEPfS0_NS_9OPERATIONERiPKf(ptr noundef %4, ptr noundef %5, i32 noundef %2, ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef %6)
  br i1 %28, label %33, label %29

29:                                               ; preds = %27
  %30 = call noundef zeroext i1 @_ZN8ImGuizmoL11HandleScaleEPfS0_NS_9OPERATIONERiPKf(ptr noundef %4, ptr noundef %5, i32 noundef %2, ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef %6)
  br i1 %30, label %33, label %31

31:                                               ; preds = %29
  %32 = call noundef zeroext i1 @_ZN8ImGuizmoL14HandleRotationEPfS0_NS_9OPERATIONERiPKf(ptr noundef %4, ptr noundef %5, i32 noundef %2, ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef %6)
  br label %33

33:                                               ; preds = %27, %29, %31, %24, %17
  %.0 = phi i1 [ false, %24 ], [ false, %17 ], [ true, %29 ], [ true, %27 ], [ %32, %31 ]
  %.not34 = icmp eq ptr %7, null
  br i1 %.not34, label %38, label %34

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

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

38:                                               ; preds = %37, %34, %33
  store i32 %2, ptr getelementptr inbounds (i8, ptr @_ZN8ImGuizmoL8gContextE, i64 1164), align 4, !tbaa !23
  %39 = load i8, ptr getelementptr inbounds (i8, ptr @_ZN8ImGuizmoL8gContextE, i64 1052), align 4, !tbaa !21, !range !19, !noundef !20
  %40 = trunc nuw i8 %39 to i1
  br i1 %40, label %46, label %41

41:                                               ; preds = %38
  %42 = load i32, ptr %13, align 4, !tbaa !5
  call void @_ZN8ImGuizmoL17DrawRotationGizmoENS_9OPERATIONEi(i32 noundef %2, i32 noundef %42)
  %43 = load i32, ptr %13, align 4, !tbaa !5
  call void @_ZN8ImGuizmoL20DrawTranslationGizmoENS_9OPERATIONEi(i32 noundef %2, i32 noundef %43)
  %44 = load i32, ptr %13, align 4, !tbaa !5
  call void @_ZN8ImGuizmoL14DrawScaleGizmoENS_9OPERATIONEi(i32 noundef %2, i32 noundef %44)
  %45 = load i32, ptr %13, align 4, !tbaa !5
  call void @_ZN8ImGuizmoL22DrawScaleUniveralGizmoENS_9OPERATIONEi(i32 noundef %2, i32 noundef %45)
  br label %46

46:                                               ; preds = %41, %38
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #4
  ret i1 %.0
}

; 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 hidden noundef i32 @_ZN8ImGuizmoanENS_9OPERATIONES0_(i32 noundef, i32 noundef) local_unnamed_addr #1

; 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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN8ImGuizmoL22DrawScaleUniveralGizmoENS_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, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !17, i64 813}
!10 = !{!"_ZTSN8ImGuizmo7ContextE", !11, 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, !13, i64 524, !13, i64 588, !14, i64 652, !14, i64 668, !14, i64 684, !14, i64 700, !14, i64 716, !14, i64 732, !14, i64 748, !15, i64 764, !16, i64 768, !16, i64 776, !16, i64 784, !15, i64 792, !14, i64 796, !17, i64 812, !17, i64 813, !17, i64 814, !14, i64 816, !14, i64 832, !14, i64 848, !14, i64 864, !14, i64 880, !15, i64 896, !15, i64 900, !14, i64 904, !14, i64 920, !14, i64 936, !15, i64 952, !7, i64 956, !7, i64 959, !7, i64 964, !14, i64 976, !14, i64 992, !14, i64 1008, !14, i64 1024, !6, i64 1040, !7, i64 1044, !17, i64 1052, !13, i64 1056, !6, i64 1120, !15, i64 1124, !15, i64 1128, !15, i64 1132, !15, i64 1136, !15, i64 1140, !15, i64 1144, !15, i64 1148, !17, i64 1152, !6, i64 1156, !6, i64 1160, !18, i64 1164, !17, i64 1168, !15, i64 1172}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!"_ZTSN8ImGuizmo4MODEE", !7, i64 0}
!13 = !{!"_ZTSN8ImGuizmo8matrix_tE", !7, i64 0}
!14 = !{!"_ZTSN8ImGuizmo5vec_tE", !15, i64 0, !15, i64 4, !15, i64 8, !15, i64 12}
!15 = !{!"float", !7, i64 0}
!16 = !{!"_ZTS6ImVec2", !15, i64 0, !15, i64 4}
!17 = !{!"bool", !7, i64 0}
!18 = !{!"_ZTSN8ImGuizmo9OPERATIONE", !7, i64 0}
!19 = !{i8 0, i8 2}
!20 = !{}
!21 = !{!10, !17, i64 1052}
!22 = !{!10, !17, i64 812}
!23 = !{!10, !18, i64 1164}


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