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

; 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 }
%struct.TX_THREAD_STRUCT = type { i64, i64, ptr, ptr, ptr, i64, i64, i64, ptr, ptr, ptr, i32, i32, i32, i32, i32, ptr, ptr, i64, %struct.TX_TIMER_INTERNAL_STRUCT, ptr, ptr, ptr, ptr, i64, ptr, i32, i32, ptr, ptr, ptr, ptr, i32, i32, i32, i32, ptr, ptr, ptr, i64 }
%struct.TX_TIMER_INTERNAL_STRUCT = type { i64, i64, ptr, i64, ptr, ptr, ptr }

@_tx_thread_current_ptr = external global ptr, align 8

; Function Attrs: nounwind uwtable
define dso_local i32 @_fx_directory_next_full_entry_find(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9) #0 {
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca i64, align 8
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i64, align 8
  %26 = alloca i64, align 8
  %27 = alloca i64, align 8
  %28 = alloca %struct.FX_DIR_ENTRY_STRUCT, align 8
  %29 = alloca ptr, align 8
  %30 = alloca ptr, align 8
  %31 = alloca i32, align 4
  %32 = alloca ptr, align 8
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  store ptr %0, ptr %12, align 8, !tbaa !5
  store ptr %1, ptr %13, align 8, !tbaa !5
  store ptr %2, ptr %14, align 8, !tbaa !5
  store ptr %3, ptr %15, align 8, !tbaa !5
  store ptr %4, ptr %16, align 8, !tbaa !5
  store ptr %5, ptr %17, align 8, !tbaa !5
  store ptr %6, ptr %18, align 8, !tbaa !5
  store ptr %7, ptr %19, align 8, !tbaa !5
  store ptr %8, ptr %20, align 8, !tbaa !5
  store ptr %9, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #4
  store i64 0, ptr %26, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.start.p0(i64 136, ptr %28) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #4
  store ptr null, ptr %32, align 8, !tbaa !5
  %36 = load ptr, ptr %12, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.FX_MEDIA_STRUCT, ptr %36, i32 0, i32 67
  %38 = load i64, ptr %37, align 8, !tbaa !11
  %39 = add i64 %38, 1
  store i64 %39, ptr %37, align 8, !tbaa !11
  %40 = load ptr, ptr %12, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.FX_MEDIA_STRUCT, ptr %40, i32 0, i32 122
  %42 = getelementptr inbounds [1024 x i8], ptr %41, i64 0, i64 0
  %43 = getelementptr inbounds i8, ptr %42, i64 256
  %44 = getelementptr inbounds %struct.FX_DIR_ENTRY_STRUCT, ptr %28, i32 0, i32 0
  store ptr %43, ptr %44, align 8, !tbaa !18
  %45 = getelementptr inbounds %struct.FX_DIR_ENTRY_STRUCT, ptr %28, i32 0, i32 1
  %46 = getelementptr inbounds [13 x i8], ptr %45, i64 0, i64 0
  store i8 0, ptr %46, align 8, !tbaa !19
  %47 = load ptr, ptr %12, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.FX_MEDIA_STRUCT, ptr %47, i32 0, i32 0
  %49 = load i64, ptr %48, align 8, !tbaa !20
  %50 = icmp ne i64 %49, 1296385097
  br i1 %50, label %51, label %52

51:                                               ; preds = %10
  store i32 17, ptr %11, align 4
  store i32 1, ptr %33, align 4
  br label %471

52:                                               ; preds = %10
  %53 = load ptr, ptr %12, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.FX_MEDIA_STRUCT, ptr %53, i32 0, i32 0
  %55 = load i64, ptr %54, align 8, !tbaa !20
  %56 = icmp ne i64 %55, 1296385097
  br i1 %56, label %57, label %58

57:                                               ; preds = %52
  store i32 17, ptr %11, align 4
  store i32 1, ptr %33, align 4
  br label %471

58:                                               ; preds = %52
  %59 = load ptr, ptr %12, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.FX_MEDIA_STRUCT, ptr %59, i32 0, i32 112
  %61 = call i32 @_tx_mutex_get(ptr noundef %60, i64 noundef 4294967295)
  %62 = icmp ne i32 %61, 0
  br i1 %62, label %63, label %64

63:                                               ; preds = %58
  store i32 17, ptr %11, align 4
  store i32 1, ptr %33, align 4
  br label %471

64:                                               ; preds = %58
  br label %65

65:                                               ; preds = %64
  %66 = load ptr, ptr @_tx_thread_current_ptr, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.TX_THREAD_STRUCT, ptr %66, i32 0, i32 31
  %68 = load ptr, ptr %67, align 8, !tbaa !21
  %69 = icmp ne ptr %68, null
  br i1 %69, label %70, label %91

70:                                               ; preds = %65
  %71 = load ptr, ptr @_tx_thread_current_ptr, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.TX_THREAD_STRUCT, ptr %71, i32 0, i32 31
  %73 = load ptr, ptr %72, align 8, !tbaa !21
  store ptr %73, ptr %30, align 8, !tbaa !5
  %74 = load ptr, ptr %30, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.FX_PATH_STRUCT, ptr %74, i32 0, i32 0
  %76 = getelementptr inbounds %struct.FX_DIR_ENTRY_STRUCT, ptr %75, i32 0, i32 0
  %77 = load ptr, ptr %76, align 8, !tbaa !24
  %78 = getelementptr inbounds i8, ptr %77, i64 0
  %79 = load i8, ptr %78, align 1, !tbaa !19
  %80 = icmp ne i8 %79, 0
  br i1 %80, label %81, label %89

81:                                               ; preds = %70
  %82 = load ptr, ptr @_tx_thread_current_ptr, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.TX_THREAD_STRUCT, ptr %82, i32 0, i32 31
  %84 = load ptr, ptr %83, align 8, !tbaa !21
  %85 = getelementptr inbounds %struct.FX_PATH_STRUCT, ptr %84, i32 0, i32 1
  %86 = getelementptr inbounds [256 x i8], ptr %85, i64 0, i64 0
  store ptr %86, ptr %32, align 8, !tbaa !5
  %87 = load ptr, ptr %30, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.FX_PATH_STRUCT, ptr %87, i32 0, i32 0
  store ptr %88, ptr %29, align 8, !tbaa !5
  br label %90

89:                                               ; preds = %70
  store ptr null, ptr %29, align 8, !tbaa !5
  br label %90

90:                                               ; preds = %89, %81
  br label %113

91:                                               ; preds = %65
  %92 = load ptr, ptr %12, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.FX_MEDIA_STRUCT, ptr %92, i32 0, i32 118
  %94 = getelementptr inbounds %struct.FX_PATH_STRUCT, ptr %93, i32 0, i32 0
  %95 = getelementptr inbounds %struct.FX_DIR_ENTRY_STRUCT, ptr %94, i32 0, i32 0
  %96 = load ptr, ptr %95, align 8, !tbaa !25
  %97 = getelementptr inbounds i8, ptr %96, i64 0
  %98 = load i8, ptr %97, align 1, !tbaa !19
  %99 = icmp ne i8 %98, 0
  br i1 %99, label %100, label %109

100:                                              ; preds = %91
  %101 = load ptr, ptr %12, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.FX_MEDIA_STRUCT, ptr %101, i32 0, i32 118
  store ptr %102, ptr %30, align 8, !tbaa !5
  %103 = load ptr, ptr %12, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.FX_MEDIA_STRUCT, ptr %103, i32 0, i32 118
  %105 = getelementptr inbounds %struct.FX_PATH_STRUCT, ptr %104, i32 0, i32 1
  %106 = getelementptr inbounds [256 x i8], ptr %105, i64 0, i64 0
  store ptr %106, ptr %32, align 8, !tbaa !5
  %107 = load ptr, ptr %30, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.FX_PATH_STRUCT, ptr %107, i32 0, i32 0
  store ptr %108, ptr %29, align 8, !tbaa !5
  br label %112

109:                                              ; preds = %91
  %110 = load ptr, ptr %12, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.FX_MEDIA_STRUCT, ptr %110, i32 0, i32 118
  store ptr %111, ptr %30, align 8, !tbaa !5
  store ptr null, ptr %29, align 8, !tbaa !5
  br label %112

112:                                              ; preds = %109, %100
  br label %113

113:                                              ; preds = %112, %90
  %114 = load ptr, ptr %29, align 8, !tbaa !5
  %115 = icmp ne ptr %114, null
  br i1 %115, label %116, label %186

116:                                              ; preds = %113
  %117 = load ptr, ptr %30, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.FX_PATH_STRUCT, ptr %117, i32 0, i32 3
  %119 = load i64, ptr %118, align 8, !tbaa !26
  %120 = icmp ne i64 %119, 0
  br i1 %120, label %121, label %125

121:                                              ; preds = %116
  %122 = load ptr, ptr %29, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.FX_DIR_ENTRY_STRUCT, ptr %122, i32 0, i32 13
  %124 = load i64, ptr %123, align 8, !tbaa !27
  store i64 %124, ptr %27, align 8, !tbaa !28
  br label %185

125:                                              ; preds = %116
  %126 = load ptr, ptr %29, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.FX_DIR_ENTRY_STRUCT, ptr %126, i32 0, i32 17
  store i64 0, ptr %127, align 8, !tbaa !29
  store i64 0, ptr %22, align 8, !tbaa !9
  %128 = load ptr, ptr %29, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.FX_DIR_ENTRY_STRUCT, ptr %128, i32 0, i32 12
  %130 = load i64, ptr %129, align 8, !tbaa !30
  store i64 %130, ptr %25, align 8, !tbaa !9
  br label %131

131:                                              ; preds = %167, %125
  %132 = load i64, ptr %25, align 8, !tbaa !9
  %133 = load ptr, ptr %12, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.FX_MEDIA_STRUCT, ptr %133, i32 0, i32 126
  %135 = load i64, ptr %134, align 8, !tbaa !31
  %136 = icmp ult i64 %132, %135
  br i1 %136, label %137, label %169

137:                                              ; preds = %131
  %138 = load i64, ptr %22, align 8, !tbaa !9
  %139 = add i64 %138, 1
  store i64 %139, ptr %22, align 8, !tbaa !9
  %140 = load ptr, ptr %12, align 8, !tbaa !5
  %141 = load i64, ptr %25, align 8, !tbaa !9
  %142 = call i32 @_fx_utility_FAT_entry_read(ptr noundef %140, i64 noundef %141, ptr noundef %26)
  store i32 %142, ptr %23, align 4, !tbaa !32
  %143 = load i32, ptr %23, align 4, !tbaa !32
  %144 = icmp ne i32 %143, 0
  br i1 %144, label %145, label %150

145:                                              ; preds = %137
  %146 = load ptr, ptr %12, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.FX_MEDIA_STRUCT, ptr %146, i32 0, i32 112
  %148 = call i32 @_tx_mutex_put(ptr noundef %147)
  %149 = load i32, ptr %23, align 4, !tbaa !32
  store i32 %149, ptr %11, align 4
  store i32 1, ptr %33, align 4
  br label %471

150:                                              ; preds = %137
  %151 = load i64, ptr %25, align 8, !tbaa !9
  %152 = icmp ult i64 %151, 2
  br i1 %152, label %163, label %153

153:                                              ; preds = %150
  %154 = load i64, ptr %25, align 8, !tbaa !9
  %155 = load i64, ptr %26, align 8, !tbaa !9
  %156 = icmp eq i64 %154, %155
  br i1 %156, label %163, label %157

157:                                              ; preds = %153
  %158 = load i64, ptr %22, align 8, !tbaa !9
  %159 = load ptr, ptr %12, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.FX_MEDIA_STRUCT, ptr %159, i32 0, i32 14
  %161 = load i64, ptr %160, align 8, !tbaa !33
  %162 = icmp ugt i64 %158, %161
  br i1 %162, label %163, label %167

163:                                              ; preds = %157, %153, %150
  %164 = load ptr, ptr %12, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.FX_MEDIA_STRUCT, ptr %164, i32 0, i32 112
  %166 = call i32 @_tx_mutex_put(ptr noundef %165)
  store i32 3, ptr %11, align 4
  store i32 1, ptr %33, align 4
  br label %471

167:                                              ; preds = %157
  %168 = load i64, ptr %26, align 8, !tbaa !9
  store i64 %168, ptr %25, align 8, !tbaa !9
  br label %131, !llvm.loop !34

169:                                              ; preds = %131
  %170 = load ptr, ptr %12, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.FX_MEDIA_STRUCT, ptr %170, i32 0, i32 10
  %172 = load i32, ptr %171, align 8, !tbaa !36
  %173 = zext i32 %172 to i64
  %174 = load ptr, ptr %12, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.FX_MEDIA_STRUCT, ptr %174, i32 0, i32 19
  %176 = load i32, ptr %175, align 8, !tbaa !37
  %177 = zext i32 %176 to i64
  %178 = mul i64 %173, %177
  %179 = load i64, ptr %22, align 8, !tbaa !9
  %180 = mul i64 %178, %179
  %181 = udiv i64 %180, 32
  store i64 %181, ptr %27, align 8, !tbaa !28
  %182 = load i64, ptr %27, align 8, !tbaa !28
  %183 = load ptr, ptr %29, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.FX_DIR_ENTRY_STRUCT, ptr %183, i32 0, i32 13
  store i64 %182, ptr %184, align 8, !tbaa !27
  br label %185

185:                                              ; preds = %169, %121
  br label %191

186:                                              ; preds = %113
  %187 = load ptr, ptr %12, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.FX_MEDIA_STRUCT, ptr %187, i32 0, i32 28
  %189 = load i32, ptr %188, align 8, !tbaa !38
  %190 = zext i32 %189 to i64
  store i64 %190, ptr %27, align 8, !tbaa !28
  br label %191

191:                                              ; preds = %186, %185
  store i32 15, ptr %23, align 4, !tbaa !32
  br label %192

192:                                              ; preds = %224, %191
  %193 = load ptr, ptr %30, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.FX_PATH_STRUCT, ptr %193, i32 0, i32 3
  %195 = load i64, ptr %194, align 8, !tbaa !26
  %196 = load i64, ptr %27, align 8, !tbaa !28
  %197 = icmp ult i64 %195, %196
  br i1 %197, label %198, label %466

198:                                              ; preds = %192
  %199 = load ptr, ptr %12, align 8, !tbaa !5
  %200 = load ptr, ptr %29, align 8, !tbaa !5
  %201 = load ptr, ptr %30, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.FX_PATH_STRUCT, ptr %201, i32 0, i32 3
  %203 = call i32 @_fx_directory_entry_read(ptr noundef %199, ptr noundef %200, ptr noundef %202, ptr noundef %28)
  store i32 %203, ptr %24, align 4, !tbaa !32
  %204 = load i32, ptr %24, align 4, !tbaa !32
  %205 = icmp ne i32 %204, 0
  br i1 %205, label %206, label %211

206:                                              ; preds = %198
  %207 = load ptr, ptr %12, align 8, !tbaa !5
  %208 = getelementptr inbounds %struct.FX_MEDIA_STRUCT, ptr %207, i32 0, i32 112
  %209 = call i32 @_tx_mutex_put(ptr noundef %208)
  %210 = load i32, ptr %24, align 4, !tbaa !32
  store i32 %210, ptr %11, align 4
  store i32 1, ptr %33, align 4
  br label %471

211:                                              ; preds = %198
  %212 = getelementptr inbounds %struct.FX_DIR_ENTRY_STRUCT, ptr %28, i32 0, i32 0
  %213 = load ptr, ptr %212, align 8, !tbaa !18
  %214 = getelementptr inbounds i8, ptr %213, i64 0
  %215 = load i8, ptr %214, align 1, !tbaa !19
  %216 = zext i8 %215 to i32
  %217 = icmp eq i32 %216, 229
  br i1 %217, label %218, label %229

218:                                              ; preds = %211
  %219 = getelementptr inbounds %struct.FX_DIR_ENTRY_STRUCT, ptr %28, i32 0, i32 1
  %220 = getelementptr inbounds [13 x i8], ptr %219, i64 0, i64 0
  %221 = load i8, ptr %220, align 8, !tbaa !19
  %222 = sext i8 %221 to i32
  %223 = icmp eq i32 %222, 0
  br i1 %223, label %224, label %229

224:                                              ; preds = %218
  %225 = load ptr, ptr %30, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct.FX_PATH_STRUCT, ptr %225, i32 0, i32 3
  %227 = load i64, ptr %226, align 8, !tbaa !26
  %228 = add i64 %227, 1
  store i64 %228, ptr %226, align 8, !tbaa !26
  br label %192, !llvm.loop !39

229:                                              ; preds = %218, %211
  %230 = getelementptr inbounds %struct.FX_DIR_ENTRY_STRUCT, ptr %28, i32 0, i32 0
  %231 = load ptr, ptr %230, align 8, !tbaa !18
  %232 = getelementptr inbounds i8, ptr %231, i64 0
  %233 = load i8, ptr %232, align 1, !tbaa !19
  %234 = zext i8 %233 to i32
  %235 = icmp ne i32 %234, 0
  br i1 %235, label %236, label %465

236:                                              ; preds = %229
  store i64 0, ptr %22, align 8, !tbaa !9
  br label %237

237:                                              ; preds = %253, %236
  %238 = getelementptr inbounds %struct.FX_DIR_ENTRY_STRUCT, ptr %28, i32 0, i32 0
  %239 = load ptr, ptr %238, align 8, !tbaa !18
  %240 = load i64, ptr %22, align 8, !tbaa !9
  %241 = getelementptr inbounds i8, ptr %239, i64 %240
  %242 = load i8, ptr %241, align 1, !tbaa !19
  %243 = icmp ne i8 %242, 0
  br i1 %243, label %244, label %256

244:                                              ; preds = %237
  %245 = getelementptr inbounds %struct.FX_DIR_ENTRY_STRUCT, ptr %28, i32 0, i32 0
  %246 = load ptr, ptr %245, align 8, !tbaa !18
  %247 = load i64, ptr %22, align 8, !tbaa !9
  %248 = getelementptr inbounds i8, ptr %246, i64 %247
  %249 = load i8, ptr %248, align 1, !tbaa !19
  %250 = load ptr, ptr %13, align 8, !tbaa !5
  store i8 %249, ptr %250, align 1, !tbaa !19
  %251 = load ptr, ptr %13, align 8, !tbaa !5
  %252 = getelementptr inbounds i8, ptr %251, i32 1
  store ptr %252, ptr %13, align 8, !tbaa !5
  br label %253

253:                                              ; preds = %244
  %254 = load i64, ptr %22, align 8, !tbaa !9
  %255 = add i64 %254, 1
  store i64 %255, ptr %22, align 8, !tbaa !9
  br label %237, !llvm.loop !40

256:                                              ; preds = %237
  %257 = load ptr, ptr %13, align 8, !tbaa !5
  store i8 0, ptr %257, align 1, !tbaa !19
  %258 = load ptr, ptr %14, align 8, !tbaa !5
  %259 = icmp ne ptr %258, null
  br i1 %259, label %260, label %265

260:                                              ; preds = %256
  %261 = getelementptr inbounds %struct.FX_DIR_ENTRY_STRUCT, ptr %28, i32 0, i32 4
  %262 = load i8, ptr %261, align 8, !tbaa !41
  %263 = zext i8 %262 to i32
  %264 = load ptr, ptr %14, align 8, !tbaa !5
  store i32 %263, ptr %264, align 4, !tbaa !32
  br label %265

265:                                              ; preds = %260, %256
  %266 = load ptr, ptr %15, align 8, !tbaa !5
  %267 = icmp ne ptr %266, null
  br i1 %267, label %268, label %272

268:                                              ; preds = %265
  %269 = getelementptr inbounds %struct.FX_DIR_ENTRY_STRUCT, ptr %28, i32 0, i32 13
  %270 = load i64, ptr %269, align 8, !tbaa !27
  %271 = load ptr, ptr %15, align 8, !tbaa !5
  store i64 %270, ptr %271, align 8, !tbaa !9
  br label %272

272:                                              ; preds = %268, %265
  %273 = load ptr, ptr %16, align 8, !tbaa !5
  %274 = icmp ne ptr %273, null
  br i1 %274, label %275, label %282

275:                                              ; preds = %272
  %276 = getelementptr inbounds %struct.FX_DIR_ENTRY_STRUCT, ptr %28, i32 0, i32 11
  %277 = load i32, ptr %276, align 4, !tbaa !42
  %278 = lshr i32 %277, 9
  %279 = and i32 %278, 127
  %280 = add i32 %279, 1980
  %281 = load ptr, ptr %16, align 8, !tbaa !5
  store i32 %280, ptr %281, align 4, !tbaa !32
  br label %282

282:                                              ; preds = %275, %272
  %283 = load ptr, ptr %17, align 8, !tbaa !5
  %284 = icmp ne ptr %283, null
  br i1 %284, label %285, label %291

285:                                              ; preds = %282
  %286 = getelementptr inbounds %struct.FX_DIR_ENTRY_STRUCT, ptr %28, i32 0, i32 11
  %287 = load i32, ptr %286, align 4, !tbaa !42
  %288 = lshr i32 %287, 5
  %289 = and i32 %288, 15
  %290 = load ptr, ptr %17, align 8, !tbaa !5
  store i32 %289, ptr %290, align 4, !tbaa !32
  br label %291

291:                                              ; preds = %285, %282
  %292 = load ptr, ptr %18, align 8, !tbaa !5
  %293 = icmp ne ptr %292, null
  br i1 %293, label %294, label %299

294:                                              ; preds = %291
  %295 = getelementptr inbounds %struct.FX_DIR_ENTRY_STRUCT, ptr %28, i32 0, i32 11
  %296 = load i32, ptr %295, align 4, !tbaa !42
  %297 = and i32 %296, 31
  %298 = load ptr, ptr %18, align 8, !tbaa !5
  store i32 %297, ptr %298, align 4, !tbaa !32
  br label %299

299:                                              ; preds = %294, %291
  %300 = load ptr, ptr %19, align 8, !tbaa !5
  %301 = icmp ne ptr %300, null
  br i1 %301, label %302, label %308

302:                                              ; preds = %299
  %303 = getelementptr inbounds %struct.FX_DIR_ENTRY_STRUCT, ptr %28, i32 0, i32 10
  %304 = load i32, ptr %303, align 8, !tbaa !43
  %305 = lshr i32 %304, 11
  %306 = and i32 %305, 31
  %307 = load ptr, ptr %19, align 8, !tbaa !5
  store i32 %306, ptr %307, align 4, !tbaa !32
  br label %308

308:                                              ; preds = %302, %299
  %309 = load ptr, ptr %20, align 8, !tbaa !5
  %310 = icmp ne ptr %309, null
  br i1 %310, label %311, label %317

311:                                              ; preds = %308
  %312 = getelementptr inbounds %struct.FX_DIR_ENTRY_STRUCT, ptr %28, i32 0, i32 10
  %313 = load i32, ptr %312, align 8, !tbaa !43
  %314 = lshr i32 %313, 5
  %315 = and i32 %314, 63
  %316 = load ptr, ptr %20, align 8, !tbaa !5
  store i32 %315, ptr %316, align 4, !tbaa !32
  br label %317

317:                                              ; preds = %311, %308
  %318 = load ptr, ptr %21, align 8, !tbaa !5
  %319 = icmp ne ptr %318, null
  br i1 %319, label %320, label %326

320:                                              ; preds = %317
  %321 = getelementptr inbounds %struct.FX_DIR_ENTRY_STRUCT, ptr %28, i32 0, i32 10
  %322 = load i32, ptr %321, align 8, !tbaa !43
  %323 = and i32 %322, 31
  %324 = mul i32 %323, 2
  %325 = load ptr, ptr %21, align 8, !tbaa !5
  store i32 %324, ptr %325, align 4, !tbaa !32
  br label %326

326:                                              ; preds = %320, %317
  %327 = load ptr, ptr %30, align 8, !tbaa !5
  %328 = getelementptr inbounds %struct.FX_PATH_STRUCT, ptr %327, i32 0, i32 3
  %329 = load i64, ptr %328, align 8, !tbaa !26
  %330 = add i64 %329, 1
  store i64 %330, ptr %328, align 8, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #4
  store i32 0, ptr %34, align 4, !tbaa !32
  %331 = load ptr, ptr %32, align 8, !tbaa !5
  %332 = icmp ne ptr %331, null
  br i1 %332, label %333, label %361

333:                                              ; preds = %326
  br label %334

334:                                              ; preds = %347, %333
  %335 = load i32, ptr %34, align 4, !tbaa !32
  %336 = icmp ult i32 %335, 255
  br i1 %336, label %337, label %345

337:                                              ; preds = %334
  %338 = load ptr, ptr %32, align 8, !tbaa !5
  %339 = load i32, ptr %34, align 4, !tbaa !32
  %340 = zext i32 %339 to i64
  %341 = getelementptr inbounds i8, ptr %338, i64 %340
  %342 = load i8, ptr %341, align 1, !tbaa !19
  %343 = sext i8 %342 to i32
  %344 = icmp ne i32 %343, 0
  br label %345

345:                                              ; preds = %337, %334
  %346 = phi i1 [ false, %334 ], [ %344, %337 ]
  br i1 %346, label %347, label %360

347:                                              ; preds = %345
  %348 = load ptr, ptr %32, align 8, !tbaa !5
  %349 = load i32, ptr %34, align 4, !tbaa !32
  %350 = zext i32 %349 to i64
  %351 = getelementptr inbounds i8, ptr %348, i64 %350
  %352 = load i8, ptr %351, align 1, !tbaa !19
  %353 = load ptr, ptr %12, align 8, !tbaa !5
  %354 = getelementptr inbounds %struct.FX_MEDIA_STRUCT, ptr %353, i32 0, i32 117
  %355 = load i32, ptr %34, align 4, !tbaa !32
  %356 = zext i32 %355 to i64
  %357 = getelementptr inbounds [256 x i8], ptr %354, i64 0, i64 %356
  store i8 %352, ptr %357, align 1, !tbaa !19
  %358 = load i32, ptr %34, align 4, !tbaa !32
  %359 = add i32 %358, 1
  store i32 %359, ptr %34, align 4, !tbaa !32
  br label %334, !llvm.loop !44

360:                                              ; preds = %345
  br label %361

361:                                              ; preds = %360, %326
  %362 = load ptr, ptr %12, align 8, !tbaa !5
  %363 = getelementptr inbounds %struct.FX_MEDIA_STRUCT, ptr %362, i32 0, i32 117
  %364 = load i32, ptr %34, align 4, !tbaa !32
  %365 = add i32 %364, 1
  store i32 %365, ptr %34, align 4, !tbaa !32
  %366 = zext i32 %364 to i64
  %367 = getelementptr inbounds [256 x i8], ptr %363, i64 0, i64 %366
  store i8 47, ptr %367, align 1, !tbaa !19
  store i32 0, ptr %35, align 4, !tbaa !32
  br label %368

368:                                              ; preds = %382, %361
  %369 = load i32, ptr %34, align 4, !tbaa !32
  %370 = icmp ult i32 %369, 256
  br i1 %370, label %371, label %380

371:                                              ; preds = %368
  %372 = getelementptr inbounds %struct.FX_DIR_ENTRY_STRUCT, ptr %28, i32 0, i32 0
  %373 = load ptr, ptr %372, align 8, !tbaa !18
  %374 = load i32, ptr %35, align 4, !tbaa !32
  %375 = zext i32 %374 to i64
  %376 = getelementptr inbounds i8, ptr %373, i64 %375
  %377 = load i8, ptr %376, align 1, !tbaa !19
  %378 = sext i8 %377 to i32
  %379 = icmp ne i32 %378, 0
  br label %380

380:                                              ; preds = %371, %368
  %381 = phi i1 [ false, %368 ], [ %379, %371 ]
  br i1 %381, label %382, label %398

382:                                              ; preds = %380
  %383 = getelementptr inbounds %struct.FX_DIR_ENTRY_STRUCT, ptr %28, i32 0, i32 0
  %384 = load ptr, ptr %383, align 8, !tbaa !18
  %385 = load i32, ptr %35, align 4, !tbaa !32
  %386 = zext i32 %385 to i64
  %387 = getelementptr inbounds i8, ptr %384, i64 %386
  %388 = load i8, ptr %387, align 1, !tbaa !19
  %389 = load ptr, ptr %12, align 8, !tbaa !5
  %390 = getelementptr inbounds %struct.FX_MEDIA_STRUCT, ptr %389, i32 0, i32 117
  %391 = load i32, ptr %34, align 4, !tbaa !32
  %392 = zext i32 %391 to i64
  %393 = getelementptr inbounds [256 x i8], ptr %390, i64 0, i64 %392
  store i8 %388, ptr %393, align 1, !tbaa !19
  %394 = load i32, ptr %34, align 4, !tbaa !32
  %395 = add i32 %394, 1
  store i32 %395, ptr %34, align 4, !tbaa !32
  %396 = load i32, ptr %35, align 4, !tbaa !32
  %397 = add i32 %396, 1
  store i32 %397, ptr %35, align 4, !tbaa !32
  br label %368, !llvm.loop !45

398:                                              ; preds = %380
  %399 = load i32, ptr %34, align 4, !tbaa !32
  %400 = icmp ult i32 %399, 256
  br i1 %400, label %401, label %407

401:                                              ; preds = %398
  %402 = load ptr, ptr %12, align 8, !tbaa !5
  %403 = getelementptr inbounds %struct.FX_MEDIA_STRUCT, ptr %402, i32 0, i32 117
  %404 = load i32, ptr %34, align 4, !tbaa !32
  %405 = zext i32 %404 to i64
  %406 = getelementptr inbounds [256 x i8], ptr %403, i64 0, i64 %405
  store i8 0, ptr %406, align 1, !tbaa !19
  br label %411

407:                                              ; preds = %398
  %408 = load ptr, ptr %12, align 8, !tbaa !5
  %409 = getelementptr inbounds %struct.FX_MEDIA_STRUCT, ptr %408, i32 0, i32 117
  %410 = getelementptr inbounds [256 x i8], ptr %409, i64 0, i64 0
  store i8 0, ptr %410, align 8, !tbaa !19
  br label %411

411:                                              ; preds = %407, %401
  %412 = load ptr, ptr %29, align 8, !tbaa !5
  %413 = icmp ne ptr %412, null
  br i1 %413, label %414, label %420

414:                                              ; preds = %411
  %415 = load ptr, ptr %12, align 8, !tbaa !5
  %416 = getelementptr inbounds %struct.FX_MEDIA_STRUCT, ptr %415, i32 0, i32 114
  %417 = load ptr, ptr %29, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %416, ptr align 8 %417, i64 136, i1 false), !tbaa.struct !46
  %418 = load ptr, ptr %12, align 8, !tbaa !5
  %419 = getelementptr inbounds %struct.FX_MEDIA_STRUCT, ptr %418, i32 0, i32 113
  store i32 1, ptr %419, align 8, !tbaa !47
  br label %423

420:                                              ; preds = %411
  %421 = load ptr, ptr %12, align 8, !tbaa !5
  %422 = getelementptr inbounds %struct.FX_MEDIA_STRUCT, ptr %421, i32 0, i32 113
  store i32 0, ptr %422, align 8, !tbaa !47
  br label %423

423:                                              ; preds = %420, %414
  %424 = load ptr, ptr %12, align 8, !tbaa !5
  %425 = getelementptr inbounds %struct.FX_MEDIA_STRUCT, ptr %424, i32 0, i32 115
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %425, ptr align 8 %28, i64 136, i1 false), !tbaa.struct !46
  %426 = load ptr, ptr %12, align 8, !tbaa !5
  %427 = getelementptr inbounds %struct.FX_MEDIA_STRUCT, ptr %426, i32 0, i32 116
  %428 = getelementptr inbounds [256 x i8], ptr %427, i64 0, i64 0
  %429 = load ptr, ptr %12, align 8, !tbaa !5
  %430 = getelementptr inbounds %struct.FX_MEDIA_STRUCT, ptr %429, i32 0, i32 115
  %431 = getelementptr inbounds %struct.FX_DIR_ENTRY_STRUCT, ptr %430, i32 0, i32 0
  store ptr %428, ptr %431, align 8, !tbaa !48
  store i32 0, ptr %31, align 4, !tbaa !32
  br label %432

432:                                              ; preds = %461, %423
  %433 = load i32, ptr %31, align 4, !tbaa !32
  %434 = icmp ult i32 %433, 256
  br i1 %434, label %435, label %464

435:                                              ; preds = %432
  %436 = getelementptr inbounds %struct.FX_DIR_ENTRY_STRUCT, ptr %28, i32 0, i32 0
  %437 = load ptr, ptr %436, align 8, !tbaa !18
  %438 = load i32, ptr %31, align 4, !tbaa !32
  %439 = zext i32 %438 to i64
  %440 = getelementptr inbounds i8, ptr %437, i64 %439
  %441 = load i8, ptr %440, align 1, !tbaa !19
  %442 = load ptr, ptr %12, align 8, !tbaa !5
  %443 = getelementptr inbounds %struct.FX_MEDIA_STRUCT, ptr %442, i32 0, i32 116
  %444 = load i32, ptr %31, align 4, !tbaa !32
  %445 = zext i32 %444 to i64
  %446 = getelementptr inbounds [256 x i8], ptr %443, i64 0, i64 %445
  store i8 %441, ptr %446, align 1, !tbaa !19
  %447 = getelementptr inbounds %struct.FX_DIR_ENTRY_STRUCT, ptr %28, i32 0, i32 0
  %448 = load ptr, ptr %447, align 8, !tbaa !18
  %449 = load i32, ptr %31, align 4, !tbaa !32
  %450 = zext i32 %449 to i64
  %451 = getelementptr inbounds i8, ptr %448, i64 %450
  %452 = load i8, ptr %451, align 1, !tbaa !19
  %453 = sext i8 %452 to i32
  %454 = icmp eq i32 %453, 0
  br i1 %454, label %455, label %460

455:                                              ; preds = %435
  %456 = load i32, ptr %34, align 4, !tbaa !32
  %457 = icmp ult i32 %456, 255
  br i1 %457, label %458, label %459

458:                                              ; preds = %455
  br label %464

459:                                              ; preds = %455
  br label %460

460:                                              ; preds = %459, %435
  br label %461

461:                                              ; preds = %460
  %462 = load i32, ptr %31, align 4, !tbaa !32
  %463 = add i32 %462, 1
  store i32 %463, ptr %31, align 4, !tbaa !32
  br label %432, !llvm.loop !49

464:                                              ; preds = %458, %432
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #4
  store i32 0, ptr %23, align 4, !tbaa !32
  br label %466

465:                                              ; preds = %229
  store i32 15, ptr %23, align 4, !tbaa !32
  br label %466

466:                                              ; preds = %465, %464, %192
  %467 = load ptr, ptr %12, align 8, !tbaa !5
  %468 = getelementptr inbounds %struct.FX_MEDIA_STRUCT, ptr %467, i32 0, i32 112
  %469 = call i32 @_tx_mutex_put(ptr noundef %468)
  %470 = load i32, ptr %23, align 4, !tbaa !32
  store i32 %470, ptr %11, align 4
  store i32 1, ptr %33, align 4
  br label %471

471:                                              ; preds = %466, %206, %163, %145, %63, %57, %51
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 136, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  %472 = load i32, ptr %11, align 4
  ret i32 %472
}

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

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

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

declare i32 @_tx_mutex_put(ptr noundef) #2

declare i32 @_fx_directory_entry_read(ptr noundef, ptr noundef, ptr noundef, 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: 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 = { 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 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 464}
!12 = !{!"FX_MEDIA_STRUCT", !10, i64 0, !6, i64 8, !6, i64 16, !10, i64 24, !13, i64 32, !10, i64 40, !6, i64 48, !6, i64 56, !10, i64 64, !10, i64 72, !13, i64 80, !13, i64 84, !13, i64 88, !14, i64 96, !10, 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, !10, i64 152, !13, i64 160, !10, i64 168, !10, i64 176, !13, i64 184, !10, i64 192, !10, i64 200, !6, i64 208, !13, i64 216, !13, i64 220, !6, i64 224, !10, i64 232, !10, i64 240, !10, i64 248, !13, i64 256, !13, i64 260, !13, i64 264, !13, i64 268, !13, i64 272, !13, i64 276, !13, 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, !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, !10, i64 2880, !7, i64 2888, !7, i64 3912, !10, i64 12104, !10, i64 12112, !10, i64 12120, !10, i64 12128, !7, i64 12136}
!13 = !{!"int", !7, i64 0}
!14 = !{!"long long", !7, i64 0}
!15 = !{!"TX_MUTEX_STRUCT", !10, i64 0, !6, i64 8, !13, i64 16, !6, i64 24, !13, i64 32, !13, i64 36, !6, i64 40, !13, i64 48, !6, i64 56, !6, i64 64, !13, i64 72, !6, i64 80, !6, i64 88}
!16 = !{!"FX_DIR_ENTRY_STRUCT", !6, 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, !10, i64 56, !14, i64 64, !14, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !14, i64 112, !10, i64 120, !14, i64 128}
!17 = !{!"FX_PATH_STRUCT", !16, i64 0, !7, i64 136, !7, i64 392, !10, i64 648}
!18 = !{!16, !6, i64 0}
!19 = !{!7, !7, i64 0}
!20 = !{!12, !10, i64 0}
!21 = !{!22, !6, i64 272}
!22 = !{!"TX_THREAD_STRUCT", !10, i64 0, !10, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !13, i64 88, !13, i64 92, !13, i64 96, !13, i64 100, !13, i64 104, !6, i64 112, !6, i64 120, !10, i64 128, !23, i64 136, !6, i64 192, !6, i64 200, !6, i64 208, !6, i64 216, !10, i64 224, !6, i64 232, !13, i64 240, !13, i64 244, !6, i64 248, !6, i64 256, !6, i64 264, !6, i64 272, !13, i64 280, !13, i64 284, !13, i64 288, !13, i64 292, !6, i64 296, !6, i64 304, !6, i64 312, !10, i64 320}
!23 = !{!"TX_TIMER_INTERNAL_STRUCT", !10, i64 0, !10, i64 8, !6, i64 16, !10, i64 24, !6, i64 32, !6, i64 40, !6, i64 48}
!24 = !{!17, !6, i64 0}
!25 = !{!12, !6, i64 1712}
!26 = !{!17, !10, i64 648}
!27 = !{!16, !14, i64 64}
!28 = !{!14, !14, i64 0}
!29 = !{!16, !10, i64 96}
!30 = !{!16, !10, i64 56}
!31 = !{!12, !10, i64 12120}
!32 = !{!13, !13, i64 0}
!33 = !{!12, !10, i64 104}
!34 = distinct !{!34, !35}
!35 = !{!"llvm.loop.mustprogress"}
!36 = !{!12, !13, i64 80}
!37 = !{!12, !13, i64 128}
!38 = !{!12, !13, i64 184}
!39 = distinct !{!39, !35}
!40 = distinct !{!40, !35}
!41 = !{!16, !7, i64 32}
!42 = !{!16, !13, i64 52}
!43 = !{!16, !13, i64 48}
!44 = distinct !{!44, !35}
!45 = distinct !{!45, !35}
!46 = !{i64 0, i64 8, !5, i64 8, i64 13, !19, i64 24, i64 4, !32, i64 28, i64 4, !32, i64 32, i64 1, !19, i64 33, i64 1, !19, i64 34, i64 1, !19, i64 36, i64 4, !32, i64 40, i64 4, !32, i64 44, i64 4, !32, i64 48, i64 4, !32, i64 52, i64 4, !32, i64 56, i64 8, !9, i64 64, i64 8, !28, i64 72, i64 8, !28, i64 80, i64 8, !9, i64 88, i64 8, !9, i64 96, i64 8, !9, i64 104, i64 8, !9, i64 112, i64 8, !28, i64 120, i64 8, !9, i64 128, i64 8, !28}
!47 = !{!12, !13, i64 920}
!48 = !{!12, !6, i64 1064}
!49 = distinct !{!49, !35}


; 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 }

@_tx_thread_current_ptr = external local_unnamed_addr global ptr, align 8

; Function Attrs: nounwind uwtable
define dso_local i32 @_fx_directory_next_full_entry_find(ptr noundef %0, ptr nocapture noundef writeonly %1, ptr noundef writeonly %2, ptr noundef writeonly %3, ptr noundef writeonly %4, ptr noundef writeonly %5, ptr noundef writeonly %6, ptr noundef writeonly %7, ptr noundef writeonly %8, ptr noundef writeonly %9) local_unnamed_addr #0 {
  %11 = ptrtoint ptr %0 to i64
  %12 = alloca i64, align 8
  %13 = alloca %struct.FX_DIR_ENTRY_STRUCT, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #4
  store i64 0, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 136, ptr nonnull %13) #4
  %14 = getelementptr inbounds i8, ptr %0, i64 464
  %15 = load i64, ptr %14, align 8, !tbaa !9
  %16 = add i64 %15, 1
  store i64 %16, ptr %14, align 8, !tbaa !9
  %17 = getelementptr inbounds i8, ptr %0, i64 3144
  store ptr %17, ptr %13, align 8, !tbaa !17
  %18 = getelementptr inbounds i8, ptr %13, i64 8
  store i8 0, ptr %18, align 8, !tbaa !18
  %19 = load i64, ptr %0, align 8, !tbaa !19
  %.not = icmp eq i64 %19, 1296385097
  br i1 %.not, label %20, label %241

20:                                               ; preds = %10
  %21 = getelementptr inbounds i8, ptr %0, i64 824
  %22 = tail call i32 @_tx_mutex_get(ptr noundef nonnull %21, i64 noundef 4294967295) #4
  %.not147 = icmp eq i32 %22, 0
  br i1 %.not147, label %23, label %241

23:                                               ; preds = %20
  %24 = load ptr, ptr @_tx_thread_current_ptr, align 8, !tbaa !20
  %25 = getelementptr inbounds i8, ptr %24, i64 272
  %26 = load ptr, ptr %25, align 8, !tbaa !21
  %.not148 = icmp eq ptr %26, null
  br i1 %.not148, label %31, label %27

27:                                               ; preds = %23
  %28 = load ptr, ptr %26, align 8, !tbaa !24
  %29 = load i8, ptr %28, align 1, !tbaa !18
  %.not150 = icmp eq i8 %29, 0
  %30 = getelementptr inbounds i8, ptr %26, i64 136
  br i1 %.not150, label %select.unfold, label %36

31:                                               ; preds = %23
  %32 = getelementptr inbounds i8, ptr %0, i64 1712
  %33 = load ptr, ptr %32, align 8, !tbaa !25
  %34 = load i8, ptr %33, align 1, !tbaa !18
  %.not149 = icmp eq i8 %34, 0
  %35 = getelementptr inbounds i8, ptr %0, i64 1848
  br i1 %.not149, label %select.unfold, label %36

36:                                               ; preds = %27, %31
  %.0123 = phi ptr [ %26, %27 ], [ %32, %31 ]
  %.0120 = phi ptr [ %30, %27 ], [ %35, %31 ]
  %37 = getelementptr inbounds i8, ptr %.0123, i64 648
  %38 = load i64, ptr %37, align 8, !tbaa !26
  %.not152 = icmp eq i64 %38, 0
  br i1 %.not152, label %42, label %39

39:                                               ; preds = %36
  %40 = getelementptr inbounds i8, ptr %.0123, i64 64
  %41 = load i64, ptr %40, align 8, !tbaa !27
  br label %76

42:                                               ; preds = %36
  %43 = getelementptr inbounds i8, ptr %.0123, i64 96
  store i64 0, ptr %43, align 8, !tbaa !28
  %44 = getelementptr inbounds i8, ptr %.0123, i64 56
  %45 = load i64, ptr %44, align 8, !tbaa !29
  %46 = getelementptr inbounds i8, ptr %0, i64 12120
  %47 = getelementptr inbounds i8, ptr %0, i64 104
  br label %48

48:                                               ; preds = %59, %42
  %.0128 = phi i64 [ 0, %42 ], [ %52, %59 ]
  %.0125 = phi i64 [ %45, %42 ], [ %57, %59 ]
  %49 = load i64, ptr %46, align 8, !tbaa !30
  %50 = icmp ult i64 %.0125, %49
  br i1 %50, label %51, label %62

51:                                               ; preds = %48
  %52 = add i64 %.0128, 1
  %53 = call i32 @_fx_utility_FAT_entry_read(ptr noundef nonnull %0, i64 noundef %.0125, ptr noundef nonnull %12) #4
  %.not153 = icmp eq i32 %53, 0
  br i1 %.not153, label %54, label %.sink.split

54:                                               ; preds = %51
  %55 = icmp ult i64 %.0125, 2
  br i1 %55, label %.sink.split, label %56

56:                                               ; preds = %54
  %57 = load i64, ptr %12, align 8, !tbaa !5
  %58 = icmp eq i64 %.0125, %57
  br i1 %58, label %.sink.split, label %59

59:                                               ; preds = %56
  %60 = load i64, ptr %47, align 8, !tbaa !31
  %61 = icmp ugt i64 %52, %60
  br i1 %61, label %.sink.split, label %48, !llvm.loop !32

62:                                               ; preds = %48
  %63 = getelementptr inbounds i8, ptr %0, i64 80
  %64 = load i32, ptr %63, align 8, !tbaa !34
  %65 = zext i32 %64 to i64
  %66 = getelementptr inbounds i8, ptr %0, i64 128
  %67 = load i32, ptr %66, align 8, !tbaa !35
  %68 = zext i32 %67 to i64
  %69 = mul i64 %.0128, %65
  %70 = mul i64 %69, %68
  %71 = lshr i64 %70, 5
  %72 = getelementptr inbounds i8, ptr %.0123, i64 64
  store i64 %71, ptr %72, align 8, !tbaa !27
  br label %76

select.unfold:                                    ; preds = %31, %27
  %.0122.ph = phi ptr [ %26, %27 ], [ %32, %31 ]
  %73 = getelementptr inbounds i8, ptr %0, i64 184
  %74 = load i32, ptr %73, align 8, !tbaa !36
  %75 = zext i32 %74 to i64
  br label %76

76:                                               ; preds = %39, %62, %select.unfold
  %.not151183 = phi i1 [ false, %39 ], [ false, %62 ], [ true, %select.unfold ]
  %.0120181 = phi ptr [ %.0120, %39 ], [ %.0120, %62 ], [ null, %select.unfold ]
  %.0122179 = phi ptr [ %.0123, %39 ], [ %.0123, %62 ], [ %.0122.ph, %select.unfold ]
  %.0123177 = phi ptr [ %.0123, %39 ], [ %.0123, %62 ], [ null, %select.unfold ]
  %.0124 = phi i64 [ %41, %39 ], [ %71, %62 ], [ %75, %select.unfold ]
  %77 = getelementptr inbounds i8, ptr %.0122179, i64 648
  %78 = load i64, ptr %77, align 8, !tbaa !26
  %79 = icmp ult i64 %78, %.0124
  br i1 %79, label %.lr.ph, label %.sink.split

.lr.ph:                                           ; preds = %76, %87
  %80 = call i32 @_fx_directory_entry_read(ptr noundef nonnull %0, ptr noundef %.0123177, ptr noundef nonnull %77, ptr noundef nonnull %13) #4
  %.not154 = icmp eq i32 %80, 0
  br i1 %.not154, label %81, label %.sink.split

81:                                               ; preds = %.lr.ph
  %82 = load ptr, ptr %13, align 8, !tbaa !17
  %83 = load i8, ptr %82, align 1, !tbaa !18
  %84 = icmp eq i8 %83, -27
  %85 = load i8, ptr %18, align 8
  %86 = icmp eq i8 %85, 0
  %or.cond = select i1 %84, i1 %86, i1 false
  br i1 %or.cond, label %87, label %91

87:                                               ; preds = %81
  %88 = load i64, ptr %77, align 8, !tbaa !26
  %89 = add i64 %88, 1
  store i64 %89, ptr %77, align 8, !tbaa !26
  %90 = icmp ult i64 %89, %.0124
  br i1 %90, label %.lr.ph, label %.sink.split, !llvm.loop !37

91:                                               ; preds = %81
  %.lcssa261263 = ptrtoint ptr %82 to i64
  %.not155 = icmp eq i8 %83, 0
  br i1 %.not155, label %.sink.split, label %.lr.ph201

.lr.ph201:                                        ; preds = %91, %.lr.ph201
  %92 = phi i8 [ %96, %.lr.ph201 ], [ %83, %91 ]
  %.1129200 = phi i64 [ %94, %.lr.ph201 ], [ 0, %91 ]
  %.0130199 = phi ptr [ %93, %.lr.ph201 ], [ %1, %91 ]
  store i8 %92, ptr %.0130199, align 1, !tbaa !18
  %93 = getelementptr inbounds i8, ptr %.0130199, i64 1
  %94 = add i64 %.1129200, 1
  %95 = getelementptr inbounds i8, ptr %82, i64 %94
  %96 = load i8, ptr %95, align 1, !tbaa !18
  %.not156 = icmp eq i8 %96, 0
  br i1 %.not156, label %._crit_edge, label %.lr.ph201, !llvm.loop !38

._crit_edge:                                      ; preds = %.lr.ph201
  store i8 0, ptr %93, align 1, !tbaa !18
  %.not157 = icmp eq ptr %2, null
  br i1 %.not157, label %101, label %97

97:                                               ; preds = %._crit_edge
  %98 = getelementptr inbounds i8, ptr %13, i64 32
  %99 = load i8, ptr %98, align 8, !tbaa !39
  %100 = zext i8 %99 to i32
  store i32 %100, ptr %2, align 4, !tbaa !40
  br label %101

101:                                              ; preds = %97, %._crit_edge
  %.not158 = icmp eq ptr %3, null
  br i1 %.not158, label %105, label %102

102:                                              ; preds = %101
  %103 = getelementptr inbounds i8, ptr %13, i64 64
  %104 = load i64, ptr %103, align 8, !tbaa !27
  store i64 %104, ptr %3, align 8, !tbaa !5
  br label %105

105:                                              ; preds = %102, %101
  %.not159 = icmp eq ptr %4, null
  br i1 %.not159, label %112, label %106

106:                                              ; preds = %105
  %107 = getelementptr inbounds i8, ptr %13, i64 52
  %108 = load i32, ptr %107, align 4, !tbaa !41
  %109 = lshr i32 %108, 9
  %110 = and i32 %109, 127
  %111 = add nuw nsw i32 %110, 1980
  store i32 %111, ptr %4, align 4, !tbaa !40
  br label %112

112:                                              ; preds = %106, %105
  %.not160 = icmp eq ptr %5, null
  br i1 %.not160, label %118, label %113

113:                                              ; preds = %112
  %114 = getelementptr inbounds i8, ptr %13, i64 52
  %115 = load i32, ptr %114, align 4, !tbaa !41
  %116 = lshr i32 %115, 5
  %117 = and i32 %116, 15
  store i32 %117, ptr %5, align 4, !tbaa !40
  br label %118

118:                                              ; preds = %113, %112
  %.not161 = icmp eq ptr %6, null
  br i1 %.not161, label %123, label %119

119:                                              ; preds = %118
  %120 = getelementptr inbounds i8, ptr %13, i64 52
  %121 = load i32, ptr %120, align 4, !tbaa !41
  %122 = and i32 %121, 31
  store i32 %122, ptr %6, align 4, !tbaa !40
  br label %123

123:                                              ; preds = %119, %118
  %.not162 = icmp eq ptr %7, null
  br i1 %.not162, label %129, label %124

124:                                              ; preds = %123
  %125 = getelementptr inbounds i8, ptr %13, i64 48
  %126 = load i32, ptr %125, align 8, !tbaa !42
  %127 = lshr i32 %126, 11
  %128 = and i32 %127, 31
  store i32 %128, ptr %7, align 4, !tbaa !40
  br label %129

129:                                              ; preds = %124, %123
  %.not163 = icmp eq ptr %8, null
  br i1 %.not163, label %135, label %130

130:                                              ; preds = %129
  %131 = getelementptr inbounds i8, ptr %13, i64 48
  %132 = load i32, ptr %131, align 8, !tbaa !42
  %133 = lshr i32 %132, 5
  %134 = and i32 %133, 63
  store i32 %134, ptr %8, align 4, !tbaa !40
  br label %135

135:                                              ; preds = %130, %129
  %.not164 = icmp eq ptr %9, null
  br i1 %.not164, label %141, label %136

136:                                              ; preds = %135
  %137 = getelementptr inbounds i8, ptr %13, i64 48
  %138 = load i32, ptr %137, align 8, !tbaa !42
  %139 = shl i32 %138, 1
  %140 = and i32 %139, 62
  store i32 %140, ptr %9, align 4, !tbaa !40
  br label %141

141:                                              ; preds = %136, %135
  %142 = load i64, ptr %77, align 8, !tbaa !26
  %143 = add i64 %142, 1
  store i64 %143, ptr %77, align 8, !tbaa !26
  %.not165 = icmp eq ptr %.0120181, null
  %144 = getelementptr inbounds i8, ptr %0, i64 1456
  br i1 %.not165, label %.critedge.thread, label %.preheader

.critedge.thread:                                 ; preds = %141
  store i8 47, ptr %144, align 1, !tbaa !18
  br label %.lr.ph205.preheader

.preheader:                                       ; preds = %141, %158
  %.0119 = phi i32 [ %160, %158 ], [ 0, %141 ]
  %145 = zext nneg i32 %.0119 to i64
  %146 = getelementptr inbounds i8, ptr %.0120181, i64 %145
  %147 = load i8, ptr %146, align 1, !tbaa !18
  %.not166 = icmp eq i8 %147, 0
  br i1 %.not166, label %.critedge, label %.preheader.1

.preheader.1:                                     ; preds = %.preheader
  %148 = getelementptr inbounds [256 x i8], ptr %144, i64 0, i64 %145
  store i8 %147, ptr %148, align 1, !tbaa !18
  %149 = add nuw nsw i32 %.0119, 1
  %150 = zext nneg i32 %149 to i64
  %151 = getelementptr inbounds i8, ptr %.0120181, i64 %150
  %152 = load i8, ptr %151, align 1, !tbaa !18
  %.not166.1 = icmp eq i8 %152, 0
  br i1 %.not166.1, label %.critedge, label %.preheader.2

.preheader.2:                                     ; preds = %.preheader.1
  %153 = getelementptr inbounds [256 x i8], ptr %144, i64 0, i64 %150
  store i8 %152, ptr %153, align 1, !tbaa !18
  %154 = add nuw nsw i32 %.0119, 2
  %155 = zext nneg i32 %154 to i64
  %156 = getelementptr inbounds i8, ptr %.0120181, i64 %155
  %157 = load i8, ptr %156, align 1, !tbaa !18
  %.not166.2 = icmp eq i8 %157, 0
  br i1 %.not166.2, label %.critedge, label %158

158:                                              ; preds = %.preheader.2
  %159 = getelementptr inbounds [256 x i8], ptr %144, i64 0, i64 %155
  store i8 %157, ptr %159, align 1, !tbaa !18
  %160 = add nuw nsw i32 %.0119, 3
  %exitcond.not.2 = icmp eq i32 %160, 255
  br i1 %exitcond.not.2, label %.critedge.thread236, label %.preheader

.critedge.thread236:                              ; preds = %158
  %161 = getelementptr inbounds i8, ptr %0, i64 1456
  %162 = getelementptr inbounds i8, ptr %0, i64 1711
  store i8 47, ptr %162, align 1, !tbaa !18
  br label %.critedge168

.critedge:                                        ; preds = %.preheader.2, %.preheader.1, %.preheader
  %.0119.lcssa = phi i32 [ %.0119, %.preheader ], [ %149, %.preheader.1 ], [ %154, %.preheader.2 ]
  %163 = getelementptr inbounds i8, ptr %0, i64 1456
  %164 = zext nneg i32 %.0119.lcssa to i64
  %165 = getelementptr inbounds [256 x i8], ptr %163, i64 0, i64 %164
  store i8 47, ptr %165, align 1, !tbaa !18
  %.2202 = add nuw i32 %.0119.lcssa, 1
  %166 = icmp ult i32 %.0119.lcssa, 255
  br i1 %166, label %.lr.ph205.preheader, label %.critedge168

.lr.ph205.preheader:                              ; preds = %.critedge.thread, %.critedge
  %167 = phi i64 [ 0, %.critedge.thread ], [ %164, %.critedge ]
  %168 = phi ptr [ %144, %.critedge.thread ], [ %163, %.critedge ]
  %.1235 = phi i32 [ 0, %.critedge.thread ], [ %.0119.lcssa, %.critedge ]
  %169 = add nuw nsw i64 %167, 1
  %170 = getelementptr inbounds i8, ptr %0, i64 1456
  br label %.lr.ph205

.lr.ph205:                                        ; preds = %.lr.ph205.preheader, %174
  %indvars.iv = phi i64 [ %169, %.lr.ph205.preheader ], [ %indvars.iv.next, %174 ]
  %.0203 = phi i32 [ 0, %.lr.ph205.preheader ], [ %176, %174 ]
  %171 = zext nneg i32 %.0203 to i64
  %172 = getelementptr inbounds i8, ptr %82, i64 %171
  %173 = load i8, ptr %172, align 1, !tbaa !18
  %.not167 = icmp eq i8 %173, 0
  br i1 %.not167, label %.critedge6, label %174

174:                                              ; preds = %.lr.ph205
  %175 = getelementptr inbounds [256 x i8], ptr %170, i64 0, i64 %indvars.iv
  store i8 %173, ptr %175, align 1, !tbaa !18
  %176 = add nuw nsw i32 %.0203, 1
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %177 = xor i32 %.1235, %176
  %exitcond225.not = icmp eq i32 %177, 255
  br i1 %exitcond225.not, label %.critedge168.loopexit, label %.lr.ph205, !llvm.loop !43

.critedge6:                                       ; preds = %.lr.ph205
  %178 = trunc nuw nsw i64 %indvars.iv to i32
  %179 = and i64 %indvars.iv, 4294967295
  %180 = getelementptr inbounds [256 x i8], ptr %170, i64 0, i64 %179
  store i8 0, ptr %180, align 1, !tbaa !18
  br label %183

.critedge168.loopexit:                            ; preds = %174
  %181 = trunc nuw nsw i64 %indvars.iv.next to i32
  br label %.critedge168

.critedge168:                                     ; preds = %.critedge.thread236, %.critedge168.loopexit, %.critedge
  %182 = phi ptr [ %163, %.critedge ], [ %168, %.critedge168.loopexit ], [ %161, %.critedge.thread236 ]
  %.2.lcssa = phi i32 [ %.2202, %.critedge ], [ %181, %.critedge168.loopexit ], [ 256, %.critedge.thread236 ]
  store i8 0, ptr %182, align 8, !tbaa !18
  br label %183

183:                                              ; preds = %.critedge168, %.critedge6
  %.2188 = phi i32 [ %.2.lcssa, %.critedge168 ], [ %178, %.critedge6 ]
  br i1 %.not151183, label %186, label %184

184:                                              ; preds = %183
  %185 = getelementptr inbounds i8, ptr %0, i64 928
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(136) %185, ptr noundef nonnull align 8 dereferenceable(136) %.0123177, i64 136, i1 false), !tbaa.struct !44
  br label %186

186:                                              ; preds = %183, %184
  %.sink = phi i32 [ 1, %184 ], [ 0, %183 ]
  %187 = getelementptr inbounds i8, ptr %0, i64 920
  store i32 %.sink, ptr %187, align 8
  %188 = getelementptr inbounds i8, ptr %0, i64 1064
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(136) %188, ptr noundef nonnull align 8 dereferenceable(136) %13, i64 136, i1 false), !tbaa.struct !44
  %189 = getelementptr i8, ptr %0, i64 1200
  store ptr %189, ptr %188, align 8, !tbaa !46
  %.2188.fr = freeze i32 %.2188
  %190 = icmp ult i32 %.2188.fr, 255
  br i1 %190, label %.split, label %vector.memcheck

vector.memcheck:                                  ; preds = %186
  %191 = add i64 %11, 1200
  %192 = sub i64 %191, %.lcssa261263
  %diff.check = icmp ult i64 %192, 32
  br i1 %diff.check, label %.split.us, label %vector.body

vector.body:                                      ; preds = %vector.memcheck
  %193 = getelementptr inbounds i8, ptr %82, i64 16
  %wide.load = load <16 x i8>, ptr %82, align 1, !tbaa !18
  %wide.load264 = load <16 x i8>, ptr %193, align 1, !tbaa !18
  %194 = getelementptr i8, ptr %0, i64 1216
  store <16 x i8> %wide.load, ptr %189, align 1, !tbaa !18
  store <16 x i8> %wide.load264, ptr %194, align 1, !tbaa !18
  %195 = getelementptr inbounds i8, ptr %82, i64 32
  %196 = getelementptr inbounds i8, ptr %82, i64 48
  %wide.load.1 = load <16 x i8>, ptr %195, align 1, !tbaa !18
  %wide.load264.1 = load <16 x i8>, ptr %196, align 1, !tbaa !18
  %197 = getelementptr i8, ptr %0, i64 1232
  %198 = getelementptr i8, ptr %0, i64 1248
  store <16 x i8> %wide.load.1, ptr %197, align 1, !tbaa !18
  store <16 x i8> %wide.load264.1, ptr %198, align 1, !tbaa !18
  %199 = getelementptr inbounds i8, ptr %82, i64 64
  %200 = getelementptr inbounds i8, ptr %82, i64 80
  %wide.load.2 = load <16 x i8>, ptr %199, align 1, !tbaa !18
  %wide.load264.2 = load <16 x i8>, ptr %200, align 1, !tbaa !18
  %201 = getelementptr i8, ptr %0, i64 1264
  %202 = getelementptr i8, ptr %0, i64 1280
  store <16 x i8> %wide.load.2, ptr %201, align 1, !tbaa !18
  store <16 x i8> %wide.load264.2, ptr %202, align 1, !tbaa !18
  %203 = getelementptr inbounds i8, ptr %82, i64 96
  %204 = getelementptr inbounds i8, ptr %82, i64 112
  %wide.load.3 = load <16 x i8>, ptr %203, align 1, !tbaa !18
  %wide.load264.3 = load <16 x i8>, ptr %204, align 1, !tbaa !18
  %205 = getelementptr i8, ptr %0, i64 1296
  %206 = getelementptr i8, ptr %0, i64 1312
  store <16 x i8> %wide.load.3, ptr %205, align 1, !tbaa !18
  store <16 x i8> %wide.load264.3, ptr %206, align 1, !tbaa !18
  %207 = getelementptr inbounds i8, ptr %82, i64 128
  %208 = getelementptr inbounds i8, ptr %82, i64 144
  %wide.load.4 = load <16 x i8>, ptr %207, align 1, !tbaa !18
  %wide.load264.4 = load <16 x i8>, ptr %208, align 1, !tbaa !18
  %209 = getelementptr i8, ptr %0, i64 1328
  %210 = getelementptr i8, ptr %0, i64 1344
  store <16 x i8> %wide.load.4, ptr %209, align 1, !tbaa !18
  store <16 x i8> %wide.load264.4, ptr %210, align 1, !tbaa !18
  %211 = getelementptr inbounds i8, ptr %82, i64 160
  %212 = getelementptr inbounds i8, ptr %82, i64 176
  %wide.load.5 = load <16 x i8>, ptr %211, align 1, !tbaa !18
  %wide.load264.5 = load <16 x i8>, ptr %212, align 1, !tbaa !18
  %213 = getelementptr i8, ptr %0, i64 1360
  %214 = getelementptr i8, ptr %0, i64 1376
  store <16 x i8> %wide.load.5, ptr %213, align 1, !tbaa !18
  store <16 x i8> %wide.load264.5, ptr %214, align 1, !tbaa !18
  %215 = getelementptr inbounds i8, ptr %82, i64 192
  %216 = getelementptr inbounds i8, ptr %82, i64 208
  %wide.load.6 = load <16 x i8>, ptr %215, align 1, !tbaa !18
  %wide.load264.6 = load <16 x i8>, ptr %216, align 1, !tbaa !18
  %217 = getelementptr i8, ptr %0, i64 1392
  %218 = getelementptr i8, ptr %0, i64 1408
  store <16 x i8> %wide.load.6, ptr %217, align 1, !tbaa !18
  store <16 x i8> %wide.load264.6, ptr %218, align 1, !tbaa !18
  %219 = getelementptr inbounds i8, ptr %82, i64 224
  %220 = getelementptr inbounds i8, ptr %82, i64 240
  %wide.load.7 = load <16 x i8>, ptr %219, align 1, !tbaa !18
  %wide.load264.7 = load <16 x i8>, ptr %220, align 1, !tbaa !18
  %221 = getelementptr i8, ptr %0, i64 1424
  %222 = getelementptr i8, ptr %0, i64 1440
  store <16 x i8> %wide.load.7, ptr %221, align 1, !tbaa !18
  store <16 x i8> %wide.load264.7, ptr %222, align 1, !tbaa !18
  br label %.sink.split

.split.us:                                        ; preds = %vector.memcheck, %.split.us
  %indvars.iv226 = phi i64 [ %indvars.iv.next227.3, %.split.us ], [ 0, %vector.memcheck ]
  %223 = getelementptr inbounds i8, ptr %82, i64 %indvars.iv226
  %224 = load i8, ptr %223, align 1, !tbaa !18
  %225 = getelementptr inbounds [256 x i8], ptr %189, i64 0, i64 %indvars.iv226
  store i8 %224, ptr %225, align 1, !tbaa !18
  %indvars.iv.next227 = or disjoint i64 %indvars.iv226, 1
  %226 = getelementptr inbounds i8, ptr %82, i64 %indvars.iv.next227
  %227 = load i8, ptr %226, align 1, !tbaa !18
  %228 = getelementptr inbounds [256 x i8], ptr %189, i64 0, i64 %indvars.iv.next227
  store i8 %227, ptr %228, align 1, !tbaa !18
  %indvars.iv.next227.1 = or disjoint i64 %indvars.iv226, 2
  %229 = getelementptr inbounds i8, ptr %82, i64 %indvars.iv.next227.1
  %230 = load i8, ptr %229, align 1, !tbaa !18
  %231 = getelementptr inbounds [256 x i8], ptr %189, i64 0, i64 %indvars.iv.next227.1
  store i8 %230, ptr %231, align 1, !tbaa !18
  %indvars.iv.next227.2 = or disjoint i64 %indvars.iv226, 3
  %232 = getelementptr inbounds i8, ptr %82, i64 %indvars.iv.next227.2
  %233 = load i8, ptr %232, align 1, !tbaa !18
  %234 = getelementptr inbounds [256 x i8], ptr %189, i64 0, i64 %indvars.iv.next227.2
  store i8 %233, ptr %234, align 1, !tbaa !18
  %indvars.iv.next227.3 = add nuw nsw i64 %indvars.iv226, 4
  %exitcond229.not.3 = icmp eq i64 %indvars.iv.next227.3, 256
  br i1 %exitcond229.not.3, label %.sink.split, label %.split.us, !llvm.loop !47

.split:                                           ; preds = %186, %.split
  %indvars.iv230 = phi i64 [ %indvars.iv.next231, %.split ], [ 0, %186 ]
  %235 = getelementptr inbounds i8, ptr %82, i64 %indvars.iv230
  %236 = load i8, ptr %235, align 1, !tbaa !18
  %237 = getelementptr inbounds [256 x i8], ptr %189, i64 0, i64 %indvars.iv230
  store i8 %236, ptr %237, align 1, !tbaa !18
  %238 = icmp ne i8 %236, 0
  %indvars.iv.next231 = add nuw nsw i64 %indvars.iv230, 1
  %239 = icmp ult i64 %indvars.iv230, 255
  %or.cond208 = and i1 %238, %239
  br i1 %or.cond208, label %.split, label %.sink.split, !llvm.loop !49

.sink.split:                                      ; preds = %54, %56, %59, %51, %87, %.lr.ph, %.split.us, %.split, %vector.body, %91, %76
  %.0126.ph = phi i32 [ 15, %91 ], [ 15, %76 ], [ 0, %vector.body ], [ 0, %.split ], [ 0, %.split.us ], [ %80, %.lr.ph ], [ 15, %87 ], [ %53, %51 ], [ 3, %59 ], [ 3, %56 ], [ 3, %54 ]
  %240 = call i32 @_tx_mutex_put(ptr noundef nonnull %21) #4
  br label %241

241:                                              ; preds = %.sink.split, %20, %10
  %.0126 = phi i32 [ 17, %10 ], [ 17, %20 ], [ %.0126.ph, %.sink.split ]
  call void @llvm.lifetime.end.p0(i64 136, ptr nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #4
  ret i32 %.0126
}

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

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

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

declare i32 @_tx_mutex_put(ptr noundef) local_unnamed_addr #2

declare i32 @_fx_directory_entry_read(ptr noundef, ptr noundef, ptr noundef, 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: 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 = { 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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 464}
!10 = !{!"FX_MEDIA_STRUCT", !6, i64 0, !11, i64 8, !11, i64 16, !6, i64 24, !12, i64 32, !6, i64 40, !11, i64 48, !11, i64 56, !6, i64 64, !6, i64 72, !12, i64 80, !12, i64 84, !12, i64 88, !13, i64 96, !6, i64 104, !12, i64 112, !12, i64 116, !12, i64 120, !12, i64 124, !12, i64 128, !12, i64 132, !12, i64 136, !12, i64 140, !12, i64 144, !6, i64 152, !12, i64 160, !6, i64 168, !6, i64 176, !12, i64 184, !6, i64 192, !6, i64 200, !11, i64 208, !12, i64 216, !12, i64 220, !11, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !12, i64 256, !12, i64 260, !12, i64 264, !12, i64 268, !12, i64 272, !12, i64 276, !12, i64 280, !11, i64 288, !11, i64 296, !11, i64 304, !11, i64 312, !6, i64 320, !11, i64 328, !11, 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, !14, i64 824, !12, i64 920, !15, i64 928, !15, i64 1064, !7, i64 1200, !7, i64 1456, !16, 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}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!"long long", !7, i64 0}
!14 = !{!"TX_MUTEX_STRUCT", !6, i64 0, !11, i64 8, !12, i64 16, !11, i64 24, !12, i64 32, !12, i64 36, !11, i64 40, !12, i64 48, !11, i64 56, !11, i64 64, !12, i64 72, !11, i64 80, !11, i64 88}
!15 = !{!"FX_DIR_ENTRY_STRUCT", !11, i64 0, !7, i64 8, !12, i64 24, !12, i64 28, !7, i64 32, !7, i64 33, !7, i64 34, !12, i64 36, !12, i64 40, !12, i64 44, !12, i64 48, !12, i64 52, !6, i64 56, !13, i64 64, !13, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !13, i64 112, !6, i64 120, !13, i64 128}
!16 = !{!"FX_PATH_STRUCT", !15, i64 0, !7, i64 136, !7, i64 392, !6, i64 648}
!17 = !{!15, !11, i64 0}
!18 = !{!7, !7, i64 0}
!19 = !{!10, !6, i64 0}
!20 = !{!11, !11, i64 0}
!21 = !{!22, !11, i64 272}
!22 = !{!"TX_THREAD_STRUCT", !6, i64 0, !6, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !12, i64 88, !12, i64 92, !12, i64 96, !12, i64 100, !12, i64 104, !11, i64 112, !11, i64 120, !6, i64 128, !23, i64 136, !11, i64 192, !11, i64 200, !11, i64 208, !11, i64 216, !6, i64 224, !11, i64 232, !12, i64 240, !12, i64 244, !11, i64 248, !11, i64 256, !11, i64 264, !11, i64 272, !12, i64 280, !12, i64 284, !12, i64 288, !12, i64 292, !11, i64 296, !11, i64 304, !11, i64 312, !6, i64 320}
!23 = !{!"TX_TIMER_INTERNAL_STRUCT", !6, i64 0, !6, i64 8, !11, i64 16, !6, i64 24, !11, i64 32, !11, i64 40, !11, i64 48}
!24 = !{!16, !11, i64 0}
!25 = !{!10, !11, i64 1712}
!26 = !{!16, !6, i64 648}
!27 = !{!15, !13, i64 64}
!28 = !{!15, !6, i64 96}
!29 = !{!15, !6, i64 56}
!30 = !{!10, !6, i64 12120}
!31 = !{!10, !6, i64 104}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.mustprogress"}
!34 = !{!10, !12, i64 80}
!35 = !{!10, !12, i64 128}
!36 = !{!10, !12, i64 184}
!37 = distinct !{!37, !33}
!38 = distinct !{!38, !33}
!39 = !{!15, !7, i64 32}
!40 = !{!12, !12, i64 0}
!41 = !{!15, !12, i64 52}
!42 = !{!15, !12, i64 48}
!43 = distinct !{!43, !33}
!44 = !{i64 0, i64 8, !20, i64 8, i64 13, !18, i64 24, i64 4, !40, i64 28, i64 4, !40, i64 32, i64 1, !18, i64 33, i64 1, !18, i64 34, i64 1, !18, i64 36, i64 4, !40, i64 40, i64 4, !40, i64 44, i64 4, !40, i64 48, i64 4, !40, i64 52, i64 4, !40, i64 56, i64 8, !5, i64 64, i64 8, !45, i64 72, i64 8, !45, i64 80, i64 8, !5, i64 88, i64 8, !5, i64 96, i64 8, !5, i64 104, i64 8, !5, i64 112, i64 8, !45, i64 120, i64 8, !5, i64 128, i64 8, !45}
!45 = !{!13, !13, i64 0}
!46 = !{!10, !11, i64 1064}
!47 = distinct !{!47, !33, !48}
!48 = !{!"llvm.loop.isvectorized", i32 1}
!49 = distinct !{!49, !33}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,MergedLoadStoreMotionPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass