; LLVM IR from taichi-dev/taichi :: taichi/common (miniz)

; 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 = type { i64, i64, i32, i32, i32, i32, i64, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.mz_zip_reader_extract_iter_state = type { ptr, i32, i32, i64, i64, i64, i64, i64, i64, %struct.mz_zip_archive_file_stat, ptr, ptr, i64, %struct.tinfl_decompressor_tag, i32 }
%struct.mz_zip_archive_file_stat = type { i32, i64, i16, i16, i16, i16, i32, i64, i64, i16, i32, i64, i32, i32, i32, i32, [512 x i8], [512 x i8], i64 }
%struct.tinfl_decompressor_tag = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [3 x i32], i64, i64, [3 x [1024 x i16]], [576 x i16], [64 x i16], [38 x i16], [288 x i8], [32 x i8], [19 x i8], [4 x i8], [457 x i8] }
%struct.mz_zip_internal_state_tag = type { %struct.mz_zip_array, %struct.mz_zip_array, %struct.mz_zip_array, i32, i32, i32, ptr, i64, ptr, i64, i64 }
%struct.mz_zip_array = type { ptr, i64, i64, i32 }

; 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: alwaysinline nounwind uwtable
declare hidden i32 @mz_zip_set_error(ptr noundef, i32 noundef) #1

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

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

15:                                               ; preds = %3
  %16 = load ptr, ptr %5, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.mz_zip_archive, ptr %16, i32 0, i32 15
  %18 = load ptr, ptr %17, align 8, !tbaa !11
  %19 = icmp ne ptr %18, null
  br i1 %19, label %21, label %20

20:                                               ; preds = %15, %3
  store ptr null, ptr %4, align 8
  store i32 1, ptr %11, align 4
  br label %382

21:                                               ; preds = %15
  %22 = load ptr, ptr %5, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.mz_zip_archive, ptr %22, i32 0, i32 7
  %24 = load ptr, ptr %23, align 8, !tbaa !14
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.mz_zip_archive, ptr %25, i32 0, i32 10
  %27 = load ptr, ptr %26, align 8, !tbaa !15
  %28 = call ptr %24(ptr noundef %27, i64 noundef 1, i64 noundef 9584)
  store ptr %28, ptr %8, align 8, !tbaa !5
  %29 = load ptr, ptr %8, align 8, !tbaa !5
  %30 = icmp ne ptr %29, null
  br i1 %30, label %34, label %31

31:                                               ; preds = %21
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = call i32 @mz_zip_set_error(ptr noundef %32, i32 noundef 16)
  store ptr null, ptr %4, align 8
  store i32 1, ptr %11, align 4
  br label %382

34:                                               ; preds = %21
  %35 = load ptr, ptr %5, align 8, !tbaa !5
  %36 = load i32, ptr %6, align 4, !tbaa !9
  %37 = load ptr, ptr %8, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.mz_zip_reader_extract_iter_state, ptr %37, i32 0, i32 9
  %39 = call i32 @mz_zip_reader_file_stat(ptr noundef %35, i32 noundef %36, ptr noundef %38)
  %40 = icmp ne i32 %39, 0
  br i1 %40, label %49, label %41

41:                                               ; preds = %34
  %42 = load ptr, ptr %5, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.mz_zip_archive, ptr %42, i32 0, i32 8
  %44 = load ptr, ptr %43, align 8, !tbaa !16
  %45 = load ptr, ptr %5, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.mz_zip_archive, ptr %45, i32 0, i32 10
  %47 = load ptr, ptr %46, align 8, !tbaa !15
  %48 = load ptr, ptr %8, align 8, !tbaa !5
  call void %44(ptr noundef %47, ptr noundef %48)
  store ptr null, ptr %4, align 8
  store i32 1, ptr %11, align 4
  br label %382

49:                                               ; preds = %34
  %50 = load ptr, ptr %8, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.mz_zip_reader_extract_iter_state, ptr %50, i32 0, i32 9
  %52 = getelementptr inbounds %struct.mz_zip_archive_file_stat, ptr %51, i32 0, i32 4
  %53 = load i16, ptr %52, align 4, !tbaa !17
  %54 = zext i16 %53 to i32
  %55 = and i32 %54, 97
  %56 = icmp ne i32 %55, 0
  br i1 %56, label %57, label %67

57:                                               ; preds = %49
  %58 = load ptr, ptr %5, align 8, !tbaa !5
  %59 = call i32 @mz_zip_set_error(ptr noundef %58, i32 noundef 5)
  %60 = load ptr, ptr %5, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.mz_zip_archive, ptr %60, i32 0, i32 8
  %62 = load ptr, ptr %61, align 8, !tbaa !16
  %63 = load ptr, ptr %5, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.mz_zip_archive, ptr %63, i32 0, i32 10
  %65 = load ptr, ptr %64, align 8, !tbaa !15
  %66 = load ptr, ptr %8, align 8, !tbaa !5
  call void %62(ptr noundef %65, ptr noundef %66)
  store ptr null, ptr %4, align 8
  store i32 1, ptr %11, align 4
  br label %382

67:                                               ; preds = %49
  %68 = load i32, ptr %7, align 4, !tbaa !9
  %69 = and i32 %68, 1024
  %70 = icmp ne i32 %69, 0
  br i1 %70, label %95, label %71

71:                                               ; preds = %67
  %72 = load ptr, ptr %8, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.mz_zip_reader_extract_iter_state, ptr %72, i32 0, i32 9
  %74 = getelementptr inbounds %struct.mz_zip_archive_file_stat, ptr %73, i32 0, i32 5
  %75 = load i16, ptr %74, align 2, !tbaa !22
  %76 = zext i16 %75 to i32
  %77 = icmp ne i32 %76, 0
  br i1 %77, label %78, label %95

78:                                               ; preds = %71
  %79 = load ptr, ptr %8, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.mz_zip_reader_extract_iter_state, ptr %79, i32 0, i32 9
  %81 = getelementptr inbounds %struct.mz_zip_archive_file_stat, ptr %80, i32 0, i32 5
  %82 = load i16, ptr %81, align 2, !tbaa !22
  %83 = zext i16 %82 to i32
  %84 = icmp ne i32 %83, 8
  br i1 %84, label %85, label %95

85:                                               ; preds = %78
  %86 = load ptr, ptr %5, align 8, !tbaa !5
  %87 = call i32 @mz_zip_set_error(ptr noundef %86, i32 noundef 4)
  %88 = load ptr, ptr %5, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.mz_zip_archive, ptr %88, i32 0, i32 8
  %90 = load ptr, ptr %89, align 8, !tbaa !16
  %91 = load ptr, ptr %5, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.mz_zip_archive, ptr %91, i32 0, i32 10
  %93 = load ptr, ptr %92, align 8, !tbaa !15
  %94 = load ptr, ptr %8, align 8, !tbaa !5
  call void %90(ptr noundef %93, ptr noundef %94)
  store ptr null, ptr %4, align 8
  store i32 1, ptr %11, align 4
  br label %382

95:                                               ; preds = %78, %71, %67
  %96 = load ptr, ptr %5, align 8, !tbaa !5
  %97 = load ptr, ptr %8, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.mz_zip_reader_extract_iter_state, ptr %97, i32 0, i32 0
  store ptr %96, ptr %98, align 8, !tbaa !23
  %99 = load i32, ptr %7, align 4, !tbaa !9
  %100 = load ptr, ptr %8, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.mz_zip_reader_extract_iter_state, ptr %100, i32 0, i32 1
  store i32 %99, ptr %101, align 8, !tbaa !24
  %102 = load ptr, ptr %8, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.mz_zip_reader_extract_iter_state, ptr %102, i32 0, i32 2
  store i32 0, ptr %103, align 4, !tbaa !25
  %104 = load ptr, ptr %8, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.mz_zip_reader_extract_iter_state, ptr %104, i32 0, i32 14
  store i32 0, ptr %105, align 8, !tbaa !26
  %106 = load ptr, ptr %8, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.mz_zip_reader_extract_iter_state, ptr %106, i32 0, i32 4
  store i64 0, ptr %107, align 8, !tbaa !27
  %108 = load ptr, ptr %8, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.mz_zip_reader_extract_iter_state, ptr %108, i32 0, i32 7
  store i64 0, ptr %109, align 8, !tbaa !28
  %110 = load ptr, ptr %8, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.mz_zip_reader_extract_iter_state, ptr %110, i32 0, i32 10
  store ptr null, ptr %111, align 8, !tbaa !29
  %112 = load ptr, ptr %8, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.mz_zip_reader_extract_iter_state, ptr %112, i32 0, i32 11
  store ptr null, ptr %113, align 8, !tbaa !30
  %114 = load ptr, ptr %8, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.mz_zip_reader_extract_iter_state, ptr %114, i32 0, i32 12
  store i64 0, ptr %115, align 8, !tbaa !31
  %116 = load ptr, ptr %8, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.mz_zip_reader_extract_iter_state, ptr %116, i32 0, i32 9
  %118 = getelementptr inbounds %struct.mz_zip_archive_file_stat, ptr %117, i32 0, i32 11
  %119 = load i64, ptr %118, align 8, !tbaa !32
  %120 = load ptr, ptr %8, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.mz_zip_reader_extract_iter_state, ptr %120, i32 0, i32 8
  store i64 %119, ptr %121, align 8, !tbaa !33
  %122 = load ptr, ptr %5, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.mz_zip_archive, ptr %122, i32 0, i32 11
  %124 = load ptr, ptr %123, align 8, !tbaa !34
  %125 = load ptr, ptr %5, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.mz_zip_archive, ptr %125, i32 0, i32 14
  %127 = load ptr, ptr %126, align 8, !tbaa !35
  %128 = load ptr, ptr %8, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.mz_zip_reader_extract_iter_state, ptr %128, i32 0, i32 8
  %130 = load i64, ptr %129, align 8, !tbaa !33
  %131 = load ptr, ptr %10, align 8, !tbaa !5
  %132 = call i64 %124(ptr noundef %127, i64 noundef %130, ptr noundef %131, i64 noundef 30)
  %133 = icmp ne i64 %132, 30
  br i1 %133, label %134, label %144

134:                                              ; preds = %95
  %135 = load ptr, ptr %5, align 8, !tbaa !5
  %136 = call i32 @mz_zip_set_error(ptr noundef %135, i32 noundef 20)
  %137 = load ptr, ptr %5, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.mz_zip_archive, ptr %137, i32 0, i32 8
  %139 = load ptr, ptr %138, align 8, !tbaa !16
  %140 = load ptr, ptr %5, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.mz_zip_archive, ptr %140, i32 0, i32 10
  %142 = load ptr, ptr %141, align 8, !tbaa !15
  %143 = load ptr, ptr %8, align 8, !tbaa !5
  call void %139(ptr noundef %142, ptr noundef %143)
  store ptr null, ptr %4, align 8
  store i32 1, ptr %11, align 4
  br label %382

144:                                              ; preds = %95
  %145 = load ptr, ptr %10, align 8, !tbaa !5
  %146 = getelementptr inbounds i8, ptr %145, i64 0
  %147 = load i8, ptr %146, align 1, !tbaa !36
  %148 = zext i8 %147 to i32
  %149 = load ptr, ptr %10, align 8, !tbaa !5
  %150 = getelementptr inbounds i8, ptr %149, i64 1
  %151 = load i8, ptr %150, align 1, !tbaa !36
  %152 = zext i8 %151 to i32
  %153 = shl i32 %152, 8
  %154 = or i32 %148, %153
  %155 = load ptr, ptr %10, align 8, !tbaa !5
  %156 = getelementptr inbounds i8, ptr %155, i64 2
  %157 = load i8, ptr %156, align 1, !tbaa !36
  %158 = zext i8 %157 to i32
  %159 = shl i32 %158, 16
  %160 = or i32 %154, %159
  %161 = load ptr, ptr %10, align 8, !tbaa !5
  %162 = getelementptr inbounds i8, ptr %161, i64 3
  %163 = load i8, ptr %162, align 1, !tbaa !36
  %164 = zext i8 %163 to i32
  %165 = shl i32 %164, 24
  %166 = or i32 %160, %165
  %167 = icmp ne i32 %166, 67324752
  br i1 %167, label %168, label %178

168:                                              ; preds = %144
  %169 = load ptr, ptr %5, align 8, !tbaa !5
  %170 = call i32 @mz_zip_set_error(ptr noundef %169, i32 noundef 9)
  %171 = load ptr, ptr %5, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.mz_zip_archive, ptr %171, i32 0, i32 8
  %173 = load ptr, ptr %172, align 8, !tbaa !16
  %174 = load ptr, ptr %5, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.mz_zip_archive, ptr %174, i32 0, i32 10
  %176 = load ptr, ptr %175, align 8, !tbaa !15
  %177 = load ptr, ptr %8, align 8, !tbaa !5
  call void %173(ptr noundef %176, ptr noundef %177)
  store ptr null, ptr %4, align 8
  store i32 1, ptr %11, align 4
  br label %382

178:                                              ; preds = %144
  %179 = load ptr, ptr %10, align 8, !tbaa !5
  %180 = getelementptr inbounds i8, ptr %179, i64 26
  %181 = getelementptr inbounds i8, ptr %180, i64 0
  %182 = load i8, ptr %181, align 1, !tbaa !36
  %183 = zext i8 %182 to i32
  %184 = load ptr, ptr %10, align 8, !tbaa !5
  %185 = getelementptr inbounds i8, ptr %184, i64 26
  %186 = getelementptr inbounds i8, ptr %185, i64 1
  %187 = load i8, ptr %186, align 1, !tbaa !36
  %188 = zext i8 %187 to i32
  %189 = shl i32 %188, 8
  %190 = or i32 %183, %189
  %191 = add i32 30, %190
  %192 = load ptr, ptr %10, align 8, !tbaa !5
  %193 = getelementptr inbounds i8, ptr %192, i64 28
  %194 = getelementptr inbounds i8, ptr %193, i64 0
  %195 = load i8, ptr %194, align 1, !tbaa !36
  %196 = zext i8 %195 to i32
  %197 = load ptr, ptr %10, align 8, !tbaa !5
  %198 = getelementptr inbounds i8, ptr %197, i64 28
  %199 = getelementptr inbounds i8, ptr %198, i64 1
  %200 = load i8, ptr %199, align 1, !tbaa !36
  %201 = zext i8 %200 to i32
  %202 = shl i32 %201, 8
  %203 = or i32 %196, %202
  %204 = add i32 %191, %203
  %205 = zext i32 %204 to i64
  %206 = load ptr, ptr %8, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.mz_zip_reader_extract_iter_state, ptr %206, i32 0, i32 8
  %208 = load i64, ptr %207, align 8, !tbaa !33
  %209 = add i64 %208, %205
  store i64 %209, ptr %207, align 8, !tbaa !33
  %210 = load ptr, ptr %8, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.mz_zip_reader_extract_iter_state, ptr %210, i32 0, i32 8
  %212 = load i64, ptr %211, align 8, !tbaa !33
  %213 = load ptr, ptr %8, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct.mz_zip_reader_extract_iter_state, ptr %213, i32 0, i32 9
  %215 = getelementptr inbounds %struct.mz_zip_archive_file_stat, ptr %214, i32 0, i32 7
  %216 = load i64, ptr %215, align 8, !tbaa !37
  %217 = add i64 %212, %216
  %218 = load ptr, ptr %5, align 8, !tbaa !5
  %219 = getelementptr inbounds %struct.mz_zip_archive, ptr %218, i32 0, i32 0
  %220 = load i64, ptr %219, align 8, !tbaa !38
  %221 = icmp ugt i64 %217, %220
  br i1 %221, label %222, label %232

222:                                              ; preds = %178
  %223 = load ptr, ptr %5, align 8, !tbaa !5
  %224 = call i32 @mz_zip_set_error(ptr noundef %223, i32 noundef 9)
  %225 = load ptr, ptr %5, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct.mz_zip_archive, ptr %225, i32 0, i32 8
  %227 = load ptr, ptr %226, align 8, !tbaa !16
  %228 = load ptr, ptr %5, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct.mz_zip_archive, ptr %228, i32 0, i32 10
  %230 = load ptr, ptr %229, align 8, !tbaa !15
  %231 = load ptr, ptr %8, align 8, !tbaa !5
  call void %227(ptr noundef %230, ptr noundef %231)
  store ptr null, ptr %4, align 8
  store i32 1, ptr %11, align 4
  br label %382

232:                                              ; preds = %178
  %233 = load ptr, ptr %5, align 8, !tbaa !5
  %234 = getelementptr inbounds %struct.mz_zip_archive, ptr %233, i32 0, i32 15
  %235 = load ptr, ptr %234, align 8, !tbaa !11
  %236 = getelementptr inbounds %struct.mz_zip_internal_state_tag, ptr %235, i32 0, i32 8
  %237 = load ptr, ptr %236, align 8, !tbaa !39
  %238 = icmp ne ptr %237, null
  br i1 %238, label %239, label %265

239:                                              ; preds = %232
  %240 = load ptr, ptr %5, align 8, !tbaa !5
  %241 = getelementptr inbounds %struct.mz_zip_archive, ptr %240, i32 0, i32 15
  %242 = load ptr, ptr %241, align 8, !tbaa !11
  %243 = getelementptr inbounds %struct.mz_zip_internal_state_tag, ptr %242, i32 0, i32 8
  %244 = load ptr, ptr %243, align 8, !tbaa !39
  %245 = load ptr, ptr %8, align 8, !tbaa !5
  %246 = getelementptr inbounds %struct.mz_zip_reader_extract_iter_state, ptr %245, i32 0, i32 8
  %247 = load i64, ptr %246, align 8, !tbaa !33
  %248 = getelementptr inbounds i8, ptr %244, i64 %247
  %249 = load ptr, ptr %8, align 8, !tbaa !5
  %250 = getelementptr inbounds %struct.mz_zip_reader_extract_iter_state, ptr %249, i32 0, i32 10
  store ptr %248, ptr %250, align 8, !tbaa !29
  %251 = load ptr, ptr %8, align 8, !tbaa !5
  %252 = getelementptr inbounds %struct.mz_zip_reader_extract_iter_state, ptr %251, i32 0, i32 9
  %253 = getelementptr inbounds %struct.mz_zip_archive_file_stat, ptr %252, i32 0, i32 7
  %254 = load i64, ptr %253, align 8, !tbaa !37
  %255 = load ptr, ptr %8, align 8, !tbaa !5
  %256 = getelementptr inbounds %struct.mz_zip_reader_extract_iter_state, ptr %255, i32 0, i32 5
  store i64 %254, ptr %256, align 8, !tbaa !42
  %257 = load ptr, ptr %8, align 8, !tbaa !5
  %258 = getelementptr inbounds %struct.mz_zip_reader_extract_iter_state, ptr %257, i32 0, i32 3
  store i64 %254, ptr %258, align 8, !tbaa !43
  %259 = load ptr, ptr %8, align 8, !tbaa !5
  %260 = getelementptr inbounds %struct.mz_zip_reader_extract_iter_state, ptr %259, i32 0, i32 9
  %261 = getelementptr inbounds %struct.mz_zip_archive_file_stat, ptr %260, i32 0, i32 7
  %262 = load i64, ptr %261, align 8, !tbaa !37
  %263 = load ptr, ptr %8, align 8, !tbaa !5
  %264 = getelementptr inbounds %struct.mz_zip_reader_extract_iter_state, ptr %263, i32 0, i32 6
  store i64 %262, ptr %264, align 8, !tbaa !44
  br label %327

265:                                              ; preds = %232
  %266 = load i32, ptr %7, align 4, !tbaa !9
  %267 = and i32 %266, 1024
  %268 = icmp ne i32 %267, 0
  br i1 %268, label %315, label %269

269:                                              ; preds = %265
  %270 = load ptr, ptr %8, align 8, !tbaa !5
  %271 = getelementptr inbounds %struct.mz_zip_reader_extract_iter_state, ptr %270, i32 0, i32 9
  %272 = getelementptr inbounds %struct.mz_zip_archive_file_stat, ptr %271, i32 0, i32 5
  %273 = load i16, ptr %272, align 2, !tbaa !22
  %274 = icmp ne i16 %273, 0
  br i1 %274, label %275, label %315

275:                                              ; preds = %269
  %276 = load ptr, ptr %8, align 8, !tbaa !5
  %277 = getelementptr inbounds %struct.mz_zip_reader_extract_iter_state, ptr %276, i32 0, i32 9
  %278 = getelementptr inbounds %struct.mz_zip_archive_file_stat, ptr %277, i32 0, i32 7
  %279 = load i64, ptr %278, align 8, !tbaa !37
  %280 = icmp ult i64 %279, 65536
  br i1 %280, label %281, label %286

281:                                              ; preds = %275
  %282 = load ptr, ptr %8, align 8, !tbaa !5
  %283 = getelementptr inbounds %struct.mz_zip_reader_extract_iter_state, ptr %282, i32 0, i32 9
  %284 = getelementptr inbounds %struct.mz_zip_archive_file_stat, ptr %283, i32 0, i32 7
  %285 = load i64, ptr %284, align 8, !tbaa !37
  br label %287

286:                                              ; preds = %275
  br label %287

287:                                              ; preds = %286, %281
  %288 = phi i64 [ %285, %281 ], [ 65536, %286 ]
  %289 = load ptr, ptr %8, align 8, !tbaa !5
  %290 = getelementptr inbounds %struct.mz_zip_reader_extract_iter_state, ptr %289, i32 0, i32 3
  store i64 %288, ptr %290, align 8, !tbaa !43
  %291 = load ptr, ptr %5, align 8, !tbaa !5
  %292 = getelementptr inbounds %struct.mz_zip_archive, ptr %291, i32 0, i32 7
  %293 = load ptr, ptr %292, align 8, !tbaa !14
  %294 = load ptr, ptr %5, align 8, !tbaa !5
  %295 = getelementptr inbounds %struct.mz_zip_archive, ptr %294, i32 0, i32 10
  %296 = load ptr, ptr %295, align 8, !tbaa !15
  %297 = load ptr, ptr %8, align 8, !tbaa !5
  %298 = getelementptr inbounds %struct.mz_zip_reader_extract_iter_state, ptr %297, i32 0, i32 3
  %299 = load i64, ptr %298, align 8, !tbaa !43
  %300 = call ptr %293(ptr noundef %296, i64 noundef 1, i64 noundef %299)
  %301 = load ptr, ptr %8, align 8, !tbaa !5
  %302 = getelementptr inbounds %struct.mz_zip_reader_extract_iter_state, ptr %301, i32 0, i32 10
  store ptr %300, ptr %302, align 8, !tbaa !29
  %303 = icmp eq ptr null, %300
  br i1 %303, label %304, label %314

304:                                              ; preds = %287
  %305 = load ptr, ptr %5, align 8, !tbaa !5
  %306 = call i32 @mz_zip_set_error(ptr noundef %305, i32 noundef 16)
  %307 = load ptr, ptr %5, align 8, !tbaa !5
  %308 = getelementptr inbounds %struct.mz_zip_archive, ptr %307, i32 0, i32 8
  %309 = load ptr, ptr %308, align 8, !tbaa !16
  %310 = load ptr, ptr %5, align 8, !tbaa !5
  %311 = getelementptr inbounds %struct.mz_zip_archive, ptr %310, i32 0, i32 10
  %312 = load ptr, ptr %311, align 8, !tbaa !15
  %313 = load ptr, ptr %8, align 8, !tbaa !5
  call void %309(ptr noundef %312, ptr noundef %313)
  store ptr null, ptr %4, align 8
  store i32 1, ptr %11, align 4
  br label %382

314:                                              ; preds = %287
  br label %318

315:                                              ; preds = %269, %265
  %316 = load ptr, ptr %8, align 8, !tbaa !5
  %317 = getelementptr inbounds %struct.mz_zip_reader_extract_iter_state, ptr %316, i32 0, i32 3
  store i64 0, ptr %317, align 8, !tbaa !43
  br label %318

318:                                              ; preds = %315, %314
  %319 = load ptr, ptr %8, align 8, !tbaa !5
  %320 = getelementptr inbounds %struct.mz_zip_reader_extract_iter_state, ptr %319, i32 0, i32 5
  store i64 0, ptr %320, align 8, !tbaa !42
  %321 = load ptr, ptr %8, align 8, !tbaa !5
  %322 = getelementptr inbounds %struct.mz_zip_reader_extract_iter_state, ptr %321, i32 0, i32 9
  %323 = getelementptr inbounds %struct.mz_zip_archive_file_stat, ptr %322, i32 0, i32 7
  %324 = load i64, ptr %323, align 8, !tbaa !37
  %325 = load ptr, ptr %8, align 8, !tbaa !5
  %326 = getelementptr inbounds %struct.mz_zip_reader_extract_iter_state, ptr %325, i32 0, i32 6
  store i64 %324, ptr %326, align 8, !tbaa !44
  br label %327

327:                                              ; preds = %318, %239
  %328 = load i32, ptr %7, align 4, !tbaa !9
  %329 = and i32 %328, 1024
  %330 = icmp ne i32 %329, 0
  br i1 %330, label %380, label %331

331:                                              ; preds = %327
  %332 = load ptr, ptr %8, align 8, !tbaa !5
  %333 = getelementptr inbounds %struct.mz_zip_reader_extract_iter_state, ptr %332, i32 0, i32 9
  %334 = getelementptr inbounds %struct.mz_zip_archive_file_stat, ptr %333, i32 0, i32 5
  %335 = load i16, ptr %334, align 2, !tbaa !22
  %336 = icmp ne i16 %335, 0
  br i1 %336, label %337, label %380

337:                                              ; preds = %331
  br label %338

338:                                              ; preds = %337
  %339 = load ptr, ptr %8, align 8, !tbaa !5
  %340 = getelementptr inbounds %struct.mz_zip_reader_extract_iter_state, ptr %339, i32 0, i32 13
  %341 = getelementptr inbounds %struct.tinfl_decompressor_tag, ptr %340, i32 0, i32 0
  store i32 0, ptr %341, align 8, !tbaa !45
  br label %342

342:                                              ; preds = %338
  br label %343

343:                                              ; preds = %342
  %344 = load ptr, ptr %5, align 8, !tbaa !5
  %345 = getelementptr inbounds %struct.mz_zip_archive, ptr %344, i32 0, i32 7
  %346 = load ptr, ptr %345, align 8, !tbaa !14
  %347 = load ptr, ptr %5, align 8, !tbaa !5
  %348 = getelementptr inbounds %struct.mz_zip_archive, ptr %347, i32 0, i32 10
  %349 = load ptr, ptr %348, align 8, !tbaa !15
  %350 = call ptr %346(ptr noundef %349, i64 noundef 1, i64 noundef 32768)
  %351 = load ptr, ptr %8, align 8, !tbaa !5
  %352 = getelementptr inbounds %struct.mz_zip_reader_extract_iter_state, ptr %351, i32 0, i32 11
  store ptr %350, ptr %352, align 8, !tbaa !30
  %353 = icmp eq ptr null, %350
  br i1 %353, label %354, label %379

354:                                              ; preds = %343
  %355 = load ptr, ptr %5, align 8, !tbaa !5
  %356 = call i32 @mz_zip_set_error(ptr noundef %355, i32 noundef 16)
  %357 = load ptr, ptr %8, align 8, !tbaa !5
  %358 = getelementptr inbounds %struct.mz_zip_reader_extract_iter_state, ptr %357, i32 0, i32 10
  %359 = load ptr, ptr %358, align 8, !tbaa !29
  %360 = icmp ne ptr %359, null
  br i1 %360, label %361, label %371

361:                                              ; preds = %354
  %362 = load ptr, ptr %5, align 8, !tbaa !5
  %363 = getelementptr inbounds %struct.mz_zip_archive, ptr %362, i32 0, i32 8
  %364 = load ptr, ptr %363, align 8, !tbaa !16
  %365 = load ptr, ptr %5, align 8, !tbaa !5
  %366 = getelementptr inbounds %struct.mz_zip_archive, ptr %365, i32 0, i32 10
  %367 = load ptr, ptr %366, align 8, !tbaa !15
  %368 = load ptr, ptr %8, align 8, !tbaa !5
  %369 = getelementptr inbounds %struct.mz_zip_reader_extract_iter_state, ptr %368, i32 0, i32 10
  %370 = load ptr, ptr %369, align 8, !tbaa !29
  call void %364(ptr noundef %367, ptr noundef %370)
  br label %371

371:                                              ; preds = %361, %354
  %372 = load ptr, ptr %5, align 8, !tbaa !5
  %373 = getelementptr inbounds %struct.mz_zip_archive, ptr %372, i32 0, i32 8
  %374 = load ptr, ptr %373, align 8, !tbaa !16
  %375 = load ptr, ptr %5, align 8, !tbaa !5
  %376 = getelementptr inbounds %struct.mz_zip_archive, ptr %375, i32 0, i32 10
  %377 = load ptr, ptr %376, align 8, !tbaa !15
  %378 = load ptr, ptr %8, align 8, !tbaa !5
  call void %374(ptr noundef %377, ptr noundef %378)
  store ptr null, ptr %4, align 8
  store i32 1, ptr %11, align 4
  br label %382

379:                                              ; preds = %343
  br label %380

380:                                              ; preds = %379, %331, %327
  %381 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %381, ptr %4, align 8
  store i32 1, ptr %11, align 4
  br label %382

382:                                              ; preds = %380, %371, %304, %222, %168, %134, %85, %57, %41, %31, %20
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  %383 = load ptr, ptr %4, align 8
  ret ptr %383
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { alwaysinline 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 #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 = { 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 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 104}
!12 = !{!"", !13, i64 0, !13, i64 8, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !13, 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}
!13 = !{!"long", !7, i64 0}
!14 = !{!12, !6, i64 40}
!15 = !{!12, !6, i64 64}
!16 = !{!12, !6, i64 48}
!17 = !{!18, !20, i64 84}
!18 = !{!"", !6, i64 0, !10, i64 8, !10, i64 12, !13, i64 16, !13, i64 24, !13, i64 32, !13, i64 40, !13, i64 48, !13, i64 56, !19, i64 64, !6, i64 1176, !6, i64 1184, !13, i64 1192, !21, i64 1200, !10, i64 9576}
!19 = !{!"", !10, i64 0, !13, i64 8, !20, i64 16, !20, i64 18, !20, i64 20, !20, i64 22, !10, i64 24, !13, i64 32, !13, i64 40, !20, i64 48, !10, i64 52, !13, i64 56, !10, i64 64, !10, i64 68, !10, i64 72, !10, i64 76, !7, i64 80, !7, i64 592, !13, i64 1104}
!20 = !{!"short", !7, i64 0}
!21 = !{!"tinfl_decompressor_tag", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !7, i64 44, !13, i64 56, !13, i64 64, !7, i64 72, !7, i64 6216, !7, i64 7368, !7, i64 7496, !7, i64 7572, !7, i64 7860, !7, i64 7892, !7, i64 7911, !7, i64 7915}
!22 = !{!18, !20, i64 86}
!23 = !{!18, !6, i64 0}
!24 = !{!18, !10, i64 8}
!25 = !{!18, !10, i64 12}
!26 = !{!18, !10, i64 9576}
!27 = !{!18, !13, i64 24}
!28 = !{!18, !13, i64 48}
!29 = !{!18, !6, i64 1176}
!30 = !{!18, !6, i64 1184}
!31 = !{!18, !13, i64 1192}
!32 = !{!18, !13, i64 120}
!33 = !{!18, !13, i64 56}
!34 = !{!12, !6, i64 72}
!35 = !{!12, !6, i64 96}
!36 = !{!7, !7, i64 0}
!37 = !{!18, !13, i64 96}
!38 = !{!12, !13, i64 0}
!39 = !{!40, !6, i64 128}
!40 = !{!"mz_zip_internal_state_tag", !41, i64 0, !41, i64 32, !41, i64 64, !10, i64 96, !10, i64 100, !10, i64 104, !6, i64 112, !13, i64 120, !6, i64 128, !13, i64 136, !13, i64 144}
!41 = !{!"", !6, i64 0, !13, i64 8, !13, i64 16, !10, i64 24}
!42 = !{!18, !13, i64 32}
!43 = !{!18, !13, i64 16}
!44 = !{!18, !13, i64 40}
!45 = !{!18, !10, i64 1200}


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

; 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: alwaysinline nounwind uwtable
declare hidden i32 @mz_zip_set_error(ptr noundef, i32 noundef) local_unnamed_addr #1

; 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
define dso_local ptr @mz_zip_reader_extract_iter_new(ptr noundef %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #2 {
  %4 = alloca [8 x i32], align 16
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #5
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %138, label %5

5:                                                ; preds = %3
  %6 = getelementptr inbounds i8, ptr %0, i64 104
  %7 = load ptr, ptr %6, align 8, !tbaa !5
  %.not112 = icmp eq ptr %7, null
  br i1 %.not112, label %138, label %8

8:                                                ; preds = %5
  %9 = getelementptr inbounds i8, ptr %0, i64 40
  %10 = load ptr, ptr %9, align 8, !tbaa !12
  %11 = getelementptr inbounds i8, ptr %0, i64 64
  %12 = load ptr, ptr %11, align 8, !tbaa !13
  %13 = tail call ptr %10(ptr noundef %12, i64 noundef 1, i64 noundef 9584) #5
  %.not113 = icmp eq ptr %13, null
  br i1 %.not113, label %14, label %16

14:                                               ; preds = %8
  %15 = tail call i32 @mz_zip_set_error(ptr noundef nonnull %0, i32 noundef 16)
  br label %138

16:                                               ; preds = %8
  %17 = getelementptr inbounds i8, ptr %13, i64 64
  %18 = tail call i32 @mz_zip_reader_file_stat(ptr noundef nonnull %0, i32 noundef %1, ptr noundef nonnull %17)
  %.not114 = icmp eq i32 %18, 0
  br i1 %.not114, label %19, label %23

19:                                               ; preds = %16
  %20 = getelementptr inbounds i8, ptr %0, i64 48
  %21 = load ptr, ptr %20, align 8, !tbaa !14
  %22 = load ptr, ptr %11, align 8, !tbaa !13
  tail call void %21(ptr noundef %22, ptr noundef nonnull %13) #5
  br label %138

23:                                               ; preds = %16
  %24 = getelementptr inbounds i8, ptr %13, i64 84
  %25 = load i16, ptr %24, align 4, !tbaa !15
  %26 = and i16 %25, 97
  %.not115 = icmp eq i16 %26, 0
  br i1 %.not115, label %32, label %27

27:                                               ; preds = %23
  %28 = tail call i32 @mz_zip_set_error(ptr noundef nonnull %0, i32 noundef 5)
  %29 = getelementptr inbounds i8, ptr %0, i64 48
  %30 = load ptr, ptr %29, align 8, !tbaa !14
  %31 = load ptr, ptr %11, align 8, !tbaa !13
  tail call void %30(ptr noundef %31, ptr noundef nonnull %13) #5
  br label %138

32:                                               ; preds = %23
  %33 = and i32 %2, 1024
  %.not116 = icmp eq i32 %33, 0
  br i1 %.not116, label %34, label %42

34:                                               ; preds = %32
  %35 = getelementptr inbounds i8, ptr %13, i64 86
  %36 = load i16, ptr %35, align 2, !tbaa !20
  switch i16 %36, label %37 [
    i16 0, label %42
    i16 8, label %42
  ]

37:                                               ; preds = %34
  %38 = tail call i32 @mz_zip_set_error(ptr noundef nonnull %0, i32 noundef 4)
  %39 = getelementptr inbounds i8, ptr %0, i64 48
  %40 = load ptr, ptr %39, align 8, !tbaa !14
  %41 = load ptr, ptr %11, align 8, !tbaa !13
  tail call void %40(ptr noundef %41, ptr noundef nonnull %13) #5
  br label %138

42:                                               ; preds = %34, %34, %32
  store ptr %0, ptr %13, align 8, !tbaa !21
  %43 = getelementptr inbounds i8, ptr %13, i64 8
  store i32 %2, ptr %43, align 8, !tbaa !22
  %44 = getelementptr inbounds i8, ptr %13, i64 12
  store i32 0, ptr %44, align 4, !tbaa !23
  %45 = getelementptr inbounds i8, ptr %13, i64 9576
  store i32 0, ptr %45, align 8, !tbaa !24
  %46 = getelementptr inbounds i8, ptr %13, i64 24
  store i64 0, ptr %46, align 8, !tbaa !25
  %47 = getelementptr inbounds i8, ptr %13, i64 48
  store i64 0, ptr %47, align 8, !tbaa !26
  %48 = getelementptr inbounds i8, ptr %13, i64 1176
  %49 = getelementptr inbounds i8, ptr %13, i64 1184
  %50 = getelementptr inbounds i8, ptr %13, i64 120
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %48, i8 0, i64 24, i1 false)
  %51 = load i64, ptr %50, align 8, !tbaa !27
  %52 = getelementptr inbounds i8, ptr %13, i64 56
  store i64 %51, ptr %52, align 8, !tbaa !28
  %53 = getelementptr inbounds i8, ptr %0, i64 72
  %54 = load ptr, ptr %53, align 8, !tbaa !29
  %55 = getelementptr inbounds i8, ptr %0, i64 96
  %56 = load ptr, ptr %55, align 8, !tbaa !30
  %57 = call i64 %54(ptr noundef %56, i64 noundef %51, ptr noundef nonnull %4, i64 noundef 30) #5
  %.not119 = icmp eq i64 %57, 30
  br i1 %.not119, label %63, label %58

58:                                               ; preds = %42
  %59 = call i32 @mz_zip_set_error(ptr noundef nonnull %0, i32 noundef 20)
  %60 = getelementptr inbounds i8, ptr %0, i64 48
  %61 = load ptr, ptr %60, align 8, !tbaa !14
  %62 = load ptr, ptr %11, align 8, !tbaa !13
  call void %61(ptr noundef %62, ptr noundef nonnull %13) #5
  br label %138

63:                                               ; preds = %42
  %64 = load i32, ptr %4, align 16
  %.not120 = icmp eq i32 %64, 67324752
  br i1 %.not120, label %70, label %65

65:                                               ; preds = %63
  %66 = call i32 @mz_zip_set_error(ptr noundef nonnull %0, i32 noundef 9)
  %67 = getelementptr inbounds i8, ptr %0, i64 48
  %68 = load ptr, ptr %67, align 8, !tbaa !14
  %69 = load ptr, ptr %11, align 8, !tbaa !13
  call void %68(ptr noundef %69, ptr noundef nonnull %13) #5
  br label %138

70:                                               ; preds = %63
  %71 = getelementptr inbounds i8, ptr %4, i64 26
  %72 = load i16, ptr %71, align 2
  %73 = zext i16 %72 to i64
  %74 = add nuw nsw i64 %73, 30
  %75 = getelementptr inbounds i8, ptr %4, i64 28
  %76 = load i16, ptr %75, align 4
  %77 = zext i16 %76 to i64
  %78 = add nuw nsw i64 %74, %77
  %79 = load i64, ptr %52, align 8, !tbaa !28
  %80 = add i64 %78, %79
  store i64 %80, ptr %52, align 8, !tbaa !28
  %81 = getelementptr inbounds i8, ptr %13, i64 96
  %82 = load i64, ptr %81, align 8, !tbaa !31
  %83 = add i64 %80, %82
  %84 = load i64, ptr %0, align 8, !tbaa !32
  %85 = icmp ugt i64 %83, %84
  br i1 %85, label %86, label %91

86:                                               ; preds = %70
  %87 = call i32 @mz_zip_set_error(ptr noundef nonnull %0, i32 noundef 9)
  %88 = getelementptr inbounds i8, ptr %0, i64 48
  %89 = load ptr, ptr %88, align 8, !tbaa !14
  %90 = load ptr, ptr %11, align 8, !tbaa !13
  call void %89(ptr noundef %90, ptr noundef nonnull %13) #5
  br label %138

91:                                               ; preds = %70
  %92 = load ptr, ptr %6, align 8, !tbaa !5
  %93 = getelementptr inbounds i8, ptr %92, i64 128
  %94 = load ptr, ptr %93, align 8, !tbaa !33
  %.not121 = icmp eq ptr %94, null
  br i1 %.not121, label %98, label %95

95:                                               ; preds = %91
  %96 = getelementptr inbounds i8, ptr %94, i64 %80
  store ptr %96, ptr %48, align 8, !tbaa !36
  %97 = getelementptr inbounds i8, ptr %13, i64 32
  store i64 %82, ptr %97, align 8, !tbaa !37
  br label %115

98:                                               ; preds = %91
  br i1 %.not116, label %99, label %113

99:                                               ; preds = %98
  %100 = getelementptr inbounds i8, ptr %13, i64 86
  %101 = load i16, ptr %100, align 2, !tbaa !20
  %.not122 = icmp eq i16 %101, 0
  br i1 %.not122, label %113, label %102

102:                                              ; preds = %99
  %spec.select = call i64 @llvm.umin.i64(i64 %82, i64 65536)
  %103 = getelementptr inbounds i8, ptr %13, i64 16
  store i64 %spec.select, ptr %103, align 8, !tbaa !38
  %104 = load ptr, ptr %9, align 8, !tbaa !12
  %105 = load ptr, ptr %11, align 8, !tbaa !13
  %106 = call ptr %104(ptr noundef %105, i64 noundef 1, i64 noundef %spec.select) #5
  store ptr %106, ptr %48, align 8, !tbaa !36
  %107 = icmp eq ptr %106, null
  br i1 %107, label %108, label %._crit_edge

._crit_edge:                                      ; preds = %102
  %.pre = load i64, ptr %81, align 8, !tbaa !31
  br label %115

108:                                              ; preds = %102
  %109 = call i32 @mz_zip_set_error(ptr noundef nonnull %0, i32 noundef 16)
  %110 = getelementptr inbounds i8, ptr %0, i64 48
  %111 = load ptr, ptr %110, align 8, !tbaa !14
  %112 = load ptr, ptr %11, align 8, !tbaa !13
  call void %111(ptr noundef %112, ptr noundef nonnull %13) #5
  br label %138

113:                                              ; preds = %99, %98
  %114 = getelementptr inbounds i8, ptr %13, i64 16
  store i64 0, ptr %114, align 8, !tbaa !38
  br label %115

115:                                              ; preds = %113, %._crit_edge, %95
  %.sink128 = phi i64 [ 16, %95 ], [ 32, %._crit_edge ], [ 32, %113 ]
  %.sink126 = phi i64 [ %82, %95 ], [ 0, %._crit_edge ], [ 0, %113 ]
  %.sink = phi i64 [ %82, %95 ], [ %.pre, %._crit_edge ], [ %82, %113 ]
  %116 = getelementptr inbounds i8, ptr %13, i64 %.sink128
  store i64 %.sink126, ptr %116, align 8, !tbaa !39
  %117 = getelementptr inbounds i8, ptr %13, i64 40
  store i64 %.sink, ptr %117, align 8, !tbaa !40
  br i1 %.not116, label %118, label %138

118:                                              ; preds = %115
  %119 = getelementptr inbounds i8, ptr %13, i64 86
  %120 = load i16, ptr %119, align 2, !tbaa !20
  %.not123 = icmp eq i16 %120, 0
  br i1 %.not123, label %138, label %121

121:                                              ; preds = %118
  %122 = getelementptr inbounds i8, ptr %13, i64 1200
  store i32 0, ptr %122, align 8, !tbaa !41
  %123 = load ptr, ptr %9, align 8, !tbaa !12
  %124 = load ptr, ptr %11, align 8, !tbaa !13
  %125 = call ptr %123(ptr noundef %124, i64 noundef 1, i64 noundef 32768) #5
  store ptr %125, ptr %49, align 8, !tbaa !42
  %126 = icmp eq ptr %125, null
  br i1 %126, label %127, label %138

127:                                              ; preds = %121
  %128 = call i32 @mz_zip_set_error(ptr noundef nonnull %0, i32 noundef 16)
  %129 = load ptr, ptr %48, align 8, !tbaa !36
  %.not124 = icmp eq ptr %129, null
  br i1 %.not124, label %134, label %130

130:                                              ; preds = %127
  %131 = getelementptr inbounds i8, ptr %0, i64 48
  %132 = load ptr, ptr %131, align 8, !tbaa !14
  %133 = load ptr, ptr %11, align 8, !tbaa !13
  call void %132(ptr noundef %133, ptr noundef nonnull %129) #5
  br label %134

134:                                              ; preds = %130, %127
  %135 = getelementptr inbounds i8, ptr %0, i64 48
  %136 = load ptr, ptr %135, align 8, !tbaa !14
  %137 = load ptr, ptr %11, align 8, !tbaa !13
  call void %136(ptr noundef %137, ptr noundef nonnull %13) #5
  br label %138

138:                                              ; preds = %115, %118, %121, %3, %5, %134, %108, %86, %65, %58, %37, %27, %19, %14
  %.0 = phi ptr [ null, %27 ], [ null, %58 ], [ null, %65 ], [ null, %86 ], [ null, %134 ], [ null, %108 ], [ null, %37 ], [ null, %19 ], [ null, %14 ], [ null, %5 ], [ null, %3 ], [ %13, %121 ], [ %13, %118 ], [ %13, %115 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #5
  ret ptr %.0
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.umin.i64(i64, i64) #3

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { alwaysinline 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 #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 nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { 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, !11, i64 104}
!6 = !{!"", !7, i64 0, !7, i64 8, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !7, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !11, i64 88, !11, i64 96, !11, i64 104}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!6, !11, i64 40}
!13 = !{!6, !11, i64 64}
!14 = !{!6, !11, i64 48}
!15 = !{!16, !18, i64 84}
!16 = !{!"", !11, i64 0, !10, i64 8, !10, i64 12, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !17, i64 64, !11, i64 1176, !11, i64 1184, !7, i64 1192, !19, i64 1200, !10, i64 9576}
!17 = !{!"", !10, i64 0, !7, i64 8, !18, i64 16, !18, i64 18, !18, i64 20, !18, i64 22, !10, i64 24, !7, i64 32, !7, i64 40, !18, i64 48, !10, i64 52, !7, i64 56, !10, i64 64, !10, i64 68, !10, i64 72, !10, i64 76, !8, i64 80, !8, i64 592, !7, i64 1104}
!18 = !{!"short", !8, i64 0}
!19 = !{!"tinfl_decompressor_tag", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !8, i64 44, !7, i64 56, !7, i64 64, !8, i64 72, !8, i64 6216, !8, i64 7368, !8, i64 7496, !8, i64 7572, !8, i64 7860, !8, i64 7892, !8, i64 7911, !8, i64 7915}
!20 = !{!16, !18, i64 86}
!21 = !{!16, !11, i64 0}
!22 = !{!16, !10, i64 8}
!23 = !{!16, !10, i64 12}
!24 = !{!16, !10, i64 9576}
!25 = !{!16, !7, i64 24}
!26 = !{!16, !7, i64 48}
!27 = !{!16, !7, i64 120}
!28 = !{!16, !7, i64 56}
!29 = !{!6, !11, i64 72}
!30 = !{!6, !11, i64 96}
!31 = !{!16, !7, i64 96}
!32 = !{!6, !7, i64 0}
!33 = !{!34, !11, i64 128}
!34 = !{!"mz_zip_internal_state_tag", !35, i64 0, !35, i64 32, !35, i64 64, !10, i64 96, !10, i64 100, !10, i64 104, !11, i64 112, !7, i64 120, !11, i64 128, !7, i64 136, !7, i64 144}
!35 = !{!"", !11, i64 0, !7, i64 8, !7, i64 16, !10, i64 24}
!36 = !{!16, !11, i64 1176}
!37 = !{!16, !7, i64 32}
!38 = !{!16, !7, i64 16}
!39 = !{!7, !7, i64 0}
!40 = !{!16, !7, i64 40}
!41 = !{!16, !10, i64 1200}
!42 = !{!16, !11, i64 1184}


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