; LLVM IR from Devaniti/BoolkaEngine :: ThirdParty/imgui/imgui_widgets.ll (ZN5ImGui15TempInputScalarERK6ImRectjPKciPvS4_PKvS7_)

; 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.ImGuiDataTypeTempStorage = type { [8 x i8] }
%struct.ImGuiDataTypeInfo = type { i64, ptr, ptr, ptr }
%struct.ImGuiContext = type <{ i8, i8, [6 x i8], %struct.ImGuiIO, %struct.ImGuiStyle, [4 x i8], ptr, float, float, %struct.ImDrawListSharedData, double, i32, i32, i32, i8, i8, i8, i8, i8, [3 x i8], i32, ptr, %struct.ImVector.0, %struct.ImVector.0, %struct.ImVector.0, %struct.ImVector.0, %struct.ImGuiStorage, i32, [4 x i8], ptr, ptr, ptr, ptr, ptr, ptr, %struct.ImVec2, float, i32, i32, i8, i8, i8, i8, float, float, i32, i32, float, i8, i8, i8, i8, i8, i8, i8, i8, i32, i32, [4 x i8], i64, %struct.ImVec2, ptr, i32, i32, i32, i8, i8, [2 x i8], ptr, i32, float, %struct.ImGuiNextWindowData, %struct.ImGuiNextItemData, [4 x i8], %struct.ImVector.11, %struct.ImVector.12, %struct.ImVector.13, %struct.ImVector, %struct.ImVector.14, %struct.ImVector.15, %struct.ImVector.16, %struct.ImVector.16, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, %struct.ImRect, i32, i32, i32, i8, i8, i8, i8, i8, i8, i8, i8, i32, %struct.ImRect, i8, [3 x i8], i32, i32, i32, i32, i32, i32, [4 x i8], %struct.ImGuiNavMoveResult, %struct.ImGuiNavMoveResult, %struct.ImGuiNavMoveResult, ptr, i32, [4 x i8], ptr, ptr, ptr, float, float, i8, [7 x i8], ptr, ptr, i32, i32, i32, i32, i8, [7 x i8], %struct.ImDrawData, %struct.ImDrawDataBuilder, float, [4 x i8], %struct.ImDrawList, %struct.ImDrawList, i32, i8, i8, i8, i8, i32, i32, i32, [4 x i8], %struct.ImGuiPayload, %struct.ImRect, i32, i32, float, i32, i32, i32, i32, [4 x i8], %struct.ImVector.18, [16 x i8], ptr, %struct.ImPool, %struct.ImVector.20, %struct.ImVector.1, %struct.ImVector.10, ptr, %struct.ImPool.21, %struct.ImVector.20, %struct.ImVector.24, %struct.ImVec2, %struct.ImGuiInputTextState, %struct.ImFont, i32, i32, float, float, [3 x float], %struct.ImVec4, float, i8, i8, [2 x i8], float, float, float, i32, float, %struct.ImVector.25, %struct.ImVector, %struct.ImVec2, %struct.ImVec2, i8, i8, [2 x i8], float, %struct.ImGuiTextBuffer, %struct.ImVector.27, %struct.ImChunkStream, %struct.ImChunkStream.28, %struct.ImVector.29, i8, [3 x i8], i32, ptr, %struct.ImGuiTextBuffer, float, i8, [3 x i8], i32, i32, i32, i8, [3 x i8], i32, %struct.ImGuiMetricsConfig, [120 x float], i32, float, i32, i32, i32, [3073 x i8], [7 x i8] }>
%struct.ImGuiIO = type { i32, i32, %struct.ImVec2, float, float, ptr, ptr, float, float, float, [22 x i32], float, float, ptr, ptr, float, i8, ptr, %struct.ImVec2, i8, i8, i8, i8, i8, i8, float, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, %struct.ImVec2, [5 x i8], float, float, i8, i8, i8, i8, [512 x i8], [21 x float], i8, i8, i8, i8, i8, i8, i8, float, i32, i32, i32, i32, i32, %struct.ImVec2, i32, %struct.ImVec2, [5 x %struct.ImVec2], [5 x double], [5 x i8], [5 x i8], [5 x i8], [5 x i8], [5 x i8], [5 x float], [5 x float], [5 x %struct.ImVec2], [5 x float], [512 x float], [512 x float], [21 x float], [21 x float], float, i16, %struct.ImVector.5 }
%struct.ImVector.5 = type { i32, i32, ptr }
%struct.ImGuiStyle = type { float, %struct.ImVec2, float, float, %struct.ImVec2, %struct.ImVec2, i32, float, float, float, float, %struct.ImVec2, float, float, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, float, float, float, float, float, float, float, float, float, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, i8, i8, i8, float, float, [53 x %struct.ImVec4] }
%struct.ImDrawListSharedData = type { %struct.ImVec2, ptr, float, float, float, %struct.ImVec4, i32, [12 x %struct.ImVec2], [64 x i8], ptr }
%struct.ImVector.0 = type { i32, i32, ptr }
%struct.ImGuiStorage = type { %struct.ImVector.2 }
%struct.ImVector.2 = type { i32, i32, ptr }
%struct.ImGuiNextWindowData = type <{ i32, i32, i32, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, i8, [3 x i8], %struct.ImRect, [4 x i8], ptr, ptr, float, %struct.ImVec2, [4 x i8] }>
%struct.ImGuiNextItemData = type <{ i32, float, i32, i32, i8, [3 x i8] }>
%struct.ImVector.11 = type { i32, i32, ptr }
%struct.ImVector.12 = type { i32, i32, ptr }
%struct.ImVector.13 = type { i32, i32, ptr }
%struct.ImVector.14 = type { i32, i32, ptr }
%struct.ImVector.15 = type { i32, i32, ptr }
%struct.ImVector.16 = type { i32, i32, ptr }
%struct.ImGuiNavMoveResult = type <{ ptr, i32, i32, float, float, float, %struct.ImRect, [4 x i8] }>
%struct.ImDrawData = type <{ i8, [7 x i8], ptr, i32, i32, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, [4 x i8] }>
%struct.ImDrawDataBuilder = type { [2 x %struct.ImVector.17] }
%struct.ImVector.17 = type { i32, i32, ptr }
%struct.ImDrawList = type <{ %struct.ImVector.4, %struct.ImVector.5, %struct.ImVector.6, i32, i32, ptr, ptr, ptr, ptr, %struct.ImVector.7, %struct.ImVector.8, %struct.ImVector.9, %struct.ImDrawCmdHeader, %struct.ImDrawListSplitter, float, [4 x i8] }>
%struct.ImVector.4 = type { i32, i32, ptr }
%struct.ImVector.6 = type { i32, i32, ptr }
%struct.ImVector.7 = type { i32, i32, ptr }
%struct.ImVector.8 = type { i32, i32, ptr }
%struct.ImVector.9 = type { i32, i32, ptr }
%struct.ImDrawCmdHeader = type <{ %struct.ImVec4, ptr, i32, [4 x i8] }>
%struct.ImDrawListSplitter = type { i32, i32, %struct.ImVector.10 }
%struct.ImGuiPayload = type <{ ptr, i32, i32, i32, i32, [33 x i8], i8, i8, [5 x i8] }>
%struct.ImRect = type { %struct.ImVec2, %struct.ImVec2 }
%struct.ImVector.18 = type { i32, i32, ptr }
%struct.ImPool = type <{ %struct.ImVector.19, %struct.ImGuiStorage, i32, [4 x i8] }>
%struct.ImVector.19 = type { i32, i32, ptr }
%struct.ImVector.1 = type { i32, i32, ptr }
%struct.ImVector.10 = type { i32, i32, ptr }
%struct.ImPool.21 = type <{ %struct.ImVector.22, %struct.ImGuiStorage, i32, [4 x i8] }>
%struct.ImVector.22 = type { i32, i32, ptr }
%struct.ImVector.20 = type { i32, i32, ptr }
%struct.ImVector.24 = type { i32, i32, ptr }
%struct.ImGuiInputTextState = type { i32, i32, i32, %struct.ImVector.5, %struct.ImVector.25, %struct.ImVector.25, i8, i32, float, %"struct.ImStb::STB_TexteditState", float, i8, i8, i8, i32, ptr, ptr }
%"struct.ImStb::STB_TexteditState" = type { i32, i32, i32, i8, i32, i8, i8, i8, i8, i8, i8, i8, float, %"struct.ImStb::StbUndoState" }
%"struct.ImStb::StbUndoState" = type { [99 x %"struct.ImStb::StbUndoRecord"], [999 x i16], i16, i16, i32, i32 }
%"struct.ImStb::StbUndoRecord" = type { i32, i32, i32, i32 }
%struct.ImFont = type <{ %struct.ImVector.1, float, float, %struct.ImVector.5, %struct.ImVector.26, ptr, ptr, ptr, i16, i16, i16, i8, i8, float, float, float, i32, [2 x i8], [6 x i8] }>
%struct.ImVector.26 = type { i32, i32, ptr }
%struct.ImVec4 = type { float, float, float, float }
%struct.ImVector.25 = type { i32, i32, ptr }
%struct.ImVector = type { i32, i32, ptr }
%struct.ImVec2 = type { float, float }
%struct.ImVector.27 = type { i32, i32, ptr }
%struct.ImChunkStream = type { %struct.ImVector.25 }
%struct.ImChunkStream.28 = type { %struct.ImVector.25 }
%struct.ImVector.29 = type { i32, i32, ptr }
%struct.ImGuiTextBuffer = type { %struct.ImVector.25 }
%struct.ImGuiMetricsConfig = type { i8, i8, i8, i8, i8, i32, i32 }

@GImGui = external global ptr, 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 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

declare void @_ZN5ImGui14MarkItemEditedEj(i32 noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN5ImGui15DataTypeGetInfoEi(i32 noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN5ImGui20DataTypeFormatStringEPciiPKvPKc(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5ImGui23DataTypeApplyOpFromTextEPKcS1_iPvS1_(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) #4

; Function Attrs: nounwind willreturn memory(read)
declare i32 @memcmp(ptr noundef, ptr noundef, i64 noundef) #5

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN5ImGui15DataTypeCompareEiPKvS1_(i32 noundef, ptr noundef, ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5ImGui13DataTypeClampEiPvPKvS2_(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #4

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN5ImGui15TempInputScalarERK6ImRectjPKciPvS4_PKvS7_(ptr noundef nonnull align 4 dereferenceable(16) %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7) #4 {
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca [32 x i8], align 16
  %19 = alloca [32 x i8], align 16
  %20 = alloca i32, align 4
  %21 = alloca i8, align 1
  %22 = alloca i64, align 8
  %23 = alloca %struct.ImGuiDataTypeTempStorage, align 1
  store ptr %0, ptr %9, align 8, !tbaa !5
  store i32 %1, ptr %10, align 4, !tbaa !9
  store ptr %2, ptr %11, align 8, !tbaa !5
  store i32 %3, ptr %12, align 4, !tbaa !9
  store ptr %4, ptr %13, align 8, !tbaa !5
  store ptr %5, ptr %14, align 8, !tbaa !5
  store ptr %6, ptr %15, align 8, !tbaa !5
  store ptr %7, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  %24 = load ptr, ptr @GImGui, align 8, !tbaa !5
  store ptr %24, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %18) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #8
  %25 = load ptr, ptr %14, align 8, !tbaa !5
  %26 = getelementptr inbounds [32 x i8], ptr %18, i64 0, i64 0
  %27 = call noundef ptr @_Z28ImParseFormatTrimDecorationsPKcPcm(ptr noundef %25, ptr noundef %26, i64 noundef 32)
  store ptr %27, ptr %14, align 8, !tbaa !5
  %28 = getelementptr inbounds [32 x i8], ptr %19, i64 0, i64 0
  %29 = load i32, ptr %12, align 4, !tbaa !9
  %30 = load ptr, ptr %13, align 8, !tbaa !5
  %31 = load ptr, ptr %14, align 8, !tbaa !5
  %32 = call noundef i32 @_ZN5ImGui20DataTypeFormatStringEPciiPKvPKc(ptr noundef %28, i32 noundef 32, i32 noundef %29, ptr noundef %30, ptr noundef %31)
  %33 = getelementptr inbounds [32 x i8], ptr %19, i64 0, i64 0
  call void @_Z15ImStrTrimBlanksPc(ptr noundef %33)
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  store i32 2097168, ptr %20, align 4, !tbaa !9
  %34 = load i32, ptr %12, align 4, !tbaa !9
  %35 = icmp eq i32 %34, 8
  br i1 %35, label %39, label %36

36:                                               ; preds = %8
  %37 = load i32, ptr %12, align 4, !tbaa !9
  %38 = icmp eq i32 %37, 9
  br label %39

39:                                               ; preds = %36, %8
  %40 = phi i1 [ true, %8 ], [ %38, %36 ]
  %41 = zext i1 %40 to i64
  %42 = select i1 %40, i32 131072, i32 1
  %43 = load i32, ptr %20, align 4, !tbaa !9
  %44 = or i32 %43, %42
  store i32 %44, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #8
  store i8 0, ptr %21, align 1, !tbaa !11
  %45 = load ptr, ptr %9, align 8, !tbaa !5
  %46 = load i32, ptr %10, align 4, !tbaa !9
  %47 = load ptr, ptr %11, align 8, !tbaa !5
  %48 = getelementptr inbounds [32 x i8], ptr %19, i64 0, i64 0
  %49 = load i32, ptr %20, align 4, !tbaa !9
  %50 = call noundef zeroext i1 @_ZN5ImGui13TempInputTextERK6ImRectjPKcPcii(ptr noundef nonnull align 4 dereferenceable(16) %45, i32 noundef %46, ptr noundef %47, ptr noundef %48, i32 noundef 32, i32 noundef %49)
  br i1 %50, label %51, label %96

51:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  %52 = load i32, ptr %12, align 4, !tbaa !9
  %53 = call noundef ptr @_ZN5ImGui15DataTypeGetInfoEi(i32 noundef %52)
  %54 = getelementptr inbounds %struct.ImGuiDataTypeInfo, ptr %53, i32 0, i32 0
  %55 = load i64, ptr %54, align 8, !tbaa !13
  store i64 %55, ptr %22, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  %56 = load ptr, ptr %13, align 8, !tbaa !5
  %57 = load i64, ptr %22, align 8, !tbaa !16
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %23, ptr align 1 %56, i64 %57, i1 false)
  %58 = getelementptr inbounds [32 x i8], ptr %19, i64 0, i64 0
  %59 = load ptr, ptr %17, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.ImGuiContext, ptr %59, i32 0, i32 176
  %61 = getelementptr inbounds %struct.ImGuiInputTextState, ptr %60, i32 0, i32 5
  %62 = getelementptr inbounds %struct.ImVector.25, ptr %61, i32 0, i32 2
  %63 = load ptr, ptr %62, align 8, !tbaa !17
  %64 = load i32, ptr %12, align 4, !tbaa !9
  %65 = load ptr, ptr %13, align 8, !tbaa !5
  %66 = call noundef zeroext i1 @_ZN5ImGui23DataTypeApplyOpFromTextEPKcS1_iPvS1_(ptr noundef %58, ptr noundef %63, i32 noundef %64, ptr noundef %65, ptr noundef null)
  %67 = load ptr, ptr %15, align 8, !tbaa !5
  %68 = icmp ne ptr %67, null
  br i1 %68, label %72, label %69

69:                                               ; preds = %51
  %70 = load ptr, ptr %16, align 8, !tbaa !5
  %71 = icmp ne ptr %70, null
  br i1 %71, label %72, label %85

72:                                               ; preds = %69, %51
  %73 = load i32, ptr %12, align 4, !tbaa !9
  %74 = load ptr, ptr %15, align 8, !tbaa !5
  %75 = load ptr, ptr %16, align 8, !tbaa !5
  %76 = call noundef i32 @_ZN5ImGui15DataTypeCompareEiPKvS1_(i32 noundef %73, ptr noundef %74, ptr noundef %75)
  %77 = icmp sgt i32 %76, 0
  br i1 %77, label %78, label %79

78:                                               ; preds = %72
  call void @_ZL6ImSwapIPKvEvRT_S3_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16)
  br label %79

79:                                               ; preds = %78, %72
  %80 = load i32, ptr %12, align 4, !tbaa !9
  %81 = load ptr, ptr %13, align 8, !tbaa !5
  %82 = load ptr, ptr %15, align 8, !tbaa !5
  %83 = load ptr, ptr %16, align 8, !tbaa !5
  %84 = call noundef zeroext i1 @_ZN5ImGui13DataTypeClampEiPvPKvS2_(i32 noundef %80, ptr noundef %81, ptr noundef %82, ptr noundef %83)
  br label %85

85:                                               ; preds = %79, %69
  %86 = load ptr, ptr %13, align 8, !tbaa !5
  %87 = load i64, ptr %22, align 8, !tbaa !16
  %88 = call i32 @memcmp(ptr noundef %23, ptr noundef %86, i64 noundef %87) #9
  %89 = icmp ne i32 %88, 0
  %90 = zext i1 %89 to i8
  store i8 %90, ptr %21, align 1, !tbaa !11
  %91 = load i8, ptr %21, align 1, !tbaa !11, !range !79, !noundef !80
  %92 = trunc i8 %91 to i1
  br i1 %92, label %93, label %95

93:                                               ; preds = %85
  %94 = load i32, ptr %10, align 4, !tbaa !9
  call void @_ZN5ImGui14MarkItemEditedEj(i32 noundef %94)
  br label %95

95:                                               ; preds = %93, %85
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  br label %96

96:                                               ; preds = %95, %39
  %97 = load i8, ptr %21, align 1, !tbaa !11, !range !79, !noundef !80
  %98 = trunc i8 %97 to i1
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  ret i1 %98
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_Z28ImParseFormatTrimDecorationsPKcPcm(ptr noundef, ptr noundef, i64 noundef) #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5ImGui13TempInputTextERK6ImRectjPKcPcii(ptr noundef nonnull align 4 dereferenceable(16), i32 noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) #6

declare void @_Z15ImStrTrimBlanksPc(ptr noundef) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @_ZL6ImSwapIPKvEvRT_S3_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #7

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 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"="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 = { nounwind willreturn memory(read) "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 = { 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 = { 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 #8 = { nounwind }
attributes #9 = { nounwind willreturn memory(read) }

!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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !15, i64 0}
!14 = !{!"_ZTS17ImGuiDataTypeInfo", !15, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!15 = !{!"long", !7, i64 0}
!16 = !{!15, !15, i64 0}
!17 = !{!18, !6, i64 8600}
!18 = !{!"_ZTS12ImGuiContext", !12, i64 0, !12, i64 1, !19, i64 8, !24, i64 5472, !6, i64 6520, !21, i64 6528, !21, i64 6532, !25, i64 6536, !27, i64 6752, !10, i64 6760, !10, i64 6764, !10, i64 6768, !12, i64 6772, !12, i64 6773, !12, i64 6774, !12, i64 6775, !12, i64 6776, !10, i64 6780, !6, i64 6784, !28, i64 6792, !28, i64 6808, !28, i64 6824, !28, i64 6840, !29, i64 6856, !10, i64 6872, !6, i64 6880, !6, i64 6888, !6, i64 6896, !6, i64 6904, !6, i64 6912, !6, i64 6920, !20, i64 6928, !21, i64 6936, !10, i64 6940, !10, i64 6944, !12, i64 6948, !12, i64 6949, !12, i64 6950, !12, i64 6951, !21, i64 6952, !21, i64 6956, !10, i64 6960, !10, i64 6964, !21, i64 6968, !12, i64 6972, !12, i64 6973, !12, i64 6974, !12, i64 6975, !12, i64 6976, !12, i64 6977, !12, i64 6978, !10, i64 6980, !10, i64 6984, !31, i64 6992, !20, i64 7000, !6, i64 7008, !32, i64 7016, !10, i64 7020, !10, i64 7024, !12, i64 7028, !12, i64 7029, !6, i64 7032, !10, i64 7040, !21, i64 7044, !33, i64 7048, !35, i64 7160, !36, i64 7184, !37, i64 7200, !38, i64 7216, !39, i64 7232, !40, i64 7248, !41, i64 7264, !42, i64 7280, !42, i64 7296, !6, i64 7312, !10, i64 7320, !10, i64 7324, !10, i64 7328, !10, i64 7332, !10, i64 7336, !10, i64 7340, !10, i64 7344, !10, i64 7348, !10, i64 7352, !10, i64 7356, !10, i64 7360, !32, i64 7364, !34, i64 7368, !10, i64 7384, !43, i64 7388, !10, i64 7392, !12, i64 7396, !12, i64 7397, !12, i64 7398, !12, i64 7399, !12, i64 7400, !12, i64 7401, !12, i64 7402, !10, i64 7404, !34, i64 7408, !12, i64 7424, !10, i64 7428, !44, i64 7432, !10, i64 7436, !10, i64 7440, !10, i64 7444, !10, i64 7448, !45, i64 7456, !45, i64 7504, !45, i64 7552, !6, i64 7600, !10, i64 7608, !6, i64 7616, !6, i64 7624, !6, i64 7632, !21, i64 7640, !21, i64 7644, !12, i64 7648, !6, i64 7656, !6, i64 7664, !10, i64 7672, !10, i64 7676, !10, i64 7680, !10, i64 7684, !12, i64 7688, !46, i64 7696, !47, i64 7752, !21, i64 7784, !48, i64 7792, !48, i64 7992, !10, i64 8192, !12, i64 8196, !12, i64 8197, !12, i64 8198, !10, i64 8200, !10, i64 8204, !10, i64 8208, !57, i64 8216, !34, i64 8280, !10, i64 8296, !10, i64 8300, !21, i64 8304, !10, i64 8308, !10, i64 8312, !10, i64 8316, !10, i64 8320, !58, i64 8328, !7, i64 8344, !6, i64 8360, !59, i64 8368, !61, i64 8408, !62, i64 8424, !56, i64 8440, !6, i64 8456, !63, i64 8464, !61, i64 8504, !65, i64 8520, !20, i64 8536, !66, i64 8544, !70, i64 12280, !10, i64 12392, !10, i64 12396, !21, i64 12400, !21, i64 12404, !7, i64 12408, !26, i64 12420, !21, i64 12436, !12, i64 12440, !12, i64 12441, !21, i64 12444, !21, i64 12448, !21, i64 12452, !10, i64 12456, !21, i64 12460, !67, i64 12464, !39, i64 12480, !20, i64 12496, !20, i64 12504, !7, i64 12512, !12, i64 12513, !21, i64 12516, !72, i64 12520, !73, i64 12536, !74, i64 12552, !75, i64 12568, !76, i64 12584, !12, i64 12600, !77, i64 12604, !6, i64 12608, !72, i64 12616, !21, i64 12632, !12, i64 12636, !10, i64 12640, !10, i64 12644, !10, i64 12648, !12, i64 12652, !10, i64 12656, !78, i64 12660, !7, i64 12676, !10, i64 13156, !21, i64 13160, !10, i64 13164, !10, i64 13168, !10, i64 13172, !7, i64 13176}
!19 = !{!"_ZTS7ImGuiIO", !10, i64 0, !10, i64 4, !20, i64 8, !21, i64 16, !21, i64 20, !6, i64 24, !6, i64 32, !21, i64 40, !21, i64 44, !21, i64 48, !7, i64 52, !21, i64 140, !21, i64 144, !6, i64 152, !6, i64 160, !21, i64 168, !12, i64 172, !6, i64 176, !20, i64 184, !12, i64 192, !12, i64 193, !12, i64 194, !12, i64 195, !12, i64 196, !12, i64 197, !21, i64 200, !6, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !6, i64 272, !6, i64 280, !20, i64 288, !7, i64 296, !21, i64 304, !21, i64 308, !12, i64 312, !12, i64 313, !12, i64 314, !12, i64 315, !7, i64 316, !7, i64 828, !12, i64 912, !12, i64 913, !12, i64 914, !12, i64 915, !12, i64 916, !12, i64 917, !12, i64 918, !21, i64 920, !10, i64 924, !10, i64 928, !10, i64 932, !10, i64 936, !10, i64 940, !20, i64 944, !10, i64 952, !20, i64 956, !7, i64 964, !7, i64 1008, !7, i64 1048, !7, i64 1053, !7, i64 1058, !7, i64 1063, !7, i64 1068, !7, i64 1076, !7, i64 1096, !7, i64 1116, !7, i64 1156, !7, i64 1176, !7, i64 3224, !7, i64 5272, !7, i64 5356, !21, i64 5440, !22, i64 5444, !23, i64 5448}
!20 = !{!"_ZTS6ImVec2", !21, i64 0, !21, i64 4}
!21 = !{!"float", !7, i64 0}
!22 = !{!"short", !7, i64 0}
!23 = !{!"_ZTS8ImVectorItE", !10, i64 0, !10, i64 4, !6, i64 8}
!24 = !{!"_ZTS10ImGuiStyle", !21, i64 0, !20, i64 4, !21, i64 12, !21, i64 16, !20, i64 20, !20, i64 28, !10, i64 36, !21, i64 40, !21, i64 44, !21, i64 48, !21, i64 52, !20, i64 56, !21, i64 64, !21, i64 68, !20, i64 72, !20, i64 80, !20, i64 88, !20, i64 96, !21, i64 104, !21, i64 108, !21, i64 112, !21, i64 116, !21, i64 120, !21, i64 124, !21, i64 128, !21, i64 132, !21, i64 136, !21, i64 140, !10, i64 144, !20, i64 148, !20, i64 156, !20, i64 164, !20, i64 172, !21, i64 180, !12, i64 184, !12, i64 185, !12, i64 186, !21, i64 188, !21, i64 192, !7, i64 196}
!25 = !{!"_ZTS20ImDrawListSharedData", !20, i64 0, !6, i64 8, !21, i64 16, !21, i64 20, !21, i64 24, !26, i64 28, !10, i64 44, !7, i64 48, !7, i64 144, !6, i64 208}
!26 = !{!"_ZTS6ImVec4", !21, i64 0, !21, i64 4, !21, i64 8, !21, i64 12}
!27 = !{!"double", !7, i64 0}
!28 = !{!"_ZTS8ImVectorIP11ImGuiWindowE", !10, i64 0, !10, i64 4, !6, i64 8}
!29 = !{!"_ZTS12ImGuiStorage", !30, i64 0}
!30 = !{!"_ZTS8ImVectorIN12ImGuiStorage16ImGuiStoragePairEE", !10, i64 0, !10, i64 4, !6, i64 8}
!31 = !{!"long long", !7, i64 0}
!32 = !{!"_ZTS16ImGuiInputSource", !7, i64 0}
!33 = !{!"_ZTS19ImGuiNextWindowData", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !20, i64 16, !20, i64 24, !20, i64 32, !20, i64 40, !20, i64 48, !12, i64 56, !34, i64 60, !6, i64 80, !6, i64 88, !21, i64 96, !20, i64 100}
!34 = !{!"_ZTS6ImRect", !20, i64 0, !20, i64 8}
!35 = !{!"_ZTS17ImGuiNextItemData", !10, i64 0, !21, i64 4, !10, i64 8, !10, i64 12, !12, i64 16}
!36 = !{!"_ZTS8ImVectorI13ImGuiColorModE", !10, i64 0, !10, i64 4, !6, i64 8}
!37 = !{!"_ZTS8ImVectorI13ImGuiStyleModE", !10, i64 0, !10, i64 4, !6, i64 8}
!38 = !{!"_ZTS8ImVectorIP6ImFontE", !10, i64 0, !10, i64 4, !6, i64 8}
!39 = !{!"_ZTS8ImVectorIjE", !10, i64 0, !10, i64 4, !6, i64 8}
!40 = !{!"_ZTS8ImVectorIiE", !10, i64 0, !10, i64 4, !6, i64 8}
!41 = !{!"_ZTS8ImVectorI14ImGuiGroupDataE", !10, i64 0, !10, i64 4, !6, i64 8}
!42 = !{!"_ZTS8ImVectorI14ImGuiPopupDataE", !10, i64 0, !10, i64 4, !6, i64 8}
!43 = !{!"_ZTS13ImGuiNavLayer", !7, i64 0}
!44 = !{!"_ZTS15ImGuiNavForward", !7, i64 0}
!45 = !{!"_ZTS18ImGuiNavMoveResult", !6, i64 0, !10, i64 8, !10, i64 12, !21, i64 16, !21, i64 20, !21, i64 24, !34, i64 28}
!46 = !{!"_ZTS10ImDrawData", !12, i64 0, !6, i64 8, !10, i64 16, !10, i64 20, !10, i64 24, !20, i64 28, !20, i64 36, !20, i64 44}
!47 = !{!"_ZTS17ImDrawDataBuilder", !7, i64 0}
!48 = !{!"_ZTS10ImDrawList", !49, i64 0, !23, i64 16, !50, i64 32, !10, i64 48, !10, i64 52, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !51, i64 88, !52, i64 104, !53, i64 120, !54, i64 136, !55, i64 168, !21, i64 192}
!49 = !{!"_ZTS8ImVectorI9ImDrawCmdE", !10, i64 0, !10, i64 4, !6, i64 8}
!50 = !{!"_ZTS8ImVectorI10ImDrawVertE", !10, i64 0, !10, i64 4, !6, i64 8}
!51 = !{!"_ZTS8ImVectorI6ImVec4E", !10, i64 0, !10, i64 4, !6, i64 8}
!52 = !{!"_ZTS8ImVectorIPvE", !10, i64 0, !10, i64 4, !6, i64 8}
!53 = !{!"_ZTS8ImVectorI6ImVec2E", !10, i64 0, !10, i64 4, !6, i64 8}
!54 = !{!"_ZTS15ImDrawCmdHeader", !26, i64 0, !6, i64 16, !10, i64 24}
!55 = !{!"_ZTS18ImDrawListSplitter", !10, i64 0, !10, i64 4, !56, i64 8}
!56 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !10, i64 0, !10, i64 4, !6, i64 8}
!57 = !{!"_ZTS12ImGuiPayload", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !7, i64 24, !12, i64 57, !12, i64 58}
!58 = !{!"_ZTS8ImVectorIhE", !10, i64 0, !10, i64 4, !6, i64 8}
!59 = !{!"_ZTS6ImPoolI10ImGuiTableE", !60, i64 0, !29, i64 16, !10, i64 32}
!60 = !{!"_ZTS8ImVectorI10ImGuiTableE", !10, i64 0, !10, i64 4, !6, i64 8}
!61 = !{!"_ZTS8ImVectorI15ImGuiPtrOrIndexE", !10, i64 0, !10, i64 4, !6, i64 8}
!62 = !{!"_ZTS8ImVectorIfE", !10, i64 0, !10, i64 4, !6, i64 8}
!63 = !{!"_ZTS6ImPoolI11ImGuiTabBarE", !64, i64 0, !29, i64 16, !10, i64 32}
!64 = !{!"_ZTS8ImVectorI11ImGuiTabBarE", !10, i64 0, !10, i64 4, !6, i64 8}
!65 = !{!"_ZTS8ImVectorI20ImGuiShrinkWidthItemE", !10, i64 0, !10, i64 4, !6, i64 8}
!66 = !{!"_ZTS19ImGuiInputTextState", !10, i64 0, !10, i64 4, !10, i64 8, !23, i64 16, !67, i64 32, !67, i64 48, !12, i64 64, !10, i64 68, !21, i64 72, !68, i64 76, !21, i64 3704, !12, i64 3708, !12, i64 3709, !12, i64 3710, !10, i64 3712, !6, i64 3720, !6, i64 3728}
!67 = !{!"_ZTS8ImVectorIcE", !10, i64 0, !10, i64 4, !6, i64 8}
!68 = !{!"_ZTSN5ImStb17STB_TexteditStateE", !10, i64 0, !10, i64 4, !10, i64 8, !7, i64 12, !10, i64 16, !7, i64 20, !7, i64 21, !7, i64 22, !7, i64 23, !7, i64 24, !7, i64 25, !7, i64 26, !21, i64 28, !69, i64 32}
!69 = !{!"_ZTSN5ImStb12StbUndoStateE", !7, i64 0, !7, i64 1584, !22, i64 3582, !22, i64 3584, !10, i64 3588, !10, i64 3592}
!70 = !{!"_ZTS6ImFont", !62, i64 0, !21, i64 16, !21, i64 20, !23, i64 24, !71, i64 40, !6, i64 56, !6, i64 64, !6, i64 72, !22, i64 80, !22, i64 82, !22, i64 84, !12, i64 86, !21, i64 88, !21, i64 92, !21, i64 96, !10, i64 100, !7, i64 104}
!71 = !{!"_ZTS8ImVectorI11ImFontGlyphE", !10, i64 0, !10, i64 4, !6, i64 8}
!72 = !{!"_ZTS15ImGuiTextBuffer", !67, i64 0}
!73 = !{!"_ZTS8ImVectorI20ImGuiSettingsHandlerE", !10, i64 0, !10, i64 4, !6, i64 8}
!74 = !{!"_ZTS13ImChunkStreamI19ImGuiWindowSettingsE", !67, i64 0}
!75 = !{!"_ZTS13ImChunkStreamI18ImGuiTableSettingsE", !67, i64 0}
!76 = !{!"_ZTS8ImVectorI16ImGuiContextHookE", !10, i64 0, !10, i64 4, !6, i64 8}
!77 = !{!"_ZTS12ImGuiLogType", !7, i64 0}
!78 = !{!"_ZTS18ImGuiMetricsConfig", !12, i64 0, !12, i64 1, !12, i64 2, !12, i64 3, !12, i64 4, !10, i64 8, !10, i64 12}
!79 = !{i8 0, i8 2}
!80 = !{}


; 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.ImGuiDataTypeTempStorage = type { [8 x i8] }

@GImGui = external local_unnamed_addr global ptr, 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 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: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

declare void @_ZN5ImGui14MarkItemEditedEj(i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN5ImGui15DataTypeGetInfoEi(i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN5ImGui20DataTypeFormatStringEPciiPKvPKc(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5ImGui23DataTypeApplyOpFromTextEPKcS1_iPvS1_(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN5ImGui15DataTypeCompareEiPKvS1_(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5ImGui13DataTypeClampEiPvPKvS2_(i32 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN5ImGui15TempInputScalarERK6ImRectjPKciPvS4_PKvS7_(ptr noundef nonnull align 4 dereferenceable(16) %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7) local_unnamed_addr #4 {
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca [32 x i8], align 16
  %12 = alloca [32 x i8], align 16
  %13 = alloca %struct.ImGuiDataTypeTempStorage, align 1
  store ptr %6, ptr %9, align 8, !tbaa !5
  store ptr %7, ptr %10, align 8, !tbaa !5
  %14 = load ptr, ptr @GImGui, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #8
  %15 = call noundef ptr @_Z28ImParseFormatTrimDecorationsPKcPcm(ptr noundef %5, ptr noundef nonnull %11, i64 noundef 32)
  %16 = call noundef i32 @_ZN5ImGui20DataTypeFormatStringEPciiPKvPKc(ptr noundef nonnull %12, i32 noundef 32, i32 noundef %3, ptr noundef %4, ptr noundef %15)
  call void @_Z15ImStrTrimBlanksPc(ptr noundef nonnull %12)
  %17 = and i32 %3, -2
  %18 = icmp eq i32 %17, 8
  %19 = select i1 %18, i32 2228240, i32 2097169
  %20 = call noundef zeroext i1 @_ZN5ImGui13TempInputTextERK6ImRectjPKcPcii(ptr noundef nonnull align 4 dereferenceable(16) %0, i32 noundef %1, ptr noundef %2, ptr noundef nonnull %12, i32 noundef 32, i32 noundef %19)
  br i1 %20, label %21, label %41

21:                                               ; preds = %8
  %22 = call noundef ptr @_ZN5ImGui15DataTypeGetInfoEi(i32 noundef %3)
  %23 = load i64, ptr %22, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #8
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 1 %13, ptr align 1 %4, i64 %23, i1 false)
  %24 = getelementptr inbounds i8, ptr %14, i64 8600
  %25 = load ptr, ptr %24, align 8, !tbaa !12
  %26 = call noundef zeroext i1 @_ZN5ImGui23DataTypeApplyOpFromTextEPKcS1_iPvS1_(ptr noundef nonnull %12, ptr noundef %25, i32 noundef %3, ptr noundef %4, ptr noundef null)
  %27 = icmp ne ptr %6, null
  %28 = icmp ne ptr %7, null
  %or.cond = or i1 %27, %28
  br i1 %or.cond, label %29, label %37

29:                                               ; preds = %21
  %30 = call noundef i32 @_ZN5ImGui15DataTypeCompareEiPKvS1_(i32 noundef %3, ptr noundef %6, ptr noundef %7)
  %31 = icmp sgt i32 %30, 0
  br i1 %31, label %32, label %33

32:                                               ; preds = %29
  call void @_ZL6ImSwapIPKvEvRT_S3_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10)
  %.pre = load ptr, ptr %9, align 8, !tbaa !5
  %.pre25 = load ptr, ptr %10, align 8, !tbaa !5
  br label %33

33:                                               ; preds = %32, %29
  %34 = phi ptr [ %.pre25, %32 ], [ %7, %29 ]
  %35 = phi ptr [ %.pre, %32 ], [ %6, %29 ]
  %36 = call noundef zeroext i1 @_ZN5ImGui13DataTypeClampEiPvPKvS2_(i32 noundef %3, ptr noundef %4, ptr noundef %35, ptr noundef %34)
  br label %37

37:                                               ; preds = %21, %33
  %bcmp = call i32 @bcmp(ptr nonnull %13, ptr %4, i64 %23)
  %38 = icmp ne i32 %bcmp, 0
  br i1 %38, label %39, label %40

39:                                               ; preds = %37
  call void @_ZN5ImGui14MarkItemEditedEj(i32 noundef %1)
  br label %40

40:                                               ; preds = %39, %37
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #8
  br label %41

41:                                               ; preds = %40, %8
  %.0 = phi i1 [ %38, %40 ], [ false, %8 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #8
  ret i1 %.0
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_Z28ImParseFormatTrimDecorationsPKcPcm(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5ImGui13TempInputTextERK6ImRectjPKcPcii(ptr noundef nonnull align 4 dereferenceable(16), i32 noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #5

declare void @_Z15ImStrTrimBlanksPc(ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @_ZL6ImSwapIPKvEvRT_S3_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #6

; Function Attrs: nofree nounwind willreturn memory(argmem: read)
declare i32 @bcmp(ptr nocapture, ptr nocapture, i64) local_unnamed_addr #7

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 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"="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 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 #7 = { nofree nounwind willreturn memory(argmem: read) }
attributes #8 = { 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, !11, i64 0}
!10 = !{!"_ZTS17ImGuiDataTypeInfo", !11, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!11 = !{!"long", !7, i64 0}
!12 = !{!13, !6, i64 8600}
!13 = !{!"_ZTS12ImGuiContext", !14, i64 0, !14, i64 1, !15, i64 8, !21, i64 5472, !6, i64 6520, !18, i64 6528, !18, i64 6532, !22, i64 6536, !24, i64 6752, !16, i64 6760, !16, i64 6764, !16, i64 6768, !14, i64 6772, !14, i64 6773, !14, i64 6774, !14, i64 6775, !14, i64 6776, !16, i64 6780, !6, i64 6784, !25, i64 6792, !25, i64 6808, !25, i64 6824, !25, i64 6840, !26, i64 6856, !16, i64 6872, !6, i64 6880, !6, i64 6888, !6, i64 6896, !6, i64 6904, !6, i64 6912, !6, i64 6920, !17, i64 6928, !18, i64 6936, !16, i64 6940, !16, i64 6944, !14, i64 6948, !14, i64 6949, !14, i64 6950, !14, i64 6951, !18, i64 6952, !18, i64 6956, !16, i64 6960, !16, i64 6964, !18, i64 6968, !14, i64 6972, !14, i64 6973, !14, i64 6974, !14, i64 6975, !14, i64 6976, !14, i64 6977, !14, i64 6978, !16, i64 6980, !16, i64 6984, !28, i64 6992, !17, i64 7000, !6, i64 7008, !29, i64 7016, !16, i64 7020, !16, i64 7024, !14, i64 7028, !14, i64 7029, !6, i64 7032, !16, i64 7040, !18, i64 7044, !30, i64 7048, !32, i64 7160, !33, i64 7184, !34, i64 7200, !35, i64 7216, !36, i64 7232, !37, i64 7248, !38, i64 7264, !39, i64 7280, !39, i64 7296, !6, i64 7312, !16, i64 7320, !16, i64 7324, !16, i64 7328, !16, i64 7332, !16, i64 7336, !16, i64 7340, !16, i64 7344, !16, i64 7348, !16, i64 7352, !16, i64 7356, !16, i64 7360, !29, i64 7364, !31, i64 7368, !16, i64 7384, !40, i64 7388, !16, i64 7392, !14, i64 7396, !14, i64 7397, !14, i64 7398, !14, i64 7399, !14, i64 7400, !14, i64 7401, !14, i64 7402, !16, i64 7404, !31, i64 7408, !14, i64 7424, !16, i64 7428, !41, i64 7432, !16, i64 7436, !16, i64 7440, !16, i64 7444, !16, i64 7448, !42, i64 7456, !42, i64 7504, !42, i64 7552, !6, i64 7600, !16, i64 7608, !6, i64 7616, !6, i64 7624, !6, i64 7632, !18, i64 7640, !18, i64 7644, !14, i64 7648, !6, i64 7656, !6, i64 7664, !16, i64 7672, !16, i64 7676, !16, i64 7680, !16, i64 7684, !14, i64 7688, !43, i64 7696, !44, i64 7752, !18, i64 7784, !45, i64 7792, !45, i64 7992, !16, i64 8192, !14, i64 8196, !14, i64 8197, !14, i64 8198, !16, i64 8200, !16, i64 8204, !16, i64 8208, !54, i64 8216, !31, i64 8280, !16, i64 8296, !16, i64 8300, !18, i64 8304, !16, i64 8308, !16, i64 8312, !16, i64 8316, !16, i64 8320, !55, i64 8328, !7, i64 8344, !6, i64 8360, !56, i64 8368, !58, i64 8408, !59, i64 8424, !53, i64 8440, !6, i64 8456, !60, i64 8464, !58, i64 8504, !62, i64 8520, !17, i64 8536, !63, i64 8544, !67, i64 12280, !16, i64 12392, !16, i64 12396, !18, i64 12400, !18, i64 12404, !7, i64 12408, !23, i64 12420, !18, i64 12436, !14, i64 12440, !14, i64 12441, !18, i64 12444, !18, i64 12448, !18, i64 12452, !16, i64 12456, !18, i64 12460, !64, i64 12464, !36, i64 12480, !17, i64 12496, !17, i64 12504, !7, i64 12512, !14, i64 12513, !18, i64 12516, !69, i64 12520, !70, i64 12536, !71, i64 12552, !72, i64 12568, !73, i64 12584, !14, i64 12600, !74, i64 12604, !6, i64 12608, !69, i64 12616, !18, i64 12632, !14, i64 12636, !16, i64 12640, !16, i64 12644, !16, i64 12648, !14, i64 12652, !16, i64 12656, !75, i64 12660, !7, i64 12676, !16, i64 13156, !18, i64 13160, !16, i64 13164, !16, i64 13168, !16, i64 13172, !7, i64 13176}
!14 = !{!"bool", !7, i64 0}
!15 = !{!"_ZTS7ImGuiIO", !16, i64 0, !16, i64 4, !17, i64 8, !18, i64 16, !18, i64 20, !6, i64 24, !6, i64 32, !18, i64 40, !18, i64 44, !18, i64 48, !7, i64 52, !18, i64 140, !18, i64 144, !6, i64 152, !6, i64 160, !18, i64 168, !14, i64 172, !6, i64 176, !17, i64 184, !14, i64 192, !14, i64 193, !14, i64 194, !14, i64 195, !14, i64 196, !14, i64 197, !18, i64 200, !6, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !6, i64 272, !6, i64 280, !17, i64 288, !7, i64 296, !18, i64 304, !18, i64 308, !14, i64 312, !14, i64 313, !14, i64 314, !14, i64 315, !7, i64 316, !7, i64 828, !14, i64 912, !14, i64 913, !14, i64 914, !14, i64 915, !14, i64 916, !14, i64 917, !14, i64 918, !18, i64 920, !16, i64 924, !16, i64 928, !16, i64 932, !16, i64 936, !16, i64 940, !17, i64 944, !16, i64 952, !17, i64 956, !7, i64 964, !7, i64 1008, !7, i64 1048, !7, i64 1053, !7, i64 1058, !7, i64 1063, !7, i64 1068, !7, i64 1076, !7, i64 1096, !7, i64 1116, !7, i64 1156, !7, i64 1176, !7, i64 3224, !7, i64 5272, !7, i64 5356, !18, i64 5440, !19, i64 5444, !20, i64 5448}
!16 = !{!"int", !7, i64 0}
!17 = !{!"_ZTS6ImVec2", !18, i64 0, !18, i64 4}
!18 = !{!"float", !7, i64 0}
!19 = !{!"short", !7, i64 0}
!20 = !{!"_ZTS8ImVectorItE", !16, i64 0, !16, i64 4, !6, i64 8}
!21 = !{!"_ZTS10ImGuiStyle", !18, i64 0, !17, i64 4, !18, i64 12, !18, i64 16, !17, i64 20, !17, i64 28, !16, i64 36, !18, i64 40, !18, i64 44, !18, i64 48, !18, i64 52, !17, i64 56, !18, i64 64, !18, i64 68, !17, i64 72, !17, i64 80, !17, i64 88, !17, i64 96, !18, i64 104, !18, i64 108, !18, i64 112, !18, i64 116, !18, i64 120, !18, i64 124, !18, i64 128, !18, i64 132, !18, i64 136, !18, i64 140, !16, i64 144, !17, i64 148, !17, i64 156, !17, i64 164, !17, i64 172, !18, i64 180, !14, i64 184, !14, i64 185, !14, i64 186, !18, i64 188, !18, i64 192, !7, i64 196}
!22 = !{!"_ZTS20ImDrawListSharedData", !17, i64 0, !6, i64 8, !18, i64 16, !18, i64 20, !18, i64 24, !23, i64 28, !16, i64 44, !7, i64 48, !7, i64 144, !6, i64 208}
!23 = !{!"_ZTS6ImVec4", !18, i64 0, !18, i64 4, !18, i64 8, !18, i64 12}
!24 = !{!"double", !7, i64 0}
!25 = !{!"_ZTS8ImVectorIP11ImGuiWindowE", !16, i64 0, !16, i64 4, !6, i64 8}
!26 = !{!"_ZTS12ImGuiStorage", !27, i64 0}
!27 = !{!"_ZTS8ImVectorIN12ImGuiStorage16ImGuiStoragePairEE", !16, i64 0, !16, i64 4, !6, i64 8}
!28 = !{!"long long", !7, i64 0}
!29 = !{!"_ZTS16ImGuiInputSource", !7, i64 0}
!30 = !{!"_ZTS19ImGuiNextWindowData", !16, i64 0, !16, i64 4, !16, i64 8, !16, i64 12, !17, i64 16, !17, i64 24, !17, i64 32, !17, i64 40, !17, i64 48, !14, i64 56, !31, i64 60, !6, i64 80, !6, i64 88, !18, i64 96, !17, i64 100}
!31 = !{!"_ZTS6ImRect", !17, i64 0, !17, i64 8}
!32 = !{!"_ZTS17ImGuiNextItemData", !16, i64 0, !18, i64 4, !16, i64 8, !16, i64 12, !14, i64 16}
!33 = !{!"_ZTS8ImVectorI13ImGuiColorModE", !16, i64 0, !16, i64 4, !6, i64 8}
!34 = !{!"_ZTS8ImVectorI13ImGuiStyleModE", !16, i64 0, !16, i64 4, !6, i64 8}
!35 = !{!"_ZTS8ImVectorIP6ImFontE", !16, i64 0, !16, i64 4, !6, i64 8}
!36 = !{!"_ZTS8ImVectorIjE", !16, i64 0, !16, i64 4, !6, i64 8}
!37 = !{!"_ZTS8ImVectorIiE", !16, i64 0, !16, i64 4, !6, i64 8}
!38 = !{!"_ZTS8ImVectorI14ImGuiGroupDataE", !16, i64 0, !16, i64 4, !6, i64 8}
!39 = !{!"_ZTS8ImVectorI14ImGuiPopupDataE", !16, i64 0, !16, i64 4, !6, i64 8}
!40 = !{!"_ZTS13ImGuiNavLayer", !7, i64 0}
!41 = !{!"_ZTS15ImGuiNavForward", !7, i64 0}
!42 = !{!"_ZTS18ImGuiNavMoveResult", !6, i64 0, !16, i64 8, !16, i64 12, !18, i64 16, !18, i64 20, !18, i64 24, !31, i64 28}
!43 = !{!"_ZTS10ImDrawData", !14, i64 0, !6, i64 8, !16, i64 16, !16, i64 20, !16, i64 24, !17, i64 28, !17, i64 36, !17, i64 44}
!44 = !{!"_ZTS17ImDrawDataBuilder", !7, i64 0}
!45 = !{!"_ZTS10ImDrawList", !46, i64 0, !20, i64 16, !47, i64 32, !16, i64 48, !16, i64 52, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !48, i64 88, !49, i64 104, !50, i64 120, !51, i64 136, !52, i64 168, !18, i64 192}
!46 = !{!"_ZTS8ImVectorI9ImDrawCmdE", !16, i64 0, !16, i64 4, !6, i64 8}
!47 = !{!"_ZTS8ImVectorI10ImDrawVertE", !16, i64 0, !16, i64 4, !6, i64 8}
!48 = !{!"_ZTS8ImVectorI6ImVec4E", !16, i64 0, !16, i64 4, !6, i64 8}
!49 = !{!"_ZTS8ImVectorIPvE", !16, i64 0, !16, i64 4, !6, i64 8}
!50 = !{!"_ZTS8ImVectorI6ImVec2E", !16, i64 0, !16, i64 4, !6, i64 8}
!51 = !{!"_ZTS15ImDrawCmdHeader", !23, i64 0, !6, i64 16, !16, i64 24}
!52 = !{!"_ZTS18ImDrawListSplitter", !16, i64 0, !16, i64 4, !53, i64 8}
!53 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !16, i64 0, !16, i64 4, !6, i64 8}
!54 = !{!"_ZTS12ImGuiPayload", !6, i64 0, !16, i64 8, !16, i64 12, !16, i64 16, !16, i64 20, !7, i64 24, !14, i64 57, !14, i64 58}
!55 = !{!"_ZTS8ImVectorIhE", !16, i64 0, !16, i64 4, !6, i64 8}
!56 = !{!"_ZTS6ImPoolI10ImGuiTableE", !57, i64 0, !26, i64 16, !16, i64 32}
!57 = !{!"_ZTS8ImVectorI10ImGuiTableE", !16, i64 0, !16, i64 4, !6, i64 8}
!58 = !{!"_ZTS8ImVectorI15ImGuiPtrOrIndexE", !16, i64 0, !16, i64 4, !6, i64 8}
!59 = !{!"_ZTS8ImVectorIfE", !16, i64 0, !16, i64 4, !6, i64 8}
!60 = !{!"_ZTS6ImPoolI11ImGuiTabBarE", !61, i64 0, !26, i64 16, !16, i64 32}
!61 = !{!"_ZTS8ImVectorI11ImGuiTabBarE", !16, i64 0, !16, i64 4, !6, i64 8}
!62 = !{!"_ZTS8ImVectorI20ImGuiShrinkWidthItemE", !16, i64 0, !16, i64 4, !6, i64 8}
!63 = !{!"_ZTS19ImGuiInputTextState", !16, i64 0, !16, i64 4, !16, i64 8, !20, i64 16, !64, i64 32, !64, i64 48, !14, i64 64, !16, i64 68, !18, i64 72, !65, i64 76, !18, i64 3704, !14, i64 3708, !14, i64 3709, !14, i64 3710, !16, i64 3712, !6, i64 3720, !6, i64 3728}
!64 = !{!"_ZTS8ImVectorIcE", !16, i64 0, !16, i64 4, !6, i64 8}
!65 = !{!"_ZTSN5ImStb17STB_TexteditStateE", !16, i64 0, !16, i64 4, !16, i64 8, !7, i64 12, !16, i64 16, !7, i64 20, !7, i64 21, !7, i64 22, !7, i64 23, !7, i64 24, !7, i64 25, !7, i64 26, !18, i64 28, !66, i64 32}
!66 = !{!"_ZTSN5ImStb12StbUndoStateE", !7, i64 0, !7, i64 1584, !19, i64 3582, !19, i64 3584, !16, i64 3588, !16, i64 3592}
!67 = !{!"_ZTS6ImFont", !59, i64 0, !18, i64 16, !18, i64 20, !20, i64 24, !68, i64 40, !6, i64 56, !6, i64 64, !6, i64 72, !19, i64 80, !19, i64 82, !19, i64 84, !14, i64 86, !18, i64 88, !18, i64 92, !18, i64 96, !16, i64 100, !7, i64 104}
!68 = !{!"_ZTS8ImVectorI11ImFontGlyphE", !16, i64 0, !16, i64 4, !6, i64 8}
!69 = !{!"_ZTS15ImGuiTextBuffer", !64, i64 0}
!70 = !{!"_ZTS8ImVectorI20ImGuiSettingsHandlerE", !16, i64 0, !16, i64 4, !6, i64 8}
!71 = !{!"_ZTS13ImChunkStreamI19ImGuiWindowSettingsE", !64, i64 0}
!72 = !{!"_ZTS13ImChunkStreamI18ImGuiTableSettingsE", !64, i64 0}
!73 = !{!"_ZTS8ImVectorI16ImGuiContextHookE", !16, i64 0, !16, i64 4, !6, i64 8}
!74 = !{!"_ZTS12ImGuiLogType", !7, i64 0}
!75 = !{!"_ZTS18ImGuiMetricsConfig", !14, i64 0, !14, i64 1, !14, i64 2, !14, i64 3, !14, i64 4, !16, i64 8, !16, i64 12}


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