; LLVM IR from mncoppola/rpef :: utilities_src/squashfs4.2/squashfs-tools (unsquash-4)

; 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.super_block = type { %struct.squashfs_super_block, i32, i32, i64, i64 }
%struct.squashfs_super_block = type { i32, i32, i32, i32, i32, i16, i16, i16, i16, i16, i16, i64, i64, i64, i64, i64, i64, i64, i64 }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%struct.squashfs_operations = type { ptr, ptr, ptr, ptr, ptr, ptr }
%struct.squashfs_dir_header = type { i32, i32, i32 }
%struct.inode = type { i32, ptr, i64, i32, i32, i32, i32, i32, i32, i64, ptr, i64, i32, i32, i8, i32 }
%struct.dir = type { i32, i32, i32, i32, i32, i32, i32, ptr }
%struct.squashfs_dir_entry = type { i16, i16, i16, i16, [0 x i8] }
%struct.dir_ent = type { [257 x i8], i32, i32, i32 }

@sBlk = external global %struct.super_block, align 8
@screen_mutex = external global %union.pthread_mutex_t, align 8
@stderr = external global ptr, align 8
@s_ops = external global %struct.squashfs_operations, align 8
@directory_table_hash = external global [65536 x ptr], align 16
@.str.6 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [56 x i8], align 1
@directory_table = external global ptr, align 8
@.str.8 = external hidden unnamed_addr constant [57 x i8], align 1

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

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #1

; Function Attrs: nounwind
declare i32 @pthread_mutex_lock(ptr noundef) #2

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #2

; Function Attrs: nounwind
declare i32 @pthread_mutex_unlock(ptr noundef) #2

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #3

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

declare i32 @lookup_entry(ptr noundef, i64 noundef) #4

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

; Function Attrs: nounwind uwtable
define dso_local ptr @squashfs_opendir_4(i32 noundef %0, i32 noundef %1, ptr noundef %2) #6 {
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca %struct.squashfs_dir_header, align 4
  %8 = alloca [265 x i8], align 16
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  store i32 %0, ptr %4, align 4, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 12, ptr %7) #8
  call void @llvm.lifetime.start.p0(i64 265, ptr %8) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  %16 = getelementptr inbounds [265 x i8], ptr %8, i64 0, i64 0
  store ptr %16, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  %17 = load ptr, ptr getelementptr inbounds (%struct.squashfs_operations, ptr @s_ops, i32 0, i32 4), align 8, !tbaa !11
  %18 = load i32, ptr %4, align 4, !tbaa !5
  %19 = load i32, ptr %5, align 4, !tbaa !5
  %20 = call ptr %17(i32 noundef %18, i32 noundef %19)
  %21 = load ptr, ptr %6, align 8, !tbaa !9
  store ptr %20, ptr %21, align 8, !tbaa !9
  %22 = load i64, ptr getelementptr inbounds (%struct.squashfs_super_block, ptr @sBlk, i32 0, i32 16), align 8, !tbaa !13
  %23 = load ptr, ptr %6, align 8, !tbaa !9
  %24 = load ptr, ptr %23, align 8, !tbaa !9
  %25 = getelementptr inbounds %struct.inode, ptr %24, i32 0, i32 9
  %26 = load i64, ptr %25, align 8, !tbaa !18
  %27 = add nsw i64 %22, %26
  store i64 %27, ptr %10, align 8, !tbaa !21
  %28 = load i64, ptr %10, align 8, !tbaa !21
  %29 = call i32 @lookup_entry(ptr noundef @directory_table_hash, i64 noundef %28)
  store i32 %29, ptr %11, align 4, !tbaa !5
  %30 = load i32, ptr %11, align 4, !tbaa !5
  %31 = icmp eq i32 %30, -1
  br i1 %31, label %32, label %41

32:                                               ; preds = %3
  br label %33

33:                                               ; preds = %32
  %34 = call i32 @pthread_mutex_lock(ptr noundef @screen_mutex) #8
  %35 = load ptr, ptr @stderr, align 8, !tbaa !9
  %36 = load i32, ptr %4, align 4, !tbaa !5
  %37 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %35, ptr noundef @.str.6, i32 noundef %36) #8
  %38 = call i32 @pthread_mutex_unlock(ptr noundef @screen_mutex) #8
  call void @exit(i32 noundef 1) #9
  unreachable

39:                                               ; No predecessors!
  br label %40

40:                                               ; preds = %39
  br label %41

41:                                               ; preds = %40, %3
  %42 = load ptr, ptr %6, align 8, !tbaa !9
  %43 = load ptr, ptr %42, align 8, !tbaa !9
  %44 = getelementptr inbounds %struct.inode, ptr %43, i32 0, i32 8
  %45 = load i32, ptr %44, align 4, !tbaa !22
  %46 = load i32, ptr %11, align 4, !tbaa !5
  %47 = add nsw i32 %46, %45
  store i32 %47, ptr %11, align 4, !tbaa !5
  %48 = load ptr, ptr %6, align 8, !tbaa !9
  %49 = load ptr, ptr %48, align 8, !tbaa !9
  %50 = getelementptr inbounds %struct.inode, ptr %49, i32 0, i32 2
  %51 = load i64, ptr %50, align 8, !tbaa !23
  %52 = load i32, ptr %11, align 4, !tbaa !5
  %53 = sext i32 %52 to i64
  %54 = add nsw i64 %51, %53
  %55 = sub nsw i64 %54, 3
  %56 = trunc i64 %55 to i32
  store i32 %56, ptr %13, align 4, !tbaa !5
  %57 = call noalias ptr @malloc(i64 noundef 40) #10
  store ptr %57, ptr %15, align 8, !tbaa !9
  %58 = load ptr, ptr %15, align 8, !tbaa !9
  %59 = icmp eq ptr %58, null
  br i1 %59, label %60, label %68

60:                                               ; preds = %41
  br label %61

61:                                               ; preds = %60
  %62 = call i32 @pthread_mutex_lock(ptr noundef @screen_mutex) #8
  %63 = load ptr, ptr @stderr, align 8, !tbaa !9
  %64 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %63, ptr noundef @.str.7) #8
  %65 = call i32 @pthread_mutex_unlock(ptr noundef @screen_mutex) #8
  call void @exit(i32 noundef 1) #9
  unreachable

66:                                               ; No predecessors!
  br label %67

67:                                               ; preds = %66
  br label %68

68:                                               ; preds = %67, %41
  %69 = load ptr, ptr %15, align 8, !tbaa !9
  %70 = getelementptr inbounds %struct.dir, ptr %69, i32 0, i32 0
  store i32 0, ptr %70, align 8, !tbaa !24
  %71 = load ptr, ptr %15, align 8, !tbaa !9
  %72 = getelementptr inbounds %struct.dir, ptr %71, i32 0, i32 1
  store i32 0, ptr %72, align 4, !tbaa !26
  %73 = load ptr, ptr %6, align 8, !tbaa !9
  %74 = load ptr, ptr %73, align 8, !tbaa !9
  %75 = getelementptr inbounds %struct.inode, ptr %74, i32 0, i32 7
  %76 = load i32, ptr %75, align 8, !tbaa !27
  %77 = load ptr, ptr %15, align 8, !tbaa !9
  %78 = getelementptr inbounds %struct.dir, ptr %77, i32 0, i32 2
  store i32 %76, ptr %78, align 8, !tbaa !28
  %79 = load ptr, ptr %6, align 8, !tbaa !9
  %80 = load ptr, ptr %79, align 8, !tbaa !9
  %81 = getelementptr inbounds %struct.inode, ptr %80, i32 0, i32 13
  %82 = load i32, ptr %81, align 4, !tbaa !29
  %83 = load ptr, ptr %15, align 8, !tbaa !9
  %84 = getelementptr inbounds %struct.dir, ptr %83, i32 0, i32 3
  store i32 %82, ptr %84, align 4, !tbaa !30
  %85 = load ptr, ptr %6, align 8, !tbaa !9
  %86 = load ptr, ptr %85, align 8, !tbaa !9
  %87 = getelementptr inbounds %struct.inode, ptr %86, i32 0, i32 5
  %88 = load i32, ptr %87, align 8, !tbaa !31
  %89 = load ptr, ptr %15, align 8, !tbaa !9
  %90 = getelementptr inbounds %struct.dir, ptr %89, i32 0, i32 4
  store i32 %88, ptr %90, align 8, !tbaa !32
  %91 = load ptr, ptr %6, align 8, !tbaa !9
  %92 = load ptr, ptr %91, align 8, !tbaa !9
  %93 = getelementptr inbounds %struct.inode, ptr %92, i32 0, i32 11
  %94 = load i64, ptr %93, align 8, !tbaa !33
  %95 = trunc i64 %94 to i32
  %96 = load ptr, ptr %15, align 8, !tbaa !9
  %97 = getelementptr inbounds %struct.dir, ptr %96, i32 0, i32 5
  store i32 %95, ptr %97, align 4, !tbaa !34
  %98 = load ptr, ptr %6, align 8, !tbaa !9
  %99 = load ptr, ptr %98, align 8, !tbaa !9
  %100 = getelementptr inbounds %struct.inode, ptr %99, i32 0, i32 15
  %101 = load i32, ptr %100, align 4, !tbaa !35
  %102 = load ptr, ptr %15, align 8, !tbaa !9
  %103 = getelementptr inbounds %struct.dir, ptr %102, i32 0, i32 6
  store i32 %101, ptr %103, align 8, !tbaa !36
  %104 = load ptr, ptr %15, align 8, !tbaa !9
  %105 = getelementptr inbounds %struct.dir, ptr %104, i32 0, i32 7
  store ptr null, ptr %105, align 8, !tbaa !37
  br label %106

106:                                              ; preds = %251, %68
  %107 = load i32, ptr %11, align 4, !tbaa !5
  %108 = load i32, ptr %13, align 4, !tbaa !5
  %109 = icmp slt i32 %107, %108
  br i1 %109, label %110, label %252

