; LLVM IR from NotManyIdeasDev/double-pendulum-sim :: double-pendulum-sim/Libraries/raygui-2.8/examples/text_editor (text_editor)

; 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.Rectangle = type { float, float, float, float }
%struct.Font = type { i32, i32, i32, %struct.Texture, ptr, ptr }
%struct.Texture = type { i32, i32, i32, i32, i32 }
%struct.Vector2 = type { float, float }
%struct.Color = type { i8, i8, i8, i8 }
%struct.CharInfo = type { i32, i32, i32, i32, %struct.Image }
%struct.Image = type { ptr, i32, i32, i32, i32 }

@guiState = external hidden global i32, align 4
@guiLocked = external hidden global i8, align 1
@guiAlpha = external hidden global float, align 4
@GuiTextEditor.cursor = external hidden global %struct.Rectangle, align 4
@GuiTextEditor.framesCounter = external hidden global i32, align 4
@GuiTextEditor.cursorCodepoint = external hidden global i32, align 4
@GuiTextEditor.selectStartCp = external hidden global i32, align 4
@GuiTextEditor.selectLengthCp = external hidden global i32, align 4

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @GuiGetStyle(i32 noundef, i32 noundef) #2

declare i32 @Fade(i32, float noundef) #3

declare i32 @GetColor(i32 noundef) #3

declare <2 x float> @GetMousePosition() #3

declare zeroext i1 @CheckCollisionPointRec(<2 x float>, <2 x float>, <2 x float>) #3

declare zeroext i1 @IsMouseButtonDown(i32 noundef) #3

declare zeroext i1 @IsKeyDown(i32 noundef) #3

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

declare zeroext i1 @IsMouseButtonPressed(i32 noundef) #3

declare i32 @GetCharPressed() #3

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

declare zeroext i1 @IsKeyPressed(i32 noundef) #3

declare void @GetFontDefault(ptr dead_on_unwind writable sret(%struct.Font) align 8) #3

declare void @DrawRectangle(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32) #3

; Function Attrs: nounwind uwtable
define dso_local zeroext i1 @GuiTextEditor(<2 x float> %0, <2 x float> %1, ptr noundef %2, i32 noundef %3, i1 noundef zeroext %4) #6 {
  %6 = alloca %struct.Rectangle, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i8, align 1
  %10 = alloca i32, align 4
  %11 = alloca i8, align 1
  %12 = alloca i8, align 1
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca %struct.Vector2, align 4
  %16 = alloca i32, align 4
  %17 = alloca %struct.Rectangle, align 4
  %18 = alloca %struct.Color, align 1
  %19 = alloca %struct.Color, align 1
  %20 = alloca %struct.Color, align 1
  %21 = alloca %struct.Color, align 1
  %22 = alloca %struct.Color, align 1
  %23 = alloca %struct.Color, align 1
  %24 = alloca %struct.Font, align 8
  %25 = alloca i32, align 4
  %26 = alloca float, align 4
  %27 = alloca float, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca %struct.Rectangle, align 4
  %34 = alloca %struct.Rectangle, align 4
  %35 = alloca %struct.Vector2, align 4
  %36 = alloca %struct.Vector2, align 4
  %37 = alloca %struct.Vector2, align 4
  %38 = alloca %struct.Color, align 1
  %39 = alloca %struct.Texture, align 8
  %40 = alloca %struct.Color, align 1
  %41 = alloca %struct.Color, align 1
  %42 = alloca %struct.Color, align 1
  %43 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %6, i32 0, i32 0
  store <2 x float> %0, ptr %43, align 4
  %44 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %6, i32 0, i32 1
  store <2 x float> %1, ptr %44, align 4
  store ptr %2, ptr %7, align 8, !tbaa !5
  store i32 %3, ptr %8, align 4, !tbaa !9
  %45 = zext i1 %4 to i8
  store i8 %45, ptr %9, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  %46 = load i32, ptr @guiState, align 4, !tbaa !9
  store i32 %46, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #7
  store i8 0, ptr %11, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #7
  store i8 1, ptr %12, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  %47 = load ptr, ptr %7, align 8, !tbaa !5
  %48 = call i32 @GetCodepointsCount(ptr noundef %47)
  store i32 %48, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  %49 = load ptr, ptr %7, align 8, !tbaa !5
  %50 = call i64 @strlen(ptr noundef %49) #8
  %51 = trunc i64 %50 to i32
  store i32 %51, ptr %14, align 4, !tbaa !9
  %52 = load i32, ptr %10, align 4, !tbaa !9
  %53 = icmp ne i32 %52, 3
  br i1 %53, label %54, label %130

54:                                               ; preds = %5
  %55 = load i8, ptr @guiLocked, align 1, !tbaa !11, !range !13, !noundef !14
  %56 = trunc i8 %55 to i1
  br i1 %56, label %130, label %57

57:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %58 = call <2 x float> @GetMousePosition()
  store <2 x float> %58, ptr %15, align 4
  %59 = load i8, ptr %9, align 1, !tbaa !11, !range !13, !noundef !14
  %60 = trunc i8 %59 to i1
  br i1 %60, label %61, label %109

61:                                               ; preds = %57
  store i32 2, ptr %10, align 4, !tbaa !9
  %62 = load i32, ptr @GuiTextEditor.framesCounter, align 4, !tbaa !9
  %63 = add nsw i32 %62, 1
  store i32 %63, ptr @GuiTextEditor.framesCounter, align 4, !tbaa !9
  %64 = load i32, ptr @GuiTextEditor.selectStartCp, align 4, !tbaa !9
  %65 = icmp ne i32 %64, -1
  br i1 %65, label %66, label %95

66:                                               ; preds = %61
  %67 = call zeroext i1 @IsKeyDown(i32 noundef 340)
  br i1 %67, label %68, label %83

68:                                               ; preds = %66
  %69 = call zeroext i1 @IsKeyPressed(i32 noundef 262)
  br i1 %69, label %70, label %83

70:                                               ; preds = %68
  %71 = load i32, ptr @GuiTextEditor.selectLengthCp, align 4, !tbaa !9
  %72 = add nsw i32 %71, 1
  store i32 %72, ptr @GuiTextEditor.selectLengthCp, align 4, !tbaa !9
  %73 = load i32, ptr @GuiTextEditor.selectLengthCp, align 4, !tbaa !9
  %74 = load i32, ptr %13, align 4, !tbaa !9
  %75 = load i32, ptr @GuiTextEditor.selectStartCp, align 4, !tbaa !9
  %76 = sub nsw i32 %74, %75
  %77 = icmp sge i32 %73, %76
  br i1 %77, label %78, label %82

78:                                               ; preds = %70
  %79 = load i32, ptr %13, align 4, !tbaa !9
  %80 = load i32, ptr @GuiTextEditor.selectStartCp, align 4, !tbaa !9
  %81 = sub nsw i32 %79, %80
  store i32 %81, ptr @GuiTextEditor.selectLengthCp, align 4, !tbaa !9
  br label %82

82:                                               ; preds = %78, %70
  br label %83

83:                                               ; preds = %82, %68, %66
  %84 = call zeroext i1 @IsKeyDown(i32 noundef 340)
  br i1 %84, label %85, label %94

85:                                               ; preds = %83
  %86 = call zeroext i1 @IsKeyPressed(i32 noundef 263)
  br i1 %86, label %87, label %94

87:                                               ; preds = %85
  %88 = load i32, ptr @GuiTextEditor.selectLengthCp, align 4, !tbaa !9
  %89 = add nsw i32 %88, -1
  store i32 %89, ptr @GuiTextEditor.selectLengthCp, align 4, !tbaa !9
  %90 = load i32, ptr @GuiTextEditor.selectLengthCp, align 4, !tbaa !9
  %91 = icmp slt i32 %90, 0
  br i1 %91, label %92, label %93

92:                                               ; preds = %87
  store i32 0, ptr @GuiTextEditor.selectLengthCp, align 4, !tbaa !9
  br label %93

93:                                               ; preds = %92, %87
  br label %94

94:                                               ; preds = %93, %85, %83
  br label %95

95:                                               ; preds = %94, %61
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  %96 = call i32 @GetCharPressed()
  store i32 %96, ptr %16, align 4, !tbaa !9
  %97 = call zeroext i1 @IsKeyPressed(i32 noundef 257)
  br i1 %97, label %107, label %98

98:                                               ; preds = %95
  %99 = load <2 x float>, ptr %15, align 4
  %100 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %6, i32 0, i32 0
  %101 = load <2 x float>, ptr %100, align 4
  %102 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %6, i32 0, i32 1
  %103 = load <2 x float>, ptr %102, align 4
  %104 = call zeroext i1 @CheckCollisionPointRec(<2 x float> %99, <2 x float> %101, <2 x float> %103)
  br i1 %104, label %108, label %105

105:                                              ; preds = %98
  %106 = call zeroext i1 @IsMouseButtonPressed(i32 noundef 0)
  br i1 %106, label %107, label %108

