; LLVM IR from wmcnamara/crynn :: lib/thirdparty/assimp/contrib/zlib/contrib/minizip (unzip)

; 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.unz64_s = type { %struct.zlib_filefunc64_32_def_s, i32, ptr, %struct.unz_global_info64_s, i64, i64, i64, i64, i64, i64, i64, %struct.unz_file_info64_s, %struct.unz_file_info64_internal_s, ptr, i32, i32 }
%struct.zlib_filefunc64_32_def_s = type { %struct.zlib_filefunc64_def_s, ptr, ptr, ptr }
%struct.zlib_filefunc64_def_s = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.unz_global_info64_s = type { i64, i64 }
%struct.unz_file_info64_s = type { i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, %struct.tm_unz_s }
%struct.tm_unz_s = type { i32, i32, i32, i32, i32, i32 }
%struct.unz_file_info64_internal_s = type { i64 }
%struct.file_in_zip64_read_info_s = type { ptr, %struct.z_stream_s, i64, i64, i64, i32, i64, i64, i64, i64, i64, i64, %struct.zlib_filefunc64_32_def_s, ptr, i64, i64, i32 }
%struct.z_stream_s = type { ptr, i32, i64, ptr, i32, i64, ptr, ptr, ptr, ptr, ptr, i32, i64, i64 }

; 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 uwtable
define dso_local i32 @unzReadCurrentFile(ptr noundef %0, ptr noundef %1, i32 noundef %2) #1 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca ptr, align 8
  %19 = alloca i64, align 8
  %20 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  store i32 0, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  store i32 0, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  %21 = load ptr, ptr %5, align 8, !tbaa !5
  %22 = icmp eq ptr %21, null
  br i1 %22, label %23, label %24

23:                                               ; preds = %3
  store i32 -102, ptr %4, align 4
  store i32 1, ptr %12, align 4
  br label %429

24:                                               ; preds = %3
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %25, ptr %10, align 8, !tbaa !5
  %26 = load ptr, ptr %10, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.unz64_s, ptr %26, i32 0, i32 13
  %28 = load ptr, ptr %27, align 8, !tbaa !11
  store ptr %28, ptr %11, align 8, !tbaa !5
  %29 = load ptr, ptr %11, align 8, !tbaa !5
  %30 = icmp eq ptr %29, null
  br i1 %30, label %31, label %32

31:                                               ; preds = %24
  store i32 -102, ptr %4, align 4
  store i32 1, ptr %12, align 4
  br label %429

32:                                               ; preds = %24
  %33 = load ptr, ptr %11, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %33, i32 0, i32 0
  %35 = load ptr, ptr %34, align 8, !tbaa !21
  %36 = icmp eq ptr %35, null
  br i1 %36, label %37, label %38

37:                                               ; preds = %32
  store i32 -100, ptr %4, align 4
  store i32 1, ptr %12, align 4
  br label %429

38:                                               ; preds = %32
  %39 = load i32, ptr %7, align 4, !tbaa !9
  %40 = icmp eq i32 %39, 0
  br i1 %40, label %41, label %42

41:                                               ; preds = %38
  store i32 0, ptr %4, align 4
  store i32 1, ptr %12, align 4
  br label %429

42:                                               ; preds = %38
  %43 = load ptr, ptr %6, align 8, !tbaa !5
  %44 = load ptr, ptr %11, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %44, i32 0, i32 1
  %46 = getelementptr inbounds %struct.z_stream_s, ptr %45, i32 0, i32 3
  store ptr %43, ptr %46, align 8, !tbaa !24
  %47 = load i32, ptr %7, align 4, !tbaa !9
  %48 = load ptr, ptr %11, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %48, i32 0, i32 1
  %50 = getelementptr inbounds %struct.z_stream_s, ptr %49, i32 0, i32 4
  store i32 %47, ptr %50, align 8, !tbaa !25
  %51 = load i32, ptr %7, align 4, !tbaa !9
  %52 = zext i32 %51 to i64
  %53 = load ptr, ptr %11, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %53, i32 0, i32 11
  %55 = load i64, ptr %54, align 8, !tbaa !26
  %56 = icmp ugt i64 %52, %55
  br i1 %56, label %57, label %70

57:                                               ; preds = %42
  %58 = load ptr, ptr %11, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %58, i32 0, i32 16
  %60 = load i32, ptr %59, align 8, !tbaa !27
  %61 = icmp ne i32 %60, 0
  br i1 %61, label %70, label %62

62:                                               ; preds = %57
  %63 = load ptr, ptr %11, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %63, i32 0, i32 11
  %65 = load i64, ptr %64, align 8, !tbaa !26
  %66 = trunc i64 %65 to i32
  %67 = load ptr, ptr %11, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %67, i32 0, i32 1
  %69 = getelementptr inbounds %struct.z_stream_s, ptr %68, i32 0, i32 4
  store i32 %66, ptr %69, align 8, !tbaa !25
  br label %70

70:                                               ; preds = %62, %57, %42
  %71 = load i32, ptr %7, align 4, !tbaa !9
  %72 = zext i32 %71 to i64
  %73 = load ptr, ptr %11, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %73, i32 0, i32 10
  %75 = load i64, ptr %74, align 8, !tbaa !28
  %76 = load ptr, ptr %11, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %76, i32 0, i32 1
  %78 = getelementptr inbounds %struct.z_stream_s, ptr %77, i32 0, i32 1
  %79 = load i32, ptr %78, align 8, !tbaa !29
  %80 = zext i32 %79 to i64
  %81 = add i64 %75, %80
  %82 = icmp ugt i64 %72, %81
  br i1 %82, label %83, label %101

83:                                               ; preds = %70
  %84 = load ptr, ptr %11, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %84, i32 0, i32 16
  %86 = load i32, ptr %85, align 8, !tbaa !27
  %87 = icmp ne i32 %86, 0
  br i1 %87, label %88, label %101

88:                                               ; preds = %83
  %89 = load ptr, ptr %11, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %89, i32 0, i32 10
  %91 = load i64, ptr %90, align 8, !tbaa !28
  %92 = trunc i64 %91 to i32
  %93 = load ptr, ptr %11, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %93, i32 0, i32 1
  %95 = getelementptr inbounds %struct.z_stream_s, ptr %94, i32 0, i32 1
  %96 = load i32, ptr %95, align 8, !tbaa !29
  %97 = add i32 %92, %96
  %98 = load ptr, ptr %11, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %98, i32 0, i32 1
  %100 = getelementptr inbounds %struct.z_stream_s, ptr %99, i32 0, i32 4
  store i32 %97, ptr %100, align 8, !tbaa !25
  br label %101

