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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @_fx_directory_information_get(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 i32, align 4
  %23 = alloca %struct.FX_DIR_ENTRY_STRUCT, align 8
  %24 = alloca i64, align 8
  %25 = alloca ptr, align 8
  %26 = 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 4, ptr %22) #3
  call void @llvm.lifetime.start.p0(i64 136, ptr %23) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #3
  %27 = load ptr, ptr %12, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.FX_MEDIA_STRUCT, ptr %27, i32 0, i32 60
  %29 = load i64, ptr %28, align 8, !tbaa !9
  %30 = add i64 %29, 1
  store i64 %30, ptr %28, align 8, !tbaa !9
  %31 = load ptr, ptr %12, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.FX_MEDIA_STRUCT, ptr %31, i32 0, i32 122
  %33 = getelementptr inbounds [1024 x i8], ptr %32, i64 0, i64 0
  %34 = getelementptr inbounds i8, ptr %33, i64 256
  %35 = getelementptr inbounds %struct.FX_DIR_ENTRY_STRUCT, ptr %23, i32 0, i32 0
  store ptr %34, ptr %35, align 8, !tbaa !17
  %36 = getelementptr inbounds %struct.FX_DIR_ENTRY_STRUCT, ptr %23, i32 0, i32 1
  %37 = getelementptr inbounds [13 x i8], ptr %36, i64 0, i64 0
  store i8 0, ptr %37, align 8, !tbaa !18
  %38 = load ptr, ptr %12, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.FX_MEDIA_STRUCT, ptr %38, i32 0, i32 0
  %40 = load i64, ptr %39, align 8, !tbaa !19
  %41 = icmp ne i64 %40, 1296385097
  br i1 %41, label %42, label %43

42:                                               ; preds = %10
  store i32 17, ptr %11, align 4
  store i32 1, ptr %26, align 4
  br label %180

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

48:                                               ; preds = %43
  store i32 17, ptr %11, align 4
  store i32 1, ptr %26, align 4
  br label %180

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

54:                                               ; preds = %49
  store i32 17, ptr %11, align 4
  store i32 1, ptr %26, align 4
  br label %180

55:                                               ; preds = %49
  br label %56

56:                                               ; preds = %55
  %57 = load ptr, ptr %12, align 8, !tbaa !5
  %58 = load ptr, ptr %13, align 8, !tbaa !5
  %59 = call i32 @_fx_directory_search(ptr noundef %57, ptr noundef %58, ptr noundef %23, ptr noundef null, ptr noundef null)
  store i32 %59, ptr %22, align 4, !tbaa !20
  %60 = load i32, ptr %22, align 4, !tbaa !20
  %61 = icmp ne i32 %60, 0
  br i1 %61, label %62, label %67

62:                                               ; preds = %56
  %63 = load ptr, ptr %12, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.FX_MEDIA_STRUCT, ptr %63, i32 0, i32 112
  %65 = call i32 @_tx_mutex_put(ptr noundef %64)
  %66 = load i32, ptr %22, align 4, !tbaa !20
  store i32 %66, ptr %11, align 4
  store i32 1, ptr %26, align 4
  br label %180

67:                                               ; preds = %56
  %68 = load ptr, ptr %12, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.FX_MEDIA_STRUCT, ptr %68, i32 0, i32 49
  %70 = load i64, ptr %69, align 8, !tbaa !21
  store i64 %70, ptr %24, align 8, !tbaa !22
  %71 = load ptr, ptr %12, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.FX_MEDIA_STRUCT, ptr %71, i32 0, i32 48
  %73 = load ptr, ptr %72, align 8, !tbaa !23
  store ptr %73, ptr %25, align 8, !tbaa !5
  br label %74

74:                                               ; preds = %101, %67
  %75 = load i64, ptr %24, align 8, !tbaa !22
  %76 = icmp ne i64 %75, 0
  br i1 %76, label %77, label %107

77:                                               ; preds = %74
  %78 = load ptr, ptr %25, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.FX_FILE_STRUCT, ptr %78, i32 0, i32 19
  %80 = getelementptr inbounds %struct.FX_DIR_ENTRY_STRUCT, ptr %79, i32 0, i32 14
  %81 = load i64, ptr %80, align 8, !tbaa !24
  %82 = getelementptr inbounds %struct.FX_DIR_ENTRY_STRUCT, ptr %23, i32 0, i32 14
  %83 = load i64, ptr %82, align 8, !tbaa !26
  %84 = icmp eq i64 %81, %83
  br i1 %84, label %85, label %101

85:                                               ; preds = %77
  %86 = load ptr, ptr %25, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.FX_FILE_STRUCT, ptr %86, i32 0, i32 19
  %88 = getelementptr inbounds %struct.FX_DIR_ENTRY_STRUCT, ptr %87, i32 0, i32 15
  %89 = load i64, ptr %88, align 8, !tbaa !27
  %90 = getelementptr inbounds %struct.FX_DIR_ENTRY_STRUCT, ptr %23, i32 0, i32 15
  %91 = load i64, ptr %90, align 8, !tbaa !28
  %92 = icmp eq i64 %89, %91
  br i1 %92, label %93, label %101

93:                                               ; preds = %85
  %94 = load ptr, ptr %25, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.FX_FILE_STRUCT, ptr %94, i32 0, i32 2
  %96 = load i64, ptr %95, align 8, !tbaa !29
  %97 = icmp ne i64 %96, 0
  br i1 %97, label %98, label %101

98:                                               ; preds = %93
  %99 = load ptr, ptr %25, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.FX_FILE_STRUCT, ptr %99, i32 0, i32 19
  call void @_fx_utility_memory_copy(ptr noundef %100, ptr noundef %23, i64 noundef 136)
  br label %107

101:                                              ; preds = %93, %85, %77
  %102 = load ptr, ptr %25, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.FX_FILE_STRUCT, ptr %102, i32 0, i32 17
  %104 = load ptr, ptr %103, align 8, !tbaa !30
  store ptr %104, ptr %25, align 8, !tbaa !5
  %105 = load i64, ptr %24, align 8, !tbaa !22
  %106 = add i64 %105, -1
  store i64 %106, ptr %24, align 8, !tbaa !22
  br label %74, !llvm.loop !31

107:                                              ; preds = %98, %74
  %108 = load ptr, ptr %14, align 8, !tbaa !5
  %109 = icmp ne ptr %108, null
  br i1 %109, label %110, label %115

110:                                              ; preds = %107
  %111 = getelementptr inbounds %struct.FX_DIR_ENTRY_STRUCT, ptr %23, i32 0, i32 4
  %112 = load i8, ptr %111, align 8, !tbaa !33
  %113 = zext i8 %112 to i32
  %114 = load ptr, ptr %14, align 8, !tbaa !5
  store i32 %113, ptr %114, align 4, !tbaa !20
  br label %115

115:                                              ; preds = %110, %107
  %116 = load ptr, ptr %15, align 8, !tbaa !5
  %117 = icmp ne ptr %116, null
  br i1 %117, label %118, label %122

118:                                              ; preds = %115
  %119 = getelementptr inbounds %struct.FX_DIR_ENTRY_STRUCT, ptr %23, i32 0, i32 13
  %120 = load i64, ptr %119, align 8, !tbaa !34
  %121 = load ptr, ptr %15, align 8, !tbaa !5
  store i64 %120, ptr %121, align 8, !tbaa !22
  br label %122

122:                                              ; preds = %118, %115
  %123 = load ptr, ptr %16, align 8, !tbaa !5
  %124 = icmp ne ptr %123, null
  br i1 %124, label %125, label %132

125:                                              ; preds = %122
  %126 = getelementptr inbounds %struct.FX_DIR_ENTRY_STRUCT, ptr %23, i32 0, i32 11
  %127 = load i32, ptr %126, align 4, !tbaa !35
  %128 = lshr i32 %127, 9
  %129 = and i32 %128, 127
  %130 = add i32 %129, 1980
  %131 = load ptr, ptr %16, align 8, !tbaa !5
  store i32 %130, ptr %131, align 4, !tbaa !20
  br label %132

132:                                              ; preds = %125, %122
  %133 = load ptr, ptr %17, align 8, !tbaa !5
  %134 = icmp ne ptr %133, null
  br i1 %134, label %135, label %141

135:                                              ; preds = %132
  %136 = getelementptr inbounds %struct.FX_DIR_ENTRY_STRUCT, ptr %23, i32 0, i32 11
  %137 = load i32, ptr %136, align 4, !tbaa !35
  %138 = lshr i32 %137, 5
  %139 = and i32 %138, 15
  %140 = load ptr, ptr %17, align 8, !tbaa !5
  store i32 %139, ptr %140, align 4, !tbaa !20
  br label %141

141:                                              ; preds = %135, %132
  %142 = load ptr, ptr %18, align 8, !tbaa !5
  %143 = icmp ne ptr %142, null
  br i1 %143, label %144, label %149

144:                                              ; preds = %141
  %145 = getelementptr inbounds %struct.FX_DIR_ENTRY_STRUCT, ptr %23, i32 0, i32 11
  %146 = load i32, ptr %145, align 4, !tbaa !35
  %147 = and i32 %146, 31
  %148 = load ptr, ptr %18, align 8, !tbaa !5
  store i32 %147, ptr %148, align 4, !tbaa !20
  br label %149

149:                                              ; preds = %144, %141
  %150 = load ptr, ptr %19, align 8, !tbaa !5
  %151 = icmp ne ptr %150, null
  br i1 %151, label %152, label %158

152:                                              ; preds = %149
  %153 = getelementptr inbounds %struct.FX_DIR_ENTRY_STRUCT, ptr %23, i32 0, i32 10
  %154 = load i32, ptr %153, align 8, !tbaa !36
  %155 = lshr i32 %154, 11
  %156 = and i32 %155, 31
  %157 = load ptr, ptr %19, align 8, !tbaa !5
  store i32 %156, ptr %157, align 4, !tbaa !20
  br label %158

158:                                              ; preds = %152, %149
  %159 = load ptr, ptr %20, align 8, !tbaa !5
  %160 = icmp ne ptr %159, null
  br i1 %160, label %161, label %167

161:                                              ; preds = %158
  %162 = getelementptr inbounds %struct.FX_DIR_ENTRY_STRUCT, ptr %23, i32 0, i32 10
  %163 = load i32, ptr %162, align 8, !tbaa !36
  %164 = lshr i32 %163, 5
  %165 = and i32 %164, 63
  %166 = load ptr, ptr %20, align 8, !tbaa !5
  store i32 %165, ptr %166, align 4, !tbaa !20
  br label %167

167:                                              ; preds = %161, %158
  %168 = load ptr, ptr %21, align 8, !tbaa !5
  %169 = icmp ne ptr %168, null
  br i1 %169, label %170, label %176

170:                                              ; preds = %167
  %171 = getelementptr inbounds %struct.FX_DIR_ENTRY_STRUCT, ptr %23, i32 0, i32 10
  %172 = load i32, ptr %171, align 8, !tbaa !36
  %173 = and i32 %172, 31
  %174 = mul i32 %173, 2
  %175 = load ptr, ptr %21, align 8, !tbaa !5
  store i32 %174, ptr %175, align 4, !tbaa !20
  br label %176

176:                                              ; preds = %170, %167
  %177 = load ptr, ptr %12, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.FX_MEDIA_STRUCT, ptr %177, i32 0, i32 112
  %179 = call i32 @_tx_mutex_put(ptr noundef %178)
  store i32 0, ptr %11, align 4
  store i32 1, ptr %26, align 4
  br label %180

180:                                              ; preds = %176, %62, %54, %48, %42
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 136, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #3
  %181 = load i32, ptr %11, align 4
  ret i32 %181
}

; 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_directory_search(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

declare i32 @_tx_mutex_put(ptr noundef) #2

declare void @_fx_utility_memory_copy(ptr noundef, ptr noundef, i64 noundef) #2

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 408}
!10 = !{!"FX_MEDIA_STRUCT", !11, i64 0, !6, i64 8, !6, i64 16, !11, i64 24, !12, i64 32, !11, i64 40, !6, i64 48, !6, i64 56, !11, i64 64, !11, i64 72, !12, i64 80, !12, i64 84, !12, i64 88, !13, i64 96, !11, 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, !11, i64 152, !12, i64 160, !11, i64 168, !11, i64 176, !12, i64 184, !11, i64 192, !11, i64 200, !6, i64 208, !12, i64 216, !12, i64 220, !6, i64 224, !11, i64 232, !11, i64 240, !11, i64 248, !12, i64 256, !12, i64 260, !12, i64 264, !12, i64 268, !12, i64 272, !12, i64 276, !12, i64 280, !6, i64 288, !6, i64 296, !6, i64 304, !6, i64 312, !11, i64 320, !6, i64 328, !6, i64 336, !11, i64 344, !11, i64 352, !11, i64 360, !11, i64 368, !11, i64 376, !11, i64 384, !11, i64 392, !11, i64 400, !11, i64 408, !11, i64 416, !11, i64 424, !11, i64 432, !11, i64 440, !11, i64 448, !11, i64 456, !11, i64 464, !11, i64 472, !11, i64 480, !11, i64 488, !11, i64 496, !11, i64 504, !11, i64 512, !11, i64 520, !11, i64 528, !11, i64 536, !11, i64 544, !11, i64 552, !11, i64 560, !11, i64 568, !11, i64 576, !11, i64 584, !11, i64 592, !11, i64 600, !11, i64 608, !11, i64 616, !11, i64 624, !11, i64 632, !11, i64 640, !11, i64 648, !11, i64 656, !11, i64 664, !11, i64 672, !11, i64 680, !11, i64 688, !11, i64 696, !11, i64 704, !11, i64 712, !11, i64 720, !11, i64 728, !11, i64 736, !11, i64 744, !11, i64 752, !11, i64 760, !11, i64 768, !11, i64 776, !11, i64 784, !11, i64 792, !11, i64 800, !11, i64 808, !11, 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, !11, i64 2880, !7, i64 2888, !7, i64 3912, !11, i64 12104, !11, i64 12112, !11, i64 12120, !11, i64 12128, !7, i64 12136}
!11 = !{!"long", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!"long long", !7, i64 0}
!14 = !{!"TX_MUTEX_STRUCT", !11, i64 0, !6, i64 8, !12, i64 16, !6, i64 24, !12, i64 32, !12, i64 36, !6, i64 40, !12, i64 48, !6, i64 56, !6, i64 64, !12, i64 72, !6, i64 80, !6, i64 88}
!15 = !{!"FX_DIR_ENTRY_STRUCT", !6, 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, !11, i64 56, !13, i64 64, !13, i64 72, !11, i64 80, !11, i64 88, !11, i64 96, !11, i64 104, !13, i64 112, !11, i64 120, !13, i64 128}
!16 = !{!"FX_PATH_STRUCT", !15, i64 0, !7, i64 136, !7, i64 392, !11, i64 648}
!17 = !{!15, !6, i64 0}
!18 = !{!7, !7, i64 0}
!19 = !{!10, !11, i64 0}
!20 = !{!12, !12, i64 0}
!21 = !{!10, !11, i64 320}
!22 = !{!11, !11, i64 0}
!23 = !{!10, !6, i64 312}
!24 = !{!25, !13, i64 224}
!25 = !{!"FX_FILE_STRUCT", !11, i64 0, !6, i64 8, !11, i64 16, !7, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !13, i64 72, !11, i64 80, !11, i64 88, !11, i64 96, !13, i64 104, !13, i64 112, !13, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !15, i64 152, !7, i64 288, !11, i64 544, !6, i64 552}
!26 = !{!15, !13, i64 72}
!27 = !{!25, !11, i64 232}
!28 = !{!15, !11, i64 80}
!29 = !{!25, !11, i64 16}
!30 = !{!25, !6, i64 136}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}
!33 = !{!15, !7, i64 32}
!34 = !{!15, !13, i64 64}
!35 = !{!15, !12, i64 52}
!36 = !{!15, !12, i64 48}


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

; Function Attrs: nounwind uwtable
define dso_local i32 @_fx_directory_information_get(ptr noundef %0, ptr noundef %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 = alloca %struct.FX_DIR_ENTRY_STRUCT, align 8
  call void @llvm.lifetime.start.p0(i64 136, ptr nonnull %11) #3
  %12 = getelementptr inbounds i8, ptr %0, i64 408
  %13 = load i64, ptr %12, align 8, !tbaa !5
  %14 = add i64 %13, 1
  store i64 %14, ptr %12, align 8, !tbaa !5
  %15 = getelementptr inbounds i8, ptr %0, i64 3144
  store ptr %15, ptr %11, align 8, !tbaa !16
  %16 = getelementptr inbounds i8, ptr %11, i64 8
  store i8 0, ptr %16, align 8, !tbaa !17
  %17 = load i64, ptr %0, align 8, !tbaa !18
  %.not = icmp eq i64 %17, 1296385097
  br i1 %.not, label %18, label %92

18:                                               ; preds = %10
  %19 = getelementptr inbounds i8, ptr %0, i64 824
  %20 = tail call i32 @_tx_mutex_get(ptr noundef nonnull %19, i64 noundef 4294967295) #3
  %.not47 = icmp eq i32 %20, 0
  br i1 %.not47, label %21, label %92

21:                                               ; preds = %18
  %22 = call i32 @_fx_directory_search(ptr noundef nonnull %0, ptr noundef %1, ptr noundef nonnull %11, ptr noundef null, ptr noundef null) #3
  %.not48 = icmp eq i32 %22, 0
  br i1 %.not48, label %23, label %.sink.split

23:                                               ; preds = %21
  %24 = getelementptr inbounds i8, ptr %0, i64 320
  %25 = load i64, ptr %24, align 8, !tbaa !19
  %.not4960 = icmp eq i64 %25, 0
  br i1 %.not4960, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %23
  %26 = getelementptr inbounds i8, ptr %0, i64 312
  %27 = getelementptr inbounds i8, ptr %11, i64 72
  %28 = load i64, ptr %27, align 8, !tbaa !20
  %29 = getelementptr inbounds i8, ptr %11, i64 80
  %30 = load i64, ptr %29, align 8
  br label %31

31:                                               ; preds = %.lr.ph, %44
  %.062.in = phi ptr [ %26, %.lr.ph ], [ %45, %44 ]
  %.03661 = phi i64 [ %25, %.lr.ph ], [ %46, %44 ]
  %.062 = load ptr, ptr %.062.in, align 8, !tbaa !21
  %32 = getelementptr inbounds i8, ptr %.062, i64 224
  %33 = load i64, ptr %32, align 8, !tbaa !22
  %34 = icmp eq i64 %33, %28
  br i1 %34, label %35, label %44

35:                                               ; preds = %31
  %36 = getelementptr inbounds i8, ptr %.062, i64 232
  %37 = load i64, ptr %36, align 8, !tbaa !24
  %38 = icmp eq i64 %37, %30
  br i1 %38, label %39, label %44

39:                                               ; preds = %35
  %40 = getelementptr inbounds i8, ptr %.062, i64 16
  %41 = load i64, ptr %40, align 8, !tbaa !25
  %.not50 = icmp eq i64 %41, 0
  br i1 %.not50, label %44, label %42

42:                                               ; preds = %39
  %43 = getelementptr inbounds i8, ptr %.062, i64 152
  call void @_fx_utility_memory_copy(ptr noundef nonnull %43, ptr noundef nonnull %11, i64 noundef 136) #3
  br label %.loopexit

44:                                               ; preds = %39, %35, %31
  %45 = getelementptr inbounds i8, ptr %.062, i64 136
  %46 = add i64 %.03661, -1
  %.not49 = icmp eq i64 %46, 0
  br i1 %.not49, label %.loopexit, label %31, !llvm.loop !26

.loopexit:                                        ; preds = %44, %23, %42
  %.not51 = icmp eq ptr %2, null
  br i1 %.not51, label %51, label %47

47:                                               ; preds = %.loopexit
  %48 = getelementptr inbounds i8, ptr %11, i64 32
  %49 = load i8, ptr %48, align 8, !tbaa !28
  %50 = zext i8 %49 to i32
  store i32 %50, ptr %2, align 4, !tbaa !29
  br label %51

51:                                               ; preds = %47, %.loopexit
  %.not52 = icmp eq ptr %3, null
  br i1 %.not52, label %55, label %52

52:                                               ; preds = %51
  %53 = getelementptr inbounds i8, ptr %11, i64 64
  %54 = load i64, ptr %53, align 8, !tbaa !30
  store i64 %54, ptr %3, align 8, !tbaa !31
  br label %55

55:                                               ; preds = %52, %51
  %.not53 = icmp eq ptr %4, null
  br i1 %.not53, label %62, label %56

56:                                               ; preds = %55
  %57 = getelementptr inbounds i8, ptr %11, i64 52
  %58 = load i32, ptr %57, align 4, !tbaa !32
  %59 = lshr i32 %58, 9
  %60 = and i32 %59, 127
  %61 = add nuw nsw i32 %60, 1980
  store i32 %61, ptr %4, align 4, !tbaa !29
  br label %62

62:                                               ; preds = %56, %55
  %.not54 = icmp eq ptr %5, null
  br i1 %.not54, label %68, label %63

63:                                               ; preds = %62
  %64 = getelementptr inbounds i8, ptr %11, i64 52
  %65 = load i32, ptr %64, align 4, !tbaa !32
  %66 = lshr i32 %65, 5
  %67 = and i32 %66, 15
  store i32 %67, ptr %5, align 4, !tbaa !29
  br label %68

68:                                               ; preds = %63, %62
  %.not55 = icmp eq ptr %6, null
  br i1 %.not55, label %73, label %69

69:                                               ; preds = %68
  %70 = getelementptr inbounds i8, ptr %11, i64 52
  %71 = load i32, ptr %70, align 4, !tbaa !32
  %72 = and i32 %71, 31
  store i32 %72, ptr %6, align 4, !tbaa !29
  br label %73

73:                                               ; preds = %69, %68
  %.not56 = icmp eq ptr %7, null
  br i1 %.not56, label %79, label %74

74:                                               ; preds = %73
  %75 = getelementptr inbounds i8, ptr %11, i64 48
  %76 = load i32, ptr %75, align 8, !tbaa !33
  %77 = lshr i32 %76, 11
  %78 = and i32 %77, 31
  store i32 %78, ptr %7, align 4, !tbaa !29
  br label %79

79:                                               ; preds = %74, %73
  %.not57 = icmp eq ptr %8, null
  br i1 %.not57, label %85, label %80

80:                                               ; preds = %79
  %81 = getelementptr inbounds i8, ptr %11, i64 48
  %82 = load i32, ptr %81, align 8, !tbaa !33
  %83 = lshr i32 %82, 5
  %84 = and i32 %83, 63
  store i32 %84, ptr %8, align 4, !tbaa !29
  br label %85

85:                                               ; preds = %80, %79
  %.not58 = icmp eq ptr %9, null
  br i1 %.not58, label %.sink.split, label %86

86:                                               ; preds = %85
  %87 = getelementptr inbounds i8, ptr %11, i64 48
  %88 = load i32, ptr %87, align 8, !tbaa !33
  %89 = shl i32 %88, 1
  %90 = and i32 %89, 62
  store i32 %90, ptr %9, align 4, !tbaa !29
  br label %.sink.split

.sink.split:                                      ; preds = %85, %86, %21
  %.037.ph = phi i32 [ %22, %21 ], [ 0, %86 ], [ 0, %85 ]
  %91 = call i32 @_tx_mutex_put(ptr noundef nonnull %19) #3
  br label %92

92:                                               ; preds = %.sink.split, %18, %10
  %.037 = phi i32 [ 17, %10 ], [ 17, %18 ], [ %.037.ph, %.sink.split ]
  call void @llvm.lifetime.end.p0(i64 136, ptr nonnull %11) #3
  ret i32 %.037
}

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

declare i32 @_tx_mutex_put(ptr noundef) local_unnamed_addr #2

declare void @_fx_utility_memory_copy(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #2

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }

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

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


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