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

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

@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @GuiSetFont(ptr noundef byval(%struct.Font) align 8) #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: nounwind uwtable
declare dso_local void @GuiSetStyle(i32 noundef, i32 noundef, i32 noundef) #0

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

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

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

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

declare i32 @TextToInteger(ptr noundef) #4

; Function Attrs: nounwind uwtable
define dso_local void @GuiLoadStyle(ptr noundef %0) #5 {
  %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 i32, align 4
  %21 = alloca [5 x i8], align 1
  %22 = alloca i16, align 2
  %23 = alloca i16, align 2
  %24 = alloca i32, align 4
  %25 = alloca i16, align 2
  %26 = alloca i16, align 2
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca %struct.Font, align 8
  %32 = alloca i32, align 4
  %33 = alloca %struct.Rectangle, align 4
  %34 = alloca i32, align 4
  %35 = alloca %struct.Image, align 8
  %36 = alloca %struct.Texture, align 4
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca %struct.Texture, align 8
  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
  %40 = load ptr, ptr %2, align 8, !tbaa !5
  %41 = call noalias ptr @fopen(ptr noundef %40, ptr noundef @.str.2)
  store ptr %41, ptr %4, align 8, !tbaa !5
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = icmp ne ptr %42, null
  br i1 %43, label %44, label %145

44:                                               ; 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)
  %45 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 0
  %46 = load ptr, ptr %4, align 8, !tbaa !5
  %47 = call ptr @fgets(ptr noundef %45, i32 noundef 256, ptr noundef %46)
  %48 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 0
  %49 = load i8, ptr %48, align 16, !tbaa !11
  %50 = sext i8 %49 to i32
  %51 = icmp eq i32 %50, 35
  br i1 %51, label %52, label %141

52:                                               ; preds = %44
  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 %53

53:                                               ; preds = %136, %52
  %54 = load ptr, ptr %4, align 8, !tbaa !5
  %55 = call i32 @feof(ptr noundef %54) #9
  %56 = icmp ne i32 %55, 0
  %57 = xor i1 %56, true
  br i1 %57, label %58, label %140

58:                                               ; preds = %53
  %59 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 0
  %60 = load i8, ptr %59, align 16, !tbaa !11
  %61 = sext i8 %60 to i32
  switch i32 %61, label %135 [
    i32 112, label %62
    i32 102, label %68
  ]

62:                                               ; preds = %58
  %63 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 0
  %64 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %63, ptr noundef @.str.3, ptr noundef %6, ptr noundef %7, ptr noundef %8) #9
  %65 = load i32, ptr %6, align 4, !tbaa !12
  %66 = load i32, ptr %7, align 4, !tbaa !12
  %67 = load i32, ptr %8, align 4, !tbaa !12
  call void @GuiSetStyle(i32 noundef %65, i32 noundef %66, i32 noundef %67)
  br label %136

68:                                               ; preds = %58
  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)
  %69 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 0
  %70 = getelementptr inbounds [256 x i8], ptr %10, i64 0, i64 0
  %71 = getelementptr inbounds [256 x i8], ptr %11, i64 0, i64 0
  %72 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %69, ptr noundef @.str.4, ptr noundef %9, ptr noundef %70, ptr noundef %71) #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)
  %73 = getelementptr inbounds [256 x i8], ptr %10, i64 0, i64 0
  %74 = load i8, ptr %73, align 16, !tbaa !11
  %75 = sext i8 %74 to i32
  %76 = icmp ne i32 %75, 48
  br i1 %76, label %77, label %118

77:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #9
  %78 = getelementptr inbounds [256 x i8], ptr %10, i64 0, i64 0
  %79 = call ptr @LoadFileText(ptr noundef %78)
  store ptr %79, ptr %13, align 8, !tbaa !5
  %80 = load ptr, ptr %13, align 8, !tbaa !5
  %81 = icmp ne ptr %80, null
  br i1 %81, label %82, label %117

82:                                               ; preds = %77
  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
  %83 = load ptr, ptr %13, align 8, !tbaa !5
  %84 = call ptr @TextSplit(ptr noundef %83, i8 noundef signext 10, ptr noundef %14)
  store ptr %84, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #9
  %85 = load i32, ptr %14, align 4, !tbaa !12
  %86 = sext i32 %85 to i64
  %87 = mul i64 %86, 4
  %88 = call noalias ptr @malloc(i64 noundef %87) #10
  store ptr %88, 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 %89

89:                                               ; preds = %105, %82
  %90 = load i32, ptr %17, align 4, !tbaa !12
  %91 = load i32, ptr %14, align 4, !tbaa !12
  %92 = icmp slt i32 %90, %91
  br i1 %92, label %94, label %93

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

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

105:                                              ; preds = %94
  %106 = load i32, ptr %17, align 4, !tbaa !12
  %107 = add nsw i32 %106, 1
  store i32 %107, ptr %17, align 4, !tbaa !12
  br label %89, !llvm.loop !14

108:                                              ; preds = %93
  call void @llvm.lifetime.start.p0(i64 48, ptr %18) #9
  %109 = load ptr, ptr %2, align 8, !tbaa !5
  %110 = call ptr @GetDirectoryPath(ptr noundef %109)
  %111 = getelementptr inbounds [256 x i8], ptr %11, i64 0, i64 0
  %112 = call ptr (ptr, ...) @TextFormat(ptr noundef @.str.5, ptr noundef %110, ptr noundef %111)
  %113 = load i32, ptr %9, align 4, !tbaa !12
  %114 = load ptr, ptr %16, align 8, !tbaa !5
  %115 = load i32, ptr %14, align 4, !tbaa !12
  call void @LoadFontEx(ptr dead_on_unwind writable sret(%struct.Font) align 8 %18, ptr noundef %112, i32 noundef %113, ptr noundef %114, i32 noundef %115)
  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
  %116 = load ptr, ptr %16, align 8, !tbaa !5
  call void @free(ptr noundef %116) #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 %117

117:                                              ; preds = %108, %77
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #9
  br label %124

118:                                              ; preds = %68
  call void @llvm.lifetime.start.p0(i64 48, ptr %19) #9
  %119 = load ptr, ptr %2, align 8, !tbaa !5
  %120 = call ptr @GetDirectoryPath(ptr noundef %119)
  %121 = getelementptr inbounds [256 x i8], ptr %11, i64 0, i64 0
  %122 = call ptr (ptr, ...) @TextFormat(ptr noundef @.str.5, ptr noundef %120, ptr noundef %121)
  %123 = load i32, ptr %9, align 4, !tbaa !12
  call void @LoadFontEx(ptr dead_on_unwind writable sret(%struct.Font) align 8 %19, ptr noundef %122, i32 noundef %123, 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 %124

124:                                              ; preds = %118, %117
  %125 = getelementptr inbounds %struct.Font, ptr %12, i32 0, i32 3
  %126 = getelementptr inbounds %struct.Texture, ptr %125, i32 0, i32 0
  %127 = load i32, ptr %126, align 4, !tbaa !17
  %128 = icmp ugt i32 %127, 0
  br i1 %128, label %129, label %134

129:                                              ; preds = %124
  %130 = getelementptr inbounds %struct.Font, ptr %12, i32 0, i32 1
  %131 = load i32, ptr %130, align 4, !tbaa !20
  %132 = icmp sgt i32 %131, 0
  br i1 %132, label %133, label %134

133:                                              ; preds = %129
  call void @GuiSetFont(ptr noundef byval(%struct.Font) align 8 %12)
  br label %134

134:                                              ; preds = %133, %129, %124
  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 %136

135:                                              ; preds = %58
  br label %136

136:                                              ; preds = %135, %134, %62
  %137 = getelementptr inbounds [256 x i8], ptr %5, i64 0, i64 0
  %138 = load ptr, ptr %4, align 8, !tbaa !5
  %139 = call ptr @fgets(ptr noundef %137, i32 noundef 256, ptr noundef %138)
  br label %53, !llvm.loop !21

140:                                              ; preds = %53
  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 %142

141:                                              ; preds = %44
  store i8 1, ptr %3, align 1, !tbaa !9
  br label %142

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

145:                                              ; preds = %142, %1
  %146 = load i8, ptr %3, align 1, !tbaa !9, !range !22, !noundef !23
  %147 = trunc i8 %146 to i1
  br i1 %147, label %148, label %363

148:                                              ; preds = %145
  %149 = load ptr, ptr %2, align 8, !tbaa !5
  %150 = call noalias ptr @fopen(ptr noundef %149, ptr noundef @.str.6)
  store ptr %150, ptr %4, align 8, !tbaa !5
  %151 = load ptr, ptr %4, align 8, !tbaa !5
  %152 = icmp eq ptr %151, null
  br i1 %152, label %153, label %154

153:                                              ; preds = %148
  store i32 1, ptr %20, align 4
  br label %364

154:                                              ; preds = %148
  call void @llvm.lifetime.start.p0(i64 5, ptr %21) #9
  call void @llvm.memset.p0.i64(ptr align 1 %21, i8 0, i64 5, i1 false)
  call void @llvm.lifetime.start.p0(i64 2, ptr %22) #9
  store i16 0, ptr %22, align 2, !tbaa !24
  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 4, ptr %24) #9
  store i32 0, ptr %24, align 4, !tbaa !12
  %155 = getelementptr inbounds [5 x i8], ptr %21, i64 0, i64 0
  %156 = load ptr, ptr %4, align 8, !tbaa !5
  %157 = call i64 @fread(ptr noundef %155, i64 noundef 1, i64 noundef 4, ptr noundef %156)
  %158 = load ptr, ptr %4, align 8, !tbaa !5
  %159 = call i64 @fread(ptr noundef %22, i64 noundef 1, i64 noundef 2, ptr noundef %158)
  %160 = load ptr, ptr %4, align 8, !tbaa !5
  %161 = call i64 @fread(ptr noundef %23, i64 noundef 1, i64 noundef 2, ptr noundef %160)
  %162 = load ptr, ptr %4, align 8, !tbaa !5
  %163 = call i64 @fread(ptr noundef %24, i64 noundef 1, i64 noundef 4, ptr noundef %162)
  %164 = getelementptr inbounds [5 x i8], ptr %21, i64 0, i64 0
  %165 = load i8, ptr %164, align 1, !tbaa !11
  %166 = sext i8 %165 to i32
  %167 = icmp eq i32 %166, 114
  br i1 %167, label %168, label %360

168:                                              ; preds = %154
  %169 = getelementptr inbounds [5 x i8], ptr %21, i64 0, i64 1
  %170 = load i8, ptr %169, align 1, !tbaa !11
  %171 = sext i8 %170 to i32
  %172 = icmp eq i32 %171, 71
  br i1 %172, label %173, label %360

173:                                              ; preds = %168
  %174 = getelementptr inbounds [5 x i8], ptr %21, i64 0, i64 2
  %175 = load i8, ptr %174, align 1, !tbaa !11
  %176 = sext i8 %175 to i32
  %177 = icmp eq i32 %176, 83
  br i1 %177, label %178, label %360

178:                                              ; preds = %173
  %179 = getelementptr inbounds [5 x i8], ptr %21, i64 0, i64 3
  %180 = load i8, ptr %179, align 1, !tbaa !11
  %181 = sext i8 %180 to i32
  %182 = icmp eq i32 %181, 32
  br i1 %182, label %183, label %360

183:                                              ; preds = %178
  call void @llvm.lifetime.start.p0(i64 2, ptr %25) #9
  store i16 0, ptr %25, align 2, !tbaa !24
  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 4, ptr %27) #9
  store i32 0, ptr %27, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #9
  store i32 0, ptr %28, align 4, !tbaa !12
  br label %184

184:                                              ; preds = %228, %183
  %185 = load i32, ptr %28, align 4, !tbaa !12
  %186 = load i32, ptr %24, align 4, !tbaa !12
  %187 = icmp slt i32 %185, %186
  br i1 %187, label %189, label %188

188:                                              ; preds = %184
  store i32 8, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #9
  br label %231

189:                                              ; preds = %184
  %190 = load ptr, ptr %4, align 8, !tbaa !5
  %191 = call i64 @fread(ptr noundef %25, i64 noundef 1, i64 noundef 2, ptr noundef %190)
  %192 = load ptr, ptr %4, align 8, !tbaa !5
  %193 = call i64 @fread(ptr noundef %26, i64 noundef 1, i64 noundef 2, ptr noundef %192)
  %194 = load ptr, ptr %4, align 8, !tbaa !5
  %195 = call i64 @fread(ptr noundef %27, i64 noundef 1, i64 noundef 4, ptr noundef %194)
  %196 = load i16, ptr %25, align 2, !tbaa !24
  %197 = sext i16 %196 to i32
  %198 = icmp eq i32 %197, 0
  br i1 %198, label %199, label %221

199:                                              ; preds = %189
  %200 = load i16, ptr %26, align 2, !tbaa !24
  %201 = sext i16 %200 to i32
  %202 = load i32, ptr %27, align 4, !tbaa !12
  call void @GuiSetStyle(i32 noundef 0, i32 noundef %201, i32 noundef %202)
  %203 = load i16, ptr %26, align 2, !tbaa !24
  %204 = sext i16 %203 to i32
  %205 = icmp slt i32 %204, 16
  br i1 %205, label %206, label %220

206:                                              ; preds = %199
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #9
  store i32 1, ptr %29, align 4, !tbaa !12
  br label %207

207:                                              ; preds = %216, %206
  %208 = load i32, ptr %29, align 4, !tbaa !12
  %209 = icmp slt i32 %208, 16
  br i1 %209, label %211, label %210

210:                                              ; preds = %207
  store i32 11, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #9
  br label %219

211:                                              ; preds = %207
  %212 = load i32, ptr %29, align 4, !tbaa !12
  %213 = load i16, ptr %26, align 2, !tbaa !24
  %214 = sext i16 %213 to i32
  %215 = load i32, ptr %27, align 4, !tbaa !12
  call void @GuiSetStyle(i32 noundef %212, i32 noundef %214, i32 noundef %215)
  br label %216

216:                                              ; preds = %211
  %217 = load i32, ptr %29, align 4, !tbaa !12
  %218 = add nsw i32 %217, 1
  store i32 %218, ptr %29, align 4, !tbaa !12
  br label %207, !llvm.loop !26

219:                                              ; preds = %210
  br label %220

220:                                              ; preds = %219, %199
  br label %227

221:                                              ; preds = %189
  %222 = load i16, ptr %25, align 2, !tbaa !24
  %223 = sext i16 %222 to i32
  %224 = load i16, ptr %26, align 2, !tbaa !24
  %225 = sext i16 %224 to i32
  %226 = load i32, ptr %27, align 4, !tbaa !12
  call void @GuiSetStyle(i32 noundef %223, i32 noundef %225, i32 noundef %226)
  br label %227

227:                                              ; preds = %221, %220
  br label %228

228:                                              ; preds = %227
  %229 = load i32, ptr %28, align 4, !tbaa !12
  %230 = add nsw i32 %229, 1
  store i32 %230, ptr %28, align 4, !tbaa !12
  br label %184, !llvm.loop !27

231:                                              ; preds = %188
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #9
  store i32 0, ptr %30, align 4, !tbaa !12
  %232 = load ptr, ptr %4, align 8, !tbaa !5
  %233 = call i64 @fread(ptr noundef %30, i64 noundef 1, i64 noundef 4, ptr noundef %232)
  %234 = load i32, ptr %30, align 4, !tbaa !12
  %235 = icmp sgt i32 %234, 0
  br i1 %235, label %236, label %359

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

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

273:                                              ; preds = %251, %236
  %274 = getelementptr inbounds %struct.Font, ptr %31, i32 0, i32 1
  %275 = load i32, ptr %274, align 4, !tbaa !20
  %276 = sext i32 %275 to i64
  %277 = call noalias ptr @calloc(i64 noundef %276, i64 noundef 16) #11
  %278 = getelementptr inbounds %struct.Font, ptr %31, i32 0, i32 4
  store ptr %277, ptr %278, align 8, !tbaa !32
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #9
  store i32 0, ptr %37, align 4, !tbaa !12
  br label %279

279:                                              ; preds = %293, %273
  %280 = load i32, ptr %37, align 4, !tbaa !12
  %281 = getelementptr inbounds %struct.Font, ptr %31, i32 0, i32 1
  %282 = load i32, ptr %281, align 4, !tbaa !20
  %283 = icmp slt i32 %280, %282
  br i1 %283, label %285, label %284

284:                                              ; preds = %279
  store i32 14, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #9
  br label %296

285:                                              ; preds = %279
  %286 = getelementptr inbounds %struct.Font, ptr %31, i32 0, i32 4
  %287 = load ptr, ptr %286, align 8, !tbaa !32
  %288 = load i32, ptr %37, align 4, !tbaa !12
  %289 = sext i32 %288 to i64
  %290 = getelementptr inbounds %struct.Rectangle, ptr %287, i64 %289
  %291 = load ptr, ptr %4, align 8, !tbaa !5
  %292 = call i64 @fread(ptr noundef %290, i64 noundef 1, i64 noundef 16, ptr noundef %291)
  br label %293

293:                                              ; preds = %285
  %294 = load i32, ptr %37, align 4, !tbaa !12
  %295 = add nsw i32 %294, 1
  store i32 %295, ptr %37, align 4, !tbaa !12
  br label %279, !llvm.loop !33

296:                                              ; preds = %284
  %297 = getelementptr inbounds %struct.Font, ptr %31, i32 0, i32 1
  %298 = load i32, ptr %297, align 4, !tbaa !20
  %299 = sext i32 %298 to i64
  %300 = call noalias ptr @calloc(i64 noundef %299, i64 noundef 40) #11
  %301 = getelementptr inbounds %struct.Font, ptr %31, i32 0, i32 5
  store ptr %300, ptr %301, align 8, !tbaa !34
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #9
  store i32 0, ptr %38, align 4, !tbaa !12
  br label %302

302:                                              ; preds = %341, %296
  %303 = load i32, ptr %38, align 4, !tbaa !12
  %304 = getelementptr inbounds %struct.Font, ptr %31, i32 0, i32 1
  %305 = load i32, ptr %304, align 4, !tbaa !20
  %306 = icmp slt i32 %303, %305
  br i1 %306, label %308, label %307

307:                                              ; preds = %302
  store i32 17, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #9
  br label %344

308:                                              ; preds = %302
  %309 = getelementptr inbounds %struct.Font, ptr %31, i32 0, i32 5
  %310 = load ptr, ptr %309, align 8, !tbaa !34
  %311 = load i32, ptr %38, align 4, !tbaa !12
  %312 = sext i32 %311 to i64
  %313 = getelementptr inbounds %struct.CharInfo, ptr %310, i64 %312
  %314 = getelementptr inbounds %struct.CharInfo, ptr %313, i32 0, i32 0
  %315 = load ptr, ptr %4, align 8, !tbaa !5
  %316 = call i64 @fread(ptr noundef %314, i64 noundef 1, i64 noundef 4, ptr noundef %315)
  %317 = getelementptr inbounds %struct.Font, ptr %31, i32 0, i32 5
  %318 = load ptr, ptr %317, align 8, !tbaa !34
  %319 = load i32, ptr %38, align 4, !tbaa !12
  %320 = sext i32 %319 to i64
  %321 = getelementptr inbounds %struct.CharInfo, ptr %318, i64 %320
  %322 = getelementptr inbounds %struct.CharInfo, ptr %321, i32 0, i32 1
  %323 = load ptr, ptr %4, align 8, !tbaa !5
  %324 = call i64 @fread(ptr noundef %322, i64 noundef 1, i64 noundef 4, ptr noundef %323)
  %325 = getelementptr inbounds %struct.Font, ptr %31, i32 0, i32 5
  %326 = load ptr, ptr %325, align 8, !tbaa !34
  %327 = load i32, ptr %38, align 4, !tbaa !12
  %328 = sext i32 %327 to i64
  %329 = getelementptr inbounds %struct.CharInfo, ptr %326, i64 %328
  %330 = getelementptr inbounds %struct.CharInfo, ptr %329, i32 0, i32 2
  %331 = load ptr, ptr %4, align 8, !tbaa !5
  %332 = call i64 @fread(ptr noundef %330, i64 noundef 1, i64 noundef 4, ptr noundef %331)
  %333 = getelementptr inbounds %struct.Font, ptr %31, i32 0, i32 5
  %334 = load ptr, ptr %333, align 8, !tbaa !34
  %335 = load i32, ptr %38, align 4, !tbaa !12
  %336 = sext i32 %335 to i64
  %337 = getelementptr inbounds %struct.CharInfo, ptr %334, i64 %336
  %338 = getelementptr inbounds %struct.CharInfo, ptr %337, i32 0, i32 3
  %339 = load ptr, ptr %4, align 8, !tbaa !5
  %340 = call i64 @fread(ptr noundef %338, i64 noundef 1, i64 noundef 4, ptr noundef %339)
  br label %341

341:                                              ; preds = %308
  %342 = load i32, ptr %38, align 4, !tbaa !12
  %343 = add nsw i32 %342, 1
  store i32 %343, ptr %38, align 4, !tbaa !12
  br label %302, !llvm.loop !35

344:                                              ; preds = %307
  call void @GuiSetFont(ptr noundef byval(%struct.Font) align 8 %31)
  %345 = getelementptr inbounds %struct.Rectangle, ptr %33, i32 0, i32 2
  %346 = load float, ptr %345, align 4, !tbaa !36
  %347 = fcmp une float %346, 0.000000e+00
  br i1 %347, label %348, label %358

348:                                              ; preds = %344
  %349 = getelementptr inbounds %struct.Rectangle, ptr %33, i32 0, i32 3
  %350 = load float, ptr %349, align 4, !tbaa !39
  %351 = fcmp une float %350, 0.000000e+00
  br i1 %351, label %352, label %358

352:                                              ; preds = %348
  %353 = getelementptr inbounds %struct.Font, ptr %31, i32 0, i32 3
  call void @llvm.lifetime.start.p0(i64 20, ptr %39) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %39, ptr align 4 %353, i64 20, i1 false), !tbaa.struct !31
  %354 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %33, i32 0, i32 0
  %355 = load <2 x float>, ptr %354, align 4
  %356 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %33, i32 0, i32 1
  %357 = load <2 x float>, ptr %356, align 4
  call void @SetShapesTexture(ptr noundef byval(%struct.Texture) align 8 %39, <2 x float> %355, <2 x float> %357)
  call void @llvm.lifetime.end.p0(i64 20, ptr %39) #9
  br label %358

358:                                              ; preds = %352, %348, %344
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #9
  call void @llvm.lifetime.end.p0(i64 48, ptr %31) #9
  br label %359

359:                                              ; preds = %358, %231
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #9
  call void @llvm.lifetime.end.p0(i64 2, ptr %26) #9
  call void @llvm.lifetime.end.p0(i64 2, ptr %25) #9
  br label %360

360:                                              ; preds = %359, %178, %173, %168, %154
  %361 = load ptr, ptr %4, align 8, !tbaa !5
  %362 = call i32 @fclose(ptr noundef %361)
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 2, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 2, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 5, ptr %21) #9
  br label %363

363:                                              ; preds = %360, %145
  store i32 0, ptr %20, align 4
  br label %364

364:                                              ; preds = %363, %153
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %3) #9
  %365 = load i32, ptr %20, align 4
  switch i32 %365, label %367 [
    i32 0, label %366
    i32 1, label %366
  ]

366:                                              ; preds = %364, %364
  ret void

367:                                              ; preds = %364
  unreachable
}

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

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

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

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

declare ptr @LoadFileText(ptr noundef) #4

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

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

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

declare ptr @GetDirectoryPath(ptr noundef) #4

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

declare i32 @fclose(ptr noundef) #4

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

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

declare void @UnloadImage(ptr noundef byval(%struct.Image) align 8) #4

; Function Attrs: nounwind allocsize(0,1)
declare noalias ptr @calloc(i64 noundef, i64 noundef) #8

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

attributes #0 = { 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 #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { "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 uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #7 = { 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 #8 = { 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 #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/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 = !{!"Font", !13, i64 0, !13, i64 4, !13, i64 8, !19, i64 12, !6, i64 32, !6, i64 40}
!19 = !{!"Texture", !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 = !{!"Image", !6, i64 0, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20}
!30 = !{!29, !6, i64 0}
!31 = !{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}
!32 = !{!18, !6, i64 32}
!33 = distinct !{!33, !15}
!34 = !{!18, !6, i64 40}
!35 = distinct !{!35, !15}
!36 = !{!37, !38, i64 8}
!37 = !{!"Rectangle", !38, i64 0, !38, i64 4, !38, i64 8, !38, i64 12}
!38 = !{!"float", !7, i64 0}
!39 = !{!37, !38, i64 12}


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

@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @GuiSetFont(ptr noundef byval(%struct.Font) align 8) local_unnamed_addr #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: nounwind uwtable
declare dso_local void @GuiSetStyle(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

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

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

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

declare i32 @TextToInteger(ptr noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
define dso_local void @GuiLoadStyle(ptr noundef %0) local_unnamed_addr #5 {
  %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
  %9 = alloca %struct.Font, align 8
  %10 = alloca i32, align 4
  %11 = alloca %struct.Font, align 8
  %12 = alloca %struct.Font, align 8
  %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.2)
  %.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
  %.not89 = icmp eq i8 %30, 35
  br i1 %.not89, 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
  %.not84104 = icmp eq i32 %32, 0
  br i1 %.not84104, label %.lr.ph106, label %._crit_edge107

.lr.ph106:                                        ; preds = %31
  %33 = getelementptr inbounds i8, ptr %9, i64 12
  %34 = getelementptr inbounds i8, ptr %9, i64 4
  br label %35

35:                                               ; preds = %.lr.ph106, %76
  %36 = load i8, ptr %2, align 16, !tbaa !5
  switch i8 %36, label %76 [
    i8 112, label %37
    i8 102, label %42
  ]

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

42:                                               ; preds = %35
  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)
  %43 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %2, ptr noundef nonnull @.str.4, ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef nonnull %8) #10
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %9) #10
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(48) %9, i8 0, i64 48, i1 false)
  %44 = load i8, ptr %7, align 16, !tbaa !5
  %.not85 = icmp eq i8 %44, 48
  br i1 %.not85, label %65, label %45

45:                                               ; preds = %42
  %46 = call ptr @LoadFileText(ptr noundef nonnull %7) #10
  %.not86 = icmp eq ptr %46, null
  br i1 %.not86, label %69, label %47

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

._crit_edge103:                                   ; preds = %.lr.ph102, %47
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %11) #10
  %54 = call ptr @GetDirectoryPath(ptr noundef %0) #10
  %55 = call ptr (ptr, ...) @TextFormat(ptr noundef nonnull @.str.5, ptr noundef %54, ptr noundef nonnull %8) #10
  %56 = load i32, ptr %6, align 4, !tbaa !8
  %57 = load i32, ptr %10, align 4, !tbaa !8
  call void @LoadFontEx(ptr dead_on_unwind nonnull writable sret(%struct.Font) align 8 %11, ptr noundef %55, i32 noundef %56, ptr noundef %52, i32 noundef %57) #10
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(48) %9, ptr noundef nonnull align 8 dereferenceable(48) %11, i64 48, i1 false), !tbaa.struct !10
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %11) #10
  call void @free(ptr noundef %52) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #10
  br label %69

.lr.ph102:                                        ; preds = %47, %.lr.ph102
  %indvars.iv113 = phi i64 [ %indvars.iv.next114, %.lr.ph102 ], [ 0, %47 ]
  %58 = getelementptr inbounds ptr, ptr %48, i64 %indvars.iv113
  %59 = load ptr, ptr %58, align 8, !tbaa !11
  %60 = call i32 @TextToInteger(ptr noundef %59) #10
  %61 = getelementptr inbounds i32, ptr %52, i64 %indvars.iv113
  store i32 %60, ptr %61, align 4, !tbaa !8
  %indvars.iv.next114 = add nuw nsw i64 %indvars.iv113, 1
  %62 = load i32, ptr %10, align 4, !tbaa !8
  %63 = sext i32 %62 to i64
  %64 = icmp slt i64 %indvars.iv.next114, %63
  br i1 %64, label %.lr.ph102, label %._crit_edge103, !llvm.loop !13

65:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %12) #10
  %66 = call ptr @GetDirectoryPath(ptr noundef %0) #10
  %67 = call ptr (ptr, ...) @TextFormat(ptr noundef nonnull @.str.5, ptr noundef %66, ptr noundef nonnull %8) #10
  %68 = load i32, ptr %6, align 4, !tbaa !8
  call void @LoadFontEx(ptr dead_on_unwind nonnull writable sret(%struct.Font) align 8 %12, ptr noundef %67, i32 noundef %68, ptr noundef null, i32 noundef 0) #10
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(48) %9, ptr noundef nonnull align 8 dereferenceable(48) %12, i64 48, i1 false), !tbaa.struct !10
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %12) #10
  br label %69

69:                                               ; preds = %45, %._crit_edge103, %65
  %70 = load i32, ptr %33, align 4, !tbaa !15
  %71 = icmp ne i32 %70, 0
  %72 = load i32, ptr %34, align 4
  %73 = icmp sgt i32 %72, 0
  %or.cond = select i1 %71, i1 %73, i1 false
  br i1 %or.cond, label %74, label %75

74:                                               ; preds = %69
  call void @GuiSetFont(ptr noundef nonnull byval(%struct.Font) align 8 %9)
  br label %75

75:                                               ; preds = %74, %69
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %9) #10
  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 = %35, %75, %37
  %77 = call ptr @fgets(ptr noundef nonnull %2, i32 noundef 256, ptr noundef nonnull %27)
  %78 = call i32 @feof(ptr noundef nonnull %27) #10
  %.not84 = icmp eq i32 %78, 0
  br i1 %.not84, label %35, label %._crit_edge107, !llvm.loop !18

._crit_edge107:                                   ; 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.6)
  %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 !19
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %15) #10
  store i16 0, ptr %15, align 2, !tbaa !19
  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 %172

91:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %17) #10
  store i16 0, ptr %17, align 2, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %18) #10
  store i16 0, ptr %18, align 2, !tbaa !19
  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 %171

.lr.ph:                                           ; preds = %91, %.loopexit
  %.07691 = 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 !19
  %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 !19
  %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 !19
  %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 %.07691, 1
  %exitcond.not = icmp eq i32 %112, %92
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !21

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 !22
  %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 !24
  %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) #10
  call void @UnloadImage(ptr noundef nonnull byval(%struct.Image) align 8 %25) #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 !25
  %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 !26
  %139 = icmp sgt i32 %135, 0
  br i1 %139, label %.lr.ph94, label %._crit_edge95.thread

._crit_edge95.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 !27
  br label %._crit_edge99

._crit_edge95:                                    ; preds = %.lr.ph94
  %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 !27
  br i1 %139, label %.lr.ph98, label %._crit_edge99

.lr.ph94:                                         ; preds = %134, %.lr.ph94
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph94 ], [ 0, %134 ]
  %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
  %146 = icmp slt i64 %indvars.iv.next, %136
  br i1 %146, label %.lr.ph94, label %._crit_edge95, !llvm.loop !28

._crit_edge99:                                    ; preds = %.lr.ph98, %._crit_edge95.thread, %._crit_edge95
  call void @GuiSetFont(ptr noundef nonnull byval(%struct.Font) align 8 %21)
  %147 = getelementptr inbounds i8, ptr %23, i64 8
  %148 = load float, ptr %147, align 8, !tbaa !29
  %149 = fcmp une float %148, 0.000000e+00
  %150 = getelementptr inbounds i8, ptr %23, i64 12
  %151 = load float, ptr %150, align 4
  %152 = fcmp une float %151, 0.000000e+00
  %or.cond17 = select i1 %149, i1 %152, i1 false
  br i1 %or.cond17, label %166, label %170

.lr.ph98:                                         ; preds = %._crit_edge95, %.lr.ph98
  %153 = phi ptr [ %156, %.lr.ph98 ], [ %142, %._crit_edge95 ]
  %indvars.iv110 = phi i64 [ %indvars.iv.next111, %.lr.ph98 ], [ 0, %._crit_edge95 ]
  %154 = getelementptr inbounds %struct.CharInfo, ptr %153, i64 %indvars.iv110
  %155 = call i64 @fread(ptr noundef %154, i64 noundef 1, i64 noundef 4, ptr noundef %82)
  %156 = load ptr, ptr %143, align 8, !tbaa !27
  %157 = getelementptr inbounds %struct.CharInfo, ptr %156, i64 %indvars.iv110, i32 1
  %158 = call i64 @fread(ptr noundef nonnull %157, i64 noundef 1, i64 noundef 4, ptr noundef %82)
  %159 = getelementptr inbounds %struct.CharInfo, ptr %156, i64 %indvars.iv110, i32 2
  %160 = call i64 @fread(ptr noundef nonnull %159, i64 noundef 1, i64 noundef 4, ptr noundef %82)
  %161 = getelementptr inbounds %struct.CharInfo, ptr %156, i64 %indvars.iv110, i32 3
  %162 = call i64 @fread(ptr noundef nonnull %161, i64 noundef 1, i64 noundef 4, ptr noundef %82)
  %indvars.iv.next111 = add nuw nsw i64 %indvars.iv110, 1
  %163 = load i32, ptr %115, align 4, !tbaa !25
  %164 = sext i32 %163 to i64
  %165 = icmp slt i64 %indvars.iv.next111, %164
  br i1 %165, label %.lr.ph98, label %._crit_edge99, !llvm.loop !32

166:                                              ; preds = %._crit_edge99
  %167 = getelementptr inbounds i8, ptr %21, i64 12
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %26) #10
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(20) %26, ptr noundef nonnull align 4 dereferenceable(20) %167, i64 20, i1 false), !tbaa.struct !33
  %168 = load <2 x float>, ptr %23, align 8
  %169 = load <2 x float>, ptr %147, align 8
  call void @SetShapesTexture(ptr noundef nonnull byval(%struct.Texture) align 8 %26, <2 x float> %168, <2 x float> %169) #10
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %26) #10
  br label %170

170:                                              ; preds = %166, %._crit_edge99
  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 %171

171:                                              ; preds = %170, %._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 %172

172:                                              ; preds = %171, %84
  %173 = 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_edge107, %172, %1, %80
  ret void
}

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

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

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

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

declare ptr @LoadFileText(ptr noundef) local_unnamed_addr #4

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

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 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 #4

declare ptr @GetDirectoryPath(ptr 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 #8

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

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

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

declare void @UnloadImage(ptr noundef byval(%struct.Image) align 8) local_unnamed_addr #4

; 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 #9

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { "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 uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #7 = { 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 #8 = { 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 #9 = { 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 #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/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 4, !8, i64 20, i64 4, !8, i64 24, i64 4, !8, i64 28, i64 4, !8, i64 32, i64 8, !11, i64 40, i64 8, !11}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !6, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !9, i64 12}
!16 = !{!"Font", !9, i64 0, !9, i64 4, !9, i64 8, !17, i64 12, !12, i64 32, !12, i64 40}
!17 = !{!"Texture", !9, i64 0, !9, i64 4, !9, i64 8, !9, i64 12, !9, i64 16}
!18 = distinct !{!18, !14}
!19 = !{!20, !20, i64 0}
!20 = !{!"short", !6, i64 0}
!21 = distinct !{!21, !14}
!22 = !{!23, !9, i64 16}
!23 = !{!"Image", !12, i64 0, !9, i64 8, !9, i64 12, !9, i64 16, !9, i64 20}
!24 = !{!23, !12, i64 0}
!25 = !{!16, !9, i64 4}
!26 = !{!16, !12, i64 32}
!27 = !{!16, !12, i64 40}
!28 = distinct !{!28, !14}
!29 = !{!30, !31, i64 8}
!30 = !{!"Rectangle", !31, i64 0, !31, i64 4, !31, i64 8, !31, i64 12}
!31 = !{!"float", !6, i64 0}
!32 = distinct !{!32, !14}
!33 = !{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,EarlyCSEPass,GVNPass,GlobalDCEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass