; LLVM IR from aap/librw :: skeleton/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, %"struct.ImGuizmo::Style", 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, 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], float, 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.ImGuizmo::Style" = type { float, float, float, float, float, float, float, float, [15 x %struct.ImVec4] }
%struct.ImVec4 = type { float, float, float, float }
%struct.ImVec2 = type { float, float }
%"struct.ImGuizmo::vec_t" = type { float, float, float, float }
%"struct.ImGuizmo::matrix_t" = type { %union.anon }
%union.anon = type { [4 x [4 x float]] }

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { <2 x float>, <2 x float> } @_ZN8ImGuizmo8makeVectEffff(float noundef, float noundef, float noundef, float noundef) #1

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

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

31:                                               ; preds = %9
  br label %34

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

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

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

40:                                               ; preds = %38, %34
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #4
  %41 = 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)
  %42 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %21, i32 0, i32 0
  %43 = extractvalue { <2 x float>, <2 x float> } %41, 0
  store <2 x float> %43, ptr %42, align 4
  %44 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %21, i32 0, i32 1
  %45 = extractvalue { <2 x float>, <2 x float> } %41, 1
  store <2 x float> %45, ptr %44, 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 10))
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #4
  %46 = load i8, ptr getelementptr inbounds (%"struct.ImGuizmo::Context", ptr @_ZN8ImGuizmoL8gContextE, i32 0, i32 62), align 8, !tbaa !13, !range !22, !noundef !23
  %47 = trunc i8 %46 to i1
  br i1 %47, label %56, label %48

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

52:                                               ; preds = %48
  %53 = load i8, ptr getelementptr inbounds (%"struct.ImGuizmo::Context", ptr @_ZN8ImGuizmoL8gContextE, i32 0, i32 26), align 4, !tbaa !25, !range !22, !noundef !23
  %54 = trunc i8 %53 to i1
  br i1 %54, label %56, label %55

55:                                               ; preds = %52
  store i1 false, ptr %10, align 1
  store i32 1, ptr %22, align 4
  br label %111

56:                                               ; preds = %52, %48, %40
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #4
  store i32 0, ptr %23, align 4, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #4
  store i8 0, ptr %24, align 1, !tbaa !27
  %57 = load i8, ptr getelementptr inbounds (%"struct.ImGuizmo::Context", ptr @_ZN8ImGuizmoL8gContextE, i32 0, i32 27), align 1, !tbaa !28, !range !22, !noundef !23
  %58 = trunc i8 %57 to i1
  br i1 %58, label %59, label %84

59:                                               ; preds = %56
  %60 = load i8, ptr getelementptr inbounds (%"struct.ImGuizmo::Context", ptr @_ZN8ImGuizmoL8gContextE, i32 0, i32 52), align 4, !tbaa !29, !range !22, !noundef !23
  %61 = trunc i8 %60 to i1
  br i1 %61, label %83, label %62

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

68:                                               ; preds = %62
  %69 = load ptr, ptr %15, align 8, !tbaa !5
  %70 = load ptr, ptr %16, align 8, !tbaa !5
  %71 = load i32, ptr %13, align 4, !tbaa !9
  %72 = load ptr, ptr %17, align 8, !tbaa !5
  %73 = call noundef zeroext i1 @_ZN8ImGuizmoL11HandleScaleEPfS0_NS_9OPERATIONERiPKf(ptr noundef %69, ptr noundef %70, i32 noundef %71, ptr noundef nonnull align 4 dereferenceable(4) %23, ptr noundef %72)
  br i1 %73, label %80, label %74

74:                                               ; preds = %68
  %75 = load ptr, ptr %15, align 8, !tbaa !5
  %76 = load ptr, ptr %16, align 8, !tbaa !5
  %77 = load i32, ptr %13, align 4, !tbaa !9
  %78 = load ptr, ptr %17, align 8, !tbaa !5
  %79 = call noundef zeroext i1 @_ZN8ImGuizmoL14HandleRotationEPfS0_NS_9OPERATIONERiPKf(ptr noundef %75, ptr noundef %76, i32 noundef %77, ptr noundef nonnull align 4 dereferenceable(4) %23, ptr noundef %78)
  br label %80

80:                                               ; preds = %74, %68, %62
  %81 = phi i1 [ true, %68 ], [ true, %62 ], [ %79, %74 ]
  %82 = zext i1 %81 to i8
  store i8 %82, ptr %24, align 1, !tbaa !27
  br label %83

83:                                               ; preds = %80, %59
  br label %84

84:                                               ; preds = %83, %56
  %85 = load ptr, ptr %18, align 8, !tbaa !5
  %86 = icmp ne ptr %85, null
  br i1 %86, label %87, label %95

87:                                               ; preds = %84
  %88 = load i8, ptr getelementptr inbounds (%"struct.ImGuizmo::Context", ptr @_ZN8ImGuizmoL8gContextE, i32 0, i32 26), align 4, !tbaa !25, !range !22, !noundef !23
  %89 = trunc i8 %88 to i1
  br i1 %89, label %95, label %90

90:                                               ; preds = %87
  %91 = load ptr, ptr %18, align 8, !tbaa !5
  %92 = load ptr, ptr %15, align 8, !tbaa !5
  %93 = load ptr, ptr %19, align 8, !tbaa !5
  %94 = load i32, ptr %13, align 4, !tbaa !9
  call void @_ZN8ImGuizmoL24HandleAndDrawLocalBoundsEPKfPNS_8matrix_tES1_NS_9OPERATIONE(ptr noundef %91, ptr noundef %92, ptr noundef %93, i32 noundef %94)
  br label %95

95:                                               ; preds = %90, %87, %84
  %96 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %96, ptr getelementptr inbounds (%"struct.ImGuizmo::Context", ptr @_ZN8ImGuizmoL8gContextE, i32 0, i32 65), align 4, !tbaa !30
  %97 = load i8, ptr getelementptr inbounds (%"struct.ImGuizmo::Context", ptr @_ZN8ImGuizmoL8gContextE, i32 0, i32 52), align 4, !tbaa !29, !range !22, !noundef !23
  %98 = trunc i8 %97 to i1
  br i1 %98, label %108, label %99

99:                                               ; preds = %95
  %100 = load i32, ptr %13, align 4, !tbaa !9
  %101 = load i32, ptr %23, align 4, !tbaa !26
  call void @_ZN8ImGuizmoL17DrawRotationGizmoENS_9OPERATIONEi(i32 noundef %100, i32 noundef %101)
  %102 = load i32, ptr %13, align 4, !tbaa !9
  %103 = load i32, ptr %23, align 4, !tbaa !26
  call void @_ZN8ImGuizmoL20DrawTranslationGizmoENS_9OPERATIONEi(i32 noundef %102, i32 noundef %103)
  %104 = load i32, ptr %13, align 4, !tbaa !9
  %105 = load i32, ptr %23, align 4, !tbaa !26
  call void @_ZN8ImGuizmoL14DrawScaleGizmoENS_9OPERATIONEi(i32 noundef %104, i32 noundef %105)
  %106 = load i32, ptr %13, align 4, !tbaa !9
  %107 = load i32, ptr %23, align 4, !tbaa !26
  call void @_ZN8ImGuizmoL22DrawScaleUniveralGizmoENS_9OPERATIONEi(i32 noundef %106, i32 noundef %107)
  br label %108

108:                                              ; preds = %99, %95
  %109 = load i8, ptr %24, align 1, !tbaa !27, !range !22, !noundef !23
  %110 = trunc i8 %109 to i1
  store i1 %110, 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 %111

111:                                              ; preds = %108, %55
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #4
  %112 = load i1, ptr %10, align 1
  ret i1 %112
}

; 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, !20, i64 1432}
!14 = !{!"_ZTSN8ImGuizmo7ContextE", !6, i64 0, !15, i64 8, !12, i64 280, !17, i64 284, !17, i64 348, !17, i64 412, !17, i64 476, !17, i64 540, !17, i64 604, !17, i64 668, !17, i64 732, !17, i64 796, !17, i64 860, !18, i64 924, !18, i64 940, !18, i64 956, !18, i64 972, !18, i64 988, !18, i64 1004, !18, i64 1020, !16, i64 1036, !19, i64 1040, !19, i64 1048, !19, i64 1056, !16, i64 1064, !18, i64 1068, !20, i64 1084, !20, i64 1085, !20, i64 1086, !20, i64 1087, !18, i64 1088, !18, i64 1104, !18, i64 1120, !18, i64 1136, !18, i64 1152, !16, i64 1168, !16, i64 1172, !18, i64 1176, !18, i64 1192, !18, i64 1208, !16, i64 1224, !7, i64 1228, !7, i64 1231, !7, i64 1236, !16, i64 1248, !16, i64 1252, !18, i64 1256, !18, i64 1272, !18, i64 1288, !18, i64 1304, !21, i64 1320, !7, i64 1324, !20, i64 1332, !17, i64 1336, !21, i64 1400, !16, i64 1404, !16, i64 1408, !16, i64 1412, !16, i64 1416, !16, i64 1420, !16, i64 1424, !16, i64 1428, !20, i64 1432, !21, i64 1436, !21, i64 1440, !10, i64 1444, !20, i64 1448, !16, i64 1452}
!15 = !{!"_ZTSN8ImGuizmo5StyleE", !16, i64 0, !16, i64 4, !16, i64 8, !16, i64 12, !16, i64 16, !16, i64 20, !16, i64 24, !16, i64 28, !7, i64 32}
!16 = !{!"float", !7, i64 0}
!17 = !{!"_ZTSN8ImGuizmo8matrix_tE", !7, i64 0}
!18 = !{!"_ZTSN8ImGuizmo5vec_tE", !16, i64 0, !16, i64 4, !16, i64 8, !16, i64 12}
!19 = !{!"_ZTS6ImVec2", !16, i64 0, !16, i64 4}
!20 = !{!"bool", !7, i64 0}
!21 = !{!"int", !7, i64 0}
!22 = !{i8 0, i8 2}
!23 = !{}
!24 = !{!18, !16, i64 8}
!25 = !{!14, !20, i64 1084}
!26 = !{!21, !21, i64 0}
!27 = !{!20, !20, i64 0}
!28 = !{!14, !20, i64 1085}
!29 = !{!14, !20, i64 1332}
!30 = !{!14, !10, i64 1444}


; 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, %"struct.ImGuizmo::Style", 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, 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], float, 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.ImGuizmo::Style" = type { float, float, float, float, float, float, float, float, [15 x %struct.ImVec4] }
%struct.ImVec4 = type { float, float, float, float }
%struct.ImVec2 = type { float, float }
%"struct.ImGuizmo::vec_t" = type { float, float, float, float }
%"struct.ImGuizmo::matrix_t" = type { %union.anon }
%union.anon = type { [4 x [4 x float]] }

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { <2 x float>, <2 x float> } @_ZN8ImGuizmo8makeVectEffff(float noundef, float noundef, float noundef, float noundef) local_unnamed_addr #1

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

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

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

16:                                               ; preds = %15, %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
  %17 = 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)
  %18 = extractvalue { <2 x float>, <2 x float> } %17, 0
  store <2 x float> %18, ptr %11, align 8
  %19 = getelementptr inbounds i8, ptr %11, i64 8
  %20 = extractvalue { <2 x float>, <2 x float> } %17, 1
  store <2 x float> %20, ptr %19, 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 732))
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #4
  %21 = load i8, ptr getelementptr inbounds (i8, ptr @_ZN8ImGuizmoL8gContextE, i64 1432), align 8, !tbaa !5, !range !19, !noundef !20
  %22 = trunc nuw i8 %21 to i1
  %23 = getelementptr inbounds i8, ptr %10, i64 8
  %24 = load float, ptr %23, align 4
  %25 = fcmp uge float %24, 0x3F50624DE0000000
  %or.cond.not = select i1 %22, i1 true, i1 %25
  br i1 %or.cond.not, label %29, label %26

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

29:                                               ; preds = %26, %16
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #4
  store i32 0, ptr %12, align 4, !tbaa !22
  %30 = load i8, ptr getelementptr inbounds (i8, ptr @_ZN8ImGuizmoL8gContextE, i64 1085), align 1, !tbaa !23, !range !19, !noundef !20
  %31 = trunc nuw i8 %30 to i1
  br i1 %31, label %32, label %41

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

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

37:                                               ; preds = %35
  %38 = call noundef zeroext i1 @_ZN8ImGuizmoL11HandleScaleEPfS0_NS_9OPERATIONERiPKf(ptr noundef %4, ptr noundef %5, i32 noundef %2, ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef %6)
  br i1 %38, label %41, label %39

39:                                               ; preds = %37
  %40 = call noundef zeroext i1 @_ZN8ImGuizmoL14HandleRotationEPfS0_NS_9OPERATIONERiPKf(ptr noundef %4, ptr noundef %5, i32 noundef %2, ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef %6)
  br label %41

41:                                               ; preds = %35, %37, %39, %32, %29
  %.0 = phi i1 [ false, %32 ], [ false, %29 ], [ true, %37 ], [ true, %35 ], [ %40, %39 ]
  %.not = icmp eq ptr %7, null
  br i1 %.not, label %46, label %42

42:                                               ; preds = %41
  %43 = load i8, ptr getelementptr inbounds (i8, ptr @_ZN8ImGuizmoL8gContextE, i64 1084), align 4, !tbaa !21, !range !19, !noundef !20
  %44 = trunc nuw i8 %43 to i1
  br i1 %44, label %46, label %45

45:                                               ; preds = %42
  call void @_ZN8ImGuizmoL24HandleAndDrawLocalBoundsEPKfPNS_8matrix_tES1_NS_9OPERATIONE(ptr noundef nonnull %7, ptr noundef %4, ptr noundef %8, i32 noundef %2)
  br label %46

46:                                               ; preds = %45, %42, %41
  store i32 %2, ptr getelementptr inbounds (i8, ptr @_ZN8ImGuizmoL8gContextE, i64 1444), align 4, !tbaa !25
  %47 = load i8, ptr getelementptr inbounds (i8, ptr @_ZN8ImGuizmoL8gContextE, i64 1332), align 4, !tbaa !24, !range !19, !noundef !20
  %48 = trunc nuw i8 %47 to i1
  br i1 %48, label %54, label %49

49:                                               ; preds = %46
  %50 = load i32, ptr %12, align 4, !tbaa !22
  call void @_ZN8ImGuizmoL17DrawRotationGizmoENS_9OPERATIONEi(i32 noundef %2, i32 noundef %50)
  %51 = load i32, ptr %12, align 4, !tbaa !22
  call void @_ZN8ImGuizmoL20DrawTranslationGizmoENS_9OPERATIONEi(i32 noundef %2, i32 noundef %51)
  %52 = load i32, ptr %12, align 4, !tbaa !22
  call void @_ZN8ImGuizmoL14DrawScaleGizmoENS_9OPERATIONEi(i32 noundef %2, i32 noundef %52)
  %53 = load i32, ptr %12, align 4, !tbaa !22
  call void @_ZN8ImGuizmoL22DrawScaleUniveralGizmoENS_9OPERATIONEi(i32 noundef %2, i32 noundef %53)
  br label %54

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

55:                                               ; preds = %26, %54
  %.032 = phi i1 [ %.0, %54 ], [ false, %26 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #4
  ret i1 %.032
}

; 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, !16, i64 1432}
!6 = !{!"_ZTSN8ImGuizmo7ContextE", !7, i64 0, !10, i64 8, !12, i64 280, !13, i64 284, !13, i64 348, !13, i64 412, !13, i64 476, !13, i64 540, !13, i64 604, !13, i64 668, !13, i64 732, !13, i64 796, !13, i64 860, !14, i64 924, !14, i64 940, !14, i64 956, !14, i64 972, !14, i64 988, !14, i64 1004, !14, i64 1020, !11, i64 1036, !15, i64 1040, !15, i64 1048, !15, i64 1056, !11, i64 1064, !14, i64 1068, !16, i64 1084, !16, i64 1085, !16, i64 1086, !16, i64 1087, !14, i64 1088, !14, i64 1104, !14, i64 1120, !14, i64 1136, !14, i64 1152, !11, i64 1168, !11, i64 1172, !14, i64 1176, !14, i64 1192, !14, i64 1208, !11, i64 1224, !8, i64 1228, !8, i64 1231, !8, i64 1236, !11, i64 1248, !11, i64 1252, !14, i64 1256, !14, i64 1272, !14, i64 1288, !14, i64 1304, !17, i64 1320, !8, i64 1324, !16, i64 1332, !13, i64 1336, !17, i64 1400, !11, i64 1404, !11, i64 1408, !11, i64 1412, !11, i64 1416, !11, i64 1420, !11, i64 1424, !11, i64 1428, !16, i64 1432, !17, i64 1436, !17, i64 1440, !18, i64 1444, !16, i64 1448, !11, i64 1452}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSN8ImGuizmo5StyleE", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !8, i64 32}
!11 = !{!"float", !8, i64 0}
!12 = !{!"_ZTSN8ImGuizmo4MODEE", !8, i64 0}
!13 = !{!"_ZTSN8ImGuizmo8matrix_tE", !8, i64 0}
!14 = !{!"_ZTSN8ImGuizmo5vec_tE", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12}
!15 = !{!"_ZTS6ImVec2", !11, i64 0, !11, i64 4}
!16 = !{!"bool", !8, i64 0}
!17 = !{!"int", !8, i64 0}
!18 = !{!"_ZTSN8ImGuizmo9OPERATIONE", !8, i64 0}
!19 = !{i8 0, i8 2}
!20 = !{}
!21 = !{!6, !16, i64 1084}
!22 = !{!17, !17, i64 0}
!23 = !{!6, !16, i64 1085}
!24 = !{!6, !16, i64 1332}
!25 = !{!6, !18, i64 1444}


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