; LLVM IR from DarrenSweeney/3D-Physics-Engine :: Physics Engine/Imgui/imgui.ll (ZN5ImGui10BeginChildEPKcRK6ImVec2bi)

; 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.ImVec2 = type { float, float }
%struct.ImGuiWindow = type { ptr, i32, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, float, i8, i8, i8, i8, i8, i32, i8, i32, i32, i32, %struct.ImGuiDrawContext, %class.ImVector.11, %class.ImVector.12, %struct.ImGuiAabb, i32, float, %struct.ImGuiStorage, float, ptr, ptr, i32, i32, i32, i32, i32, i32 }
%struct.ImGuiDrawContext = type { %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, float, float, i32, i32, %struct.ImGuiAabb, i8, %class.ImVector.1, %class.ImVector.9, %class.ImVector.10, %class.ImVector.10, i32, ptr, float, float, i32, i32, %struct.ImVec2, float, float, i8, i32, %class.ImVector.10 }
%class.ImVector.1 = type { i64, i64, ptr }
%class.ImVector.9 = type { i64, i64, ptr }
%class.ImVector.10 = type { i64, i64, ptr }
%class.ImVector.11 = type { i64, i64, ptr }
%class.ImVector.12 = type { i64, i64, ptr }
%struct.ImGuiAabb = type { %struct.ImVec2, %struct.ImVec2 }
%struct.ImGuiStorage = type { %class.ImVector.6 }
%class.ImVector.6 = type { i64, i64, ptr }
%struct.ImGuiState = type { i8, [7 x i8], %struct.ImGuiIO, %struct.ImGuiStyle, ptr, float, %struct.ImVec2, float, i32, i32, %class.ImVector.1, ptr, %class.ImVector.1, ptr, ptr, ptr, i32, i32, i32, i8, i8, ptr, float, %class.ImVector.2, %class.ImVector.3, %class.ImVector.4, %class.ImVector, %struct.ImVec2, i32, %struct.ImVec2, i32, i8, i32, i8, i8, i32, %class.ImVector.5, %class.ImVector.1, %struct.ImGuiTextEditState, i32, %struct.ImGuiStorage, i32, [1024 x i8], ptr, i8, ptr, ptr, i32, i32, [120 x float], i32, float }
%struct.ImGuiIO = type <{ %struct.ImVec2, float, float, ptr, ptr, float, float, [17 x i32], [4 x i8], ptr, ptr, float, i8, [3 x i8], %struct.ImVec2, %struct.ImVec2, ptr, ptr, ptr, ptr, ptr, ptr, ptr, %struct.ImVec2, [5 x i8], [3 x i8], float, i8, i8, i8, [512 x i8], i8, [17 x i16], i8, i8, float, %struct.ImVec2, %struct.ImVec2, [5 x i8], [3 x i8], [5 x %struct.ImVec2], [5 x float], [5 x i8], [5 x i8], [2 x i8], [5 x float], [512 x float], [4 x i8] }>
%struct.ImGuiStyle = type { float, %struct.ImVec2, %struct.ImVec2, float, float, %struct.ImVec2, float, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, float, float, float, [39 x %struct.ImVec4] }
%struct.ImVec4 = type { float, float, float, float }
%class.ImVector.2 = type { i64, i64, ptr }
%class.ImVector.3 = type { i64, i64, ptr }
%class.ImVector.4 = type { i64, i64, ptr }
%class.ImVector = type { i64, i64, ptr }
%class.ImVector.5 = type { i64, i64, ptr }
%struct.ImGuiTextEditState = type <{ i32, [1024 x i16], [3073 x i8], [3 x i8], i64, float, float, %struct.STB_TexteditState, float, %struct.ImVec2, i8, [7 x i8], ptr, float, [4 x i8] }>
%struct.STB_TexteditState = type { i32, i32, i32, i8, i8, i8, i8, i8, i8, i8, i8, float, %struct.StbUndoState }
%struct.StbUndoState = type { [99 x %struct.StbUndoRecord], [999 x i16], i16, i16, i16, i16 }
%struct.StbUndoRecord = type { i32, i16, i16, i16 }

@_ZL6GImGui = external hidden global ptr, align 8
@.str.28 = external hidden unnamed_addr constant [6 x i8], align 1

; 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fabs.f32(float) #2

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i64 @_ZL14ImFormatStringPcmPKcz(ptr noundef, i64 noundef, ptr noundef, ...) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef ptr @_ZL16GetCurrentWindowv() #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5ImGui5BeginEPKcPbRK6ImVec2fi(ptr noundef, ptr noundef, ptr noundef nonnull align 4 dereferenceable(8), float noundef, i32 noundef) #5

; Function Attrs: inlinehint mustprogress uwtable
declare hidden <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #6

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN5ImGui10BeginChildEPKcRK6ImVec2bi(ptr noundef %0, ptr noundef nonnull align 4 dereferenceable(8) %1, i1 noundef zeroext %2, i32 noundef %3) #5 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i8, align 1
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca %struct.ImVec2, align 4
  %13 = alloca %struct.ImVec2, align 4
  %14 = alloca %struct.ImVec2, align 4
  %15 = alloca %struct.ImVec2, align 4
  %16 = alloca %struct.ImVec2, align 4
  %17 = alloca [256 x i8], align 16
  %18 = alloca float, align 4
  %19 = alloca i8, align 1
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  %20 = zext i1 %2 to i8
  store i8 %20, ptr %7, align 1, !tbaa !9
  store i32 %3, ptr %8, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %21 = load ptr, ptr @_ZL6GImGui, align 8, !tbaa !5
  store ptr %21, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %22 = call noundef ptr @_ZL16GetCurrentWindowv()
  store ptr %22, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  store i32 775, ptr %11, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %23 = load ptr, ptr %10, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.ImGuiWindow, ptr %23, i32 0, i32 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %25 = call <2 x float> @_ZN5ImGui19GetContentRegionMaxEv()
  store <2 x float> %25, ptr %13, align 4
  %26 = call <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %24, ptr noundef nonnull align 4 dereferenceable(8) %13)
  store <2 x float> %26, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %27 = load ptr, ptr %10, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.ImGuiWindow, ptr %27, i32 0, i32 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %29 = call <2 x float> @_ZN5ImGui12GetCursorPosEv()
  store <2 x float> %29, ptr %15, align 4
  %30 = call <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %28, ptr noundef nonnull align 4 dereferenceable(8) %15)
  store <2 x float> %30, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %16, ptr align 4 %31, i64 8, i1 false), !tbaa.struct !13
  %32 = getelementptr inbounds %struct.ImVec2, ptr %16, i32 0, i32 0
  %33 = load float, ptr %32, align 4, !tbaa !16
  %34 = fcmp ole float %33, 0.000000e+00
  br i1 %34, label %35, label %59

35:                                               ; preds = %4
  %36 = getelementptr inbounds %struct.ImVec2, ptr %16, i32 0, i32 0
  %37 = load float, ptr %36, align 4, !tbaa !16
  %38 = fcmp oeq float %37, 0.000000e+00
  br i1 %38, label %39, label %42

39:                                               ; preds = %35
  %40 = load i32, ptr %11, align 4, !tbaa !11
  %41 = or i32 %40, 1024
  store i32 %41, ptr %11, align 4, !tbaa !11
  br label %42

42:                                               ; preds = %39, %35
  %43 = getelementptr inbounds %struct.ImVec2, ptr %12, i32 0, i32 0
  %44 = load float, ptr %43, align 4, !tbaa !16
  %45 = getelementptr inbounds %struct.ImVec2, ptr %14, i32 0, i32 0
  %46 = load float, ptr %45, align 4, !tbaa !16
  %47 = fsub float %44, %46
  %48 = load ptr, ptr %9, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.ImGuiState, ptr %48, i32 0, i32 3
  %50 = getelementptr inbounds %struct.ImGuiStyle, ptr %49, i32 0, i32 2
  %51 = getelementptr inbounds %struct.ImVec2, ptr %50, i32 0, i32 0
  %52 = load float, ptr %51, align 4, !tbaa !18
  %53 = call noundef float @_ZL5ImMaxff(float noundef %47, float noundef %52)
  %54 = getelementptr inbounds %struct.ImVec2, ptr %16, i32 0, i32 0
  %55 = load float, ptr %54, align 4, !tbaa !16
  %56 = call float @llvm.fabs.f32(float %55)
  %57 = fsub float %53, %56
  %58 = getelementptr inbounds %struct.ImVec2, ptr %16, i32 0, i32 0
  store float %57, ptr %58, align 4, !tbaa !16
  br label %59