110:                                              ; preds = %106
  %111 = load ptr, ptr @directory_table, align 8, !tbaa !9
  %112 = load i32, ptr %11, align 4, !tbaa !5
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds i8, ptr %111, i64 %113
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %7, ptr align 1 %114, i64 12, i1 false)
  %115 = getelementptr inbounds %struct.squashfs_dir_header, ptr %7, i32 0, i32 0
  %116 = load i32, ptr %115, align 4, !tbaa !38
  %117 = add i32 %116, 1
  store i32 %117, ptr %12, align 4, !tbaa !5
  %118 = load i32, ptr %11, align 4, !tbaa !5
  %119 = sext i32 %118 to i64
  %120 = add i64 %119, 12
  %121 = trunc i64 %120 to i32
  store i32 %121, ptr %11, align 4, !tbaa !5
  br label %122

122:                                              ; preds = %188, %110
  %123 = load i32, ptr %12, align 4, !tbaa !5
  %124 = add nsw i32 %123, -1
  store i32 %124, ptr %12, align 4, !tbaa !5
  %125 = icmp ne i32 %123, 0
  br i1 %125, label %126, label %251

126:                                              ; preds = %122
  %127 = load ptr, ptr %9, align 8, !tbaa !9
  %128 = load ptr, ptr @directory_table, align 8, !tbaa !9
  %129 = load i32, ptr %11, align 4, !tbaa !5
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds i8, ptr %128, i64 %130
  call void @llvm.memcpy.p0.p0.i64(ptr align 2 %127, ptr align 1 %131, i64 8, i1 false)
  %132 = load i32, ptr %11, align 4, !tbaa !5
  %133 = sext i32 %132 to i64
  %134 = add i64 %133, 8
  %135 = trunc i64 %134 to i32
  store i32 %135, ptr %11, align 4, !tbaa !5
  %136 = load ptr, ptr %9, align 8, !tbaa !9
  %137 = getelementptr inbounds %struct.squashfs_dir_entry, ptr %136, i32 0, i32 4
  %138 = getelementptr inbounds [0 x i8], ptr %137, i64 0, i64 0
  %139 = load ptr, ptr @directory_table, align 8, !tbaa !9
  %140 = load i32, ptr %11, align 4, !tbaa !5
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds i8, ptr %139, i64 %141
  %143 = load ptr, ptr %9, align 8, !tbaa !9
  %144 = getelementptr inbounds %struct.squashfs_dir_entry, ptr %143, i32 0, i32 3
  %145 = load i16, ptr %144, align 2, !tbaa !40
  %146 = zext i16 %145 to i32
  %147 = add nsw i32 %146, 1
  %148 = sext i32 %147 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 2 %138, ptr align 1 %142, i64 %148, i1 false)
  %149 = load ptr, ptr %9, align 8, !tbaa !9
  %150 = getelementptr inbounds %struct.squashfs_dir_entry, ptr %149, i32 0, i32 4
  %151 = load ptr, ptr %9, align 8, !tbaa !9
  %152 = getelementptr inbounds %struct.squashfs_dir_entry, ptr %151, i32 0, i32 3
  %153 = load i16, ptr %152, align 2, !tbaa !40
  %154 = zext i16 %153 to i32
  %155 = add nsw i32 %154, 1
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds [0 x i8], ptr %150, i64 0, i64 %156
  store i8 0, ptr %157, align 1, !tbaa !42
  %158 = load ptr, ptr %15, align 8, !tbaa !9
  %159 = getelementptr inbounds %struct.dir, ptr %158, i32 0, i32 0
  %160 = load i32, ptr %159, align 8, !tbaa !24
  %161 = srem i32 %160, 16
  %162 = icmp eq i32 %161, 0
  br i1 %162, label %163, label %188

163:                                              ; preds = %126
  %164 = load ptr, ptr %15, align 8, !tbaa !9
  %165 = getelementptr inbounds %struct.dir, ptr %164, i32 0, i32 7
  %166 = load ptr, ptr %165, align 8, !tbaa !37
  %167 = load ptr, ptr %15, align 8, !tbaa !9
  %168 = getelementptr inbounds %struct.dir, ptr %167, i32 0, i32 0
  %169 = load i32, ptr %168, align 8, !tbaa !24
  %170 = add nsw i32 %169, 16
  %171 = sext i32 %170 to i64
  %172 = mul i64 %171, 272
  %173 = call ptr @realloc(ptr noundef %166, i64 noundef %172) #11
  store ptr %173, ptr %14, align 8, !tbaa !9
  %174 = load ptr, ptr %14, align 8, !tbaa !9
  %175 = icmp eq ptr %174, null
  br i1 %175, label %176, label %184

176:                                              ; preds = %163
  br label %177

177:                                              ; preds = %176
  %178 = call i32 @pthread_mutex_lock(ptr noundef @screen_mutex) #8
  %179 = load ptr, ptr @stderr, align 8, !tbaa !9
  %180 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %179, ptr noundef @.str.8) #8
  %181 = call i32 @pthread_mutex_unlock(ptr noundef @screen_mutex) #8
  call void @exit(i32 noundef 1) #9
  unreachable

182:                                              ; No predecessors!
  br label %183

183:                                              ; preds = %182
  br label %184

184:                                              ; preds = %183, %163
  %185 = load ptr, ptr %14, align 8, !tbaa !9
  %186 = load ptr, ptr %15, align 8, !tbaa !9
  %187 = getelementptr inbounds %struct.dir, ptr %186, i32 0, i32 7
  store ptr %185, ptr %187, align 8, !tbaa !37
  br label %188

188:                                              ; preds = %184, %126
  %189 = load ptr, ptr %15, align 8, !tbaa !9
  %190 = getelementptr inbounds %struct.dir, ptr %189, i32 0, i32 7
  %191 = load ptr, ptr %190, align 8, !tbaa !37
  %192 = load ptr, ptr %15, align 8, !tbaa !9
  %193 = getelementptr inbounds %struct.dir, ptr %192, i32 0, i32 0
  %194 = load i32, ptr %193, align 8, !tbaa !24
  %195 = sext i32 %194 to i64
  %196 = getelementptr inbounds %struct.dir_ent, ptr %191, i64 %195
  %197 = getelementptr inbounds %struct.dir_ent, ptr %196, i32 0, i32 0
  %198 = getelementptr inbounds [257 x i8], ptr %197, i64 0, i64 0
  %199 = load ptr, ptr %9, align 8, !tbaa !9
  %200 = getelementptr inbounds %struct.squashfs_dir_entry, ptr %199, i32 0, i32 4
  %201 = getelementptr inbounds [0 x i8], ptr %200, i64 0, i64 0
  %202 = call ptr @strcpy(ptr noundef %198, ptr noundef %201) #8
  %203 = getelementptr inbounds %struct.squashfs_dir_header, ptr %7, i32 0, i32 1
  %204 = load i32, ptr %203, align 4, !tbaa !43
  %205 = load ptr, ptr %15, align 8, !tbaa !9
  %206 = getelementptr inbounds %struct.dir, ptr %205, i32 0, i32 7
  %207 = load ptr, ptr %206, align 8, !tbaa !37
  %208 = load ptr, ptr %15, align 8, !tbaa !9
  %209 = getelementptr inbounds %struct.dir, ptr %208, i32 0, i32 0
  %210 = load i32, ptr %209, align 8, !tbaa !24
  %211 = sext i32 %210 to i64
  %212 = getelementptr inbounds %struct.dir_ent, ptr %207, i64 %211
  %213 = getelementptr inbounds %struct.dir_ent, ptr %212, i32 0, i32 1
  store i32 %204, ptr %213, align 4, !tbaa !44
  %214 = load ptr, ptr %9, align 8, !tbaa !9
  %215 = getelementptr inbounds %struct.squashfs_dir_entry, ptr %214, i32 0, i32 0
  %216 = load i16, ptr %215, align 2, !tbaa !46
  %217 = zext i16 %216 to i32
  %218 = load ptr, ptr %15, align 8, !tbaa !9
  %219 = getelementptr inbounds %struct.dir, ptr %218, i32 0, i32 7
  %220 = load ptr, ptr %219, align 8, !tbaa !37
  %221 = load ptr, ptr %15, align 8, !tbaa !9
  %222 = getelementptr inbounds %struct.dir, ptr %221, i32 0, i32 0
  %223 = load i32, ptr %222, align 8, !tbaa !24
  %224 = sext i32 %223 to i64
  %225 = getelementptr inbounds %struct.dir_ent, ptr %220, i64 %224
  %226 = getelementptr inbounds %struct.dir_ent, ptr %225, i32 0, i32 2
  store i32 %217, ptr %226, align 4, !tbaa !47
  %227 = load ptr, ptr %9, align 8, !tbaa !9
  %228 = getelementptr inbounds %struct.squashfs_dir_entry, ptr %227, i32 0, i32 2
  %229 = load i16, ptr %228, align 2, !tbaa !48
  %230 = zext i16 %229 to i32
  %231 = load ptr, ptr %15, align 8, !tbaa !9
  %232 = getelementptr inbounds %struct.dir, ptr %231, i32 0, i32 7
  %233 = load ptr, ptr %232, align 8, !tbaa !37
  %234 = load ptr, ptr %15, align 8, !tbaa !9
  %235 = getelementptr inbounds %struct.dir, ptr %234, i32 0, i32 0
  %236 = load i32, ptr %235, align 8, !tbaa !24
  %237 = sext i32 %236 to i64
  %238 = getelementptr inbounds %struct.dir_ent, ptr %233, i64 %237
  %239 = getelementptr inbounds %struct.dir_ent, ptr %238, i32 0, i32 3
  store i32 %230, ptr %239, align 4, !tbaa !49
  %240 = load ptr, ptr %15, align 8, !tbaa !9
  %241 = getelementptr inbounds %struct.dir, ptr %240, i32 0, i32 0
  %242 = load i32, ptr %241, align 8, !tbaa !24
  %243 = add nsw i32 %242, 1
  store i32 %243, ptr %241, align 8, !tbaa !24
  %244 = load ptr, ptr %9, align 8, !tbaa !9
  %245 = getelementptr inbounds %struct.squashfs_dir_entry, ptr %244, i32 0, i32 3
  %246 = load i16, ptr %245, align 2, !tbaa !40
  %247 = zext i16 %246 to i32
  %248 = add nsw i32 %247, 1
  %249 = load i32, ptr %11, align 4, !tbaa !5
  %250 = add nsw i32 %249, %248
  store i32 %250, ptr %11, align 4, !tbaa !5
  br label %122, !llvm.loop !50

251:                                              ; preds = %122
  br label %106, !llvm.loop !52

252:                                              ; preds = %106
  %253 = load ptr, ptr %15, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 265, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %7) #8
  ret ptr %253
}

; Function Attrs: nounwind allocsize(1)
declare ptr @realloc(ptr noundef, i64 noundef) #7

; Function Attrs: nounwind
declare ptr @strcpy(ptr noundef, ptr noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind "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 = { noreturn nounwind "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 #4 = { "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 #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { 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 #7 = { nounwind allocsize(1) "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 #8 = { nounwind }
attributes #9 = { noreturn nounwind }
attributes #10 = { nounwind allocsize(0) }
attributes #11 = { nounwind allocsize(1) }

!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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !10, i64 32}
!12 = !{!"squashfs_operations", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40}
!13 = !{!14, !17, i64 72}
!14 = !{!"super_block", !15, i64 0, !6, i64 96, !6, i64 100, !17, i64 104, !17, i64 112}
!15 = !{!"squashfs_super_block", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !16, i64 20, !16, i64 22, !16, i64 24, !16, i64 26, !16, i64 28, !16, i64 30, !17, i64 32, !17, i64 40, !17, i64 48, !17, i64 56, !17, i64 64, !17, i64 72, !17, i64 80, !17, i64 88}
!16 = !{!"short", !7, i64 0}
!17 = !{!"long long", !7, i64 0}
!18 = !{!19, !17, i64 48}
!19 = !{!"inode", !6, i64 0, !10, i64 8, !17, i64 16, !6, i64 24, !6, i64 28, !6, i64 32, !6, i64 36, !6, i64 40, !6, i64 44, !17, i64 48, !10, i64 56, !20, i64 64, !6, i64 72, !6, i64 76, !7, i64 80, !6, i64 84}
!20 = !{!"long", !7, i64 0}
!21 = !{!17, !17, i64 0}
!22 = !{!19, !6, i64 44}
!23 = !{!19, !17, i64 16}
!24 = !{!25, !6, i64 0}
!25 = !{!"dir", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !6, i64 24, !10, i64 32}
!26 = !{!25, !6, i64 4}
!27 = !{!19, !6, i64 40}
!28 = !{!25, !6, i64 8}
!29 = !{!19, !6, i64 76}
!30 = !{!25, !6, i64 12}
!31 = !{!19, !6, i64 32}
!32 = !{!25, !6, i64 16}
!33 = !{!19, !20, i64 64}
!34 = !{!25, !6, i64 20}
!35 = !{!19, !6, i64 84}
!36 = !{!25, !6, i64 24}
!37 = !{!25, !10, i64 32}
!38 = !{!39, !6, i64 0}
!39 = !{!"squashfs_dir_header", !6, i64 0, !6, i64 4, !6, i64 8}
!40 = !{!41, !16, i64 6}
!41 = !{!"squashfs_dir_entry", !16, i64 0, !16, i64 2, !16, i64 4, !16, i64 6, !7, i64 8}
!42 = !{!7, !7, i64 0}
!43 = !{!39, !6, i64 4}
!44 = !{!45, !6, i64 260}
!45 = !{!"dir_ent", !7, i64 0, !6, i64 260, !6, i64 264, !6, i64 268}
!46 = !{!41, !16, i64 0}
!47 = !{!45, !6, i64 264}
!48 = !{!41, !16, i64 4}
!49 = !{!45, !6, i64 268}
!50 = distinct !{!50, !51}
!51 = !{!"llvm.loop.mustprogress"}
!52 = distinct !{!52, !51}


; 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.super_block = type { %struct.squashfs_super_block, i32, i32, i64, i64 }
%struct.squashfs_super_block = type { i32, i32, i32, i32, i32, i16, i16, i16, i16, i16, i16, i64, i64, i64, i64, i64, i64, i64, i64 }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%struct.squashfs_operations = type { ptr, ptr, ptr, ptr, ptr, ptr }
%struct.dir_ent = type { [257 x i8], i32, i32, i32 }

@sBlk = external local_unnamed_addr global %struct.super_block, align 8
@screen_mutex = external global %union.pthread_mutex_t, align 8
@stderr = external local_unnamed_addr global ptr, align 8
@s_ops = external local_unnamed_addr global %struct.squashfs_operations, align 8
@directory_table_hash = external global [65536 x ptr], align 16
@.str.6 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [56 x i8], align 1
@directory_table = external local_unnamed_addr global ptr, align 8
@.str.8 = external hidden unnamed_addr constant [57 x i8], align 1

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

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #1

; Function Attrs: nounwind
declare i32 @pthread_mutex_lock(ptr noundef) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #3

; Function Attrs: nounwind
declare i32 @pthread_mutex_unlock(ptr noundef) local_unnamed_addr #2

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #4

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

declare i32 @lookup_entry(ptr noundef, i64 noundef) local_unnamed_addr #5

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

; Function Attrs: nounwind uwtable
define dso_local noundef ptr @squashfs_opendir_4(i32 noundef %0, i32 noundef %1, ptr nocapture noundef %2) local_unnamed_addr #7 {
  %4 = alloca [265 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 265, ptr nonnull %4) #10
  %5 = load ptr, ptr getelementptr inbounds (i8, ptr @s_ops, i64 32), align 8, !tbaa !5
  %6 = tail call ptr %5(i32 noundef %0, i32 noundef %1) #10
  store ptr %6, ptr %2, align 8, !tbaa !10
  %7 = load i64, ptr getelementptr inbounds (i8, ptr @sBlk, i64 72), align 8, !tbaa !11
  %8 = getelementptr inbounds i8, ptr %6, i64 48
  %9 = load i64, ptr %8, align 8, !tbaa !17
  %10 = add nsw i64 %9, %7
  %11 = tail call i32 @lookup_entry(ptr noundef nonnull @directory_table_hash, i64 noundef %10) #10
  %12 = icmp eq i32 %11, -1
  br i1 %12, label %13, label %18

13:                                               ; preds = %3
  %14 = tail call i32 @pthread_mutex_lock(ptr noundef nonnull @screen_mutex) #10
  %15 = load ptr, ptr @stderr, align 8, !tbaa !10
  %16 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %15, ptr noundef nonnull @.str.6, i32 noundef %0) #11
  %17 = tail call i32 @pthread_mutex_unlock(ptr noundef nonnull @screen_mutex) #10
  tail call void @exit(i32 noundef 1) #12
  unreachable

18:                                               ; preds = %3
  %19 = load ptr, ptr %2, align 8, !tbaa !10
  %20 = getelementptr inbounds i8, ptr %19, i64 44
  %21 = load i32, ptr %20, align 4, !tbaa !20
  %22 = add nsw i32 %21, %11
  %23 = getelementptr inbounds i8, ptr %19, i64 16
  %24 = load i64, ptr %23, align 8, !tbaa !21
  %25 = trunc i64 %24 to i32
  %26 = add i32 %22, -3
  %27 = add i32 %26, %25
  %28 = tail call noalias dereferenceable_or_null(40) ptr @malloc(i64 noundef 40) #13
  %29 = icmp eq ptr %28, null
  br i1 %29, label %30, label %35

30:                                               ; preds = %18
  %31 = tail call i32 @pthread_mutex_lock(ptr noundef nonnull @screen_mutex) #10
  %32 = load ptr, ptr @stderr, align 8, !tbaa !10
  %33 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %32, ptr noundef nonnull @.str.7) #11
  %34 = tail call i32 @pthread_mutex_unlock(ptr noundef nonnull @screen_mutex) #10
  tail call void @exit(i32 noundef 1) #12
  unreachable

35:                                               ; preds = %18
  store i32 0, ptr %28, align 8, !tbaa !22
  %36 = getelementptr inbounds i8, ptr %28, i64 4
  store i32 0, ptr %36, align 4, !tbaa !24
  %37 = getelementptr inbounds i8, ptr %19, i64 40
  %38 = load i32, ptr %37, align 8, !tbaa !25
  %39 = getelementptr inbounds i8, ptr %28, i64 8
  store i32 %38, ptr %39, align 8, !tbaa !26
  %40 = getelementptr inbounds i8, ptr %19, i64 76
  %41 = load i32, ptr %40, align 4, !tbaa !27
  %42 = getelementptr inbounds i8, ptr %28, i64 12
  store i32 %41, ptr %42, align 4, !tbaa !28
  %43 = getelementptr inbounds i8, ptr %19, i64 32
  %44 = load i32, ptr %43, align 8, !tbaa !29
  %45 = getelementptr inbounds i8, ptr %28, i64 16
  store i32 %44, ptr %45, align 8, !tbaa !30
  %46 = getelementptr inbounds i8, ptr %19, i64 64
  %47 = load i64, ptr %46, align 8, !tbaa !31
  %48 = trunc i64 %47 to i32
  %49 = getelementptr inbounds i8, ptr %28, i64 20
  store i32 %48, ptr %49, align 4, !tbaa !32
  %50 = getelementptr inbounds i8, ptr %19, i64 84
  %51 = load i32, ptr %50, align 4, !tbaa !33
  %52 = getelementptr inbounds i8, ptr %28, i64 24
  store i32 %51, ptr %52, align 8, !tbaa !34
  %53 = getelementptr inbounds i8, ptr %28, i64 32
  store ptr null, ptr %53, align 8, !tbaa !35
  %54 = icmp slt i32 %22, %27
  br i1 %54, label %.lr.ph67, label %._crit_edge

.lr.ph67:                                         ; preds = %35
  %55 = getelementptr inbounds i8, ptr %4, i64 8
  %56 = getelementptr inbounds i8, ptr %4, i64 4
  br label %61

..loopexit_crit_edge:                             ; preds = %98
  %57 = trunc nsw i64 %indvars.iv.next to i32
  store i32 %57, ptr %28, align 8, !tbaa !22
  br label %.loopexit

.loopexit:                                        ; preds = %..loopexit_crit_edge, %61
  %58 = phi ptr [ %99, %..loopexit_crit_edge ], [ %62, %61 ]
  %59 = phi ptr [ %99, %..loopexit_crit_edge ], [ %63, %61 ]
  %.promoted73 = phi i32 [ %57, %..loopexit_crit_edge ], [ %.promoted, %61 ]
  %.1.lcssa = phi i32 [ %110, %..loopexit_crit_edge ], [ %67, %61 ]
  %60 = icmp slt i32 %.1.lcssa, %27
  br i1 %60, label %61, label %._crit_edge, !llvm.loop !36

61:                                               ; preds = %.lr.ph67, %.loopexit
  %62 = phi ptr [ null, %.lr.ph67 ], [ %58, %.loopexit ]
  %63 = phi ptr [ null, %.lr.ph67 ], [ %59, %.loopexit ]
  %.promoted = phi i32 [ 0, %.lr.ph67 ], [ %.promoted73, %.loopexit ]
  %.066 = phi i32 [ %22, %.lr.ph67 ], [ %.1.lcssa, %.loopexit ]
  %64 = load ptr, ptr @directory_table, align 8, !tbaa !10
  %65 = sext i32 %.066 to i64
  %66 = getelementptr inbounds i8, ptr %64, i64 %65
  %.sroa.0.0.copyload = load i32, ptr %66, align 1
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %66, i64 4
  %.sroa.4.0.copyload = load i32, ptr %.sroa.4.0..sroa_idx, align 1
  %67 = add i32 %.066, 12
  %.not63 = icmp eq i32 %.sroa.0.0.copyload, -1
  br i1 %.not63, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %61
  %68 = sext i32 %.promoted to i64
  br label %69

69:                                               ; preds = %.lr.ph, %98
  %70 = phi ptr [ %62, %.lr.ph ], [ %99, %98 ]
  %71 = phi ptr [ %63, %.lr.ph ], [ %99, %98 ]
  %indvars.iv = phi i64 [ %68, %.lr.ph ], [ %indvars.iv.next, %98 ]
  %72 = phi i32 [ %.sroa.0.0.copyload, %.lr.ph ], [ %111, %98 ]
  %.164 = phi i32 [ %67, %.lr.ph ], [ %110, %98 ]
  %73 = load ptr, ptr @directory_table, align 8, !tbaa !10
  %74 = sext i32 %.164 to i64
  %75 = getelementptr inbounds i8, ptr %73, i64 %74
  %76 = load i64, ptr %75, align 1
  store i64 %76, ptr %4, align 16
  %77 = add i32 %.164, 8
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds i8, ptr %73, i64 %78
  %80 = lshr i64 %76, 48
  %81 = trunc nuw nsw i64 %80 to i32
  %82 = add nuw nsw i64 %80, 1
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(1) %55, ptr noundef nonnull align 1 dereferenceable(1) %79, i64 %82, i1 false)
  %83 = getelementptr inbounds [0 x i8], ptr %55, i64 0, i64 %82
  store i8 0, ptr %83, align 1, !tbaa !38
  %84 = trunc nsw i64 %indvars.iv to i32
  %85 = and i32 %84, 15
  %86 = icmp eq i32 %85, 0
  br i1 %86, label %87, label %98

87:                                               ; preds = %69
  %88 = mul i64 %indvars.iv, 272
  %89 = add i64 %88, 4352
  %90 = tail call ptr @realloc(ptr noundef %71, i64 noundef %89) #14
  %91 = icmp eq ptr %90, null
  br i1 %91, label %92, label %97

92:                                               ; preds = %87
  store i32 %84, ptr %28, align 8, !tbaa !22
  %93 = tail call i32 @pthread_mutex_lock(ptr noundef nonnull @screen_mutex) #10
  %94 = load ptr, ptr @stderr, align 8, !tbaa !10
  %95 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %94, ptr noundef nonnull @.str.8) #11
  %96 = tail call i32 @pthread_mutex_unlock(ptr noundef nonnull @screen_mutex) #10
  tail call void @exit(i32 noundef 1) #12
  unreachable

97:                                               ; preds = %87
  store ptr %90, ptr %53, align 8, !tbaa !35
  br label %98

98:                                               ; preds = %97, %69
  %99 = phi ptr [ %90, %97 ], [ %70, %69 ]
  %100 = getelementptr inbounds %struct.dir_ent, ptr %99, i64 %indvars.iv
  %101 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %100, ptr noundef nonnull dereferenceable(1) %55) #10
  %102 = getelementptr inbounds %struct.dir_ent, ptr %99, i64 %indvars.iv, i32 1
  store i32 %.sroa.4.0.copyload, ptr %102, align 4, !tbaa !39
  %103 = load i16, ptr %4, align 16, !tbaa !41
  %104 = zext i16 %103 to i32
  %105 = getelementptr inbounds %struct.dir_ent, ptr %99, i64 %indvars.iv, i32 2
  store i32 %104, ptr %105, align 4, !tbaa !43
  %106 = load i16, ptr %56, align 4, !tbaa !44
  %107 = zext i16 %106 to i32
  %108 = getelementptr inbounds %struct.dir_ent, ptr %99, i64 %indvars.iv, i32 3
  store i32 %107, ptr %108, align 4, !tbaa !45
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %109 = add i32 %.164, 9
  %110 = add i32 %109, %81
  %111 = add nsw i32 %72, -1
  %.not = icmp eq i32 %72, 0
  br i1 %.not, label %..loopexit_crit_edge, label %69, !llvm.loop !46

._crit_edge:                                      ; preds = %.loopexit, %35
  call void @llvm.lifetime.end.p0(i64 265, ptr nonnull %4) #10
  ret ptr %28
}

; Function Attrs: mustprogress nounwind willreturn allockind("realloc") allocsize(1) memory(argmem: readwrite, inaccessiblemem: readwrite)
declare noalias noundef ptr @realloc(ptr allocptr nocapture noundef, i64 noundef) local_unnamed_addr #8

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strcpy(ptr noalias noundef returned writeonly, ptr noalias nocapture noundef readonly) local_unnamed_addr #9

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind "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 = { nofree nounwind "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 #4 = { noreturn nounwind "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 #5 = { "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 #6 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { 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 #8 = { mustprogress nounwind willreturn allockind("realloc") allocsize(1) memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 #9 = { mustprogress nofree nounwind willreturn memory(argmem: readwrite) "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 #10 = { nounwind }
attributes #11 = { cold nounwind }
attributes #12 = { noreturn nounwind }
attributes #13 = { nounwind allocsize(0) }
attributes #14 = { nounwind allocsize(1) }

!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 32}
!6 = !{!"squashfs_operations", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!7, !7, i64 0}
!11 = !{!12, !16, i64 72}
!12 = !{!"super_block", !13, i64 0, !14, i64 96, !14, i64 100, !16, i64 104, !16, i64 112}
!13 = !{!"squashfs_super_block", !14, i64 0, !14, i64 4, !14, i64 8, !14, i64 12, !14, i64 16, !15, i64 20, !15, i64 22, !15, i64 24, !15, i64 26, !15, i64 28, !15, i64 30, !16, i64 32, !16, i64 40, !16, i64 48, !16, i64 56, !16, i64 64, !16, i64 72, !16, i64 80, !16, i64 88}
!14 = !{!"int", !8, i64 0}
!15 = !{!"short", !8, i64 0}
!16 = !{!"long long", !8, i64 0}
!17 = !{!18, !16, i64 48}
!18 = !{!"inode", !14, i64 0, !7, i64 8, !16, i64 16, !14, i64 24, !14, i64 28, !14, i64 32, !14, i64 36, !14, i64 40, !14, i64 44, !16, i64 48, !7, i64 56, !19, i64 64, !14, i64 72, !14, i64 76, !8, i64 80, !14, i64 84}
!19 = !{!"long", !8, i64 0}
!20 = !{!18, !14, i64 44}
!21 = !{!18, !16, i64 16}
!22 = !{!23, !14, i64 0}
!23 = !{!"dir", !14, i64 0, !14, i64 4, !14, i64 8, !14, i64 12, !14, i64 16, !14, i64 20, !14, i64 24, !7, i64 32}
!24 = !{!23, !14, i64 4}
!25 = !{!18, !14, i64 40}
!26 = !{!23, !14, i64 8}
!27 = !{!18, !14, i64 76}
!28 = !{!23, !14, i64 12}
!29 = !{!18, !14, i64 32}
!30 = !{!23, !14, i64 16}
!31 = !{!18, !19, i64 64}
!32 = !{!23, !14, i64 20}
!33 = !{!18, !14, i64 84}
!34 = !{!23, !14, i64 24}
!35 = !{!23, !7, i64 32}
!36 = distinct !{!36, !37}
!37 = !{!"llvm.loop.mustprogress"}
!38 = !{!8, !8, i64 0}
!39 = !{!40, !14, i64 260}
!40 = !{!"dir_ent", !8, i64 0, !14, i64 260, !14, i64 264, !14, i64 268}
!41 = !{!42, !15, i64 0}
!42 = !{!"squashfs_dir_entry", !15, i64 0, !15, i64 2, !15, i64 4, !15, i64 6, !8, i64 8}
!43 = !{!40, !14, i64 264}
!44 = !{!42, !15, i64 4}
!45 = !{!40, !14, i64 268}
!46 = distinct !{!46, !37}


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