; LLVM IR from carlk3/no-OS-FatFS-SD-SDIO-SPI-RPi-Pico :: src/ff15/source (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, i64, ptr, [12 x i8], i32, ptr }
%struct.FFOBJID = type { ptr, i16, i8, i8, i32, i64, i32, i32, i32, i32, i32, i32 }
%struct.FATFS = type { i8, i8, i8, i8, i8, i8, i16, i16, i16, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i64, i64, i64, i64, i64, i64, [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 @get_ldnumber(ptr noundef) #1

; 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

declare ptr @ff_memalloc(i32 noundef) #2

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

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

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

; Function Attrs: nounwind uwtable
declare hidden i32 @store_xdir(ptr 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 @move_window(ptr noundef, i64 noundef) #1

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

declare void @ff_memfree(ptr noundef) #2

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

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

; Function Attrs: nounwind uwtable
declare hidden void @st_word(ptr noundef, i16 noundef zeroext) #1

; Function Attrs: nounwind uwtable
declare hidden zeroext i16 @ld_word(ptr noundef) #1

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

; Function Attrs: nounwind uwtable
define dso_local i32 @f_rename(ptr noundef %0, ptr noundef %1) #1 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca %struct.DIR, align 8
  %9 = alloca %struct.DIR, align 8
  %10 = alloca [64 x i8], align 16
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i8, align 1
  %16 = alloca i8, align 1
  %17 = alloca i16, align 2
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 96, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 96, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %18 = call i32 @get_ldnumber(ptr noundef %5)
  %19 = call i32 @mount_volume(ptr noundef %4, ptr noundef %7, i8 noundef zeroext 2)
  store i32 %19, ptr %6, align 4, !tbaa !9
  %20 = load i32, ptr %6, align 4, !tbaa !9
  %21 = icmp eq i32 %20, 0
  br i1 %21, label %22, label %281

22:                                               ; preds = %2
  %23 = load ptr, ptr %7, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.DIR, ptr %8, i32 0, i32 0
  %25 = getelementptr inbounds %struct.FFOBJID, ptr %24, i32 0, i32 0
  store ptr %23, ptr %25, align 8, !tbaa !11
  %26 = call ptr @ff_memalloc(i32 noundef 1120)
  store ptr %26, ptr %13, align 8, !tbaa !5
  %27 = load ptr, ptr %13, align 8, !tbaa !5
  %28 = icmp ne ptr %27, null
  br i1 %28, label %30, label %29

29:                                               ; preds = %22
  store i32 17, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %283

30:                                               ; preds = %22
  %31 = load ptr, ptr %13, align 8, !tbaa !5
  %32 = load ptr, ptr %7, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.FATFS, ptr %32, i32 0, i32 9
  store ptr %31, ptr %33, align 8, !tbaa !16
  %34 = load ptr, ptr %13, align 8, !tbaa !5
  %35 = getelementptr inbounds i16, ptr %34, i64 255
  %36 = getelementptr inbounds i16, ptr %35, i64 1
  %37 = load ptr, ptr %7, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.FATFS, ptr %37, i32 0, i32 10
  store ptr %36, ptr %38, align 8, !tbaa !18
  %39 = load ptr, ptr %4, align 8, !tbaa !5
  %40 = call i32 @follow_path(ptr noundef %8, ptr noundef %39)
  store i32 %40, ptr %6, align 4, !tbaa !9
  %41 = load i32, ptr %6, align 4, !tbaa !9
  %42 = icmp eq i32 %41, 0
  br i1 %42, label %43, label %51

43:                                               ; preds = %30
  %44 = getelementptr inbounds %struct.DIR, ptr %8, i32 0, i32 5
  %45 = getelementptr inbounds [12 x i8], ptr %44, i64 0, i64 11
  %46 = load i8, ptr %45, align 1, !tbaa !19
  %47 = zext i8 %46 to i32
  %48 = and i32 %47, 160
  %49 = icmp ne i32 %48, 0
  br i1 %49, label %50, label %51

50:                                               ; preds = %43
  store i32 6, ptr %6, align 4, !tbaa !9
  br label %51

51:                                               ; preds = %50, %43, %30
  %52 = load i32, ptr %6, align 4, !tbaa !9
  %53 = icmp eq i32 %52, 0
  br i1 %53, label %54, label %56

54:                                               ; preds = %51
  %55 = call i32 @chk_share(ptr noundef %8, i32 noundef 2)
  store i32 %55, ptr %6, align 4, !tbaa !9
  br label %56

56:                                               ; preds = %54, %51
  %57 = load i32, ptr %6, align 4, !tbaa !9
  %58 = icmp eq i32 %57, 0
  br i1 %58, label %59, label %279

59:                                               ; preds = %56
  %60 = load ptr, ptr %7, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.FATFS, ptr %60, i32 0, i32 0
  %62 = load i8, ptr %61, align 8, !tbaa !20
  %63 = zext i8 %62 to i32
  %64 = icmp eq i32 %63, 4
  br i1 %64, label %65, label %155

65:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 2, ptr %17) #4
  %66 = getelementptr inbounds [64 x i8], ptr %10, i64 0, i64 0
  %67 = load ptr, ptr %7, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.FATFS, ptr %67, i32 0, i32 10
  %69 = load ptr, ptr %68, align 8, !tbaa !18
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %66, ptr align 1 %69, i64 64, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %9, ptr align 8 %8, i64 96, i1 false)
  %70 = load ptr, ptr %5, align 8, !tbaa !5
  %71 = call i32 @follow_path(ptr noundef %9, ptr noundef %70)
  store i32 %71, ptr %6, align 4, !tbaa !9
  %72 = load i32, ptr %6, align 4, !tbaa !9
  %73 = icmp eq i32 %72, 0
  br i1 %73, label %74, label %92

74:                                               ; preds = %65
  %75 = getelementptr inbounds %struct.DIR, ptr %9, i32 0, i32 0
  %76 = getelementptr inbounds %struct.FFOBJID, ptr %75, i32 0, i32 4
  %77 = load i32, ptr %76, align 4, !tbaa !21
  %78 = getelementptr inbounds %struct.DIR, ptr %8, i32 0, i32 0
  %79 = getelementptr inbounds %struct.FFOBJID, ptr %78, i32 0, i32 4
  %80 = load i32, ptr %79, align 4, !tbaa !21
  %81 = icmp eq i32 %77, %80
  br i1 %81, label %82, label %88

82:                                               ; preds = %74
  %83 = getelementptr inbounds %struct.DIR, ptr %9, i32 0, i32 1
  %84 = load i32, ptr %83, align 8, !tbaa !22
  %85 = getelementptr inbounds %struct.DIR, ptr %8, i32 0, i32 1
  %86 = load i32, ptr %85, align 8, !tbaa !22
  %87 = icmp eq i32 %84, %86
  br label %88

88:                                               ; preds = %82, %74
  %89 = phi i1 [ false, %74 ], [ %87, %82 ]
  %90 = zext i1 %89 to i64
  %91 = select i1 %89, i32 4, i32 8
  store i32 %91, ptr %6, align 4, !tbaa !9
  br label %92

92:                                               ; preds = %88, %65
  %93 = load i32, ptr %6, align 4, !tbaa !9
  %94 = icmp eq i32 %93, 4
  br i1 %94, label %95, label %154

95:                                               ; preds = %92
  %96 = call i32 @dir_register(ptr noundef %9)
  store i32 %96, ptr %6, align 4, !tbaa !9
  %97 = load i32, ptr %6, align 4, !tbaa !9
  %98 = icmp eq i32 %97, 0
  br i1 %98, label %99, label %153

99:                                               ; preds = %95
  %100 = load ptr, ptr %7, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.FATFS, ptr %100, i32 0, i32 10
  %102 = load ptr, ptr %101, align 8, !tbaa !18
  %103 = getelementptr inbounds i8, ptr %102, i64 1
  %104 = load i8, ptr %103, align 1, !tbaa !19
  store i8 %104, ptr %15, align 1, !tbaa !19
  %105 = load ptr, ptr %7, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.FATFS, ptr %105, i32 0, i32 10
  %107 = load ptr, ptr %106, align 8, !tbaa !18
  %108 = getelementptr inbounds i8, ptr %107, i64 35
  %109 = load i8, ptr %108, align 1, !tbaa !19
  store i8 %109, ptr %16, align 1, !tbaa !19
  %110 = load ptr, ptr %7, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.FATFS, ptr %110, i32 0, i32 10
  %112 = load ptr, ptr %111, align 8, !tbaa !18
  %113 = getelementptr inbounds i8, ptr %112, i64 36
  %114 = call zeroext i16 @ld_word(ptr noundef %113)
  store i16 %114, ptr %17, align 2, !tbaa !23
  %115 = load ptr, ptr %7, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.FATFS, ptr %115, i32 0, i32 10
  %117 = load ptr, ptr %116, align 8, !tbaa !18
  %118 = getelementptr inbounds [64 x i8], ptr %10, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %117, ptr align 16 %118, i64 64, i1 false)
  %119 = load i8, ptr %15, align 1, !tbaa !19
  %120 = load ptr, ptr %7, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.FATFS, ptr %120, i32 0, i32 10
  %122 = load ptr, ptr %121, align 8, !tbaa !18
  %123 = getelementptr inbounds i8, ptr %122, i64 1
  store i8 %119, ptr %123, align 1, !tbaa !19
  %124 = load i8, ptr %16, align 1, !tbaa !19
  %125 = load ptr, ptr %7, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.FATFS, ptr %125, i32 0, i32 10
  %127 = load ptr, ptr %126, align 8, !tbaa !18
  %128 = getelementptr inbounds i8, ptr %127, i64 35
  store i8 %124, ptr %128, align 1, !tbaa !19
  %129 = load ptr, ptr %7, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.FATFS, ptr %129, i32 0, i32 10
  %131 = load ptr, ptr %130, align 8, !tbaa !18
  %132 = getelementptr inbounds i8, ptr %131, i64 36
  %133 = load i16, ptr %17, align 2, !tbaa !23
  call void @st_word(ptr noundef %132, i16 noundef zeroext %133)
  %134 = load ptr, ptr %7, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.FATFS, ptr %134, i32 0, i32 10
  %136 = load ptr, ptr %135, align 8, !tbaa !18
  %137 = getelementptr inbounds i8, ptr %136, i64 4
  %138 = load i8, ptr %137, align 1, !tbaa !19
  %139 = zext i8 %138 to i32
  %140 = and i32 %139, 16
  %141 = icmp ne i32 %140, 0
  br i1 %141, label %151, label %142

142:                                              ; preds = %99
  %143 = load ptr, ptr %7, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.FATFS, ptr %143, i32 0, i32 10
  %145 = load ptr, ptr %144, align 8, !tbaa !18
  %146 = getelementptr inbounds i8, ptr %145, i64 4
  %147 = load i8, ptr %146, align 1, !tbaa !19
  %148 = zext i8 %147 to i32
  %149 = or i32 %148, 32
  %150 = trunc i32 %149 to i8
  store i8 %150, ptr %146, align 1, !tbaa !19
  br label %151

151:                                              ; preds = %142, %99
  %152 = call i32 @store_xdir(ptr noundef %9)
  store i32 %152, ptr %6, align 4, !tbaa !9
  br label %153

153:                                              ; preds = %151, %95
  br label %154

154:                                              ; preds = %153, %92
  call void @llvm.lifetime.end.p0(i64 2, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #4
  br label %267

155:                                              ; preds = %59
  %156 = getelementptr inbounds [64 x i8], ptr %10, i64 0, i64 0
  %157 = getelementptr inbounds %struct.DIR, ptr %8, i32 0, i32 4
  %158 = load ptr, ptr %157, align 8, !tbaa !24
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %156, ptr align 1 %158, i64 32, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %9, ptr align 8 %8, i64 96, i1 false)
  %159 = load ptr, ptr %5, align 8, !tbaa !5
  %160 = call i32 @follow_path(ptr noundef %9, ptr noundef %159)
  store i32 %160, ptr %6, align 4, !tbaa !9
  %161 = load i32, ptr %6, align 4, !tbaa !9
  %162 = icmp eq i32 %161, 0
  br i1 %162, label %163, label %181

163:                                              ; preds = %155
  %164 = getelementptr inbounds %struct.DIR, ptr %9, i32 0, i32 0
  %165 = getelementptr inbounds %struct.FFOBJID, ptr %164, i32 0, i32 4
  %166 = load i32, ptr %165, align 4, !tbaa !21
  %167 = getelementptr inbounds %struct.DIR, ptr %8, i32 0, i32 0
  %168 = getelementptr inbounds %struct.FFOBJID, ptr %167, i32 0, i32 4
  %169 = load i32, ptr %168, align 4, !tbaa !21
  %170 = icmp eq i32 %166, %169
  br i1 %170, label %171, label %177

171:                                              ; preds = %163
  %172 = getelementptr inbounds %struct.DIR, ptr %9, i32 0, i32 1
  %173 = load i32, ptr %172, align 8, !tbaa !22
  %174 = getelementptr inbounds %struct.DIR, ptr %8, i32 0, i32 1
  %175 = load i32, ptr %174, align 8, !tbaa !22
  %176 = icmp eq i32 %173, %175
  br label %177

177:                                              ; preds = %171, %163
  %178 = phi i1 [ false, %163 ], [ %176, %171 ]
  %179 = zext i1 %178 to i64
  %180 = select i1 %178, i32 4, i32 8
  store i32 %180, ptr %6, align 4, !tbaa !9
  br label %181

181:                                              ; preds = %177, %155
  %182 = load i32, ptr %6, align 4, !tbaa !9
  %183 = icmp eq i32 %182, 4
  br i1 %183, label %184, label %266

184:                                              ; preds = %181
  %185 = call i32 @dir_register(ptr noundef %9)
  store i32 %185, ptr %6, align 4, !tbaa !9
  %186 = load i32, ptr %6, align 4, !tbaa !9
  %187 = icmp eq i32 %186, 0
  br i1 %187, label %188, label %265

188:                                              ; preds = %184
  %189 = getelementptr inbounds %struct.DIR, ptr %9, i32 0, i32 4
  %190 = load ptr, ptr %189, align 8, !tbaa !24
  store ptr %190, ptr %11, align 8, !tbaa !5
  %191 = load ptr, ptr %11, align 8, !tbaa !5
  %192 = getelementptr inbounds i8, ptr %191, i64 13
  %193 = getelementptr inbounds [64 x i8], ptr %10, i64 0, i64 0
  %194 = getelementptr inbounds i8, ptr %193, i64 13
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %192, ptr align 1 %194, i64 19, i1 false)
  %195 = getelementptr inbounds [64 x i8], ptr %10, i64 0, i64 11
  %196 = load i8, ptr %195, align 1, !tbaa !19
  %197 = load ptr, ptr %11, align 8, !tbaa !5
  %198 = getelementptr inbounds i8, ptr %197, i64 11
  store i8 %196, ptr %198, align 1, !tbaa !19
  %199 = load ptr, ptr %11, align 8, !tbaa !5
  %200 = getelementptr inbounds i8, ptr %199, i64 11
  %201 = load i8, ptr %200, align 1, !tbaa !19
  %202 = zext i8 %201 to i32
  %203 = and i32 %202, 16
  %204 = icmp ne i32 %203, 0
  br i1 %204, label %212, label %205

205:                                              ; preds = %188
  %206 = load ptr, ptr %11, align 8, !tbaa !5
  %207 = getelementptr inbounds i8, ptr %206, i64 11
  %208 = load i8, ptr %207, align 1, !tbaa !19
  %209 = zext i8 %208 to i32
  %210 = or i32 %209, 32
  %211 = trunc i32 %210 to i8
  store i8 %211, ptr %207, align 1, !tbaa !19
  br label %212

212:                                              ; preds = %205, %188
  %213 = load ptr, ptr %7, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct.FATFS, ptr %213, i32 0, i32 4
  store i8 1, ptr %214, align 4, !tbaa !25
  %215 = load ptr, ptr %11, align 8, !tbaa !5
  %216 = getelementptr inbounds i8, ptr %215, i64 11
  %217 = load i8, ptr %216, align 1, !tbaa !19
  %218 = zext i8 %217 to i32
  %219 = and i32 %218, 16
  %220 = icmp ne i32 %219, 0
  br i1 %220, label %221, label %264

221:                                              ; preds = %212
  %222 = getelementptr inbounds %struct.DIR, ptr %8, i32 0, i32 0
  %223 = getelementptr inbounds %struct.FFOBJID, ptr %222, i32 0, i32 4
  %224 = load i32, ptr %223, align 4, !tbaa !21
  %225 = getelementptr inbounds %struct.DIR, ptr %9, i32 0, i32 0
  %226 = getelementptr inbounds %struct.FFOBJID, ptr %225, i32 0, i32 4
  %227 = load i32, ptr %226, align 4, !tbaa !21
  %228 = icmp ne i32 %224, %227
  br i1 %228, label %229, label %264

229:                                              ; preds = %221
  %230 = load ptr, ptr %7, align 8, !tbaa !5
  %231 = load ptr, ptr %7, align 8, !tbaa !5
  %232 = load ptr, ptr %11, align 8, !tbaa !5
  %233 = call i32 @ld_clust(ptr noundef %231, ptr noundef %232)
  %234 = call i64 @clst2sect(ptr noundef %230, i32 noundef %233)
  store i64 %234, ptr %12, align 8, !tbaa !26
  %235 = load i64, ptr %12, align 8, !tbaa !26
  %236 = icmp eq i64 %235, 0
  br i1 %236, label %237, label %238

237:                                              ; preds = %229
  store i32 2, ptr %6, align 4, !tbaa !9
  br label %263

238:                                              ; preds = %229
  %239 = load ptr, ptr %7, align 8, !tbaa !5
  %240 = load i64, ptr %12, align 8, !tbaa !26
  %241 = call i32 @move_window(ptr noundef %239, i64 noundef %240)
  store i32 %241, ptr %6, align 4, !tbaa !9
  %242 = load ptr, ptr %7, align 8, !tbaa !5
  %243 = getelementptr inbounds %struct.FATFS, ptr %242, i32 0, i32 25
  %244 = getelementptr inbounds [512 x i8], ptr %243, i64 0, i64 0
  %245 = getelementptr inbounds i8, ptr %244, i64 32
  store ptr %245, ptr %11, align 8, !tbaa !5
  %246 = load i32, ptr %6, align 4, !tbaa !9
  %247 = icmp eq i32 %246, 0
  br i1 %247, label %248, label %262

248:                                              ; preds = %238
  %249 = load ptr, ptr %11, align 8, !tbaa !5
  %250 = getelementptr inbounds i8, ptr %249, i64 1
  %251 = load i8, ptr %250, align 1, !tbaa !19
  %252 = zext i8 %251 to i32
  %253 = icmp eq i32 %252, 46
  br i1 %253, label %254, label %262

254:                                              ; preds = %248
  %255 = load ptr, ptr %7, align 8, !tbaa !5
  %256 = load ptr, ptr %11, align 8, !tbaa !5
  %257 = getelementptr inbounds %struct.DIR, ptr %9, i32 0, i32 0
  %258 = getelementptr inbounds %struct.FFOBJID, ptr %257, i32 0, i32 4
  %259 = load i32, ptr %258, align 4, !tbaa !21
  call void @st_clust(ptr noundef %255, ptr noundef %256, i32 noundef %259)
  %260 = load ptr, ptr %7, align 8, !tbaa !5
  %261 = getelementptr inbounds %struct.FATFS, ptr %260, i32 0, i32 4
  store i8 1, ptr %261, align 4, !tbaa !25
  br label %262

262:                                              ; preds = %254, %248, %238
  br label %263

263:                                              ; preds = %262, %237
  br label %264

264:                                              ; preds = %263, %221, %212
  br label %265

265:                                              ; preds = %264, %184
  br label %266

266:                                              ; preds = %265, %181
  br label %267

267:                                              ; preds = %266, %154
  %268 = load i32, ptr %6, align 4, !tbaa !9
  %269 = icmp eq i32 %268, 0
  br i1 %269, label %270, label %278

270:                                              ; preds = %267
  %271 = call i32 @dir_remove(ptr noundef %8)
  store i32 %271, ptr %6, align 4, !tbaa !9
  %272 = load i32, ptr %6, align 4, !tbaa !9
  %273 = icmp eq i32 %272, 0
  br i1 %273, label %274, label %277

274:                                              ; preds = %270
  %275 = load ptr, ptr %7, align 8, !tbaa !5
  %276 = call i32 @sync_fs(ptr noundef %275)
  store i32 %276, ptr %6, align 4, !tbaa !9
  br label %277

277:                                              ; preds = %274, %270
  br label %278

278:                                              ; preds = %277, %267
  br label %279

279:                                              ; preds = %278, %56
  %280 = load ptr, ptr %13, align 8, !tbaa !5
  call void @ff_memfree(ptr noundef %280)
  br label %281

281:                                              ; preds = %279, %2
  %282 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %282, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %283

283:                                              ; preds = %281, %29
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 96, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 96, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  %284 = load i32, ptr %3, align 4
  ret i32 %284
}

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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"", !13, i64 0, !10, i64 48, !10, i64 52, !15, i64 56, !6, i64 64, !7, i64 72, !10, i64 84, !6, i64 88}
!13 = !{!"", !6, i64 0, !14, i64 8, !7, i64 10, !7, i64 11, !10, i64 12, !15, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44}
!14 = !{!"short", !7, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{!17, !6, i64 16}
!17 = !{!"", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !7, i64 4, !7, i64 5, !14, i64 6, !14, i64 8, !14, i64 10, !6, i64 16, !6, i64 24, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !15, i64 64, !15, i64 72, !15, i64 80, !15, i64 88, !15, i64 96, !15, i64 104, !7, i64 112}
!18 = !{!17, !6, i64 24}
!19 = !{!7, !7, i64 0}
!20 = !{!17, !7, i64 0}
!21 = !{!12, !10, i64 12}
!22 = !{!12, !10, i64 48}
!23 = !{!14, !14, i64 0}
!24 = !{!12, !6, i64 64}
!25 = !{!17, !7, i64 4}
!26 = !{!15, !15, i64 0}


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

%struct.DIR = type { %struct.FFOBJID, i32, i32, i64, ptr, [12 x i8], i32, ptr }
%struct.FFOBJID = type { ptr, i16, i8, i8, i32, i64, i32, i32, i32, i32, 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 @get_ldnumber(ptr noundef) local_unnamed_addr #1

; 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

declare ptr @ff_memalloc(i32 noundef) local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
declare hidden i32 @chk_share(ptr noundef, i32 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 i32 @store_xdir(ptr 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 @move_window(ptr noundef, i64 noundef) local_unnamed_addr #1

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

declare void @ff_memfree(ptr noundef) local_unnamed_addr #2

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

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

; Function Attrs: nounwind uwtable
declare hidden void @st_word(ptr noundef, i16 noundef zeroext) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden zeroext i16 @ld_word(ptr noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
define dso_local i32 @f_rename(ptr noundef %0, ptr noundef %1) local_unnamed_addr #1 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %struct.DIR, align 8
  %7 = alloca %struct.DIR, align 8
  %.sroa.0 = alloca [11 x i8], align 16
  %.sroa.6 = alloca [20 x i8], align 4
  %.sroa.7 = alloca [32 x i8], align 16
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %6) #4
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %7) #4
  call void @llvm.lifetime.start.p0(i64 11, ptr nonnull %.sroa.0)
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %.sroa.6)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %.sroa.7)
  %8 = call i32 @get_ldnumber(ptr noundef nonnull %4)
  %9 = call i32 @mount_volume(ptr noundef nonnull %3, ptr noundef nonnull %5, i8 noundef zeroext 2)
  %10 = icmp eq i32 %9, 0
  br i1 %10, label %11, label %143

11:                                               ; preds = %2
  %12 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %12, ptr %6, align 8, !tbaa !9
  %13 = call ptr @ff_memalloc(i32 noundef 1120) #4
  %.not = icmp eq ptr %13, null
  br i1 %.not, label %143, label %14

14:                                               ; preds = %11
  %15 = load ptr, ptr %5, align 8, !tbaa !5
  %16 = getelementptr inbounds i8, ptr %15, i64 16
  store ptr %13, ptr %16, align 8, !tbaa !15
  %17 = getelementptr inbounds i8, ptr %13, i64 512
  %18 = getelementptr inbounds i8, ptr %15, i64 24
  store ptr %17, ptr %18, align 8, !tbaa !17
  %19 = load ptr, ptr %3, align 8, !tbaa !5
  %20 = call i32 @follow_path(ptr noundef nonnull %6, ptr noundef %19)
  %21 = icmp eq i32 %20, 0
  %22 = getelementptr inbounds i8, ptr %6, i64 83
  %23 = load i8, ptr %22, align 1
  %24 = and i8 %23, -96
  %.not52 = icmp eq i8 %24, 0
  %spec.select = select i1 %.not52, i32 0, i32 6
  %.038 = select i1 %21, i32 %spec.select, i32 %20
  %25 = select i1 %21, i1 %.not52, i1 false
  br i1 %25, label %26, label %.thread

26:                                               ; preds = %14
  %27 = call i32 @chk_share(ptr noundef nonnull %6, i32 noundef 2)
  %28 = icmp eq i32 %27, 0
  br i1 %28, label %29, label %.thread

29:                                               ; preds = %26
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  %31 = load i8, ptr %30, align 8, !tbaa !18
  %32 = icmp eq i8 %31, 4
  br i1 %32, label %33, label %81

33:                                               ; preds = %29
  %34 = getelementptr inbounds i8, ptr %30, i64 24
  %35 = load ptr, ptr %34, align 8, !tbaa !17
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(11) %.sroa.0, ptr noundef nonnull align 1 dereferenceable(11) %35, i64 11, i1 false)
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %35, i64 11
  %.sroa.5.0.copyload = load i8, ptr %.sroa.5.0..sroa_idx, align 1
  %.sroa.6.0..sroa_idx = getelementptr inbounds i8, ptr %35, i64 12
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(20) %.sroa.6, ptr noundef nonnull align 1 dereferenceable(20) %.sroa.6.0..sroa_idx, i64 20, i1 false)
  %.sroa.7.0..sroa_idx = getelementptr inbounds i8, ptr %35, i64 32
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %.sroa.7, ptr noundef nonnull align 1 dereferenceable(32) %.sroa.7.0..sroa_idx, i64 32, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(96) %7, ptr noundef nonnull align 8 dereferenceable(96) %6, i64 96, i1 false)
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  %37 = call i32 @follow_path(ptr noundef nonnull %7, ptr noundef %36)
  switch i32 %37, label %.thread [
    i32 0, label %38
    i32 4, label %.thread59
  ]

38:                                               ; preds = %33
  %39 = getelementptr inbounds i8, ptr %7, i64 12
  %40 = load i32, ptr %39, align 4, !tbaa !19
  %41 = getelementptr inbounds i8, ptr %6, i64 12
  %42 = load i32, ptr %41, align 4, !tbaa !19
  %43 = icmp eq i32 %40, %42
  %44 = getelementptr inbounds i8, ptr %7, i64 48
  %45 = load i32, ptr %44, align 8
  %46 = getelementptr inbounds i8, ptr %6, i64 48
  %47 = load i32, ptr %46, align 8
  %48 = icmp eq i32 %45, %47
  %49 = select i1 %43, i1 %48, i1 false
  br i1 %49, label %.thread59, label %.thread

.thread59:                                        ; preds = %33, %38
  %50 = call i32 @dir_register(ptr noundef nonnull %7)
  %51 = icmp eq i32 %50, 0
  br i1 %51, label %52, label %.thread

52:                                               ; preds = %.thread59
  %53 = load ptr, ptr %5, align 8, !tbaa !5
  %54 = getelementptr inbounds i8, ptr %53, i64 24
  %55 = load ptr, ptr %54, align 8, !tbaa !17
  %56 = getelementptr inbounds i8, ptr %55, i64 1
  %57 = load i8, ptr %56, align 1, !tbaa !20
  %58 = getelementptr inbounds i8, ptr %55, i64 35
  %59 = load i8, ptr %58, align 1, !tbaa !20
  %60 = getelementptr inbounds i8, ptr %55, i64 36
  %61 = call zeroext i16 @ld_word(ptr noundef nonnull %60)
  %62 = load ptr, ptr %5, align 8, !tbaa !5
  %63 = getelementptr inbounds i8, ptr %62, i64 24
  %64 = load ptr, ptr %63, align 8, !tbaa !17
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(11) %64, ptr noundef nonnull align 16 dereferenceable(11) %.sroa.0, i64 11, i1 false)
  %.sroa.5.0..sroa_idx16 = getelementptr inbounds i8, ptr %64, i64 11
  store i8 %.sroa.5.0.copyload, ptr %.sroa.5.0..sroa_idx16, align 1
  %.sroa.6.0..sroa_idx20 = getelementptr inbounds i8, ptr %64, i64 12
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(20) %.sroa.6.0..sroa_idx20, ptr noundef nonnull align 4 dereferenceable(20) %.sroa.6, i64 20, i1 false)
  %.sroa.7.0..sroa_idx22 = getelementptr inbounds i8, ptr %64, i64 32
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(32) %.sroa.7.0..sroa_idx22, ptr noundef nonnull align 16 dereferenceable(32) %.sroa.7, i64 32, i1 false)
  %65 = load ptr, ptr %63, align 8, !tbaa !17
  %66 = getelementptr inbounds i8, ptr %65, i64 1
  store i8 %57, ptr %66, align 1, !tbaa !20
  %67 = load ptr, ptr %5, align 8, !tbaa !5
  %68 = getelementptr inbounds i8, ptr %67, i64 24
  %69 = load ptr, ptr %68, align 8, !tbaa !17
  %70 = getelementptr inbounds i8, ptr %69, i64 35
  store i8 %59, ptr %70, align 1, !tbaa !20
  %71 = load ptr, ptr %68, align 8, !tbaa !17
  %72 = getelementptr inbounds i8, ptr %71, i64 36
  call void @st_word(ptr noundef nonnull %72, i16 noundef zeroext %61)
  %73 = load ptr, ptr %5, align 8, !tbaa !5
  %74 = getelementptr inbounds i8, ptr %73, i64 24
  %75 = load ptr, ptr %74, align 8, !tbaa !17
  %76 = getelementptr inbounds i8, ptr %75, i64 4
  %77 = load i8, ptr %76, align 1, !tbaa !20
  %78 = and i8 %77, 16
  %.not56 = icmp eq i8 %78, 0
  br i1 %.not56, label %79, label %135

79:                                               ; preds = %52
  %80 = or i8 %77, 32
  store i8 %80, ptr %76, align 1, !tbaa !20
  br label %135

81:                                               ; preds = %29
  %82 = getelementptr inbounds i8, ptr %6, i64 64
  %83 = load ptr, ptr %82, align 8, !tbaa !21
  %.sroa.5.0..sroa_idx18 = getelementptr inbounds i8, ptr %83, i64 11
  %.sroa.5.0.copyload19 = load i8, ptr %.sroa.5.0..sroa_idx18, align 1
  %.sroa.6.0..sroa_idx21 = getelementptr inbounds i8, ptr %83, i64 12
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(20) %.sroa.6, ptr noundef nonnull align 1 dereferenceable(20) %.sroa.6.0..sroa_idx21, i64 20, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(96) %7, ptr noundef nonnull align 8 dereferenceable(96) %6, i64 96, i1 false)
  %84 = load ptr, ptr %4, align 8, !tbaa !5
  %85 = call i32 @follow_path(ptr noundef nonnull %7, ptr noundef %84)
  switch i32 %85, label %.thread [
    i32 0, label %86
    i32 4, label %.thread64
  ]

86:                                               ; preds = %81
  %87 = getelementptr inbounds i8, ptr %7, i64 12
  %88 = load i32, ptr %87, align 4, !tbaa !19
  %89 = getelementptr inbounds i8, ptr %6, i64 12
  %90 = load i32, ptr %89, align 4, !tbaa !19
  %91 = icmp eq i32 %88, %90
  %92 = getelementptr inbounds i8, ptr %7, i64 48
  %93 = load i32, ptr %92, align 8
  %94 = getelementptr inbounds i8, ptr %6, i64 48
  %95 = load i32, ptr %94, align 8
  %96 = icmp eq i32 %93, %95
  %97 = select i1 %91, i1 %96, i1 false
  br i1 %97, label %.thread64, label %.thread

.thread64:                                        ; preds = %81, %86
  %98 = call i32 @dir_register(ptr noundef nonnull %7)
  %99 = icmp eq i32 %98, 0
  br i1 %99, label %100, label %.thread

100:                                              ; preds = %.thread64
  %101 = getelementptr inbounds i8, ptr %7, i64 64
  %102 = load ptr, ptr %101, align 8, !tbaa !21
  %103 = getelementptr inbounds i8, ptr %102, i64 13
  %.sroa.6.13.sroa_idx = getelementptr inbounds i8, ptr %.sroa.6, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(19) %103, ptr noundef nonnull align 1 dereferenceable(19) %.sroa.6.13.sroa_idx, i64 19, i1 false)
  %104 = getelementptr inbounds i8, ptr %102, i64 11
  %105 = shl i8 %.sroa.5.0.copyload19, 1
  %106 = and i8 %105, 32
  %107 = xor i8 %106, 32
  %spec.select57 = or i8 %107, %.sroa.5.0.copyload19
  store i8 %spec.select57, ptr %104, align 1, !tbaa !20
  %108 = load ptr, ptr %5, align 8, !tbaa !5
  %109 = getelementptr inbounds i8, ptr %108, i64 4
  store i8 1, ptr %109, align 4, !tbaa !22
  %110 = load i8, ptr %104, align 1, !tbaa !20
  %111 = and i8 %110, 16
  %.not54 = icmp eq i8 %111, 0
  br i1 %.not54, label %.thread71, label %112

112:                                              ; preds = %100
  %113 = getelementptr inbounds i8, ptr %6, i64 12
  %114 = load i32, ptr %113, align 4, !tbaa !19
  %115 = getelementptr inbounds i8, ptr %7, i64 12
  %116 = load i32, ptr %115, align 4, !tbaa !19
  %.not55 = icmp eq i32 %114, %116
  br i1 %.not55, label %.thread71, label %117

117:                                              ; preds = %112
  %118 = call i32 @ld_clust(ptr noundef nonnull %108, ptr noundef nonnull %102)
  %119 = call i64 @clst2sect(ptr noundef nonnull %108, i32 noundef %118)
  %120 = icmp eq i64 %119, 0
  br i1 %120, label %.thread, label %121

121:                                              ; preds = %117
  %122 = load ptr, ptr %5, align 8, !tbaa !5
  %123 = call i32 @move_window(ptr noundef %122, i64 noundef %119)
  %124 = load ptr, ptr %5, align 8, !tbaa !5
  %125 = getelementptr inbounds i8, ptr %124, i64 144
  %126 = icmp eq i32 %123, 0
  br i1 %126, label %127, label %.thread

127:                                              ; preds = %121
  %128 = getelementptr inbounds i8, ptr %124, i64 145
  %129 = load i8, ptr %128, align 1, !tbaa !20
  %130 = icmp eq i8 %129, 46
  br i1 %130, label %131, label %.thread71

131:                                              ; preds = %127
  %132 = load i32, ptr %115, align 4, !tbaa !19
  call void @st_clust(ptr noundef nonnull %124, ptr noundef nonnull %125, i32 noundef %132)
  %133 = load ptr, ptr %5, align 8, !tbaa !5
  %134 = getelementptr inbounds i8, ptr %133, i64 4
  store i8 1, ptr %134, align 4, !tbaa !22
  br label %.thread71

135:                                              ; preds = %52, %79
  %136 = call i32 @store_xdir(ptr noundef nonnull %7)
  %137 = icmp eq i32 %136, 0
  br i1 %137, label %.thread71, label %.thread

.thread71:                                        ; preds = %100, %112, %127, %131, %135
  %138 = call i32 @dir_remove(ptr noundef nonnull %6)
  %139 = icmp eq i32 %138, 0
  br i1 %139, label %140, label %.thread

140:                                              ; preds = %.thread71
  %141 = load ptr, ptr %5, align 8, !tbaa !5
  %142 = call i32 @sync_fs(ptr noundef %141)
  br label %.thread

.thread:                                          ; preds = %81, %33, %86, %38, %117, %.thread59, %.thread64, %121, %14, %135, %140, %.thread71, %26
  %.6 = phi i32 [ %142, %140 ], [ %138, %.thread71 ], [ %136, %135 ], [ %27, %26 ], [ %.038, %14 ], [ 2, %117 ], [ %50, %.thread59 ], [ %98, %.thread64 ], [ %123, %121 ], [ 8, %38 ], [ 8, %86 ], [ %37, %33 ], [ %85, %81 ]
  call void @ff_memfree(ptr noundef nonnull %13) #4
  br label %143

143:                                              ; preds = %2, %.thread, %11
  %.0 = phi i32 [ 17, %11 ], [ %.6, %.thread ], [ %9, %2 ]
  call void @llvm.lifetime.end.p0(i64 11, ptr nonnull %.sroa.0)
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %.sroa.6)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %.sroa.7)
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  ret i32 %.0
}

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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 48, !13, i64 52, !14, i64 56, !6, i64 64, !7, i64 72, !13, i64 84, !6, i64 88}
!11 = !{!"", !6, i64 0, !12, i64 8, !7, i64 10, !7, i64 11, !13, i64 12, !14, i64 16, !13, i64 24, !13, i64 28, !13, i64 32, !13, i64 36, !13, i64 40, !13, i64 44}
!12 = !{!"short", !7, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!16, !6, i64 16}
!16 = !{!"", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !7, i64 4, !7, i64 5, !12, i64 6, !12, i64 8, !12, i64 10, !6, i64 16, !6, i64 24, !13, i64 32, !13, i64 36, !13, i64 40, !13, i64 44, !13, i64 48, !13, i64 52, !13, i64 56, !13, i64 60, !14, i64 64, !14, i64 72, !14, i64 80, !14, i64 88, !14, i64 96, !14, i64 104, !7, i64 112}
!17 = !{!16, !6, i64 24}
!18 = !{!16, !7, i64 0}
!19 = !{!10, !13, i64 12}
!20 = !{!7, !7, i64 0}
!21 = !{!10, !6, i64 64}
!22 = !{!16, !7, i64 4}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,ReassociatePass,SROAPass,SimplifyCFGPass