; LLVM IR from mateeeeeee/Adria-DX11 :: ThirdParty/ImGui/ImGui/ImGuizmo.ll (ZN8ImGuizmo6IsOverEv)

; 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: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN8ImGuizmo7IsUsingEv() #0

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN8ImGuizmo6IsOverEv() #1 {
  %1 = load i32, ptr getelementptr inbounds (%"struct.ImGuizmo::Context", ptr @_ZN8ImGuizmoL8gContextE, i32 0, i32 58), align 4, !tbaa !5
  %2 = icmp eq i32 %1, 0
  br i1 %2, label %3, label %6

3:                                                ; preds = %0
  %4 = call noundef i32 @_ZN8ImGuizmoL11GetMoveTypeEPNS_5vec_tE(ptr noundef null)
  %5 = icmp ne i32 %4, 0
  br i1 %5, label %20, label %6

6:                                                ; preds = %3, %0
  %7 = load i32, ptr getelementptr inbounds (%"struct.ImGuizmo::Context", ptr @_ZN8ImGuizmoL8gContextE, i32 0, i32 58), align 4, !tbaa !5
  %8 = icmp eq i32 %7, 1
  br i1 %8, label %9, label %12

9:                                                ; preds = %6
  %10 = call noundef i32 @_ZN8ImGuizmoL13GetRotateTypeEv()
  %11 = icmp ne i32 %10, 0
  br i1 %11, label %20, label %12

12:                                               ; preds = %9, %6
  %13 = load i32, ptr getelementptr inbounds (%"struct.ImGuizmo::Context", ptr @_ZN8ImGuizmoL8gContextE, i32 0, i32 58), align 4, !tbaa !5
  %14 = icmp eq i32 %13, 2
  br i1 %14, label %15, label %18

15:                                               ; preds = %12
  %16 = call noundef i32 @_ZN8ImGuizmoL12GetScaleTypeEv()
  %17 = icmp ne i32 %16, 0
  br i1 %17, label %20, label %18

18:                                               ; preds = %15, %12
  %19 = call noundef zeroext i1 @_ZN8ImGuizmo7IsUsingEv()
  br label %20

20:                                               ; preds = %18, %15, %9, %3
  %21 = phi i1 [ true, %15 ], [ true, %9 ], [ true, %3 ], [ %19, %18 ]
  ret i1 %21
}

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZN8ImGuizmoL11GetMoveTypeEPNS_5vec_tE(ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZN8ImGuizmoL13GetRotateTypeEv() #2

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZN8ImGuizmoL12GetScaleTypeEv() #2

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 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"="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" }

!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, !17, i64 1036}
!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}


; 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 local_unnamed_addr global %"struct.ImGuizmo::Context", align 8

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN8ImGuizmo7IsUsingEv() local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN8ImGuizmo6IsOverEv() local_unnamed_addr #1 {
  %1 = load i32, ptr getelementptr inbounds (i8, ptr @_ZN8ImGuizmoL8gContextE, i64 1036), align 4, !tbaa !5
  %2 = icmp eq i32 %1, 0
  br i1 %2, label %3, label %5

3:                                                ; preds = %0
  %4 = tail call noundef i32 @_ZN8ImGuizmoL11GetMoveTypeEPNS_5vec_tE(ptr noundef null)
  %.not = icmp eq i32 %4, 0
  br i1 %.not, label %thread-pre-split, label %17

thread-pre-split:                                 ; preds = %3
  %.pr = load i32, ptr getelementptr inbounds (i8, ptr @_ZN8ImGuizmoL8gContextE, i64 1036), align 4, !tbaa !5
  br label %5

5:                                                ; preds = %thread-pre-split, %0
  %6 = phi i32 [ %.pr, %thread-pre-split ], [ %1, %0 ]
  %7 = icmp eq i32 %6, 1
  br i1 %7, label %8, label %10

8:                                                ; preds = %5
  %9 = tail call noundef i32 @_ZN8ImGuizmoL13GetRotateTypeEv()
  %.not1 = icmp eq i32 %9, 0
  br i1 %.not1, label %._crit_edge, label %17

._crit_edge:                                      ; preds = %8
  %.pre = load i32, ptr getelementptr inbounds (i8, ptr @_ZN8ImGuizmoL8gContextE, i64 1036), align 4, !tbaa !5
  br label %10

10:                                               ; preds = %._crit_edge, %5
  %11 = phi i32 [ %.pre, %._crit_edge ], [ %6, %5 ]
  %12 = icmp eq i32 %11, 2
  br i1 %12, label %13, label %15

13:                                               ; preds = %10
  %14 = tail call noundef i32 @_ZN8ImGuizmoL12GetScaleTypeEv()
  %.not2 = icmp eq i32 %14, 0
  br i1 %.not2, label %15, label %17

15:                                               ; preds = %13, %10
  %16 = tail call noundef zeroext i1 @_ZN8ImGuizmo7IsUsingEv()
  br label %17

17:                                               ; preds = %15, %13, %8, %3
  %18 = phi i1 [ true, %13 ], [ true, %8 ], [ true, %3 ], [ %16, %15 ]
  ret i1 %18
}

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZN8ImGuizmoL11GetMoveTypeEPNS_5vec_tE(ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZN8ImGuizmoL13GetRotateTypeEv() local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZN8ImGuizmoL12GetScaleTypeEv() local_unnamed_addr #2

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 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"="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" }

!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, !17, i64 1036}
!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}


; Effective O3 passes: GVNPass,GlobalOptPass,InstCombinePass,JumpThreadingPass,TailCallElimPass