59:                                               ; preds = %42, %4
  %60 = getelementptr inbounds %struct.ImVec2, ptr %16, i32 0, i32 1
  %61 = load float, ptr %60, align 4, !tbaa !35
  %62 = fcmp ole float %61, 0.000000e+00
  br i1 %62, label %63, label %87

63:                                               ; preds = %59
  %64 = getelementptr inbounds %struct.ImVec2, ptr %16, i32 0, i32 1
  %65 = load float, ptr %64, align 4, !tbaa !35
  %66 = fcmp oeq float %65, 0.000000e+00
  br i1 %66, label %67, label %70

67:                                               ; preds = %63
  %68 = load i32, ptr %11, align 4, !tbaa !11
  %69 = or i32 %68, 2048
  store i32 %69, ptr %11, align 4, !tbaa !11
  br label %70

70:                                               ; preds = %67, %63
  %71 = getelementptr inbounds %struct.ImVec2, ptr %12, i32 0, i32 1
  %72 = load float, ptr %71, align 4, !tbaa !35
  %73 = getelementptr inbounds %struct.ImVec2, ptr %14, i32 0, i32 1
  %74 = load float, ptr %73, align 4, !tbaa !35
  %75 = fsub float %72, %74
  %76 = load ptr, ptr %9, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.ImGuiState, ptr %76, i32 0, i32 3
  %78 = getelementptr inbounds %struct.ImGuiStyle, ptr %77, i32 0, i32 2
  %79 = getelementptr inbounds %struct.ImVec2, ptr %78, i32 0, i32 1
  %80 = load float, ptr %79, align 4, !tbaa !36
  %81 = call noundef float @_ZL5ImMaxff(float noundef %75, float noundef %80)
  %82 = getelementptr inbounds %struct.ImVec2, ptr %16, i32 0, i32 1
  %83 = load float, ptr %82, align 4, !tbaa !35
  %84 = call float @llvm.fabs.f32(float %83)
  %85 = fsub float %81, %84
  %86 = getelementptr inbounds %struct.ImVec2, ptr %16, i32 0, i32 1
  store float %85, ptr %86, align 4, !tbaa !35
  br label %87

87:                                               ; preds = %70, %59
  %88 = load i8, ptr %7, align 1, !tbaa !9, !range !37, !noundef !38
  %89 = trunc i8 %88 to i1
  br i1 %89, label %90, label %93

90:                                               ; preds = %87
  %91 = load i32, ptr %11, align 4, !tbaa !11
  %92 = or i32 %91, 128
  store i32 %92, ptr %11, align 4, !tbaa !11
  br label %93

93:                                               ; preds = %90, %87
  %94 = load i32, ptr %8, align 4, !tbaa !11
  %95 = load i32, ptr %11, align 4, !tbaa !11
  %96 = or i32 %95, %94
  store i32 %96, ptr %11, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 256, ptr %17) #7
  %97 = getelementptr inbounds [256 x i8], ptr %17, i64 0, i64 0
  %98 = load ptr, ptr %10, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.ImGuiWindow, ptr %98, i32 0, i32 0
  %100 = load ptr, ptr %99, align 8, !tbaa !39
  %101 = load ptr, ptr %5, align 8, !tbaa !5
  %102 = call noundef i64 (ptr, i64, ptr, ...) @_ZL14ImFormatStringPcmPKcz(ptr noundef %97, i64 noundef 256, ptr noundef @.str.28, ptr noundef %100, ptr noundef %101)
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  store float 1.000000e+00, ptr %18, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #7
  %103 = getelementptr inbounds [256 x i8], ptr %17, i64 0, i64 0
  %104 = load i32, ptr %11, align 4, !tbaa !11
  %105 = call noundef zeroext i1 @_ZN5ImGui5BeginEPKcPbRK6ImVec2fi(ptr noundef %103, ptr noundef null, ptr noundef nonnull align 4 dereferenceable(8) %16, float noundef 1.000000e+00, i32 noundef %104)
  %106 = zext i1 %105 to i8
  store i8 %106, ptr %19, align 1, !tbaa !9
  %107 = load ptr, ptr %10, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.ImGuiWindow, ptr %107, i32 0, i32 2
  %109 = load i32, ptr %108, align 4, !tbaa !47
  %110 = and i32 %109, 128
  %111 = icmp ne i32 %110, 0
  br i1 %111, label %119, label %112

112:                                              ; preds = %93
  %113 = load ptr, ptr %9, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.ImGuiState, ptr %113, i32 0, i32 11
  %115 = load ptr, ptr %114, align 8, !tbaa !48
  %116 = getelementptr inbounds %struct.ImGuiWindow, ptr %115, i32 0, i32 2
  %117 = load i32, ptr %116, align 4, !tbaa !47
  %118 = and i32 %117, -129
  store i32 %118, ptr %116, align 4, !tbaa !47
  br label %119

119:                                              ; preds = %112, %93
  %120 = load i8, ptr %19, align 1, !tbaa !9, !range !37, !noundef !38
  %121 = trunc i8 %120 to i1
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 256, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  ret i1 %121
}

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_ZN5ImGui19GetContentRegionMaxEv() #5

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_ZN5ImGui12GetCursorPosEv() #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef float @_ZL5ImMaxff(float noundef, float noundef) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { 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 #4 = { inlinehint 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 #5 = { 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 #6 = { inlinehint 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 #7 = { 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 = !{!"bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{i64 0, i64 4, !14, i64 4, i64 4, !14}
!14 = !{!15, !15, i64 0}
!15 = !{!"float", !7, i64 0}
!16 = !{!17, !15, i64 0}
!17 = !{!"_ZTS6ImVec2", !15, i64 0, !15, i64 4}
!18 = !{!19, !15, i64 2972}
!19 = !{!"_ZTS10ImGuiState", !10, i64 0, !20, i64 8, !21, i64 2960, !6, i64 3672, !15, i64 3680, !17, i64 3684, !15, i64 3692, !12, i64 3696, !12, i64 3700, !22, i64 3704, !6, i64 3728, !22, i64 3736, !6, i64 3760, !6, i64 3768, !6, i64 3776, !12, i64 3784, !12, i64 3788, !12, i64 3792, !10, i64 3796, !10, i64 3797, !6, i64 3800, !15, i64 3808, !24, i64 3816, !25, i64 3840, !26, i64 3864, !27, i64 3888, !17, i64 3912, !12, i64 3920, !17, i64 3924, !12, i64 3932, !10, i64 3936, !12, i64 3940, !10, i64 3944, !10, i64 3945, !12, i64 3948, !28, i64 3952, !22, i64 3976, !29, i64 4000, !12, i64 12400, !33, i64 12408, !12, i64 12432, !7, i64 12436, !6, i64 13464, !10, i64 13472, !6, i64 13480, !6, i64 13488, !12, i64 13496, !12, i64 13500, !7, i64 13504, !12, i64 13984, !15, i64 13988}
!20 = !{!"_ZTS7ImGuiIO", !17, i64 0, !15, i64 8, !15, i64 12, !6, i64 16, !6, i64 24, !15, i64 32, !15, i64 36, !7, i64 40, !6, i64 112, !6, i64 120, !15, i64 128, !10, i64 132, !17, i64 136, !17, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !17, i64 208, !7, i64 216, !15, i64 224, !10, i64 228, !10, i64 229, !10, i64 230, !7, i64 231, !7, i64 744, !10, i64 778, !10, i64 779, !15, i64 780, !17, i64 784, !17, i64 792, !7, i64 800, !7, i64 808, !7, i64 848, !7, i64 868, !7, i64 873, !7, i64 880, !7, i64 900}
!21 = !{!"_ZTS10ImGuiStyle", !15, i64 0, !17, i64 4, !17, i64 12, !15, i64 20, !15, i64 24, !17, i64 28, !15, i64 36, !17, i64 40, !17, i64 48, !17, i64 56, !17, i64 64, !15, i64 72, !15, i64 76, !15, i64 80, !15, i64 84, !7, i64 88}
!22 = !{!"_ZTS8ImVectorIP11ImGuiWindowE", !23, i64 0, !23, i64 8, !6, i64 16}
!23 = !{!"long", !7, i64 0}
!24 = !{!"_ZTS8ImVectorIP12ImGuiIniDataE", !23, i64 0, !23, i64 8, !6, i64 16}
!25 = !{!"_ZTS8ImVectorI11ImGuiColModE", !23, i64 0, !23, i64 8, !6, i64 16}
!26 = !{!"_ZTS8ImVectorI13ImGuiStyleModE", !23, i64 0, !23, i64 8, !6, i64 16}
!27 = !{!"_ZTS8ImVectorIP6ImFontE", !23, i64 0, !23, i64 8, !6, i64 16}
!28 = !{!"_ZTS8ImVectorIP10ImDrawListE", !23, i64 0, !23, i64 8, !6, i64 16}
!29 = !{!"_ZTS18ImGuiTextEditState", !12, i64 0, !7, i64 4, !7, i64 2052, !23, i64 5128, !15, i64 5136, !15, i64 5140, !30, i64 5144, !15, i64 8364, !17, i64 8368, !10, i64 8376, !6, i64 8384, !15, i64 8392}
!30 = !{!"_ZTS17STB_TexteditState", !12, i64 0, !12, i64 4, !12, i64 8, !7, i64 12, !7, i64 13, !7, i64 14, !7, i64 15, !7, i64 16, !7, i64 17, !7, i64 18, !7, i64 19, !15, i64 20, !31, i64 24}
!31 = !{!"_ZTS12StbUndoState", !7, i64 0, !7, i64 1188, !32, i64 3186, !32, i64 3188, !32, i64 3190, !32, i64 3192}
!32 = !{!"short", !7, i64 0}
!33 = !{!"_ZTS12ImGuiStorage", !34, i64 0}
!34 = !{!"_ZTS8ImVectorIN12ImGuiStorage4PairEE", !23, i64 0, !23, i64 8, !6, i64 16}
!35 = !{!17, !15, i64 4}
!36 = !{!19, !15, i64 2976}
!37 = !{i8 0, i8 2}
!38 = !{}
!39 = !{!40, !6, i64 0}
!40 = !{!"_ZTS11ImGuiWindow", !6, i64 0, !12, i64 8, !12, i64 12, !17, i64 16, !17, i64 24, !17, i64 32, !17, i64 40, !17, i64 48, !15, i64 56, !15, i64 60, !10, i64 64, !10, i64 65, !10, i64 66, !10, i64 67, !10, i64 68, !12, i64 72, !10, i64 76, !12, i64 80, !12, i64 84, !12, i64 88, !41, i64 96, !45, i64 336, !46, i64 360, !42, i64 384, !12, i64 400, !15, i64 404, !33, i64 408, !15, i64 432, !6, i64 440, !6, i64 448, !12, i64 456, !12, i64 460, !12, i64 464, !12, i64 468, !12, i64 472, !12, i64 476}
!41 = !{!"_ZTS16ImGuiDrawContext", !17, i64 0, !17, i64 8, !17, i64 16, !15, i64 24, !15, i64 28, !15, i64 32, !12, i64 36, !12, i64 40, !42, i64 44, !10, i64 60, !22, i64 64, !43, i64 88, !44, i64 112, !44, i64 136, !12, i64 160, !6, i64 168, !15, i64 176, !15, i64 180, !12, i64 184, !12, i64 188, !17, i64 192, !15, i64 200, !15, i64 204, !10, i64 208, !12, i64 212, !44, i64 216}
!42 = !{!"_ZTS9ImGuiAabb", !17, i64 0, !17, i64 8}
!43 = !{!"_ZTS8ImVectorIbE", !23, i64 0, !23, i64 8, !6, i64 16}
!44 = !{!"_ZTS8ImVectorIfE", !23, i64 0, !23, i64 8, !6, i64 16}
!45 = !{!"_ZTS8ImVectorIjE", !23, i64 0, !23, i64 8, !6, i64 16}
!46 = !{!"_ZTS8ImVectorI6ImVec4E", !23, i64 0, !23, i64 8, !6, i64 16}
!47 = !{!40, !12, i64 12}
!48 = !{!19, !6, i64 3728}