107:                                              ; preds = %105, %95
  store i8 1, ptr %11, align 1, !tbaa !11
  br label %108

108:                                              ; preds = %107, %105, %98
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %121

109:                                              ; preds = %57
  %110 = load <2 x float>, ptr %15, align 4
  %111 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %6, i32 0, i32 0
  %112 = load <2 x float>, ptr %111, align 4
  %113 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %6, i32 0, i32 1
  %114 = load <2 x float>, ptr %113, align 4
  %115 = call zeroext i1 @CheckCollisionPointRec(<2 x float> %110, <2 x float> %112, <2 x float> %114)
  br i1 %115, label %116, label %120

116:                                              ; preds = %109
  store i32 1, ptr %10, align 4, !tbaa !9
  %117 = call zeroext i1 @IsMouseButtonPressed(i32 noundef 0)
  br i1 %117, label %118, label %119

118:                                              ; preds = %116
  store i8 1, ptr %11, align 1, !tbaa !11
  br label %119

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

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

121:                                              ; preds = %120, %108
  %122 = load i8, ptr %11, align 1, !tbaa !11, !range !13, !noundef !14
  %123 = trunc i8 %122 to i1
  br i1 %123, label %124, label %129

124:                                              ; preds = %121
  store i32 0, ptr @GuiTextEditor.framesCounter, align 4, !tbaa !9
  %125 = getelementptr inbounds %struct.Rectangle, ptr %17, i32 0, i32 0
  store float 0.000000e+00, ptr %125, align 4, !tbaa !15
  %126 = getelementptr inbounds %struct.Rectangle, ptr %17, i32 0, i32 1
  store float 0.000000e+00, ptr %126, align 4, !tbaa !18
  %127 = getelementptr inbounds %struct.Rectangle, ptr %17, i32 0, i32 2
  store float 0.000000e+00, ptr %127, align 4, !tbaa !19
  %128 = getelementptr inbounds %struct.Rectangle, ptr %17, i32 0, i32 3
  store float 0.000000e+00, ptr %128, align 4, !tbaa !20
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 @GuiTextEditor.cursor, ptr align 4 %17, i64 16, i1 false), !tbaa.struct !21
  store i32 -1, ptr @GuiTextEditor.cursorCodepoint, align 4, !tbaa !9
  store i32 -1, ptr @GuiTextEditor.selectStartCp, align 4, !tbaa !9
  store i32 0, ptr @GuiTextEditor.selectLengthCp, align 4, !tbaa !9
  br label %129

129:                                              ; preds = %124, %121
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  br label %130

130:                                              ; preds = %129, %54, %5
  %131 = call i32 @GuiGetStyle(i32 noundef 9, i32 noundef 12)
  %132 = load i32, ptr %10, align 4, !tbaa !9
  %133 = mul i32 %132, 3
  %134 = add i32 0, %133
  %135 = call i32 @GuiGetStyle(i32 noundef 9, i32 noundef %134)
  %136 = call i32 @GetColor(i32 noundef %135)
  store i32 %136, ptr %19, align 1
  %137 = load float, ptr @guiAlpha, align 4, !tbaa !22
  %138 = load i32, ptr %19, align 1
  %139 = call i32 @Fade(i32 %138, float noundef %137)
  store i32 %139, ptr %18, align 1
  %140 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %6, i32 0, i32 0
  %141 = load <2 x float>, ptr %140, align 4
  %142 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %6, i32 0, i32 1
  %143 = load <2 x float>, ptr %142, align 4
  %144 = load i32, ptr %18, align 1
  call void @DrawRectangleLinesEx(<2 x float> %141, <2 x float> %143, i32 noundef %131, i32 %144)
  %145 = load i32, ptr %10, align 4, !tbaa !9
  %146 = icmp eq i32 %145, 2
  br i1 %146, label %147, label %180

147:                                              ; preds = %130
  %148 = getelementptr inbounds %struct.Rectangle, ptr %6, i32 0, i32 0
  %149 = load float, ptr %148, align 4, !tbaa !15
  %150 = call i32 @GuiGetStyle(i32 noundef 9, i32 noundef 12)
  %151 = sitofp i32 %150 to float
  %152 = fadd float %149, %151
  %153 = fptosi float %152 to i32
  %154 = getelementptr inbounds %struct.Rectangle, ptr %6, i32 0, i32 1
  %155 = load float, ptr %154, align 4, !tbaa !18
  %156 = call i32 @GuiGetStyle(i32 noundef 9, i32 noundef 12)
  %157 = sitofp i32 %156 to float
  %158 = fadd float %155, %157
  %159 = fptosi float %158 to i32
  %160 = getelementptr inbounds %struct.Rectangle, ptr %6, i32 0, i32 2
  %161 = load float, ptr %160, align 4, !tbaa !19
  %162 = call i32 @GuiGetStyle(i32 noundef 9, i32 noundef 12)
  %163 = mul nsw i32 2, %162
  %164 = sitofp i32 %163 to float
  %165 = fsub float %161, %164
  %166 = fptosi float %165 to i32
  %167 = getelementptr inbounds %struct.Rectangle, ptr %6, i32 0, i32 3
  %168 = load float, ptr %167, align 4, !tbaa !20
  %169 = call i32 @GuiGetStyle(i32 noundef 9, i32 noundef 12)
  %170 = mul nsw i32 2, %169
  %171 = sitofp i32 %170 to float
  %172 = fsub float %168, %171
  %173 = fptosi float %172 to i32
  %174 = call i32 @GuiGetStyle(i32 noundef 9, i32 noundef 7)
  %175 = call i32 @GetColor(i32 noundef %174)
  store i32 %175, ptr %21, align 1
  %176 = load float, ptr @guiAlpha, align 4, !tbaa !22
  %177 = load i32, ptr %21, align 1
  %178 = call i32 @Fade(i32 %177, float noundef %176)
  store i32 %178, ptr %20, align 1
  %179 = load i32, ptr %20, align 1
  call void @DrawRectangle(i32 noundef %153, i32 noundef %159, i32 noundef %166, i32 noundef %173, i32 %179)
  br label %217

180:                                              ; preds = %130
  %181 = load i32, ptr %10, align 4, !tbaa !9
  %182 = icmp eq i32 %181, 3
  br i1 %182, label %183, label %216

183:                                              ; preds = %180
  %184 = getelementptr inbounds %struct.Rectangle, ptr %6, i32 0, i32 0
  %185 = load float, ptr %184, align 4, !tbaa !15
  %186 = call i32 @GuiGetStyle(i32 noundef 9, i32 noundef 12)
  %187 = sitofp i32 %186 to float
  %188 = fadd float %185, %187
  %189 = fptosi float %188 to i32
  %190 = getelementptr inbounds %struct.Rectangle, ptr %6, i32 0, i32 1
  %191 = load float, ptr %190, align 4, !tbaa !18
  %192 = call i32 @GuiGetStyle(i32 noundef 9, i32 noundef 12)
  %193 = sitofp i32 %192 to float
  %194 = fadd float %191, %193
  %195 = fptosi float %194 to i32
  %196 = getelementptr inbounds %struct.Rectangle, ptr %6, i32 0, i32 2
  %197 = load float, ptr %196, align 4, !tbaa !19
  %198 = call i32 @GuiGetStyle(i32 noundef 9, i32 noundef 12)
  %199 = mul nsw i32 2, %198
  %200 = sitofp i32 %199 to float
  %201 = fsub float %197, %200
  %202 = fptosi float %201 to i32
  %203 = getelementptr inbounds %struct.Rectangle, ptr %6, i32 0, i32 3
  %204 = load float, ptr %203, align 4, !tbaa !20
  %205 = call i32 @GuiGetStyle(i32 noundef 9, i32 noundef 12)
  %206 = mul nsw i32 2, %205
  %207 = sitofp i32 %206 to float
  %208 = fsub float %204, %207
  %209 = fptosi float %208 to i32
  %210 = call i32 @GuiGetStyle(i32 noundef 9, i32 noundef 10)
  %211 = call i32 @GetColor(i32 noundef %210)
  store i32 %211, ptr %23, align 1
  %212 = load float, ptr @guiAlpha, align 4, !tbaa !22
  %213 = load i32, ptr %23, align 1
  %214 = call i32 @Fade(i32 %213, float noundef %212)
  store i32 %214, ptr %22, align 1
  %215 = load i32, ptr %22, align 1
  call void @DrawRectangle(i32 noundef %189, i32 noundef %195, i32 noundef %202, i32 noundef %209, i32 %215)
  br label %216

216:                                              ; preds = %183, %180
  br label %217

