; LLVM IR from mncoppola/rpef :: utilities_src/squashfs4.2/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.37 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [76 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.43 = 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 %union.squashfs_inode_header, align 8
  %62 = alloca ptr, align 8
  %63 = alloca i32, align 4
  %64 = 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
  %65 = load ptr, ptr %30, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.squashfs_super_block, ptr %65, i32 0, i32 15
  %67 = load i64, ptr %66, align 8, !tbaa !11
  store i64 %67, ptr %56, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %57) #7
  %68 = load ptr, ptr %30, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.squashfs_super_block, ptr %68, i32 0, i32 16
  %70 = load i64, ptr %69, align 8, !tbaa !16
  store i64 %70, ptr %57, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %58) #7
  %71 = load i64, ptr %56, align 8, !tbaa !15
  %72 = load ptr, ptr %30, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.squashfs_super_block, ptr %72, i32 0, i32 11
  %74 = load i64, ptr %73, align 8, !tbaa !17
  %75 = ashr i64 %74, 16
  %76 = trunc i64 %75 to i32
  %77 = zext i32 %76 to i64
  %78 = add nsw i64 %71, %77
  store i64 %78, ptr %58, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %59) #7
  %79 = load ptr, ptr %30, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.squashfs_super_block, ptr %79, i32 0, i32 11
  %81 = load i64, ptr %80, align 8, !tbaa !17
  %82 = and i64 %81, 65535
  %83 = trunc i64 %82 to i32
  store i32 %83, ptr %59, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %60) #7
  call void @llvm.lifetime.start.p0(i64 56, ptr %61) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %62) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %63) #7
  %84 = call i32 (ptr, ...) @printf(ptr noundef @.str.37)
  %85 = load i32, ptr %29, align 4, !tbaa !9
  %86 = load ptr, ptr %30, align 8, !tbaa !5
  %87 = call i32 @get_xattrs(i32 noundef %85, ptr noundef %86)
  %88 = icmp eq i32 %87, 0
  br i1 %88, label %89, label %90

89:                                               ; preds = %26
  br label %332

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

96:                                               ; preds = %90
  br label %332

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

103:                                              ; preds = %97
  br label %332

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

110:                                              ; preds = %104
  br label %332

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

131:                                              ; preds = %111
  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.38) #7
  br label %135

135:                                              ; preds = %132
  br label %136

136:                                              ; preds = %135
  br label %332

137:                                              ; preds = %111
  %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 = getelementptr inbounds %struct.squashfs_base_inode_header, ptr %61, i32 0, i32 0
  %141 = load i16, ptr %140, align 8, !tbaa !18
  %142 = zext i16 %141 to i32
  %143 = icmp eq i32 %142, 1
  br i1 %143, label %149, label %144

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

149:                                              ; preds = %144, %137
  %150 = getelementptr inbounds %struct.squashfs_base_inode_header, ptr %61, i32 0, i32 0
  %151 = load i16, ptr %150, align 8, !tbaa !18
  %152 = zext i16 %151 to i32
  %153 = icmp eq i32 %152, 1
  br i1 %153, label %154, label %173

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

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

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

209:                                              ; preds = %191
  br label %210

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

213:                                              ; preds = %210
  br label %214

214:                                              ; preds = %213
  br label %332

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

225:                                              ; preds = %215
  br label %226

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

229:                                              ; preds = %226
  br label %230

230:                                              ; preds = %229
  br label %332

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

241:                                              ; preds = %231
  br label %332

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

251:                                              ; preds = %242
  br label %252

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

255:                                              ; preds = %252
  br label %256

256:                                              ; preds = %255
  br label %332

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

269:                                              ; preds = %257
  br label %332

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

281:                                              ; preds = %270
  br label %282

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

285:                                              ; preds = %282
  br label %286

286:                                              ; preds = %285
  br label %332

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

310:                                              ; preds = %287
  br label %311

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

314:                                              ; preds = %311
  br label %315

315:                                              ; preds = %314
  br label %332

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

331:                                              ; preds = %144
  br label %332

332:                                              ; preds = %331, %315, %286, %269, %256, %241, %230, %214, %136, %110, %103, %96, %89
  store i64 0, ptr %27, align 8
  store i32 1, ptr %64, align 4
  br label %333

333:                                              ; preds = %332, %316
  call void @llvm.lifetime.end.p0(i64 4, ptr %63) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %62) #7
  call void @llvm.lifetime.end.p0(i64 56, 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
  %334 = load i64, ptr %27, align 8
  ret i64 %334
}

; 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.37 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [76 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.43 = 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.37)
  %43 = tail call i32 @get_xattrs(i32 noundef %1, ptr noundef %2)
  %44 = icmp eq i32 %43, 0
  br i1 %44, label %141, 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 %141, 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 %141, 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 %141, 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.38) #9
  br label %141

60:                                               ; preds = %54
  %61 = load i32, ptr %28, align 4, !tbaa !16
  store i32 %61, ptr %19, align 4, !tbaa !16
  %62 = load i16, ptr %29, align 8
  switch i16 %62, label %141 [
    i16 1, label %63
    i16 8, label %72
  ]

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

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

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

92:                                               ; preds = %80
  %93 = load ptr, ptr @stderr, align 8, !tbaa !5
  %94 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %93, ptr noundef nonnull @.str.39) #9
  br label %141

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

98:                                               ; preds = %95
  %99 = load ptr, ptr @stderr, align 8, !tbaa !5
  %100 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %99, ptr noundef nonnull @.str.40) #9
  br label %141

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

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

109:                                              ; preds = %104
  %110 = load ptr, ptr @stderr, align 8, !tbaa !5
  %111 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %110, ptr noundef nonnull @.str.41) #9
  br label %141

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

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

122:                                              ; preds = %116
  %123 = load ptr, ptr @stderr, align 8, !tbaa !5
  %124 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %123, ptr noundef nonnull @.str.42) #9
  br label %141

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

136:                                              ; preds = %125
  %137 = load ptr, ptr @stderr, align 8, !tbaa !5
  %138 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %137, ptr noundef nonnull @.str.43) #9
  br label %141

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

141:                                              ; preds = %57, %92, %98, %109, %122, %136, %26, %45, %48, %51, %101, %112, %60, %139
  %.0 = phi i64 [ %140, %139 ], [ 0, %60 ], [ 0, %112 ], [ 0, %101 ], [ 0, %51 ], [ 0, %48 ], [ 0, %45 ], [ 0, %26 ], [ 0, %136 ], [ 0, %122 ], [ 0, %109 ], [ 0, %98 ], [ 0, %92 ], [ 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