; LLVM IR from mncoppola/rpef :: utilities_src/squashfs4.1/squashfs-tools (read_fs)

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

%union.squashfs_inode_header = type { %struct.squashfs_lreg_inode_header }
%struct.squashfs_lreg_inode_header = type { i16, i16, i16, i16, i32, i32, i64, i64, i64, i32, i32, i32, i32, [0 x i32] }
%struct.squashfs_super_block = type { i32, i32, i32, i32, i32, i16, i16, i16, i16, i16, i16, i64, i64, i64, i64, i64, i64, i64, i64 }
%struct.squashfs_base_inode_header = type { i16, i16, i16, i16, i32, i32 }
%struct.squashfs_dir_inode_header = type { i16, i16, i16, i16, i32, i32, i32, i32, i16, i16, i32 }
%struct.squashfs_ldir_inode_header = type { i16, i16, i16, i16, i32, i32, i32, i32, i32, i32, i16, i16, i32, [0 x %struct.squashfs_dir_index] }
%struct.squashfs_dir_index = type { i32, i32, i32, [0 x i8] }

@stderr = external global ptr, align 8
@.str.32 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [76 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [50 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

declare i32 @read_fs_bytes(i32 noundef, i64 noundef, i32 noundef, ptr noundef) #1

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @scan_inode_table(i32 noundef, i64 noundef, i64 noundef, i64 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

; Function Attrs: nounwind
declare void @free(ptr noundef) #2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

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

declare i32 @printf(ptr noundef, ...) #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @squashfs_readdir(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local ptr @read_id_table(i32 noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local i32 @read_fragment_table(i32 noundef, ptr noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local i32 @read_inode_lookup_table(i32 noundef, ptr noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
define dso_local i64 @read_filesystem(ptr noundef %0, i32 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, ptr noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13, ptr noundef %14, ptr noundef %15, ptr noundef %16, ptr noundef %17, ptr noundef %18, ptr noundef %19, ptr noundef %20, ptr noundef %21, ptr noundef %22, ptr noundef %23, ptr noundef %24, ptr noundef %25) #3 {
  %27 = alloca i64, align 8
  %28 = alloca ptr, align 8
  %29 = alloca i32, align 4
  %30 = alloca ptr, align 8
  %31 = alloca ptr, align 8
  %32 = alloca ptr, align 8
  %33 = alloca ptr, align 8
  %34 = alloca ptr, align 8
  %35 = alloca ptr, align 8
  %36 = alloca ptr, align 8
  %37 = alloca ptr, align 8
  %38 = alloca ptr, align 8
  %39 = alloca ptr, align 8
  %40 = alloca ptr, align 8
  %41 = alloca ptr, align 8
  %42 = alloca ptr, align 8
  %43 = alloca ptr, align 8
  %44 = alloca ptr, align 8
  %45 = alloca ptr, align 8
  %46 = alloca ptr, align 8
  %47 = alloca ptr, align 8
  %48 = alloca ptr, align 8
  %49 = alloca ptr, align 8
  %50 = alloca ptr, align 8
  %51 = alloca ptr, align 8
  %52 = alloca ptr, align 8
  %53 = alloca ptr, align 8
  %54 = alloca ptr, align 8
  %55 = alloca ptr, align 8
  %56 = alloca i64, align 8
  %57 = alloca i64, align 8
  %58 = alloca i64, align 8
  %59 = alloca i32, align 4
  %60 = alloca i32, align 4
  %61 = alloca i32, align 4
  %62 = alloca %union.squashfs_inode_header, align 8
  %63 = alloca ptr, align 8
  %64 = alloca i32, align 4
  %65 = alloca i32, align 4
  store ptr %0, ptr %28, align 8, !tbaa !5
  store i32 %1, ptr %29, align 4, !tbaa !9
  store ptr %2, ptr %30, align 8, !tbaa !5
  store ptr %3, ptr %31, align 8, !tbaa !5
  store ptr %4, ptr %32, align 8, !tbaa !5
  store ptr %5, ptr %33, align 8, !tbaa !5
  store ptr %6, ptr %34, align 8, !tbaa !5
  store ptr %7, ptr %35, align 8, !tbaa !5
  store ptr %8, ptr %36, align 8, !tbaa !5
  store ptr %9, ptr %37, align 8, !tbaa !5
  store ptr %10, ptr %38, align 8, !tbaa !5
  store ptr %11, ptr %39, align 8, !tbaa !5
  store ptr %12, ptr %40, align 8, !tbaa !5
  store ptr %13, ptr %41, align 8, !tbaa !5
  store ptr %14, ptr %42, align 8, !tbaa !5
  store ptr %15, ptr %43, align 8, !tbaa !5
  store ptr %16, ptr %44, align 8, !tbaa !5
  store ptr %17, ptr %45, align 8, !tbaa !5
  store ptr %18, ptr %46, align 8, !tbaa !5
  store ptr %19, ptr %47, align 8, !tbaa !5
  store ptr %20, ptr %48, align 8, !tbaa !5
  store ptr %21, ptr %49, align 8, !tbaa !5
  store ptr %22, ptr %50, align 8, !tbaa !5
  store ptr %23, ptr %51, align 8, !tbaa !5
  store ptr %24, ptr %52, align 8, !tbaa !5
  store ptr %25, ptr %53, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %54) #7
  store ptr null, ptr %54, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %55) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %56) #7
  %66 = load ptr, ptr %30, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.squashfs_super_block, ptr %66, i32 0, i32 15
  %68 = load i64, ptr %67, align 8, !tbaa !11
  store i64 %68, ptr %56, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %57) #7
  %69 = load ptr, ptr %30, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.squashfs_super_block, ptr %69, i32 0, i32 16
  %71 = load i64, ptr %70, align 8, !tbaa !16
  store i64 %71, ptr %57, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %58) #7
  %72 = load i64, ptr %56, align 8, !tbaa !15
  %73 = load ptr, ptr %30, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.squashfs_super_block, ptr %73, i32 0, i32 11
  %75 = load i64, ptr %74, align 8, !tbaa !17
  %76 = ashr i64 %75, 16
  %77 = trunc i64 %76 to i32
  %78 = zext i32 %77 to i64
  %79 = add nsw i64 %72, %78
  store i64 %79, ptr %58, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %59) #7
  %80 = load ptr, ptr %30, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.squashfs_super_block, ptr %80, i32 0, i32 11
  %82 = load i64, ptr %81, align 8, !tbaa !17
  %83 = and i64 %82, 65535
  %84 = trunc i64 %83 to i32
  store i32 %84, ptr %59, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %60) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %61) #7
  call void @llvm.lifetime.start.p0(i64 56, ptr %62) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %63) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %64) #7
  %85 = call i32 (ptr, ...) @printf(ptr noundef @.str.32)
  %86 = load i32, ptr %29, align 4, !tbaa !9
  %87 = load ptr, ptr %30, align 8, !tbaa !5
  %88 = call i32 @get_xattrs(i32 noundef %86, ptr noundef %87)
  %89 = icmp eq i32 %88, 0
  br i1 %89, label %90, label %91

90:                                               ; preds = %26
  br label %334

91:                                               ; preds = %26
  %92 = load i32, ptr %29, align 4, !tbaa !9
  %93 = load ptr, ptr %30, align 8, !tbaa !5
  %94 = load ptr, ptr %52, align 8, !tbaa !5
  %95 = call i32 @read_fragment_table(i32 noundef %92, ptr noundef %93, ptr noundef %94)
  %96 = icmp eq i32 %95, 0
  br i1 %96, label %97, label %98

97:                                               ; preds = %91
  br label %334

98:                                               ; preds = %91
  %99 = load i32, ptr %29, align 4, !tbaa !9
  %100 = load ptr, ptr %30, align 8, !tbaa !5
  %101 = load ptr, ptr %53, align 8, !tbaa !5
  %102 = call i32 @read_inode_lookup_table(i32 noundef %99, ptr noundef %100, ptr noundef %101)
  %103 = icmp eq i32 %102, 0
  br i1 %103, label %104, label %105

104:                                              ; preds = %98
  br label %334

105:                                              ; preds = %98
  %106 = load i32, ptr %29, align 4, !tbaa !9
  %107 = load ptr, ptr %30, align 8, !tbaa !5
  %108 = call ptr @read_id_table(i32 noundef %106, ptr noundef %107)
  store ptr %108, ptr %63, align 8, !tbaa !5
  %109 = load ptr, ptr %63, align 8, !tbaa !5
  %110 = icmp eq ptr %109, null
  br i1 %110, label %111, label %112

111:                                              ; preds = %105
  br label %334

112:                                              ; preds = %105
  %113 = load i32, ptr %29, align 4, !tbaa !9
  %114 = load i64, ptr %56, align 8, !tbaa !15
  %115 = load i64, ptr %57, align 8, !tbaa !15
  %116 = load i64, ptr %58, align 8, !tbaa !15
  %117 = load i32, ptr %59, align 4, !tbaa !9
  %118 = load ptr, ptr %30, align 8, !tbaa !5
  %119 = load ptr, ptr %38, align 8, !tbaa !5
  %120 = load ptr, ptr %46, align 8, !tbaa !5
  %121 = load ptr, ptr %48, align 8, !tbaa !5
  %122 = load ptr, ptr %40, align 8, !tbaa !5
  %123 = load ptr, ptr %41, align 8, !tbaa !5
  %124 = load ptr, ptr %42, align 8, !tbaa !5
  %125 = load ptr, ptr %43, align 8, !tbaa !5
  %126 = load ptr, ptr %44, align 8, !tbaa !5
  %127 = load ptr, ptr %45, align 8, !tbaa !5
  %128 = load ptr, ptr %63, align 8, !tbaa !5
  %129 = call i32 @scan_inode_table(i32 noundef %113, i64 noundef %114, i64 noundef %115, i64 noundef %116, i32 noundef %117, ptr noundef %118, ptr noundef %62, ptr noundef %54, ptr noundef %60, ptr noundef %119, ptr noundef %120, ptr noundef %121, ptr noundef %122, ptr noundef %123, ptr noundef %124, ptr noundef %125, ptr noundef %126, ptr noundef %127, ptr noundef %128)
  store i32 %129, ptr %61, align 4, !tbaa !9
  %130 = icmp eq i32 %129, 0
  br i1 %130, label %131, label %137

131:                                              ; preds = %112
  br label %132

132:                                              ; preds = %131
  %133 = load ptr, ptr @stderr, align 8, !tbaa !5
  %134 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %133, ptr noundef @.str.33) #7
  br label %135

135:                                              ; preds = %132
  br label %136

136:                                              ; preds = %135
  br label %334

137:                                              ; preds = %112
  %138 = load i32, ptr %60, align 4, !tbaa !9
  %139 = load ptr, ptr %47, align 8, !tbaa !5
  store i32 %138, ptr %139, align 4, !tbaa !9
  %140 = load i32, ptr %61, align 4, !tbaa !9
  %141 = call i32 (ptr, ...) @printf(ptr noundef @.str.34, i32 noundef %140)
  %142 = getelementptr inbounds %struct.squashfs_base_inode_header, ptr %62, i32 0, i32 0
  %143 = load i16, ptr %142, align 8, !tbaa !18
  %144 = zext i16 %143 to i32
  %145 = icmp eq i32 %144, 1
  br i1 %145, label %151, label %146

146:                                              ; preds = %137
  %147 = getelementptr inbounds %struct.squashfs_base_inode_header, ptr %62, i32 0, i32 0
  %148 = load i16, ptr %147, align 8, !tbaa !18
  %149 = zext i16 %148 to i32
  %150 = icmp eq i32 %149, 8
  br i1 %150, label %151, label %333

151:                                              ; preds = %146, %137
  %152 = getelementptr inbounds %struct.squashfs_base_inode_header, ptr %62, i32 0, i32 0
  %153 = load i16, ptr %152, align 8, !tbaa !18
  %154 = zext i16 %153 to i32
  %155 = icmp eq i32 %154, 1
  br i1 %155, label %156, label %175

156:                                              ; preds = %151
  %157 = getelementptr inbounds %struct.squashfs_dir_inode_header, ptr %62, i32 0, i32 6
  %158 = load i32, ptr %157, align 8, !tbaa !18
  %159 = load ptr, ptr %39, align 8, !tbaa !5
  store i32 %158, ptr %159, align 4, !tbaa !9
  %160 = getelementptr inbounds %struct.squashfs_dir_inode_header, ptr %62, i32 0, i32 9
  %161 = load i16, ptr %160, align 2, !tbaa !18
  %162 = zext i16 %161 to i32
  %163 = load ptr, ptr %36, align 8, !tbaa !5
  store i32 %162, ptr %163, align 4, !tbaa !9
  %164 = getelementptr inbounds %struct.squashfs_dir_inode_header, ptr %62, i32 0, i32 8
  %165 = load i16, ptr %164, align 8, !tbaa !18
  %166 = zext i16 %165 to i32
  %167 = sub nsw i32 %166, 3
  %168 = load ptr, ptr %37, align 8, !tbaa !5
  store i32 %167, ptr %168, align 4, !tbaa !9
  %169 = getelementptr inbounds %struct.squashfs_dir_inode_header, ptr %62, i32 0, i32 5
  %170 = load i32, ptr %169, align 4, !tbaa !18
  %171 = load ptr, ptr %49, align 8, !tbaa !5
  store i32 %170, ptr %171, align 4, !tbaa !9
  %172 = getelementptr inbounds %struct.squashfs_dir_inode_header, ptr %62, i32 0, i32 10
  %173 = load i32, ptr %172, align 4, !tbaa !18
  %174 = load ptr, ptr %50, align 8, !tbaa !5
  store i32 %173, ptr %174, align 4, !tbaa !9
  br label %193

175:                                              ; preds = %151
  %176 = getelementptr inbounds %struct.squashfs_ldir_inode_header, ptr %62, i32 0, i32 8
  %177 = load i32, ptr %176, align 8, !tbaa !18
  %178 = load ptr, ptr %39, align 8, !tbaa !5
  store i32 %177, ptr %178, align 4, !tbaa !9
  %179 = getelementptr inbounds %struct.squashfs_ldir_inode_header, ptr %62, i32 0, i32 11
  %180 = load i16, ptr %179, align 2, !tbaa !18
  %181 = zext i16 %180 to i32
  %182 = load ptr, ptr %36, align 8, !tbaa !5
  store i32 %181, ptr %182, align 4, !tbaa !9
  %183 = getelementptr inbounds %struct.squashfs_ldir_inode_header, ptr %62, i32 0, i32 7
  %184 = load i32, ptr %183, align 4, !tbaa !18
  %185 = sub i32 %184, 3
  %186 = load ptr, ptr %37, align 8, !tbaa !5
  store i32 %185, ptr %186, align 4, !tbaa !9
  %187 = getelementptr inbounds %struct.squashfs_ldir_inode_header, ptr %62, i32 0, i32 5
  %188 = load i32, ptr %187, align 4, !tbaa !18
  %189 = load ptr, ptr %49, align 8, !tbaa !5
  store i32 %188, ptr %189, align 4, !tbaa !9
  %190 = getelementptr inbounds %struct.squashfs_ldir_inode_header, ptr %62, i32 0, i32 9
  %191 = load i32, ptr %190, align 4, !tbaa !18
  %192 = load ptr, ptr %50, align 8, !tbaa !5
  store i32 %191, ptr %192, align 4, !tbaa !9
  br label %193

193:                                              ; preds = %175, %156
  %194 = load i32, ptr %29, align 4, !tbaa !9
  %195 = load ptr, ptr %28, align 8, !tbaa !5
  %196 = icmp ne ptr %195, null
  %197 = xor i1 %196, true
  %198 = zext i1 %197 to i32
  %199 = load ptr, ptr %39, align 8, !tbaa !5
  %200 = load i32, ptr %199, align 4, !tbaa !9
  %201 = load ptr, ptr %36, align 8, !tbaa !5
  %202 = load i32, ptr %201, align 4, !tbaa !9
  %203 = load ptr, ptr %37, align 8, !tbaa !5
  %204 = load i32, ptr %203, align 4, !tbaa !9
  %205 = load ptr, ptr %35, align 8, !tbaa !5
  %206 = load ptr, ptr %30, align 8, !tbaa !5
  %207 = load ptr, ptr %51, align 8, !tbaa !5
  %208 = call ptr @squashfs_readdir(i32 noundef %194, i32 noundef %198, i32 noundef %200, i32 noundef %202, i32 noundef %204, ptr noundef %205, ptr noundef %206, ptr noundef %207)
  store ptr %208, ptr %55, align 8, !tbaa !5
  %209 = load ptr, ptr %55, align 8, !tbaa !5
  %210 = icmp eq ptr %209, null
  br i1 %210, label %211, label %217

211:                                              ; preds = %193
  br label %212

212:                                              ; preds = %211
  %213 = load ptr, ptr @stderr, align 8, !tbaa !5
  %214 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %213, ptr noundef @.str.35) #7
  br label %215

215:                                              ; preds = %212
  br label %216

216:                                              ; preds = %215
  br label %334

217:                                              ; preds = %193
  %218 = load i64, ptr %56, align 8, !tbaa !15
  %219 = load i64, ptr %58, align 8, !tbaa !15
  %220 = sub nsw i64 %219, %218
  store i64 %220, ptr %58, align 8, !tbaa !15
  %221 = load i64, ptr %58, align 8, !tbaa !15
  %222 = call noalias ptr @malloc(i64 noundef %221) #8
  %223 = load ptr, ptr %31, align 8, !tbaa !5
  store ptr %222, ptr %223, align 8, !tbaa !5
  %224 = load ptr, ptr %31, align 8, !tbaa !5
  %225 = load ptr, ptr %224, align 8, !tbaa !5
  %226 = icmp eq ptr %225, null
  br i1 %226, label %227, label %233

227:                                              ; preds = %217
  br label %228

228:                                              ; preds = %227
  %229 = load ptr, ptr @stderr, align 8, !tbaa !5
  %230 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %229, ptr noundef @.str.36) #7
  br label %231

231:                                              ; preds = %228
  br label %232

232:                                              ; preds = %231
  br label %334

233:                                              ; preds = %217
  %234 = load i32, ptr %29, align 4, !tbaa !9
  %235 = load i64, ptr %56, align 8, !tbaa !15
  %236 = load i64, ptr %58, align 8, !tbaa !15
  %237 = trunc i64 %236 to i32
  %238 = load ptr, ptr %31, align 8, !tbaa !5
  %239 = load ptr, ptr %238, align 8, !tbaa !5
  %240 = call i32 @read_fs_bytes(i32 noundef %234, i64 noundef %235, i32 noundef %237, ptr noundef %239)
  store i32 %240, ptr %64, align 4, !tbaa !9
  %241 = load i32, ptr %64, align 4, !tbaa !9
  %242 = icmp eq i32 %241, 0
  br i1 %242, label %243, label %244

243:                                              ; preds = %233
  br label %334

244:                                              ; preds = %233
  %245 = load ptr, ptr %35, align 8, !tbaa !5
  %246 = load i32, ptr %245, align 4, !tbaa !9
  %247 = zext i32 %246 to i64
  %248 = call noalias ptr @malloc(i64 noundef %247) #8
  %249 = load ptr, ptr %33, align 8, !tbaa !5
  store ptr %248, ptr %249, align 8, !tbaa !5
  %250 = load ptr, ptr %33, align 8, !tbaa !5
  %251 = load ptr, ptr %250, align 8, !tbaa !5
  %252 = icmp eq ptr %251, null
  br i1 %252, label %253, label %259

253:                                              ; preds = %244
  br label %254

254:                                              ; preds = %253
  %255 = load ptr, ptr @stderr, align 8, !tbaa !5
  %256 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %255, ptr noundef @.str.37) #7
  br label %257

257:                                              ; preds = %254
  br label %258

258:                                              ; preds = %257
  br label %334

259:                                              ; preds = %244
  %260 = load i32, ptr %29, align 4, !tbaa !9
  %261 = load ptr, ptr %30, align 8, !tbaa !5
  %262 = getelementptr inbounds %struct.squashfs_super_block, ptr %261, i32 0, i32 16
  %263 = load i64, ptr %262, align 8, !tbaa !16
  %264 = load ptr, ptr %35, align 8, !tbaa !5
  %265 = load i32, ptr %264, align 4, !tbaa !9
  %266 = load ptr, ptr %33, align 8, !tbaa !5
  %267 = load ptr, ptr %266, align 8, !tbaa !5
  %268 = call i32 @read_fs_bytes(i32 noundef %260, i64 noundef %263, i32 noundef %265, ptr noundef %267)
  store i32 %268, ptr %64, align 4, !tbaa !9
  %269 = load i32, ptr %64, align 4, !tbaa !9
  %270 = icmp eq i32 %269, 0
  br i1 %270, label %271, label %272

271:                                              ; preds = %259
  br label %334

272:                                              ; preds = %259
  %273 = load i32, ptr %59, align 4, !tbaa !9
  %274 = load ptr, ptr %38, align 8, !tbaa !5
  %275 = load i32, ptr %274, align 4, !tbaa !9
  %276 = add i32 %273, %275
  %277 = zext i32 %276 to i64
  %278 = call noalias ptr @malloc(i64 noundef %277) #8
  %279 = load ptr, ptr %32, align 8, !tbaa !5
  store ptr %278, ptr %279, align 8, !tbaa !5
  %280 = load ptr, ptr %32, align 8, !tbaa !5
  %281 = load ptr, ptr %280, align 8, !tbaa !5
  %282 = icmp eq ptr %281, null
  br i1 %282, label %283, label %289

283:                                              ; preds = %272
  br label %284

284:                                              ; preds = %283
  %285 = load ptr, ptr @stderr, align 8, !tbaa !5
  %286 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %285, ptr noundef @.str.38) #7
  br label %287

287:                                              ; preds = %284
  br label %288

288:                                              ; preds = %287
  br label %334

289:                                              ; preds = %272
  %290 = load ptr, ptr %32, align 8, !tbaa !5
  %291 = load ptr, ptr %290, align 8, !tbaa !5
  %292 = load ptr, ptr %54, align 8, !tbaa !5
  %293 = load i32, ptr %60, align 4, !tbaa !9
  %294 = zext i32 %293 to i64
  %295 = getelementptr inbounds i8, ptr %292, i64 %294
  %296 = load i32, ptr %59, align 4, !tbaa !9
  %297 = load ptr, ptr %38, align 8, !tbaa !5
  %298 = load i32, ptr %297, align 4, !tbaa !9
  %299 = add i32 %296, %298
  %300 = zext i32 %299 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %291, ptr align 1 %295, i64 %300, i1 false)
  %301 = load ptr, ptr %36, align 8, !tbaa !5
  %302 = load i32, ptr %301, align 4, !tbaa !9
  %303 = load ptr, ptr %37, align 8, !tbaa !5
  %304 = load i32, ptr %303, align 4, !tbaa !9
  %305 = add i32 %302, %304
  %306 = zext i32 %305 to i64
  %307 = call noalias ptr @malloc(i64 noundef %306) #8
  %308 = load ptr, ptr %34, align 8, !tbaa !5
  store ptr %307, ptr %308, align 8, !tbaa !5
  %309 = load ptr, ptr %34, align 8, !tbaa !5
  %310 = load ptr, ptr %309, align 8, !tbaa !5
  %311 = icmp eq ptr %310, null
  br i1 %311, label %312, label %318

312:                                              ; preds = %289
  br label %313

313:                                              ; preds = %312
  %314 = load ptr, ptr @stderr, align 8, !tbaa !5
  %315 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %314, ptr noundef @.str.39) #7
  br label %316

316:                                              ; preds = %313
  br label %317

317:                                              ; preds = %316
  br label %334

318:                                              ; preds = %289
  %319 = load ptr, ptr %34, align 8, !tbaa !5
  %320 = load ptr, ptr %319, align 8, !tbaa !5
  %321 = load ptr, ptr %55, align 8, !tbaa !5
  %322 = load ptr, ptr %36, align 8, !tbaa !5
  %323 = load i32, ptr %322, align 4, !tbaa !9
  %324 = load ptr, ptr %37, align 8, !tbaa !5
  %325 = load i32, ptr %324, align 4, !tbaa !9
  %326 = add i32 %323, %325
  %327 = zext i32 %326 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %320, ptr align 1 %321, i64 %327, i1 false)
  %328 = load ptr, ptr %54, align 8, !tbaa !5
  call void @free(ptr noundef %328) #7
  %329 = load ptr, ptr %55, align 8, !tbaa !5
  call void @free(ptr noundef %329) #7
  %330 = load ptr, ptr %30, align 8, !tbaa !5
  %331 = getelementptr inbounds %struct.squashfs_super_block, ptr %330, i32 0, i32 15
  %332 = load i64, ptr %331, align 8, !tbaa !11
  store i64 %332, ptr %27, align 8
  store i32 1, ptr %65, align 4
  br label %335

333:                                              ; preds = %146
  br label %334

334:                                              ; preds = %333, %317, %288, %271, %258, %243, %232, %216, %136, %111, %104, %97, %90
  store i64 0, ptr %27, align 8
  store i32 1, ptr %65, align 4
  br label %335

335:                                              ; preds = %334, %318
  call void @llvm.lifetime.end.p0(i64 4, ptr %64) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %63) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr %62) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %61) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %60) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %59) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %58) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %54) #7
  %336 = load i64, ptr %27, align 8
  ret i64 %336
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @get_xattrs(i32 noundef, ptr noundef) #6

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #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 #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 = { 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 #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 #6 = { inlinehint 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 }
attributes #8 = { nounwind allocsize(0) }

!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 = !{!"int", !7, i64 0}
!11 = !{!12, !14, i64 64}
!12 = !{!"squashfs_super_block", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !13, i64 20, !13, i64 22, !13, i64 24, !13, i64 26, !13, i64 28, !13, i64 30, !14, i64 32, !14, i64 40, !14, i64 48, !14, i64 56, !14, i64 64, !14, i64 72, !14, i64 80, !14, i64 88}
!13 = !{!"short", !7, i64 0}
!14 = !{!"long long", !7, i64 0}
!15 = !{!14, !14, i64 0}
!16 = !{!12, !14, i64 72}
!17 = !{!12, !14, i64 32}
!18 = !{!7, !7, i64 0}


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

%union.squashfs_inode_header = type { %struct.squashfs_lreg_inode_header }
%struct.squashfs_lreg_inode_header = type { i16, i16, i16, i16, i32, i32, i64, i64, i64, i32, i32, i32, i32, [0 x i32] }

@stderr = external local_unnamed_addr global ptr, align 8
@.str.32 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [76 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [50 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

declare i32 @read_fs_bytes(i32 noundef, i64 noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) 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) #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @scan_inode_table(i32 noundef, i64 noundef, i64 noundef, i64 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #4

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @squashfs_readdir(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare dso_local ptr @read_id_table(i32 noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare dso_local i32 @read_fragment_table(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare dso_local i32 @read_inode_lookup_table(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local i64 @read_filesystem(ptr noundef readnone %0, i32 noundef %1, ptr noundef %2, ptr nocapture noundef writeonly %3, ptr nocapture noundef writeonly %4, ptr nocapture noundef writeonly %5, ptr nocapture noundef writeonly %6, ptr noundef %7, ptr nocapture noundef %8, ptr nocapture noundef %9, ptr noundef %10, ptr nocapture noundef %11, ptr noundef %12, ptr noundef %13, ptr noundef %14, ptr noundef %15, ptr noundef %16, ptr noundef %17, ptr noundef %18, ptr nocapture noundef writeonly %19, ptr noundef %20, ptr nocapture noundef writeonly %21, ptr nocapture noundef writeonly %22, ptr noundef %23, ptr noundef %24, ptr noundef %25) local_unnamed_addr #3 {
  %27 = alloca ptr, align 8
  %28 = alloca i32, align 4
  %29 = alloca %union.squashfs_inode_header, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %27) #8
  store ptr null, ptr %27, align 8, !tbaa !5
  %30 = getelementptr inbounds i8, ptr %2, i64 64
  %31 = load i64, ptr %30, align 8, !tbaa !9
  %32 = getelementptr inbounds i8, ptr %2, i64 72
  %33 = load i64, ptr %32, align 8, !tbaa !14
  %34 = getelementptr inbounds i8, ptr %2, i64 32
  %35 = load i64, ptr %34, align 8, !tbaa !15
  %36 = lshr i64 %35, 16
  %37 = trunc i64 %36 to i32
  %38 = and i64 %36, 4294967295
  %39 = add nsw i64 %38, %31
  %40 = trunc i64 %35 to i32
  %41 = and i32 %40, 65535
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %28) #8
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %29) #8
  %42 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.32)
  %43 = tail call i32 @get_xattrs(i32 noundef %1, ptr noundef %2)
  %44 = icmp eq i32 %43, 0
  br i1 %44, label %142, label %45

45:                                               ; preds = %26
  %46 = tail call i32 @read_fragment_table(i32 noundef %1, ptr noundef nonnull %2, ptr noundef %24)
  %47 = icmp eq i32 %46, 0
  br i1 %47, label %142, label %48

48:                                               ; preds = %45
  %49 = tail call i32 @read_inode_lookup_table(i32 noundef %1, ptr noundef nonnull %2, ptr noundef %25)
  %50 = icmp eq i32 %49, 0
  br i1 %50, label %142, label %51

51:                                               ; preds = %48
  %52 = tail call ptr @read_id_table(i32 noundef %1, ptr noundef nonnull %2)
  %53 = icmp eq ptr %52, null
  br i1 %53, label %142, label %54

54:                                               ; preds = %51
  %55 = call i32 @scan_inode_table(i32 noundef %1, i64 noundef %31, i64 noundef %33, i64 noundef %39, i32 noundef %41, ptr noundef nonnull %2, ptr noundef nonnull %29, ptr noundef nonnull %27, ptr noundef nonnull %28, ptr noundef %10, ptr noundef %18, ptr noundef %20, ptr noundef %12, ptr noundef %13, ptr noundef %14, ptr noundef %15, ptr noundef %16, ptr noundef %17, ptr noundef nonnull %52)
  %56 = icmp eq i32 %55, 0
  br i1 %56, label %57, label %60

57:                                               ; preds = %54
  %58 = load ptr, ptr @stderr, align 8, !tbaa !5
  %59 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %58, ptr noundef nonnull @.str.33) #9
  br label %142

60:                                               ; preds = %54
  %61 = load i32, ptr %28, align 4, !tbaa !16
  store i32 %61, ptr %19, align 4, !tbaa !16
  %62 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.34, i32 noundef %55)
  %63 = load i16, ptr %29, align 8
  switch i16 %63, label %142 [
    i16 1, label %64
    i16 8, label %73
  ]

64:                                               ; preds = %60
  %65 = getelementptr inbounds i8, ptr %29, i64 16
  %66 = load i32, ptr %65, align 8, !tbaa !17
  store i32 %66, ptr %11, align 4, !tbaa !16
  %67 = getelementptr inbounds i8, ptr %29, i64 26
  %68 = load i16, ptr %67, align 2, !tbaa !17
  %69 = zext i16 %68 to i32
  store i32 %69, ptr %8, align 4, !tbaa !16
  %70 = getelementptr inbounds i8, ptr %29, i64 24
  %71 = load i16, ptr %70, align 8, !tbaa !17
  %72 = zext i16 %71 to i32
  br label %81

73:                                               ; preds = %60
  %74 = getelementptr inbounds i8, ptr %29, i64 24
  %75 = load i32, ptr %74, align 8, !tbaa !17
  store i32 %75, ptr %11, align 4, !tbaa !16
  %76 = getelementptr inbounds i8, ptr %29, i64 34
  %77 = load i16, ptr %76, align 2, !tbaa !17
  %78 = zext i16 %77 to i32
  store i32 %78, ptr %8, align 4, !tbaa !16
  %79 = getelementptr inbounds i8, ptr %29, i64 20
  %80 = load i32, ptr %79, align 4, !tbaa !17
  br label %81

81:                                               ; preds = %73, %64
  %.sink99 = phi i32 [ %80, %73 ], [ %72, %64 ]
  %82 = add i32 %.sink99, -3
  store i32 %82, ptr %9, align 4, !tbaa !16
  %83 = getelementptr inbounds i8, ptr %29, i64 12
  %84 = load i32, ptr %83, align 4, !tbaa !17
  store i32 %84, ptr %21, align 4, !tbaa !16
  %85 = getelementptr inbounds i8, ptr %29, i64 28
  %86 = load i32, ptr %85, align 4, !tbaa !17
  store i32 %86, ptr %22, align 4, !tbaa !16
  %.not = icmp eq ptr %0, null
  %87 = zext i1 %.not to i32
  %88 = load i32, ptr %11, align 4, !tbaa !16
  %89 = load i32, ptr %8, align 4, !tbaa !16
  %90 = load i32, ptr %9, align 4, !tbaa !16
  %91 = call ptr @squashfs_readdir(i32 noundef %1, i32 noundef %87, i32 noundef %88, i32 noundef %89, i32 noundef %90, ptr noundef %7, ptr noundef nonnull %2, ptr noundef %23)
  %92 = icmp eq ptr %91, null
  br i1 %92, label %93, label %96

93:                                               ; preds = %81
  %94 = load ptr, ptr @stderr, align 8, !tbaa !5
  %95 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %94, ptr noundef nonnull @.str.35) #9
  br label %142

96:                                               ; preds = %81
  %97 = call noalias ptr @malloc(i64 noundef %38) #10
  store ptr %97, ptr %3, align 8, !tbaa !5
  %98 = icmp eq ptr %97, null
  br i1 %98, label %99, label %102

99:                                               ; preds = %96
  %100 = load ptr, ptr @stderr, align 8, !tbaa !5
  %101 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %100, ptr noundef nonnull @.str.36) #9
  br label %142

102:                                              ; preds = %96
  %103 = call i32 @read_fs_bytes(i32 noundef %1, i64 noundef %31, i32 noundef %37, ptr noundef nonnull %97) #8
  %104 = icmp eq i32 %103, 0
  br i1 %104, label %142, label %105

105:                                              ; preds = %102
  %106 = load i32, ptr %7, align 4, !tbaa !16
  %107 = zext i32 %106 to i64
  %108 = call noalias ptr @malloc(i64 noundef %107) #10
  store ptr %108, ptr %5, align 8, !tbaa !5
  %109 = icmp eq ptr %108, null
  br i1 %109, label %110, label %113

110:                                              ; preds = %105
  %111 = load ptr, ptr @stderr, align 8, !tbaa !5
  %112 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %111, ptr noundef nonnull @.str.37) #9
  br label %142

113:                                              ; preds = %105
  %114 = load i64, ptr %32, align 8, !tbaa !14
  %115 = call i32 @read_fs_bytes(i32 noundef %1, i64 noundef %114, i32 noundef %106, ptr noundef nonnull %108) #8
  %116 = icmp eq i32 %115, 0
  br i1 %116, label %142, label %117

117:                                              ; preds = %113
  %118 = load i32, ptr %10, align 4, !tbaa !16
  %119 = add i32 %118, %41
  %120 = zext i32 %119 to i64
  %121 = call noalias ptr @malloc(i64 noundef %120) #10
  store ptr %121, ptr %4, align 8, !tbaa !5
  %122 = icmp eq ptr %121, null
  br i1 %122, label %123, label %126

123:                                              ; preds = %117
  %124 = load ptr, ptr @stderr, align 8, !tbaa !5
  %125 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %124, ptr noundef nonnull @.str.38) #9
  br label %142

126:                                              ; preds = %117
  %127 = load ptr, ptr %27, align 8, !tbaa !5
  %128 = load i32, ptr %28, align 4, !tbaa !16
  %129 = zext i32 %128 to i64
  %130 = getelementptr inbounds i8, ptr %127, i64 %129
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 1 %121, ptr align 1 %130, i64 %120, i1 false)
  %131 = load i32, ptr %8, align 4, !tbaa !16
  %132 = load i32, ptr %9, align 4, !tbaa !16
  %133 = add i32 %132, %131
  %134 = zext i32 %133 to i64
  %135 = call noalias ptr @malloc(i64 noundef %134) #10
  store ptr %135, ptr %6, align 8, !tbaa !5
  %136 = icmp eq ptr %135, null
  br i1 %136, label %137, label %140

137:                                              ; preds = %126
  %138 = load ptr, ptr @stderr, align 8, !tbaa !5
  %139 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %138, ptr noundef nonnull @.str.39) #9
  br label %142

140:                                              ; preds = %126
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 1 %135, ptr nonnull align 1 %91, i64 %134, i1 false)
  call void @free(ptr noundef %127) #8
  call void @free(ptr noundef nonnull %91) #8
  %141 = load i64, ptr %30, align 8, !tbaa !9
  br label %142

142:                                              ; preds = %57, %93, %99, %110, %123, %137, %26, %45, %48, %51, %102, %113, %60, %140
  %.0 = phi i64 [ %141, %140 ], [ 0, %60 ], [ 0, %113 ], [ 0, %102 ], [ 0, %51 ], [ 0, %48 ], [ 0, %45 ], [ 0, %26 ], [ 0, %137 ], [ 0, %123 ], [ 0, %110 ], [ 0, %99 ], [ 0, %93 ], [ 0, %57 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %29) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %28) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %27) #8
  ret i64 %.0
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @get_xattrs(i32 noundef, ptr noundef) local_unnamed_addr #7

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #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 #2 = { 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 #3 = { 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 #4 = { mustprogress nounwind willreturn allockind("free") 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 #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { 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 #7 = { inlinehint 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 = { nounwind }
attributes #9 = { cold nounwind }
attributes #10 = { nounwind allocsize(0) }

!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, !13, i64 64}
!10 = !{!"squashfs_super_block", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !12, i64 20, !12, i64 22, !12, i64 24, !12, i64 26, !12, i64 28, !12, i64 30, !13, i64 32, !13, i64 40, !13, i64 48, !13, i64 56, !13, i64 64, !13, i64 72, !13, i64 80, !13, i64 88}
!11 = !{!"int", !7, i64 0}
!12 = !{!"short", !7, i64 0}
!13 = !{!"long long", !7, i64 0}
!14 = !{!10, !13, i64 72}
!15 = !{!10, !13, i64 32}
!16 = !{!11, !11, i64 0}
!17 = !{!7, !7, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass