; LLVM IR from xhub/reshop :: gui/external/imgui/imgui_widgets.ll (ZN5ImGui21DataTypeApplyFromTextEPKciPvS1_S2_)

; 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.ImGuiDataTypeStorage = type { [8 x i8] }
%struct.ImGuiDataTypeInfo = type { i64, ptr, ptr, ptr }

@.str.2 = external hidden unnamed_addr constant [82 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [2 x i8], align 1
@__PRETTY_FUNCTION__._ZN5ImGui21DataTypeApplyFromTextEPKciPvS1_S2_ = external hidden unnamed_addr constant [93 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.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: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN5ImGui21DataTypeApplyFromTextEPKciPvS1_S2_(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #4 {
  %6 = alloca i1, align 1
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca %struct.ImGuiDataTypeStorage, align 1
  %14 = alloca i32, align 4
  %15 = alloca [32 x i8], align 16
  %16 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store i32 %1, ptr %8, align 4, !tbaa !9
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %17 = load i32, ptr %8, align 4, !tbaa !9
  %18 = call noundef ptr @_ZN5ImGui15DataTypeGetInfoEi(i32 noundef %17)
  store ptr %18, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %19 = load ptr, ptr %9, align 8, !tbaa !5
  %20 = load ptr, ptr %12, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.ImGuiDataTypeInfo, ptr %20, i32 0, i32 0
  %22 = load i64, ptr %21, align 8, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %13, ptr align 1 %19, i64 %22, i1 false)
  br label %23

23:                                               ; preds = %27, %5
  %24 = load ptr, ptr %7, align 8, !tbaa !5
  %25 = load i8, ptr %24, align 1, !tbaa !14
  %26 = call noundef zeroext i1 @_ZL14ImCharIsBlankAc(i8 noundef signext %25)
  br i1 %26, label %27, label %30

27:                                               ; preds = %23
  %28 = load ptr, ptr %7, align 8, !tbaa !5
  %29 = getelementptr inbounds i8, ptr %28, i32 1
  store ptr %29, ptr %7, align 8, !tbaa !5
  br label %23, !llvm.loop !15

30:                                               ; preds = %23
  %31 = load ptr, ptr %7, align 8, !tbaa !5
  %32 = getelementptr inbounds i8, ptr %31, i64 0
  %33 = load i8, ptr %32, align 1, !tbaa !14
  %34 = icmp ne i8 %33, 0
  br i1 %34, label %51, label %35

35:                                               ; preds = %30
  %36 = load ptr, ptr %11, align 8, !tbaa !5
  %37 = icmp ne ptr %36, null
  br i1 %37, label %38, label %50

38:                                               ; preds = %35
  %39 = load ptr, ptr %9, align 8, !tbaa !5
  %40 = load ptr, ptr %11, align 8, !tbaa !5
  %41 = load ptr, ptr %12, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.ImGuiDataTypeInfo, ptr %41, i32 0, i32 0
  %43 = load i64, ptr %42, align 8, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %39, ptr align 1 %40, i64 %43, i1 false)
  %44 = load ptr, ptr %9, align 8, !tbaa !5
  %45 = load ptr, ptr %12, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.ImGuiDataTypeInfo, ptr %45, i32 0, i32 0
  %47 = load i64, ptr %46, align 8, !tbaa !11
  %48 = call i32 @memcmp(ptr noundef %13, ptr noundef %44, i64 noundef %47) #9
  %49 = icmp ne i32 %48, 0
  store i1 %49, ptr %6, align 1
  store i32 1, ptr %14, align 4
  br label %130

50:                                               ; preds = %35
  store i1 false, ptr %6, align 1
  store i32 1, ptr %14, align 4
  br label %130

51:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #8
  %52 = load i32, ptr %8, align 4, !tbaa !9
  %53 = icmp eq i32 %52, 8
  br i1 %53, label %57, label %54

54:                                               ; preds = %51
  %55 = load i32, ptr %8, align 4, !tbaa !9
  %56 = icmp eq i32 %55, 9
  br i1 %56, label %57, label %61

57:                                               ; preds = %54, %51
  %58 = load ptr, ptr %12, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.ImGuiDataTypeInfo, ptr %58, i32 0, i32 3
  %60 = load ptr, ptr %59, align 8, !tbaa !17
  store ptr %60, ptr %10, align 8, !tbaa !5
  br label %65

61:                                               ; preds = %54
  %62 = load ptr, ptr %10, align 8, !tbaa !5
  %63 = getelementptr inbounds [32 x i8], ptr %15, i64 0, i64 0
  %64 = call noundef ptr @_Z32ImParseFormatSanitizeForScanningPKcPcm(ptr noundef %62, ptr noundef %63, i64 noundef 32)
  store ptr %64, ptr %10, align 8, !tbaa !5
  br label %65

65:                                               ; preds = %61, %57
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  store i32 0, ptr %16, align 4, !tbaa !9
  %66 = load ptr, ptr %7, align 8, !tbaa !5
  %67 = load ptr, ptr %10, align 8, !tbaa !5
  %68 = load ptr, ptr %12, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.ImGuiDataTypeInfo, ptr %68, i32 0, i32 0
  %70 = load i64, ptr %69, align 8, !tbaa !11
  %71 = icmp uge i64 %70, 4
  br i1 %71, label %72, label %74

72:                                               ; preds = %65
  %73 = load ptr, ptr %9, align 8, !tbaa !5
  br label %75

74:                                               ; preds = %65
  br label %75

75:                                               ; preds = %74, %72
  %76 = phi ptr [ %73, %72 ], [ %16, %74 ]
  %77 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %66, ptr noundef %67, ptr noundef %76) #8
  %78 = icmp slt i32 %77, 1
  br i1 %78, label %79, label %80

79:                                               ; preds = %75
  store i1 false, ptr %6, align 1
  store i32 1, ptr %14, align 4
  br label %129

80:                                               ; preds = %75
  %81 = load ptr, ptr %12, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.ImGuiDataTypeInfo, ptr %81, i32 0, i32 0
  %83 = load i64, ptr %82, align 8, !tbaa !11
  %84 = icmp ult i64 %83, 4
  br i1 %84, label %85, label %122

85:                                               ; preds = %80
  %86 = load i32, ptr %8, align 4, !tbaa !9
  %87 = icmp eq i32 %86, 0
  br i1 %87, label %88, label %93

88:                                               ; preds = %85
  %89 = load i32, ptr %16, align 4, !tbaa !9
  %90 = call noundef i32 @_ZL7ImClampIiET_S0_S0_S0_(i32 noundef %89, i32 noundef -128, i32 noundef 127)
  %91 = trunc i32 %90 to i8
  %92 = load ptr, ptr %9, align 8, !tbaa !5
  store i8 %91, ptr %92, align 1, !tbaa !14
  br label %121

93:                                               ; preds = %85
  %94 = load i32, ptr %8, align 4, !tbaa !9
  %95 = icmp eq i32 %94, 1
  br i1 %95, label %96, label %101

96:                                               ; preds = %93
  %97 = load i32, ptr %16, align 4, !tbaa !9
  %98 = call noundef i32 @_ZL7ImClampIiET_S0_S0_S0_(i32 noundef %97, i32 noundef 0, i32 noundef 255)
  %99 = trunc i32 %98 to i8
  %100 = load ptr, ptr %9, align 8, !tbaa !5
  store i8 %99, ptr %100, align 1, !tbaa !14
  br label %120

101:                                              ; preds = %93
  %102 = load i32, ptr %8, align 4, !tbaa !9
  %103 = icmp eq i32 %102, 2
  br i1 %103, label %104, label %109

104:                                              ; preds = %101
  %105 = load i32, ptr %16, align 4, !tbaa !9
  %106 = call noundef i32 @_ZL7ImClampIiET_S0_S0_S0_(i32 noundef %105, i32 noundef -32768, i32 noundef 32767)
  %107 = trunc i32 %106 to i16
  %108 = load ptr, ptr %9, align 8, !tbaa !5
  store i16 %107, ptr %108, align 2, !tbaa !18
  br label %119

109:                                              ; preds = %101
  %110 = load i32, ptr %8, align 4, !tbaa !9
  %111 = icmp eq i32 %110, 3
  br i1 %111, label %112, label %117

112:                                              ; preds = %109
  %113 = load i32, ptr %16, align 4, !tbaa !9
  %114 = call noundef i32 @_ZL7ImClampIiET_S0_S0_S0_(i32 noundef %113, i32 noundef 0, i32 noundef 65535)
  %115 = trunc i32 %114 to i16
  %116 = load ptr, ptr %9, align 8, !tbaa !5
  store i16 %115, ptr %116, align 2, !tbaa !18
  br label %118

117:                                              ; preds = %109
  call void @__assert_fail(ptr noundef @.str.29, ptr noundef @.str.2, i32 noundef 2302, ptr noundef @__PRETTY_FUNCTION__._ZN5ImGui21DataTypeApplyFromTextEPKciPvS1_S2_) #10
  unreachable

118:                                              ; preds = %112
  br label %119

119:                                              ; preds = %118, %104
  br label %120

120:                                              ; preds = %119, %96
  br label %121

121:                                              ; preds = %120, %88
  br label %122

122:                                              ; preds = %121, %80
  %123 = load ptr, ptr %9, align 8, !tbaa !5
  %124 = load ptr, ptr %12, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.ImGuiDataTypeInfo, ptr %124, i32 0, i32 0
  %126 = load i64, ptr %125, align 8, !tbaa !11
  %127 = call i32 @memcmp(ptr noundef %13, ptr noundef %123, i64 noundef %126) #9
  %128 = icmp ne i32 %127, 0
  store i1 %128, ptr %6, align 1
  store i32 1, ptr %14, align 4
  br label %129

129:                                              ; preds = %122, %79
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #8
  br label %130

130:                                              ; preds = %129, %50, %38
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  %131 = load i1, ptr %6, align 1
  ret i1 %131
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZL14ImCharIsBlankAc(i8 noundef signext) #5

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_Z32ImParseFormatSanitizeForScanningPKcPcm(ptr noundef, ptr noundef, i64 noundef) #3

; Function Attrs: nounwind
declare i32 @__isoc99_sscanf(ptr noundef, ptr noundef, ...) #7

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL7ImClampIiET_S0_S0_S0_(i32 noundef, i32 noundef, i32 noundef) #5

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { noreturn nounwind "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 = { 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 #6 = { 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 #7 = { nounwind "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) }
attributes #10 = { noreturn 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 = !{!"int", !7, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"_ZTS17ImGuiDataTypeInfo", !13, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!13 = !{!"long", !7, i64 0}
!14 = !{!7, !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!12, !6, i64 24}
!18 = !{!19, !19, i64 0}
!19 = !{!"short", !7, i64 0}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.ImGuiDataTypeStorage = type { [8 x i8] }

@.str.2 = external hidden unnamed_addr constant [82 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [2 x i8], align 1
@__PRETTY_FUNCTION__._ZN5ImGui21DataTypeApplyFromTextEPKciPvS1_S2_ = external hidden unnamed_addr constant [93 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 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: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr 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 nounwind uwtable
define dso_local noundef zeroext i1 @_ZN5ImGui21DataTypeApplyFromTextEPKciPvS1_S2_(ptr nocapture noundef readonly %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef readonly %4) local_unnamed_addr #3 {
  %6 = alloca %struct.ImGuiDataTypeStorage, align 1
  %7 = alloca [32 x i8], align 16
  %8 = alloca i32, align 4
  %9 = tail call noundef ptr @_ZN5ImGui15DataTypeGetInfoEi(i32 noundef %1)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %10 = load i64, ptr %9, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 1 %6, ptr align 1 %2, i64 %10, i1 false)
  br label %11

11:                                               ; preds = %11, %5
  %.032 = phi ptr [ %0, %5 ], [ %14, %11 ]
  %12 = load i8, ptr %.032, align 1, !tbaa !11
  %13 = tail call noundef zeroext i1 @_ZL14ImCharIsBlankAc(i8 noundef signext %12)
  %14 = getelementptr inbounds i8, ptr %.032, i64 1
  br i1 %13, label %11, label %15, !llvm.loop !12

15:                                               ; preds = %11
  %16 = load i8, ptr %.032, align 1, !tbaa !11
  %.not = icmp eq i8 %16, 0
  br i1 %.not, label %17, label %22

17:                                               ; preds = %15
  %.not36 = icmp eq ptr %4, null
  br i1 %.not36, label %60, label %18

18:                                               ; preds = %17
  %19 = load i64, ptr %9, align 8, !tbaa !5
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 1 %2, ptr nonnull align 1 %4, i64 %19, i1 false)
  %20 = load i64, ptr %9, align 8, !tbaa !5
  %bcmp = call i32 @bcmp(ptr nonnull %6, ptr %2, i64 %20)
  %21 = icmp ne i32 %bcmp, 0
  br label %60

22:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #7
  %23 = and i32 %1, -2
  %or.cond = icmp eq i32 %23, 8
  br i1 %or.cond, label %24, label %27

24:                                               ; preds = %22
  %25 = getelementptr inbounds i8, ptr %9, i64 24
  %26 = load ptr, ptr %25, align 8, !tbaa !14
  br label %29

27:                                               ; preds = %22
  %28 = call noundef ptr @_Z32ImParseFormatSanitizeForScanningPKcPcm(ptr noundef %3, ptr noundef nonnull %7, i64 noundef 32)
  br label %29

29:                                               ; preds = %27, %24
  %.033 = phi ptr [ %26, %24 ], [ %28, %27 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #7
  store i32 0, ptr %8, align 4, !tbaa !15
  %30 = load i64, ptr %9, align 8, !tbaa !5
  %31 = icmp ugt i64 %30, 3
  %32 = select i1 %31, ptr %2, ptr %8
  %33 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %.032, ptr noundef %.033, ptr noundef %32) #7
  %34 = icmp slt i32 %33, 1
  br i1 %34, label %59, label %35

35:                                               ; preds = %29
  %36 = load i64, ptr %9, align 8, !tbaa !5
  %37 = icmp ult i64 %36, 4
  br i1 %37, label %38, label %56

38:                                               ; preds = %35
  switch i32 %1, label %55 [
    i32 0, label %39
    i32 1, label %43
    i32 2, label %47
    i32 3, label %51
  ]

39:                                               ; preds = %38
  %40 = load i32, ptr %8, align 4, !tbaa !15
  %41 = call noundef i32 @_ZL7ImClampIiET_S0_S0_S0_(i32 noundef %40, i32 noundef -128, i32 noundef 127)
  %42 = trunc i32 %41 to i8
  store i8 %42, ptr %2, align 1, !tbaa !11
  br label %56

43:                                               ; preds = %38
  %44 = load i32, ptr %8, align 4, !tbaa !15
  %45 = call noundef i32 @_ZL7ImClampIiET_S0_S0_S0_(i32 noundef %44, i32 noundef 0, i32 noundef 255)
  %46 = trunc i32 %45 to i8
  store i8 %46, ptr %2, align 1, !tbaa !11
  br label %56

47:                                               ; preds = %38
  %48 = load i32, ptr %8, align 4, !tbaa !15
  %49 = call noundef i32 @_ZL7ImClampIiET_S0_S0_S0_(i32 noundef %48, i32 noundef -32768, i32 noundef 32767)
  %50 = trunc i32 %49 to i16
  store i16 %50, ptr %2, align 2, !tbaa !17
  br label %56

51:                                               ; preds = %38
  %52 = load i32, ptr %8, align 4, !tbaa !15
  %53 = call noundef i32 @_ZL7ImClampIiET_S0_S0_S0_(i32 noundef %52, i32 noundef 0, i32 noundef 65535)
  %54 = trunc i32 %53 to i16
  store i16 %54, ptr %2, align 2, !tbaa !17
  br label %56

55:                                               ; preds = %38
  call void @__assert_fail(ptr noundef nonnull @.str.29, ptr noundef nonnull @.str.2, i32 noundef 2302, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN5ImGui21DataTypeApplyFromTextEPKciPvS1_S2_) #8
  unreachable

56:                                               ; preds = %39, %47, %51, %43, %35
  %57 = load i64, ptr %9, align 8, !tbaa !5
  %bcmp37 = call i32 @bcmp(ptr nonnull %6, ptr %2, i64 %57)
  %58 = icmp ne i32 %bcmp37, 0
  br label %59

59:                                               ; preds = %29, %56
  %.0 = phi i1 [ %58, %56 ], [ false, %29 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #7
  br label %60

60:                                               ; preds = %17, %59, %18
  %.1 = phi i1 [ %.0, %59 ], [ %21, %18 ], [ false, %17 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  ret i1 %.1
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZL14ImCharIsBlankAc(i8 noundef signext) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_Z32ImParseFormatSanitizeForScanningPKcPcm(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #3

; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_sscanf(ptr nocapture noundef readonly, ptr nocapture noundef readonly, ...) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL7ImClampIiET_S0_S0_S0_(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #4

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { noreturn nounwind "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 = { 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 = { nofree nounwind "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 = { nofree nounwind willreturn memory(argmem: read) }
attributes #7 = { nounwind }
attributes #8 = { noreturn 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, !7, i64 0}
!6 = !{!"_ZTS17ImGuiDataTypeInfo", !7, i64 0, !10, i64 8, !10, i64 16, !10, i64 24}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!8, !8, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!6, !10, i64 24}
!15 = !{!16, !16, i64 0}
!16 = !{!"int", !8, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"short", !8, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LoopRotatePass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass