; LLVM IR from Eukky/TRender :: lib/imgui/imgui.ll (ZN5ImGui25LoadIniSettingsFromMemoryEPKcm)

; 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.ImGuiContext = type <{ i8, i8, [6 x i8], %struct.ImGuiIO, %struct.ImGuiStyle, ptr, float, float, %struct.ImDrawListSharedData, float, i32, i32, i32, %class.ImVector, %class.ImVector, %class.ImVector, %struct.ImGuiStorage, i32, [4 x i8], ptr, ptr, ptr, i32, i8, [3 x i8], i32, float, i32, i32, float, i8, i8, i8, i8, i8, i8, [2 x i8], i32, %struct.ImVec2, ptr, ptr, i32, i32, float, [4 x i8], ptr, %class.ImVector.1, %class.ImVector.2, %class.ImVector.3, %class.ImVector.4, %class.ImVector.4, %struct.ImGuiNextWindowData, i8, [3 x i8], i32, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, %struct.ImRect, i32, ptr, float, float, i8, [3 x i8], i32, i32, i8, i8, i8, i8, i8, i8, i8, i8, i32, %struct.ImRect, i8, i8, [2 x i8], i32, i32, i32, i32, i32, %struct.ImGuiNavMoveResult, %struct.ImGuiNavMoveResult, %struct.ImGuiNavMoveResult, %struct.ImDrawData, %struct.ImDrawDataBuilder, float, [4 x i8], %struct.ImDrawList, i32, i8, [3 x i8], i32, i32, %struct.ImGuiPayload, %struct.ImRect, i32, i32, float, i32, i32, i32, %class.ImVector.13, [8 x i8], %struct.ImGuiTextEditState, %struct.ImFont, i32, i32, %struct.ImVec4, i8, [3 x i8], float, float, %struct.ImVec2, i32, %class.ImVector.14, %struct.ImVec2, %struct.ImVec2, i8, [3 x i8], float, %struct.ImGuiTextBuffer, %class.ImVector.17, %class.ImVector.18, i8, [7 x i8], ptr, %struct.ImGuiTextBuffer, i32, i32, [120 x float], i32, float, i32, i32, i32, [3073 x i8], [3 x i8] }>
%struct.ImGuiIO = type { i32, i32, %struct.ImVec2, float, float, ptr, ptr, float, float, float, [21 x i32], float, float, ptr, ptr, float, i8, ptr, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, i8, i8, ptr, ptr, ptr, ptr, ptr, ptr, %struct.ImVec2, [5 x i8], float, float, i8, i8, i8, i8, i8, [512 x i8], [17 x i16], [21 x float], i8, i8, i8, i8, i8, i8, i8, float, i32, i32, i32, %struct.ImVec2, %struct.ImVec2, [5 x %struct.ImVec2], [5 x float], [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] }
%struct.ImGuiStyle = type { float, %struct.ImVec2, float, float, %struct.ImVec2, %struct.ImVec2, float, float, float, float, %struct.ImVec2, float, float, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, float, float, float, float, float, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, float, i8, i8, float, [42 x %struct.ImVec4] }
%struct.ImDrawListSharedData = type { %struct.ImVec2, ptr, float, float, %struct.ImVec4, [12 x %struct.ImVec2] }
%class.ImVector = type { i32, i32, ptr }
%struct.ImGuiStorage = type { %class.ImVector.0 }
%class.ImVector.0 = type { i32, i32, ptr }
%class.ImVector.1 = type { i32, i32, ptr }
%class.ImVector.2 = type { i32, i32, ptr }
%class.ImVector.3 = type { i32, i32, ptr }
%class.ImVector.4 = type { i32, i32, ptr }
%struct.ImGuiNextWindowData = type <{ i32, i32, i32, i32, i32, i32, i32, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, %struct.ImVec2, i8, [3 x i8], %struct.ImRect, ptr, ptr, float, %struct.ImVec2, [4 x i8] }>
%struct.ImGuiNavMoveResult = type <{ i32, [4 x i8], ptr, float, float, float, %struct.ImRect, [4 x i8] }>
%struct.ImDrawData = type <{ i8, [7 x i8], ptr, i32, i32, i32, %struct.ImVec2, %struct.ImVec2, [4 x i8] }>
%struct.ImDrawDataBuilder = type { [2 x %class.ImVector.5] }
%class.ImVector.5 = type { i32, i32, ptr }
%struct.ImDrawList = type { %class.ImVector.6, %class.ImVector.7, %class.ImVector.8, i32, ptr, ptr, i32, ptr, ptr, %class.ImVector.9, %class.ImVector.10, %class.ImVector.11, i32, i32, %class.ImVector.12 }
%class.ImVector.6 = type { i32, i32, ptr }
%class.ImVector.7 = type { i32, i32, ptr }
%class.ImVector.8 = type { i32, i32, ptr }
%class.ImVector.9 = type { i32, i32, ptr }
%class.ImVector.10 = type { i32, i32, ptr }
%class.ImVector.11 = type { i32, i32, ptr }
%class.ImVector.12 = type { i32, i32, ptr }
%struct.ImGuiPayload = type <{ ptr, i32, i32, i32, i32, [33 x i8], i8, i8, [5 x i8] }>
%struct.ImRect = type { %struct.ImVec2, %struct.ImVec2 }
%class.ImVector.13 = type { i32, i32, ptr }
%struct.ImGuiTextEditState = type <{ i32, [4 x i8], %class.ImVector.7, %class.ImVector.14, %class.ImVector.14, i32, i32, i32, float, %"struct.ImGuiStb::STB_TexteditState", float, i8, i8, [6 x i8] }>
%"struct.ImGuiStb::STB_TexteditState" = type { i32, i32, i32, i8, i8, i8, i8, i8, i8, i8, i8, float, %"struct.ImGuiStb::StbUndoState" }
%"struct.ImGuiStb::StbUndoState" = type { [99 x %"struct.ImGuiStb::StbUndoRecord"], [999 x i16], i16, i16, i32, i32 }
%"struct.ImGuiStb::StbUndoRecord" = type { i32, i32, i32, i32 }
%struct.ImFont = type { float, float, %struct.ImVec2, %class.ImVector.15, %class.ImVector.16, %class.ImVector.7, ptr, float, i16, i16, ptr, ptr, float, float, i8, i32 }
%class.ImVector.15 = type { i32, i32, ptr }
%class.ImVector.16 = type { i32, i32, ptr }
%struct.ImVec4 = type { float, float, float, float }
%class.ImVector.14 = type { i32, i32, ptr }
%struct.ImVec2 = type { float, float }
%class.ImVector.17 = type { i32, i32, ptr }
%class.ImVector.18 = type { i32, i32, ptr }
%struct.ImGuiTextBuffer = type { %class.ImVector.14 }
%struct.ImGuiSettingsHandler = type { ptr, i32, ptr, ptr, ptr, ptr }

@GImGui = external dso_local global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [7 x i8], align 1
@__PRETTY_FUNCTION__._ZN5ImGui25LoadIniSettingsFromMemoryEPKcm = external hidden unnamed_addr constant [60 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [47 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: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_Z13ImStrchrRangePKcS0_c(ptr noundef, ptr noundef, i8 noundef signext) #4

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5ImGui7MemFreeEPv(ptr noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5ImGui25LoadIniSettingsFromMemoryEPKcm(ptr noundef %0, i64 noundef %1) #3 {
  %3 = alloca ptr, align 8
  %4 = alloca i64, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i64 %1, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %16 = load ptr, ptr @GImGui, align 8, !tbaa !5
  store ptr %16, ptr %5, align 8, !tbaa !5
  %17 = load ptr, ptr %5, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.ImGuiContext, ptr %17, i32 0, i32 0
  %19 = load i8, ptr %18, align 8, !tbaa !11, !range !56, !noundef !57
  %20 = trunc i8 %19 to i1
  br i1 %20, label %21, label %22

21:                                               ; preds = %2
  br label %24

22:                                               ; preds = %2
  call void @__assert_fail(ptr noundef @.str.26, ptr noundef @.str.3, i32 noundef 4029, ptr noundef @__PRETTY_FUNCTION__._ZN5ImGui25LoadIniSettingsFromMemoryEPKcm) #7
  unreachable

23:                                               ; No predecessors!
  br label %24

24:                                               ; preds = %23, %21
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.ImGuiContext, ptr %25, i32 0, i32 129
  %27 = load i8, ptr %26, align 8, !tbaa !58, !range !56, !noundef !57
  %28 = trunc i8 %27 to i1
  %29 = zext i1 %28 to i32
  %30 = icmp eq i32 %29, 0
  br i1 %30, label %31, label %36

31:                                               ; preds = %24
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.ImGuiContext, ptr %32, i32 0, i32 10
  %34 = load i32, ptr %33, align 4, !tbaa !59
  %35 = icmp eq i32 %34, 0
  br label %36

36:                                               ; preds = %31, %24
  %37 = phi i1 [ false, %24 ], [ %35, %31 ]
  br i1 %37, label %38, label %39

38:                                               ; preds = %36
  br label %41

39:                                               ; preds = %36
  call void @__assert_fail(ptr noundef @.str.50, ptr noundef @.str.3, i32 noundef 4030, ptr noundef @__PRETTY_FUNCTION__._ZN5ImGui25LoadIniSettingsFromMemoryEPKcm) #7
  unreachable

40:                                               ; No predecessors!
  br label %41

41:                                               ; preds = %40, %38
  %42 = load i64, ptr %4, align 8, !tbaa !9
  %43 = icmp eq i64 %42, 0
  br i1 %43, label %44, label %47

44:                                               ; preds = %41
  %45 = load ptr, ptr %3, align 8, !tbaa !5
  %46 = call i64 @strlen(ptr noundef %45) #8
  store i64 %46, ptr %4, align 8, !tbaa !9
  br label %47

47:                                               ; preds = %44, %41
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %48 = load i64, ptr %4, align 8, !tbaa !9
  %49 = add i64 %48, 1
  %50 = call noundef ptr @_ZN5ImGui8MemAllocEm(i64 noundef %49)
  store ptr %50, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %51 = load ptr, ptr %6, align 8, !tbaa !5
  %52 = load i64, ptr %4, align 8, !tbaa !9
  %53 = getelementptr inbounds i8, ptr %51, i64 %52
  store ptr %53, ptr %7, align 8, !tbaa !5
  %54 = load ptr, ptr %6, align 8, !tbaa !5
  %55 = load ptr, ptr %3, align 8, !tbaa !5
  %56 = load i64, ptr %4, align 8, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %54, ptr align 1 %55, i64 %56, i1 false)
  %57 = load ptr, ptr %6, align 8, !tbaa !5
  %58 = load i64, ptr %4, align 8, !tbaa !9
  %59 = getelementptr inbounds i8, ptr %57, i64 %58
  store i8 0, ptr %59, align 1, !tbaa !60
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  store ptr null, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  store ptr null, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  store ptr null, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %60 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %60, ptr %11, align 8, !tbaa !5
  br label %61

61:                                               ; preds = %186, %47
  %62 = load ptr, ptr %11, align 8, !tbaa !5
  %63 = load ptr, ptr %7, align 8, !tbaa !5
  %64 = icmp ult ptr %62, %63
  br i1 %64, label %66, label %65

65:                                               ; preds = %61
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %189

66:                                               ; preds = %61
  br label %67

67:                                               ; preds = %79, %66
  %68 = load ptr, ptr %11, align 8, !tbaa !5
  %69 = load i8, ptr %68, align 1, !tbaa !60
  %70 = sext i8 %69 to i32
  %71 = icmp eq i32 %70, 10
  br i1 %71, label %77, label %72

72:                                               ; preds = %67
  %73 = load ptr, ptr %11, align 8, !tbaa !5
  %74 = load i8, ptr %73, align 1, !tbaa !60
  %75 = sext i8 %74 to i32
  %76 = icmp eq i32 %75, 13
  br label %77

77:                                               ; preds = %72, %67
  %78 = phi i1 [ true, %67 ], [ %76, %72 ]
  br i1 %78, label %79, label %82

79:                                               ; preds = %77
  %80 = load ptr, ptr %11, align 8, !tbaa !5
  %81 = getelementptr inbounds i8, ptr %80, i32 1
  store ptr %81, ptr %11, align 8, !tbaa !5
  br label %67, !llvm.loop !61

82:                                               ; preds = %77
  %83 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %83, ptr %10, align 8, !tbaa !5
  br label %84

84:                                               ; preds = %100, %82
  %85 = load ptr, ptr %10, align 8, !tbaa !5
  %86 = load ptr, ptr %7, align 8, !tbaa !5
  %87 = icmp ult ptr %85, %86
  br i1 %87, label %88, label %98

88:                                               ; preds = %84
  %89 = load ptr, ptr %10, align 8, !tbaa !5
  %90 = load i8, ptr %89, align 1, !tbaa !60
  %91 = sext i8 %90 to i32
  %92 = icmp ne i32 %91, 10
  br i1 %92, label %93, label %98

93:                                               ; preds = %88
  %94 = load ptr, ptr %10, align 8, !tbaa !5
  %95 = load i8, ptr %94, align 1, !tbaa !60
  %96 = sext i8 %95 to i32
  %97 = icmp ne i32 %96, 13
  br label %98

98:                                               ; preds = %93, %88, %84
  %99 = phi i1 [ false, %88 ], [ false, %84 ], [ %97, %93 ]
  br i1 %99, label %100, label %103

100:                                              ; preds = %98
  %101 = load ptr, ptr %10, align 8, !tbaa !5
  %102 = getelementptr inbounds i8, ptr %101, i32 1
  store ptr %102, ptr %10, align 8, !tbaa !5
  br label %84, !llvm.loop !63

103:                                              ; preds = %98
  %104 = load ptr, ptr %10, align 8, !tbaa !5
  %105 = getelementptr inbounds i8, ptr %104, i64 0
  store i8 0, ptr %105, align 1, !tbaa !60
  %106 = load ptr, ptr %11, align 8, !tbaa !5
  %107 = getelementptr inbounds i8, ptr %106, i64 0
  %108 = load i8, ptr %107, align 1, !tbaa !60
  %109 = sext i8 %108 to i32
  %110 = icmp eq i32 %109, 91
  br i1 %110, label %111, label %170

111:                                              ; preds = %103
  %112 = load ptr, ptr %10, align 8, !tbaa !5
  %113 = load ptr, ptr %11, align 8, !tbaa !5
  %114 = icmp ugt ptr %112, %113
  br i1 %114, label %115, label %170

115:                                              ; preds = %111
  %116 = load ptr, ptr %10, align 8, !tbaa !5
  %117 = getelementptr inbounds i8, ptr %116, i64 -1
  %118 = load i8, ptr %117, align 1, !tbaa !60
  %119 = sext i8 %118 to i32
  %120 = icmp eq i32 %119, 93
  br i1 %120, label %121, label %170

121:                                              ; preds = %115
  %122 = load ptr, ptr %10, align 8, !tbaa !5
  %123 = getelementptr inbounds i8, ptr %122, i64 -1
  store i8 0, ptr %123, align 1, !tbaa !60
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %124 = load ptr, ptr %10, align 8, !tbaa !5
  %125 = getelementptr inbounds i8, ptr %124, i64 -1
  store ptr %125, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %126 = load ptr, ptr %11, align 8, !tbaa !5
  %127 = getelementptr inbounds i8, ptr %126, i64 1
  store ptr %127, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %128 = load ptr, ptr %13, align 8, !tbaa !5
  %129 = load ptr, ptr %12, align 8, !tbaa !5
  %130 = call noundef ptr @_Z13ImStrchrRangePKcS0_c(ptr noundef %128, ptr noundef %129, i8 noundef signext 93)
  %131 = ptrtoint ptr %130 to i64
  %132 = inttoptr i64 %131 to ptr
  store ptr %132, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %133 = load ptr, ptr %14, align 8, !tbaa !5
  %134 = icmp ne ptr %133, null
  br i1 %134, label %135, label %140

135:                                              ; preds = %121
  %136 = load ptr, ptr %14, align 8, !tbaa !5
  %137 = getelementptr inbounds i8, ptr %136, i64 1
  %138 = load ptr, ptr %12, align 8, !tbaa !5
  %139 = call noundef ptr @_Z13ImStrchrRangePKcS0_c(ptr noundef %137, ptr noundef %138, i8 noundef signext 91)
  br label %141

140:                                              ; preds = %121
  br label %141

141:                                              ; preds = %140, %135
  %142 = phi ptr [ %139, %135 ], [ null, %140 ]
  store ptr %142, ptr %15, align 8, !tbaa !5
  %143 = load ptr, ptr %14, align 8, !tbaa !5
  %144 = icmp ne ptr %143, null
  br i1 %144, label %145, label %148

145:                                              ; preds = %141
  %146 = load ptr, ptr %15, align 8, !tbaa !5
  %147 = icmp ne ptr %146, null
  br i1 %147, label %150, label %148

148:                                              ; preds = %145, %141
  %149 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %149, ptr %15, align 8, !tbaa !5
  store ptr @.str.48, ptr %13, align 8, !tbaa !5
  br label %154

150:                                              ; preds = %145
  %151 = load ptr, ptr %14, align 8, !tbaa !5
  store i8 0, ptr %151, align 1, !tbaa !60
  %152 = load ptr, ptr %15, align 8, !tbaa !5
  %153 = getelementptr inbounds i8, ptr %152, i32 1
  store ptr %153, ptr %15, align 8, !tbaa !5
  br label %154

154:                                              ; preds = %150, %148
  %155 = load ptr, ptr %13, align 8, !tbaa !5
  %156 = call noundef ptr @_ZN5ImGui19FindSettingsHandlerEPKc(ptr noundef %155)
  store ptr %156, ptr %9, align 8, !tbaa !5
  %157 = load ptr, ptr %9, align 8, !tbaa !5
  %158 = icmp ne ptr %157, null
  br i1 %158, label %159, label %167

159:                                              ; preds = %154
  %160 = load ptr, ptr %9, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.ImGuiSettingsHandler, ptr %160, i32 0, i32 2
  %162 = load ptr, ptr %161, align 8, !tbaa !64
  %163 = load ptr, ptr %5, align 8, !tbaa !5
  %164 = load ptr, ptr %9, align 8, !tbaa !5
  %165 = load ptr, ptr %15, align 8, !tbaa !5
  %166 = call noundef ptr %162(ptr noundef %163, ptr noundef %164, ptr noundef %165)
  br label %168

167:                                              ; preds = %154
  br label %168

168:                                              ; preds = %167, %159
  %169 = phi ptr [ %166, %159 ], [ null, %167 ]
  store ptr %169, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %185

170:                                              ; preds = %115, %111, %103
  %171 = load ptr, ptr %9, align 8, !tbaa !5
  %172 = icmp ne ptr %171, null
  br i1 %172, label %173, label %184

173:                                              ; preds = %170
  %174 = load ptr, ptr %8, align 8, !tbaa !5
  %175 = icmp ne ptr %174, null
  br i1 %175, label %176, label %184

176:                                              ; preds = %173
  %177 = load ptr, ptr %9, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.ImGuiSettingsHandler, ptr %177, i32 0, i32 3
  %179 = load ptr, ptr %178, align 8, !tbaa !66
  %180 = load ptr, ptr %5, align 8, !tbaa !5
  %181 = load ptr, ptr %9, align 8, !tbaa !5
  %182 = load ptr, ptr %8, align 8, !tbaa !5
  %183 = load ptr, ptr %11, align 8, !tbaa !5
  call void %179(ptr noundef %180, ptr noundef %181, ptr noundef %182, ptr noundef %183)
  br label %184

184:                                              ; preds = %176, %173, %170
  br label %185

185:                                              ; preds = %184, %168
  br label %186

186:                                              ; preds = %185
  %187 = load ptr, ptr %10, align 8, !tbaa !5
  %188 = getelementptr inbounds i8, ptr %187, i64 1
  store ptr %188, ptr %11, align 8, !tbaa !5
  br label %61, !llvm.loop !67

189:                                              ; preds = %65
  %190 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN5ImGui7MemFreeEPv(ptr noundef %190)
  %191 = load ptr, ptr %5, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.ImGuiContext, ptr %191, i32 0, i32 129
  store i8 1, ptr %192, align 8, !tbaa !58
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN5ImGui19FindSettingsHandlerEPKc(ptr noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #4 = { 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 = { 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 #6 = { nounwind }
attributes #7 = { noreturn nounwind }
attributes #8 = { 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 = !{!"long", !7, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"_ZTS12ImGuiContext", !13, i64 0, !13, i64 1, !14, i64 8, !18, i64 5408, !6, i64 6232, !17, i64 6240, !17, i64 6244, !19, i64 6248, !17, i64 6384, !15, i64 6388, !15, i64 6392, !15, i64 6396, !21, i64 6400, !21, i64 6416, !21, i64 6432, !22, i64 6448, !15, i64 6464, !6, i64 6472, !6, i64 6480, !6, i64 6488, !15, i64 6496, !13, i64 6500, !15, i64 6504, !17, i64 6508, !15, i64 6512, !15, i64 6516, !17, i64 6520, !13, i64 6524, !13, i64 6525, !13, i64 6526, !13, i64 6527, !13, i64 6528, !13, i64 6529, !15, i64 6532, !16, i64 6536, !6, i64 6544, !6, i64 6552, !24, i64 6560, !15, i64 6564, !17, i64 6568, !6, i64 6576, !25, i64 6584, !26, i64 6600, !27, i64 6616, !28, i64 6632, !28, i64 6648, !29, i64 6664, !13, i64 6776, !15, i64 6780, !6, i64 6784, !15, i64 6792, !15, i64 6796, !15, i64 6800, !15, i64 6804, !15, i64 6808, !15, i64 6812, !15, i64 6816, !15, i64 6820, !24, i64 6824, !30, i64 6828, !15, i64 6844, !6, i64 6848, !17, i64 6856, !17, i64 6860, !13, i64 6864, !15, i64 6868, !15, i64 6872, !13, i64 6876, !13, i64 6877, !13, i64 6878, !13, i64 6879, !13, i64 6880, !13, i64 6881, !13, i64 6882, !15, i64 6884, !30, i64 6888, !13, i64 6904, !13, i64 6905, !15, i64 6908, !31, i64 6912, !15, i64 6916, !15, i64 6920, !15, i64 6924, !32, i64 6928, !32, i64 6976, !32, i64 7024, !33, i64 7072, !34, i64 7120, !17, i64 7152, !35, i64 7160, !15, i64 7328, !13, i64 7332, !15, i64 7336, !15, i64 7340, !43, i64 7344, !30, i64 7408, !15, i64 7424, !15, i64 7428, !17, i64 7432, !15, i64 7436, !15, i64 7440, !15, i64 7444, !44, i64 7448, !7, i64 7464, !45, i64 7472, !50, i64 11176, !15, i64 11288, !15, i64 11292, !20, i64 11296, !13, i64 11312, !17, i64 11316, !17, i64 11320, !16, i64 11324, !15, i64 11332, !46, i64 11336, !16, i64 11352, !16, i64 11360, !13, i64 11368, !17, i64 11372, !53, i64 11376, !54, i64 11392, !55, i64 11408, !13, i64 11424, !6, i64 11432, !53, i64 11440, !15, i64 11456, !15, i64 11460, !7, i64 11464, !15, i64 11944, !17, i64 11948, !15, i64 11952, !15, i64 11956, !15, i64 11960, !7, i64 11964}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"_ZTS7ImGuiIO", !15, i64 0, !15, i64 4, !16, i64 8, !17, i64 16, !17, i64 20, !6, i64 24, !6, i64 32, !17, i64 40, !17, i64 44, !17, i64 48, !7, i64 52, !17, i64 136, !17, i64 140, !6, i64 144, !6, i64 152, !17, i64 160, !13, i64 164, !6, i64 168, !16, i64 176, !16, i64 184, !16, i64 192, !13, i64 200, !13, i64 201, !6, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !16, i64 256, !7, i64 264, !17, i64 272, !17, i64 276, !13, i64 280, !13, i64 281, !13, i64 282, !13, i64 283, !13, i64 284, !7, i64 285, !7, i64 798, !7, i64 832, !13, i64 916, !13, i64 917, !13, i64 918, !13, i64 919, !13, i64 920, !13, i64 921, !13, i64 922, !17, i64 924, !15, i64 928, !15, i64 932, !15, i64 936, !16, i64 940, !16, i64 948, !7, i64 956, !7, i64 996, !7, i64 1016, !7, i64 1021, !7, i64 1026, !7, i64 1031, !7, i64 1036, !7, i64 1056, !7, i64 1076, !7, i64 1116, !7, i64 1136, !7, i64 3184, !7, i64 5232, !7, i64 5316}
!15 = !{!"int", !7, i64 0}
!16 = !{!"_ZTS6ImVec2", !17, i64 0, !17, i64 4}
!17 = !{!"float", !7, i64 0}
!18 = !{!"_ZTS10ImGuiStyle", !17, i64 0, !16, i64 4, !17, i64 12, !17, i64 16, !16, i64 20, !16, i64 28, !17, i64 36, !17, i64 40, !17, i64 44, !17, i64 48, !16, i64 52, !17, i64 60, !17, i64 64, !16, i64 68, !16, i64 76, !16, i64 84, !17, i64 92, !17, i64 96, !17, i64 100, !17, i64 104, !17, i64 108, !17, i64 112, !16, i64 116, !16, i64 124, !16, i64 132, !17, i64 140, !13, i64 144, !13, i64 145, !17, i64 148, !7, i64 152}
!19 = !{!"_ZTS20ImDrawListSharedData", !16, i64 0, !6, i64 8, !17, i64 16, !17, i64 20, !20, i64 24, !7, i64 40}
!20 = !{!"_ZTS6ImVec4", !17, i64 0, !17, i64 4, !17, i64 8, !17, i64 12}
!21 = !{!"_ZTS8ImVectorIP11ImGuiWindowE", !15, i64 0, !15, i64 4, !6, i64 8}
!22 = !{!"_ZTS12ImGuiStorage", !23, i64 0}
!23 = !{!"_ZTS8ImVectorIN12ImGuiStorage4PairEE", !15, i64 0, !15, i64 4, !6, i64 8}
!24 = !{!"_ZTS16ImGuiInputSource", !7, i64 0}
!25 = !{!"_ZTS8ImVectorI11ImGuiColModE", !15, i64 0, !15, i64 4, !6, i64 8}
!26 = !{!"_ZTS8ImVectorI13ImGuiStyleModE", !15, i64 0, !15, i64 4, !6, i64 8}
!27 = !{!"_ZTS8ImVectorIP6ImFontE", !15, i64 0, !15, i64 4, !6, i64 8}
!28 = !{!"_ZTS8ImVectorI13ImGuiPopupRefE", !15, i64 0, !15, i64 4, !6, i64 8}
!29 = !{!"_ZTS19ImGuiNextWindowData", !15, i64 0, !15, i64 4, !15, i64 8, !15, i64 12, !15, i64 16, !15, i64 20, !15, i64 24, !16, i64 28, !16, i64 36, !16, i64 44, !16, i64 52, !13, i64 60, !30, i64 64, !6, i64 80, !6, i64 88, !17, i64 96, !16, i64 100}
!30 = !{!"_ZTS6ImRect", !16, i64 0, !16, i64 8}
!31 = !{!"_ZTS15ImGuiNavForward", !7, i64 0}
!32 = !{!"_ZTS18ImGuiNavMoveResult", !15, i64 0, !6, i64 8, !17, i64 16, !17, i64 20, !17, i64 24, !30, i64 28}
!33 = !{!"_ZTS10ImDrawData", !13, i64 0, !6, i64 8, !15, i64 16, !15, i64 20, !15, i64 24, !16, i64 28, !16, i64 36}
!34 = !{!"_ZTS17ImDrawDataBuilder", !7, i64 0}
!35 = !{!"_ZTS10ImDrawList", !36, i64 0, !37, i64 16, !38, i64 32, !15, i64 48, !6, i64 56, !6, i64 64, !15, i64 72, !6, i64 80, !6, i64 88, !39, i64 96, !40, i64 112, !41, i64 128, !15, i64 144, !15, i64 148, !42, i64 152}
!36 = !{!"_ZTS8ImVectorI9ImDrawCmdE", !15, i64 0, !15, i64 4, !6, i64 8}
!37 = !{!"_ZTS8ImVectorItE", !15, i64 0, !15, i64 4, !6, i64 8}
!38 = !{!"_ZTS8ImVectorI10ImDrawVertE", !15, i64 0, !15, i64 4, !6, i64 8}
!39 = !{!"_ZTS8ImVectorI6ImVec4E", !15, i64 0, !15, i64 4, !6, i64 8}
!40 = !{!"_ZTS8ImVectorIPvE", !15, i64 0, !15, i64 4, !6, i64 8}
!41 = !{!"_ZTS8ImVectorI6ImVec2E", !15, i64 0, !15, i64 4, !6, i64 8}
!42 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !15, i64 0, !15, i64 4, !6, i64 8}
!43 = !{!"_ZTS12ImGuiPayload", !6, i64 0, !15, i64 8, !15, i64 12, !15, i64 16, !15, i64 20, !7, i64 24, !13, i64 57, !13, i64 58}
!44 = !{!"_ZTS8ImVectorIhE", !15, i64 0, !15, i64 4, !6, i64 8}
!45 = !{!"_ZTS18ImGuiTextEditState", !15, i64 0, !37, i64 8, !46, i64 24, !46, i64 40, !15, i64 56, !15, i64 60, !15, i64 64, !17, i64 68, !47, i64 72, !17, i64 3692, !13, i64 3696, !13, i64 3697}
!46 = !{!"_ZTS8ImVectorIcE", !15, i64 0, !15, i64 4, !6, i64 8}
!47 = !{!"_ZTSN8ImGuiStb17STB_TexteditStateE", !15, i64 0, !15, i64 4, !15, 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, !17, i64 20, !48, i64 24}
!48 = !{!"_ZTSN8ImGuiStb12StbUndoStateE", !7, i64 0, !7, i64 1584, !49, i64 3582, !49, i64 3584, !15, i64 3588, !15, i64 3592}
!49 = !{!"short", !7, i64 0}
!50 = !{!"_ZTS6ImFont", !17, i64 0, !17, i64 4, !16, i64 8, !51, i64 16, !52, i64 32, !37, i64 48, !6, i64 64, !17, i64 72, !49, i64 76, !49, i64 78, !6, i64 80, !6, i64 88, !17, i64 96, !17, i64 100, !13, i64 104, !15, i64 108}
!51 = !{!"_ZTS8ImVectorI11ImFontGlyphE", !15, i64 0, !15, i64 4, !6, i64 8}
!52 = !{!"_ZTS8ImVectorIfE", !15, i64 0, !15, i64 4, !6, i64 8}
!53 = !{!"_ZTS15ImGuiTextBuffer", !46, i64 0}
!54 = !{!"_ZTS8ImVectorI20ImGuiSettingsHandlerE", !15, i64 0, !15, i64 4, !6, i64 8}
!55 = !{!"_ZTS8ImVectorI19ImGuiWindowSettingsE", !15, i64 0, !15, i64 4, !6, i64 8}
!56 = !{i8 0, i8 2}
!57 = !{}
!58 = !{!12, !13, i64 11368}
!59 = !{!12, !15, i64 6388}
!60 = !{!7, !7, i64 0}
!61 = distinct !{!61, !62}
!62 = !{!"llvm.loop.mustprogress"}
!63 = distinct !{!63, !62}
!64 = !{!65, !6, i64 16}
!65 = !{!"_ZTS20ImGuiSettingsHandler", !6, i64 0, !15, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!66 = !{!65, !6, i64 24}
!67 = distinct !{!67, !62}


; 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"

@GImGui = external dso_local local_unnamed_addr global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [7 x i8], align 1
@__PRETTY_FUNCTION__._ZN5ImGui25LoadIniSettingsFromMemoryEPKcm = external hidden unnamed_addr constant [60 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [47 x i8], align 1

; 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) #0

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN5ImGui8MemAllocEm(i64 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_Z13ImStrchrRangePKcS0_c(ptr noundef, ptr noundef, i8 noundef signext) local_unnamed_addr #3

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5ImGui7MemFreeEPv(ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5ImGui25LoadIniSettingsFromMemoryEPKcm(ptr nocapture noundef readonly %0, i64 noundef %1) local_unnamed_addr #2 {
  %3 = load ptr, ptr @GImGui, align 8, !tbaa !5
  %4 = load i8, ptr %3, align 8, !tbaa !9, !range !54, !noundef !55
  %5 = trunc nuw i8 %4 to i1
  br i1 %5, label %7, label %6

6:                                                ; preds = %2
  tail call void @__assert_fail(ptr noundef nonnull @.str.26, ptr noundef nonnull @.str.3, i32 noundef 4029, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN5ImGui25LoadIniSettingsFromMemoryEPKcm) #5
  unreachable

7:                                                ; preds = %2
  %8 = getelementptr inbounds i8, ptr %3, i64 11368
  %9 = load i8, ptr %8, align 8, !tbaa !56, !range !54, !noundef !55
  %10 = icmp eq i8 %9, 0
  br i1 %10, label %11, label %.critedge

11:                                               ; preds = %7
  %12 = getelementptr inbounds i8, ptr %3, i64 6388
  %13 = load i32, ptr %12, align 4, !tbaa !57
  %14 = icmp eq i32 %13, 0
  br i1 %14, label %15, label %.critedge

.critedge:                                        ; preds = %7, %11
  tail call void @__assert_fail(ptr noundef nonnull @.str.50, ptr noundef nonnull @.str.3, i32 noundef 4030, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN5ImGui25LoadIniSettingsFromMemoryEPKcm) #5
  unreachable

15:                                               ; preds = %11
  %16 = icmp eq i64 %1, 0
  br i1 %16, label %17, label %19

17:                                               ; preds = %15
  %18 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %0) #6
  br label %19

19:                                               ; preds = %17, %15
  %.065 = phi i64 [ %18, %17 ], [ %1, %15 ]
  %20 = add i64 %.065, 1
  %21 = tail call noundef ptr @_ZN5ImGui8MemAllocEm(i64 noundef %20)
  %22 = getelementptr inbounds i8, ptr %21, i64 %.065
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 1 %21, ptr align 1 %0, i64 %.065, i1 false)
  store i8 0, ptr %22, align 1, !tbaa !58
  %23 = icmp sgt i64 %.065, 0
  br i1 %23, label %.preheader84, label %._crit_edge

.preheader84:                                     ; preds = %19, %58
  %.06792 = phi ptr [ %.1, %58 ], [ null, %19 ]
  %.06891 = phi ptr [ %59, %58 ], [ %21, %19 ]
  %.07190 = phi ptr [ %.172, %58 ], [ null, %19 ]
  br label %24

._crit_edge:                                      ; preds = %58, %19
  tail call void @_ZN5ImGui7MemFreeEPv(ptr noundef %21)
  store i8 1, ptr %8, align 8, !tbaa !56
  ret void

24:                                               ; preds = %.preheader84, %.critedge2
  %.169 = phi ptr [ %27, %.critedge2 ], [ %.06891, %.preheader84 ]
  %25 = load i8, ptr %.169, align 1, !tbaa !58
  switch i8 %25, label %.preheader [
    i8 10, label %.critedge2
    i8 13, label %.critedge2
  ]

.preheader:                                       ; preds = %24
  %26 = icmp ult ptr %.169, %22
  br i1 %26, label %.lr.ph, label %.critedge4.thread

.critedge4.thread:                                ; preds = %.preheader
  store i8 0, ptr %.169, align 1, !tbaa !58
  br label %52

.critedge2:                                       ; preds = %24, %24
  %27 = getelementptr inbounds i8, ptr %.169, i64 1
  br label %24, !llvm.loop !59

.lr.phthread-pre-split:                           ; preds = %29
  %.pr = load i8, ptr %30, align 1, !tbaa !58
  br label %.lr.ph

.lr.ph:                                           ; preds = %.preheader, %.lr.phthread-pre-split
  %28 = phi i8 [ %.pr, %.lr.phthread-pre-split ], [ %25, %.preheader ]
  %.07085 = phi ptr [ %30, %.lr.phthread-pre-split ], [ %.169, %.preheader ]
  switch i8 %28, label %29 [
    i8 10, label %.critedge4
    i8 13, label %.critedge4
  ]

29:                                               ; preds = %.lr.ph
  %30 = getelementptr inbounds i8, ptr %.07085, i64 1
  %31 = icmp ult ptr %30, %22
  br i1 %31, label %.lr.phthread-pre-split, label %.critedge4, !llvm.loop !61

.critedge4:                                       ; preds = %29, %.lr.ph, %.lr.ph
  %.070.lcssa = phi ptr [ %30, %29 ], [ %.07085, %.lr.ph ], [ %.07085, %.lr.ph ]
  store i8 0, ptr %.070.lcssa, align 1, !tbaa !58
  %32 = load i8, ptr %.169, align 1, !tbaa !58
  %33 = icmp eq i8 %32, 91
  %34 = icmp ugt ptr %.070.lcssa, %.169
  %or.cond82 = and i1 %34, %33
  br i1 %or.cond82, label %35, label %52

35:                                               ; preds = %.critedge4
  %36 = getelementptr inbounds i8, ptr %.070.lcssa, i64 -1
  %37 = load i8, ptr %36, align 1, !tbaa !58
  %38 = icmp eq i8 %37, 93
  br i1 %38, label %39, label %52

39:                                               ; preds = %35
  store i8 0, ptr %36, align 1, !tbaa !58
  %40 = getelementptr inbounds i8, ptr %.169, i64 1
  %41 = tail call noundef ptr @_Z13ImStrchrRangePKcS0_c(ptr noundef nonnull %40, ptr noundef nonnull %36, i8 noundef signext 93)
  %.not = icmp eq ptr %41, null
  br i1 %.not, label %.thread, label %42

42:                                               ; preds = %39
  %43 = getelementptr inbounds i8, ptr %41, i64 1
  %44 = tail call noundef ptr @_Z13ImStrchrRangePKcS0_c(ptr noundef nonnull %43, ptr noundef nonnull %36, i8 noundef signext 91)
  %.not93 = icmp eq ptr %44, null
  br i1 %.not93, label %.thread, label %45

45:                                               ; preds = %42
  store i8 0, ptr %41, align 1, !tbaa !58
  %46 = getelementptr inbounds i8, ptr %44, i64 1
  br label %.thread

.thread:                                          ; preds = %39, %42, %45
  %.066 = phi ptr [ %40, %45 ], [ @.str.48, %42 ], [ @.str.48, %39 ]
  %.0 = phi ptr [ %46, %45 ], [ %40, %42 ], [ %40, %39 ]
  %47 = tail call noundef ptr @_ZN5ImGui19FindSettingsHandlerEPKc(ptr noundef nonnull %.066)
  %.not81 = icmp eq ptr %47, null
  br i1 %.not81, label %58, label %48

48:                                               ; preds = %.thread
  %49 = getelementptr inbounds i8, ptr %47, i64 16
  %50 = load ptr, ptr %49, align 8, !tbaa !62
  %51 = tail call noundef ptr %50(ptr noundef nonnull %3, ptr noundef nonnull %47, ptr noundef nonnull %.0)
  br label %58

52:                                               ; preds = %.critedge4.thread, %35, %.critedge4
  %.070.lcssa97 = phi ptr [ %.169, %.critedge4.thread ], [ %.070.lcssa, %35 ], [ %.070.lcssa, %.critedge4 ]
  %53 = icmp ne ptr %.07190, null
  %54 = icmp ne ptr %.06792, null
  %or.cond7 = select i1 %53, i1 %54, i1 false
  br i1 %or.cond7, label %55, label %58

55:                                               ; preds = %52
  %56 = getelementptr inbounds i8, ptr %.07190, i64 24
  %57 = load ptr, ptr %56, align 8, !tbaa !64
  tail call void %57(ptr noundef nonnull %3, ptr noundef nonnull %.07190, ptr noundef nonnull %.06792, ptr noundef nonnull %.169)
  br label %58

58:                                               ; preds = %48, %.thread, %55, %52
  %.070.lcssa96 = phi ptr [ %.070.lcssa97, %55 ], [ %.070.lcssa97, %52 ], [ %.070.lcssa, %.thread ], [ %.070.lcssa, %48 ]
  %.172 = phi ptr [ %.07190, %55 ], [ %.07190, %52 ], [ null, %.thread ], [ %47, %48 ]
  %.1 = phi ptr [ %.06792, %55 ], [ %.06792, %52 ], [ null, %.thread ], [ %51, %48 ]
  %59 = getelementptr inbounds i8, ptr %.070.lcssa96, i64 1
  %60 = icmp ult ptr %59, %22
  br i1 %60, label %.preheader84, label %._crit_edge, !llvm.loop !65
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN5ImGui19FindSettingsHandlerEPKc(ptr noundef) local_unnamed_addr #2

attributes #0 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nofree nounwind willreturn memory(argmem: 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 #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 = { 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 #5 = { noreturn nounwind }
attributes #6 = { 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, !11, i64 0}
!10 = !{!"_ZTS12ImGuiContext", !11, i64 0, !11, i64 1, !12, i64 8, !16, i64 5408, !6, i64 6232, !15, i64 6240, !15, i64 6244, !17, i64 6248, !15, i64 6384, !13, i64 6388, !13, i64 6392, !13, i64 6396, !19, i64 6400, !19, i64 6416, !19, i64 6432, !20, i64 6448, !13, i64 6464, !6, i64 6472, !6, i64 6480, !6, i64 6488, !13, i64 6496, !11, i64 6500, !13, i64 6504, !15, i64 6508, !13, i64 6512, !13, i64 6516, !15, i64 6520, !11, i64 6524, !11, i64 6525, !11, i64 6526, !11, i64 6527, !11, i64 6528, !11, i64 6529, !13, i64 6532, !14, i64 6536, !6, i64 6544, !6, i64 6552, !22, i64 6560, !13, i64 6564, !15, i64 6568, !6, i64 6576, !23, i64 6584, !24, i64 6600, !25, i64 6616, !26, i64 6632, !26, i64 6648, !27, i64 6664, !11, i64 6776, !13, i64 6780, !6, i64 6784, !13, i64 6792, !13, i64 6796, !13, i64 6800, !13, i64 6804, !13, i64 6808, !13, i64 6812, !13, i64 6816, !13, i64 6820, !22, i64 6824, !28, i64 6828, !13, i64 6844, !6, i64 6848, !15, i64 6856, !15, i64 6860, !11, i64 6864, !13, i64 6868, !13, i64 6872, !11, i64 6876, !11, i64 6877, !11, i64 6878, !11, i64 6879, !11, i64 6880, !11, i64 6881, !11, i64 6882, !13, i64 6884, !28, i64 6888, !11, i64 6904, !11, i64 6905, !13, i64 6908, !29, i64 6912, !13, i64 6916, !13, i64 6920, !13, i64 6924, !30, i64 6928, !30, i64 6976, !30, i64 7024, !31, i64 7072, !32, i64 7120, !15, i64 7152, !33, i64 7160, !13, i64 7328, !11, i64 7332, !13, i64 7336, !13, i64 7340, !41, i64 7344, !28, i64 7408, !13, i64 7424, !13, i64 7428, !15, i64 7432, !13, i64 7436, !13, i64 7440, !13, i64 7444, !42, i64 7448, !7, i64 7464, !43, i64 7472, !48, i64 11176, !13, i64 11288, !13, i64 11292, !18, i64 11296, !11, i64 11312, !15, i64 11316, !15, i64 11320, !14, i64 11324, !13, i64 11332, !44, i64 11336, !14, i64 11352, !14, i64 11360, !11, i64 11368, !15, i64 11372, !51, i64 11376, !52, i64 11392, !53, i64 11408, !11, i64 11424, !6, i64 11432, !51, i64 11440, !13, i64 11456, !13, i64 11460, !7, i64 11464, !13, i64 11944, !15, i64 11948, !13, i64 11952, !13, i64 11956, !13, i64 11960, !7, i64 11964}
!11 = !{!"bool", !7, i64 0}
!12 = !{!"_ZTS7ImGuiIO", !13, i64 0, !13, i64 4, !14, i64 8, !15, i64 16, !15, i64 20, !6, i64 24, !6, i64 32, !15, i64 40, !15, i64 44, !15, i64 48, !7, i64 52, !15, i64 136, !15, i64 140, !6, i64 144, !6, i64 152, !15, i64 160, !11, i64 164, !6, i64 168, !14, i64 176, !14, i64 184, !14, i64 192, !11, i64 200, !11, i64 201, !6, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !14, i64 256, !7, i64 264, !15, i64 272, !15, i64 276, !11, i64 280, !11, i64 281, !11, i64 282, !11, i64 283, !11, i64 284, !7, i64 285, !7, i64 798, !7, i64 832, !11, i64 916, !11, i64 917, !11, i64 918, !11, i64 919, !11, i64 920, !11, i64 921, !11, i64 922, !15, i64 924, !13, i64 928, !13, i64 932, !13, i64 936, !14, i64 940, !14, i64 948, !7, i64 956, !7, i64 996, !7, i64 1016, !7, i64 1021, !7, i64 1026, !7, i64 1031, !7, i64 1036, !7, i64 1056, !7, i64 1076, !7, i64 1116, !7, i64 1136, !7, i64 3184, !7, i64 5232, !7, i64 5316}
!13 = !{!"int", !7, i64 0}
!14 = !{!"_ZTS6ImVec2", !15, i64 0, !15, i64 4}
!15 = !{!"float", !7, i64 0}
!16 = !{!"_ZTS10ImGuiStyle", !15, i64 0, !14, i64 4, !15, i64 12, !15, i64 16, !14, i64 20, !14, i64 28, !15, i64 36, !15, i64 40, !15, i64 44, !15, i64 48, !14, i64 52, !15, i64 60, !15, i64 64, !14, i64 68, !14, i64 76, !14, i64 84, !15, i64 92, !15, i64 96, !15, i64 100, !15, i64 104, !15, i64 108, !15, i64 112, !14, i64 116, !14, i64 124, !14, i64 132, !15, i64 140, !11, i64 144, !11, i64 145, !15, i64 148, !7, i64 152}
!17 = !{!"_ZTS20ImDrawListSharedData", !14, i64 0, !6, i64 8, !15, i64 16, !15, i64 20, !18, i64 24, !7, i64 40}
!18 = !{!"_ZTS6ImVec4", !15, i64 0, !15, i64 4, !15, i64 8, !15, i64 12}
!19 = !{!"_ZTS8ImVectorIP11ImGuiWindowE", !13, i64 0, !13, i64 4, !6, i64 8}
!20 = !{!"_ZTS12ImGuiStorage", !21, i64 0}
!21 = !{!"_ZTS8ImVectorIN12ImGuiStorage4PairEE", !13, i64 0, !13, i64 4, !6, i64 8}
!22 = !{!"_ZTS16ImGuiInputSource", !7, i64 0}
!23 = !{!"_ZTS8ImVectorI11ImGuiColModE", !13, i64 0, !13, i64 4, !6, i64 8}
!24 = !{!"_ZTS8ImVectorI13ImGuiStyleModE", !13, i64 0, !13, i64 4, !6, i64 8}
!25 = !{!"_ZTS8ImVectorIP6ImFontE", !13, i64 0, !13, i64 4, !6, i64 8}
!26 = !{!"_ZTS8ImVectorI13ImGuiPopupRefE", !13, i64 0, !13, i64 4, !6, i64 8}
!27 = !{!"_ZTS19ImGuiNextWindowData", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !13, i64 24, !14, i64 28, !14, i64 36, !14, i64 44, !14, i64 52, !11, i64 60, !28, i64 64, !6, i64 80, !6, i64 88, !15, i64 96, !14, i64 100}
!28 = !{!"_ZTS6ImRect", !14, i64 0, !14, i64 8}
!29 = !{!"_ZTS15ImGuiNavForward", !7, i64 0}
!30 = !{!"_ZTS18ImGuiNavMoveResult", !13, i64 0, !6, i64 8, !15, i64 16, !15, i64 20, !15, i64 24, !28, i64 28}
!31 = !{!"_ZTS10ImDrawData", !11, i64 0, !6, i64 8, !13, i64 16, !13, i64 20, !13, i64 24, !14, i64 28, !14, i64 36}
!32 = !{!"_ZTS17ImDrawDataBuilder", !7, i64 0}
!33 = !{!"_ZTS10ImDrawList", !34, i64 0, !35, i64 16, !36, i64 32, !13, i64 48, !6, i64 56, !6, i64 64, !13, i64 72, !6, i64 80, !6, i64 88, !37, i64 96, !38, i64 112, !39, i64 128, !13, i64 144, !13, i64 148, !40, i64 152}
!34 = !{!"_ZTS8ImVectorI9ImDrawCmdE", !13, i64 0, !13, i64 4, !6, i64 8}
!35 = !{!"_ZTS8ImVectorItE", !13, i64 0, !13, i64 4, !6, i64 8}
!36 = !{!"_ZTS8ImVectorI10ImDrawVertE", !13, i64 0, !13, i64 4, !6, i64 8}
!37 = !{!"_ZTS8ImVectorI6ImVec4E", !13, i64 0, !13, i64 4, !6, i64 8}
!38 = !{!"_ZTS8ImVectorIPvE", !13, i64 0, !13, i64 4, !6, i64 8}
!39 = !{!"_ZTS8ImVectorI6ImVec2E", !13, i64 0, !13, i64 4, !6, i64 8}
!40 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !13, i64 0, !13, i64 4, !6, i64 8}
!41 = !{!"_ZTS12ImGuiPayload", !6, i64 0, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !7, i64 24, !11, i64 57, !11, i64 58}
!42 = !{!"_ZTS8ImVectorIhE", !13, i64 0, !13, i64 4, !6, i64 8}
!43 = !{!"_ZTS18ImGuiTextEditState", !13, i64 0, !35, i64 8, !44, i64 24, !44, i64 40, !13, i64 56, !13, i64 60, !13, i64 64, !15, i64 68, !45, i64 72, !15, i64 3692, !11, i64 3696, !11, i64 3697}
!44 = !{!"_ZTS8ImVectorIcE", !13, i64 0, !13, i64 4, !6, i64 8}
!45 = !{!"_ZTSN8ImGuiStb17STB_TexteditStateE", !13, i64 0, !13, i64 4, !13, 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, !46, i64 24}
!46 = !{!"_ZTSN8ImGuiStb12StbUndoStateE", !7, i64 0, !7, i64 1584, !47, i64 3582, !47, i64 3584, !13, i64 3588, !13, i64 3592}
!47 = !{!"short", !7, i64 0}
!48 = !{!"_ZTS6ImFont", !15, i64 0, !15, i64 4, !14, i64 8, !49, i64 16, !50, i64 32, !35, i64 48, !6, i64 64, !15, i64 72, !47, i64 76, !47, i64 78, !6, i64 80, !6, i64 88, !15, i64 96, !15, i64 100, !11, i64 104, !13, i64 108}
!49 = !{!"_ZTS8ImVectorI11ImFontGlyphE", !13, i64 0, !13, i64 4, !6, i64 8}
!50 = !{!"_ZTS8ImVectorIfE", !13, i64 0, !13, i64 4, !6, i64 8}
!51 = !{!"_ZTS15ImGuiTextBuffer", !44, i64 0}
!52 = !{!"_ZTS8ImVectorI20ImGuiSettingsHandlerE", !13, i64 0, !13, i64 4, !6, i64 8}
!53 = !{!"_ZTS8ImVectorI19ImGuiWindowSettingsE", !13, i64 0, !13, i64 4, !6, i64 8}
!54 = !{i8 0, i8 2}
!55 = !{}
!56 = !{!10, !11, i64 11368}
!57 = !{!10, !13, i64 6388}
!58 = !{!7, !7, i64 0}
!59 = distinct !{!59, !60}
!60 = !{!"llvm.loop.mustprogress"}
!61 = distinct !{!61, !60}
!62 = !{!63, !6, i64 16}
!63 = !{!"_ZTS20ImGuiSettingsHandler", !6, i64 0, !13, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!64 = !{!63, !6, i64 24}
!65 = distinct !{!65, !60}


; Effective O3 passes: ConstraintEliminationPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass