; LLVM IR from IOsonata/IOsonata :: fatfs (ff)

; 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.DIR = type { %struct.FFOBJID, i32, i32, i32, ptr, [12 x i8], ptr }
%struct.FFOBJID = type { ptr, i16, i8, i8, i32, i32 }
%struct.FATFS = type { i8, i8, i8, i8, i8, i16, i16, i16, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [512 x i8] }
%struct.FIL = type { %struct.FFOBJID, i8, i8, i32, i32, i32, i32, ptr, [512 x i8] }

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

; Function Attrs: nounwind uwtable
declare hidden i32 @mount_volume(ptr noundef, ptr noundef, i8 noundef zeroext) #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 uwtable
define dso_local i32 @f_open(ptr noundef %0, ptr noundef %1, i8 noundef zeroext %2) #1 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i8, align 1
  %8 = alloca i32, align 4
  %9 = alloca %struct.DIR, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i8 %2, ptr %7, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 72, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  %19 = icmp ne ptr %18, null
  br i1 %19, label %21, label %20

20:                                               ; preds = %3
  store i32 9, ptr %4, align 4
  store i32 1, ptr %17, align 4
  br label %331

21:                                               ; preds = %3
  %22 = load i8, ptr %7, align 1, !tbaa !9
  %23 = zext i8 %22 to i32
  %24 = and i32 %23, 63
  %25 = trunc i32 %24 to i8
  store i8 %25, ptr %7, align 1, !tbaa !9
  %26 = load i8, ptr %7, align 1, !tbaa !9
  %27 = call i32 @mount_volume(ptr noundef %6, ptr noundef %10, i8 noundef zeroext %26)
  store i32 %27, ptr %8, align 4, !tbaa !10
  %28 = load i32, ptr %8, align 4, !tbaa !10
  %29 = icmp eq i32 %28, 0
  br i1 %29, label %30, label %322

30:                                               ; preds = %21
  %31 = load ptr, ptr %10, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.DIR, ptr %9, i32 0, i32 0
  %33 = getelementptr inbounds %struct.FFOBJID, ptr %32, i32 0, i32 0
  store ptr %31, ptr %33, align 8, !tbaa !12
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  %35 = call i32 @follow_path(ptr noundef %9, ptr noundef %34)
  store i32 %35, ptr %8, align 4, !tbaa !10
  %36 = load i32, ptr %8, align 4, !tbaa !10
  %37 = icmp eq i32 %36, 0
  br i1 %37, label %38, label %47

38:                                               ; preds = %30
  %39 = getelementptr inbounds %struct.DIR, ptr %9, i32 0, i32 5
  %40 = getelementptr inbounds [12 x i8], ptr %39, i64 0, i64 11
  %41 = load i8, ptr %40, align 1, !tbaa !9
  %42 = zext i8 %41 to i32
  %43 = and i32 %42, 128
  %44 = icmp ne i32 %43, 0
  br i1 %44, label %45, label %46

45:                                               ; preds = %38
  store i32 6, ptr %8, align 4, !tbaa !10
  br label %46

46:                                               ; preds = %45, %38
  br label %47

47:                                               ; preds = %46, %30
  %48 = load i8, ptr %7, align 1, !tbaa !9
  %49 = zext i8 %48 to i32
  %50 = and i32 %49, 28
  %51 = icmp ne i32 %50, 0
  br i1 %51, label %52, label %135

52:                                               ; preds = %47
  %53 = load i32, ptr %8, align 4, !tbaa !10
  %54 = icmp ne i32 %53, 0
  br i1 %54, label %55, label %65

55:                                               ; preds = %52
  %56 = load i32, ptr %8, align 4, !tbaa !10
  %57 = icmp eq i32 %56, 4
  br i1 %57, label %58, label %60

58:                                               ; preds = %55
  %59 = call i32 @dir_register(ptr noundef %9)
  store i32 %59, ptr %8, align 4, !tbaa !10
  br label %60

60:                                               ; preds = %58, %55
  %61 = load i8, ptr %7, align 1, !tbaa !9
  %62 = zext i8 %61 to i32
  %63 = or i32 %62, 8
  %64 = trunc i32 %63 to i8
  store i8 %64, ptr %7, align 1, !tbaa !9
  br label %81

65:                                               ; preds = %52
  %66 = getelementptr inbounds %struct.DIR, ptr %9, i32 0, i32 0
  %67 = getelementptr inbounds %struct.FFOBJID, ptr %66, i32 0, i32 2
  %68 = load i8, ptr %67, align 2, !tbaa !16
  %69 = zext i8 %68 to i32
  %70 = and i32 %69, 17
  %71 = icmp ne i32 %70, 0
  br i1 %71, label %72, label %73

72:                                               ; preds = %65
  store i32 7, ptr %8, align 4, !tbaa !10
  br label %80

73:                                               ; preds = %65
  %74 = load i8, ptr %7, align 1, !tbaa !9
  %75 = zext i8 %74 to i32
  %76 = and i32 %75, 4
  %77 = icmp ne i32 %76, 0
  br i1 %77, label %78, label %79

78:                                               ; preds = %73
  store i32 8, ptr %8, align 4, !tbaa !10
  br label %79

79:                                               ; preds = %78, %73
  br label %80

80:                                               ; preds = %79, %72
  br label %81

81:                                               ; preds = %80, %60
  %82 = load i32, ptr %8, align 4, !tbaa !10
  %83 = icmp eq i32 %82, 0
  br i1 %83, label %84, label %134

84:                                               ; preds = %81
  %85 = load i8, ptr %7, align 1, !tbaa !9
  %86 = zext i8 %85 to i32
  %87 = and i32 %86, 8
  %88 = icmp ne i32 %87, 0
  br i1 %88, label %89, label %134

89:                                               ; preds = %84
  store i32 1344339968, ptr %14, align 4, !tbaa !10
  %90 = getelementptr inbounds %struct.DIR, ptr %9, i32 0, i32 4
  %91 = load ptr, ptr %90, align 8, !tbaa !17
  %92 = getelementptr inbounds i8, ptr %91, i64 14
  %93 = load i32, ptr %14, align 4, !tbaa !10
  call void @st_dword(ptr noundef %92, i32 noundef %93)
  %94 = getelementptr inbounds %struct.DIR, ptr %9, i32 0, i32 4
  %95 = load ptr, ptr %94, align 8, !tbaa !17
  %96 = getelementptr inbounds i8, ptr %95, i64 22
  %97 = load i32, ptr %14, align 4, !tbaa !10
  call void @st_dword(ptr noundef %96, i32 noundef %97)
  %98 = load ptr, ptr %10, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.DIR, ptr %9, i32 0, i32 4
  %100 = load ptr, ptr %99, align 8, !tbaa !17
  %101 = call i32 @ld_clust(ptr noundef %98, ptr noundef %100)
  store i32 %101, ptr %11, align 4, !tbaa !10
  %102 = getelementptr inbounds %struct.DIR, ptr %9, i32 0, i32 4
  %103 = load ptr, ptr %102, align 8, !tbaa !17
  %104 = getelementptr inbounds i8, ptr %103, i64 11
  store i8 32, ptr %104, align 1, !tbaa !9
  %105 = load ptr, ptr %10, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.DIR, ptr %9, i32 0, i32 4
  %107 = load ptr, ptr %106, align 8, !tbaa !17
  call void @st_clust(ptr noundef %105, ptr noundef %107, i32 noundef 0)
  %108 = getelementptr inbounds %struct.DIR, ptr %9, i32 0, i32 4
  %109 = load ptr, ptr %108, align 8, !tbaa !17
  %110 = getelementptr inbounds i8, ptr %109, i64 28
  call void @st_dword(ptr noundef %110, i32 noundef 0)
  %111 = load ptr, ptr %10, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.FATFS, ptr %111, i32 0, i32 3
  store i8 1, ptr %112, align 1, !tbaa !18
  %113 = load i32, ptr %11, align 4, !tbaa !10
  %114 = icmp ne i32 %113, 0
  br i1 %114, label %115, label %133

115:                                              ; preds = %89
  %116 = load ptr, ptr %10, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.FATFS, ptr %116, i32 0, i32 17
  %118 = load i32, ptr %117, align 4, !tbaa !20
  store i32 %118, ptr %15, align 4, !tbaa !10
  %119 = getelementptr inbounds %struct.DIR, ptr %9, i32 0, i32 0
  %120 = load i32, ptr %11, align 4, !tbaa !10
  %121 = call i32 @remove_chain(ptr noundef %119, i32 noundef %120, i32 noundef 0)
  store i32 %121, ptr %8, align 4, !tbaa !10
  %122 = load i32, ptr %8, align 4, !tbaa !10
  %123 = icmp eq i32 %122, 0
  br i1 %123, label %124, label %132

124:                                              ; preds = %115
  %125 = load ptr, ptr %10, align 8, !tbaa !5
  %126 = load i32, ptr %15, align 4, !tbaa !10
  %127 = call i32 @move_window(ptr noundef %125, i32 noundef %126)
  store i32 %127, ptr %8, align 4, !tbaa !10
  %128 = load i32, ptr %11, align 4, !tbaa !10
  %129 = sub i32 %128, 1
  %130 = load ptr, ptr %10, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.FATFS, ptr %130, i32 0, i32 8
  store i32 %129, ptr %131, align 4, !tbaa !21
  br label %132

132:                                              ; preds = %124, %115
  br label %133

133:                                              ; preds = %132, %89
  br label %134

134:                                              ; preds = %133, %84, %81
  br label %162

135:                                              ; preds = %47
  %136 = load i32, ptr %8, align 4, !tbaa !10
  %137 = icmp eq i32 %136, 0
  br i1 %137, label %138, label %161

138:                                              ; preds = %135
  %139 = getelementptr inbounds %struct.DIR, ptr %9, i32 0, i32 0
  %140 = getelementptr inbounds %struct.FFOBJID, ptr %139, i32 0, i32 2
  %141 = load i8, ptr %140, align 2, !tbaa !16
  %142 = zext i8 %141 to i32
  %143 = and i32 %142, 16
  %144 = icmp ne i32 %143, 0
  br i1 %144, label %145, label %146

145:                                              ; preds = %138
  store i32 4, ptr %8, align 4, !tbaa !10
  br label %160

146:                                              ; preds = %138
  %147 = load i8, ptr %7, align 1, !tbaa !9
  %148 = zext i8 %147 to i32
  %149 = and i32 %148, 2
  %150 = icmp ne i32 %149, 0
  br i1 %150, label %151, label %159

151:                                              ; preds = %146
  %152 = getelementptr inbounds %struct.DIR, ptr %9, i32 0, i32 0
  %153 = getelementptr inbounds %struct.FFOBJID, ptr %152, i32 0, i32 2
  %154 = load i8, ptr %153, align 2, !tbaa !16
  %155 = zext i8 %154 to i32
  %156 = and i32 %155, 1
  %157 = icmp ne i32 %156, 0
  br i1 %157, label %158, label %159

158:                                              ; preds = %151
  store i32 7, ptr %8, align 4, !tbaa !10
  br label %159

159:                                              ; preds = %158, %151, %146
  br label %160

160:                                              ; preds = %159, %145
  br label %161

161:                                              ; preds = %160, %135
  br label %162

162:                                              ; preds = %161, %134
  %163 = load i32, ptr %8, align 4, !tbaa !10
  %164 = icmp eq i32 %163, 0
  br i1 %164, label %165, label %185

165:                                              ; preds = %162
  %166 = load i8, ptr %7, align 1, !tbaa !9
  %167 = zext i8 %166 to i32
  %168 = and i32 %167, 8
  %169 = icmp ne i32 %168, 0
  br i1 %169, label %170, label %175

170:                                              ; preds = %165
  %171 = load i8, ptr %7, align 1, !tbaa !9
  %172 = zext i8 %171 to i32
  %173 = or i32 %172, 64
  %174 = trunc i32 %173 to i8
  store i8 %174, ptr %7, align 1, !tbaa !9
  br label %175

175:                                              ; preds = %170, %165
  %176 = load ptr, ptr %10, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.FATFS, ptr %176, i32 0, i32 17
  %178 = load i32, ptr %177, align 4, !tbaa !20
  %179 = load ptr, ptr %5, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.FIL, ptr %179, i32 0, i32 6
  store i32 %178, ptr %180, align 8, !tbaa !22
  %181 = getelementptr inbounds %struct.DIR, ptr %9, i32 0, i32 4
  %182 = load ptr, ptr %181, align 8, !tbaa !17
  %183 = load ptr, ptr %5, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.FIL, ptr %183, i32 0, i32 7
  store ptr %182, ptr %184, align 8, !tbaa !24
  br label %185

185:                                              ; preds = %175, %162
  %186 = load i32, ptr %8, align 4, !tbaa !10
  %187 = icmp eq i32 %186, 0
  br i1 %187, label %188, label %321

188:                                              ; preds = %185
  %189 = load ptr, ptr %10, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.DIR, ptr %9, i32 0, i32 4
  %191 = load ptr, ptr %190, align 8, !tbaa !17
  %192 = call i32 @ld_clust(ptr noundef %189, ptr noundef %191)
  %193 = load ptr, ptr %5, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.FIL, ptr %193, i32 0, i32 0
  %195 = getelementptr inbounds %struct.FFOBJID, ptr %194, i32 0, i32 4
  store i32 %192, ptr %195, align 4, !tbaa !25
  %196 = getelementptr inbounds %struct.DIR, ptr %9, i32 0, i32 4
  %197 = load ptr, ptr %196, align 8, !tbaa !17
  %198 = getelementptr inbounds i8, ptr %197, i64 28
  %199 = call i32 @ld_dword(ptr noundef %198)
  %200 = load ptr, ptr %5, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.FIL, ptr %200, i32 0, i32 0
  %202 = getelementptr inbounds %struct.FFOBJID, ptr %201, i32 0, i32 5
  store i32 %199, ptr %202, align 8, !tbaa !26
  %203 = load ptr, ptr %10, align 8, !tbaa !5
  %204 = load ptr, ptr %5, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.FIL, ptr %204, i32 0, i32 0
  %206 = getelementptr inbounds %struct.FFOBJID, ptr %205, i32 0, i32 0
  store ptr %203, ptr %206, align 8, !tbaa !27
  %207 = load ptr, ptr %10, align 8, !tbaa !5
  %208 = getelementptr inbounds %struct.FATFS, ptr %207, i32 0, i32 5
  %209 = load i16, ptr %208, align 2, !tbaa !28
  %210 = load ptr, ptr %5, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.FIL, ptr %210, i32 0, i32 0
  %212 = getelementptr inbounds %struct.FFOBJID, ptr %211, i32 0, i32 1
  store i16 %209, ptr %212, align 8, !tbaa !29
  %213 = load i8, ptr %7, align 1, !tbaa !9
  %214 = load ptr, ptr %5, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.FIL, ptr %214, i32 0, i32 1
  store i8 %213, ptr %215, align 8, !tbaa !30
  %216 = load ptr, ptr %5, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.FIL, ptr %216, i32 0, i32 2
  store i8 0, ptr %217, align 1, !tbaa !31
  %218 = load ptr, ptr %5, align 8, !tbaa !5
  %219 = getelementptr inbounds %struct.FIL, ptr %218, i32 0, i32 5
  store i32 0, ptr %219, align 4, !tbaa !32
  %220 = load ptr, ptr %5, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.FIL, ptr %220, i32 0, i32 3
  store i32 0, ptr %221, align 4, !tbaa !33
  %222 = load ptr, ptr %5, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.FIL, ptr %222, i32 0, i32 8
  %224 = getelementptr inbounds [512 x i8], ptr %223, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 8 %224, i8 0, i64 512, i1 false)
  %225 = load i8, ptr %7, align 1, !tbaa !9
  %226 = zext i8 %225 to i32
  %227 = and i32 %226, 32
  %228 = icmp ne i32 %227, 0
  br i1 %228, label %229, label %320

229:                                              ; preds = %188
  %230 = load ptr, ptr %5, align 8, !tbaa !5
  %231 = getelementptr inbounds %struct.FIL, ptr %230, i32 0, i32 0
  %232 = getelementptr inbounds %struct.FFOBJID, ptr %231, i32 0, i32 5
  %233 = load i32, ptr %232, align 8, !tbaa !26
  %234 = icmp ugt i32 %233, 0
  br i1 %234, label %235, label %320

235:                                              ; preds = %229
  %236 = load ptr, ptr %5, align 8, !tbaa !5
  %237 = getelementptr inbounds %struct.FIL, ptr %236, i32 0, i32 0
  %238 = getelementptr inbounds %struct.FFOBJID, ptr %237, i32 0, i32 5
  %239 = load i32, ptr %238, align 8, !tbaa !26
  %240 = load ptr, ptr %5, align 8, !tbaa !5
  %241 = getelementptr inbounds %struct.FIL, ptr %240, i32 0, i32 3
  store i32 %239, ptr %241, align 4, !tbaa !33
  %242 = load ptr, ptr %10, align 8, !tbaa !5
  %243 = getelementptr inbounds %struct.FATFS, ptr %242, i32 0, i32 7
  %244 = load i16, ptr %243, align 2, !tbaa !34
  %245 = zext i16 %244 to i32
  %246 = mul i32 %245, 512
  store i32 %246, ptr %12, align 4, !tbaa !10
  %247 = load ptr, ptr %5, align 8, !tbaa !5
  %248 = getelementptr inbounds %struct.FIL, ptr %247, i32 0, i32 0
  %249 = getelementptr inbounds %struct.FFOBJID, ptr %248, i32 0, i32 4
  %250 = load i32, ptr %249, align 4, !tbaa !25
  store i32 %250, ptr %13, align 4, !tbaa !10
  %251 = load ptr, ptr %5, align 8, !tbaa !5
  %252 = getelementptr inbounds %struct.FIL, ptr %251, i32 0, i32 0
  %253 = getelementptr inbounds %struct.FFOBJID, ptr %252, i32 0, i32 5
  %254 = load i32, ptr %253, align 8, !tbaa !26
  store i32 %254, ptr %16, align 4, !tbaa !10
  br label %255

255:                                              ; preds = %277, %235
  %256 = load i32, ptr %8, align 4, !tbaa !10
  %257 = icmp eq i32 %256, 0
  br i1 %257, label %258, label %262

258:                                              ; preds = %255
  %259 = load i32, ptr %16, align 4, !tbaa !10
  %260 = load i32, ptr %12, align 4, !tbaa !10
  %261 = icmp ugt i32 %259, %260
  br label %262

262:                                              ; preds = %258, %255
  %263 = phi i1 [ false, %255 ], [ %261, %258 ]
  br i1 %263, label %264, label %281

264:                                              ; preds = %262
  %265 = load ptr, ptr %5, align 8, !tbaa !5
  %266 = getelementptr inbounds %struct.FIL, ptr %265, i32 0, i32 0
  %267 = load i32, ptr %13, align 4, !tbaa !10
  %268 = call i32 @get_fat(ptr noundef %266, i32 noundef %267)
  store i32 %268, ptr %13, align 4, !tbaa !10
  %269 = load i32, ptr %13, align 4, !tbaa !10
  %270 = icmp ule i32 %269, 1
  br i1 %270, label %271, label %272

271:                                              ; preds = %264
  store i32 2, ptr %8, align 4, !tbaa !10
  br label %272

272:                                              ; preds = %271, %264
  %273 = load i32, ptr %13, align 4, !tbaa !10
  %274 = icmp eq i32 %273, -1
  br i1 %274, label %275, label %276

275:                                              ; preds = %272
  store i32 1, ptr %8, align 4, !tbaa !10
  br label %276

276:                                              ; preds = %275, %272
  br label %277

277:                                              ; preds = %276
  %278 = load i32, ptr %12, align 4, !tbaa !10
  %279 = load i32, ptr %16, align 4, !tbaa !10
  %280 = sub i32 %279, %278
  store i32 %280, ptr %16, align 4, !tbaa !10
  br label %255, !llvm.loop !35

281:                                              ; preds = %262
  %282 = load i32, ptr %13, align 4, !tbaa !10
  %283 = load ptr, ptr %5, align 8, !tbaa !5
  %284 = getelementptr inbounds %struct.FIL, ptr %283, i32 0, i32 4
  store i32 %282, ptr %284, align 8, !tbaa !37
  %285 = load i32, ptr %8, align 4, !tbaa !10
  %286 = icmp eq i32 %285, 0
  br i1 %286, label %287, label %319

287:                                              ; preds = %281
  %288 = load i32, ptr %16, align 4, !tbaa !10
  %289 = urem i32 %288, 512
  %290 = icmp ne i32 %289, 0
  br i1 %290, label %291, label %319

291:                                              ; preds = %287
  %292 = load ptr, ptr %10, align 8, !tbaa !5
  %293 = load i32, ptr %13, align 4, !tbaa !10
  %294 = call i32 @clst2sect(ptr noundef %292, i32 noundef %293)
  store i32 %294, ptr %15, align 4, !tbaa !10
  %295 = load i32, ptr %15, align 4, !tbaa !10
  %296 = icmp eq i32 %295, 0
  br i1 %296, label %297, label %298

297:                                              ; preds = %291
  store i32 2, ptr %8, align 4, !tbaa !10
  br label %318

298:                                              ; preds = %291
  %299 = load i32, ptr %15, align 4, !tbaa !10
  %300 = load i32, ptr %16, align 4, !tbaa !10
  %301 = udiv i32 %300, 512
  %302 = add i32 %299, %301
  %303 = load ptr, ptr %5, align 8, !tbaa !5
  %304 = getelementptr inbounds %struct.FIL, ptr %303, i32 0, i32 5
  store i32 %302, ptr %304, align 4, !tbaa !32
  %305 = load ptr, ptr %10, align 8, !tbaa !5
  %306 = getelementptr inbounds %struct.FATFS, ptr %305, i32 0, i32 1
  %307 = load i8, ptr %306, align 1, !tbaa !38
  %308 = load ptr, ptr %5, align 8, !tbaa !5
  %309 = getelementptr inbounds %struct.FIL, ptr %308, i32 0, i32 8
  %310 = getelementptr inbounds [512 x i8], ptr %309, i64 0, i64 0
  %311 = load ptr, ptr %5, align 8, !tbaa !5
  %312 = getelementptr inbounds %struct.FIL, ptr %311, i32 0, i32 5
  %313 = load i32, ptr %312, align 4, !tbaa !32
  %314 = call i32 @disk_read(i8 noundef zeroext %307, ptr noundef %310, i32 noundef %313, i32 noundef 1)
  %315 = icmp ne i32 %314, 0
  br i1 %315, label %316, label %317

316:                                              ; preds = %298
  store i32 1, ptr %8, align 4, !tbaa !10
  br label %317

317:                                              ; preds = %316, %298
  br label %318

318:                                              ; preds = %317, %297
  br label %319

319:                                              ; preds = %318, %287, %281
  br label %320

320:                                              ; preds = %319, %229, %188
  br label %321

321:                                              ; preds = %320, %185
  br label %322

322:                                              ; preds = %321, %21
  %323 = load i32, ptr %8, align 4, !tbaa !10
  %324 = icmp ne i32 %323, 0
  br i1 %324, label %325, label %329

325:                                              ; preds = %322
  %326 = load ptr, ptr %5, align 8, !tbaa !5
  %327 = getelementptr inbounds %struct.FIL, ptr %326, i32 0, i32 0
  %328 = getelementptr inbounds %struct.FFOBJID, ptr %327, i32 0, i32 0
  store ptr null, ptr %328, align 8, !tbaa !27
  br label %329

329:                                              ; preds = %325, %322
  %330 = load i32, ptr %8, align 4, !tbaa !10
  store i32 %330, ptr %4, align 4
  store i32 1, ptr %17, align 4
  br label %331

331:                                              ; preds = %329, %20
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 72, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  %332 = load i32, ptr %4, align 4
  ret i32 %332
}

; Function Attrs: nounwind uwtable
declare hidden i32 @follow_path(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare hidden i32 @dir_register(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare hidden void @st_dword(ptr noundef, i32 noundef) #1

; Function Attrs: nounwind uwtable
declare hidden i32 @ld_clust(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare hidden void @st_clust(ptr noundef, ptr noundef, i32 noundef) #1

; Function Attrs: nounwind uwtable
declare hidden i32 @remove_chain(ptr noundef, i32 noundef, i32 noundef) #1

; Function Attrs: nounwind uwtable
declare hidden i32 @move_window(ptr noundef, i32 noundef) #1

; Function Attrs: nounwind uwtable
declare hidden i32 @ld_dword(ptr noundef) #1

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

; Function Attrs: nounwind uwtable
declare hidden i32 @get_fat(ptr noundef, i32 noundef) #1

; Function Attrs: nounwind uwtable
declare hidden i32 @clst2sect(ptr noundef, i32 noundef) #1

declare i32 @disk_read(i8 noundef zeroext, ptr noundef, i32 noundef, i32 noundef) #3

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

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

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


; 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.DIR = type { %struct.FFOBJID, i32, i32, i32, ptr, [12 x i8], ptr }
%struct.FFOBJID = type { ptr, i16, i8, i8, i32, i32 }

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

; Function Attrs: nounwind uwtable
declare hidden i32 @mount_volume(ptr noundef, ptr noundef, i8 noundef zeroext) local_unnamed_addr #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: nounwind uwtable
define dso_local i32 @f_open(ptr noundef %0, ptr noundef %1, i8 noundef zeroext %2) local_unnamed_addr #1 {
  %4 = alloca ptr, align 8
  %5 = alloca %struct.DIR, align 8
  %6 = alloca ptr, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %5) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #4
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %select.unfold126, label %7

7:                                                ; preds = %3
  %8 = and i8 %2, 63
  %9 = call i32 @mount_volume(ptr noundef nonnull %4, ptr noundef nonnull %6, i8 noundef zeroext %8)
  %10 = icmp eq i32 %9, 0
  br i1 %10, label %11, label %.thread123

11:                                               ; preds = %7
  %12 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %12, ptr %5, align 8, !tbaa !9
  %13 = load ptr, ptr %4, align 8, !tbaa !5
  %14 = call i32 @follow_path(ptr noundef nonnull %5, ptr noundef %13)
  %15 = icmp eq i32 %14, 0
  %16 = getelementptr inbounds i8, ptr %5, i64 59
  %17 = load i8, ptr %16, align 1
  %.not82 = icmp sgt i8 %17, -1
  %spec.select = select i1 %.not82, i32 0, i32 6
  %.069 = select i1 %15, i32 %spec.select, i32 %14
  %18 = zext nneg i8 %8 to i32
  %19 = and i32 %18, 28
  %.not83 = icmp eq i32 %19, 0
  br i1 %.not83, label %55, label %20

20:                                               ; preds = %11
  switch i32 %.069, label %29 [
    i32 0, label %23
    i32 4, label %21
  ]

21:                                               ; preds = %20
  %22 = call i32 @dir_register(ptr noundef nonnull %5)
  br label %29

23:                                               ; preds = %20
  %24 = getelementptr inbounds i8, ptr %5, i64 10
  %25 = load i8, ptr %24, align 2, !tbaa !14
  %26 = and i8 %25, 17
  %.not88 = icmp eq i8 %26, 0
  br i1 %.not88, label %27, label %.thread123

27:                                               ; preds = %23
  %28 = and i32 %18, 4
  %.not89 = icmp eq i32 %28, 0
  br i1 %.not89, label %.thread105, label %.thread123

29:                                               ; preds = %21, %20
  %.170 = phi i32 [ %22, %21 ], [ %.069, %20 ]
  %30 = or i8 %8, 8
  %31 = icmp eq i32 %.170, 0
  br i1 %31, label %.thread105, label %.thread123

.thread105:                                       ; preds = %27, %29
  %.068108 = phi i8 [ %30, %29 ], [ %8, %27 ]
  %32 = and i8 %.068108, 8
  %.not90 = icmp eq i8 %32, 0
  br i1 %.not90, label %.thread117, label %33

33:                                               ; preds = %.thread105
  %34 = getelementptr inbounds i8, ptr %5, i64 40
  %35 = load ptr, ptr %34, align 8, !tbaa !15
  %36 = getelementptr inbounds i8, ptr %35, i64 14
  call void @st_dword(ptr noundef nonnull %36, i32 noundef 1344339968)
  %37 = load ptr, ptr %34, align 8, !tbaa !15
  %38 = getelementptr inbounds i8, ptr %37, i64 22
  call void @st_dword(ptr noundef nonnull %38, i32 noundef 1344339968)
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  %40 = load ptr, ptr %34, align 8, !tbaa !15
  %41 = call i32 @ld_clust(ptr noundef %39, ptr noundef %40)
  %42 = load ptr, ptr %34, align 8, !tbaa !15
  %43 = getelementptr inbounds i8, ptr %42, i64 11
  store i8 32, ptr %43, align 1, !tbaa !16
  %44 = load ptr, ptr %6, align 8, !tbaa !5
  %45 = load ptr, ptr %34, align 8, !tbaa !15
  call void @st_clust(ptr noundef %44, ptr noundef %45, i32 noundef 0)
  %46 = load ptr, ptr %34, align 8, !tbaa !15
  %47 = getelementptr inbounds i8, ptr %46, i64 28
  call void @st_dword(ptr noundef nonnull %47, i32 noundef 0)
  %48 = load ptr, ptr %6, align 8, !tbaa !5
  %49 = getelementptr inbounds i8, ptr %48, i64 3
  store i8 1, ptr %49, align 1, !tbaa !17
  %.not91 = icmp eq i32 %41, 0
  br i1 %.not91, label %.thread117, label %50

50:                                               ; preds = %33
  %51 = getelementptr inbounds i8, ptr %48, i64 48
  %52 = load i32, ptr %51, align 4, !tbaa !19
  %53 = call i32 @remove_chain(ptr noundef nonnull %5, i32 noundef %41, i32 noundef 0)
  %54 = icmp eq i32 %53, 0
  br i1 %54, label %65, label %.thread123

55:                                               ; preds = %11
  %56 = select i1 %15, i1 %.not82, i1 false
  br i1 %56, label %57, label %.thread123

57:                                               ; preds = %55
  %58 = getelementptr inbounds i8, ptr %5, i64 10
  %59 = load i8, ptr %58, align 2, !tbaa !14
  %60 = zext i8 %59 to i32
  %61 = and i32 %60, 16
  %.not84 = icmp eq i32 %61, 0
  br i1 %.not84, label %62, label %.thread123

62:                                               ; preds = %57
  %63 = and i32 %18, 2
  %.not85 = icmp eq i32 %63, 0
  %64 = and i32 %60, 1
  %.not86 = icmp eq i32 %64, 0
  %or.cond = or i1 %.not85, %.not86
  br i1 %or.cond, label %.thread117, label %.thread123

65:                                               ; preds = %50
  %66 = load ptr, ptr %6, align 8, !tbaa !5
  %67 = call i32 @move_window(ptr noundef %66, i32 noundef %52)
  %68 = add i32 %41, -1
  %69 = load ptr, ptr %6, align 8, !tbaa !5
  %70 = getelementptr inbounds i8, ptr %69, i64 12
  store i32 %68, ptr %70, align 4, !tbaa !20
  %71 = icmp eq i32 %67, 0
  br i1 %71, label %.thread117, label %.thread123

.thread117:                                       ; preds = %62, %.thread105, %33, %65
  %.1121 = phi i8 [ %.068108, %65 ], [ %.068108, %.thread105 ], [ %.068108, %33 ], [ %8, %62 ]
  %72 = shl i8 %.1121, 3
  %73 = and i8 %72, 64
  %spec.select99 = or i8 %73, %.1121
  %74 = load ptr, ptr %6, align 8, !tbaa !5
  %75 = getelementptr inbounds i8, ptr %74, i64 48
  %76 = load i32, ptr %75, align 4, !tbaa !19
  %77 = getelementptr inbounds i8, ptr %0, i64 40
  store i32 %76, ptr %77, align 8, !tbaa !21
  %78 = getelementptr inbounds i8, ptr %5, i64 40
  %79 = load ptr, ptr %78, align 8, !tbaa !15
  %80 = getelementptr inbounds i8, ptr %0, i64 48
  store ptr %79, ptr %80, align 8, !tbaa !23
  %81 = call i32 @ld_clust(ptr noundef %74, ptr noundef %79)
  %82 = getelementptr inbounds i8, ptr %0, i64 12
  store i32 %81, ptr %82, align 4, !tbaa !24
  %83 = load ptr, ptr %78, align 8, !tbaa !15
  %84 = getelementptr inbounds i8, ptr %83, i64 28
  %85 = call i32 @ld_dword(ptr noundef nonnull %84)
  %86 = getelementptr inbounds i8, ptr %0, i64 16
  store i32 %85, ptr %86, align 8, !tbaa !25
  %87 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %87, ptr %0, align 8, !tbaa !26
  %88 = getelementptr inbounds i8, ptr %87, i64 6
  %89 = load i16, ptr %88, align 2, !tbaa !27
  %90 = getelementptr inbounds i8, ptr %0, i64 8
  store i16 %89, ptr %90, align 8, !tbaa !28
  %91 = getelementptr inbounds i8, ptr %0, i64 24
  store i8 %spec.select99, ptr %91, align 8, !tbaa !29
  %92 = getelementptr inbounds i8, ptr %0, i64 25
  store i8 0, ptr %92, align 1, !tbaa !30
  %93 = getelementptr inbounds i8, ptr %0, i64 36
  store i32 0, ptr %93, align 4, !tbaa !31
  %94 = getelementptr inbounds i8, ptr %0, i64 28
  store i32 0, ptr %94, align 4, !tbaa !32
  %95 = getelementptr inbounds i8, ptr %0, i64 56
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(512) %95, i8 0, i64 512, i1 false)
  %96 = and i8 %.1121, 32
  %.not93 = icmp eq i8 %96, 0
  %.not94 = icmp eq i32 %85, 0
  %or.cond132 = select i1 %.not93, i1 true, i1 %.not94
  br i1 %or.cond132, label %select.unfold126, label %97

97:                                               ; preds = %.thread117
  store i32 %85, ptr %94, align 4, !tbaa !32
  %98 = getelementptr inbounds i8, ptr %87, i64 10
  %99 = load i16, ptr %98, align 2, !tbaa !33
  %100 = zext i16 %99 to i32
  %101 = shl nuw nsw i32 %100, 9
  %102 = load i32, ptr %82, align 4, !tbaa !24
  %103 = icmp ugt i32 %85, %101
  br i1 %103, label %.lr.ph, label %._crit_edge.thread

._crit_edge.thread:                               ; preds = %97
  %104 = getelementptr inbounds i8, ptr %0, i64 32
  store i32 %102, ptr %104, align 8, !tbaa !34
  br label %113

.lr.ph:                                           ; preds = %97, %.lr.ph
  %.0134 = phi i32 [ %108, %.lr.ph ], [ %85, %97 ]
  %.067133 = phi i32 [ %105, %.lr.ph ], [ %102, %97 ]
  %105 = call i32 @get_fat(ptr noundef nonnull %0, i32 noundef %.067133)
  %106 = icmp ult i32 %105, 2
  %spec.select100 = select i1 %106, i32 2, i32 0
  %107 = icmp eq i32 %105, -1
  %.6 = select i1 %107, i32 1, i32 %spec.select100
  %108 = sub i32 %.0134, %101
  %109 = icmp eq i32 %.6, 0
  %110 = icmp ugt i32 %108, %101
  %111 = select i1 %109, i1 %110, i1 false
  br i1 %111, label %.lr.ph, label %._crit_edge, !llvm.loop !35

._crit_edge:                                      ; preds = %.lr.ph
  %112 = getelementptr inbounds i8, ptr %0, i64 32
  store i32 %105, ptr %112, align 8, !tbaa !34
  br i1 %109, label %113, label %.thread123

113:                                              ; preds = %._crit_edge.thread, %._crit_edge
  %.0.lcssa146 = phi i32 [ %85, %._crit_edge.thread ], [ %108, %._crit_edge ]
  %.067.lcssa145 = phi i32 [ %102, %._crit_edge.thread ], [ %105, %._crit_edge ]
  %114 = and i32 %.0.lcssa146, 511
  %.not95 = icmp eq i32 %114, 0
  br i1 %.not95, label %select.unfold126, label %115

115:                                              ; preds = %113
  %116 = load ptr, ptr %6, align 8, !tbaa !5
  %117 = call i32 @clst2sect(ptr noundef %116, i32 noundef %.067.lcssa145)
  %118 = icmp eq i32 %117, 0
  br i1 %118, label %.thread123, label %119

119:                                              ; preds = %115
  %120 = lshr i32 %.0.lcssa146, 9
  %121 = add i32 %117, %120
  store i32 %121, ptr %93, align 4, !tbaa !31
  %122 = load ptr, ptr %6, align 8, !tbaa !5
  %123 = getelementptr inbounds i8, ptr %122, i64 1
  %124 = load i8, ptr %123, align 1, !tbaa !37
  %125 = call i32 @disk_read(i8 noundef zeroext %124, ptr noundef nonnull %95, i32 noundef %121, i32 noundef 1) #4
  %.not96 = icmp eq i32 %125, 0
  br i1 %.not96, label %select.unfold126, label %.thread123

.thread123:                                       ; preds = %27, %23, %62, %57, %55, %29, %50, %65, %._crit_edge, %7, %115, %119
  %.7.ph = phi i32 [ 1, %119 ], [ 2, %115 ], [ %9, %7 ], [ %.6, %._crit_edge ], [ %67, %65 ], [ 7, %62 ], [ 4, %57 ], [ %.069, %55 ], [ %.170, %29 ], [ %53, %50 ], [ 8, %27 ], [ 7, %23 ]
  store ptr null, ptr %0, align 8, !tbaa !26
  br label %select.unfold126

select.unfold126:                                 ; preds = %119, %.thread117, %113, %.thread123, %3
  %.066 = phi i32 [ 9, %3 ], [ %.7.ph, %.thread123 ], [ 0, %113 ], [ 0, %.thread117 ], [ 0, %119 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %5) #4
  ret i32 %.066
}

; Function Attrs: nounwind uwtable
declare hidden i32 @follow_path(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden i32 @dir_register(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden void @st_dword(ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden i32 @ld_clust(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden void @st_clust(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden i32 @remove_chain(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden i32 @move_window(ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden i32 @ld_dword(ptr noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
declare hidden i32 @get_fat(ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden i32 @clst2sect(ptr noundef, i32 noundef) local_unnamed_addr #1

declare i32 @disk_read(i8 noundef zeroext, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

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

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

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


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