; LLVM IR from facebook/hermes :: external/zip/src (zip)

; 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.mz_zip_archive_file_stat = type { i32, i32, i16, i16, i16, i16, i64, i32, i64, i64, i16, i32, i64, i32, [260 x i8], [256 x i8] }
%struct.zip_t = type { %struct.mz_zip_archive, i32, %struct.zip_entry_t }
%struct.mz_zip_archive = type { i64, i64, i32, i32, i32, i32, i64, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.zip_entry_t = type { i32, ptr, i64, i64, i32, i64, [30 x i8], i64, i16, %struct.mz_zip_writer_add_state, %struct.tdefl_compressor, i32, i64 }
%struct.mz_zip_writer_add_state = type { ptr, i64, i64 }
%struct.tdefl_compressor = type { ptr, ptr, i32, [2 x i32], i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, i32, ptr, i64, i64, [33025 x i8], [3 x [288 x i16]], [3 x [288 x i16]], [3 x [288 x i8]], [65536 x i8], [32768 x i16], [32768 x i16], [85196 x i8] }

@.str.21 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [72 x i8], align 1
@__PRETTY_FUNCTION__.zip_entry_open = external hidden unnamed_addr constant [49 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @tdefl_create_comp_flags_from_zip_params(i32 noundef, i32 noundef, i32 noundef) #2

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #4

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

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

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #5

; Function Attrs: nounwind
declare i64 @time(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare hidden i32 @mz_zip_writer_compute_padding_needed_for_file_alignment(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare hidden i32 @mz_zip_writer_write_zeros(ptr noundef, i64 noundef, i32 noundef) #2

; Function Attrs: nounwind uwtable
declare hidden i32 @mz_zip_writer_add_put_buf_callback(ptr noundef, i32 noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
define dso_local i32 @zip_entry_open(ptr noundef %0, ptr noundef %1) #2 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %struct.mz_zip_archive_file_stat, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  store i64 0, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  store ptr null, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 584, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 0, ptr %11, align 4, !tbaa !11
  %13 = load ptr, ptr %4, align 8, !tbaa !5
  %14 = icmp ne ptr %13, null
  br i1 %14, label %16, label %15

15:                                               ; preds = %2
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %349

16:                                               ; preds = %2
  %17 = load ptr, ptr %5, align 8, !tbaa !5
  %18 = icmp ne ptr %17, null
  br i1 %18, label %20, label %19

19:                                               ; preds = %16
  store i32 -2, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %349

20:                                               ; preds = %16
  %21 = load ptr, ptr %5, align 8, !tbaa !5
  %22 = call i64 @strlen(ptr noundef %21) #7
  store i64 %22, ptr %6, align 8, !tbaa !9
  %23 = load i64, ptr %6, align 8, !tbaa !9
  %24 = icmp eq i64 %23, 0
  br i1 %24, label %25, label %26

25:                                               ; preds = %20
  store i32 -2, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %349

26:                                               ; preds = %20
  %27 = load ptr, ptr %4, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.zip_t, ptr %27, i32 0, i32 2
  %29 = getelementptr inbounds %struct.zip_entry_t, ptr %28, i32 0, i32 1
  %30 = load ptr, ptr %29, align 8, !tbaa !13
  %31 = icmp ne ptr %30, null
  br i1 %31, label %32, label %50

32:                                               ; preds = %26
  br label %33

33:                                               ; preds = %32
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.zip_t, ptr %34, i32 0, i32 2
  %36 = getelementptr inbounds %struct.zip_entry_t, ptr %35, i32 0, i32 1
  %37 = load ptr, ptr %36, align 8, !tbaa !13
  %38 = icmp ne ptr %37, null
  br i1 %38, label %39, label %47

39:                                               ; preds = %33
  %40 = load ptr, ptr %4, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.zip_t, ptr %40, i32 0, i32 2
  %42 = getelementptr inbounds %struct.zip_entry_t, ptr %41, i32 0, i32 1
  %43 = load ptr, ptr %42, align 8, !tbaa !13
  call void @free(ptr noundef %43) #6
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.zip_t, ptr %44, i32 0, i32 2
  %46 = getelementptr inbounds %struct.zip_entry_t, ptr %45, i32 0, i32 1
  store ptr null, ptr %46, align 8, !tbaa !13
  br label %47

47:                                               ; preds = %39, %33
  br label %48

48:                                               ; preds = %47
  br label %49

49:                                               ; preds = %48
  br label %50

50:                                               ; preds = %49, %26
  %51 = load ptr, ptr %5, align 8, !tbaa !5
  %52 = load i64, ptr %6, align 8, !tbaa !9
  %53 = call ptr @zip_strrpl(ptr noundef %51, i64 noundef %52, i8 noundef signext 92, i8 noundef signext 47)
  %54 = load ptr, ptr %4, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.zip_t, ptr %54, i32 0, i32 2
  %56 = getelementptr inbounds %struct.zip_entry_t, ptr %55, i32 0, i32 1
  store ptr %53, ptr %56, align 8, !tbaa !13
  %57 = load ptr, ptr %4, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.zip_t, ptr %57, i32 0, i32 2
  %59 = getelementptr inbounds %struct.zip_entry_t, ptr %58, i32 0, i32 1
  %60 = load ptr, ptr %59, align 8, !tbaa !13
  %61 = icmp ne ptr %60, null
  br i1 %61, label %63, label %62

62:                                               ; preds = %50
  store i32 -2, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %349

63:                                               ; preds = %50
  %64 = load ptr, ptr %4, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.zip_t, ptr %64, i32 0, i32 0
  store ptr %65, ptr %7, align 8, !tbaa !5
  %66 = load ptr, ptr %7, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.mz_zip_archive, ptr %66, i32 0, i32 3
  %68 = load i32, ptr %67, align 4, !tbaa !21
  %69 = icmp eq i32 %68, 1
  br i1 %69, label %70, label %137

70:                                               ; preds = %63
  %71 = load ptr, ptr %7, align 8, !tbaa !5
  %72 = load ptr, ptr %4, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.zip_t, ptr %72, i32 0, i32 2
  %74 = getelementptr inbounds %struct.zip_entry_t, ptr %73, i32 0, i32 1
  %75 = load ptr, ptr %74, align 8, !tbaa !13
  %76 = call i32 @mz_zip_reader_locate_file(ptr noundef %71, ptr noundef %75, ptr noundef null, i32 noundef 0)
  %77 = load ptr, ptr %4, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.zip_t, ptr %77, i32 0, i32 2
  %79 = getelementptr inbounds %struct.zip_entry_t, ptr %78, i32 0, i32 0
  store i32 %76, ptr %79, align 8, !tbaa !22
  %80 = load ptr, ptr %4, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.zip_t, ptr %80, i32 0, i32 2
  %82 = getelementptr inbounds %struct.zip_entry_t, ptr %81, i32 0, i32 0
  %83 = load i32, ptr %82, align 8, !tbaa !22
  %84 = icmp slt i32 %83, 0
  br i1 %84, label %85, label %86

85:                                               ; preds = %70
  store i32 -3, ptr %11, align 4, !tbaa !11
  br label %330

86:                                               ; preds = %70
  %87 = load ptr, ptr %7, align 8, !tbaa !5
  %88 = load ptr, ptr %4, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.zip_t, ptr %88, i32 0, i32 2
  %90 = getelementptr inbounds %struct.zip_entry_t, ptr %89, i32 0, i32 0
  %91 = load i32, ptr %90, align 8, !tbaa !22
  %92 = call i32 @mz_zip_reader_file_stat(ptr noundef %87, i32 noundef %91, ptr noundef %10)
  %93 = icmp ne i32 %92, 0
  br i1 %93, label %95, label %94

94:                                               ; preds = %86
  store i32 -3, ptr %11, align 4, !tbaa !11
  br label %330

95:                                               ; preds = %86
  %96 = getelementptr inbounds %struct.mz_zip_archive_file_stat, ptr %10, i32 0, i32 8
  %97 = load i64, ptr %96, align 8, !tbaa !23
  %98 = load ptr, ptr %4, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.zip_t, ptr %98, i32 0, i32 2
  %100 = getelementptr inbounds %struct.zip_entry_t, ptr %99, i32 0, i32 3
  store i64 %97, ptr %100, align 8, !tbaa !25
  %101 = getelementptr inbounds %struct.mz_zip_archive_file_stat, ptr %10, i32 0, i32 9
  %102 = load i64, ptr %101, align 8, !tbaa !26
  %103 = load ptr, ptr %4, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.zip_t, ptr %103, i32 0, i32 2
  %105 = getelementptr inbounds %struct.zip_entry_t, ptr %104, i32 0, i32 2
  store i64 %102, ptr %105, align 8, !tbaa !27
  %106 = getelementptr inbounds %struct.mz_zip_archive_file_stat, ptr %10, i32 0, i32 7
  %107 = load i32, ptr %106, align 8, !tbaa !28
  %108 = load ptr, ptr %4, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.zip_t, ptr %108, i32 0, i32 2
  %110 = getelementptr inbounds %struct.zip_entry_t, ptr %109, i32 0, i32 4
  store i32 %107, ptr %110, align 8, !tbaa !29
  %111 = getelementptr inbounds %struct.mz_zip_archive_file_stat, ptr %10, i32 0, i32 1
  %112 = load i32, ptr %111, align 4, !tbaa !30
  %113 = zext i32 %112 to i64
  %114 = load ptr, ptr %4, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.zip_t, ptr %114, i32 0, i32 2
  %116 = getelementptr inbounds %struct.zip_entry_t, ptr %115, i32 0, i32 5
  store i64 %113, ptr %116, align 8, !tbaa !31
  %117 = getelementptr inbounds %struct.mz_zip_archive_file_stat, ptr %10, i32 0, i32 12
  %118 = load i64, ptr %117, align 8, !tbaa !32
  %119 = load ptr, ptr %4, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.zip_t, ptr %119, i32 0, i32 2
  %121 = getelementptr inbounds %struct.zip_entry_t, ptr %120, i32 0, i32 7
  store i64 %118, ptr %121, align 8, !tbaa !33
  %122 = getelementptr inbounds %struct.mz_zip_archive_file_stat, ptr %10, i32 0, i32 5
  %123 = load i16, ptr %122, align 2, !tbaa !34
  %124 = load ptr, ptr %4, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.zip_t, ptr %124, i32 0, i32 2
  %126 = getelementptr inbounds %struct.zip_entry_t, ptr %125, i32 0, i32 8
  store i16 %123, ptr %126, align 8, !tbaa !35
  %127 = getelementptr inbounds %struct.mz_zip_archive_file_stat, ptr %10, i32 0, i32 11
  %128 = load i32, ptr %127, align 4, !tbaa !36
  %129 = load ptr, ptr %4, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.zip_t, ptr %129, i32 0, i32 2
  %131 = getelementptr inbounds %struct.zip_entry_t, ptr %130, i32 0, i32 11
  store i32 %128, ptr %131, align 8, !tbaa !37
  %132 = getelementptr inbounds %struct.mz_zip_archive_file_stat, ptr %10, i32 0, i32 6
  %133 = load i64, ptr %132, align 8, !tbaa !38
  %134 = load ptr, ptr %4, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.zip_t, ptr %134, i32 0, i32 2
  %136 = getelementptr inbounds %struct.zip_entry_t, ptr %135, i32 0, i32 12
  store i64 %133, ptr %136, align 8, !tbaa !39
  store i32 0, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %349

137:                                              ; preds = %63
  %138 = load ptr, ptr %4, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.zip_t, ptr %138, i32 0, i32 0
  %140 = getelementptr inbounds %struct.mz_zip_archive, ptr %139, i32 0, i32 2
  %141 = load i32, ptr %140, align 8, !tbaa !40
  %142 = load ptr, ptr %4, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.zip_t, ptr %142, i32 0, i32 2
  %144 = getelementptr inbounds %struct.zip_entry_t, ptr %143, i32 0, i32 0
  store i32 %141, ptr %144, align 8, !tbaa !22
  %145 = load ptr, ptr %4, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.zip_t, ptr %145, i32 0, i32 2
  %147 = getelementptr inbounds %struct.zip_entry_t, ptr %146, i32 0, i32 3
  store i64 0, ptr %147, align 8, !tbaa !25
  %148 = load ptr, ptr %4, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.zip_t, ptr %148, i32 0, i32 2
  %150 = getelementptr inbounds %struct.zip_entry_t, ptr %149, i32 0, i32 2
  store i64 0, ptr %150, align 8, !tbaa !27
  %151 = load ptr, ptr %4, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.zip_t, ptr %151, i32 0, i32 2
  %153 = getelementptr inbounds %struct.zip_entry_t, ptr %152, i32 0, i32 4
  store i32 0, ptr %153, align 8, !tbaa !29
  %154 = load ptr, ptr %4, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.zip_t, ptr %154, i32 0, i32 0
  %156 = getelementptr inbounds %struct.mz_zip_archive, ptr %155, i32 0, i32 0
  %157 = load i64, ptr %156, align 8, !tbaa !41
  %158 = load ptr, ptr %4, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.zip_t, ptr %158, i32 0, i32 2
  %160 = getelementptr inbounds %struct.zip_entry_t, ptr %159, i32 0, i32 5
  store i64 %157, ptr %160, align 8, !tbaa !31
  %161 = load ptr, ptr %4, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.zip_t, ptr %161, i32 0, i32 0
  %163 = getelementptr inbounds %struct.mz_zip_archive, ptr %162, i32 0, i32 0
  %164 = load i64, ptr %163, align 8, !tbaa !41
  %165 = load ptr, ptr %4, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.zip_t, ptr %165, i32 0, i32 2
  %167 = getelementptr inbounds %struct.zip_entry_t, ptr %166, i32 0, i32 7
  store i64 %164, ptr %167, align 8, !tbaa !33
  %168 = load ptr, ptr %4, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.zip_t, ptr %168, i32 0, i32 2
  %170 = getelementptr inbounds %struct.zip_entry_t, ptr %169, i32 0, i32 6
  %171 = getelementptr inbounds [30 x i8], ptr %170, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 8 %171, i8 0, i64 30, i1 false)
  %172 = load ptr, ptr %4, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.zip_t, ptr %172, i32 0, i32 2
  %174 = getelementptr inbounds %struct.zip_entry_t, ptr %173, i32 0, i32 8
  store i16 0, ptr %174, align 8, !tbaa !35
  %175 = load ptr, ptr %4, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.zip_t, ptr %175, i32 0, i32 2
  %177 = getelementptr inbounds %struct.zip_entry_t, ptr %176, i32 0, i32 11
  store i32 -2119958528, ptr %177, align 8, !tbaa !37
  %178 = load ptr, ptr %7, align 8, !tbaa !5
  %179 = call i32 @mz_zip_writer_compute_padding_needed_for_file_alignment(ptr noundef %178)
  store i32 %179, ptr %8, align 4, !tbaa !11
  %180 = load ptr, ptr %7, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.mz_zip_archive, ptr %180, i32 0, i32 15
  %182 = load ptr, ptr %181, align 8, !tbaa !42
  %183 = icmp ne ptr %182, null
  br i1 %183, label %184, label %189

184:                                              ; preds = %137
  %185 = load ptr, ptr %7, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.mz_zip_archive, ptr %185, i32 0, i32 3
  %187 = load i32, ptr %186, align 4, !tbaa !21
  %188 = icmp ne i32 %187, 2
  br i1 %188, label %189, label %190

189:                                              ; preds = %184, %137
  store i32 -4, ptr %11, align 4, !tbaa !11
  br label %330

190:                                              ; preds = %184
  %191 = load ptr, ptr %4, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.zip_t, ptr %191, i32 0, i32 1
  %193 = load i32, ptr %192, align 8, !tbaa !43
  %194 = and i32 %193, 1024
  %195 = icmp ne i32 %194, 0
  br i1 %195, label %196, label %197

196:                                              ; preds = %190
  store i32 -5, ptr %11, align 4, !tbaa !11
  br label %330

197:                                              ; preds = %190
  %198 = load ptr, ptr %7, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.mz_zip_archive, ptr %198, i32 0, i32 2
  %200 = load i32, ptr %199, align 8, !tbaa !44
  %201 = icmp eq i32 %200, 65535
  br i1 %201, label %214, label %202

202:                                              ; preds = %197
  %203 = load ptr, ptr %7, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.mz_zip_archive, ptr %203, i32 0, i32 0
  %205 = load i64, ptr %204, align 8, !tbaa !45
  %206 = load i32, ptr %8, align 4, !tbaa !11
  %207 = zext i32 %206 to i64
  %208 = add i64 %205, %207
  %209 = add i64 %208, 30
  %210 = add i64 %209, 46
  %211 = load i64, ptr %6, align 8, !tbaa !9
  %212 = add i64 %210, %211
  %213 = icmp ugt i64 %212, 4294967295
  br i1 %213, label %214, label %215

214:                                              ; preds = %202, %197
  store i32 -6, ptr %11, align 4, !tbaa !11
  br label %330

215:                                              ; preds = %202
  %216 = load ptr, ptr %7, align 8, !tbaa !5
  %217 = load ptr, ptr %4, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.zip_t, ptr %217, i32 0, i32 2
  %219 = getelementptr inbounds %struct.zip_entry_t, ptr %218, i32 0, i32 5
  %220 = load i64, ptr %219, align 8, !tbaa !31
  %221 = load i32, ptr %8, align 4, !tbaa !11
  %222 = zext i32 %221 to i64
  %223 = add i64 %222, 30
  %224 = trunc i64 %223 to i32
  %225 = call i32 @mz_zip_writer_write_zeros(ptr noundef %216, i64 noundef %220, i32 noundef %224)
  %226 = icmp ne i32 %225, 0
  br i1 %226, label %228, label %227

227:                                              ; preds = %215
  store i32 -7, ptr %11, align 4, !tbaa !11
  br label %330

228:                                              ; preds = %215
  %229 = load i32, ptr %8, align 4, !tbaa !11
  %230 = zext i32 %229 to i64
  %231 = load ptr, ptr %4, align 8, !tbaa !5
  %232 = getelementptr inbounds %struct.zip_t, ptr %231, i32 0, i32 2
  %233 = getelementptr inbounds %struct.zip_entry_t, ptr %232, i32 0, i32 7
  %234 = load i64, ptr %233, align 8, !tbaa !33
  %235 = add i64 %234, %230
  store i64 %235, ptr %233, align 8, !tbaa !33
  %236 = load ptr, ptr %7, align 8, !tbaa !5
  %237 = getelementptr inbounds %struct.mz_zip_archive, ptr %236, i32 0, i32 6
  %238 = load i64, ptr %237, align 8, !tbaa !46
  %239 = icmp ne i64 %238, 0
  br i1 %239, label %240, label %254

240:                                              ; preds = %228
  %241 = load ptr, ptr %4, align 8, !tbaa !5
  %242 = getelementptr inbounds %struct.zip_t, ptr %241, i32 0, i32 2
  %243 = getelementptr inbounds %struct.zip_entry_t, ptr %242, i32 0, i32 7
  %244 = load i64, ptr %243, align 8, !tbaa !33
  %245 = load ptr, ptr %7, align 8, !tbaa !5
  %246 = getelementptr inbounds %struct.mz_zip_archive, ptr %245, i32 0, i32 6
  %247 = load i64, ptr %246, align 8, !tbaa !46
  %248 = sub i64 %247, 1
  %249 = and i64 %244, %248
  %250 = icmp eq i64 %249, 0
  br i1 %250, label %251, label %252

251:                                              ; preds = %240
  br label %253

252:                                              ; preds = %240
  call void @__assert_fail(ptr noundef @.str.21, ptr noundef @.str.22, i32 noundef 976, ptr noundef @__PRETTY_FUNCTION__.zip_entry_open) #8
  unreachable

253:                                              ; preds = %251
  br label %254

254:                                              ; preds = %253, %228
  %255 = load i32, ptr %8, align 4, !tbaa !11
  %256 = zext i32 %255 to i64
  %257 = add i64 %256, 30
  %258 = load ptr, ptr %4, align 8, !tbaa !5
  %259 = getelementptr inbounds %struct.zip_t, ptr %258, i32 0, i32 2
  %260 = getelementptr inbounds %struct.zip_entry_t, ptr %259, i32 0, i32 5
  %261 = load i64, ptr %260, align 8, !tbaa !31
  %262 = add i64 %261, %257
  store i64 %262, ptr %260, align 8, !tbaa !31
  %263 = load ptr, ptr %7, align 8, !tbaa !5
  %264 = getelementptr inbounds %struct.mz_zip_archive, ptr %263, i32 0, i32 12
  %265 = load ptr, ptr %264, align 8, !tbaa !47
  %266 = load ptr, ptr %7, align 8, !tbaa !5
  %267 = getelementptr inbounds %struct.mz_zip_archive, ptr %266, i32 0, i32 14
  %268 = load ptr, ptr %267, align 8, !tbaa !48
  %269 = load ptr, ptr %4, align 8, !tbaa !5
  %270 = getelementptr inbounds %struct.zip_t, ptr %269, i32 0, i32 2
  %271 = getelementptr inbounds %struct.zip_entry_t, ptr %270, i32 0, i32 5
  %272 = load i64, ptr %271, align 8, !tbaa !31
  %273 = load ptr, ptr %4, align 8, !tbaa !5
  %274 = getelementptr inbounds %struct.zip_t, ptr %273, i32 0, i32 2
  %275 = getelementptr inbounds %struct.zip_entry_t, ptr %274, i32 0, i32 1
  %276 = load ptr, ptr %275, align 8, !tbaa !13
  %277 = load i64, ptr %6, align 8, !tbaa !9
  %278 = call i64 %265(ptr noundef %268, i64 noundef %272, ptr noundef %276, i64 noundef %277)
  %279 = load i64, ptr %6, align 8, !tbaa !9
  %280 = icmp ne i64 %278, %279
  br i1 %280, label %281, label %282

281:                                              ; preds = %254
  store i32 -8, ptr %11, align 4, !tbaa !11
  br label %330

282:                                              ; preds = %254
  %283 = load i64, ptr %6, align 8, !tbaa !9
  %284 = load ptr, ptr %4, align 8, !tbaa !5
  %285 = getelementptr inbounds %struct.zip_t, ptr %284, i32 0, i32 2
  %286 = getelementptr inbounds %struct.zip_entry_t, ptr %285, i32 0, i32 5
  %287 = load i64, ptr %286, align 8, !tbaa !31
  %288 = add i64 %287, %283
  store i64 %288, ptr %286, align 8, !tbaa !31
  %289 = load ptr, ptr %4, align 8, !tbaa !5
  %290 = getelementptr inbounds %struct.zip_t, ptr %289, i32 0, i32 1
  %291 = load i32, ptr %290, align 8, !tbaa !43
  %292 = and i32 %291, 15
  store i32 %292, ptr %9, align 4, !tbaa !11
  %293 = load i32, ptr %9, align 4, !tbaa !11
  %294 = icmp ne i32 %293, 0
  br i1 %294, label %295, label %325

295:                                              ; preds = %282
  %296 = load ptr, ptr %7, align 8, !tbaa !5
  %297 = load ptr, ptr %4, align 8, !tbaa !5
  %298 = getelementptr inbounds %struct.zip_t, ptr %297, i32 0, i32 2
  %299 = getelementptr inbounds %struct.zip_entry_t, ptr %298, i32 0, i32 9
  %300 = getelementptr inbounds %struct.mz_zip_writer_add_state, ptr %299, i32 0, i32 0
  store ptr %296, ptr %300, align 8, !tbaa !49
  %301 = load ptr, ptr %4, align 8, !tbaa !5
  %302 = getelementptr inbounds %struct.zip_t, ptr %301, i32 0, i32 2
  %303 = getelementptr inbounds %struct.zip_entry_t, ptr %302, i32 0, i32 5
  %304 = load i64, ptr %303, align 8, !tbaa !31
  %305 = load ptr, ptr %4, align 8, !tbaa !5
  %306 = getelementptr inbounds %struct.zip_t, ptr %305, i32 0, i32 2
  %307 = getelementptr inbounds %struct.zip_entry_t, ptr %306, i32 0, i32 9
  %308 = getelementptr inbounds %struct.mz_zip_writer_add_state, ptr %307, i32 0, i32 1
  store i64 %304, ptr %308, align 8, !tbaa !50
  %309 = load ptr, ptr %4, align 8, !tbaa !5
  %310 = getelementptr inbounds %struct.zip_t, ptr %309, i32 0, i32 2
  %311 = getelementptr inbounds %struct.zip_entry_t, ptr %310, i32 0, i32 9
  %312 = getelementptr inbounds %struct.mz_zip_writer_add_state, ptr %311, i32 0, i32 2
  store i64 0, ptr %312, align 8, !tbaa !51
  %313 = load ptr, ptr %4, align 8, !tbaa !5
  %314 = getelementptr inbounds %struct.zip_t, ptr %313, i32 0, i32 2
  %315 = getelementptr inbounds %struct.zip_entry_t, ptr %314, i32 0, i32 10
  %316 = load ptr, ptr %4, align 8, !tbaa !5
  %317 = getelementptr inbounds %struct.zip_t, ptr %316, i32 0, i32 2
  %318 = getelementptr inbounds %struct.zip_entry_t, ptr %317, i32 0, i32 9
  %319 = load i32, ptr %9, align 4, !tbaa !11
  %320 = call i32 @tdefl_create_comp_flags_from_zip_params(i32 noundef %319, i32 noundef -15, i32 noundef 0)
  %321 = call i32 @tdefl_init(ptr noundef %315, ptr noundef @mz_zip_writer_add_put_buf_callback, ptr noundef %318, i32 noundef %320)
  %322 = icmp ne i32 %321, 0
  br i1 %322, label %323, label %324

323:                                              ; preds = %295
  store i32 -9, ptr %11, align 4, !tbaa !11
  br label %330

324:                                              ; preds = %295
  br label %325

325:                                              ; preds = %324, %282
  %326 = call i64 @time(ptr noundef null) #6
  %327 = load ptr, ptr %4, align 8, !tbaa !5
  %328 = getelementptr inbounds %struct.zip_t, ptr %327, i32 0, i32 2
  %329 = getelementptr inbounds %struct.zip_entry_t, ptr %328, i32 0, i32 12
  store i64 %326, ptr %329, align 8, !tbaa !39
  store i32 0, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %349

330:                                              ; preds = %323, %281, %227, %214, %196, %189, %94, %85
  br label %331

331:                                              ; preds = %330
  %332 = load ptr, ptr %4, align 8, !tbaa !5
  %333 = getelementptr inbounds %struct.zip_t, ptr %332, i32 0, i32 2
  %334 = getelementptr inbounds %struct.zip_entry_t, ptr %333, i32 0, i32 1
  %335 = load ptr, ptr %334, align 8, !tbaa !13
  %336 = icmp ne ptr %335, null
  br i1 %336, label %337, label %345

337:                                              ; preds = %331
  %338 = load ptr, ptr %4, align 8, !tbaa !5
  %339 = getelementptr inbounds %struct.zip_t, ptr %338, i32 0, i32 2
  %340 = getelementptr inbounds %struct.zip_entry_t, ptr %339, i32 0, i32 1
  %341 = load ptr, ptr %340, align 8, !tbaa !13
  call void @free(ptr noundef %341) #6
  %342 = load ptr, ptr %4, align 8, !tbaa !5
  %343 = getelementptr inbounds %struct.zip_t, ptr %342, i32 0, i32 2
  %344 = getelementptr inbounds %struct.zip_entry_t, ptr %343, i32 0, i32 1
  store ptr null, ptr %344, align 8, !tbaa !13
  br label %345

345:                                              ; preds = %337, %331
  br label %346

346:                                              ; preds = %345
  br label %347

347:                                              ; preds = %346
  %348 = load i32, ptr %11, align 4, !tbaa !11
  store i32 %348, ptr %3, align 4
  store i32 1, ptr %12, align 4
  br label %349

349:                                              ; preds = %347, %325, %95, %62, %25, %19, %15
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 584, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  %350 = load i32, ptr %3, align 4
  ret i32 %350
}

; Function Attrs: nounwind uwtable
declare hidden ptr @zip_strrpl(ptr noundef, i64 noundef, i8 noundef signext, i8 noundef signext) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { nounwind willreturn memory(read) "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 = { nounwind }
attributes #7 = { nounwind willreturn memory(read) }
attributes #8 = { noreturn nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !6, i64 128}
!14 = !{!"zip_t", !15, i64 0, !12, i64 112, !17, i64 120}
!15 = !{!"", !16, i64 0, !16, i64 8, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !16, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104}
!16 = !{!"long long", !7, i64 0}
!17 = !{!"zip_entry_t", !12, i64 0, !6, i64 8, !16, i64 16, !16, i64 24, !12, i64 32, !16, i64 40, !7, i64 48, !16, i64 80, !18, i64 88, !19, i64 96, !20, i64 120, !12, i64 319472, !10, i64 319480}
!18 = !{!"short", !7, i64 0}
!19 = !{!"", !6, i64 0, !16, i64 8, !16, i64 16}
!20 = !{!"", !6, i64 0, !6, i64 8, !12, i64 16, !7, i64 20, !12, i64 28, !12, i64 32, !12, i64 36, !12, i64 40, !12, i64 44, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !12, i64 80, !12, i64 84, !12, i64 88, !12, i64 92, !12, i64 96, !12, i64 100, !12, i64 104, !12, i64 108, !12, i64 112, !12, i64 116, !12, i64 120, !12, i64 124, !12, i64 128, !12, i64 132, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !12, i64 168, !6, i64 176, !10, i64 184, !10, i64 192, !7, i64 200, !7, i64 33226, !7, i64 34954, !7, i64 36682, !7, i64 37546, !7, i64 103082, !7, i64 168618, !7, i64 234154}
!21 = !{!15, !12, i64 20}
!22 = !{!14, !12, i64 120}
!23 = !{!24, !16, i64 32}
!24 = !{!"", !12, i64 0, !12, i64 4, !18, i64 8, !18, i64 10, !18, i64 12, !18, i64 14, !10, i64 16, !12, i64 24, !16, i64 32, !16, i64 40, !18, i64 48, !12, i64 52, !16, i64 56, !12, i64 64, !7, i64 68, !7, i64 328}
!25 = !{!14, !16, i64 144}
!26 = !{!24, !16, i64 40}
!27 = !{!14, !16, i64 136}
!28 = !{!24, !12, i64 24}
!29 = !{!14, !12, i64 152}
!30 = !{!24, !12, i64 4}
!31 = !{!14, !16, i64 160}
!32 = !{!24, !16, i64 56}
!33 = !{!14, !16, i64 200}
!34 = !{!24, !18, i64 14}
!35 = !{!14, !18, i64 208}
!36 = !{!24, !12, i64 52}
!37 = !{!14, !12, i64 319592}
!38 = !{!24, !10, i64 16}
!39 = !{!14, !10, i64 319600}
!40 = !{!14, !12, i64 16}
!41 = !{!14, !16, i64 0}
!42 = !{!15, !6, i64 104}
!43 = !{!14, !12, i64 112}
!44 = !{!15, !12, i64 16}
!45 = !{!15, !16, i64 0}
!46 = !{!15, !16, i64 32}
!47 = !{!15, !6, i64 80}
!48 = !{!15, !6, i64 96}
!49 = !{!14, !6, i64 216}
!50 = !{!14, !16, i64 224}
!51 = !{!14, !16, i64 232}


; 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.mz_zip_archive_file_stat = type { i32, i32, i16, i16, i16, i16, i64, i32, i64, i64, i16, i32, i64, i32, [260 x i8], [256 x i8] }

@.str.21 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [72 x i8], align 1
@__PRETTY_FUNCTION__.zip_entry_open = external hidden unnamed_addr constant [49 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @tdefl_create_comp_flags_from_zip_params(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

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

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #5

; Function Attrs: nounwind
declare i64 @time(ptr noundef) local_unnamed_addr #6

; Function Attrs: nounwind uwtable
declare hidden i32 @mz_zip_writer_compute_padding_needed_for_file_alignment(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare hidden i32 @mz_zip_writer_write_zeros(ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare hidden i32 @mz_zip_writer_add_put_buf_callback(ptr noundef, i32 noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
define dso_local range(i32 -9, 1) i32 @zip_entry_open(ptr noundef %0, ptr noundef %1) local_unnamed_addr #2 {
  %3 = alloca %struct.mz_zip_archive_file_stat, align 8
  call void @llvm.lifetime.start.p0(i64 584, ptr nonnull %3) #7
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %119, label %4

4:                                                ; preds = %2
  %.not91 = icmp eq ptr %1, null
  br i1 %.not91, label %119, label %5

5:                                                ; preds = %4
  %6 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %1) #8
  %7 = icmp eq i64 %6, 0
  br i1 %7, label %119, label %8

8:                                                ; preds = %5
  %9 = getelementptr inbounds i8, ptr %0, i64 120
  %10 = getelementptr inbounds i8, ptr %0, i64 128
  %11 = load ptr, ptr %10, align 8, !tbaa !5
  %.not92 = icmp eq ptr %11, null
  br i1 %.not92, label %13, label %12

12:                                               ; preds = %8
  tail call void @free(ptr noundef nonnull %11) #7
  store ptr null, ptr %10, align 8, !tbaa !5
  br label %13

13:                                               ; preds = %12, %8
  %14 = tail call ptr @zip_strrpl(ptr noundef nonnull %1, i64 noundef %6, i8 noundef signext 92, i8 noundef signext 47)
  store ptr %14, ptr %10, align 8, !tbaa !5
  %.not93 = icmp eq ptr %14, null
  br i1 %.not93, label %119, label %15

15:                                               ; preds = %13
  %16 = getelementptr inbounds i8, ptr %0, i64 20
  %17 = load i32, ptr %16, align 4, !tbaa !18
  %18 = icmp eq i32 %17, 1
  br i1 %18, label %19, label %48

19:                                               ; preds = %15
  %20 = tail call i32 @mz_zip_reader_locate_file(ptr noundef nonnull %0, ptr noundef nonnull %14, ptr noundef null, i32 noundef 0)
  store i32 %20, ptr %9, align 8, !tbaa !19
  %21 = icmp slt i32 %20, 0
  br i1 %21, label %116, label %22

22:                                               ; preds = %19
  %23 = call i32 @mz_zip_reader_file_stat(ptr noundef nonnull %0, i32 noundef %20, ptr noundef nonnull %3)
  %.not102 = icmp eq i32 %23, 0
  br i1 %.not102, label %116, label %24

24:                                               ; preds = %22
  %25 = getelementptr inbounds i8, ptr %3, i64 32
  %26 = getelementptr inbounds i8, ptr %0, i64 136
  %27 = load <2 x i64>, ptr %25, align 8, !tbaa !20
  %28 = shufflevector <2 x i64> %27, <2 x i64> poison, <2 x i32> <i32 1, i32 0>
  store <2 x i64> %28, ptr %26, align 8, !tbaa !20
  %29 = getelementptr inbounds i8, ptr %3, i64 24
  %30 = load i32, ptr %29, align 8, !tbaa !21
  %31 = getelementptr inbounds i8, ptr %0, i64 152
  store i32 %30, ptr %31, align 8, !tbaa !23
  %32 = getelementptr inbounds i8, ptr %3, i64 4
  %33 = load i32, ptr %32, align 4, !tbaa !24
  %34 = zext i32 %33 to i64
  %35 = getelementptr inbounds i8, ptr %0, i64 160
  store i64 %34, ptr %35, align 8, !tbaa !25
  %36 = getelementptr inbounds i8, ptr %3, i64 56
  %37 = load i64, ptr %36, align 8, !tbaa !26
  %38 = getelementptr inbounds i8, ptr %0, i64 200
  store i64 %37, ptr %38, align 8, !tbaa !27
  %39 = getelementptr inbounds i8, ptr %3, i64 14
  %40 = load i16, ptr %39, align 2, !tbaa !28
  %41 = getelementptr inbounds i8, ptr %0, i64 208
  store i16 %40, ptr %41, align 8, !tbaa !29
  %42 = getelementptr inbounds i8, ptr %3, i64 52
  %43 = load i32, ptr %42, align 4, !tbaa !30
  %44 = getelementptr inbounds i8, ptr %0, i64 319592
  store i32 %43, ptr %44, align 8, !tbaa !31
  %45 = getelementptr inbounds i8, ptr %3, i64 16
  %46 = load i64, ptr %45, align 8, !tbaa !32
  %47 = getelementptr inbounds i8, ptr %0, i64 319600
  store i64 %46, ptr %47, align 8, !tbaa !33
  br label %119

48:                                               ; preds = %15
  %49 = getelementptr inbounds i8, ptr %0, i64 16
  %50 = load i32, ptr %49, align 8, !tbaa !34
  store i32 %50, ptr %9, align 8, !tbaa !19
  %51 = getelementptr inbounds i8, ptr %0, i64 136
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(20) %51, i8 0, i64 20, i1 false)
  %52 = load i64, ptr %0, align 8, !tbaa !35
  %53 = getelementptr inbounds i8, ptr %0, i64 160
  store i64 %52, ptr %53, align 8, !tbaa !25
  %54 = getelementptr inbounds i8, ptr %0, i64 200
  store i64 %52, ptr %54, align 8, !tbaa !27
  %55 = getelementptr inbounds i8, ptr %0, i64 168
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(30) %55, i8 0, i64 30, i1 false)
  %56 = getelementptr inbounds i8, ptr %0, i64 208
  store i16 0, ptr %56, align 8, !tbaa !29
  %57 = getelementptr inbounds i8, ptr %0, i64 319592
  store i32 -2119958528, ptr %57, align 8, !tbaa !31
  %58 = tail call i32 @mz_zip_writer_compute_padding_needed_for_file_alignment(ptr noundef nonnull %0)
  %59 = getelementptr inbounds i8, ptr %0, i64 104
  %60 = load ptr, ptr %59, align 8, !tbaa !36
  %.not94 = icmp eq ptr %60, null
  br i1 %.not94, label %116, label %61

61:                                               ; preds = %48
  %62 = load i32, ptr %16, align 4, !tbaa !18
  %.not95 = icmp eq i32 %62, 2
  br i1 %.not95, label %63, label %116

63:                                               ; preds = %61
  %64 = getelementptr inbounds i8, ptr %0, i64 112
  %65 = load i32, ptr %64, align 8, !tbaa !37
  %66 = and i32 %65, 1024
  %.not96 = icmp eq i32 %66, 0
  br i1 %.not96, label %67, label %116

67:                                               ; preds = %63
  %68 = load i32, ptr %49, align 8, !tbaa !38
  %69 = icmp eq i32 %68, 65535
  br i1 %69, label %116, label %70

70:                                               ; preds = %67
  %71 = load i64, ptr %0, align 8, !tbaa !39
  %72 = zext i32 %58 to i64
  %73 = add i64 %6, 76
  %74 = add i64 %73, %72
  %75 = add i64 %74, %71
  %76 = icmp ugt i64 %75, 4294967295
  br i1 %76, label %116, label %77

77:                                               ; preds = %70
  %78 = load i64, ptr %53, align 8, !tbaa !25
  %79 = add nuw nsw i64 %72, 30
  %80 = trunc i64 %79 to i32
  %81 = tail call i32 @mz_zip_writer_write_zeros(ptr noundef nonnull %0, i64 noundef %78, i32 noundef %80)
  %.not97 = icmp eq i32 %81, 0
  br i1 %.not97, label %116, label %82

82:                                               ; preds = %77
  %83 = load i64, ptr %54, align 8, !tbaa !27
  %84 = add i64 %83, %72
  store i64 %84, ptr %54, align 8, !tbaa !27
  %85 = getelementptr inbounds i8, ptr %0, i64 32
  %86 = load i64, ptr %85, align 8, !tbaa !40
  %.not98 = icmp eq i64 %86, 0
  br i1 %.not98, label %92, label %87

87:                                               ; preds = %82
  %88 = add i64 %86, -1
  %89 = and i64 %88, %84
  %90 = icmp eq i64 %89, 0
  br i1 %90, label %92, label %91

91:                                               ; preds = %87
  tail call void @__assert_fail(ptr noundef nonnull @.str.21, ptr noundef nonnull @.str.22, i32 noundef 976, ptr noundef nonnull @__PRETTY_FUNCTION__.zip_entry_open) #9
  unreachable

92:                                               ; preds = %87, %82
  %93 = load i64, ptr %53, align 8, !tbaa !25
  %94 = add i64 %93, %79
  store i64 %94, ptr %53, align 8, !tbaa !25
  %95 = getelementptr inbounds i8, ptr %0, i64 80
  %96 = load ptr, ptr %95, align 8, !tbaa !41
  %97 = getelementptr inbounds i8, ptr %0, i64 96
  %98 = load ptr, ptr %97, align 8, !tbaa !42
  %99 = load ptr, ptr %10, align 8, !tbaa !5
  %100 = tail call i64 %96(ptr noundef %98, i64 noundef %94, ptr noundef %99, i64 noundef %6) #7
  %.not99 = icmp eq i64 %100, %6
  br i1 %.not99, label %101, label %116

101:                                              ; preds = %92
  %102 = load i64, ptr %53, align 8, !tbaa !25
  %103 = add i64 %102, %6
  store i64 %103, ptr %53, align 8, !tbaa !25
  %104 = load i32, ptr %64, align 8, !tbaa !37
  %105 = and i32 %104, 15
  %.not100 = icmp eq i32 %105, 0
  br i1 %.not100, label %113, label %106

106:                                              ; preds = %101
  %107 = getelementptr inbounds i8, ptr %0, i64 216
  store ptr %0, ptr %107, align 8, !tbaa !43
  %108 = getelementptr inbounds i8, ptr %0, i64 224
  store i64 %103, ptr %108, align 8, !tbaa !44
  %109 = getelementptr inbounds i8, ptr %0, i64 232
  store i64 0, ptr %109, align 8, !tbaa !45
  %110 = getelementptr inbounds i8, ptr %0, i64 240
  %111 = tail call i32 @tdefl_create_comp_flags_from_zip_params(i32 noundef %105, i32 noundef -15, i32 noundef 0)
  %112 = tail call i32 @tdefl_init(ptr noundef nonnull %110, ptr noundef nonnull @mz_zip_writer_add_put_buf_callback, ptr noundef nonnull %107, i32 noundef %111)
  %.not101 = icmp eq i32 %112, 0
  br i1 %.not101, label %113, label %116

113:                                              ; preds = %106, %101
  %114 = tail call i64 @time(ptr noundef null) #7
  %115 = getelementptr inbounds i8, ptr %0, i64 319600
  store i64 %114, ptr %115, align 8, !tbaa !33
  br label %119

116:                                              ; preds = %106, %92, %77, %67, %70, %63, %48, %61, %22, %19
  %.0 = phi i32 [ -3, %19 ], [ -3, %22 ], [ -4, %61 ], [ -4, %48 ], [ -5, %63 ], [ -6, %70 ], [ -6, %67 ], [ -7, %77 ], [ -8, %92 ], [ -9, %106 ]
  %117 = load ptr, ptr %10, align 8, !tbaa !5
  %.not103 = icmp eq ptr %117, null
  br i1 %.not103, label %119, label %118

118:                                              ; preds = %116
  call void @free(ptr noundef nonnull %117) #7
  store ptr null, ptr %10, align 8, !tbaa !5
  br label %119

119:                                              ; preds = %116, %118, %13, %5, %4, %2, %113, %24
  %.081 = phi i32 [ 0, %24 ], [ 0, %113 ], [ -1, %2 ], [ -2, %4 ], [ -2, %5 ], [ -2, %13 ], [ %.0, %118 ], [ %.0, %116 ]
  call void @llvm.lifetime.end.p0(i64 584, ptr nonnull %3) #7
  ret i32 %.081
}

; Function Attrs: nounwind uwtable
declare hidden ptr @zip_strrpl(ptr noundef, i64 noundef, i8 noundef signext, i8 noundef signext) local_unnamed_addr #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 = { 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 #7 = { nounwind }
attributes #8 = { nounwind willreturn memory(read) }
attributes #9 = { noreturn nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !12, i64 128}
!6 = !{!"zip_t", !7, i64 0, !11, i64 112, !13, i64 120}
!7 = !{!"", !8, i64 0, !8, i64 8, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !8, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !12, i64 88, !12, i64 96, !12, i64 104}
!8 = !{!"long long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!"any pointer", !9, i64 0}
!13 = !{!"zip_entry_t", !11, i64 0, !12, i64 8, !8, i64 16, !8, i64 24, !11, i64 32, !8, i64 40, !9, i64 48, !8, i64 80, !14, i64 88, !15, i64 96, !16, i64 120, !11, i64 319472, !17, i64 319480}
!14 = !{!"short", !9, i64 0}
!15 = !{!"", !12, i64 0, !8, i64 8, !8, i64 16}
!16 = !{!"", !12, i64 0, !12, i64 8, !11, i64 16, !9, i64 20, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !11, i64 80, !11, i64 84, !11, i64 88, !11, i64 92, !11, i64 96, !11, i64 100, !11, i64 104, !11, i64 108, !11, i64 112, !11, i64 116, !11, i64 120, !11, i64 124, !11, i64 128, !11, i64 132, !12, i64 136, !12, i64 144, !12, i64 152, !12, i64 160, !11, i64 168, !12, i64 176, !17, i64 184, !17, i64 192, !9, i64 200, !9, i64 33226, !9, i64 34954, !9, i64 36682, !9, i64 37546, !9, i64 103082, !9, i64 168618, !9, i64 234154}
!17 = !{!"long", !9, i64 0}
!18 = !{!7, !11, i64 20}
!19 = !{!6, !11, i64 120}
!20 = !{!8, !8, i64 0}
!21 = !{!22, !11, i64 24}
!22 = !{!"", !11, i64 0, !11, i64 4, !14, i64 8, !14, i64 10, !14, i64 12, !14, i64 14, !17, i64 16, !11, i64 24, !8, i64 32, !8, i64 40, !14, i64 48, !11, i64 52, !8, i64 56, !11, i64 64, !9, i64 68, !9, i64 328}
!23 = !{!6, !11, i64 152}
!24 = !{!22, !11, i64 4}
!25 = !{!6, !8, i64 160}
!26 = !{!22, !8, i64 56}
!27 = !{!6, !8, i64 200}
!28 = !{!22, !14, i64 14}
!29 = !{!6, !14, i64 208}
!30 = !{!22, !11, i64 52}
!31 = !{!6, !11, i64 319592}
!32 = !{!22, !17, i64 16}
!33 = !{!6, !17, i64 319600}
!34 = !{!6, !11, i64 16}
!35 = !{!6, !8, i64 0}
!36 = !{!7, !12, i64 104}
!37 = !{!6, !11, i64 112}
!38 = !{!7, !11, i64 16}
!39 = !{!7, !8, i64 0}
!40 = !{!7, !8, i64 32}
!41 = !{!7, !12, i64 80}
!42 = !{!7, !12, i64 96}
!43 = !{!6, !12, i64 216}
!44 = !{!6, !8, i64 224}
!45 = !{!6, !8, i64 232}


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