217:                                              ; preds = %216, %147
  call void @llvm.lifetime.start.p0(i64 48, ptr %24) #7
  call void @GetFontDefault(ptr dead_on_unwind writable sret(%struct.Font) align 8 %24)
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #7
  store i32 0, ptr %25, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  store float 0.000000e+00, ptr %26, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #7
  %218 = call i32 @GuiGetStyle(i32 noundef 0, i32 noundef 16)
  %219 = mul nsw i32 %218, 2
  %220 = getelementptr inbounds %struct.Font, ptr %24, i32 0, i32 0
  %221 = load i32, ptr %220, align 8, !tbaa !23
  %222 = sdiv i32 %219, %221
  %223 = sitofp i32 %222 to float
  store float %223, ptr %27, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #7
  store i32 0, ptr %28, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #7
  store i32 0, ptr %29, align 4, !tbaa !9
  br label %224

224:                                              ; preds = %538, %217
  %225 = load i32, ptr %28, align 4, !tbaa !9
  %226 = load i32, ptr %14, align 4, !tbaa !9
  %227 = icmp slt i32 %225, %226
  br i1 %227, label %229, label %228

228:                                              ; preds = %224
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  br label %541

229:                                              ; preds = %224
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #7
  store i32 0, ptr %30, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #7
  %230 = load ptr, ptr %7, align 8, !tbaa !5
  %231 = load i32, ptr %28, align 4, !tbaa !9
  %232 = sext i32 %231 to i64
  %233 = getelementptr inbounds i8, ptr %230, i64 %232
  %234 = call i32 @GetNextCodepoint(ptr noundef %233, ptr noundef %30)
  store i32 %234, ptr %31, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #7
  %235 = load i32, ptr %31, align 4, !tbaa !9
  %236 = call i32 @GetGlyphIndex(ptr noundef byval(%struct.Font) align 8 %24, i32 noundef %235)
  store i32 %236, ptr %32, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %33) #7
  %237 = getelementptr inbounds %struct.Rectangle, ptr %33, i32 0, i32 0
  %238 = getelementptr inbounds %struct.Rectangle, ptr %6, i32 0, i32 0
  %239 = load float, ptr %238, align 4, !tbaa !15
  %240 = load float, ptr %26, align 4, !tbaa !22
  %241 = fadd float %239, %240
  %242 = getelementptr inbounds %struct.Font, ptr %24, i32 0, i32 5
  %243 = load ptr, ptr %242, align 8, !tbaa !26
  %244 = load i32, ptr %32, align 4, !tbaa !9
  %245 = sext i32 %244 to i64
  %246 = getelementptr inbounds %struct.CharInfo, ptr %243, i64 %245
  %247 = getelementptr inbounds %struct.CharInfo, ptr %246, i32 0, i32 1
  %248 = load i32, ptr %247, align 4, !tbaa !27
  %249 = sitofp i32 %248 to float
  %250 = load float, ptr %27, align 4, !tbaa !22
  %251 = call float @llvm.fmuladd.f32(float %249, float %250, float %241)
  store float %251, ptr %237, align 4, !tbaa !15
  %252 = getelementptr inbounds %struct.Rectangle, ptr %33, i32 0, i32 1
  %253 = getelementptr inbounds %struct.Rectangle, ptr %6, i32 0, i32 1
  %254 = load float, ptr %253, align 4, !tbaa !18
  %255 = load i32, ptr %25, align 4, !tbaa !9
  %256 = sitofp i32 %255 to float
  %257 = fadd float %254, %256
  %258 = getelementptr inbounds %struct.Font, ptr %24, i32 0, i32 5
  %259 = load ptr, ptr %258, align 8, !tbaa !26
  %260 = load i32, ptr %32, align 4, !tbaa !9
  %261 = sext i32 %260 to i64
  %262 = getelementptr inbounds %struct.CharInfo, ptr %259, i64 %261
  %263 = getelementptr inbounds %struct.CharInfo, ptr %262, i32 0, i32 2
  %264 = load i32, ptr %263, align 8, !tbaa !30
  %265 = sitofp i32 %264 to float
  %266 = load float, ptr %27, align 4, !tbaa !22
  %267 = call float @llvm.fmuladd.f32(float %265, float %266, float %257)
  store float %267, ptr %252, align 4, !tbaa !18
  %268 = getelementptr inbounds %struct.Rectangle, ptr %33, i32 0, i32 2
  %269 = getelementptr inbounds %struct.Font, ptr %24, i32 0, i32 4
  %270 = load ptr, ptr %269, align 8, !tbaa !31
  %271 = load i32, ptr %32, align 4, !tbaa !9
  %272 = sext i32 %271 to i64
  %273 = getelementptr inbounds %struct.Rectangle, ptr %270, i64 %272
  %274 = getelementptr inbounds %struct.Rectangle, ptr %273, i32 0, i32 2
  %275 = load float, ptr %274, align 4, !tbaa !19
  %276 = load float, ptr %27, align 4, !tbaa !22
  %277 = fmul float %275, %276
  store float %277, ptr %268, align 4, !tbaa !19
  %278 = getelementptr inbounds %struct.Rectangle, ptr %33, i32 0, i32 3
  %279 = getelementptr inbounds %struct.Font, ptr %24, i32 0, i32 4
  %280 = load ptr, ptr %279, align 8, !tbaa !31
  %281 = load i32, ptr %32, align 4, !tbaa !9
  %282 = sext i32 %281 to i64
  %283 = getelementptr inbounds %struct.Rectangle, ptr %280, i64 %282
  %284 = getelementptr inbounds %struct.Rectangle, ptr %283, i32 0, i32 3
  %285 = load float, ptr %284, align 4, !tbaa !20
  %286 = load float, ptr %27, align 4, !tbaa !22
  %287 = fmul float %285, %286
  store float %287, ptr %278, align 4, !tbaa !20
  %288 = load i8, ptr %12, align 1, !tbaa !11, !range !13, !noundef !14
  %289 = trunc i8 %288 to i1
  br i1 %289, label %290, label %366

290:                                              ; preds = %229
  %291 = getelementptr inbounds %struct.Rectangle, ptr %33, i32 0, i32 0
  %292 = load float, ptr %291, align 4, !tbaa !15
  %293 = getelementptr inbounds %struct.Rectangle, ptr %33, i32 0, i32 2
  %294 = load float, ptr %293, align 4, !tbaa !19
  %295 = fadd float %292, %294
  %296 = getelementptr inbounds %struct.Rectangle, ptr %6, i32 0, i32 0
  %297 = load float, ptr %296, align 4, !tbaa !15
  %298 = getelementptr inbounds %struct.Rectangle, ptr %6, i32 0, i32 2
  %299 = load float, ptr %298, align 4, !tbaa !19
  %300 = fadd float %297, %299
  %301 = fcmp oge float %295, %300
  br i1 %301, label %302, label %366

302:                                              ; preds = %290
  %303 = getelementptr inbounds %struct.Font, ptr %24, i32 0, i32 0
  %304 = load i32, ptr %303, align 8, !tbaa !23
  %305 = getelementptr inbounds %struct.Font, ptr %24, i32 0, i32 0
  %306 = load i32, ptr %305, align 8, !tbaa !23
  %307 = sdiv i32 %306, 2
  %308 = add nsw i32 %304, %307
  %309 = sitofp i32 %308 to float
  %310 = load float, ptr %27, align 4, !tbaa !22
  %311 = fmul float %309, %310
  %312 = fptosi float %311 to i32
  %313 = load i32, ptr %25, align 4, !tbaa !9
  %314 = add nsw i32 %313, %312
  store i32 %314, ptr %25, align 4, !tbaa !9
  store float 0.000000e+00, ptr %26, align 4, !tbaa !22
  %315 = getelementptr inbounds %struct.Rectangle, ptr %34, i32 0, i32 0
  %316 = getelementptr inbounds %struct.Rectangle, ptr %6, i32 0, i32 0
  %317 = load float, ptr %316, align 4, !tbaa !15
  %318 = load float, ptr %26, align 4, !tbaa !22
  %319 = fadd float %317, %318
  %320 = getelementptr inbounds %struct.Font, ptr %24, i32 0, i32 5
  %321 = load ptr, ptr %320, align 8, !tbaa !26
  %322 = load i32, ptr %32, align 4, !tbaa !9
  %323 = sext i32 %322 to i64
  %324 = getelementptr inbounds %struct.CharInfo, ptr %321, i64 %323
  %325 = getelementptr inbounds %struct.CharInfo, ptr %324, i32 0, i32 1
  %326 = load i32, ptr %325, align 4, !tbaa !27
  %327 = sitofp i32 %326 to float
  %328 = load float, ptr %27, align 4, !tbaa !22
  %329 = call float @llvm.fmuladd.f32(float %327, float %328, float %319)
  store float %329, ptr %315, align 4, !tbaa !15
  %330 = getelementptr inbounds %struct.Rectangle, ptr %34, i32 0, i32 1
  %331 = getelementptr inbounds %struct.Rectangle, ptr %6, i32 0, i32 1
  %332 = load float, ptr %331, align 4, !tbaa !18
  %333 = load i32, ptr %25, align 4, !tbaa !9
  %334 = sitofp i32 %333 to float
  %335 = fadd float %332, %334
  %336 = getelementptr inbounds %struct.Font, ptr %24, i32 0, i32 5
  %337 = load ptr, ptr %336, align 8, !tbaa !26
  %338 = load i32, ptr %32, align 4, !tbaa !9
  %339 = sext i32 %338 to i64
  %340 = getelementptr inbounds %struct.CharInfo, ptr %337, i64 %339
  %341 = getelementptr inbounds %struct.CharInfo, ptr %340, i32 0, i32 2
  %342 = load i32, ptr %341, align 8, !tbaa !30
  %343 = sitofp i32 %342 to float
  %344 = load float, ptr %27, align 4, !tbaa !22
  %345 = call float @llvm.fmuladd.f32(float %343, float %344, float %335)
  store float %345, ptr %330, align 4, !tbaa !18
  %346 = getelementptr inbounds %struct.Rectangle, ptr %34, i32 0, i32 2
  %347 = getelementptr inbounds %struct.Font, ptr %24, i32 0, i32 4
  %348 = load ptr, ptr %347, align 8, !tbaa !31
  %349 = load i32, ptr %32, align 4, !tbaa !9
  %350 = sext i32 %349 to i64
  %351 = getelementptr inbounds %struct.Rectangle, ptr %348, i64 %350
  %352 = getelementptr inbounds %struct.Rectangle, ptr %351, i32 0, i32 2
  %353 = load float, ptr %352, align 4, !tbaa !19
  %354 = load float, ptr %27, align 4, !tbaa !22
  %355 = fmul float %353, %354
  store float %355, ptr %346, align 4, !tbaa !19
  %356 = getelementptr inbounds %struct.Rectangle, ptr %34, i32 0, i32 3
  %357 = getelementptr inbounds %struct.Font, ptr %24, i32 0, i32 4
  %358 = load ptr, ptr %357, align 8, !tbaa !31
  %359 = load i32, ptr %32, align 4, !tbaa !9
  %360 = sext i32 %359 to i64
  %361 = getelementptr inbounds %struct.Rectangle, ptr %358, i64 %360
  %362 = getelementptr inbounds %struct.Rectangle, ptr %361, i32 0, i32 3
  %363 = load float, ptr %362, align 4, !tbaa !20
  %364 = load float, ptr %27, align 4, !tbaa !22
  %365 = fmul float %363, %364
  store float %365, ptr %356, align 4, !tbaa !20
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %33, ptr align 4 %34, i64 16, i1 false), !tbaa.struct !21
  br label %366

366:                                              ; preds = %302, %290, %229
  %367 = load i8, ptr %9, align 1, !tbaa !11, !range !13, !noundef !14
  %368 = trunc i8 %367 to i1
  br i1 %368, label %369, label %411

369:                                              ; preds = %366
  %370 = call zeroext i1 @IsMouseButtonPressed(i32 noundef 0)
  br i1 %370, label %371, label %382

371:                                              ; preds = %369
  %372 = call <2 x float> @GetMousePosition()
  store <2 x float> %372, ptr %35, align 4
  %373 = load <2 x float>, ptr %35, align 4
  %374 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %33, i32 0, i32 0
  %375 = load <2 x float>, ptr %374, align 4
  %376 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %33, i32 0, i32 1
  %377 = load <2 x float>, ptr %376, align 4
  %378 = call zeroext i1 @CheckCollisionPointRec(<2 x float> %373, <2 x float> %375, <2 x float> %377)
  br i1 %378, label %379, label %382

379:                                              ; preds = %371
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 @GuiTextEditor.cursor, ptr align 4 %33, i64 16, i1 false), !tbaa.struct !21
  %380 = load i32, ptr %29, align 4, !tbaa !9
  store i32 %380, ptr @GuiTextEditor.cursorCodepoint, align 4, !tbaa !9
  %381 = load i32, ptr @GuiTextEditor.cursorCodepoint, align 4, !tbaa !9
  store i32 %381, ptr @GuiTextEditor.selectStartCp, align 4, !tbaa !9
  store i32 0, ptr @GuiTextEditor.selectLengthCp, align 4, !tbaa !9
  br label %382

382:                                              ; preds = %379, %371, %369
  %383 = load i32, ptr @GuiTextEditor.selectStartCp, align 4, !tbaa !9
  %384 = icmp ne i32 %383, -1
  br i1 %384, label %385, label %410

385:                                              ; preds = %382
  %386 = call zeroext i1 @IsMouseButtonDown(i32 noundef 0)
  br i1 %386, label %387, label %410

387:                                              ; preds = %385
  %388 = call <2 x float> @GetMousePosition()
  store <2 x float> %388, ptr %36, align 4
  %389 = load <2 x float>, ptr %36, align 4
  %390 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %33, i32 0, i32 0
  %391 = load <2 x float>, ptr %390, align 4
  %392 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %33, i32 0, i32 1
  %393 = load <2 x float>, ptr %392, align 4
  %394 = call zeroext i1 @CheckCollisionPointRec(<2 x float> %389, <2 x float> %391, <2 x float> %393)
  br i1 %394, label %395, label %410

395:                                              ; preds = %387
  %396 = load i32, ptr %29, align 4, !tbaa !9
  %397 = load i32, ptr @GuiTextEditor.selectStartCp, align 4, !tbaa !9
  %398 = icmp sge i32 %396, %397
  br i1 %398, label %399, label %403

399:                                              ; preds = %395
  %400 = load i32, ptr %29, align 4, !tbaa !9
  %401 = load i32, ptr @GuiTextEditor.selectStartCp, align 4, !tbaa !9
  %402 = sub nsw i32 %400, %401
  store i32 %402, ptr @GuiTextEditor.selectLengthCp, align 4, !tbaa !9
  br label %409

403:                                              ; preds = %395
  %404 = load i32, ptr %29, align 4, !tbaa !9
  %405 = load i32, ptr @GuiTextEditor.selectStartCp, align 4, !tbaa !9
  %406 = icmp slt i32 %404, %405
  br i1 %406, label %407, label %408

407:                                              ; preds = %403
  br label %408

408:                                              ; preds = %407, %403
  br label %409

409:                                              ; preds = %408, %399
  br label %410

410:                                              ; preds = %409, %387, %385, %382
  br label %411

411:                                              ; preds = %410, %366
  %412 = load i32, ptr %31, align 4, !tbaa !9
  %413 = icmp eq i32 %412, 10
  br i1 %413, label %414, label %427

414:                                              ; preds = %411
  %415 = getelementptr inbounds %struct.Font, ptr %24, i32 0, i32 0
  %416 = load i32, ptr %415, align 8, !tbaa !23
  %417 = getelementptr inbounds %struct.Font, ptr %24, i32 0, i32 0
  %418 = load i32, ptr %417, align 8, !tbaa !23
  %419 = sdiv i32 %418, 2
  %420 = add nsw i32 %416, %419
  %421 = sitofp i32 %420 to float
  %422 = load float, ptr %27, align 4, !tbaa !22
  %423 = fmul float %421, %422
  %424 = fptosi float %423 to i32
  %425 = load i32, ptr %25, align 4, !tbaa !9
  %426 = add nsw i32 %425, %424
  store i32 %426, ptr %25, align 4, !tbaa !9
  store float 0.000000e+00, ptr %26, align 4, !tbaa !22
  br label %467

427:                                              ; preds = %411
  %428 = load i32, ptr %31, align 4, !tbaa !9
  %429 = icmp ne i32 %428, 32
  br i1 %429, label %430, label %466

430:                                              ; preds = %427
  %431 = load i32, ptr %31, align 4, !tbaa !9
  %432 = icmp ne i32 %431, 9
  br i1 %432, label %433, label %466

433:                                              ; preds = %430
  %434 = getelementptr inbounds %struct.Rectangle, ptr %33, i32 0, i32 0
  %435 = load float, ptr %434, align 4, !tbaa !15
  %436 = getelementptr inbounds %struct.Rectangle, ptr %33, i32 0, i32 2
  %437 = load float, ptr %436, align 4, !tbaa !19
  %438 = fadd float %435, %437
  %439 = getelementptr inbounds %struct.Rectangle, ptr %6, i32 0, i32 0
  %440 = load float, ptr %439, align 4, !tbaa !15
  %441 = getelementptr inbounds %struct.Rectangle, ptr %6, i32 0, i32 2
  %442 = load float, ptr %441, align 4, !tbaa !19
  %443 = fadd float %440, %442
  %444 = fcmp olt float %438, %443
  br i1 %444, label %445, label %466

445:                                              ; preds = %433
  %446 = getelementptr inbounds %struct.Font, ptr %24, i32 0, i32 3
  %447 = getelementptr inbounds %struct.Font, ptr %24, i32 0, i32 4
  %448 = load ptr, ptr %447, align 8, !tbaa !31
  %449 = load i32, ptr %32, align 4, !tbaa !9
  %450 = sext i32 %449 to i64
  %451 = getelementptr inbounds %struct.Rectangle, ptr %448, i64 %450
  %452 = getelementptr inbounds %struct.Vector2, ptr %37, i32 0, i32 0
  store float 0.000000e+00, ptr %452, align 4, !tbaa !32
  %453 = getelementptr inbounds %struct.Vector2, ptr %37, i32 0, i32 1
  store float 0.000000e+00, ptr %453, align 4, !tbaa !34
  %454 = call i32 @GuiGetStyle(i32 noundef 0, i32 noundef 2)
  %455 = call i32 @GetColor(i32 noundef %454)
  store i32 %455, ptr %38, align 1
  call void @llvm.lifetime.start.p0(i64 20, ptr %39) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %39, ptr align 4 %446, i64 20, i1 false), !tbaa.struct !35
  %456 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %451, i32 0, i32 0
  %457 = load <2 x float>, ptr %456, align 4
  %458 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %451, i32 0, i32 1
  %459 = load <2 x float>, ptr %458, align 4
  %460 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %33, i32 0, i32 0
  %461 = load <2 x float>, ptr %460, align 4
  %462 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %33, i32 0, i32 1
  %463 = load <2 x float>, ptr %462, align 4
  %464 = load <2 x float>, ptr %37, align 4
  %465 = load i32, ptr %38, align 1
  call void @DrawTexturePro(ptr noundef byval(%struct.Texture) align 8 %39, <2 x float> %457, <2 x float> %459, <2 x float> %461, <2 x float> %463, <2 x float> %464, float noundef 0.000000e+00, i32 %465)
  call void @llvm.lifetime.end.p0(i64 20, ptr %39) #7
  br label %466

466:                                              ; preds = %445, %433, %430, %427
  br label %467

467:                                              ; preds = %466, %414
  %468 = load i8, ptr %9, align 1, !tbaa !11, !range !13, !noundef !14
  %469 = trunc i8 %468 to i1
  br i1 %469, label %470, label %493

470:                                              ; preds = %467
  %471 = load i32, ptr @GuiTextEditor.selectStartCp, align 4, !tbaa !9
  %472 = icmp ne i32 %471, -1
  br i1 %472, label %473, label %493

473:                                              ; preds = %470
  %474 = load i32, ptr %29, align 4, !tbaa !9
  %475 = load i32, ptr @GuiTextEditor.selectStartCp, align 4, !tbaa !9
  %476 = icmp sge i32 %474, %475
  br i1 %476, label %477, label %493

477:                                              ; preds = %473
  %478 = load i32, ptr %29, align 4, !tbaa !9
  %479 = load i32, ptr @GuiTextEditor.selectStartCp, align 4, !tbaa !9
  %480 = load i32, ptr @GuiTextEditor.selectLengthCp, align 4, !tbaa !9
  %481 = add nsw i32 %479, %480
  %482 = icmp sle i32 %478, %481
  br i1 %482, label %483, label %493

483:                                              ; preds = %477
  %484 = getelementptr inbounds %struct.Color, ptr %40, i32 0, i32 0
  store i8 -66, ptr %484, align 1, !tbaa !36
  %485 = getelementptr inbounds %struct.Color, ptr %40, i32 0, i32 1
  store i8 33, ptr %485, align 1, !tbaa !38
  %486 = getelementptr inbounds %struct.Color, ptr %40, i32 0, i32 2
  store i8 55, ptr %486, align 1, !tbaa !39
  %487 = getelementptr inbounds %struct.Color, ptr %40, i32 0, i32 3
  store i8 -1, ptr %487, align 1, !tbaa !40
  %488 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %33, i32 0, i32 0
  %489 = load <2 x float>, ptr %488, align 4
  %490 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %33, i32 0, i32 1
  %491 = load <2 x float>, ptr %490, align 4
  %492 = load i32, ptr %40, align 1
  call void @DrawRectangleRec(<2 x float> %489, <2 x float> %491, i32 %492)
  br label %493

493:                                              ; preds = %483, %477, %473, %470, %467
  %494 = getelementptr inbounds %struct.Font, ptr %24, i32 0, i32 5
  %495 = load ptr, ptr %494, align 8, !tbaa !26
  %496 = load i32, ptr %32, align 4, !tbaa !9
  %497 = sext i32 %496 to i64
  %498 = getelementptr inbounds %struct.CharInfo, ptr %495, i64 %497
  %499 = getelementptr inbounds %struct.CharInfo, ptr %498, i32 0, i32 3
  %500 = load i32, ptr %499, align 4, !tbaa !41
  %501 = icmp eq i32 %500, 0
  br i1 %501, label %502, label %516

502:                                              ; preds = %493
  %503 = getelementptr inbounds %struct.Font, ptr %24, i32 0, i32 4
  %504 = load ptr, ptr %503, align 8, !tbaa !31
  %505 = load i32, ptr %32, align 4, !tbaa !9
  %506 = sext i32 %505 to i64
  %507 = getelementptr inbounds %struct.Rectangle, ptr %504, i64 %506
  %508 = getelementptr inbounds %struct.Rectangle, ptr %507, i32 0, i32 2
  %509 = load float, ptr %508, align 4, !tbaa !19
  %510 = load float, ptr %27, align 4, !tbaa !22
  %511 = call i32 @GuiGetStyle(i32 noundef 0, i32 noundef 17)
  %512 = sitofp i32 %511 to float
  %513 = call float @llvm.fmuladd.f32(float %509, float %510, float %512)
  %514 = load float, ptr %26, align 4, !tbaa !22
  %515 = fadd float %514, %513
  store float %515, ptr %26, align 4, !tbaa !22
  br label %531

516:                                              ; preds = %493
  %517 = getelementptr inbounds %struct.Font, ptr %24, i32 0, i32 5
  %518 = load ptr, ptr %517, align 8, !tbaa !26
  %519 = load i32, ptr %32, align 4, !tbaa !9
  %520 = sext i32 %519 to i64
  %521 = getelementptr inbounds %struct.CharInfo, ptr %518, i64 %520
  %522 = getelementptr inbounds %struct.CharInfo, ptr %521, i32 0, i32 3
  %523 = load i32, ptr %522, align 4, !tbaa !41
  %524 = sitofp i32 %523 to float
  %525 = load float, ptr %27, align 4, !tbaa !22
  %526 = call i32 @GuiGetStyle(i32 noundef 0, i32 noundef 17)
  %527 = sitofp i32 %526 to float
  %528 = call float @llvm.fmuladd.f32(float %524, float %525, float %527)
  %529 = load float, ptr %26, align 4, !tbaa !22
  %530 = fadd float %529, %528
  store float %530, ptr %26, align 4, !tbaa !22
  br label %531

531:                                              ; preds = %516, %502
  %532 = load i32, ptr %30, align 4, !tbaa !9
  %533 = sub nsw i32 %532, 1
  %534 = load i32, ptr %28, align 4, !tbaa !9
  %535 = add nsw i32 %534, %533
  store i32 %535, ptr %28, align 4, !tbaa !9
  %536 = load i32, ptr %29, align 4, !tbaa !9
  %537 = add nsw i32 %536, 1
  store i32 %537, ptr %29, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  br label %538

538:                                              ; preds = %531
  %539 = load i32, ptr %28, align 4, !tbaa !9
  %540 = add nsw i32 %539, 1
  store i32 %540, ptr %28, align 4, !tbaa !9
  br label %224, !llvm.loop !42

541:                                              ; preds = %228
  %542 = load i8, ptr %9, align 1, !tbaa !11, !range !13, !noundef !14
  %543 = trunc i8 %542 to i1
  br i1 %543, label %544, label %558

544:                                              ; preds = %541
  %545 = load i32, ptr @GuiTextEditor.framesCounter, align 4, !tbaa !9
  %546 = sdiv i32 %545, 20
  %547 = srem i32 %546, 2
  %548 = icmp eq i32 %547, 0
  br i1 %548, label %549, label %558

549:                                              ; preds = %544
  %550 = call i32 @GuiGetStyle(i32 noundef 9, i32 noundef 6)
  %551 = call i32 @GetColor(i32 noundef %550)
  store i32 %551, ptr %42, align 1
  %552 = load float, ptr @guiAlpha, align 4, !tbaa !22
  %553 = load i32, ptr %42, align 1
  %554 = call i32 @Fade(i32 %553, float noundef %552)
  store i32 %554, ptr %41, align 1
  %555 = load <2 x float>, ptr @GuiTextEditor.cursor, align 4
  %556 = load <2 x float>, ptr getelementptr inbounds ({ <2 x float>, <2 x float> }, ptr @GuiTextEditor.cursor, i32 0, i32 1), align 4
  %557 = load i32, ptr %41, align 1
  call void @DrawRectangleRec(<2 x float> %555, <2 x float> %556, i32 %557)
  br label %558

558:                                              ; preds = %549, %544, %541
  %559 = load i8, ptr %11, align 1, !tbaa !11, !range !13, !noundef !14
  %560 = trunc i8 %559 to i1
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  ret i1 %560
}

declare i32 @GetCodepointsCount(ptr noundef) #3

declare void @DrawRectangleLinesEx(<2 x float>, <2 x float>, i32 noundef, i32) #3

declare i32 @GetNextCodepoint(ptr noundef, ptr noundef) #3

declare i32 @GetGlyphIndex(ptr noundef byval(%struct.Font) align 8, i32 noundef) #3

declare void @DrawTexturePro(ptr noundef byval(%struct.Texture) align 8, <2 x float>, <2 x float>, <2 x float>, <2 x float>, <2 x float>, float noundef, i32) #3

declare void @DrawRectangleRec(<2 x float>, <2 x float>, i32) #3

attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { nounwind uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }
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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_Bool", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!16, !17, i64 0}
!16 = !{!"Rectangle", !17, i64 0, !17, i64 4, !17, i64 8, !17, i64 12}
!17 = !{!"float", !7, i64 0}
!18 = !{!16, !17, i64 4}
!19 = !{!16, !17, i64 8}
!20 = !{!16, !17, i64 12}
!21 = !{i64 0, i64 4, !22, i64 4, i64 4, !22, i64 8, i64 4, !22, i64 12, i64 4, !22}
!22 = !{!17, !17, i64 0}
!23 = !{!24, !10, i64 0}
!24 = !{!"Font", !10, i64 0, !10, i64 4, !10, i64 8, !25, i64 12, !6, i64 32, !6, i64 40}
!25 = !{!"Texture", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16}
!26 = !{!24, !6, i64 40}
!27 = !{!28, !10, i64 4}
!28 = !{!"CharInfo", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !29, i64 16}
!29 = !{!"Image", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20}
!30 = !{!28, !10, i64 8}
!31 = !{!24, !6, i64 32}
!32 = !{!33, !17, i64 0}
!33 = !{!"Vector2", !17, i64 0, !17, i64 4}
!34 = !{!33, !17, i64 4}
!35 = !{i64 0, i64 4, !9, i64 4, i64 4, !9, i64 8, i64 4, !9, i64 12, i64 4, !9, i64 16, i64 4, !9}
!36 = !{!37, !7, i64 0}
!37 = !{!"Color", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3}
!38 = !{!37, !7, i64 1}
!39 = !{!37, !7, i64 2}
!40 = !{!37, !7, i64 3}
!41 = !{!28, !10, i64 12}
!42 = distinct !{!42, !43}
!43 = !{!"llvm.loop.mustprogress"}


; 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.Rectangle = type { float, float, float, float }
%struct.Font = type { i32, i32, i32, %struct.Texture, ptr, ptr }
%struct.Texture = type { i32, i32, i32, i32, i32 }
%struct.CharInfo = type { i32, i32, i32, i32, %struct.Image }
%struct.Image = type { ptr, i32, i32, i32, i32 }

@guiState = external hidden local_unnamed_addr global i32, align 4
@guiLocked = external hidden local_unnamed_addr global i8, align 1
@guiAlpha = external hidden local_unnamed_addr global float, align 4
@GuiTextEditor.cursor = external hidden local_unnamed_addr global %struct.Rectangle, align 4
@GuiTextEditor.framesCounter = external hidden local_unnamed_addr global i32, align 4
@GuiTextEditor.cursorCodepoint = external hidden local_unnamed_addr global i32, align 4
@GuiTextEditor.selectStartCp = external hidden local_unnamed_addr global i32, align 4
@GuiTextEditor.selectLengthCp = external hidden local_unnamed_addr global i32, align 4

; 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @GuiGetStyle(i32 noundef, i32 noundef) local_unnamed_addr #2

declare i32 @Fade(i32, float noundef) local_unnamed_addr #3

declare i32 @GetColor(i32 noundef) local_unnamed_addr #3

declare <2 x float> @GetMousePosition() local_unnamed_addr #3

declare zeroext i1 @CheckCollisionPointRec(<2 x float>, <2 x float>, <2 x float>) local_unnamed_addr #3

declare zeroext i1 @IsMouseButtonDown(i32 noundef) local_unnamed_addr #3

declare zeroext i1 @IsKeyDown(i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #4

declare zeroext i1 @IsMouseButtonPressed(i32 noundef) local_unnamed_addr #3

declare i32 @GetCharPressed() local_unnamed_addr #3

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

declare zeroext i1 @IsKeyPressed(i32 noundef) local_unnamed_addr #3

declare void @GetFontDefault(ptr dead_on_unwind writable sret(%struct.Font) align 8) local_unnamed_addr #3

declare void @DrawRectangle(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local noundef zeroext i1 @GuiTextEditor(<2 x float> %0, <2 x float> %1, ptr noundef %2, i32 noundef %3, i1 noundef zeroext %4) local_unnamed_addr #6 {
  %6 = extractelement <2 x float> %0, i64 1
  %7 = extractelement <2 x float> %0, i64 0
  %8 = alloca %struct.Font, align 8
  %9 = alloca i32, align 4
  %10 = alloca %struct.Texture, align 8
  %11 = load i32, ptr @guiState, align 4, !tbaa !5
  %12 = tail call i32 @GetCodepointsCount(ptr noundef %2) #9
  %13 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %2) #10
  %14 = trunc i64 %13 to i32
  %.not = icmp eq i32 %11, 3
  br i1 %.not, label %.thread, label %15

15:                                               ; preds = %5
  %16 = load i8, ptr @guiLocked, align 1, !tbaa !9, !range !11, !noundef !12
  %17 = trunc nuw i8 %16 to i1
  br i1 %17, label %.thread, label %18

18:                                               ; preds = %15
  %19 = tail call <2 x float> @GetMousePosition() #9
  br i1 %4, label %20, label %47

20:                                               ; preds = %18
  %21 = load i32, ptr @GuiTextEditor.framesCounter, align 4, !tbaa !5
  %22 = add nsw i32 %21, 1
  store i32 %22, ptr @GuiTextEditor.framesCounter, align 4, !tbaa !5
  %23 = load i32, ptr @GuiTextEditor.selectStartCp, align 4, !tbaa !5
  %.not160 = icmp eq i32 %23, -1
  br i1 %.not160, label %40, label %24

24:                                               ; preds = %20
  %25 = tail call zeroext i1 @IsKeyDown(i32 noundef 340) #9
  br i1 %25, label %26, label %33

26:                                               ; preds = %24
  %27 = tail call zeroext i1 @IsKeyPressed(i32 noundef 262) #9
  br i1 %27, label %28, label %33

28:                                               ; preds = %26
  %29 = load i32, ptr @GuiTextEditor.selectLengthCp, align 4, !tbaa !5
  %30 = add nsw i32 %29, 1
  %31 = load i32, ptr @GuiTextEditor.selectStartCp, align 4, !tbaa !5
  %32 = sub nsw i32 %12, %31
  %spec.store.select166 = tail call i32 @llvm.smin.i32(i32 %30, i32 %32)
  store i32 %spec.store.select166, ptr @GuiTextEditor.selectLengthCp, align 4
  br label %33

33:                                               ; preds = %28, %26, %24
  %34 = tail call zeroext i1 @IsKeyDown(i32 noundef 340) #9
  br i1 %34, label %35, label %40

35:                                               ; preds = %33
  %36 = tail call zeroext i1 @IsKeyPressed(i32 noundef 263) #9
  br i1 %36, label %37, label %40

37:                                               ; preds = %35
  %38 = load i32, ptr @GuiTextEditor.selectLengthCp, align 4, !tbaa !5
  %39 = tail call i32 @llvm.smax.i32(i32 %38, i32 1)
  %spec.store.select = add nsw i32 %39, -1
  store i32 %spec.store.select, ptr @GuiTextEditor.selectLengthCp, align 4
  br label %40

40:                                               ; preds = %33, %35, %37, %20
  %41 = tail call i32 @GetCharPressed() #9
  %42 = tail call zeroext i1 @IsKeyPressed(i32 noundef 257) #9
  br i1 %42, label %.thread169, label %43

43:                                               ; preds = %40
  %44 = tail call zeroext i1 @CheckCollisionPointRec(<2 x float> %19, <2 x float> %0, <2 x float> %1) #9
  br i1 %44, label %.thread, label %45

45:                                               ; preds = %43
  %46 = tail call zeroext i1 @IsMouseButtonPressed(i32 noundef 0) #9
  br i1 %46, label %.thread169, label %.thread

47:                                               ; preds = %18
  %48 = tail call zeroext i1 @CheckCollisionPointRec(<2 x float> %19, <2 x float> %0, <2 x float> %1) #9
  br i1 %48, label %49, label %.thread

49:                                               ; preds = %47
  %50 = tail call zeroext i1 @IsMouseButtonPressed(i32 noundef 0) #9
  br i1 %50, label %.thread169, label %.thread

.thread169:                                       ; preds = %45, %40, %49
  %.0173 = phi i32 [ 1, %49 ], [ 2, %40 ], [ 2, %45 ]
  store i32 0, ptr @GuiTextEditor.framesCounter, align 4, !tbaa !5
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) @GuiTextEditor.cursor, i8 0, i64 16, i1 false)
  store i32 -1, ptr @GuiTextEditor.cursorCodepoint, align 4, !tbaa !5
  store i32 -1, ptr @GuiTextEditor.selectStartCp, align 4, !tbaa !5
  store i32 0, ptr @GuiTextEditor.selectLengthCp, align 4, !tbaa !5
  br label %.thread

.thread:                                          ; preds = %45, %43, %47, %49, %.thread169, %15, %5
  %.2 = phi i1 [ false, %15 ], [ false, %5 ], [ true, %.thread169 ], [ false, %49 ], [ false, %47 ], [ false, %43 ], [ false, %45 ]
  %.1 = phi i32 [ %11, %15 ], [ 3, %5 ], [ %.0173, %.thread169 ], [ 1, %49 ], [ %11, %47 ], [ 2, %43 ], [ 2, %45 ]
  %51 = tail call i32 @GuiGetStyle(i32 noundef 9, i32 noundef 12)
  %52 = mul i32 %.1, 3
  %53 = tail call i32 @GuiGetStyle(i32 noundef 9, i32 noundef %52)
  %54 = tail call i32 @GetColor(i32 noundef %53) #9
  %55 = load float, ptr @guiAlpha, align 4, !tbaa !13
  %56 = tail call i32 @Fade(i32 %54, float noundef %55) #9
  tail call void @DrawRectangleLinesEx(<2 x float> %0, <2 x float> %1, i32 noundef %51, i32 %56) #9
  switch i32 %.1, label %80 [
    i32 2, label %.sink.split
    i32 3, label %57
  ]

57:                                               ; preds = %.thread
  br label %.sink.split

.sink.split:                                      ; preds = %.thread, %57
  %.sink188 = phi i32 [ 10, %57 ], [ 7, %.thread ]
  %.sroa.0112.0.vec.extract117 = extractelement <2 x float> %0, i64 0
  %58 = tail call i32 @GuiGetStyle(i32 noundef 9, i32 noundef 12)
  %59 = sitofp i32 %58 to float
  %60 = fadd float %.sroa.0112.0.vec.extract117, %59
  %61 = fptosi float %60 to i32
  %.sroa.0112.4.vec.extract127 = extractelement <2 x float> %0, i64 1
  %62 = tail call i32 @GuiGetStyle(i32 noundef 9, i32 noundef 12)
  %63 = sitofp i32 %62 to float
  %64 = fadd float %.sroa.0112.4.vec.extract127, %63
  %65 = fptosi float %64 to i32
  %.sroa.14.8.vec.extract136 = extractelement <2 x float> %1, i64 0
  %66 = tail call i32 @GuiGetStyle(i32 noundef 9, i32 noundef 12)
  %67 = shl nsw i32 %66, 1
  %68 = sitofp i32 %67 to float
  %69 = fsub float %.sroa.14.8.vec.extract136, %68
  %70 = fptosi float %69 to i32
  %.sroa.14.12.vec.extract142 = extractelement <2 x float> %1, i64 1
  %71 = tail call i32 @GuiGetStyle(i32 noundef 9, i32 noundef 12)
  %72 = shl nsw i32 %71, 1
  %73 = sitofp i32 %72 to float
  %74 = fsub float %.sroa.14.12.vec.extract142, %73
  %75 = fptosi float %74 to i32
  %76 = tail call i32 @GuiGetStyle(i32 noundef 9, i32 noundef %.sink188)
  %77 = tail call i32 @GetColor(i32 noundef %76) #9
  %78 = load float, ptr @guiAlpha, align 4, !tbaa !13
  %79 = tail call i32 @Fade(i32 %77, float noundef %78) #9
  tail call void @DrawRectangle(i32 noundef %61, i32 noundef %65, i32 noundef %70, i32 noundef %75, i32 %79) #9
  br label %80

80:                                               ; preds = %.sink.split, %.thread
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %8) #9
  call void @GetFontDefault(ptr dead_on_unwind nonnull writable sret(%struct.Font) align 8 %8) #9
  %81 = call i32 @GuiGetStyle(i32 noundef 0, i32 noundef 16)
  %82 = shl nsw i32 %81, 1
  %83 = load i32, ptr %8, align 8, !tbaa !15
  %84 = sdiv i32 %82, %83
  %85 = sitofp i32 %84 to float
  %86 = icmp sgt i32 %14, 0
  br i1 %86, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %80
  %87 = getelementptr inbounds i8, ptr %8, i64 40
  %88 = getelementptr inbounds i8, ptr %8, i64 32
  %89 = fadd <2 x float> %0, %1
  %90 = extractelement <2 x float> %89, i64 0
  %91 = fadd float %7, 0.000000e+00
  %92 = getelementptr inbounds i8, ptr %8, i64 12
  %not. = xor i1 %4, true
  %93 = insertelement <2 x float> poison, float %85, i64 0
  %94 = shufflevector <2 x float> %93, <2 x float> poison, <2 x i32> zeroinitializer
  %95 = insertelement <2 x float> poison, float %91, i64 0
  br label %96

._crit_edge:                                      ; preds = %185, %80
  br i1 %4, label %193, label %205

96:                                               ; preds = %.lr.ph, %185
  %.0145180 = phi i32 [ 0, %.lr.ph ], [ %.2147, %185 ]
  %.0148179 = phi float [ 0.000000e+00, %.lr.ph ], [ %.3, %185 ]
  %.0151178 = phi i32 [ 0, %.lr.ph ], [ %191, %185 ]
  %.0152177 = phi i32 [ 0, %.lr.ph ], [ %190, %185 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #9
  store i32 0, ptr %9, align 4, !tbaa !5
  %97 = sext i32 %.0151178 to i64
  %98 = getelementptr inbounds i8, ptr %2, i64 %97
  %99 = call i32 @GetNextCodepoint(ptr noundef %98, ptr noundef nonnull %9) #9
  %100 = call i32 @GetGlyphIndex(ptr noundef nonnull byval(%struct.Font) align 8 %8, i32 noundef %99) #9
  %101 = load ptr, ptr %87, align 8, !tbaa !19
  %102 = sext i32 %100 to i64
  %103 = getelementptr inbounds %struct.CharInfo, ptr %101, i64 %102, i32 1
  %104 = load <2 x i32>, ptr %103, align 4, !tbaa !5
  %105 = sitofp <2 x i32> %104 to <2 x float>
  %106 = load ptr, ptr %88, align 8, !tbaa !20
  %107 = getelementptr inbounds %struct.Rectangle, ptr %106, i64 %102, i32 2
  %108 = load <2 x float>, ptr %107, align 4, !tbaa !13
  %109 = fmul <2 x float> %108, %94
  %110 = sitofp i32 %.0145180 to float
  %111 = insertelement <2 x float> poison, float %.0148179, i64 0
  %112 = insertelement <2 x float> %111, float %110, i64 1
  %113 = fadd <2 x float> %112, %0
  %114 = call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %105, <2 x float> %94, <2 x float> %113)
  %115 = fadd <2 x float> %114, %109
  %116 = extractelement <2 x float> %115, i64 0
  %117 = fcmp ult float %116, %90
  br i1 %117, label %130, label %118

118:                                              ; preds = %96
  %119 = load i32, ptr %8, align 8, !tbaa !15
  %120 = sdiv i32 %119, 2
  %121 = add nsw i32 %120, %119
  %122 = sitofp i32 %121 to float
  %123 = fmul float %85, %122
  %124 = fptosi float %123 to i32
  %125 = add nsw i32 %.0145180, %124
  %126 = sitofp i32 %125 to float
  %127 = fadd float %6, %126
  %128 = insertelement <2 x float> %95, float %127, i64 1
  %129 = call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %105, <2 x float> %94, <2 x float> %128)
  br label %130

130:                                              ; preds = %118, %96
  %.sroa.015.1 = phi <2 x float> [ %129, %118 ], [ %114, %96 ]
  %.1149 = phi float [ 0.000000e+00, %118 ], [ %.0148179, %96 ]
  %.1146 = phi i32 [ %125, %118 ], [ %.0145180, %96 ]
  br i1 %4, label %131, label %146

131:                                              ; preds = %130
  %132 = call zeroext i1 @IsMouseButtonPressed(i32 noundef 0) #9
  br i1 %132, label %133, label %136

133:                                              ; preds = %131
  %134 = call <2 x float> @GetMousePosition() #9
  %135 = call zeroext i1 @CheckCollisionPointRec(<2 x float> %134, <2 x float> %.sroa.015.1, <2 x float> %109) #9
  br i1 %135, label %.thread174, label %136

.thread174:                                       ; preds = %133
  store <2 x float> %.sroa.015.1, ptr @GuiTextEditor.cursor, align 4
  store <2 x float> %109, ptr getelementptr inbounds (i8, ptr @GuiTextEditor.cursor, i64 8), align 4
  store i32 %.0152177, ptr @GuiTextEditor.cursorCodepoint, align 4, !tbaa !5
  store i32 %.0152177, ptr @GuiTextEditor.selectStartCp, align 4, !tbaa !5
  store i32 0, ptr @GuiTextEditor.selectLengthCp, align 4, !tbaa !5
  br label %137

136:                                              ; preds = %133, %131
  %.pr = load i32, ptr @GuiTextEditor.selectStartCp, align 4, !tbaa !5
  %.not162 = icmp eq i32 %.pr, -1
  br i1 %.not162, label %146, label %137

137:                                              ; preds = %.thread174, %136
  %138 = call zeroext i1 @IsMouseButtonDown(i32 noundef 0) #9
  br i1 %138, label %139, label %146

139:                                              ; preds = %137
  %140 = call <2 x float> @GetMousePosition() #9
  %141 = call zeroext i1 @CheckCollisionPointRec(<2 x float> %140, <2 x float> %.sroa.015.1, <2 x float> %109) #9
  br i1 %141, label %142, label %146

142:                                              ; preds = %139
  %143 = load i32, ptr @GuiTextEditor.selectStartCp, align 4, !tbaa !5
  %.not163 = icmp slt i32 %.0152177, %143
  br i1 %.not163, label %146, label %144

144:                                              ; preds = %142
  %145 = sub nsw i32 %.0152177, %143
  store i32 %145, ptr @GuiTextEditor.selectLengthCp, align 4, !tbaa !5
  br label %146

146:                                              ; preds = %142, %136, %137, %139, %144, %130
  switch i32 %99, label %155 [
    i32 10, label %147
    i32 32, label %167
    i32 9, label %167
  ]

147:                                              ; preds = %146
  %148 = load i32, ptr %8, align 8, !tbaa !15
  %149 = sdiv i32 %148, 2
  %150 = add nsw i32 %149, %148
  %151 = sitofp i32 %150 to float
  %152 = fmul float %85, %151
  %153 = fptosi float %152 to i32
  %154 = add nsw i32 %.1146, %153
  br label %167

155:                                              ; preds = %146
  %156 = fadd <2 x float> %109, %.sroa.015.1
  %157 = extractelement <2 x float> %156, i64 0
  %158 = fcmp olt float %157, %90
  br i1 %158, label %159, label %167

159:                                              ; preds = %155
  %160 = load ptr, ptr %88, align 8, !tbaa !20
  %161 = getelementptr inbounds %struct.Rectangle, ptr %160, i64 %102
  %162 = call i32 @GuiGetStyle(i32 noundef 0, i32 noundef 2)
  %163 = call i32 @GetColor(i32 noundef %162) #9
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %10) #9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(20) %10, ptr noundef nonnull align 4 dereferenceable(20) %92, i64 20, i1 false), !tbaa.struct !21
  %164 = load <2 x float>, ptr %161, align 4
  %165 = getelementptr inbounds i8, ptr %161, i64 8
  %166 = load <2 x float>, ptr %165, align 4
  call void @DrawTexturePro(ptr noundef nonnull byval(%struct.Texture) align 8 %10, <2 x float> %164, <2 x float> %166, <2 x float> %.sroa.015.1, <2 x float> %109, <2 x float> zeroinitializer, float noundef 0.000000e+00, i32 %163) #9
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %10) #9
  br label %167

167:                                              ; preds = %146, %146, %155, %159, %147
  %.2150 = phi float [ 0.000000e+00, %147 ], [ %.1149, %159 ], [ %.1149, %155 ], [ %.1149, %146 ], [ %.1149, %146 ]
  %.2147 = phi i32 [ %154, %147 ], [ %.1146, %159 ], [ %.1146, %155 ], [ %.1146, %146 ], [ %.1146, %146 ]
  %168 = load i32, ptr @GuiTextEditor.selectStartCp, align 4
  %169 = icmp eq i32 %168, -1
  %or.cond3 = select i1 %not., i1 true, i1 %169
  %.not164 = icmp slt i32 %.0152177, %168
  %or.cond = select i1 %or.cond3, i1 true, i1 %.not164
  br i1 %or.cond, label %174, label %170

170:                                              ; preds = %167
  %171 = load i32, ptr @GuiTextEditor.selectLengthCp, align 4, !tbaa !5
  %172 = add nsw i32 %171, %168
  %.not165 = icmp sgt i32 %.0152177, %172
  br i1 %.not165, label %174, label %173

173:                                              ; preds = %170
  call void @DrawRectangleRec(<2 x float> %.sroa.015.1, <2 x float> %109, i32 -13164098) #9
  br label %174

174:                                              ; preds = %173, %170, %167
  %175 = load ptr, ptr %87, align 8, !tbaa !19
  %176 = getelementptr inbounds %struct.CharInfo, ptr %175, i64 %102, i32 3
  %177 = load i32, ptr %176, align 4, !tbaa !22
  %178 = icmp eq i32 %177, 0
  br i1 %178, label %179, label %183

179:                                              ; preds = %174
  %180 = load ptr, ptr %88, align 8, !tbaa !20
  %181 = getelementptr inbounds %struct.Rectangle, ptr %180, i64 %102, i32 2
  %182 = load float, ptr %181, align 4, !tbaa !25
  br label %185

183:                                              ; preds = %174
  %184 = sitofp i32 %177 to float
  br label %185

185:                                              ; preds = %183, %179
  %.sink = phi float [ %184, %183 ], [ %182, %179 ]
  %186 = call i32 @GuiGetStyle(i32 noundef 0, i32 noundef 17)
  %187 = sitofp i32 %186 to float
  %188 = call float @llvm.fmuladd.f32(float %.sink, float %85, float %187)
  %.3 = fadd float %.2150, %188
  %189 = load i32, ptr %9, align 4, !tbaa !5
  %190 = add nuw nsw i32 %.0152177, 1
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #9
  %191 = add i32 %189, %.0151178
  %192 = icmp slt i32 %191, %14
  br i1 %192, label %96, label %._crit_edge, !llvm.loop !27

193:                                              ; preds = %._crit_edge
  %194 = load i32, ptr @GuiTextEditor.framesCounter, align 4, !tbaa !5
  %195 = sdiv i32 %194, 20
  %196 = and i32 %195, 1
  %197 = icmp eq i32 %196, 0
  br i1 %197, label %198, label %205

198:                                              ; preds = %193
  %199 = call i32 @GuiGetStyle(i32 noundef 9, i32 noundef 6)
  %200 = call i32 @GetColor(i32 noundef %199) #9
  %201 = load float, ptr @guiAlpha, align 4, !tbaa !13
  %202 = call i32 @Fade(i32 %200, float noundef %201) #9
  %203 = load <2 x float>, ptr @GuiTextEditor.cursor, align 4
  %204 = load <2 x float>, ptr getelementptr inbounds (i8, ptr @GuiTextEditor.cursor, i64 8), align 4
  call void @DrawRectangleRec(<2 x float> %203, <2 x float> %204, i32 %202) #9
  br label %205

205:                                              ; preds = %198, %193, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %8) #9
  ret i1 %.2
}

declare i32 @GetCodepointsCount(ptr noundef) local_unnamed_addr #3

declare void @DrawRectangleLinesEx(<2 x float>, <2 x float>, i32 noundef, i32) local_unnamed_addr #3

declare i32 @GetNextCodepoint(ptr noundef, ptr noundef) local_unnamed_addr #3

declare i32 @GetGlyphIndex(ptr noundef byval(%struct.Font) align 8, i32 noundef) local_unnamed_addr #3

declare void @DrawTexturePro(ptr noundef byval(%struct.Texture) align 8, <2 x float>, <2 x float>, <2 x float>, <2 x float>, <2 x float>, float noundef, i32) local_unnamed_addr #3

declare void @DrawRectangleRec(<2 x float>, <2 x float>, i32) local_unnamed_addr #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #7

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #7

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #8

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x float> @llvm.fmuladd.v2f32(<2 x float>, <2 x float>, <2 x float>) #7

attributes #0 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 #6 = { nounwind 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #9 = { nounwind }
attributes #10 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"_Bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = !{!14, !14, i64 0}
!14 = !{!"float", !7, i64 0}
!15 = !{!16, !6, i64 0}
!16 = !{!"Font", !6, i64 0, !6, i64 4, !6, i64 8, !17, i64 12, !18, i64 32, !18, i64 40}
!17 = !{!"Texture", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16}
!18 = !{!"any pointer", !7, i64 0}
!19 = !{!16, !18, i64 40}
!20 = !{!16, !18, i64 32}
!21 = !{i64 0, i64 4, !5, i64 4, i64 4, !5, i64 8, i64 4, !5, i64 12, i64 4, !5, i64 16, i64 4, !5}
!22 = !{!23, !6, i64 12}
!23 = !{!"CharInfo", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !24, i64 16}
!24 = !{!"Image", !18, i64 0, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20}
!25 = !{!26, !14, i64 8}
!26 = !{!"Rectangle", !14, i64 0, !14, i64 4, !14, i64 8, !14, i64 12}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass,VectorCombinePass