; LLVM IR from VTIvanov20/eight-ball-pool :: src (main)

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

@.str.23 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [3 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 allocsize(0,1)
declare noalias ptr @calloc(i64 noundef, i64 noundef) #2

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

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #4

; Function Attrs: nounwind
declare void @free(ptr noundef) #5

; Function Attrs: mustprogress uwtable
declare dso_local void @GuiSetFont(ptr noundef byval(%struct.Font) align 8) #6

; Function Attrs: mustprogress uwtable
declare dso_local void @GuiSetStyle(i32 noundef, i32 noundef, i32 noundef) #6

declare ptr @TextFormat(ptr noundef, ...) #7

declare i32 @TextToInteger(ptr noundef) #7

; Function Attrs: mustprogress uwtable
define dso_local void @GuiLoadStyle(ptr noundef %0) #8 {
  %2 = alloca ptr, align 8
  %3 = alloca i8, align 1
  %4 = alloca ptr, align 8
  %5 = alloca [256 x i8], align 16
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca [256 x i8], align 16
  %11 = alloca [256 x i8], align 16
  %12 = alloca %struct.Font, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca %struct.Font, align 8
  %19 = alloca %struct.Font, align 8
  %20 = alloca %struct.Font, align 8
  %21 = alloca i32, align 4
  %22 = alloca [5 x i8], align 1
  %23 = alloca i16, align 2
  %24 = alloca i16, align 2
  %25 = alloca i32, align 4
  %26 = alloca i16, align 2
  %27 = alloca i16, align 2
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca %struct.Font, align 8
  %33 = alloca i32, align 4
  %34 = alloca %struct.Rectangle, align 4
  %35 = alloca i32, align 4
  %36 = alloca %struct.Image, align 8
  %37 = alloca %struct.Texture, align 4
  %38 = alloca %struct.Image, align 8
  %39 = alloca i32, align 4
  %40 = alloca i32, align 4
  %41 = alloca %struct.Font, align 8
  %42 = alloca %struct.Texture, align 8
  %43 = alloca %struct.Rectangle, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %3) #9
  store i8 0, ptr %3, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #9
  %44 = load ptr, ptr %2, align 8, !tbaa !5
  %45 = call noalias ptr @fopen(ptr noundef %44, ptr noundef @.str.23)
  store ptr %45, ptr %4, align 8, !tbaa !5
  %46 = load ptr, ptr %4, align 8, !tbaa !5
  %47 = icmp ne ptr %46, null
  br i1 %47, label %48, label %149

48:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 256, ptr %5) #9
  call void @llvm.memset.p0.i64(ptr align 16 %5, i8 0, i64 256, i1 false)
  %49 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 0
  %50 = load ptr, ptr %4, align 8, !tbaa !5
  %51 = call ptr @fgets(ptr noundef %49, i32 noundef 256, ptr noundef %50)
  %52 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 0
  %53 = load i8, ptr %52, align 16, !tbaa !11
  %54 = sext i8 %53 to i32
  %55 = icmp eq i32 %54, 35
  br i1 %55, label %56, label %145

56:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #9
  store i32 0, ptr %6, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #9
  store i32 0, ptr %7, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #9
  store i32 0, ptr %8, align 4, !tbaa !12
  br label %57

57:                                               ; preds = %140, %56
  %58 = load ptr, ptr %4, align 8, !tbaa !5
  %59 = call i32 @feof(ptr noundef %58) #9
  %60 = icmp ne i32 %59, 0
  %61 = xor i1 %60, true
  br i1 %61, label %62, label %144

62:                                               ; preds = %57
  %63 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 0
  %64 = load i8, ptr %63, align 16, !tbaa !11
  %65 = sext i8 %64 to i32
  switch i32 %65, label %139 [
    i32 112, label %66
    i32 102, label %72
  ]

66:                                               ; preds = %62
  %67 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 0
  %68 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %67, ptr noundef @.str.24, ptr noundef %6, ptr noundef %7, ptr noundef %8) #9
  %69 = load i32, ptr %6, align 4, !tbaa !12
  %70 = load i32, ptr %7, align 4, !tbaa !12
  %71 = load i32, ptr %8, align 4, !tbaa !12
  call void @GuiSetStyle(i32 noundef %69, i32 noundef %70, i32 noundef %71)
  br label %140

72:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #9
  store i32 0, ptr %9, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 256, ptr %10) #9
  call void @llvm.memset.p0.i64(ptr align 16 %10, i8 0, i64 256, i1 false)
  call void @llvm.lifetime.start.p0(i64 256, ptr %11) #9
  call void @llvm.memset.p0.i64(ptr align 16 %11, i8 0, i64 256, i1 false)
  %73 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 0
  %74 = getelementptr inbounds [256 x i8], ptr %10, i64 0, i64 0
  %75 = getelementptr inbounds [256 x i8], ptr %11, i64 0, i64 0
  %76 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %73, ptr noundef @.str.25, ptr noundef %9, ptr noundef %74, ptr noundef %75) #9
  call void @llvm.lifetime.start.p0(i64 48, ptr %12) #9
  call void @llvm.memset.p0.i64(ptr align 8 %12, i8 0, i64 48, i1 false)
  %77 = getelementptr inbounds [256 x i8], ptr %10, i64 0, i64 0
  %78 = load i8, ptr %77, align 16, !tbaa !11
  %79 = sext i8 %78 to i32
  %80 = icmp ne i32 %79, 48
  br i1 %80, label %81, label %122

81:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #9
  %82 = getelementptr inbounds [256 x i8], ptr %10, i64 0, i64 0
  %83 = call ptr @LoadFileText(ptr noundef %82)
  store ptr %83, ptr %13, align 8, !tbaa !5
  %84 = load ptr, ptr %13, align 8, !tbaa !5
  %85 = icmp ne ptr %84, null
  br i1 %85, label %86, label %121

86:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #9
  store i32 0, ptr %14, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #9
  %87 = load ptr, ptr %13, align 8, !tbaa !5
  %88 = call ptr @TextSplit(ptr noundef %87, i8 noundef signext 10, ptr noundef %14)
  store ptr %88, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #9
  %89 = load i32, ptr %14, align 4, !tbaa !12
  %90 = sext i32 %89 to i64
  %91 = mul i64 %90, 4
  %92 = call noalias ptr @malloc(i64 noundef %91) #10
  store ptr %92, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #9
  store i32 0, ptr %17, align 4, !tbaa !12
  br label %93

93:                                               ; preds = %109, %86
  %94 = load i32, ptr %17, align 4, !tbaa !12
  %95 = load i32, ptr %14, align 4, !tbaa !12
  %96 = icmp slt i32 %94, %95
  br i1 %96, label %98, label %97

97:                                               ; preds = %93
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #9
  br label %112

98:                                               ; preds = %93
  %99 = load ptr, ptr %15, align 8, !tbaa !5
  %100 = load i32, ptr %17, align 4, !tbaa !12
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds ptr, ptr %99, i64 %101
  %103 = load ptr, ptr %102, align 8, !tbaa !5
  %104 = call i32 @TextToInteger(ptr noundef %103)
  %105 = load ptr, ptr %16, align 8, !tbaa !5
  %106 = load i32, ptr %17, align 4, !tbaa !12
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds i32, ptr %105, i64 %107
  store i32 %104, ptr %108, align 4, !tbaa !12
  br label %109

109:                                              ; preds = %98
  %110 = load i32, ptr %17, align 4, !tbaa !12
  %111 = add nsw i32 %110, 1
  store i32 %111, ptr %17, align 4, !tbaa !12
  br label %93, !llvm.loop !14

112:                                              ; preds = %97
  call void @llvm.lifetime.start.p0(i64 48, ptr %18) #9
  %113 = load ptr, ptr %2, align 8, !tbaa !5
  %114 = call ptr @GetDirectoryPath(ptr noundef %113)
  %115 = getelementptr inbounds [256 x i8], ptr %11, i64 0, i64 0
  %116 = call ptr (ptr, ...) @TextFormat(ptr noundef @.str.26, ptr noundef %114, ptr noundef %115)
  %117 = load i32, ptr %9, align 4, !tbaa !12
  %118 = load ptr, ptr %16, align 8, !tbaa !5
  %119 = load i32, ptr %14, align 4, !tbaa !12
  call void @LoadFontEx(ptr dead_on_unwind writable sret(%struct.Font) align 8 %18, ptr noundef %116, i32 noundef %117, ptr noundef %118, i32 noundef %119)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %12, ptr align 8 %18, i64 48, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 48, ptr %18) #9
  %120 = load ptr, ptr %16, align 8, !tbaa !5
  call void @free(ptr noundef %120) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #9
  br label %121

121:                                              ; preds = %112, %81
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #9
  br label %128

122:                                              ; preds = %72
  call void @llvm.lifetime.start.p0(i64 48, ptr %19) #9
  %123 = load ptr, ptr %2, align 8, !tbaa !5
  %124 = call ptr @GetDirectoryPath(ptr noundef %123)
  %125 = getelementptr inbounds [256 x i8], ptr %11, i64 0, i64 0
  %126 = call ptr (ptr, ...) @TextFormat(ptr noundef @.str.26, ptr noundef %124, ptr noundef %125)
  %127 = load i32, ptr %9, align 4, !tbaa !12
  call void @LoadFontEx(ptr dead_on_unwind writable sret(%struct.Font) align 8 %19, ptr noundef %126, i32 noundef %127, ptr noundef null, i32 noundef 0)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %12, ptr align 8 %19, i64 48, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 48, ptr %19) #9
  br label %128

128:                                              ; preds = %122, %121
  %129 = getelementptr inbounds %struct.Font, ptr %12, i32 0, i32 3
  %130 = getelementptr inbounds %struct.Texture, ptr %129, i32 0, i32 0
  %131 = load i32, ptr %130, align 4, !tbaa !17
  %132 = icmp ugt i32 %131, 0
  br i1 %132, label %133, label %138

133:                                              ; preds = %128
  %134 = getelementptr inbounds %struct.Font, ptr %12, i32 0, i32 1
  %135 = load i32, ptr %134, align 4, !tbaa !20
  %136 = icmp sgt i32 %135, 0
  br i1 %136, label %137, label %138

137:                                              ; preds = %133
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %20, ptr align 8 %12, i64 48, i1 false), !tbaa.struct !16
  call void @GuiSetFont(ptr noundef byval(%struct.Font) align 8 %20)
  br label %138

138:                                              ; preds = %137, %133, %128
  call void @llvm.lifetime.end.p0(i64 48, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 256, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 256, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #9
  br label %140

139:                                              ; preds = %62
  br label %140

140:                                              ; preds = %139, %138, %66
  %141 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 0
  %142 = load ptr, ptr %4, align 8, !tbaa !5
  %143 = call ptr @fgets(ptr noundef %141, i32 noundef 256, ptr noundef %142)
  br label %57, !llvm.loop !21

144:                                              ; preds = %57
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #9
  br label %146

145:                                              ; preds = %48
  store i8 1, ptr %3, align 1, !tbaa !9
  br label %146

146:                                              ; preds = %145, %144
  %147 = load ptr, ptr %4, align 8, !tbaa !5
  %148 = call i32 @fclose(ptr noundef %147)
  call void @llvm.lifetime.end.p0(i64 256, ptr %5) #9
  br label %149

149:                                              ; preds = %146, %1
  %150 = load i8, ptr %3, align 1, !tbaa !9, !range !22, !noundef !23
  %151 = trunc i8 %150 to i1
  br i1 %151, label %152, label %369

152:                                              ; preds = %149
  %153 = load ptr, ptr %2, align 8, !tbaa !5
  %154 = call noalias ptr @fopen(ptr noundef %153, ptr noundef @.str.27)
  store ptr %154, ptr %4, align 8, !tbaa !5
  %155 = load ptr, ptr %4, align 8, !tbaa !5
  %156 = icmp eq ptr %155, null
  br i1 %156, label %157, label %158

157:                                              ; preds = %152
  store i32 1, ptr %21, align 4
  br label %370

158:                                              ; preds = %152
  call void @llvm.lifetime.start.p0(i64 5, ptr %22) #9
  call void @llvm.memset.p0.i64(ptr align 1 %22, i8 0, i64 5, i1 false)
  call void @llvm.lifetime.start.p0(i64 2, ptr %23) #9
  store i16 0, ptr %23, align 2, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 2, ptr %24) #9
  store i16 0, ptr %24, align 2, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #9
  store i32 0, ptr %25, align 4, !tbaa !12
  %159 = getelementptr inbounds [5 x i8], ptr %22, i64 0, i64 0
  %160 = load ptr, ptr %4, align 8, !tbaa !5
  %161 = call i64 @fread(ptr noundef %159, i64 noundef 1, i64 noundef 4, ptr noundef %160)
  %162 = load ptr, ptr %4, align 8, !tbaa !5
  %163 = call i64 @fread(ptr noundef %23, i64 noundef 1, i64 noundef 2, ptr noundef %162)
  %164 = load ptr, ptr %4, align 8, !tbaa !5
  %165 = call i64 @fread(ptr noundef %24, i64 noundef 1, i64 noundef 2, ptr noundef %164)
  %166 = load ptr, ptr %4, align 8, !tbaa !5
  %167 = call i64 @fread(ptr noundef %25, i64 noundef 1, i64 noundef 4, ptr noundef %166)
  %168 = getelementptr inbounds [5 x i8], ptr %22, i64 0, i64 0
  %169 = load i8, ptr %168, align 1, !tbaa !11
  %170 = sext i8 %169 to i32
  %171 = icmp eq i32 %170, 114
  br i1 %171, label %172, label %366

172:                                              ; preds = %158
  %173 = getelementptr inbounds [5 x i8], ptr %22, i64 0, i64 1
  %174 = load i8, ptr %173, align 1, !tbaa !11
  %175 = sext i8 %174 to i32
  %176 = icmp eq i32 %175, 71
  br i1 %176, label %177, label %366

177:                                              ; preds = %172
  %178 = getelementptr inbounds [5 x i8], ptr %22, i64 0, i64 2
  %179 = load i8, ptr %178, align 1, !tbaa !11
  %180 = sext i8 %179 to i32
  %181 = icmp eq i32 %180, 83
  br i1 %181, label %182, label %366

182:                                              ; preds = %177
  %183 = getelementptr inbounds [5 x i8], ptr %22, i64 0, i64 3
  %184 = load i8, ptr %183, align 1, !tbaa !11
  %185 = sext i8 %184 to i32
  %186 = icmp eq i32 %185, 32
  br i1 %186, label %187, label %366

187:                                              ; preds = %182
  call void @llvm.lifetime.start.p0(i64 2, ptr %26) #9
  store i16 0, ptr %26, align 2, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 2, ptr %27) #9
  store i16 0, ptr %27, align 2, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #9
  store i32 0, ptr %28, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #9
  store i32 0, ptr %29, align 4, !tbaa !12
  br label %188

188:                                              ; preds = %232, %187
  %189 = load i32, ptr %29, align 4, !tbaa !12
  %190 = load i32, ptr %25, align 4, !tbaa !12
  %191 = icmp slt i32 %189, %190
  br i1 %191, label %193, label %192

192:                                              ; preds = %188
  store i32 8, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #9
  br label %235

193:                                              ; preds = %188
  %194 = load ptr, ptr %4, align 8, !tbaa !5
  %195 = call i64 @fread(ptr noundef %26, i64 noundef 1, i64 noundef 2, ptr noundef %194)
  %196 = load ptr, ptr %4, align 8, !tbaa !5
  %197 = call i64 @fread(ptr noundef %27, i64 noundef 1, i64 noundef 2, ptr noundef %196)
  %198 = load ptr, ptr %4, align 8, !tbaa !5
  %199 = call i64 @fread(ptr noundef %28, i64 noundef 1, i64 noundef 4, ptr noundef %198)
  %200 = load i16, ptr %26, align 2, !tbaa !24
  %201 = sext i16 %200 to i32
  %202 = icmp eq i32 %201, 0
  br i1 %202, label %203, label %225

203:                                              ; preds = %193
  %204 = load i16, ptr %27, align 2, !tbaa !24
  %205 = sext i16 %204 to i32
  %206 = load i32, ptr %28, align 4, !tbaa !12
  call void @GuiSetStyle(i32 noundef 0, i32 noundef %205, i32 noundef %206)
  %207 = load i16, ptr %27, align 2, !tbaa !24
  %208 = sext i16 %207 to i32
  %209 = icmp slt i32 %208, 16
  br i1 %209, label %210, label %224

210:                                              ; preds = %203
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #9
  store i32 1, ptr %30, align 4, !tbaa !12
  br label %211

211:                                              ; preds = %220, %210
  %212 = load i32, ptr %30, align 4, !tbaa !12
  %213 = icmp slt i32 %212, 16
  br i1 %213, label %215, label %214

214:                                              ; preds = %211
  store i32 11, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #9
  br label %223

215:                                              ; preds = %211
  %216 = load i32, ptr %30, align 4, !tbaa !12
  %217 = load i16, ptr %27, align 2, !tbaa !24
  %218 = sext i16 %217 to i32
  %219 = load i32, ptr %28, align 4, !tbaa !12
  call void @GuiSetStyle(i32 noundef %216, i32 noundef %218, i32 noundef %219)
  br label %220

220:                                              ; preds = %215
  %221 = load i32, ptr %30, align 4, !tbaa !12
  %222 = add nsw i32 %221, 1
  store i32 %222, ptr %30, align 4, !tbaa !12
  br label %211, !llvm.loop !26

223:                                              ; preds = %214
  br label %224

224:                                              ; preds = %223, %203
  br label %231

225:                                              ; preds = %193
  %226 = load i16, ptr %26, align 2, !tbaa !24
  %227 = sext i16 %226 to i32
  %228 = load i16, ptr %27, align 2, !tbaa !24
  %229 = sext i16 %228 to i32
  %230 = load i32, ptr %28, align 4, !tbaa !12
  call void @GuiSetStyle(i32 noundef %227, i32 noundef %229, i32 noundef %230)
  br label %231

231:                                              ; preds = %225, %224
  br label %232

232:                                              ; preds = %231
  %233 = load i32, ptr %29, align 4, !tbaa !12
  %234 = add nsw i32 %233, 1
  store i32 %234, ptr %29, align 4, !tbaa !12
  br label %188, !llvm.loop !27

235:                                              ; preds = %192
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #9
  store i32 0, ptr %31, align 4, !tbaa !12
  %236 = load ptr, ptr %4, align 8, !tbaa !5
  %237 = call i64 @fread(ptr noundef %31, i64 noundef 1, i64 noundef 4, ptr noundef %236)
  %238 = load i32, ptr %31, align 4, !tbaa !12
  %239 = icmp sgt i32 %238, 0
  br i1 %239, label %240, label %365

240:                                              ; preds = %235
  call void @llvm.lifetime.start.p0(i64 48, ptr %32) #9
  call void @llvm.memset.p0.i64(ptr align 8 %32, i8 0, i64 48, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #9
  store i32 0, ptr %33, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 16, ptr %34) #9
  call void @llvm.memset.p0.i64(ptr align 4 %34, i8 0, i64 16, i1 false)
  %241 = getelementptr inbounds %struct.Font, ptr %32, i32 0, i32 0
  %242 = load ptr, ptr %4, align 8, !tbaa !5
  %243 = call i64 @fread(ptr noundef %241, i64 noundef 1, i64 noundef 4, ptr noundef %242)
  %244 = getelementptr inbounds %struct.Font, ptr %32, i32 0, i32 1
  %245 = load ptr, ptr %4, align 8, !tbaa !5
  %246 = call i64 @fread(ptr noundef %244, i64 noundef 1, i64 noundef 4, ptr noundef %245)
  %247 = load ptr, ptr %4, align 8, !tbaa !5
  %248 = call i64 @fread(ptr noundef %33, i64 noundef 1, i64 noundef 4, ptr noundef %247)
  %249 = load ptr, ptr %4, align 8, !tbaa !5
  %250 = call i64 @fread(ptr noundef %34, i64 noundef 1, i64 noundef 16, ptr noundef %249)
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #9
  store i32 0, ptr %35, align 4, !tbaa !12
  %251 = load ptr, ptr %4, align 8, !tbaa !5
  %252 = call i64 @fread(ptr noundef %35, i64 noundef 1, i64 noundef 4, ptr noundef %251)
  %253 = load i32, ptr %35, align 4, !tbaa !12
  %254 = icmp sgt i32 %253, 0
  br i1 %254, label %255, label %279

255:                                              ; preds = %240
  call void @llvm.lifetime.start.p0(i64 24, ptr %36) #9
  call void @llvm.memset.p0.i64(ptr align 8 %36, i8 0, i64 24, i1 false)
  %256 = getelementptr inbounds %struct.Image, ptr %36, i32 0, i32 3
  store i32 1, ptr %256, align 8, !tbaa !28
  %257 = getelementptr inbounds %struct.Image, ptr %36, i32 0, i32 1
  %258 = load ptr, ptr %4, align 8, !tbaa !5
  %259 = call i64 @fread(ptr noundef %257, i64 noundef 1, i64 noundef 4, ptr noundef %258)
  %260 = getelementptr inbounds %struct.Image, ptr %36, i32 0, i32 2
  %261 = load ptr, ptr %4, align 8, !tbaa !5
  %262 = call i64 @fread(ptr noundef %260, i64 noundef 1, i64 noundef 4, ptr noundef %261)
  %263 = getelementptr inbounds %struct.Image, ptr %36, i32 0, i32 4
  %264 = load ptr, ptr %4, align 8, !tbaa !5
  %265 = call i64 @fread(ptr noundef %263, i64 noundef 1, i64 noundef 4, ptr noundef %264)
  %266 = load i32, ptr %35, align 4, !tbaa !12
  %267 = sext i32 %266 to i64
  %268 = call noalias ptr @malloc(i64 noundef %267) #10
  %269 = getelementptr inbounds %struct.Image, ptr %36, i32 0, i32 0
  store ptr %268, ptr %269, align 8, !tbaa !30
  %270 = getelementptr inbounds %struct.Image, ptr %36, i32 0, i32 0
  %271 = load ptr, ptr %270, align 8, !tbaa !30
  %272 = load i32, ptr %35, align 4, !tbaa !12
  %273 = sext i32 %272 to i64
  %274 = load ptr, ptr %4, align 8, !tbaa !5
  %275 = call i64 @fread(ptr noundef %271, i64 noundef 1, i64 noundef %273, ptr noundef %274)
  call void @llvm.lifetime.start.p0(i64 20, ptr %37) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %38, ptr align 8 %36, i64 24, i1 false), !tbaa.struct !31
  call void @LoadTextureFromImage(ptr dead_on_unwind writable sret(%struct.Texture) align 4 %37, ptr noundef byval(%struct.Image) align 8 %38)
  %276 = getelementptr inbounds %struct.Font, ptr %32, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %276, ptr align 4 %37, i64 20, i1 false), !tbaa.struct !32
  call void @llvm.lifetime.end.p0(i64 20, ptr %37) #9
  %277 = getelementptr inbounds %struct.Image, ptr %36, i32 0, i32 0
  %278 = load ptr, ptr %277, align 8, !tbaa !30
  call void @free(ptr noundef %278) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %36) #9
  br label %279

279:                                              ; preds = %255, %240
  %280 = getelementptr inbounds %struct.Font, ptr %32, i32 0, i32 1
  %281 = load i32, ptr %280, align 4, !tbaa !20
  %282 = sext i32 %281 to i64
  %283 = call noalias ptr @calloc(i64 noundef %282, i64 noundef 16) #11
  %284 = getelementptr inbounds %struct.Font, ptr %32, i32 0, i32 4
  store ptr %283, ptr %284, align 8, !tbaa !33
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #9
  store i32 0, ptr %39, align 4, !tbaa !12
  br label %285

285:                                              ; preds = %299, %279
  %286 = load i32, ptr %39, align 4, !tbaa !12
  %287 = getelementptr inbounds %struct.Font, ptr %32, i32 0, i32 1
  %288 = load i32, ptr %287, align 4, !tbaa !20
  %289 = icmp slt i32 %286, %288
  br i1 %289, label %291, label %290

290:                                              ; preds = %285
  store i32 14, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #9
  br label %302

291:                                              ; preds = %285
  %292 = getelementptr inbounds %struct.Font, ptr %32, i32 0, i32 4
  %293 = load ptr, ptr %292, align 8, !tbaa !33
  %294 = load i32, ptr %39, align 4, !tbaa !12
  %295 = sext i32 %294 to i64
  %296 = getelementptr inbounds %struct.Rectangle, ptr %293, i64 %295
  %297 = load ptr, ptr %4, align 8, !tbaa !5
  %298 = call i64 @fread(ptr noundef %296, i64 noundef 1, i64 noundef 16, ptr noundef %297)
  br label %299

299:                                              ; preds = %291
  %300 = load i32, ptr %39, align 4, !tbaa !12
  %301 = add nsw i32 %300, 1
  store i32 %301, ptr %39, align 4, !tbaa !12
  br label %285, !llvm.loop !34

302:                                              ; preds = %290
  %303 = getelementptr inbounds %struct.Font, ptr %32, i32 0, i32 1
  %304 = load i32, ptr %303, align 4, !tbaa !20
  %305 = sext i32 %304 to i64
  %306 = call noalias ptr @calloc(i64 noundef %305, i64 noundef 40) #11
  %307 = getelementptr inbounds %struct.Font, ptr %32, i32 0, i32 5
  store ptr %306, ptr %307, align 8, !tbaa !35
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #9
  store i32 0, ptr %40, align 4, !tbaa !12
  br label %308

308:                                              ; preds = %347, %302
  %309 = load i32, ptr %40, align 4, !tbaa !12
  %310 = getelementptr inbounds %struct.Font, ptr %32, i32 0, i32 1
  %311 = load i32, ptr %310, align 4, !tbaa !20
  %312 = icmp slt i32 %309, %311
  br i1 %312, label %314, label %313

313:                                              ; preds = %308
  store i32 17, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #9
  br label %350

314:                                              ; preds = %308
  %315 = getelementptr inbounds %struct.Font, ptr %32, i32 0, i32 5
  %316 = load ptr, ptr %315, align 8, !tbaa !35
  %317 = load i32, ptr %40, align 4, !tbaa !12
  %318 = sext i32 %317 to i64
  %319 = getelementptr inbounds %struct.GlyphInfo, ptr %316, i64 %318
  %320 = getelementptr inbounds %struct.GlyphInfo, ptr %319, i32 0, i32 0
  %321 = load ptr, ptr %4, align 8, !tbaa !5
  %322 = call i64 @fread(ptr noundef %320, i64 noundef 1, i64 noundef 4, ptr noundef %321)
  %323 = getelementptr inbounds %struct.Font, ptr %32, i32 0, i32 5
  %324 = load ptr, ptr %323, align 8, !tbaa !35
  %325 = load i32, ptr %40, align 4, !tbaa !12
  %326 = sext i32 %325 to i64
  %327 = getelementptr inbounds %struct.GlyphInfo, ptr %324, i64 %326
  %328 = getelementptr inbounds %struct.GlyphInfo, ptr %327, i32 0, i32 1
  %329 = load ptr, ptr %4, align 8, !tbaa !5
  %330 = call i64 @fread(ptr noundef %328, i64 noundef 1, i64 noundef 4, ptr noundef %329)
  %331 = getelementptr inbounds %struct.Font, ptr %32, i32 0, i32 5
  %332 = load ptr, ptr %331, align 8, !tbaa !35
  %333 = load i32, ptr %40, align 4, !tbaa !12
  %334 = sext i32 %333 to i64
  %335 = getelementptr inbounds %struct.GlyphInfo, ptr %332, i64 %334
  %336 = getelementptr inbounds %struct.GlyphInfo, ptr %335, i32 0, i32 2
  %337 = load ptr, ptr %4, align 8, !tbaa !5
  %338 = call i64 @fread(ptr noundef %336, i64 noundef 1, i64 noundef 4, ptr noundef %337)
  %339 = getelementptr inbounds %struct.Font, ptr %32, i32 0, i32 5
  %340 = load ptr, ptr %339, align 8, !tbaa !35
  %341 = load i32, ptr %40, align 4, !tbaa !12
  %342 = sext i32 %341 to i64
  %343 = getelementptr inbounds %struct.GlyphInfo, ptr %340, i64 %342
  %344 = getelementptr inbounds %struct.GlyphInfo, ptr %343, i32 0, i32 3
  %345 = load ptr, ptr %4, align 8, !tbaa !5
  %346 = call i64 @fread(ptr noundef %344, i64 noundef 1, i64 noundef 4, ptr noundef %345)
  br label %347

347:                                              ; preds = %314
  %348 = load i32, ptr %40, align 4, !tbaa !12
  %349 = add nsw i32 %348, 1
  store i32 %349, ptr %40, align 4, !tbaa !12
  br label %308, !llvm.loop !36

350:                                              ; preds = %313
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %41, ptr align 8 %32, i64 48, i1 false), !tbaa.struct !16
  call void @GuiSetFont(ptr noundef byval(%struct.Font) align 8 %41)
  %351 = getelementptr inbounds %struct.Rectangle, ptr %34, i32 0, i32 2
  %352 = load float, ptr %351, align 4, !tbaa !37
  %353 = fcmp une float %352, 0.000000e+00
  br i1 %353, label %354, label %364

354:                                              ; preds = %350
  %355 = getelementptr inbounds %struct.Rectangle, ptr %34, i32 0, i32 3
  %356 = load float, ptr %355, align 4, !tbaa !40
  %357 = fcmp une float %356, 0.000000e+00
  br i1 %357, label %358, label %364

358:                                              ; preds = %354
  %359 = getelementptr inbounds %struct.Font, ptr %32, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %42, ptr align 4 %359, i64 20, i1 false), !tbaa.struct !32
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %43, ptr align 4 %34, i64 16, i1 false), !tbaa.struct !41
  %360 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %43, i32 0, i32 0
  %361 = load <2 x float>, ptr %360, align 4
  %362 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %43, i32 0, i32 1
  %363 = load <2 x float>, ptr %362, align 4
  call void @SetShapesTexture(ptr noundef byval(%struct.Texture) align 8 %42, <2 x float> %361, <2 x float> %363)
  br label %364

364:                                              ; preds = %358, %354, %350
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #9
  call void @llvm.lifetime.end.p0(i64 48, ptr %32) #9
  br label %365

365:                                              ; preds = %364, %235
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #9
  call void @llvm.lifetime.end.p0(i64 2, ptr %27) #9
  call void @llvm.lifetime.end.p0(i64 2, ptr %26) #9
  br label %366

366:                                              ; preds = %365, %182, %177, %172, %158
  %367 = load ptr, ptr %4, align 8, !tbaa !5
  %368 = call i32 @fclose(ptr noundef %367)
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #9
  call void @llvm.lifetime.end.p0(i64 2, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 2, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 5, ptr %22) #9
  br label %369

369:                                              ; preds = %366, %149
  store i32 0, ptr %21, align 4
  br label %370

370:                                              ; preds = %369, %157
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %3) #9
  %371 = load i32, ptr %21, align 4
  switch i32 %371, label %373 [
    i32 0, label %372
    i32 1, label %372
  ]

372:                                              ; preds = %370, %370
  ret void

373:                                              ; preds = %370
  unreachable
}

declare noalias ptr @fopen(ptr noundef, ptr noundef) #7

declare ptr @fgets(ptr noundef, i32 noundef, ptr noundef) #7

; Function Attrs: nounwind
declare i32 @feof(ptr noundef) #5

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

declare ptr @LoadFileText(ptr noundef) #7

declare ptr @TextSplit(ptr noundef, i8 noundef signext, ptr noundef) #7

declare void @LoadFontEx(ptr dead_on_unwind writable sret(%struct.Font) align 8, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #7

declare ptr @GetDirectoryPath(ptr noundef) #7

declare i32 @fclose(ptr noundef) #7

declare i64 @fread(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #7

declare void @LoadTextureFromImage(ptr dead_on_unwind writable sret(%struct.Texture) align 4, ptr noundef byval(%struct.Image) align 8) #7

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nounwind allocsize(0,1) "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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { nounwind allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { mustprogress uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #9 = { nounwind }
attributes #10 = { nounwind allocsize(0) }
attributes #11 = { nounwind allocsize(0,1) }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{i64 0, i64 4, !12, i64 4, i64 4, !12, i64 8, i64 4, !12, i64 12, i64 4, !12, i64 16, i64 4, !12, i64 20, i64 4, !12, i64 24, i64 4, !12, i64 28, i64 4, !12, i64 32, i64 8, !5, i64 40, i64 8, !5}
!17 = !{!18, !13, i64 12}
!18 = !{!"_ZTS4Font", !13, i64 0, !13, i64 4, !13, i64 8, !19, i64 12, !6, i64 32, !6, i64 40}
!19 = !{!"_ZTS7Texture", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16}
!20 = !{!18, !13, i64 4}
!21 = distinct !{!21, !15}
!22 = !{i8 0, i8 2}
!23 = !{}
!24 = !{!25, !25, i64 0}
!25 = !{!"short", !7, i64 0}
!26 = distinct !{!26, !15}
!27 = distinct !{!27, !15}
!28 = !{!29, !13, i64 16}
!29 = !{!"_ZTS5Image", !6, i64 0, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20}
!30 = !{!29, !6, i64 0}
!31 = !{i64 0, i64 8, !5, i64 8, i64 4, !12, i64 12, i64 4, !12, i64 16, i64 4, !12, i64 20, i64 4, !12}
!32 = !{i64 0, i64 4, !12, i64 4, i64 4, !12, i64 8, i64 4, !12, i64 12, i64 4, !12, i64 16, i64 4, !12}
!33 = !{!18, !6, i64 32}
!34 = distinct !{!34, !15}
!35 = !{!18, !6, i64 40}
!36 = distinct !{!36, !15}
!37 = !{!38, !39, i64 8}
!38 = !{!"_ZTS9Rectangle", !39, i64 0, !39, i64 4, !39, i64 8, !39, i64 12}
!39 = !{!"float", !7, i64 0}
!40 = !{!38, !39, i64 12}
!41 = !{i64 0, i64 4, !42, i64 4, i64 4, !42, i64 8, i64 4, !42, i64 12, i64 4, !42}
!42 = !{!39, !39, i64 0}


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

%struct.Font = type { i32, i32, i32, %struct.Texture, ptr, ptr }
%struct.Texture = type { i32, i32, i32, i32, i32 }
%struct.Rectangle = type { float, float, float, float }
%struct.Image = type { ptr, i32, i32, i32, i32 }
%struct.GlyphInfo = type { i32, i32, i32, i32, %struct.Image }

@.str.23 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [3 x i8], align 1

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @calloc(i64 noundef, i64 noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local void @GuiSetFont(ptr noundef byval(%struct.Font) align 8) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
declare dso_local void @GuiSetStyle(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #6

declare ptr @TextFormat(ptr noundef, ...) local_unnamed_addr #7

declare i32 @TextToInteger(ptr noundef) local_unnamed_addr #7

; Function Attrs: mustprogress uwtable
define dso_local void @GuiLoadStyle(ptr noundef %0) local_unnamed_addr #8 {
  %2 = alloca [256 x i8], align 16
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca [256 x i8], align 16
  %8 = alloca [256 x i8], align 16
  %.sroa.8 = alloca [32 x i8], align 8
  %9 = alloca i32, align 4
  %10 = alloca %struct.Font, align 16
  %11 = alloca %struct.Font, align 16
  %12 = alloca %struct.Font, align 16
  %13 = alloca [5 x i8], align 4
  %14 = alloca i16, align 2
  %15 = alloca i16, align 2
  %16 = alloca i32, align 4
  %17 = alloca i16, align 2
  %18 = alloca i16, align 2
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca %struct.Font, align 8
  %22 = alloca i32, align 4
  %23 = alloca %struct.Rectangle, align 8
  %24 = alloca i32, align 4
  %25 = alloca %struct.Image, align 8
  %26 = alloca %struct.Texture, align 8
  %27 = tail call noalias ptr @fopen(ptr noundef %0, ptr noundef nonnull @.str.23)
  %.not = icmp eq ptr %27, null
  br i1 %.not, label %.critedge, label %28

28:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %2) #10
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(256) %2, i8 0, i64 256, i1 false)
  %29 = call ptr @fgets(ptr noundef nonnull %2, i32 noundef 256, ptr noundef nonnull %27)
  %30 = load i8, ptr %2, align 16, !tbaa !5
  %.not118 = icmp eq i8 %30, 35
  br i1 %.not118, label %31, label %80

31:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #10
  store i32 0, ptr %3, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #10
  store i32 0, ptr %4, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #10
  store i32 0, ptr %5, align 4, !tbaa !8
  %32 = call i32 @feof(ptr noundef nonnull %27) #10
  %.not104133 = icmp eq i32 %32, 0
  br i1 %.not104133, label %.lr.ph139, label %._crit_edge140

.lr.ph139:                                        ; preds = %31
  %.sroa.8.0..sroa_idx = getelementptr inbounds i8, ptr %10, i64 16
  %.sroa.8.0..sroa_idx56 = getelementptr inbounds i8, ptr %11, i64 16
  %.sroa.8.0..sroa_idx57 = getelementptr inbounds i8, ptr %12, i64 16
  br label %33

33:                                               ; preds = %.lr.ph139, %76
  %34 = load i8, ptr %2, align 16, !tbaa !5
  switch i8 %34, label %76 [
    i8 112, label %35
    i8 102, label %40
  ]

35:                                               ; preds = %33
  %36 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %2, ptr noundef nonnull @.str.24, ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %5) #10
  %37 = load i32, ptr %3, align 4, !tbaa !8
  %38 = load i32, ptr %4, align 4, !tbaa !8
  %39 = load i32, ptr %5, align 4, !tbaa !8
  call void @GuiSetStyle(i32 noundef %37, i32 noundef %38, i32 noundef %39)
  br label %76

40:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #10
  store i32 0, ptr %6, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %7) #10
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(256) %7, i8 0, i64 256, i1 false)
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %8) #10
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(256) %8, i8 0, i64 256, i1 false)
  %41 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %2, ptr noundef nonnull @.str.25, ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef nonnull %8) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %.sroa.8)
  %42 = load i8, ptr %7, align 16, !tbaa !5
  %.not105 = icmp eq i8 %42, 48
  br i1 %.not105, label %64, label %43

43:                                               ; preds = %40
  %44 = call ptr @LoadFileText(ptr noundef nonnull %7)
  %.not106 = icmp eq ptr %44, null
  br i1 %.not106, label %.thread, label %45

45:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #10
  store i32 0, ptr %9, align 4, !tbaa !8
  %46 = call ptr @TextSplit(ptr noundef nonnull %44, i8 noundef signext 10, ptr noundef nonnull %9)
  %47 = load i32, ptr %9, align 4, !tbaa !8
  %48 = sext i32 %47 to i64
  %49 = shl nsw i64 %48, 2
  %50 = call noalias ptr @malloc(i64 noundef %49) #11
  %51 = icmp sgt i32 %47, 0
  br i1 %51, label %.lr.ph131, label %._crit_edge132

._crit_edge132:                                   ; preds = %.lr.ph131, %45
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %10) #10
  %52 = call ptr @GetDirectoryPath(ptr noundef %0)
  %53 = call ptr (ptr, ...) @TextFormat(ptr noundef nonnull @.str.26, ptr noundef %52, ptr noundef nonnull %8)
  %54 = load i32, ptr %6, align 4, !tbaa !8
  %55 = load i32, ptr %9, align 4, !tbaa !8
  call void @LoadFontEx(ptr dead_on_unwind nonnull writable sret(%struct.Font) align 8 %10, ptr noundef %53, i32 noundef %54, ptr noundef %50, i32 noundef %55)
  %56 = load <4 x i32>, ptr %10, align 16, !tbaa !8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %.sroa.8, ptr noundef nonnull align 16 dereferenceable(32) %.sroa.8.0..sroa_idx, i64 32, i1 false), !tbaa.struct !10
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %10) #10
  call void @free(ptr noundef %50) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #10
  br label %69

.lr.ph131:                                        ; preds = %45, %.lr.ph131
  %indvars.iv148 = phi i64 [ %indvars.iv.next149, %.lr.ph131 ], [ 0, %45 ]
  %57 = getelementptr inbounds ptr, ptr %46, i64 %indvars.iv148
  %58 = load ptr, ptr %57, align 8, !tbaa !11
  %59 = call i32 @TextToInteger(ptr noundef %58)
  %60 = getelementptr inbounds i32, ptr %50, i64 %indvars.iv148
  store i32 %59, ptr %60, align 4, !tbaa !8
  %indvars.iv.next149 = add nuw nsw i64 %indvars.iv148, 1
  %61 = load i32, ptr %9, align 4, !tbaa !8
  %62 = sext i32 %61 to i64
  %63 = icmp slt i64 %indvars.iv.next149, %62
  br i1 %63, label %.lr.ph131, label %._crit_edge132, !llvm.loop !13

64:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %11) #10
  %65 = call ptr @GetDirectoryPath(ptr noundef %0)
  %66 = call ptr (ptr, ...) @TextFormat(ptr noundef nonnull @.str.26, ptr noundef %65, ptr noundef nonnull %8)
  %67 = load i32, ptr %6, align 4, !tbaa !8
  call void @LoadFontEx(ptr dead_on_unwind nonnull writable sret(%struct.Font) align 8 %11, ptr noundef %66, i32 noundef %67, ptr noundef null, i32 noundef 0)
  %68 = load <4 x i32>, ptr %11, align 16, !tbaa !8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %.sroa.8, ptr noundef nonnull align 16 dereferenceable(32) %.sroa.8.0..sroa_idx56, i64 32, i1 false), !tbaa.struct !10
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %11) #10
  br label %69

69:                                               ; preds = %._crit_edge132, %64
  %70 = phi <4 x i32> [ %68, %64 ], [ %56, %._crit_edge132 ]
  %71 = extractelement <4 x i32> %70, i64 3
  %72 = icmp ne i32 %71, 0
  %73 = extractelement <4 x i32> %70, i64 1
  %74 = icmp sgt i32 %73, 0
  %or.cond = select i1 %72, i1 %74, i1 false
  br i1 %or.cond, label %75, label %.thread

75:                                               ; preds = %69
  store <4 x i32> %70, ptr %12, align 16, !tbaa !8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %.sroa.8.0..sroa_idx57, ptr noundef nonnull align 8 dereferenceable(32) %.sroa.8, i64 32, i1 false), !tbaa.struct !10
  call void @GuiSetFont(ptr noundef nonnull byval(%struct.Font) align 8 %12)
  br label %.thread

.thread:                                          ; preds = %43, %75, %69
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %.sroa.8)
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %8) #10
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %7) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #10
  br label %76

76:                                               ; preds = %33, %.thread, %35
  %77 = call ptr @fgets(ptr noundef nonnull %2, i32 noundef 256, ptr noundef nonnull %27)
  %78 = call i32 @feof(ptr noundef nonnull %27) #10
  %.not104 = icmp eq i32 %78, 0
  br i1 %.not104, label %33, label %._crit_edge140, !llvm.loop !15

._crit_edge140:                                   ; preds = %76, %31
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #10
  %79 = call i32 @fclose(ptr noundef nonnull %27)
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %2) #10
  br label %.critedge

80:                                               ; preds = %28
  %81 = call i32 @fclose(ptr noundef nonnull %27)
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %2) #10
  %82 = call noalias ptr @fopen(ptr noundef %0, ptr noundef nonnull @.str.27)
  %83 = icmp eq ptr %82, null
  br i1 %83, label %.critedge, label %84

84:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 5, ptr nonnull %13) #10
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(5) %13, i8 0, i64 5, i1 false)
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %14) #10
  store i16 0, ptr %14, align 2, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %15) #10
  store i16 0, ptr %15, align 2, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #10
  store i32 0, ptr %16, align 4, !tbaa !8
  %85 = call i64 @fread(ptr noundef nonnull %13, i64 noundef 1, i64 noundef 4, ptr noundef nonnull %82)
  %86 = call i64 @fread(ptr noundef nonnull %14, i64 noundef 1, i64 noundef 2, ptr noundef nonnull %82)
  %87 = call i64 @fread(ptr noundef nonnull %15, i64 noundef 1, i64 noundef 2, ptr noundef nonnull %82)
  %88 = call i64 @fread(ptr noundef nonnull %16, i64 noundef 1, i64 noundef 4, ptr noundef nonnull %82)
  %89 = load <4 x i8>, ptr %13, align 4
  %.fr = freeze <4 x i8> %89
  %.fr.scalar = bitcast <4 x i8> %.fr to i32
  %90 = icmp eq i32 %.fr.scalar, 542328690
  br i1 %90, label %91, label %164

91:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %17) #10
  store i16 0, ptr %17, align 2, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %18) #10
  store i16 0, ptr %18, align 2, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %19) #10
  store i32 0, ptr %19, align 4, !tbaa !8
  %92 = load i32, ptr %16, align 4, !tbaa !8
  %93 = icmp sgt i32 %92, 0
  br i1 %93, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.loopexit, %91
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %20) #10
  store i32 0, ptr %20, align 4, !tbaa !8
  %94 = call i64 @fread(ptr noundef nonnull %20, i64 noundef 1, i64 noundef 4, ptr noundef %82)
  %95 = load i32, ptr %20, align 4, !tbaa !8
  %96 = icmp sgt i32 %95, 0
  br i1 %96, label %113, label %163

.lr.ph:                                           ; preds = %91, %.loopexit
  %.097120 = phi i32 [ %112, %.loopexit ], [ 0, %91 ]
  %97 = call i64 @fread(ptr noundef nonnull %17, i64 noundef 1, i64 noundef 2, ptr noundef %82)
  %98 = call i64 @fread(ptr noundef nonnull %18, i64 noundef 1, i64 noundef 2, ptr noundef %82)
  %99 = call i64 @fread(ptr noundef nonnull %19, i64 noundef 1, i64 noundef 4, ptr noundef %82)
  %100 = load i16, ptr %17, align 2, !tbaa !16
  %101 = icmp eq i16 %100, 0
  br i1 %101, label %102, label %107

102:                                              ; preds = %.lr.ph
  %103 = load i16, ptr %18, align 2, !tbaa !16
  %104 = sext i16 %103 to i32
  %105 = load i32, ptr %19, align 4, !tbaa !8
  call void @GuiSetStyle(i32 noundef 0, i32 noundef %104, i32 noundef %105)
  %106 = icmp slt i16 %103, 16
  br i1 %106, label %.preheader.preheader, label %.loopexit

.preheader.preheader:                             ; preds = %102
  call void @GuiSetStyle(i32 noundef 1, i32 noundef %104, i32 noundef %105)
  call void @GuiSetStyle(i32 noundef 2, i32 noundef %104, i32 noundef %105)
  call void @GuiSetStyle(i32 noundef 3, i32 noundef %104, i32 noundef %105)
  call void @GuiSetStyle(i32 noundef 4, i32 noundef %104, i32 noundef %105)
  call void @GuiSetStyle(i32 noundef 5, i32 noundef %104, i32 noundef %105)
  call void @GuiSetStyle(i32 noundef 6, i32 noundef %104, i32 noundef %105)
  call void @GuiSetStyle(i32 noundef 7, i32 noundef %104, i32 noundef %105)
  call void @GuiSetStyle(i32 noundef 8, i32 noundef %104, i32 noundef %105)
  call void @GuiSetStyle(i32 noundef 9, i32 noundef %104, i32 noundef %105)
  call void @GuiSetStyle(i32 noundef 10, i32 noundef %104, i32 noundef %105)
  call void @GuiSetStyle(i32 noundef 11, i32 noundef %104, i32 noundef %105)
  call void @GuiSetStyle(i32 noundef 12, i32 noundef %104, i32 noundef %105)
  call void @GuiSetStyle(i32 noundef 13, i32 noundef %104, i32 noundef %105)
  call void @GuiSetStyle(i32 noundef 14, i32 noundef %104, i32 noundef %105)
  call void @GuiSetStyle(i32 noundef 15, i32 noundef %104, i32 noundef %105)
  br label %.loopexit

107:                                              ; preds = %.lr.ph
  %108 = sext i16 %100 to i32
  %109 = load i16, ptr %18, align 2, !tbaa !16
  %110 = sext i16 %109 to i32
  %111 = load i32, ptr %19, align 4, !tbaa !8
  call void @GuiSetStyle(i32 noundef %108, i32 noundef %110, i32 noundef %111)
  br label %.loopexit

.loopexit:                                        ; preds = %.preheader.preheader, %107, %102
  %112 = add nuw nsw i32 %.097120, 1
  %exitcond.not = icmp eq i32 %112, %92
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !18

113:                                              ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %21) #10
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(48) %21, i8 0, i64 48, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %22) #10
  store i32 0, ptr %22, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %23) #10
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %23, i8 0, i64 16, i1 false)
  %114 = call i64 @fread(ptr noundef nonnull %21, i64 noundef 1, i64 noundef 4, ptr noundef %82)
  %115 = getelementptr inbounds i8, ptr %21, i64 4
  %116 = call i64 @fread(ptr noundef nonnull %115, i64 noundef 1, i64 noundef 4, ptr noundef %82)
  %117 = call i64 @fread(ptr noundef nonnull %22, i64 noundef 1, i64 noundef 4, ptr noundef %82)
  %118 = call i64 @fread(ptr noundef nonnull %23, i64 noundef 1, i64 noundef 16, ptr noundef %82)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %24) #10
  store i32 0, ptr %24, align 4, !tbaa !8
  %119 = call i64 @fread(ptr noundef nonnull %24, i64 noundef 1, i64 noundef 4, ptr noundef %82)
  %120 = load i32, ptr %24, align 4, !tbaa !8
  %121 = icmp sgt i32 %120, 0
  br i1 %121, label %122, label %134

122:                                              ; preds = %113
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %25) #10
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %25, i8 0, i64 24, i1 false)
  %123 = getelementptr inbounds i8, ptr %25, i64 16
  store i32 1, ptr %123, align 8, !tbaa !19
  %124 = getelementptr inbounds i8, ptr %25, i64 8
  %125 = call i64 @fread(ptr noundef nonnull %124, i64 noundef 1, i64 noundef 4, ptr noundef %82)
  %126 = getelementptr inbounds i8, ptr %25, i64 12
  %127 = call i64 @fread(ptr noundef nonnull %126, i64 noundef 1, i64 noundef 4, ptr noundef %82)
  %128 = getelementptr inbounds i8, ptr %25, i64 20
  %129 = call i64 @fread(ptr noundef nonnull %128, i64 noundef 1, i64 noundef 4, ptr noundef %82)
  %130 = zext nneg i32 %120 to i64
  %131 = call noalias ptr @malloc(i64 noundef %130) #11
  store ptr %131, ptr %25, align 8, !tbaa !21
  %132 = call i64 @fread(ptr noundef %131, i64 noundef 1, i64 noundef %130, ptr noundef %82)
  %133 = getelementptr inbounds i8, ptr %21, i64 12
  call void @LoadTextureFromImage(ptr dead_on_unwind nonnull writable sret(%struct.Texture) align 4 %133, ptr noundef nonnull byval(%struct.Image) align 8 %25)
  call void @free(ptr noundef %131) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %25) #10
  br label %134

134:                                              ; preds = %122, %113
  %135 = load i32, ptr %115, align 4, !tbaa !22
  %136 = sext i32 %135 to i64
  %137 = call noalias ptr @calloc(i64 noundef %136, i64 noundef 16) #12
  %138 = getelementptr inbounds i8, ptr %21, i64 32
  store ptr %137, ptr %138, align 8, !tbaa !25
  %139 = icmp sgt i32 %135, 0
  br i1 %139, label %.lr.ph123.preheader, label %._crit_edge124.thread

._crit_edge124.thread:                            ; preds = %134
  %140 = call noalias ptr @calloc(i64 noundef %136, i64 noundef 40) #12
  %141 = getelementptr inbounds i8, ptr %21, i64 40
  store ptr %140, ptr %141, align 8, !tbaa !26
  br label %._crit_edge128

.lr.ph123.preheader:                              ; preds = %134
  %wide.trip.count = zext nneg i32 %135 to i64
  br label %.lr.ph123

._crit_edge124:                                   ; preds = %.lr.ph123
  %142 = call noalias ptr @calloc(i64 noundef %136, i64 noundef 40) #12
  %143 = getelementptr inbounds i8, ptr %21, i64 40
  store ptr %142, ptr %143, align 8, !tbaa !26
  br i1 %139, label %.lr.ph127.preheader, label %._crit_edge128

.lr.ph127.preheader:                              ; preds = %._crit_edge124
  %wide.trip.count146 = zext nneg i32 %135 to i64
  br label %.lr.ph127

.lr.ph123:                                        ; preds = %.lr.ph123.preheader, %.lr.ph123
  %indvars.iv = phi i64 [ 0, %.lr.ph123.preheader ], [ %indvars.iv.next, %.lr.ph123 ]
  %144 = getelementptr inbounds %struct.Rectangle, ptr %137, i64 %indvars.iv
  %145 = call i64 @fread(ptr noundef %144, i64 noundef 1, i64 noundef 16, ptr noundef %82)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond142.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond142.not, label %._crit_edge124, label %.lr.ph123, !llvm.loop !27

._crit_edge128:                                   ; preds = %.lr.ph127, %._crit_edge124.thread, %._crit_edge124
  call void @GuiSetFont(ptr noundef nonnull byval(%struct.Font) align 8 %21)
  %146 = getelementptr inbounds i8, ptr %23, i64 8
  %147 = load float, ptr %146, align 8, !tbaa !28
  %148 = fcmp une float %147, 0.000000e+00
  %149 = getelementptr inbounds i8, ptr %23, i64 12
  %150 = load float, ptr %149, align 4
  %151 = fcmp une float %150, 0.000000e+00
  %or.cond17 = select i1 %148, i1 %151, i1 false
  br i1 %or.cond17, label %160, label %162

.lr.ph127:                                        ; preds = %.lr.ph127.preheader, %.lr.ph127
  %indvars.iv143 = phi i64 [ 0, %.lr.ph127.preheader ], [ %indvars.iv.next144, %.lr.ph127 ]
  %152 = getelementptr inbounds %struct.GlyphInfo, ptr %142, i64 %indvars.iv143
  %153 = call i64 @fread(ptr noundef %152, i64 noundef 1, i64 noundef 4, ptr noundef %82)
  %154 = getelementptr inbounds %struct.GlyphInfo, ptr %142, i64 %indvars.iv143, i32 1
  %155 = call i64 @fread(ptr noundef nonnull %154, i64 noundef 1, i64 noundef 4, ptr noundef %82)
  %156 = getelementptr inbounds %struct.GlyphInfo, ptr %142, i64 %indvars.iv143, i32 2
  %157 = call i64 @fread(ptr noundef nonnull %156, i64 noundef 1, i64 noundef 4, ptr noundef %82)
  %158 = getelementptr inbounds %struct.GlyphInfo, ptr %142, i64 %indvars.iv143, i32 3
  %159 = call i64 @fread(ptr noundef nonnull %158, i64 noundef 1, i64 noundef 4, ptr noundef %82)
  %indvars.iv.next144 = add nuw nsw i64 %indvars.iv143, 1
  %exitcond147.not = icmp eq i64 %indvars.iv.next144, %wide.trip.count146
  br i1 %exitcond147.not, label %._crit_edge128, label %.lr.ph127, !llvm.loop !31

160:                                              ; preds = %._crit_edge128
  %161 = getelementptr inbounds i8, ptr %21, i64 12
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(20) %26, ptr noundef nonnull align 4 dereferenceable(20) %161, i64 20, i1 false), !tbaa.struct !32
  %.sroa.0.0.copyload = load <2 x float>, ptr %23, align 8
  %.sroa.2.0.copyload = load <2 x float>, ptr %146, align 8
  call void @SetShapesTexture(ptr noundef nonnull byval(%struct.Texture) align 8 %26, <2 x float> %.sroa.0.0.copyload, <2 x float> %.sroa.2.0.copyload)
  br label %162

162:                                              ; preds = %160, %._crit_edge128
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %24) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %23) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #10
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %21) #10
  br label %163

163:                                              ; preds = %162, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #10
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %18) #10
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %17) #10
  br label %164

164:                                              ; preds = %163, %84
  %165 = call i32 @fclose(ptr noundef %82)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #10
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %15) #10
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %14) #10
  call void @llvm.lifetime.end.p0(i64 5, ptr nonnull %13) #10
  br label %.critedge

.critedge:                                        ; preds = %._crit_edge140, %164, %1, %80
  ret void
}

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #9

; Function Attrs: nofree nounwind
declare noundef ptr @fgets(ptr noundef, i32 noundef, ptr nocapture noundef) local_unnamed_addr #9

; Function Attrs: nofree nounwind
declare noundef i32 @feof(ptr nocapture noundef) local_unnamed_addr #9

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

declare ptr @LoadFileText(ptr noundef) local_unnamed_addr #7

declare ptr @TextSplit(ptr noundef, i8 noundef signext, ptr noundef) local_unnamed_addr #7

declare void @LoadFontEx(ptr dead_on_unwind writable sret(%struct.Font) align 8, ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #7

declare ptr @GetDirectoryPath(ptr noundef) local_unnamed_addr #7

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #9

; Function Attrs: nofree nounwind
declare noundef i64 @fread(ptr nocapture noundef, i64 noundef, i64 noundef, ptr nocapture noundef) local_unnamed_addr #9

declare void @LoadTextureFromImage(ptr dead_on_unwind writable sret(%struct.Texture) align 4, ptr noundef byval(%struct.Image) align 8) local_unnamed_addr #7

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { mustprogress uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #9 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #10 = { nounwind }
attributes #11 = { nounwind allocsize(0) }
attributes #12 = { nounwind allocsize(0,1) }

!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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !6, i64 0}
!10 = !{i64 0, i64 4, !8, i64 4, i64 4, !8, i64 8, i64 4, !8, i64 12, i64 4, !8, i64 16, i64 8, !11, i64 24, i64 8, !11}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !6, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = !{!17, !17, i64 0}
!17 = !{!"short", !6, i64 0}
!18 = distinct !{!18, !14}
!19 = !{!20, !9, i64 16}
!20 = !{!"_ZTS5Image", !12, i64 0, !9, i64 8, !9, i64 12, !9, i64 16, !9, i64 20}
!21 = !{!20, !12, i64 0}
!22 = !{!23, !9, i64 4}
!23 = !{!"_ZTS4Font", !9, i64 0, !9, i64 4, !9, i64 8, !24, i64 12, !12, i64 32, !12, i64 40}
!24 = !{!"_ZTS7Texture", !9, i64 0, !9, i64 4, !9, i64 8, !9, i64 12, !9, i64 16}
!25 = !{!23, !12, i64 32}
!26 = !{!23, !12, i64 40}
!27 = distinct !{!27, !14}
!28 = !{!29, !30, i64 8}
!29 = !{!"_ZTS9Rectangle", !30, i64 0, !30, i64 4, !30, i64 8, !30, i64 12}
!30 = !{!"float", !6, i64 0}
!31 = distinct !{!31, !14}
!32 = !{i64 0, i64 4, !8, i64 4, i64 4, !8, i64 8, i64 4, !8, i64 12, i64 4, !8, i64 16, i64 4, !8}


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