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

; 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_FILE_STRUCT = type { i64, ptr, i64, i8, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, ptr, ptr, ptr, %struct.FX_DIR_ENTRY_STRUCT, [256 x i8], i64, ptr }
%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 }

; Function Attrs: nounwind uwtable
define dso_local i32 @_fx_file_extended_seek(ptr noundef %0, i64 noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca i32, align 4
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i64 %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  store i64 0, ptr %8, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.FX_FILE_STRUCT, ptr %15, i32 0, i32 0
  %17 = load i64, ptr %16, align 8, !tbaa !13
  %18 = icmp ne i64 %17, 1179208773
  br i1 %18, label %19, label %20

19:                                               ; preds = %2
  store i32 7, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %322

20:                                               ; preds = %2
  %21 = load ptr, ptr %4, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.FX_FILE_STRUCT, ptr %21, i32 0, i32 16
  %23 = load ptr, ptr %22, align 8, !tbaa !17
  store ptr %23, ptr %13, align 8, !tbaa !5
  %24 = load ptr, ptr %13, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.FX_MEDIA_STRUCT, ptr %24, i32 0, i32 80
  %26 = load i64, ptr %25, align 8, !tbaa !18
  %27 = add i64 %26, 1
  store i64 %27, ptr %25, align 8, !tbaa !18
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.FX_FILE_STRUCT, ptr %28, i32 0, i32 16
  %30 = load ptr, ptr %29, align 8, !tbaa !17
  store ptr %30, ptr %13, align 8, !tbaa !5
  %31 = load ptr, ptr %13, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.FX_MEDIA_STRUCT, ptr %31, i32 0, i32 0
  %33 = load i64, ptr %32, align 8, !tbaa !22
  %34 = icmp ne i64 %33, 1296385097
  br i1 %34, label %35, label %36

35:                                               ; preds = %20
  store i32 17, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %322

36:                                               ; preds = %20
  %37 = load ptr, ptr %13, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.FX_MEDIA_STRUCT, ptr %37, i32 0, i32 112
  %39 = call i32 @_tx_mutex_get(ptr noundef %38, i64 noundef 4294967295)
  %40 = icmp ne i32 %39, 0
  br i1 %40, label %41, label %42

41:                                               ; preds = %36
  store i32 17, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %322

42:                                               ; preds = %36
  br label %43

43:                                               ; preds = %42
  %44 = load i64, ptr %5, align 8, !tbaa !9
  %45 = load ptr, ptr %4, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.FX_FILE_STRUCT, ptr %45, i32 0, i32 13
  %47 = load i64, ptr %46, align 8, !tbaa !23
  %48 = icmp eq i64 %44, %47
  br i1 %48, label %49, label %53

49:                                               ; preds = %43
  %50 = load ptr, ptr %13, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.FX_MEDIA_STRUCT, ptr %50, i32 0, i32 112
  %52 = call i32 @_tx_mutex_put(ptr noundef %51)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %322

53:                                               ; preds = %43
  %54 = load ptr, ptr %13, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.FX_MEDIA_STRUCT, ptr %54, i32 0, i32 10
  %56 = load i32, ptr %55, align 8, !tbaa !24
  %57 = zext i32 %56 to i64
  %58 = load ptr, ptr %13, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.FX_MEDIA_STRUCT, ptr %58, i32 0, i32 19
  %60 = load i32, ptr %59, align 8, !tbaa !25
  %61 = zext i32 %60 to i64
  %62 = mul i64 %57, %61
  store i64 %62, ptr %9, align 8, !tbaa !11
  %63 = load i64, ptr %9, align 8, !tbaa !11
  %64 = icmp eq i64 %63, 0
  br i1 %64, label %65, label %69

65:                                               ; preds = %53
  %66 = load ptr, ptr %13, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.FX_MEDIA_STRUCT, ptr %66, i32 0, i32 112
  %68 = call i32 @_tx_mutex_put(ptr noundef %67)
  store i32 2, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %322

69:                                               ; preds = %53
  %70 = load i64, ptr %5, align 8, !tbaa !9
  %71 = load ptr, ptr %4, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.FX_FILE_STRUCT, ptr %71, i32 0, i32 14
  %73 = load i64, ptr %72, align 8, !tbaa !26
  %74 = icmp ugt i64 %70, %73
  br i1 %74, label %75, label %79

75:                                               ; preds = %69
  %76 = load ptr, ptr %4, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.FX_FILE_STRUCT, ptr %76, i32 0, i32 14
  %78 = load i64, ptr %77, align 8, !tbaa !26
  store i64 %78, ptr %5, align 8, !tbaa !9
  br label %79

79:                                               ; preds = %75, %69
  %80 = load i64, ptr %5, align 8, !tbaa !9
  %81 = load ptr, ptr %4, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.FX_FILE_STRUCT, ptr %81, i32 0, i32 6
  %83 = load i64, ptr %82, align 8, !tbaa !27
  %84 = load i64, ptr %9, align 8, !tbaa !11
  %85 = mul i64 %83, %84
  %86 = icmp uge i64 %80, %85
  br i1 %86, label %87, label %206

87:                                               ; preds = %79
  %88 = load ptr, ptr %4, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.FX_FILE_STRUCT, ptr %88, i32 0, i32 11
  %90 = load i64, ptr %89, align 8, !tbaa !28
  %91 = load i64, ptr %9, align 8, !tbaa !11
  %92 = mul i64 %90, %91
  %93 = load i64, ptr %5, align 8, !tbaa !9
  %94 = icmp ult i64 %92, %93
  br i1 %94, label %95, label %109

95:                                               ; preds = %87
  %96 = load ptr, ptr %4, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.FX_FILE_STRUCT, ptr %96, i32 0, i32 8
  %98 = load i64, ptr %97, align 8, !tbaa !29
  store i64 %98, ptr %7, align 8, !tbaa !11
  %99 = load i64, ptr %5, align 8, !tbaa !9
  %100 = load ptr, ptr %4, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.FX_FILE_STRUCT, ptr %100, i32 0, i32 11
  %102 = load i64, ptr %101, align 8, !tbaa !28
  %103 = load i64, ptr %9, align 8, !tbaa !11
  %104 = mul i64 %102, %103
  %105 = sub i64 %99, %104
  store i64 %105, ptr %12, align 8, !tbaa !9
  %106 = load ptr, ptr %4, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.FX_FILE_STRUCT, ptr %106, i32 0, i32 11
  %108 = load i64, ptr %107, align 8, !tbaa !28
  store i64 %108, ptr %11, align 8, !tbaa !11
  br label %130

109:                                              ; preds = %87
  %110 = load ptr, ptr %4, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.FX_FILE_STRUCT, ptr %110, i32 0, i32 5
  %112 = load i64, ptr %111, align 8, !tbaa !30
  %113 = load ptr, ptr %4, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.FX_FILE_STRUCT, ptr %113, i32 0, i32 6
  %115 = load i64, ptr %114, align 8, !tbaa !27
  %116 = sub i64 %115, 1
  %117 = add i64 %112, %116
  store i64 %117, ptr %7, align 8, !tbaa !11
  %118 = load i64, ptr %5, align 8, !tbaa !9
  %119 = load ptr, ptr %4, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.FX_FILE_STRUCT, ptr %119, i32 0, i32 6
  %121 = load i64, ptr %120, align 8, !tbaa !27
  %122 = sub i64 %121, 1
  %123 = load i64, ptr %9, align 8, !tbaa !11
  %124 = mul i64 %122, %123
  %125 = sub i64 %118, %124
  store i64 %125, ptr %12, align 8, !tbaa !9
  %126 = load ptr, ptr %4, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.FX_FILE_STRUCT, ptr %126, i32 0, i32 6
  %128 = load i64, ptr %127, align 8, !tbaa !27
  %129 = sub i64 %128, 1
  store i64 %129, ptr %11, align 8, !tbaa !11
  br label %130

130:                                              ; preds = %109, %95
  br label %131

131:                                              ; preds = %194, %130
  %132 = load i64, ptr %7, align 8, !tbaa !11
  %133 = icmp uge i64 %132, 2
  br i1 %133, label %134, label %140

134:                                              ; preds = %131
  %135 = load i64, ptr %7, align 8, !tbaa !11
  %136 = load ptr, ptr %13, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.FX_MEDIA_STRUCT, ptr %136, i32 0, i32 126
  %138 = load i64, ptr %137, align 8, !tbaa !31
  %139 = icmp ult i64 %135, %138
  br label %140

140:                                              ; preds = %134, %131
  %141 = phi i1 [ false, %131 ], [ %139, %134 ]
  br i1 %141, label %142, label %195

142:                                              ; preds = %140
  %143 = load i64, ptr %11, align 8, !tbaa !11
  %144 = add i64 %143, 1
  store i64 %144, ptr %11, align 8, !tbaa !11
  %145 = load ptr, ptr %13, align 8, !tbaa !5
  %146 = load i64, ptr %7, align 8, !tbaa !11
  %147 = call i32 @_fx_utility_FAT_entry_read(ptr noundef %145, i64 noundef %146, ptr noundef %8)
  store i32 %147, ptr %6, align 4, !tbaa !32
  %148 = load i32, ptr %6, align 4, !tbaa !32
  %149 = icmp ne i32 %148, 0
  br i1 %149, label %150, label %155

150:                                              ; preds = %142
  %151 = load ptr, ptr %13, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.FX_MEDIA_STRUCT, ptr %151, i32 0, i32 112
  %153 = call i32 @_tx_mutex_put(ptr noundef %152)
  %154 = load i32, ptr %6, align 4, !tbaa !32
  store i32 %154, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %322

155:                                              ; preds = %142
  %156 = load i64, ptr %7, align 8, !tbaa !11
  store i64 %156, ptr %10, align 8, !tbaa !11
  %157 = load i64, ptr %8, align 8, !tbaa !11
  store i64 %157, ptr %7, align 8, !tbaa !11
  %158 = load i64, ptr %12, align 8, !tbaa !9
  %159 = load i64, ptr %9, align 8, !tbaa !11
  %160 = icmp ugt i64 %158, %159
  br i1 %160, label %161, label %165

161:                                              ; preds = %155
  %162 = load i64, ptr %12, align 8, !tbaa !9
  %163 = load i64, ptr %9, align 8, !tbaa !11
  %164 = sub i64 %162, %163
  store i64 %164, ptr %12, align 8, !tbaa !9
  br label %194

165:                                              ; preds = %155
  %166 = load i64, ptr %10, align 8, !tbaa !11
  %167 = load ptr, ptr %4, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.FX_FILE_STRUCT, ptr %167, i32 0, i32 8
  store i64 %166, ptr %168, align 8, !tbaa !29
  %169 = load i64, ptr %11, align 8, !tbaa !11
  %170 = sub i64 %169, 1
  %171 = load ptr, ptr %4, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.FX_FILE_STRUCT, ptr %171, i32 0, i32 11
  store i64 %170, ptr %172, align 8, !tbaa !28
  %173 = load i64, ptr %12, align 8, !tbaa !9
  %174 = load i64, ptr %9, align 8, !tbaa !11
  %175 = icmp eq i64 %173, %174
  br i1 %175, label %176, label %193

176:                                              ; preds = %165
  %177 = load i64, ptr %7, align 8, !tbaa !11
  %178 = icmp uge i64 %177, 2
  br i1 %178, label %179, label %193

179:                                              ; preds = %176
  %180 = load i64, ptr %7, align 8, !tbaa !11
  %181 = load ptr, ptr %13, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.FX_MEDIA_STRUCT, ptr %181, i32 0, i32 126
  %183 = load i64, ptr %182, align 8, !tbaa !31
  %184 = icmp ult i64 %180, %183
  br i1 %184, label %185, label %193

185:                                              ; preds = %179
  %186 = load i64, ptr %7, align 8, !tbaa !11
  %187 = load ptr, ptr %4, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.FX_FILE_STRUCT, ptr %187, i32 0, i32 8
  store i64 %186, ptr %188, align 8, !tbaa !29
  %189 = load ptr, ptr %4, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.FX_FILE_STRUCT, ptr %189, i32 0, i32 11
  %191 = load i64, ptr %190, align 8, !tbaa !28
  %192 = add i64 %191, 1
  store i64 %192, ptr %190, align 8, !tbaa !28
  store i64 0, ptr %12, align 8, !tbaa !9
  br label %193

193:                                              ; preds = %185, %179, %176, %165
  br label %195

194:                                              ; preds = %161
  br label %131, !llvm.loop !33

195:                                              ; preds = %193, %140
  %196 = load i64, ptr %5, align 8, !tbaa !9
  %197 = load i64, ptr %9, align 8, !tbaa !11
  %198 = load i64, ptr %11, align 8, !tbaa !11
  %199 = mul i64 %197, %198
  %200 = icmp ugt i64 %196, %199
  br i1 %200, label %201, label %205

201:                                              ; preds = %195
  %202 = load ptr, ptr %13, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.FX_MEDIA_STRUCT, ptr %202, i32 0, i32 112
  %204 = call i32 @_tx_mutex_put(ptr noundef %203)
  store i32 8, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %322

205:                                              ; preds = %195
  br label %224

206:                                              ; preds = %79
  %207 = load i64, ptr %5, align 8, !tbaa !9
  %208 = load i64, ptr %9, align 8, !tbaa !11
  %209 = udiv i64 %207, %208
  %210 = load ptr, ptr %4, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.FX_FILE_STRUCT, ptr %210, i32 0, i32 11
  store i64 %209, ptr %211, align 8, !tbaa !28
  %212 = load ptr, ptr %4, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.FX_FILE_STRUCT, ptr %212, i32 0, i32 5
  %214 = load i64, ptr %213, align 8, !tbaa !30
  %215 = load ptr, ptr %4, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct.FX_FILE_STRUCT, ptr %215, i32 0, i32 11
  %217 = load i64, ptr %216, align 8, !tbaa !28
  %218 = add i64 %214, %217
  %219 = load ptr, ptr %4, align 8, !tbaa !5
  %220 = getelementptr inbounds %struct.FX_FILE_STRUCT, ptr %219, i32 0, i32 8
  store i64 %218, ptr %220, align 8, !tbaa !29
  %221 = load i64, ptr %5, align 8, !tbaa !9
  %222 = load i64, ptr %9, align 8, !tbaa !11
  %223 = urem i64 %221, %222
  store i64 %223, ptr %12, align 8, !tbaa !9
  br label %224

224:                                              ; preds = %206, %205
  %225 = load i64, ptr %12, align 8, !tbaa !9
  %226 = load i64, ptr %9, align 8, !tbaa !11
  %227 = icmp eq i64 %225, %226
  br i1 %227, label %228, label %273

228:                                              ; preds = %224
  %229 = load ptr, ptr %13, align 8, !tbaa !5
  %230 = getelementptr inbounds %struct.FX_MEDIA_STRUCT, ptr %229, i32 0, i32 18
  %231 = load i32, ptr %230, align 4, !tbaa !35
  %232 = zext i32 %231 to i64
  %233 = load ptr, ptr %4, align 8, !tbaa !5
  %234 = getelementptr inbounds %struct.FX_FILE_STRUCT, ptr %233, i32 0, i32 8
  %235 = load i64, ptr %234, align 8, !tbaa !29
  %236 = sub i64 %235, 2
  %237 = load ptr, ptr %13, align 8, !tbaa !5
  %238 = getelementptr inbounds %struct.FX_MEDIA_STRUCT, ptr %237, i32 0, i32 19
  %239 = load i32, ptr %238, align 8, !tbaa !25
  %240 = zext i32 %239 to i64
  %241 = mul i64 %236, %240
  %242 = add i64 %232, %241
  %243 = load i64, ptr %12, align 8, !tbaa !9
  %244 = sub i64 %243, 1
  %245 = load ptr, ptr %13, align 8, !tbaa !5
  %246 = getelementptr inbounds %struct.FX_MEDIA_STRUCT, ptr %245, i32 0, i32 10
  %247 = load i32, ptr %246, align 8, !tbaa !24
  %248 = zext i32 %247 to i64
  %249 = udiv i64 %244, %248
  %250 = add i64 %242, %249
  %251 = load ptr, ptr %4, align 8, !tbaa !5
  %252 = getelementptr inbounds %struct.FX_FILE_STRUCT, ptr %251, i32 0, i32 9
  store i64 %250, ptr %252, align 8, !tbaa !36
  %253 = load i64, ptr %12, align 8, !tbaa !9
  %254 = sub i64 %253, 1
  %255 = load ptr, ptr %13, align 8, !tbaa !5
  %256 = getelementptr inbounds %struct.FX_MEDIA_STRUCT, ptr %255, i32 0, i32 10
  %257 = load i32, ptr %256, align 8, !tbaa !24
  %258 = zext i32 %257 to i64
  %259 = udiv i64 %254, %258
  %260 = trunc i64 %259 to i32
  %261 = zext i32 %260 to i64
  %262 = load ptr, ptr %4, align 8, !tbaa !5
  %263 = getelementptr inbounds %struct.FX_FILE_STRUCT, ptr %262, i32 0, i32 12
  store i64 %261, ptr %263, align 8, !tbaa !37
  %264 = load i64, ptr %5, align 8, !tbaa !9
  %265 = load ptr, ptr %4, align 8, !tbaa !5
  %266 = getelementptr inbounds %struct.FX_FILE_STRUCT, ptr %265, i32 0, i32 13
  store i64 %264, ptr %266, align 8, !tbaa !23
  %267 = load ptr, ptr %13, align 8, !tbaa !5
  %268 = getelementptr inbounds %struct.FX_MEDIA_STRUCT, ptr %267, i32 0, i32 10
  %269 = load i32, ptr %268, align 8, !tbaa !24
  %270 = zext i32 %269 to i64
  %271 = load ptr, ptr %4, align 8, !tbaa !5
  %272 = getelementptr inbounds %struct.FX_FILE_STRUCT, ptr %271, i32 0, i32 10
  store i64 %270, ptr %272, align 8, !tbaa !38
  br label %318

273:                                              ; preds = %224
  %274 = load ptr, ptr %13, align 8, !tbaa !5
  %275 = getelementptr inbounds %struct.FX_MEDIA_STRUCT, ptr %274, i32 0, i32 18
  %276 = load i32, ptr %275, align 4, !tbaa !35
  %277 = zext i32 %276 to i64
  %278 = load ptr, ptr %4, align 8, !tbaa !5
  %279 = getelementptr inbounds %struct.FX_FILE_STRUCT, ptr %278, i32 0, i32 8
  %280 = load i64, ptr %279, align 8, !tbaa !29
  %281 = sub i64 %280, 2
  %282 = load ptr, ptr %13, align 8, !tbaa !5
  %283 = getelementptr inbounds %struct.FX_MEDIA_STRUCT, ptr %282, i32 0, i32 19
  %284 = load i32, ptr %283, align 8, !tbaa !25
  %285 = zext i32 %284 to i64
  %286 = mul i64 %281, %285
  %287 = add i64 %277, %286
  %288 = load i64, ptr %12, align 8, !tbaa !9
  %289 = load ptr, ptr %13, align 8, !tbaa !5
  %290 = getelementptr inbounds %struct.FX_MEDIA_STRUCT, ptr %289, i32 0, i32 10
  %291 = load i32, ptr %290, align 8, !tbaa !24
  %292 = zext i32 %291 to i64
  %293 = udiv i64 %288, %292
  %294 = add i64 %287, %293
  %295 = load ptr, ptr %4, align 8, !tbaa !5
  %296 = getelementptr inbounds %struct.FX_FILE_STRUCT, ptr %295, i32 0, i32 9
  store i64 %294, ptr %296, align 8, !tbaa !36
  %297 = load i64, ptr %12, align 8, !tbaa !9
  %298 = load ptr, ptr %13, align 8, !tbaa !5
  %299 = getelementptr inbounds %struct.FX_MEDIA_STRUCT, ptr %298, i32 0, i32 10
  %300 = load i32, ptr %299, align 8, !tbaa !24
  %301 = zext i32 %300 to i64
  %302 = udiv i64 %297, %301
  %303 = trunc i64 %302 to i32
  %304 = zext i32 %303 to i64
  %305 = load ptr, ptr %4, align 8, !tbaa !5
  %306 = getelementptr inbounds %struct.FX_FILE_STRUCT, ptr %305, i32 0, i32 12
  store i64 %304, ptr %306, align 8, !tbaa !37
  %307 = load i64, ptr %5, align 8, !tbaa !9
  %308 = load ptr, ptr %4, align 8, !tbaa !5
  %309 = getelementptr inbounds %struct.FX_FILE_STRUCT, ptr %308, i32 0, i32 13
  store i64 %307, ptr %309, align 8, !tbaa !23
  %310 = load i64, ptr %12, align 8, !tbaa !9
  %311 = load ptr, ptr %13, align 8, !tbaa !5
  %312 = getelementptr inbounds %struct.FX_MEDIA_STRUCT, ptr %311, i32 0, i32 10
  %313 = load i32, ptr %312, align 8, !tbaa !24
  %314 = zext i32 %313 to i64
  %315 = urem i64 %310, %314
  %316 = load ptr, ptr %4, align 8, !tbaa !5
  %317 = getelementptr inbounds %struct.FX_FILE_STRUCT, ptr %316, i32 0, i32 10
  store i64 %315, ptr %317, align 8, !tbaa !38
  br label %318

318:                                              ; preds = %273, %228
  %319 = load ptr, ptr %13, align 8, !tbaa !5
  %320 = getelementptr inbounds %struct.FX_MEDIA_STRUCT, ptr %319, i32 0, i32 112
  %321 = call i32 @_tx_mutex_put(ptr noundef %320)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %14, align 4
  br label %322

322:                                              ; preds = %318, %201, %150, %65, %49, %41, %35, %19
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  %323 = load i32, ptr %3, align 4
  ret i32 %323
}

; 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 @_tx_mutex_put(ptr noundef) #2

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


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

; Function Attrs: nounwind uwtable
define dso_local i32 @_fx_file_extended_seek(ptr nocapture noundef %0, i64 noundef %1) local_unnamed_addr #0 {
  %3 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
  store i64 0, ptr %3, align 8, !tbaa !5
  %4 = load i64, ptr %0, align 8, !tbaa !9
  %.not = icmp eq i64 %4, 1179208773
  br i1 %.not, label %5, label %126

5:                                                ; preds = %2
  %6 = getelementptr inbounds i8, ptr %0, i64 128
  %7 = load ptr, ptr %6, align 8, !tbaa !15
  %8 = getelementptr inbounds i8, ptr %7, i64 568
  %9 = load i64, ptr %8, align 8, !tbaa !16
  %10 = add i64 %9, 1
  store i64 %10, ptr %8, align 8, !tbaa !16
  %11 = load i64, ptr %7, align 8, !tbaa !20
  %.not115 = icmp eq i64 %11, 1296385097
  br i1 %.not115, label %12, label %126

12:                                               ; preds = %5
  %13 = getelementptr inbounds i8, ptr %7, i64 824
  %14 = tail call i32 @_tx_mutex_get(ptr noundef nonnull %13, i64 noundef 4294967295) #4
  %.not116 = icmp eq i32 %14, 0
  br i1 %.not116, label %15, label %126

15:                                               ; preds = %12
  %16 = getelementptr inbounds i8, ptr %0, i64 104
  %17 = load i64, ptr %16, align 8, !tbaa !21
  %18 = icmp eq i64 %17, %1
  br i1 %18, label %19, label %21

19:                                               ; preds = %15
  %20 = tail call i32 @_tx_mutex_put(ptr noundef nonnull %13) #4
  br label %126

21:                                               ; preds = %15
  %22 = getelementptr inbounds i8, ptr %7, i64 80
  %23 = load i32, ptr %22, align 8, !tbaa !22
  %24 = zext i32 %23 to i64
  %25 = getelementptr inbounds i8, ptr %7, i64 128
  %26 = load i32, ptr %25, align 8, !tbaa !23
  %27 = zext i32 %26 to i64
  %28 = mul nuw i64 %27, %24
  %29 = icmp eq i64 %28, 0
  br i1 %29, label %30, label %32

30:                                               ; preds = %21
  %31 = tail call i32 @_tx_mutex_put(ptr noundef nonnull %13) #4
  br label %126

32:                                               ; preds = %21
  %33 = getelementptr inbounds i8, ptr %0, i64 112
  %34 = load i64, ptr %33, align 8, !tbaa !24
  %spec.select = tail call i64 @llvm.umin.i64(i64 %34, i64 %1)
  %35 = getelementptr inbounds i8, ptr %0, i64 48
  %36 = load i64, ptr %35, align 8, !tbaa !25
  %37 = mul i64 %36, %28
  %.not117 = icmp ult i64 %spec.select, %37
  br i1 %.not117, label %.thread, label %38

38:                                               ; preds = %32
  %39 = getelementptr inbounds i8, ptr %0, i64 88
  %40 = load i64, ptr %39, align 8, !tbaa !26
  %41 = mul i64 %40, %28
  %42 = icmp ult i64 %41, %spec.select
  br i1 %42, label %43, label %46

43:                                               ; preds = %38
  %44 = getelementptr inbounds i8, ptr %0, i64 64
  %45 = load i64, ptr %44, align 8, !tbaa !27
  br label %52

46:                                               ; preds = %38
  %47 = getelementptr inbounds i8, ptr %0, i64 40
  %48 = load i64, ptr %47, align 8, !tbaa !28
  %49 = add i64 %36, -1
  %50 = add i64 %48, %49
  %51 = mul i64 %49, %28
  br label %52

52:                                               ; preds = %46, %43
  %.0107 = phi i64 [ %45, %43 ], [ %50, %46 ]
  %.0102 = phi i64 [ %40, %43 ], [ %49, %46 ]
  %.pn = phi i64 [ %41, %43 ], [ %51, %46 ]
  %.0 = sub i64 %spec.select, %.pn
  %53 = icmp ugt i64 %.0107, 1
  br i1 %53, label %.lr.ph, label %.critedge

.lr.ph:                                           ; preds = %52
  %54 = getelementptr inbounds i8, ptr %7, i64 12120
  br label %55

55:                                               ; preds = %.lr.ph, %66
  %.1135 = phi i64 [ %.0, %.lr.ph ], [ %67, %66 ]
  %.1103134 = phi i64 [ %.0102, %.lr.ph ], [ %59, %66 ]
  %.1108133 = phi i64 [ %.0107, %.lr.ph ], [ %64, %66 ]
  %56 = load i64, ptr %54, align 8, !tbaa !29
  %57 = icmp ult i64 %.1108133, %56
  br i1 %57, label %58, label %.critedge

58:                                               ; preds = %55
  %59 = add i64 %.1103134, 1
  %60 = call i32 @_fx_utility_FAT_entry_read(ptr noundef nonnull %7, i64 noundef %.1108133, ptr noundef nonnull %3) #4
  %.not118 = icmp eq i32 %60, 0
  br i1 %.not118, label %63, label %61

61:                                               ; preds = %58
  %62 = call i32 @_tx_mutex_put(ptr noundef nonnull %13) #4
  br label %126

63:                                               ; preds = %58
  %64 = load i64, ptr %3, align 8, !tbaa !5
  %65 = icmp ugt i64 %.1135, %28
  br i1 %65, label %66, label %69

66:                                               ; preds = %63
  %67 = sub i64 %.1135, %28
  %68 = icmp ugt i64 %64, 1
  br i1 %68, label %55, label %.critedge, !llvm.loop !30

69:                                               ; preds = %63
  %70 = getelementptr inbounds i8, ptr %0, i64 64
  store i64 %.1108133, ptr %70, align 8, !tbaa !27
  store i64 %.1103134, ptr %39, align 8, !tbaa !26
  %71 = icmp eq i64 %.1135, %28
  %72 = icmp ugt i64 %64, 1
  %or.cond = select i1 %71, i1 %72, i1 false
  br i1 %or.cond, label %73, label %.critedge

73:                                               ; preds = %69
  %74 = load i64, ptr %54, align 8, !tbaa !29
  %75 = icmp ult i64 %64, %74
  br i1 %75, label %76, label %.critedge

76:                                               ; preds = %73
  store i64 %64, ptr %70, align 8, !tbaa !27
  store i64 %59, ptr %39, align 8, !tbaa !26
  br label %.critedge

.critedge:                                        ; preds = %55, %66, %52, %69, %73, %76
  %.2104 = phi i64 [ %59, %76 ], [ %59, %73 ], [ %59, %69 ], [ %.0102, %52 ], [ %.1103134, %55 ], [ %59, %66 ]
  %.2 = phi i64 [ 0, %76 ], [ %28, %73 ], [ %.1135, %69 ], [ %.0, %52 ], [ %.1135, %55 ], [ %67, %66 ]
  %77 = mul i64 %.2104, %28
  %78 = icmp ugt i64 %spec.select, %77
  br i1 %78, label %79, label %88

79:                                               ; preds = %.critedge
  %80 = call i32 @_tx_mutex_put(ptr noundef nonnull %13) #4
  br label %126

.thread:                                          ; preds = %32
  %81 = udiv i64 %spec.select, %28
  %82 = getelementptr inbounds i8, ptr %0, i64 88
  store i64 %81, ptr %82, align 8, !tbaa !26
  %83 = getelementptr inbounds i8, ptr %0, i64 40
  %84 = load i64, ptr %83, align 8, !tbaa !28
  %85 = add i64 %84, %81
  %86 = getelementptr inbounds i8, ptr %0, i64 64
  store i64 %85, ptr %86, align 8, !tbaa !27
  %87 = urem i64 %spec.select, %28
  br label %109

88:                                               ; preds = %.critedge
  %89 = icmp eq i64 %.2, %28
  br i1 %89, label %90, label %._crit_edge

._crit_edge:                                      ; preds = %88
  %.phi.trans.insert = getelementptr inbounds i8, ptr %0, i64 64
  %.pre = load i64, ptr %.phi.trans.insert, align 8, !tbaa !27
  %.pre150 = load i32, ptr %25, align 8, !tbaa !23
  %.pre151 = load i32, ptr %22, align 8, !tbaa !22
  %.pre152 = zext i32 %.pre150 to i64
  %.pre153 = zext i32 %.pre151 to i64
  br label %109

90:                                               ; preds = %88
  %91 = getelementptr inbounds i8, ptr %7, i64 124
  %92 = load i32, ptr %91, align 4, !tbaa !32
  %93 = zext i32 %92 to i64
  %94 = getelementptr inbounds i8, ptr %0, i64 64
  %95 = load i64, ptr %94, align 8, !tbaa !27
  %96 = add i64 %95, -2
  %97 = load i32, ptr %25, align 8, !tbaa !23
  %98 = zext i32 %97 to i64
  %99 = mul i64 %96, %98
  %100 = add i64 %99, %93
  %101 = add i64 %28, -1
  %102 = load i32, ptr %22, align 8, !tbaa !22
  %103 = zext i32 %102 to i64
  %104 = udiv i64 %101, %103
  %105 = add i64 %100, %104
  %106 = getelementptr inbounds i8, ptr %0, i64 72
  store i64 %105, ptr %106, align 8, !tbaa !33
  %107 = and i64 %104, 4294967295
  %108 = getelementptr inbounds i8, ptr %0, i64 96
  store i64 %107, ptr %108, align 8, !tbaa !34
  store i64 %spec.select, ptr %16, align 8, !tbaa !21
  br label %123

109:                                              ; preds = %._crit_edge, %.thread
  %.pre-phi154 = phi i64 [ %.pre153, %._crit_edge ], [ %24, %.thread ]
  %.pre-phi = phi i64 [ %.pre152, %._crit_edge ], [ %27, %.thread ]
  %110 = phi i64 [ %.pre, %._crit_edge ], [ %85, %.thread ]
  %.3120 = phi i64 [ %.2, %._crit_edge ], [ %87, %.thread ]
  %111 = getelementptr inbounds i8, ptr %7, i64 124
  %112 = load i32, ptr %111, align 4, !tbaa !32
  %113 = zext i32 %112 to i64
  %114 = add i64 %110, -2
  %115 = mul i64 %114, %.pre-phi
  %116 = add i64 %115, %113
  %117 = udiv i64 %.3120, %.pre-phi154
  %118 = add i64 %116, %117
  %119 = getelementptr inbounds i8, ptr %0, i64 72
  store i64 %118, ptr %119, align 8, !tbaa !33
  %120 = and i64 %117, 4294967295
  %121 = getelementptr inbounds i8, ptr %0, i64 96
  store i64 %120, ptr %121, align 8, !tbaa !34
  store i64 %spec.select, ptr %16, align 8, !tbaa !21
  %122 = urem i64 %.3120, %.pre-phi154
  br label %123

123:                                              ; preds = %109, %90
  %.sink = phi i64 [ %122, %109 ], [ %103, %90 ]
  %124 = getelementptr inbounds i8, ptr %0, i64 80
  store i64 %.sink, ptr %124, align 8, !tbaa !35
  %125 = call i32 @_tx_mutex_put(ptr noundef nonnull %13) #4
  br label %126

126:                                              ; preds = %12, %5, %2, %123, %79, %61, %30, %19
  %.0105 = phi i32 [ 0, %19 ], [ 2, %30 ], [ %60, %61 ], [ 8, %79 ], [ 0, %123 ], [ 7, %2 ], [ 17, %5 ], [ 17, %12 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  ret i32 %.0105
}

; 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 @_tx_mutex_put(ptr noundef) local_unnamed_addr #2

declare i32 @_fx_utility_FAT_entry_read(ptr noundef, i64 noundef, ptr 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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.umin.i64(i64, i64) #3

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 0}
!10 = !{!"FX_FILE_STRUCT", !6, i64 0, !11, i64 8, !6, i64 16, !7, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !12, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !12, i64 104, !12, i64 112, !12, i64 120, !11, i64 128, !11, i64 136, !11, i64 144, !13, i64 152, !7, i64 288, !6, i64 544, !11, i64 552}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!"long long", !7, i64 0}
!13 = !{!"FX_DIR_ENTRY_STRUCT", !11, 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, !6, i64 56, !12, i64 64, !12, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !12, i64 112, !6, i64 120, !12, i64 128}
!14 = !{!"int", !7, i64 0}
!15 = !{!10, !11, i64 128}
!16 = !{!17, !6, i64 568}
!17 = !{!"FX_MEDIA_STRUCT", !6, i64 0, !11, i64 8, !11, i64 16, !6, i64 24, !14, i64 32, !6, i64 40, !11, i64 48, !11, i64 56, !6, i64 64, !6, i64 72, !14, i64 80, !14, i64 84, !14, i64 88, !12, i64 96, !6, 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, !6, i64 152, !14, i64 160, !6, i64 168, !6, i64 176, !14, i64 184, !6, i64 192, !6, i64 200, !11, i64 208, !14, i64 216, !14, i64 220, !11, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !14, i64 256, !14, i64 260, !14, i64 264, !14, i64 268, !14, i64 272, !14, i64 276, !14, 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, !18, i64 824, !14, i64 920, !13, i64 928, !13, i64 1064, !7, i64 1200, !7, i64 1456, !19, 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}
!18 = !{!"TX_MUTEX_STRUCT", !6, i64 0, !11, i64 8, !14, i64 16, !11, i64 24, !14, i64 32, !14, i64 36, !11, i64 40, !14, i64 48, !11, i64 56, !11, i64 64, !14, i64 72, !11, i64 80, !11, i64 88}
!19 = !{!"FX_PATH_STRUCT", !13, i64 0, !7, i64 136, !7, i64 392, !6, i64 648}
!20 = !{!17, !6, i64 0}
!21 = !{!10, !12, i64 104}
!22 = !{!17, !14, i64 80}
!23 = !{!17, !14, i64 128}
!24 = !{!10, !12, i64 112}
!25 = !{!10, !6, i64 48}
!26 = !{!10, !6, i64 88}
!27 = !{!10, !6, i64 64}
!28 = !{!10, !6, i64 40}
!29 = !{!17, !6, i64 12120}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}
!32 = !{!17, !14, i64 124}
!33 = !{!10, !12, i64 72}
!34 = !{!10, !6, i64 96}
!35 = !{!10, !6, i64 80}


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