; LLVM IR from mlcommons/tiny :: benchmark/interface/Middlewares/ST/filex/common/src (fx_unicode_file_rename)

; 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.FX_DIR_ENTRY_STRUCT = type { ptr, [13 x i8], i32, i32, i8, i8, i8, i32, i32, i32, i32, i32, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64 }
%struct.FX_MEDIA_STRUCT = type { i64, ptr, ptr, i64, i32, i64, ptr, ptr, i64, i64, i32, i32, i32, i64, i64, i32, i32, i32, i32, i32, i32, i32, i32, i32, i64, i32, i64, i64, i32, i64, i64, ptr, i32, i32, ptr, i64, i64, i64, i32, i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, i64, ptr, ptr, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, %struct.TX_MUTEX_STRUCT, i32, %struct.FX_DIR_ENTRY_STRUCT, %struct.FX_DIR_ENTRY_STRUCT, [256 x i8], [256 x i8], %struct.FX_PATH_STRUCT, [16 x %struct.FX_FAT_CACHE_ENTRY_STRUCT], [128 x i8], i64, [1024 x i8], [256 x %struct.FX_CACHED_SECTOR_STRUCT], i64, i64, i64, i64, i8 }
%struct.TX_MUTEX_STRUCT = type { i64, ptr, i32, ptr, i32, i32, ptr, i32, ptr, ptr, i32, ptr, ptr }
%struct.FX_PATH_STRUCT = type { %struct.FX_DIR_ENTRY_STRUCT, [256 x i8], [256 x i8], i64 }
%struct.FX_FAT_CACHE_ENTRY_STRUCT = type { i64, i64, i64 }
%struct.FX_CACHED_SECTOR_STRUCT = type { ptr, i64, i8, i8, i8, i8, ptr }

@_fx_unicode_temp_long_file_name = external global [256 x i8], align 16

; Function Attrs: nounwind uwtable
define dso_local i32 @_fx_unicode_file_rename(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3, i64 noundef %4, ptr noundef %5) #0 {
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i64, align 8
  %15 = alloca i32, align 4
  %16 = alloca i8, align 1
  %17 = alloca i8, align 1
  %18 = alloca [13 x i8], align 1
  %19 = alloca [13 x i8], align 1
  %20 = alloca %struct.FX_DIR_ENTRY_STRUCT, align 8
  %21 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store i64 %2, ptr %10, align 8, !tbaa !9
  store ptr %3, ptr %11, align 8, !tbaa !5
  store i64 %4, ptr %12, align 8, !tbaa !9
  store ptr %5, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #3
  call void @llvm.lifetime.start.p0(i64 13, ptr %18) #3
  call void @llvm.lifetime.start.p0(i64 13, ptr %19) #3
  call void @llvm.lifetime.start.p0(i64 136, ptr %20) #3
  %22 = load ptr, ptr %13, align 8, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %22, i64 0
  store i8 0, ptr %23, align 1, !tbaa !11
  %24 = getelementptr inbounds [13 x i8], ptr %18, i64 0, i64 0
  store i8 0, ptr %24, align 1, !tbaa !11
  %25 = getelementptr inbounds [13 x i8], ptr %19, i64 0, i64 0
  store i8 0, ptr %25, align 1, !tbaa !11
  %26 = load ptr, ptr %8, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.FX_MEDIA_STRUCT, ptr %26, i32 0, i32 0
  %28 = load i64, ptr %27, align 8, !tbaa !12
  %29 = icmp ne i64 %28, 1296385097
  br i1 %29, label %30, label %31

30:                                               ; preds = %6
  store i32 17, ptr %7, align 4
  store i32 1, ptr %21, align 4
  br label %270

31:                                               ; preds = %6
  %32 = load ptr, ptr %8, align 8, !tbaa !5
  %33 = load ptr, ptr %9, align 8, !tbaa !5
  %34 = load i64, ptr %10, align 8, !tbaa !9
  %35 = getelementptr inbounds [13 x i8], ptr %18, i64 0, i64 0
  %36 = call i32 @_fx_unicode_short_name_get(ptr noundef %32, ptr noundef %33, i64 noundef %34, ptr noundef %35)
  store i32 %36, ptr %15, align 4, !tbaa !19
  %37 = load i32, ptr %15, align 4, !tbaa !19
  %38 = icmp ne i32 %37, 0
  br i1 %38, label %39, label %41

39:                                               ; preds = %31
  %40 = load i32, ptr %15, align 4, !tbaa !19
  store i32 %40, ptr %7, align 4
  store i32 1, ptr %21, align 4
  br label %270

41:                                               ; preds = %31
  %42 = load ptr, ptr %8, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.FX_MEDIA_STRUCT, ptr %42, i32 0, i32 0
  %44 = load i64, ptr %43, align 8, !tbaa !12
  %45 = icmp ne i64 %44, 1296385097
  br i1 %45, label %46, label %47

46:                                               ; preds = %41
  store i32 17, ptr %7, align 4
  store i32 1, ptr %21, align 4
  br label %270

47:                                               ; preds = %41
  %48 = load ptr, ptr %8, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.FX_MEDIA_STRUCT, ptr %48, i32 0, i32 112
  %50 = call i32 @_tx_mutex_get(ptr noundef %49, i64 noundef 4294967295)
  %51 = icmp ne i32 %50, 0
  br i1 %51, label %52, label %53

52:                                               ; preds = %47
  store i32 17, ptr %7, align 4
  store i32 1, ptr %21, align 4
  br label %270

53:                                               ; preds = %47
  br label %54

54:                                               ; preds = %53
  %55 = load ptr, ptr %8, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.FX_MEDIA_STRUCT, ptr %55, i32 0, i32 122
  %57 = getelementptr inbounds [1024 x i8], ptr %56, i64 0, i64 0
  %58 = getelementptr inbounds i8, ptr %57, i64 256
  %59 = getelementptr inbounds %struct.FX_DIR_ENTRY_STRUCT, ptr %20, i32 0, i32 0
  store ptr %58, ptr %59, align 8, !tbaa !20
  %60 = getelementptr inbounds %struct.FX_DIR_ENTRY_STRUCT, ptr %20, i32 0, i32 1
  %61 = getelementptr inbounds [13 x i8], ptr %60, i64 0, i64 0
  store i8 0, ptr %61, align 8, !tbaa !11
  %62 = load ptr, ptr %8, align 8, !tbaa !5
  %63 = getelementptr inbounds [13 x i8], ptr %19, i64 0, i64 0
  %64 = load ptr, ptr %11, align 8, !tbaa !5
  %65 = call i32 @_fx_unicode_directory_search(ptr noundef %62, ptr noundef %20, ptr noundef %63, i64 noundef 13, ptr noundef %64, ptr noundef %12, i64 noundef 0)
  store i32 %65, ptr %15, align 4, !tbaa !19
  %66 = load i32, ptr %15, align 4, !tbaa !19
  %67 = icmp eq i32 %66, 0
  br i1 %67, label %68, label %173

68:                                               ; preds = %54
  %69 = load i64, ptr %10, align 8, !tbaa !9
  %70 = load i64, ptr %12, align 8, !tbaa !9
  %71 = icmp eq i64 %69, %70
  br i1 %71, label %72, label %161

72:                                               ; preds = %68
  store i64 0, ptr %14, align 8, !tbaa !9
  br label %73

73:                                               ; preds = %156, %72
  %74 = load ptr, ptr %9, align 8, !tbaa !5
  %75 = load i64, ptr %14, align 8, !tbaa !9
  %76 = shl i64 %75, 1
  %77 = getelementptr inbounds i8, ptr %74, i64 %76
  %78 = load i8, ptr %77, align 1, !tbaa !11
  store i8 %78, ptr %16, align 1, !tbaa !11
  %79 = load i8, ptr %16, align 1, !tbaa !11
  %80 = sext i8 %79 to i32
  %81 = icmp sge i32 %80, 97
  br i1 %81, label %82, label %100

82:                                               ; preds = %73
  %83 = load i8, ptr %16, align 1, !tbaa !11
  %84 = sext i8 %83 to i32
  %85 = icmp sle i32 %84, 122
  br i1 %85, label %86, label %100

86:                                               ; preds = %82
  %87 = load ptr, ptr %9, align 8, !tbaa !5
  %88 = load i64, ptr %14, align 8, !tbaa !9
  %89 = shl i64 %88, 1
  %90 = add i64 %89, 1
  %91 = getelementptr inbounds i8, ptr %87, i64 %90
  %92 = load i8, ptr %91, align 1, !tbaa !11
  %93 = zext i8 %92 to i32
  %94 = icmp eq i32 %93, 0
  br i1 %94, label %95, label %100

95:                                               ; preds = %86
  %96 = load i8, ptr %16, align 1, !tbaa !11
  %97 = sext i8 %96 to i32
  %98 = sub nsw i32 %97, 32
  %99 = trunc i32 %98 to i8
  store i8 %99, ptr %16, align 1, !tbaa !11
  br label %100

100:                                              ; preds = %95, %86, %82, %73
  %101 = load ptr, ptr %11, align 8, !tbaa !5
  %102 = load i64, ptr %14, align 8, !tbaa !9
  %103 = shl i64 %102, 1
  %104 = getelementptr inbounds i8, ptr %101, i64 %103
  %105 = load i8, ptr %104, align 1, !tbaa !11
  store i8 %105, ptr %17, align 1, !tbaa !11
  %106 = load i8, ptr %17, align 1, !tbaa !11
  %107 = sext i8 %106 to i32
  %108 = icmp sge i32 %107, 97
  br i1 %108, label %109, label %127

109:                                              ; preds = %100
  %110 = load i8, ptr %17, align 1, !tbaa !11
  %111 = sext i8 %110 to i32
  %112 = icmp sle i32 %111, 122
  br i1 %112, label %113, label %127

113:                                              ; preds = %109
  %114 = load ptr, ptr %11, align 8, !tbaa !5
  %115 = load i64, ptr %14, align 8, !tbaa !9
  %116 = shl i64 %115, 1
  %117 = add i64 %116, 1
  %118 = getelementptr inbounds i8, ptr %114, i64 %117
  %119 = load i8, ptr %118, align 1, !tbaa !11
  %120 = zext i8 %119 to i32
  %121 = icmp eq i32 %120, 0
  br i1 %121, label %122, label %127

122:                                              ; preds = %113
  %123 = load i8, ptr %17, align 1, !tbaa !11
  %124 = sext i8 %123 to i32
  %125 = sub nsw i32 %124, 32
  %126 = trunc i32 %125 to i8
  store i8 %126, ptr %17, align 1, !tbaa !11
  br label %127

127:                                              ; preds = %122, %113, %109, %100
  %128 = load i8, ptr %16, align 1, !tbaa !11
  %129 = sext i8 %128 to i32
  %130 = load i8, ptr %17, align 1, !tbaa !11
  %131 = sext i8 %130 to i32
  %132 = icmp ne i32 %129, %131
  br i1 %132, label %133, label %134

133:                                              ; preds = %127
  br label %160

134:                                              ; preds = %127
  %135 = load ptr, ptr %9, align 8, !tbaa !5
  %136 = load i64, ptr %14, align 8, !tbaa !9
  %137 = shl i64 %136, 1
  %138 = add i64 %137, 1
  %139 = getelementptr inbounds i8, ptr %135, i64 %138
  %140 = load i8, ptr %139, align 1, !tbaa !11
  store i8 %140, ptr %16, align 1, !tbaa !11
  %141 = load ptr, ptr %11, align 8, !tbaa !5
  %142 = load i64, ptr %14, align 8, !tbaa !9
  %143 = shl i64 %142, 1
  %144 = add i64 %143, 1
  %145 = getelementptr inbounds i8, ptr %141, i64 %144
  %146 = load i8, ptr %145, align 1, !tbaa !11
  store i8 %146, ptr %17, align 1, !tbaa !11
  %147 = load i8, ptr %16, align 1, !tbaa !11
  %148 = sext i8 %147 to i32
  %149 = load i8, ptr %17, align 1, !tbaa !11
  %150 = sext i8 %149 to i32
  %151 = icmp ne i32 %148, %150
  br i1 %151, label %152, label %153

152:                                              ; preds = %134
  br label %160

153:                                              ; preds = %134
  %154 = load i64, ptr %14, align 8, !tbaa !9
  %155 = add i64 %154, 1
  store i64 %155, ptr %14, align 8, !tbaa !9
  br label %156

156:                                              ; preds = %153
  %157 = load i64, ptr %14, align 8, !tbaa !9
  %158 = load i64, ptr %10, align 8, !tbaa !9
  %159 = icmp ult i64 %157, %158
  br i1 %159, label %73, label %160, !llvm.loop !21

160:                                              ; preds = %156, %152, %133
  br label %162

161:                                              ; preds = %68
  store i8 0, ptr %16, align 1, !tbaa !11
  store i8 1, ptr %17, align 1, !tbaa !11
  br label %162

162:                                              ; preds = %161, %160
  %163 = load i8, ptr %16, align 1, !tbaa !11
  %164 = sext i8 %163 to i32
  %165 = load i8, ptr %17, align 1, !tbaa !11
  %166 = sext i8 %165 to i32
  %167 = icmp ne i32 %164, %166
  br i1 %167, label %168, label %172

168:                                              ; preds = %162
  %169 = load ptr, ptr %8, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.FX_MEDIA_STRUCT, ptr %169, i32 0, i32 112
  %171 = call i32 @_tx_mutex_put(ptr noundef %170)
  store i32 11, ptr %7, align 4
  store i32 1, ptr %21, align 4
  br label %270

172:                                              ; preds = %162
  br label %173

173:                                              ; preds = %172, %54
  store i8 122, ptr @_fx_unicode_temp_long_file_name, align 16, !tbaa !11
  store i64 1, ptr %14, align 8, !tbaa !9
  br label %174

174:                                              ; preds = %185, %173
  %175 = load i64, ptr %14, align 8, !tbaa !9
  %176 = load i64, ptr %12, align 8, !tbaa !9
  %177 = icmp ult i64 %175, %176
  br i1 %177, label %178, label %188

178:                                              ; preds = %174
  %179 = load i64, ptr %14, align 8, !tbaa !9
  %180 = urem i64 %179, 9
  %181 = add i64 48, %180
  %182 = trunc i64 %181 to i8
  %183 = load i64, ptr %14, align 8, !tbaa !9
  %184 = getelementptr inbounds [256 x i8], ptr @_fx_unicode_temp_long_file_name, i64 0, i64 %183
  store i8 %182, ptr %184, align 1, !tbaa !11
  br label %185

185:                                              ; preds = %178
  %186 = load i64, ptr %14, align 8, !tbaa !9
  %187 = add i64 %186, 1
  store i64 %187, ptr %14, align 8, !tbaa !9
  br label %174, !llvm.loop !23

188:                                              ; preds = %174
  %189 = load i64, ptr %14, align 8, !tbaa !9
  %190 = getelementptr inbounds [256 x i8], ptr @_fx_unicode_temp_long_file_name, i64 0, i64 %189
  store i8 0, ptr %190, align 1, !tbaa !11
  br label %191

191:                                              ; preds = %206, %188
  %192 = load ptr, ptr %8, align 8, !tbaa !5
  %193 = getelementptr inbounds [13 x i8], ptr %18, i64 0, i64 0
  %194 = call i32 @_fx_file_rename(ptr noundef %192, ptr noundef %193, ptr noundef @_fx_unicode_temp_long_file_name)
  store i32 %194, ptr %15, align 4, !tbaa !19
  %195 = load i32, ptr %15, align 4, !tbaa !19
  %196 = icmp eq i32 %195, 11
  br i1 %196, label %197, label %205

197:                                              ; preds = %191
  %198 = load i8, ptr @_fx_unicode_temp_long_file_name, align 16, !tbaa !11
  %199 = add i8 %198, -1
  store i8 %199, ptr @_fx_unicode_temp_long_file_name, align 16, !tbaa !11
  %200 = load i8, ptr @_fx_unicode_temp_long_file_name, align 16, !tbaa !11
  %201 = zext i8 %200 to i32
  %202 = icmp slt i32 %201, 97
  br i1 %202, label %203, label %204

203:                                              ; preds = %197
  br label %209

204:                                              ; preds = %197
  br label %205

205:                                              ; preds = %204, %191
  br label %206

206:                                              ; preds = %205
  %207 = load i32, ptr %15, align 4, !tbaa !19
  %208 = icmp eq i32 %207, 11
  br i1 %208, label %191, label %209, !llvm.loop !24

209:                                              ; preds = %206, %203
  %210 = load i32, ptr %15, align 4, !tbaa !19
  %211 = icmp ne i32 %210, 0
  br i1 %211, label %212, label %217

212:                                              ; preds = %209
  %213 = load ptr, ptr %8, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct.FX_MEDIA_STRUCT, ptr %213, i32 0, i32 112
  %215 = call i32 @_tx_mutex_put(ptr noundef %214)
  %216 = load i32, ptr %15, align 4, !tbaa !19
  store i32 %216, ptr %7, align 4
  store i32 1, ptr %21, align 4
  br label %270

217:                                              ; preds = %209
  %218 = load ptr, ptr %8, align 8, !tbaa !5
  %219 = getelementptr inbounds %struct.FX_MEDIA_STRUCT, ptr %218, i32 0, i32 122
  %220 = getelementptr inbounds [1024 x i8], ptr %219, i64 0, i64 0
  %221 = getelementptr inbounds i8, ptr %220, i64 256
  %222 = getelementptr inbounds %struct.FX_DIR_ENTRY_STRUCT, ptr %20, i32 0, i32 0
  store ptr %221, ptr %222, align 8, !tbaa !20
  %223 = getelementptr inbounds %struct.FX_DIR_ENTRY_STRUCT, ptr %20, i32 0, i32 1
  %224 = getelementptr inbounds [13 x i8], ptr %223, i64 0, i64 0
  store i8 0, ptr %224, align 8, !tbaa !11
  %225 = load ptr, ptr %8, align 8, !tbaa !5
  %226 = call i32 @_fx_directory_search(ptr noundef %225, ptr noundef @_fx_unicode_temp_long_file_name, ptr noundef %20, ptr noundef null, ptr noundef null)
  store i32 %226, ptr %15, align 4, !tbaa !19
  %227 = load i32, ptr %15, align 4, !tbaa !19
  %228 = icmp ne i32 %227, 0
  br i1 %228, label %229, label %234

229:                                              ; preds = %217
  %230 = load ptr, ptr %8, align 8, !tbaa !5
  %231 = getelementptr inbounds %struct.FX_MEDIA_STRUCT, ptr %230, i32 0, i32 112
  %232 = call i32 @_tx_mutex_put(ptr noundef %231)
  %233 = load i32, ptr %15, align 4, !tbaa !19
  store i32 %233, ptr %7, align 4
  store i32 1, ptr %21, align 4
  br label %270

234:                                              ; preds = %217
  %235 = load ptr, ptr %8, align 8, !tbaa !5
  %236 = load ptr, ptr %11, align 8, !tbaa !5
  %237 = load i64, ptr %12, align 8, !tbaa !9
  %238 = call i32 @_fx_unicode_directory_entry_change(ptr noundef %235, ptr noundef %20, ptr noundef %236, i64 noundef %237)
  store i32 %238, ptr %15, align 4, !tbaa !19
  %239 = load i32, ptr %15, align 4, !tbaa !19
  %240 = icmp eq i32 %239, 0
  br i1 %240, label %241, label %265

241:                                              ; preds = %234
  store i64 0, ptr %14, align 8, !tbaa !9
  br label %242

242:                                              ; preds = %261, %241
  %243 = load i64, ptr %14, align 8, !tbaa !9
  %244 = icmp ult i64 %243, 8
  br i1 %244, label %245, label %264

245:                                              ; preds = %242
  %246 = getelementptr inbounds %struct.FX_DIR_ENTRY_STRUCT, ptr %20, i32 0, i32 1
  %247 = load i64, ptr %14, align 8, !tbaa !9
  %248 = getelementptr inbounds [13 x i8], ptr %246, i64 0, i64 %247
  %249 = load i8, ptr %248, align 1, !tbaa !11
  %250 = load ptr, ptr %13, align 8, !tbaa !5
  %251 = load i64, ptr %14, align 8, !tbaa !9
  %252 = getelementptr inbounds i8, ptr %250, i64 %251
  store i8 %249, ptr %252, align 1, !tbaa !11
  %253 = load ptr, ptr %13, align 8, !tbaa !5
  %254 = load i64, ptr %14, align 8, !tbaa !9
  %255 = getelementptr inbounds i8, ptr %253, i64 %254
  %256 = load i8, ptr %255, align 1, !tbaa !11
  %257 = sext i8 %256 to i32
  %258 = icmp eq i32 %257, 0
  br i1 %258, label %259, label %260

259:                                              ; preds = %245
  br label %264

260:                                              ; preds = %245
  br label %261

261:                                              ; preds = %260
  %262 = load i64, ptr %14, align 8, !tbaa !9
  %263 = add i64 %262, 1
  store i64 %263, ptr %14, align 8, !tbaa !9
  br label %242, !llvm.loop !25

264:                                              ; preds = %259, %242
  br label %265

265:                                              ; preds = %264, %234
  %266 = load ptr, ptr %8, align 8, !tbaa !5
  %267 = getelementptr inbounds %struct.FX_MEDIA_STRUCT, ptr %266, i32 0, i32 112
  %268 = call i32 @_tx_mutex_put(ptr noundef %267)
  %269 = load i32, ptr %15, align 4, !tbaa !19
  store i32 %269, ptr %7, align 4
  store i32 1, ptr %21, align 4
  br label %270

270:                                              ; preds = %265, %229, %212, %168, %52, %46, %39, %30
  call void @llvm.lifetime.end.p0(i64 136, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 13, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 13, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  %271 = load i32, ptr %7, align 4
  ret i32 %271
}

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

declare i32 @_fx_unicode_short_name_get(ptr noundef, ptr noundef, i64 noundef, ptr noundef) #2

declare i32 @_tx_mutex_get(ptr noundef, i64 noundef) #2

declare i32 @_fx_unicode_directory_search(ptr noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, i64 noundef) #2

declare i32 @_tx_mutex_put(ptr noundef) #2

declare i32 @_fx_file_rename(ptr noundef, ptr noundef, ptr noundef) #2

declare i32 @_fx_directory_search(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

declare i32 @_fx_unicode_directory_entry_change(ptr noundef, ptr noundef, ptr noundef, i64 noundef) #2

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

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 nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = !{!"long", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !10, i64 0}
!13 = !{!"FX_MEDIA_STRUCT", !10, i64 0, !6, i64 8, !6, i64 16, !10, i64 24, !14, i64 32, !10, i64 40, !6, i64 48, !6, i64 56, !10, i64 64, !10, i64 72, !14, i64 80, !14, i64 84, !14, i64 88, !15, i64 96, !10, i64 104, !14, i64 112, !14, i64 116, !14, i64 120, !14, i64 124, !14, i64 128, !14, i64 132, !14, i64 136, !14, i64 140, !14, i64 144, !10, i64 152, !14, i64 160, !10, i64 168, !10, i64 176, !14, i64 184, !10, i64 192, !10, i64 200, !6, i64 208, !14, i64 216, !14, i64 220, !6, i64 224, !10, i64 232, !10, i64 240, !10, i64 248, !14, i64 256, !14, i64 260, !14, i64 264, !14, i64 268, !14, i64 272, !14, i64 276, !14, i64 280, !6, i64 288, !6, i64 296, !6, i64 304, !6, i64 312, !10, i64 320, !6, i64 328, !6, i64 336, !10, i64 344, !10, i64 352, !10, i64 360, !10, i64 368, !10, i64 376, !10, i64 384, !10, i64 392, !10, i64 400, !10, i64 408, !10, i64 416, !10, i64 424, !10, i64 432, !10, i64 440, !10, i64 448, !10, i64 456, !10, i64 464, !10, i64 472, !10, i64 480, !10, i64 488, !10, i64 496, !10, i64 504, !10, i64 512, !10, i64 520, !10, i64 528, !10, i64 536, !10, i64 544, !10, i64 552, !10, i64 560, !10, i64 568, !10, i64 576, !10, i64 584, !10, i64 592, !10, i64 600, !10, i64 608, !10, i64 616, !10, i64 624, !10, i64 632, !10, i64 640, !10, i64 648, !10, i64 656, !10, i64 664, !10, i64 672, !10, i64 680, !10, i64 688, !10, i64 696, !10, i64 704, !10, i64 712, !10, i64 720, !10, i64 728, !10, i64 736, !10, i64 744, !10, i64 752, !10, i64 760, !10, i64 768, !10, i64 776, !10, i64 784, !10, i64 792, !10, i64 800, !10, i64 808, !10, i64 816, !16, i64 824, !14, i64 920, !17, i64 928, !17, i64 1064, !7, i64 1200, !7, i64 1456, !18, i64 1712, !7, i64 2368, !7, i64 2752, !10, i64 2880, !7, i64 2888, !7, i64 3912, !10, i64 12104, !10, i64 12112, !10, i64 12120, !10, i64 12128, !7, i64 12136}
!14 = !{!"int", !7, i64 0}
!15 = !{!"long long", !7, i64 0}
!16 = !{!"TX_MUTEX_STRUCT", !10, i64 0, !6, i64 8, !14, i64 16, !6, i64 24, !14, i64 32, !14, i64 36, !6, i64 40, !14, i64 48, !6, i64 56, !6, i64 64, !14, i64 72, !6, i64 80, !6, i64 88}
!17 = !{!"FX_DIR_ENTRY_STRUCT", !6, i64 0, !7, i64 8, !14, i64 24, !14, i64 28, !7, i64 32, !7, i64 33, !7, i64 34, !14, i64 36, !14, i64 40, !14, i64 44, !14, i64 48, !14, i64 52, !10, i64 56, !15, i64 64, !15, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !15, i64 112, !10, i64 120, !15, i64 128}
!18 = !{!"FX_PATH_STRUCT", !17, i64 0, !7, i64 136, !7, i64 392, !10, i64 648}
!19 = !{!14, !14, i64 0}
!20 = !{!17, !6, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = distinct !{!23, !22}
!24 = distinct !{!24, !22}
!25 = distinct !{!25, !22}


; 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.FX_DIR_ENTRY_STRUCT = type { ptr, [13 x i8], i32, i32, i8, i8, i8, i32, i32, i32, i32, i32, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64 }

@_fx_unicode_temp_long_file_name = external global [256 x i8], align 16

; Function Attrs: nounwind uwtable
define dso_local i32 @_fx_unicode_file_rename(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3, i64 noundef %4, ptr nocapture noundef writeonly %5) local_unnamed_addr #0 {
  %7 = alloca i64, align 8
  %8 = alloca [13 x i8], align 1
  %9 = alloca [13 x i8], align 1
  %10 = alloca %struct.FX_DIR_ENTRY_STRUCT, align 8
  store i64 %4, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 13, ptr nonnull %8) #3
  call void @llvm.lifetime.start.p0(i64 13, ptr nonnull %9) #3
  call void @llvm.lifetime.start.p0(i64 136, ptr nonnull %10) #3
  store i8 0, ptr %5, align 1, !tbaa !9
  store i8 0, ptr %8, align 1, !tbaa !9
  store i8 0, ptr %9, align 1, !tbaa !9
  %11 = load i64, ptr %0, align 8, !tbaa !10
  %.not = icmp eq i64 %11, 1296385097
  br i1 %.not, label %12, label %115

12:                                               ; preds = %6
  %13 = call i32 @_fx_unicode_short_name_get(ptr noundef nonnull %0, ptr noundef %1, i64 noundef %2, ptr noundef nonnull %8) #3
  %.not90 = icmp eq i32 %13, 0
  br i1 %.not90, label %14, label %115

14:                                               ; preds = %12
  %15 = load i64, ptr %0, align 8, !tbaa !10
  %.not91 = icmp eq i64 %15, 1296385097
  br i1 %.not91, label %16, label %115

16:                                               ; preds = %14
  %17 = getelementptr inbounds i8, ptr %0, i64 824
  %18 = call i32 @_tx_mutex_get(ptr noundef nonnull %17, i64 noundef 4294967295) #3
  %.not92 = icmp eq i32 %18, 0
  br i1 %.not92, label %19, label %115

19:                                               ; preds = %16
  %20 = getelementptr inbounds i8, ptr %0, i64 3144
  store ptr %20, ptr %10, align 8, !tbaa !18
  %21 = getelementptr inbounds i8, ptr %10, i64 8
  store i8 0, ptr %21, align 8, !tbaa !9
  %22 = call i32 @_fx_unicode_directory_search(ptr noundef nonnull %0, ptr noundef nonnull %10, ptr noundef nonnull %9, i64 noundef 13, ptr noundef %3, ptr noundef nonnull %7, i64 noundef 0) #3
  %23 = icmp eq i32 %22, 0
  %.pre = load i64, ptr %7, align 8, !tbaa !5
  br i1 %23, label %24, label %54

24:                                               ; preds = %19
  %25 = icmp eq i64 %.pre, %2
  br i1 %25, label %.preheader105, label %.sink.split

.preheader105:                                    ; preds = %24, %45
  %.080 = phi i64 [ %51, %45 ], [ 0, %24 ]
  %26 = shl i64 %.080, 1
  %27 = getelementptr inbounds i8, ptr %1, i64 %26
  %28 = load i8, ptr %27, align 1, !tbaa !9
  %29 = add i8 %28, -97
  %or.cond = icmp ult i8 %29, 26
  br i1 %or.cond, label %30, label %35

30:                                               ; preds = %.preheader105
  %31 = or disjoint i64 %26, 1
  %32 = getelementptr inbounds i8, ptr %1, i64 %31
  %33 = load i8, ptr %32, align 1, !tbaa !9
  %34 = icmp eq i8 %33, 0
  %narrow = add nsw i8 %28, -32
  %spec.select = select i1 %34, i8 %narrow, i8 %28
  br label %35

35:                                               ; preds = %30, %.preheader105
  %.078 = phi i8 [ %28, %.preheader105 ], [ %spec.select, %30 ]
  %36 = getelementptr inbounds i8, ptr %3, i64 %26
  %37 = load i8, ptr %36, align 1, !tbaa !9
  %38 = add i8 %37, -97
  %or.cond5 = icmp ult i8 %38, 26
  br i1 %or.cond5, label %39, label %44

39:                                               ; preds = %35
  %40 = or disjoint i64 %26, 1
  %41 = getelementptr inbounds i8, ptr %3, i64 %40
  %42 = load i8, ptr %41, align 1, !tbaa !9
  %43 = icmp eq i8 %42, 0
  %narrow93 = add nsw i8 %37, -32
  %spec.select99 = select i1 %43, i8 %narrow93, i8 %37
  br label %44

44:                                               ; preds = %39, %35
  %.0 = phi i8 [ %37, %35 ], [ %spec.select99, %39 ]
  %.not94 = icmp eq i8 %.078, %.0
  br i1 %.not94, label %45, label %53

45:                                               ; preds = %44
  %46 = or disjoint i64 %26, 1
  %47 = getelementptr inbounds i8, ptr %1, i64 %46
  %48 = load i8, ptr %47, align 1, !tbaa !9
  %49 = getelementptr inbounds i8, ptr %3, i64 %46
  %50 = load i8, ptr %49, align 1, !tbaa !9
  %.not95 = icmp eq i8 %48, %50
  %51 = add nuw i64 %.080, 1
  %52 = icmp ult i64 %51, %2
  %or.cond101 = and i1 %52, %.not95
  br i1 %or.cond101, label %.preheader105, label %53, !llvm.loop !19

53:                                               ; preds = %44, %45
  %.179 = phi i8 [ %.078, %44 ], [ %48, %45 ]
  %.1 = phi i8 [ %.0, %44 ], [ %50, %45 ]
  %.not96 = icmp eq i8 %.179, %.1
  br i1 %.not96, label %54, label %.sink.split

54:                                               ; preds = %53, %19
  store i8 122, ptr @_fx_unicode_temp_long_file_name, align 16, !tbaa !9
  %55 = icmp ugt i64 %.pre, 1
  br i1 %55, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %54
  %56 = add i64 %.pre, -1
  %xtraiter = and i64 %56, 1
  %57 = icmp eq i64 %.pre, 2
  br i1 %57, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i64 %56, -2
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %.181107 = phi i64 [ 1, %.lr.ph.preheader.new ], [ %67, %.lr.ph ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.1, %.lr.ph ]
  %58 = urem i64 %.181107, 9
  %59 = trunc nuw nsw i64 %58 to i8
  %60 = or disjoint i8 %59, 48
  %61 = getelementptr inbounds [256 x i8], ptr @_fx_unicode_temp_long_file_name, i64 0, i64 %.181107
  store i8 %60, ptr %61, align 1, !tbaa !9
  %62 = add nuw i64 %.181107, 1
  %63 = urem i64 %62, 9
  %64 = trunc nuw nsw i64 %63 to i8
  %65 = or disjoint i8 %64, 48
  %66 = getelementptr inbounds [256 x i8], ptr @_fx_unicode_temp_long_file_name, i64 0, i64 %62
  store i8 %65, ptr %66, align 1, !tbaa !9
  %67 = add nuw i64 %.181107, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph, !llvm.loop !21

._crit_edge.loopexit.unr-lcssa:                   ; preds = %.lr.ph, %.lr.ph.preheader
  %.181107.unr = phi i64 [ 1, %.lr.ph.preheader ], [ %67, %.lr.ph ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %._crit_edge.loopexit.unr-lcssa
  %68 = urem i64 %.181107.unr, 9
  %69 = trunc nuw nsw i64 %68 to i8
  %70 = or disjoint i8 %69, 48
  %71 = getelementptr inbounds [256 x i8], ptr @_fx_unicode_temp_long_file_name, i64 0, i64 %.181107.unr
  store i8 %70, ptr %71, align 1, !tbaa !9
  br label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph.epil, %._crit_edge.loopexit.unr-lcssa, %54
  %.181.lcssa = phi i64 [ 1, %54 ], [ %.pre, %._crit_edge.loopexit.unr-lcssa ], [ %.pre, %.lr.ph.epil ]
  %72 = getelementptr inbounds [256 x i8], ptr @_fx_unicode_temp_long_file_name, i64 0, i64 %.181.lcssa
  store i8 0, ptr %72, align 1, !tbaa !9
  br label %73

73:                                               ; preds = %75, %._crit_edge
  %74 = call i32 @_fx_file_rename(ptr noundef nonnull %0, ptr noundef nonnull %8, ptr noundef nonnull @_fx_unicode_temp_long_file_name) #3
  switch i32 %74, label %.sink.split [
    i32 11, label %75
    i32 0, label %79
  ]

75:                                               ; preds = %73
  %76 = load i8, ptr @_fx_unicode_temp_long_file_name, align 16, !tbaa !9
  %77 = add i8 %76, -1
  store i8 %77, ptr @_fx_unicode_temp_long_file_name, align 16, !tbaa !9
  %78 = icmp ugt i8 %77, 96
  br i1 %78, label %73, label %.sink.split, !llvm.loop !22

79:                                               ; preds = %73
  store ptr %20, ptr %10, align 8, !tbaa !18
  store i8 0, ptr %21, align 8, !tbaa !9
  %80 = call i32 @_fx_directory_search(ptr noundef nonnull %0, ptr noundef nonnull @_fx_unicode_temp_long_file_name, ptr noundef nonnull %10, ptr noundef null, ptr noundef null) #3
  %.not98 = icmp eq i32 %80, 0
  br i1 %.not98, label %81, label %.sink.split

81:                                               ; preds = %79
  %82 = load i64, ptr %7, align 8, !tbaa !5
  %83 = call i32 @_fx_unicode_directory_entry_change(ptr noundef nonnull %0, ptr noundef nonnull %10, ptr noundef %3, i64 noundef %82) #3
  %84 = icmp eq i32 %83, 0
  br i1 %84, label %.preheader.preheader, label %.sink.split

.preheader.preheader:                             ; preds = %81
  %85 = load i8, ptr %21, align 8, !tbaa !9
  store i8 %85, ptr %5, align 1, !tbaa !9
  %86 = icmp eq i8 %85, 0
  br i1 %86, label %.sink.split, label %.preheader.1

.preheader.1:                                     ; preds = %.preheader.preheader
  %87 = getelementptr inbounds i8, ptr %10, i64 9
  %88 = load i8, ptr %87, align 1, !tbaa !9
  %89 = getelementptr inbounds i8, ptr %5, i64 1
  store i8 %88, ptr %89, align 1, !tbaa !9
  %90 = icmp eq i8 %88, 0
  br i1 %90, label %.sink.split, label %.preheader.2

.preheader.2:                                     ; preds = %.preheader.1
  %91 = getelementptr inbounds i8, ptr %10, i64 10
  %92 = load i8, ptr %91, align 2, !tbaa !9
  %93 = getelementptr inbounds i8, ptr %5, i64 2
  store i8 %92, ptr %93, align 1, !tbaa !9
  %94 = icmp eq i8 %92, 0
  br i1 %94, label %.sink.split, label %.preheader.3

.preheader.3:                                     ; preds = %.preheader.2
  %95 = getelementptr inbounds i8, ptr %10, i64 11
  %96 = load i8, ptr %95, align 1, !tbaa !9
  %97 = getelementptr inbounds i8, ptr %5, i64 3
  store i8 %96, ptr %97, align 1, !tbaa !9
  %98 = icmp eq i8 %96, 0
  br i1 %98, label %.sink.split, label %.preheader.4

.preheader.4:                                     ; preds = %.preheader.3
  %99 = getelementptr inbounds i8, ptr %10, i64 12
  %100 = load i8, ptr %99, align 4, !tbaa !9
  %101 = getelementptr inbounds i8, ptr %5, i64 4
  store i8 %100, ptr %101, align 1, !tbaa !9
  %102 = icmp eq i8 %100, 0
  br i1 %102, label %.sink.split, label %.preheader.5

.preheader.5:                                     ; preds = %.preheader.4
  %103 = getelementptr inbounds i8, ptr %10, i64 13
  %104 = load i8, ptr %103, align 1, !tbaa !9
  %105 = getelementptr inbounds i8, ptr %5, i64 5
  store i8 %104, ptr %105, align 1, !tbaa !9
  %106 = icmp eq i8 %104, 0
  br i1 %106, label %.sink.split, label %.preheader.6

.preheader.6:                                     ; preds = %.preheader.5
  %107 = getelementptr inbounds i8, ptr %10, i64 14
  %108 = load i8, ptr %107, align 2, !tbaa !9
  %109 = getelementptr inbounds i8, ptr %5, i64 6
  store i8 %108, ptr %109, align 1, !tbaa !9
  %110 = icmp eq i8 %108, 0
  br i1 %110, label %.sink.split, label %.preheader.7

.preheader.7:                                     ; preds = %.preheader.6
  %111 = getelementptr inbounds i8, ptr %10, i64 15
  %112 = load i8, ptr %111, align 1, !tbaa !9
  %113 = getelementptr inbounds i8, ptr %5, i64 7
  store i8 %112, ptr %113, align 1, !tbaa !9
  br label %.sink.split

.sink.split:                                      ; preds = %73, %75, %81, %.preheader.6, %.preheader.5, %.preheader.4, %.preheader.3, %.preheader.2, %.preheader.1, %.preheader.preheader, %.preheader.7, %79, %53, %24
  %.082.ph = phi i32 [ 11, %24 ], [ 11, %53 ], [ %80, %79 ], [ %83, %.preheader.7 ], [ %83, %.preheader.preheader ], [ %83, %.preheader.1 ], [ %83, %.preheader.2 ], [ %83, %.preheader.3 ], [ %83, %.preheader.4 ], [ %83, %.preheader.5 ], [ %83, %.preheader.6 ], [ %83, %81 ], [ %74, %75 ], [ %74, %73 ]
  %114 = call i32 @_tx_mutex_put(ptr noundef nonnull %17) #3
  br label %115

115:                                              ; preds = %.sink.split, %16, %14, %12, %6
  %.082 = phi i32 [ 17, %6 ], [ %13, %12 ], [ 17, %14 ], [ 17, %16 ], [ %.082.ph, %.sink.split ]
  call void @llvm.lifetime.end.p0(i64 136, ptr nonnull %10) #3
  call void @llvm.lifetime.end.p0(i64 13, ptr nonnull %9) #3
  call void @llvm.lifetime.end.p0(i64 13, ptr nonnull %8) #3
  ret i32 %.082
}

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

declare i32 @_fx_unicode_short_name_get(ptr noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

declare i32 @_tx_mutex_get(ptr noundef, i64 noundef) local_unnamed_addr #2

declare i32 @_fx_unicode_directory_search(ptr noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #2

declare i32 @_tx_mutex_put(ptr noundef) local_unnamed_addr #2

declare i32 @_fx_file_rename(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare i32 @_fx_directory_search(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare i32 @_fx_unicode_directory_entry_change(ptr noundef, ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #2

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

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 nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !6, i64 0}
!11 = !{!"FX_MEDIA_STRUCT", !6, i64 0, !12, i64 8, !12, i64 16, !6, i64 24, !13, i64 32, !6, i64 40, !12, i64 48, !12, i64 56, !6, i64 64, !6, i64 72, !13, i64 80, !13, i64 84, !13, i64 88, !14, i64 96, !6, i64 104, !13, i64 112, !13, i64 116, !13, i64 120, !13, i64 124, !13, i64 128, !13, i64 132, !13, i64 136, !13, i64 140, !13, i64 144, !6, i64 152, !13, i64 160, !6, i64 168, !6, i64 176, !13, i64 184, !6, i64 192, !6, i64 200, !12, i64 208, !13, i64 216, !13, i64 220, !12, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !13, i64 256, !13, i64 260, !13, i64 264, !13, i64 268, !13, i64 272, !13, i64 276, !13, i64 280, !12, i64 288, !12, i64 296, !12, i64 304, !12, i64 312, !6, i64 320, !12, i64 328, !12, i64 336, !6, i64 344, !6, i64 352, !6, i64 360, !6, i64 368, !6, i64 376, !6, i64 384, !6, i64 392, !6, i64 400, !6, i64 408, !6, i64 416, !6, i64 424, !6, i64 432, !6, i64 440, !6, i64 448, !6, i64 456, !6, i64 464, !6, i64 472, !6, i64 480, !6, i64 488, !6, i64 496, !6, i64 504, !6, i64 512, !6, i64 520, !6, i64 528, !6, i64 536, !6, i64 544, !6, i64 552, !6, i64 560, !6, i64 568, !6, i64 576, !6, i64 584, !6, i64 592, !6, i64 600, !6, i64 608, !6, i64 616, !6, i64 624, !6, i64 632, !6, i64 640, !6, i64 648, !6, i64 656, !6, i64 664, !6, i64 672, !6, i64 680, !6, i64 688, !6, i64 696, !6, i64 704, !6, i64 712, !6, i64 720, !6, i64 728, !6, i64 736, !6, i64 744, !6, i64 752, !6, i64 760, !6, i64 768, !6, i64 776, !6, i64 784, !6, i64 792, !6, i64 800, !6, i64 808, !6, i64 816, !15, i64 824, !13, i64 920, !16, i64 928, !16, i64 1064, !7, i64 1200, !7, i64 1456, !17, i64 1712, !7, i64 2368, !7, i64 2752, !6, i64 2880, !7, i64 2888, !7, i64 3912, !6, i64 12104, !6, i64 12112, !6, i64 12120, !6, i64 12128, !7, i64 12136}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!"long long", !7, i64 0}
!15 = !{!"TX_MUTEX_STRUCT", !6, i64 0, !12, i64 8, !13, i64 16, !12, i64 24, !13, i64 32, !13, i64 36, !12, i64 40, !13, i64 48, !12, i64 56, !12, i64 64, !13, i64 72, !12, i64 80, !12, i64 88}
!16 = !{!"FX_DIR_ENTRY_STRUCT", !12, i64 0, !7, i64 8, !13, i64 24, !13, i64 28, !7, i64 32, !7, i64 33, !7, i64 34, !13, i64 36, !13, i64 40, !13, i64 44, !13, i64 48, !13, i64 52, !6, i64 56, !14, i64 64, !14, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !14, i64 112, !6, i64 120, !14, i64 128}
!17 = !{!"FX_PATH_STRUCT", !16, i64 0, !7, i64 136, !7, i64 392, !6, i64 648}
!18 = !{!16, !12, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = distinct !{!22, !20}


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