; 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.ImVec2 = type { float, float }

@_ZL6GImGui = external hidden local_unnamed_addr global ptr, align 8
@.str.28 = external hidden unnamed_addr constant [6 x i8], align 1

; 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 nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fabs.f32(float) #1

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i64 @_ZL14ImFormatStringPcmPKcz(ptr noundef, i64 noundef, ptr noundef, ...) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef ptr @_ZL16GetCurrentWindowv() local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5ImGui5BeginEPKcPbRK6ImVec2fi(ptr noundef, ptr noundef, ptr noundef nonnull align 4 dereferenceable(8), float noundef, i32 noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare hidden <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN5ImGui10BeginChildEPKcRK6ImVec2bi(ptr noundef %0, ptr nocapture noundef nonnull readonly align 4 dereferenceable(8) %1, i1 noundef zeroext %2, i32 noundef %3) local_unnamed_addr #4 {
  %5 = alloca %struct.ImVec2, align 8
  %6 = alloca %struct.ImVec2, align 8
  %7 = alloca %struct.ImVec2, align 8
  %8 = alloca [256 x i8], align 16
  %9 = load ptr, ptr @_ZL6GImGui, align 8, !tbaa !5
  %10 = tail call noundef ptr @_ZL16GetCurrentWindowv()
  %11 = getelementptr inbounds i8, ptr %10, i64 24
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  %12 = tail call <2 x float> @_ZN5ImGui19GetContentRegionMaxEv()
  store <2 x float> %12, ptr %5, align 8
  %13 = call <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(8) %5)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  %14 = call <2 x float> @_ZN5ImGui12GetCursorPosEv()
  store <2 x float> %14, ptr %6, align 8
  %15 = call <2 x float> @_ZplRK6ImVec2S1_(ptr noundef nonnull align 4 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(8) %6)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  %16 = load i64, ptr %1, align 4
  store i64 %16, ptr %7, align 8
  %17 = trunc i64 %16 to i32
  %18 = bitcast i32 %17 to float
  %19 = fcmp ugt float %18, 0.000000e+00
  %20 = lshr i64 %16, 32
  %21 = trunc nuw i64 %20 to i32
  %22 = bitcast i32 %21 to float
  br i1 %19, label %32, label %23

23:                                               ; preds = %4
  %24 = fcmp oeq float %18, 0.000000e+00
  %.0 = select i1 %24, i32 1799, i32 775
  %25 = fsub <2 x float> %13, %15
  %26 = extractelement <2 x float> %25, i64 0
  %27 = getelementptr inbounds i8, ptr %9, i64 2972
  %28 = load float, ptr %27, align 4, !tbaa !9
  %29 = call noundef float @_ZL5ImMaxff(float noundef %26, float noundef %28)
  %30 = call float @llvm.fabs.f32(float %18)
  %31 = fsub float %29, %30
  store float %31, ptr %7, align 8, !tbaa !30
  br label %32

32:                                               ; preds = %23, %4
  %.1 = phi i32 [ %.0, %23 ], [ 775, %4 ]
  %33 = fcmp ugt float %22, 0.000000e+00
  br i1 %33, label %45, label %34

34:                                               ; preds = %32
  %35 = getelementptr inbounds i8, ptr %7, i64 4
  %36 = fcmp oeq float %22, 0.000000e+00
  %37 = or disjoint i32 %.1, 2048
  %.2 = select i1 %36, i32 %37, i32 %.1
  %38 = fsub <2 x float> %13, %15
  %39 = extractelement <2 x float> %38, i64 1
  %40 = getelementptr inbounds i8, ptr %9, i64 2976
  %41 = load float, ptr %40, align 4, !tbaa !31
  %42 = call noundef float @_ZL5ImMaxff(float noundef %39, float noundef %41)
  %43 = call float @llvm.fabs.f32(float %22)
  %44 = fsub float %42, %43
  store float %44, ptr %35, align 4, !tbaa !32
  br label %45

45:                                               ; preds = %34, %32
  %.3 = phi i32 [ %.2, %34 ], [ %.1, %32 ]
  %46 = or i32 %.3, 128
  %spec.select = select i1 %2, i32 %46, i32 %.3
  %47 = or i32 %spec.select, %3
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %8) #6
  %48 = load ptr, ptr %10, align 8, !tbaa !33
  %49 = call noundef i64 (ptr, i64, ptr, ...) @_ZL14ImFormatStringPcmPKcz(ptr noundef nonnull %8, i64 noundef 256, ptr noundef nonnull @.str.28, ptr noundef %48, ptr noundef %0)
  %50 = call noundef zeroext i1 @_ZN5ImGui5BeginEPKcPbRK6ImVec2fi(ptr noundef nonnull %8, ptr noundef null, ptr noundef nonnull align 4 dereferenceable(8) %7, float noundef 1.000000e+00, i32 noundef %47)
  %51 = getelementptr inbounds i8, ptr %10, i64 12
  %52 = load i32, ptr %51, align 4, !tbaa !41
  %53 = and i32 %52, 128
  %.not = icmp eq i32 %53, 0
  br i1 %.not, label %54, label %60

54:                                               ; preds = %45
  %55 = getelementptr inbounds i8, ptr %9, i64 3728
  %56 = load ptr, ptr %55, align 8, !tbaa !42
  %57 = getelementptr inbounds i8, ptr %56, i64 12
  %58 = load i32, ptr %57, align 4, !tbaa !41
  %59 = and i32 %58, -129
  store i32 %59, ptr %57, align 4, !tbaa !41
  br label %60

60:                                               ; preds = %54, %45
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  ret i1 %50
}

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_ZN5ImGui19GetContentRegionMaxEv() local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_ZN5ImGui12GetCursorPosEv() local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef float @_ZL5ImMaxff(float noundef, float noundef) local_unnamed_addr #3

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { 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 #3 = { inlinehint 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 #4 = { 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 #5 = { inlinehint 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 #6 = { 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, !14, i64 2972}
!10 = !{!"_ZTS10ImGuiState", !11, i64 0, !12, i64 8, !15, i64 2960, !6, i64 3672, !14, i64 3680, !13, i64 3684, !14, i64 3692, !16, i64 3696, !16, i64 3700, !17, i64 3704, !6, i64 3728, !17, i64 3736, !6, i64 3760, !6, i64 3768, !6, i64 3776, !16, i64 3784, !16, i64 3788, !16, i64 3792, !11, i64 3796, !11, i64 3797, !6, i64 3800, !14, i64 3808, !19, i64 3816, !20, i64 3840, !21, i64 3864, !22, i64 3888, !13, i64 3912, !16, i64 3920, !13, i64 3924, !16, i64 3932, !11, i64 3936, !16, i64 3940, !11, i64 3944, !11, i64 3945, !16, i64 3948, !23, i64 3952, !17, i64 3976, !24, i64 4000, !16, i64 12400, !28, i64 12408, !16, i64 12432, !7, i64 12436, !6, i64 13464, !11, i64 13472, !6, i64 13480, !6, i64 13488, !16, i64 13496, !16, i64 13500, !7, i64 13504, !16, i64 13984, !14, i64 13988}
!11 = !{!"bool", !7, i64 0}
!12 = !{!"_ZTS7ImGuiIO", !13, i64 0, !14, i64 8, !14, i64 12, !6, i64 16, !6, i64 24, !14, i64 32, !14, i64 36, !7, i64 40, !6, i64 112, !6, i64 120, !14, i64 128, !11, i64 132, !13, i64 136, !13, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !13, i64 208, !7, i64 216, !14, i64 224, !11, i64 228, !11, i64 229, !11, i64 230, !7, i64 231, !7, i64 744, !11, i64 778, !11, i64 779, !14, i64 780, !13, i64 784, !13, i64 792, !7, i64 800, !7, i64 808, !7, i64 848, !7, i64 868, !7, i64 873, !7, i64 880, !7, i64 900}
!13 = !{!"_ZTS6ImVec2", !14, i64 0, !14, i64 4}
!14 = !{!"float", !7, i64 0}
!15 = !{!"_ZTS10ImGuiStyle", !14, i64 0, !13, i64 4, !13, i64 12, !14, i64 20, !14, i64 24, !13, i64 28, !14, i64 36, !13, i64 40, !13, i64 48, !13, i64 56, !13, i64 64, !14, i64 72, !14, i64 76, !14, i64 80, !14, i64 84, !7, i64 88}
!16 = !{!"int", !7, i64 0}
!17 = !{!"_ZTS8ImVectorIP11ImGuiWindowE", !18, i64 0, !18, i64 8, !6, i64 16}
!18 = !{!"long", !7, i64 0}
!19 = !{!"_ZTS8ImVectorIP12ImGuiIniDataE", !18, i64 0, !18, i64 8, !6, i64 16}
!20 = !{!"_ZTS8ImVectorI11ImGuiColModE", !18, i64 0, !18, i64 8, !6, i64 16}
!21 = !{!"_ZTS8ImVectorI13ImGuiStyleModE", !18, i64 0, !18, i64 8, !6, i64 16}
!22 = !{!"_ZTS8ImVectorIP6ImFontE", !18, i64 0, !18, i64 8, !6, i64 16}
!23 = !{!"_ZTS8ImVectorIP10ImDrawListE", !18, i64 0, !18, i64 8, !6, i64 16}
!24 = !{!"_ZTS18ImGuiTextEditState", !16, i64 0, !7, i64 4, !7, i64 2052, !18, i64 5128, !14, i64 5136, !14, i64 5140, !25, i64 5144, !14, i64 8364, !13, i64 8368, !11, i64 8376, !6, i64 8384, !14, i64 8392}
!25 = !{!"_ZTS17STB_TexteditState", !16, i64 0, !16, i64 4, !16, i64 8, !7, i64 12, !7, i64 13, !7, i64 14, !7, i64 15, !7, i64 16, !7, i64 17, !7, i64 18, !7, i64 19, !14, i64 20, !26, i64 24}
!26 = !{!"_ZTS12StbUndoState", !7, i64 0, !7, i64 1188, !27, i64 3186, !27, i64 3188, !27, i64 3190, !27, i64 3192}
!27 = !{!"short", !7, i64 0}
!28 = !{!"_ZTS12ImGuiStorage", !29, i64 0}
!29 = !{!"_ZTS8ImVectorIN12ImGuiStorage4PairEE", !18, i64 0, !18, i64 8, !6, i64 16}
!30 = !{!13, !14, i64 0}
!31 = !{!10, !14, i64 2976}
!32 = !{!13, !14, i64 4}
!33 = !{!34, !6, i64 0}
!34 = !{!"_ZTS11ImGuiWindow", !6, i64 0, !16, i64 8, !16, i64 12, !13, i64 16, !13, i64 24, !13, i64 32, !13, i64 40, !13, i64 48, !14, i64 56, !14, i64 60, !11, i64 64, !11, i64 65, !11, i64 66, !11, i64 67, !11, i64 68, !16, i64 72, !11, i64 76, !16, i64 80, !16, i64 84, !16, i64 88, !35, i64 96, !39, i64 336, !40, i64 360, !36, i64 384, !16, i64 400, !14, i64 404, !28, i64 408, !14, i64 432, !6, i64 440, !6, i64 448, !16, i64 456, !16, i64 460, !16, i64 464, !16, i64 468, !16, i64 472, !16, i64 476}
!35 = !{!"_ZTS16ImGuiDrawContext", !13, i64 0, !13, i64 8, !13, i64 16, !14, i64 24, !14, i64 28, !14, i64 32, !16, i64 36, !16, i64 40, !36, i64 44, !11, i64 60, !17, i64 64, !37, i64 88, !38, i64 112, !38, i64 136, !16, i64 160, !6, i64 168, !14, i64 176, !14, i64 180, !16, i64 184, !16, i64 188, !13, i64 192, !14, i64 200, !14, i64 204, !11, i64 208, !16, i64 212, !38, i64 216}
!36 = !{!"_ZTS9ImGuiAabb", !13, i64 0, !13, i64 8}
!37 = !{!"_ZTS8ImVectorIbE", !18, i64 0, !18, i64 8, !6, i64 16}
!38 = !{!"_ZTS8ImVectorIfE", !18, i64 0, !18, i64 8, !6, i64 16}
!39 = !{!"_ZTS8ImVectorIjE", !18, i64 0, !18, i64 8, !6, i64 16}
!40 = !{!"_ZTS8ImVectorI6ImVec4E", !18, i64 0, !18, i64 8, !6, i64 16}
!41 = !{!34, !16, i64 12}
!42 = !{!10, !6, i64 3728}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass,VectorCombinePass