101:                                              ; preds = %88, %83, %70
  br label %102

102:                                              ; preds = %421, %101
  %103 = load ptr, ptr %11, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %103, i32 0, i32 1
  %105 = getelementptr inbounds %struct.z_stream_s, ptr %104, i32 0, i32 4
  %106 = load i32, ptr %105, align 8, !tbaa !25
  %107 = icmp ugt i32 %106, 0
  br i1 %107, label %108, label %422

108:                                              ; preds = %102
  %109 = load ptr, ptr %11, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %109, i32 0, i32 1
  %111 = getelementptr inbounds %struct.z_stream_s, ptr %110, i32 0, i32 1
  %112 = load i32, ptr %111, align 8, !tbaa !29
  %113 = icmp eq i32 %112, 0
  br i1 %113, label %114, label %201

114:                                              ; preds = %108
  %115 = load ptr, ptr %11, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %115, i32 0, i32 10
  %117 = load i64, ptr %116, align 8, !tbaa !28
  %118 = icmp ugt i64 %117, 0
  br i1 %118, label %119, label %201

119:                                              ; preds = %114
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
  store i32 16384, ptr %13, align 4, !tbaa !9
  %120 = load ptr, ptr %11, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %120, i32 0, i32 10
  %122 = load i64, ptr %121, align 8, !tbaa !28
  %123 = load i32, ptr %13, align 4, !tbaa !9
  %124 = zext i32 %123 to i64
  %125 = icmp ult i64 %122, %124
  br i1 %125, label %126, label %131

126:                                              ; preds = %119
  %127 = load ptr, ptr %11, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %127, i32 0, i32 10
  %129 = load i64, ptr %128, align 8, !tbaa !28
  %130 = trunc i64 %129 to i32
  store i32 %130, ptr %13, align 4, !tbaa !9
  br label %131

131:                                              ; preds = %126, %119
  %132 = load i32, ptr %13, align 4, !tbaa !9
  %133 = icmp eq i32 %132, 0
  br i1 %133, label %134, label %135

134:                                              ; preds = %131
  store i32 0, ptr %4, align 4
  store i32 1, ptr %12, align 4
  br label %198

135:                                              ; preds = %131
  %136 = load ptr, ptr %11, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %136, i32 0, i32 12
  %138 = load ptr, ptr %11, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %138, i32 0, i32 13
  %140 = load ptr, ptr %139, align 8, !tbaa !30
  %141 = load ptr, ptr %11, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %141, i32 0, i32 2
  %143 = load i64, ptr %142, align 8, !tbaa !31
  %144 = load ptr, ptr %11, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %144, i32 0, i32 15
  %146 = load i64, ptr %145, align 8, !tbaa !32
  %147 = add i64 %143, %146
  %148 = call i64 @call_zseek64(ptr noundef %137, ptr noundef %140, i64 noundef %147, i32 noundef 0)
  %149 = icmp ne i64 %148, 0
  br i1 %149, label %150, label %151

150:                                              ; preds = %135
  store i32 -1, ptr %4, align 4
  store i32 1, ptr %12, align 4
  br label %198

151:                                              ; preds = %135
  %152 = load ptr, ptr %11, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %152, i32 0, i32 12
  %154 = getelementptr inbounds %struct.zlib_filefunc64_32_def_s, ptr %153, i32 0, i32 0
  %155 = getelementptr inbounds %struct.zlib_filefunc64_def_s, ptr %154, i32 0, i32 1
  %156 = load ptr, ptr %155, align 8, !tbaa !33
  %157 = load ptr, ptr %11, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %157, i32 0, i32 12
  %159 = getelementptr inbounds %struct.zlib_filefunc64_32_def_s, ptr %158, i32 0, i32 0
  %160 = getelementptr inbounds %struct.zlib_filefunc64_def_s, ptr %159, i32 0, i32 7
  %161 = load ptr, ptr %160, align 8, !tbaa !34
  %162 = load ptr, ptr %11, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %162, i32 0, i32 13
  %164 = load ptr, ptr %163, align 8, !tbaa !30
  %165 = load ptr, ptr %11, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %165, i32 0, i32 0
  %167 = load ptr, ptr %166, align 8, !tbaa !21
  %168 = load i32, ptr %13, align 4, !tbaa !9
  %169 = zext i32 %168 to i64
  %170 = call i64 %156(ptr noundef %161, ptr noundef %164, ptr noundef %167, i64 noundef %169)
  %171 = load i32, ptr %13, align 4, !tbaa !9
  %172 = zext i32 %171 to i64
  %173 = icmp ne i64 %170, %172
  br i1 %173, label %174, label %175

174:                                              ; preds = %151
  store i32 -1, ptr %4, align 4
  store i32 1, ptr %12, align 4
  br label %198

175:                                              ; preds = %151
  %176 = load i32, ptr %13, align 4, !tbaa !9
  %177 = zext i32 %176 to i64
  %178 = load ptr, ptr %11, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %178, i32 0, i32 2
  %180 = load i64, ptr %179, align 8, !tbaa !31
  %181 = add i64 %180, %177
  store i64 %181, ptr %179, align 8, !tbaa !31
  %182 = load i32, ptr %13, align 4, !tbaa !9
  %183 = zext i32 %182 to i64
  %184 = load ptr, ptr %11, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %184, i32 0, i32 10
  %186 = load i64, ptr %185, align 8, !tbaa !28
  %187 = sub i64 %186, %183
  store i64 %187, ptr %185, align 8, !tbaa !28
  %188 = load ptr, ptr %11, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %188, i32 0, i32 0
  %190 = load ptr, ptr %189, align 8, !tbaa !21
  %191 = load ptr, ptr %11, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %191, i32 0, i32 1
  %193 = getelementptr inbounds %struct.z_stream_s, ptr %192, i32 0, i32 0
  store ptr %190, ptr %193, align 8, !tbaa !35
  %194 = load i32, ptr %13, align 4, !tbaa !9
  %195 = load ptr, ptr %11, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %195, i32 0, i32 1
  %197 = getelementptr inbounds %struct.z_stream_s, ptr %196, i32 0, i32 1
  store i32 %194, ptr %197, align 8, !tbaa !29
  store i32 0, ptr %12, align 4
  br label %198

198:                                              ; preds = %175, %174, %150, %134
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  %199 = load i32, ptr %12, align 4
  switch i32 %199, label %429 [
    i32 0, label %200
  ]

200:                                              ; preds = %198
  br label %201

201:                                              ; preds = %200, %114, %108
  %202 = load ptr, ptr %11, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %202, i32 0, i32 14
  %204 = load i64, ptr %203, align 8, !tbaa !36
  %205 = icmp eq i64 %204, 0
  br i1 %205, label %211, label %206

206:                                              ; preds = %201
  %207 = load ptr, ptr %11, align 8, !tbaa !5
  %208 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %207, i32 0, i32 16
  %209 = load i32, ptr %208, align 8, !tbaa !27
  %210 = icmp ne i32 %209, 0
  br i1 %210, label %211, label %339

211:                                              ; preds = %206, %201
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #3
  %212 = load ptr, ptr %11, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %212, i32 0, i32 1
  %214 = getelementptr inbounds %struct.z_stream_s, ptr %213, i32 0, i32 1
  %215 = load i32, ptr %214, align 8, !tbaa !29
  %216 = icmp eq i32 %215, 0
  br i1 %216, label %217, label %230

217:                                              ; preds = %211
  %218 = load ptr, ptr %11, align 8, !tbaa !5
  %219 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %218, i32 0, i32 10
  %220 = load i64, ptr %219, align 8, !tbaa !28
  %221 = icmp eq i64 %220, 0
  br i1 %221, label %222, label %230

222:                                              ; preds = %217
  %223 = load i32, ptr %9, align 4, !tbaa !9
  %224 = icmp eq i32 %223, 0
  br i1 %224, label %225, label %226

225:                                              ; preds = %222
  br label %228

226:                                              ; preds = %222
  %227 = load i32, ptr %9, align 4, !tbaa !9
  br label %228

228:                                              ; preds = %226, %225
  %229 = phi i32 [ 0, %225 ], [ %227, %226 ]
  store i32 %229, ptr %4, align 4
  store i32 1, ptr %12, align 4
  br label %336

230:                                              ; preds = %217, %211
  %231 = load ptr, ptr %11, align 8, !tbaa !5
  %232 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %231, i32 0, i32 1
  %233 = getelementptr inbounds %struct.z_stream_s, ptr %232, i32 0, i32 4
  %234 = load i32, ptr %233, align 8, !tbaa !25
  %235 = load ptr, ptr %11, align 8, !tbaa !5
  %236 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %235, i32 0, i32 1
  %237 = getelementptr inbounds %struct.z_stream_s, ptr %236, i32 0, i32 1
  %238 = load i32, ptr %237, align 8, !tbaa !29
  %239 = icmp ult i32 %234, %238
  br i1 %239, label %240, label %245

240:                                              ; preds = %230
  %241 = load ptr, ptr %11, align 8, !tbaa !5
  %242 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %241, i32 0, i32 1
  %243 = getelementptr inbounds %struct.z_stream_s, ptr %242, i32 0, i32 4
  %244 = load i32, ptr %243, align 8, !tbaa !25
  store i32 %244, ptr %14, align 4, !tbaa !9
  br label %250

245:                                              ; preds = %230
  %246 = load ptr, ptr %11, align 8, !tbaa !5
  %247 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %246, i32 0, i32 1
  %248 = getelementptr inbounds %struct.z_stream_s, ptr %247, i32 0, i32 1
  %249 = load i32, ptr %248, align 8, !tbaa !29
  store i32 %249, ptr %14, align 4, !tbaa !9
  br label %250

250:                                              ; preds = %245, %240
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %251

251:                                              ; preds = %271, %250
  %252 = load i32, ptr %15, align 4, !tbaa !9
  %253 = load i32, ptr %14, align 4, !tbaa !9
  %254 = icmp ult i32 %252, %253
  br i1 %254, label %255, label %274

255:                                              ; preds = %251
  %256 = load ptr, ptr %11, align 8, !tbaa !5
  %257 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %256, i32 0, i32 1
  %258 = getelementptr inbounds %struct.z_stream_s, ptr %257, i32 0, i32 0
  %259 = load ptr, ptr %258, align 8, !tbaa !35
  %260 = load i32, ptr %15, align 4, !tbaa !9
  %261 = zext i32 %260 to i64
  %262 = getelementptr inbounds i8, ptr %259, i64 %261
  %263 = load i8, ptr %262, align 1, !tbaa !37
  %264 = load ptr, ptr %11, align 8, !tbaa !5
  %265 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %264, i32 0, i32 1
  %266 = getelementptr inbounds %struct.z_stream_s, ptr %265, i32 0, i32 3
  %267 = load ptr, ptr %266, align 8, !tbaa !24
  %268 = load i32, ptr %15, align 4, !tbaa !9
  %269 = zext i32 %268 to i64
  %270 = getelementptr inbounds i8, ptr %267, i64 %269
  store i8 %263, ptr %270, align 1, !tbaa !37
  br label %271

271:                                              ; preds = %255
  %272 = load i32, ptr %15, align 4, !tbaa !9
  %273 = add i32 %272, 1
  store i32 %273, ptr %15, align 4, !tbaa !9
  br label %251, !llvm.loop !38

274:                                              ; preds = %251
  %275 = load ptr, ptr %11, align 8, !tbaa !5
  %276 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %275, i32 0, i32 7
  %277 = load i64, ptr %276, align 8, !tbaa !40
  %278 = load i32, ptr %14, align 4, !tbaa !9
  %279 = zext i32 %278 to i64
  %280 = add i64 %277, %279
  %281 = load ptr, ptr %11, align 8, !tbaa !5
  %282 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %281, i32 0, i32 7
  store i64 %280, ptr %282, align 8, !tbaa !40
  %283 = load ptr, ptr %11, align 8, !tbaa !5
  %284 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %283, i32 0, i32 8
  %285 = load i64, ptr %284, align 8, !tbaa !41
  %286 = load ptr, ptr %11, align 8, !tbaa !5
  %287 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %286, i32 0, i32 1
  %288 = getelementptr inbounds %struct.z_stream_s, ptr %287, i32 0, i32 3
  %289 = load ptr, ptr %288, align 8, !tbaa !24
  %290 = load i32, ptr %14, align 4, !tbaa !9
  %291 = call i64 @crc32(i64 noundef %285, ptr noundef %289, i32 noundef %290)
  %292 = load ptr, ptr %11, align 8, !tbaa !5
  %293 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %292, i32 0, i32 8
  store i64 %291, ptr %293, align 8, !tbaa !41
  %294 = load i32, ptr %14, align 4, !tbaa !9
  %295 = zext i32 %294 to i64
  %296 = load ptr, ptr %11, align 8, !tbaa !5
  %297 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %296, i32 0, i32 11
  %298 = load i64, ptr %297, align 8, !tbaa !26
  %299 = sub i64 %298, %295
  store i64 %299, ptr %297, align 8, !tbaa !26
  %300 = load i32, ptr %14, align 4, !tbaa !9
  %301 = load ptr, ptr %11, align 8, !tbaa !5
  %302 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %301, i32 0, i32 1
  %303 = getelementptr inbounds %struct.z_stream_s, ptr %302, i32 0, i32 1
  %304 = load i32, ptr %303, align 8, !tbaa !29
  %305 = sub i32 %304, %300
  store i32 %305, ptr %303, align 8, !tbaa !29
  %306 = load i32, ptr %14, align 4, !tbaa !9
  %307 = load ptr, ptr %11, align 8, !tbaa !5
  %308 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %307, i32 0, i32 1
  %309 = getelementptr inbounds %struct.z_stream_s, ptr %308, i32 0, i32 4
  %310 = load i32, ptr %309, align 8, !tbaa !25
  %311 = sub i32 %310, %306
  store i32 %311, ptr %309, align 8, !tbaa !25
  %312 = load i32, ptr %14, align 4, !tbaa !9
  %313 = load ptr, ptr %11, align 8, !tbaa !5
  %314 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %313, i32 0, i32 1
  %315 = getelementptr inbounds %struct.z_stream_s, ptr %314, i32 0, i32 3
  %316 = load ptr, ptr %315, align 8, !tbaa !24
  %317 = zext i32 %312 to i64
  %318 = getelementptr inbounds i8, ptr %316, i64 %317
  store ptr %318, ptr %315, align 8, !tbaa !24
  %319 = load i32, ptr %14, align 4, !tbaa !9
  %320 = load ptr, ptr %11, align 8, !tbaa !5
  %321 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %320, i32 0, i32 1
  %322 = getelementptr inbounds %struct.z_stream_s, ptr %321, i32 0, i32 0
  %323 = load ptr, ptr %322, align 8, !tbaa !35
  %324 = zext i32 %319 to i64
  %325 = getelementptr inbounds i8, ptr %323, i64 %324
  store ptr %325, ptr %322, align 8, !tbaa !35
  %326 = load i32, ptr %14, align 4, !tbaa !9
  %327 = zext i32 %326 to i64
  %328 = load ptr, ptr %11, align 8, !tbaa !5
  %329 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %328, i32 0, i32 1
  %330 = getelementptr inbounds %struct.z_stream_s, ptr %329, i32 0, i32 5
  %331 = load i64, ptr %330, align 8, !tbaa !42
  %332 = add i64 %331, %327
  store i64 %332, ptr %330, align 8, !tbaa !42
  %333 = load i32, ptr %14, align 4, !tbaa !9
  %334 = load i32, ptr %9, align 4, !tbaa !9
  %335 = add i32 %334, %333
  store i32 %335, ptr %9, align 4, !tbaa !9
  store i32 0, ptr %12, align 4
  br label %336

336:                                              ; preds = %274, %228
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  %337 = load i32, ptr %12, align 4
  switch i32 %337, label %429 [
    i32 0, label %338
  ]

338:                                              ; preds = %336
  br label %421

339:                                              ; preds = %206
  %340 = load ptr, ptr %11, align 8, !tbaa !5
  %341 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %340, i32 0, i32 14
  %342 = load i64, ptr %341, align 8, !tbaa !36
  %343 = icmp eq i64 %342, 12
  br i1 %343, label %344, label %345

344:                                              ; preds = %339
  br label %420

345:                                              ; preds = %339
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #3
  store i32 2, ptr %20, align 4, !tbaa !9
  %346 = load ptr, ptr %11, align 8, !tbaa !5
  %347 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %346, i32 0, i32 1
  %348 = getelementptr inbounds %struct.z_stream_s, ptr %347, i32 0, i32 5
  %349 = load i64, ptr %348, align 8, !tbaa !42
  store i64 %349, ptr %16, align 8, !tbaa !43
  %350 = load ptr, ptr %11, align 8, !tbaa !5
  %351 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %350, i32 0, i32 1
  %352 = getelementptr inbounds %struct.z_stream_s, ptr %351, i32 0, i32 3
  %353 = load ptr, ptr %352, align 8, !tbaa !24
  store ptr %353, ptr %18, align 8, !tbaa !5
  %354 = load ptr, ptr %11, align 8, !tbaa !5
  %355 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %354, i32 0, i32 1
  %356 = load i32, ptr %20, align 4, !tbaa !9
  %357 = call i32 @inflate(ptr noundef %355, i32 noundef %356)
  store i32 %357, ptr %8, align 4, !tbaa !9
  %358 = load i32, ptr %8, align 4, !tbaa !9
  %359 = icmp sge i32 %358, 0
  br i1 %359, label %360, label %367

360:                                              ; preds = %345
  %361 = load ptr, ptr %11, align 8, !tbaa !5
  %362 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %361, i32 0, i32 1
  %363 = getelementptr inbounds %struct.z_stream_s, ptr %362, i32 0, i32 6
  %364 = load ptr, ptr %363, align 8, !tbaa !44
  %365 = icmp ne ptr %364, null
  br i1 %365, label %366, label %367

366:                                              ; preds = %360
  store i32 -3, ptr %8, align 4, !tbaa !9
  br label %367

367:                                              ; preds = %366, %360, %345
  %368 = load ptr, ptr %11, align 8, !tbaa !5
  %369 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %368, i32 0, i32 1
  %370 = getelementptr inbounds %struct.z_stream_s, ptr %369, i32 0, i32 5
  %371 = load i64, ptr %370, align 8, !tbaa !42
  store i64 %371, ptr %17, align 8, !tbaa !43
  %372 = load i64, ptr %17, align 8, !tbaa !43
  %373 = load i64, ptr %16, align 8, !tbaa !43
  %374 = sub i64 %372, %373
  store i64 %374, ptr %19, align 8, !tbaa !43
  %375 = load ptr, ptr %11, align 8, !tbaa !5
  %376 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %375, i32 0, i32 7
  %377 = load i64, ptr %376, align 8, !tbaa !40
  %378 = load i64, ptr %19, align 8, !tbaa !43
  %379 = add i64 %377, %378
  %380 = load ptr, ptr %11, align 8, !tbaa !5
  %381 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %380, i32 0, i32 7
  store i64 %379, ptr %381, align 8, !tbaa !40
  %382 = load ptr, ptr %11, align 8, !tbaa !5
  %383 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %382, i32 0, i32 8
  %384 = load i64, ptr %383, align 8, !tbaa !41
  %385 = load ptr, ptr %18, align 8, !tbaa !5
  %386 = load i64, ptr %19, align 8, !tbaa !43
  %387 = trunc i64 %386 to i32
  %388 = call i64 @crc32(i64 noundef %384, ptr noundef %385, i32 noundef %387)
  %389 = load ptr, ptr %11, align 8, !tbaa !5
  %390 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %389, i32 0, i32 8
  store i64 %388, ptr %390, align 8, !tbaa !41
  %391 = load i64, ptr %19, align 8, !tbaa !43
  %392 = load ptr, ptr %11, align 8, !tbaa !5
  %393 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %392, i32 0, i32 11
  %394 = load i64, ptr %393, align 8, !tbaa !26
  %395 = sub i64 %394, %391
  store i64 %395, ptr %393, align 8, !tbaa !26
  %396 = load i64, ptr %17, align 8, !tbaa !43
  %397 = load i64, ptr %16, align 8, !tbaa !43
  %398 = sub i64 %396, %397
  %399 = trunc i64 %398 to i32
  %400 = load i32, ptr %9, align 4, !tbaa !9
  %401 = add i32 %400, %399
  store i32 %401, ptr %9, align 4, !tbaa !9
  %402 = load i32, ptr %8, align 4, !tbaa !9
  %403 = icmp eq i32 %402, 1
  br i1 %403, label %404, label %412

404:                                              ; preds = %367
  %405 = load i32, ptr %9, align 4, !tbaa !9
  %406 = icmp eq i32 %405, 0
  br i1 %406, label %407, label %408

407:                                              ; preds = %404
  br label %410

408:                                              ; preds = %404
  %409 = load i32, ptr %9, align 4, !tbaa !9
  br label %410

410:                                              ; preds = %408, %407
  %411 = phi i32 [ 0, %407 ], [ %409, %408 ]
  store i32 %411, ptr %4, align 4
  store i32 1, ptr %12, align 4
  br label %417

412:                                              ; preds = %367
  %413 = load i32, ptr %8, align 4, !tbaa !9
  %414 = icmp ne i32 %413, 0
  br i1 %414, label %415, label %416

415:                                              ; preds = %412
  store i32 3, ptr %12, align 4
  br label %417

416:                                              ; preds = %412
  store i32 0, ptr %12, align 4
  br label %417

417:                                              ; preds = %416, %415, %410
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  %418 = load i32, ptr %12, align 4
  switch i32 %418, label %429 [
    i32 0, label %419
    i32 3, label %422
  ]

419:                                              ; preds = %417
  br label %420

420:                                              ; preds = %419, %344
  br label %421

421:                                              ; preds = %420, %338
  br label %102, !llvm.loop !45

422:                                              ; preds = %417, %102
  %423 = load i32, ptr %8, align 4, !tbaa !9
  %424 = icmp eq i32 %423, 0
  br i1 %424, label %425, label %427

425:                                              ; preds = %422
  %426 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %426, ptr %4, align 4
  store i32 1, ptr %12, align 4
  br label %429

427:                                              ; preds = %422
  %428 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %428, ptr %4, align 4
  store i32 1, ptr %12, align 4
  br label %429

429:                                              ; preds = %427, %425, %417, %336, %198, %41, %37, %31, %23
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  %430 = load i32, ptr %4, align 4
  ret i32 %430
}

declare i64 @call_zseek64(ptr noundef, ptr noundef, i64 noundef, i32 noundef) #2

declare i64 @crc32(i64 noundef, ptr noundef, i32 noundef) #2

declare i32 @inflate(ptr noundef, i32 noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { "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 320}
!12 = !{!"", !13, i64 0, !10, i64 88, !6, i64 96, !15, i64 104, !16, i64 120, !16, i64 128, !16, i64 136, !16, i64 144, !16, i64 152, !16, i64 160, !16, i64 168, !18, i64 176, !20, i64 312, !6, i64 320, !10, i64 328, !10, i64 332}
!13 = !{!"zlib_filefunc64_32_def_s", !14, i64 0, !6, i64 64, !6, i64 72, !6, i64 80}
!14 = !{!"zlib_filefunc64_def_s", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56}
!15 = !{!"unz_global_info64_s", !16, i64 0, !17, i64 8}
!16 = !{!"long long", !7, i64 0}
!17 = !{!"long", !7, i64 0}
!18 = !{!"unz_file_info64_s", !17, i64 0, !17, i64 8, !17, i64 16, !17, i64 24, !17, i64 32, !17, i64 40, !16, i64 48, !16, i64 56, !17, i64 64, !17, i64 72, !17, i64 80, !17, i64 88, !17, i64 96, !17, i64 104, !19, i64 112}
!19 = !{!"tm_unz_s", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20}
!20 = !{!"unz_file_info64_internal_s", !16, i64 0}
!21 = !{!22, !6, i64 0}
!22 = !{!"", !6, i64 0, !23, i64 8, !16, i64 120, !17, i64 128, !16, i64 136, !10, i64 144, !16, i64 152, !16, i64 160, !17, i64 168, !17, i64 176, !16, i64 184, !16, i64 192, !13, i64 200, !6, i64 288, !17, i64 296, !16, i64 304, !10, i64 312}
!23 = !{!"z_stream_s", !6, i64 0, !10, i64 8, !17, i64 16, !6, i64 24, !10, i64 32, !17, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !10, i64 88, !17, i64 96, !17, i64 104}
!24 = !{!22, !6, i64 32}
!25 = !{!22, !10, i64 40}
!26 = !{!22, !16, i64 192}
!27 = !{!22, !10, i64 312}
!28 = !{!22, !16, i64 184}
!29 = !{!22, !10, i64 16}
!30 = !{!22, !6, i64 288}
!31 = !{!22, !16, i64 120}
!32 = !{!22, !16, i64 304}
!33 = !{!22, !6, i64 208}
!34 = !{!22, !6, i64 256}
!35 = !{!22, !6, i64 8}
!36 = !{!22, !17, i64 296}
!37 = !{!7, !7, i64 0}
!38 = distinct !{!38, !39}
!39 = !{!"llvm.loop.mustprogress"}
!40 = !{!22, !16, i64 160}
!41 = !{!22, !17, i64 168}
!42 = !{!22, !17, i64 48}
!43 = !{!16, !16, i64 0}
!44 = !{!22, !6, i64 56}
!45 = distinct !{!45, !39}


; 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: nounwind uwtable
define dso_local i32 @unzReadCurrentFile(ptr noundef readonly %0, ptr noundef %1, i32 noundef %2) local_unnamed_addr #0 {
  %4 = icmp eq ptr %0, null
  br i1 %4, label %.thread, label %5

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

9:                                                ; preds = %5
  %10 = load ptr, ptr %7, align 8, !tbaa !19
  %11 = icmp eq ptr %10, null
  br i1 %11, label %.thread, label %12

12:                                               ; preds = %9
  %13 = icmp eq i32 %2, 0
  br i1 %13, label %.thread, label %14

14:                                               ; preds = %12
  %15 = getelementptr inbounds i8, ptr %7, i64 8
  %16 = getelementptr inbounds i8, ptr %7, i64 32
  store ptr %1, ptr %16, align 8, !tbaa !22
  %17 = getelementptr inbounds i8, ptr %7, i64 40
  store i32 %2, ptr %17, align 8, !tbaa !23
  %18 = zext i32 %2 to i64
  %19 = getelementptr inbounds i8, ptr %7, i64 192
  %20 = load i64, ptr %19, align 8, !tbaa !24
  %21 = icmp ult i64 %20, %18
  br i1 %21, label %22, label %27

22:                                               ; preds = %14
  %23 = getelementptr inbounds i8, ptr %7, i64 312
  %24 = load i32, ptr %23, align 8, !tbaa !25
  %.not = icmp eq i32 %24, 0
  br i1 %.not, label %25, label %27

25:                                               ; preds = %22
  %26 = trunc nuw i64 %20 to i32
  store i32 %26, ptr %17, align 8, !tbaa !23
  br label %27

27:                                               ; preds = %25, %22, %14
  %28 = phi i32 [ %26, %25 ], [ %2, %22 ], [ %2, %14 ]
  %29 = getelementptr inbounds i8, ptr %7, i64 184
  %30 = load i64, ptr %29, align 8, !tbaa !26
  %31 = getelementptr inbounds i8, ptr %7, i64 16
  %32 = load i32, ptr %31, align 8, !tbaa !27
  %33 = zext i32 %32 to i64
  %34 = add i64 %30, %33
  %35 = icmp ult i64 %34, %18
  br i1 %35, label %36, label %42

36:                                               ; preds = %27
  %37 = getelementptr inbounds i8, ptr %7, i64 312
  %38 = load i32, ptr %37, align 8, !tbaa !25
  %.not143 = icmp eq i32 %38, 0
  br i1 %.not143, label %42, label %39

39:                                               ; preds = %36
  %40 = trunc i64 %30 to i32
  %41 = add i32 %32, %40
  store i32 %41, ptr %17, align 8, !tbaa !23
  br label %42

42:                                               ; preds = %39, %36, %27
  %43 = phi i32 [ %41, %39 ], [ %28, %36 ], [ %28, %27 ]
  %.not144167 = icmp eq i32 %43, 0
  br i1 %.not144167, label %.thread, label %.lr.ph169

.lr.ph169:                                        ; preds = %42
  %44 = getelementptr inbounds i8, ptr %7, i64 200
  %45 = getelementptr inbounds i8, ptr %7, i64 288
  %46 = getelementptr inbounds i8, ptr %7, i64 120
  %47 = getelementptr inbounds i8, ptr %7, i64 304
  %48 = getelementptr inbounds i8, ptr %7, i64 208
  %49 = getelementptr inbounds i8, ptr %7, i64 256
  %50 = getelementptr inbounds i8, ptr %7, i64 296
  %51 = getelementptr inbounds i8, ptr %7, i64 312
  %52 = getelementptr inbounds i8, ptr %7, i64 48
  %53 = getelementptr inbounds i8, ptr %7, i64 56
  %54 = getelementptr inbounds i8, ptr %7, i64 160
  %55 = getelementptr inbounds i8, ptr %7, i64 168
  br label %56

56:                                               ; preds = %.lr.ph169, %.thread161
  %.0122168 = phi i32 [ 0, %.lr.ph169 ], [ %.2124, %.thread161 ]
  %57 = load i32, ptr %31, align 8, !tbaa !27
  %58 = icmp eq i32 %57, 0
  br i1 %58, label %59, label %79

59:                                               ; preds = %56
  %60 = load i64, ptr %29, align 8, !tbaa !26
  %.not145 = icmp eq i64 %60, 0
  br i1 %.not145, label %79, label %61

61:                                               ; preds = %59
  %spec.select165 = tail call i64 @llvm.umin.i64(i64 %60, i64 16384)
  %spec.select = trunc nuw nsw i64 %spec.select165 to i32
  %62 = load ptr, ptr %45, align 8, !tbaa !28
  %63 = load i64, ptr %46, align 8, !tbaa !29
  %64 = load i64, ptr %47, align 8, !tbaa !30
  %65 = add i64 %64, %63
  %66 = tail call i64 @call_zseek64(ptr noundef nonnull %44, ptr noundef %62, i64 noundef %65, i32 noundef 0) #3
  %.not146 = icmp eq i64 %66, 0
  br i1 %.not146, label %67, label %.thread

67:                                               ; preds = %61
  %68 = load ptr, ptr %48, align 8, !tbaa !31
  %69 = load ptr, ptr %49, align 8, !tbaa !32
  %70 = load ptr, ptr %45, align 8, !tbaa !28
  %71 = load ptr, ptr %7, align 8, !tbaa !19
  %72 = tail call i64 %68(ptr noundef %69, ptr noundef %70, ptr noundef %71, i64 noundef %spec.select165) #3
  %.not147 = icmp eq i64 %72, %spec.select165
  br i1 %.not147, label %73, label %.thread

73:                                               ; preds = %67
  %74 = load i64, ptr %46, align 8, !tbaa !29
  %75 = add i64 %74, %spec.select165
  store i64 %75, ptr %46, align 8, !tbaa !29
  %76 = load i64, ptr %29, align 8, !tbaa !26
  %77 = sub i64 %76, %spec.select165
  store i64 %77, ptr %29, align 8, !tbaa !26
  %78 = load ptr, ptr %7, align 8, !tbaa !19
  store ptr %78, ptr %15, align 8, !tbaa !33
  store i32 %spec.select, ptr %31, align 8, !tbaa !27
  br label %79

79:                                               ; preds = %73, %59, %56
  %80 = phi i32 [ %spec.select, %73 ], [ 0, %59 ], [ %57, %56 ]
  %81 = load i64, ptr %50, align 8, !tbaa !34
  %82 = icmp eq i64 %81, 0
  br i1 %82, label %85, label %83

83:                                               ; preds = %79
  %84 = load i32, ptr %51, align 8, !tbaa !25
  %.not148 = icmp eq i32 %84, 0
  br i1 %.not148, label %136, label %85

85:                                               ; preds = %83, %79
  %86 = icmp eq i32 %80, 0
  br i1 %86, label %87, label %90

87:                                               ; preds = %85
  %88 = load i64, ptr %29, align 8, !tbaa !26
  %89 = icmp eq i64 %88, 0
  br i1 %89, label %.thread, label %90

90:                                               ; preds = %87, %85
  %91 = load i32, ptr %17, align 8, !tbaa !23
  %. = tail call i32 @llvm.umin.i32(i32 %91, i32 %80)
  %.not173 = icmp eq i32 %., 0
  br i1 %.not173, label %.thread154, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %90
  %wide.trip.count = zext i32 %. to i64
  %xtraiter = and i64 %wide.trip.count, 3
  %92 = icmp ult i32 %., 4
  br i1 %92, label %.thread154.loopexit.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i64 %wide.trip.count, 4294967292
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader.new ], [ %indvars.iv.next.3, %.lr.ph ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.3, %.lr.ph ]
  %93 = load ptr, ptr %15, align 8, !tbaa !33
  %94 = getelementptr inbounds i8, ptr %93, i64 %indvars.iv
  %95 = load i8, ptr %94, align 1, !tbaa !35
  %96 = load ptr, ptr %16, align 8, !tbaa !22
  %97 = getelementptr inbounds i8, ptr %96, i64 %indvars.iv
  store i8 %95, ptr %97, align 1, !tbaa !35
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %98 = load ptr, ptr %15, align 8, !tbaa !33
  %99 = getelementptr inbounds i8, ptr %98, i64 %indvars.iv.next
  %100 = load i8, ptr %99, align 1, !tbaa !35
  %101 = load ptr, ptr %16, align 8, !tbaa !22
  %102 = getelementptr inbounds i8, ptr %101, i64 %indvars.iv.next
  store i8 %100, ptr %102, align 1, !tbaa !35
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %103 = load ptr, ptr %15, align 8, !tbaa !33
  %104 = getelementptr inbounds i8, ptr %103, i64 %indvars.iv.next.1
  %105 = load i8, ptr %104, align 1, !tbaa !35
  %106 = load ptr, ptr %16, align 8, !tbaa !22
  %107 = getelementptr inbounds i8, ptr %106, i64 %indvars.iv.next.1
  store i8 %105, ptr %107, align 1, !tbaa !35
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %108 = load ptr, ptr %15, align 8, !tbaa !33
  %109 = getelementptr inbounds i8, ptr %108, i64 %indvars.iv.next.2
  %110 = load i8, ptr %109, align 1, !tbaa !35
  %111 = load ptr, ptr %16, align 8, !tbaa !22
  %112 = getelementptr inbounds i8, ptr %111, i64 %indvars.iv.next.2
  store i8 %110, ptr %112, align 1, !tbaa !35
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %.thread154.loopexit.unr-lcssa, label %.lr.ph, !llvm.loop !36

.thread154.loopexit.unr-lcssa:                    ; preds = %.lr.ph, %.lr.ph.preheader
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next.3, %.lr.ph ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.thread154, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %.thread154.loopexit.unr-lcssa, %.lr.ph.epil
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.lr.ph.epil ], [ %indvars.iv.unr, %.thread154.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph.epil ], [ 0, %.thread154.loopexit.unr-lcssa ]
  %113 = load ptr, ptr %15, align 8, !tbaa !33
  %114 = getelementptr inbounds i8, ptr %113, i64 %indvars.iv.epil
  %115 = load i8, ptr %114, align 1, !tbaa !35
  %116 = load ptr, ptr %16, align 8, !tbaa !22
  %117 = getelementptr inbounds i8, ptr %116, i64 %indvars.iv.epil
  store i8 %115, ptr %117, align 1, !tbaa !35
  %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %.thread154, label %.lr.ph.epil, !llvm.loop !38

.thread154:                                       ; preds = %.thread154.loopexit.unr-lcssa, %.lr.ph.epil, %90
  %.pre-phi = phi i64 [ 0, %90 ], [ %wide.trip.count, %.lr.ph.epil ], [ %wide.trip.count, %.thread154.loopexit.unr-lcssa ]
  %118 = load i64, ptr %54, align 8, !tbaa !40
  %119 = add i64 %118, %.pre-phi
  store i64 %119, ptr %54, align 8, !tbaa !40
  %120 = load i64, ptr %55, align 8, !tbaa !41
  %121 = load ptr, ptr %16, align 8, !tbaa !22
  %122 = tail call i64 @crc32(i64 noundef %120, ptr noundef %121, i32 noundef %.) #3
  store i64 %122, ptr %55, align 8, !tbaa !41
  %123 = load i64, ptr %19, align 8, !tbaa !24
  %124 = sub i64 %123, %.pre-phi
  store i64 %124, ptr %19, align 8, !tbaa !24
  %125 = load i32, ptr %31, align 8, !tbaa !27
  %126 = sub i32 %125, %.
  store i32 %126, ptr %31, align 8, !tbaa !27
  %127 = load i32, ptr %17, align 8, !tbaa !23
  %128 = sub i32 %127, %.
  store i32 %128, ptr %17, align 8, !tbaa !23
  %129 = load ptr, ptr %16, align 8, !tbaa !22
  %130 = getelementptr inbounds i8, ptr %129, i64 %.pre-phi
  store ptr %130, ptr %16, align 8, !tbaa !22
  %131 = load ptr, ptr %15, align 8, !tbaa !33
  %132 = getelementptr inbounds i8, ptr %131, i64 %.pre-phi
  store ptr %132, ptr %15, align 8, !tbaa !33
  %133 = load i64, ptr %52, align 8, !tbaa !42
  %134 = add i64 %133, %.pre-phi
  store i64 %134, ptr %52, align 8, !tbaa !42
  %135 = add i32 %., %.0122168
  br label %.thread161

136:                                              ; preds = %83
  %137 = icmp eq i64 %81, 12
  br i1 %137, label %.thread161, label %138

138:                                              ; preds = %136
  %139 = load i64, ptr %52, align 8, !tbaa !42
  %140 = load ptr, ptr %16, align 8, !tbaa !22
  %141 = tail call i32 @inflate(ptr noundef nonnull %15, i32 noundef 2) #3
  %142 = icmp sgt i32 %141, -1
  br i1 %142, label %143, label %select.unfold

143:                                              ; preds = %138
  %144 = load ptr, ptr %53, align 8, !tbaa !43
  %.not149 = icmp eq ptr %144, null
  %spec.select181 = select i1 %.not149, i32 %141, i32 -3
  br label %select.unfold

select.unfold:                                    ; preds = %143, %138
  %.1119 = phi i32 [ %141, %138 ], [ %spec.select181, %143 ]
  %145 = load i64, ptr %52, align 8, !tbaa !42
  %146 = sub i64 %145, %139
  %147 = load i64, ptr %54, align 8, !tbaa !40
  %148 = add i64 %147, %146
  store i64 %148, ptr %54, align 8, !tbaa !40
  %149 = load i64, ptr %55, align 8, !tbaa !41
  %150 = trunc i64 %146 to i32
  %151 = tail call i64 @crc32(i64 noundef %149, ptr noundef %140, i32 noundef %150) #3
  store i64 %151, ptr %55, align 8, !tbaa !41
  %152 = load i64, ptr %19, align 8, !tbaa !24
  %153 = sub i64 %152, %146
  store i64 %153, ptr %19, align 8, !tbaa !24
  %154 = add i32 %.0122168, %150
  switch i32 %.1119, label %.thread.loopexit182 [
    i32 1, label %.thread
    i32 0, label %.thread161
  ]

.thread161:                                       ; preds = %select.unfold, %.thread154, %136
  %.2124 = phi i32 [ %.0122168, %136 ], [ %135, %.thread154 ], [ %154, %select.unfold ]
  %155 = load i32, ptr %17, align 8, !tbaa !23
  %.not144 = icmp eq i32 %155, 0
  br i1 %.not144, label %.thread, label %56, !llvm.loop !44

.thread.loopexit182:                              ; preds = %select.unfold
  br label %.thread

.thread:                                          ; preds = %67, %61, %87, %.thread161, %select.unfold, %.thread.loopexit182, %42, %12, %9, %5, %3
  %.6 = phi i32 [ -102, %3 ], [ -102, %5 ], [ -100, %9 ], [ 0, %12 ], [ 0, %42 ], [ %154, %select.unfold ], [ -1, %67 ], [ -1, %61 ], [ %.0122168, %87 ], [ %.2124, %.thread161 ], [ %.1119, %.thread.loopexit182 ]
  ret i32 %.6
}

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

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

declare i32 @inflate(ptr noundef, i32 noundef) local_unnamed_addr #1

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

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

attributes #0 = { 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 #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !9, i64 320}
!6 = !{!"", !7, i64 0, !12, i64 88, !9, i64 96, !13, i64 104, !14, i64 120, !14, i64 128, !14, i64 136, !14, i64 144, !14, i64 152, !14, i64 160, !14, i64 168, !16, i64 176, !18, i64 312, !9, i64 320, !12, i64 328, !12, i64 332}
!7 = !{!"zlib_filefunc64_32_def_s", !8, i64 0, !9, i64 64, !9, i64 72, !9, i64 80}
!8 = !{!"zlib_filefunc64_def_s", !9, i64 0, !9, i64 8, !9, i64 16, !9, i64 24, !9, i64 32, !9, i64 40, !9, i64 48, !9, i64 56}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C/C++ TBAA"}
!12 = !{!"int", !10, i64 0}
!13 = !{!"unz_global_info64_s", !14, i64 0, !15, i64 8}
!14 = !{!"long long", !10, i64 0}
!15 = !{!"long", !10, i64 0}
!16 = !{!"unz_file_info64_s", !15, i64 0, !15, i64 8, !15, i64 16, !15, i64 24, !15, i64 32, !15, i64 40, !14, i64 48, !14, i64 56, !15, i64 64, !15, i64 72, !15, i64 80, !15, i64 88, !15, i64 96, !15, i64 104, !17, i64 112}
!17 = !{!"tm_unz_s", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20}
!18 = !{!"unz_file_info64_internal_s", !14, i64 0}
!19 = !{!20, !9, i64 0}
!20 = !{!"", !9, i64 0, !21, i64 8, !14, i64 120, !15, i64 128, !14, i64 136, !12, i64 144, !14, i64 152, !14, i64 160, !15, i64 168, !15, i64 176, !14, i64 184, !14, i64 192, !7, i64 200, !9, i64 288, !15, i64 296, !14, i64 304, !12, i64 312}
!21 = !{!"z_stream_s", !9, i64 0, !12, i64 8, !15, i64 16, !9, i64 24, !12, i64 32, !15, i64 40, !9, i64 48, !9, i64 56, !9, i64 64, !9, i64 72, !9, i64 80, !12, i64 88, !15, i64 96, !15, i64 104}
!22 = !{!20, !9, i64 32}
!23 = !{!20, !12, i64 40}
!24 = !{!20, !14, i64 192}
!25 = !{!20, !12, i64 312}
!26 = !{!20, !14, i64 184}
!27 = !{!20, !12, i64 16}
!28 = !{!20, !9, i64 288}
!29 = !{!20, !14, i64 120}
!30 = !{!20, !14, i64 304}
!31 = !{!20, !9, i64 208}
!32 = !{!20, !9, i64 256}
!33 = !{!20, !9, i64 8}
!34 = !{!20, !15, i64 296}
!35 = !{!10, !10, i64 0}
!36 = distinct !{!36, !37}
!37 = !{!"llvm.loop.mustprogress"}
!38 = distinct !{!38, !39}
!39 = !{!"llvm.loop.unroll.disable"}
!40 = !{!20, !14, i64 160}
!41 = !{!20, !15, i64 168}
!42 = !{!20, !15, i64 48}
!43 = !{!20, !9, i64 56}
!44 = distinct !{!44, !37}


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