; LLVM IR from eugenebokhan/awesome-ml :: Awesome ML/Utils/Zip/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, ptr, ptr, %struct.unz_global_info64_s, i64, i64, i64, i64, i64, i64, i64, i64, %struct.unz_file_info64_s, %struct.unz_file_info64_internal_s, ptr, i32, [3 x i64], ptr }
%struct.zlib_filefunc64_32_def_s = type { %struct.zlib_filefunc64_def_s, ptr, ptr, ptr, ptr }
%struct.zlib_filefunc64_def_s = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.unz_global_info64_s = type { i64, 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, i64, i64 }
%struct.tm_unz_s = type { i32, i32, i32, i32, i32, i32 }
%struct.unz_file_info64_internal_s = type { i64, 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: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

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

; Function Attrs: nounwind uwtable
declare hidden i32 @decrypt_byte(ptr noundef) #3

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

26:                                               ; preds = %3
  store i32 -102, ptr %4, align 4
  store i32 1, ptr %11, align 4
  br label %692

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

33:                                               ; preds = %27
  store i32 -102, ptr %4, align 4
  store i32 1, ptr %11, align 4
  br label %692

34:                                               ; preds = %27
  %35 = load ptr, ptr %10, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.unz64_s, ptr %35, i32 0, i32 14
  %37 = load ptr, ptr %36, align 8, !tbaa !11
  %38 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %37, i32 0, i32 0
  %39 = load ptr, ptr %38, align 8, !tbaa !21
  %40 = icmp eq ptr %39, null
  br i1 %40, label %41, label %42

41:                                               ; preds = %34
  store i32 -100, ptr %4, align 4
  store i32 1, ptr %11, align 4
  br label %692

42:                                               ; preds = %34
  %43 = load i32, ptr %7, align 4, !tbaa !9
  %44 = icmp eq i32 %43, 0
  br i1 %44, label %45, label %46

45:                                               ; preds = %42
  store i32 0, ptr %4, align 4
  store i32 1, ptr %11, align 4
  br label %692

46:                                               ; preds = %42
  %47 = load ptr, ptr %6, align 8, !tbaa !5
  %48 = load ptr, ptr %10, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.unz64_s, ptr %48, i32 0, i32 14
  %50 = load ptr, ptr %49, align 8, !tbaa !11
  %51 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %50, i32 0, i32 1
  %52 = getelementptr inbounds %struct.z_stream_s, ptr %51, i32 0, i32 3
  store ptr %47, ptr %52, align 8, !tbaa !24
  %53 = load i32, ptr %7, align 4, !tbaa !9
  %54 = load ptr, ptr %10, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.unz64_s, ptr %54, i32 0, i32 14
  %56 = load ptr, ptr %55, align 8, !tbaa !11
  %57 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %56, i32 0, i32 1
  %58 = getelementptr inbounds %struct.z_stream_s, ptr %57, i32 0, i32 4
  store i32 %53, ptr %58, align 8, !tbaa !25
  %59 = load ptr, ptr %10, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.unz64_s, ptr %59, i32 0, i32 14
  %61 = load ptr, ptr %60, align 8, !tbaa !11
  %62 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %61, i32 0, i32 16
  %63 = load i32, ptr %62, align 8, !tbaa !26
  %64 = icmp ne i32 %63, 0
  br i1 %64, label %65, label %102

65:                                               ; preds = %46
  %66 = load i32, ptr %7, align 4, !tbaa !9
  %67 = zext i32 %66 to i64
  %68 = load ptr, ptr %10, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.unz64_s, ptr %68, i32 0, i32 14
  %70 = load ptr, ptr %69, align 8, !tbaa !11
  %71 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %70, i32 0, i32 10
  %72 = load i64, ptr %71, align 8, !tbaa !27
  %73 = load ptr, ptr %10, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.unz64_s, ptr %73, i32 0, i32 14
  %75 = load ptr, ptr %74, align 8, !tbaa !11
  %76 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %75, i32 0, i32 1
  %77 = getelementptr inbounds %struct.z_stream_s, ptr %76, i32 0, i32 1
  %78 = load i32, ptr %77, align 8, !tbaa !28
  %79 = zext i32 %78 to i64
  %80 = add i64 %72, %79
  %81 = icmp ugt i64 %67, %80
  br i1 %81, label %82, label %101

82:                                               ; preds = %65
  %83 = load ptr, ptr %10, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.unz64_s, ptr %83, i32 0, i32 14
  %85 = load ptr, ptr %84, align 8, !tbaa !11
  %86 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %85, i32 0, i32 10
  %87 = load i64, ptr %86, align 8, !tbaa !27
  %88 = trunc i64 %87 to i32
  %89 = load ptr, ptr %10, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.unz64_s, ptr %89, i32 0, i32 14
  %91 = load ptr, ptr %90, align 8, !tbaa !11
  %92 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %91, i32 0, i32 1
  %93 = getelementptr inbounds %struct.z_stream_s, ptr %92, i32 0, i32 1
  %94 = load i32, ptr %93, align 8, !tbaa !28
  %95 = add i32 %88, %94
  %96 = load ptr, ptr %10, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.unz64_s, ptr %96, i32 0, i32 14
  %98 = load ptr, ptr %97, align 8, !tbaa !11
  %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 %95, ptr %100, align 8, !tbaa !25
  br label %101

101:                                              ; preds = %82, %65
  br label %124

102:                                              ; preds = %46
  %103 = load i32, ptr %7, align 4, !tbaa !9
  %104 = zext i32 %103 to i64
  %105 = load ptr, ptr %10, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.unz64_s, ptr %105, i32 0, i32 14
  %107 = load ptr, ptr %106, align 8, !tbaa !11
  %108 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %107, i32 0, i32 11
  %109 = load i64, ptr %108, align 8, !tbaa !29
  %110 = icmp ugt i64 %104, %109
  br i1 %110, label %111, label %123

111:                                              ; preds = %102
  %112 = load ptr, ptr %10, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.unz64_s, ptr %112, i32 0, i32 14
  %114 = load ptr, ptr %113, align 8, !tbaa !11
  %115 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %114, i32 0, i32 11
  %116 = load i64, ptr %115, align 8, !tbaa !29
  %117 = trunc i64 %116 to i32
  %118 = load ptr, ptr %10, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.unz64_s, ptr %118, i32 0, i32 14
  %120 = load ptr, ptr %119, align 8, !tbaa !11
  %121 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %120, i32 0, i32 1
  %122 = getelementptr inbounds %struct.z_stream_s, ptr %121, i32 0, i32 4
  store i32 %117, ptr %122, align 8, !tbaa !25
  br label %123

123:                                              ; preds = %111, %102
  br label %124

124:                                              ; preds = %123, %101
  br label %125

125:                                              ; preds = %684, %124
  %126 = load ptr, ptr %10, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.unz64_s, ptr %126, i32 0, i32 14
  %128 = load ptr, ptr %127, align 8, !tbaa !11
  %129 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %128, i32 0, i32 1
  %130 = getelementptr inbounds %struct.z_stream_s, ptr %129, i32 0, i32 4
  %131 = load i32, ptr %130, align 8, !tbaa !25
  %132 = icmp ugt i32 %131, 0
  br i1 %132, label %133, label %685

133:                                              ; preds = %125
  %134 = load ptr, ptr %10, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.unz64_s, ptr %134, i32 0, i32 14
  %136 = load ptr, ptr %135, align 8, !tbaa !11
  %137 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %136, i32 0, i32 1
  %138 = getelementptr inbounds %struct.z_stream_s, ptr %137, i32 0, i32 1
  %139 = load i32, ptr %138, align 8, !tbaa !28
  %140 = icmp eq i32 %139, 0
  br i1 %140, label %141, label %404

141:                                              ; preds = %133
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  store i64 65536, ptr %12, align 8, !tbaa !30
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  store i64 0, ptr %13, align 8, !tbaa !30
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  store i64 0, ptr %14, align 8, !tbaa !30
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  store i64 0, ptr %15, align 8, !tbaa !30
  %142 = load ptr, ptr %10, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.unz64_s, ptr %142, i32 0, i32 14
  %144 = load ptr, ptr %143, align 8, !tbaa !11
  %145 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %144, i32 0, i32 1
  %146 = getelementptr inbounds %struct.z_stream_s, ptr %145, i32 0, i32 0
  %147 = load ptr, ptr %146, align 8, !tbaa !31
  %148 = icmp ne ptr %147, null
  br i1 %148, label %149, label %165

149:                                              ; preds = %141
  %150 = load ptr, ptr %10, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.unz64_s, ptr %150, i32 0, i32 14
  %152 = load ptr, ptr %151, align 8, !tbaa !11
  %153 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %152, i32 0, i32 0
  %154 = load ptr, ptr %153, align 8, !tbaa !21
  %155 = getelementptr inbounds i8, ptr %154, i64 65536
  %156 = load ptr, ptr %10, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.unz64_s, ptr %156, i32 0, i32 14
  %158 = load ptr, ptr %157, align 8, !tbaa !11
  %159 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %158, i32 0, i32 1
  %160 = getelementptr inbounds %struct.z_stream_s, ptr %159, i32 0, i32 0
  %161 = load ptr, ptr %160, align 8, !tbaa !31
  %162 = ptrtoint ptr %155 to i64
  %163 = ptrtoint ptr %161 to i64
  %164 = sub i64 %162, %163
  store i64 %164, ptr %13, align 8, !tbaa !30
  br label %165

165:                                              ; preds = %149, %141
  %166 = load i64, ptr %13, align 8, !tbaa !30
  %167 = load i64, ptr %12, align 8, !tbaa !30
  %168 = sub i64 %167, %166
  store i64 %168, ptr %12, align 8, !tbaa !30
  %169 = load i64, ptr %13, align 8, !tbaa !30
  %170 = icmp ugt i64 %169, 0
  br i1 %170, label %171, label %184

171:                                              ; preds = %165
  %172 = load ptr, ptr %10, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.unz64_s, ptr %172, i32 0, i32 14
  %174 = load ptr, ptr %173, align 8, !tbaa !11
  %175 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %174, i32 0, i32 0
  %176 = load ptr, ptr %175, align 8, !tbaa !21
  %177 = load ptr, ptr %10, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.unz64_s, ptr %177, i32 0, i32 14
  %179 = load ptr, ptr %178, align 8, !tbaa !11
  %180 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %179, i32 0, i32 1
  %181 = getelementptr inbounds %struct.z_stream_s, ptr %180, i32 0, i32 0
  %182 = load ptr, ptr %181, align 8, !tbaa !31
  %183 = load i64, ptr %13, align 8, !tbaa !30
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %176, ptr align 1 %182, i64 %183, i1 false)
  br label %184

184:                                              ; preds = %171, %165
  %185 = load ptr, ptr %10, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.unz64_s, ptr %185, i32 0, i32 14
  %187 = load ptr, ptr %186, align 8, !tbaa !11
  %188 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %187, i32 0, i32 10
  %189 = load i64, ptr %188, align 8, !tbaa !27
  %190 = load i64, ptr %12, align 8, !tbaa !30
  %191 = icmp ult i64 %189, %190
  br i1 %191, label %192, label %200

192:                                              ; preds = %184
  %193 = load ptr, ptr %10, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.unz64_s, ptr %193, i32 0, i32 14
  %195 = load ptr, ptr %194, align 8, !tbaa !11
  %196 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %195, i32 0, i32 10
  %197 = load i64, ptr %196, align 8, !tbaa !27
  %198 = trunc i64 %197 to i32
  %199 = zext i32 %198 to i64
  store i64 %199, ptr %12, align 8, !tbaa !30
  br label %200

200:                                              ; preds = %192, %184
  br label %201

201:                                              ; preds = %316, %200
  %202 = load i64, ptr %15, align 8, !tbaa !30
  %203 = load i64, ptr %12, align 8, !tbaa !30
  %204 = icmp ne i64 %202, %203
  br i1 %204, label %205, label %317

205:                                              ; preds = %201
  %206 = load ptr, ptr %10, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.unz64_s, ptr %206, i32 0, i32 14
  %208 = load ptr, ptr %207, align 8, !tbaa !11
  %209 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %208, i32 0, i32 12
  %210 = load ptr, ptr %10, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.unz64_s, ptr %210, i32 0, i32 14
  %212 = load ptr, ptr %211, align 8, !tbaa !11
  %213 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %212, i32 0, i32 13
  %214 = load ptr, ptr %213, align 8, !tbaa !32
  %215 = load ptr, ptr %10, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct.unz64_s, ptr %215, i32 0, i32 14
  %217 = load ptr, ptr %216, align 8, !tbaa !11
  %218 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %217, i32 0, i32 2
  %219 = load i64, ptr %218, align 8, !tbaa !33
  %220 = load ptr, ptr %10, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.unz64_s, ptr %220, i32 0, i32 14
  %222 = load ptr, ptr %221, align 8, !tbaa !11
  %223 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %222, i32 0, i32 15
  %224 = load i64, ptr %223, align 8, !tbaa !34
  %225 = add i64 %219, %224
  %226 = call i64 @call_zseek64(ptr noundef %209, ptr noundef %214, i64 noundef %225, i32 noundef 0)
  %227 = icmp ne i64 %226, 0
  br i1 %227, label %228, label %229

228:                                              ; preds = %205
  store i32 -1, ptr %4, align 4
  store i32 1, ptr %11, align 4
  br label %401

229:                                              ; preds = %205
  %230 = load ptr, ptr %10, align 8, !tbaa !5
  %231 = getelementptr inbounds %struct.unz64_s, ptr %230, i32 0, i32 14
  %232 = load ptr, ptr %231, align 8, !tbaa !11
  %233 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %232, i32 0, i32 12
  %234 = getelementptr inbounds %struct.zlib_filefunc64_32_def_s, ptr %233, i32 0, i32 0
  %235 = getelementptr inbounds %struct.zlib_filefunc64_def_s, ptr %234, i32 0, i32 2
  %236 = load ptr, ptr %235, align 8, !tbaa !35
  %237 = load ptr, ptr %10, align 8, !tbaa !5
  %238 = getelementptr inbounds %struct.unz64_s, ptr %237, i32 0, i32 14
  %239 = load ptr, ptr %238, align 8, !tbaa !11
  %240 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %239, i32 0, i32 12
  %241 = getelementptr inbounds %struct.zlib_filefunc64_32_def_s, ptr %240, i32 0, i32 0
  %242 = getelementptr inbounds %struct.zlib_filefunc64_def_s, ptr %241, i32 0, i32 8
  %243 = load ptr, ptr %242, align 8, !tbaa !36
  %244 = load ptr, ptr %10, align 8, !tbaa !5
  %245 = getelementptr inbounds %struct.unz64_s, ptr %244, i32 0, i32 14
  %246 = load ptr, ptr %245, align 8, !tbaa !11
  %247 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %246, i32 0, i32 13
  %248 = load ptr, ptr %247, align 8, !tbaa !32
  %249 = load ptr, ptr %10, align 8, !tbaa !5
  %250 = getelementptr inbounds %struct.unz64_s, ptr %249, i32 0, i32 14
  %251 = load ptr, ptr %250, align 8, !tbaa !11
  %252 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %251, i32 0, i32 0
  %253 = load ptr, ptr %252, align 8, !tbaa !21
  %254 = load i64, ptr %13, align 8, !tbaa !30
  %255 = getelementptr inbounds i8, ptr %253, i64 %254
  %256 = load i64, ptr %15, align 8, !tbaa !30
  %257 = getelementptr inbounds i8, ptr %255, i64 %256
  %258 = load i64, ptr %12, align 8, !tbaa !30
  %259 = load i64, ptr %15, align 8, !tbaa !30
  %260 = sub i64 %258, %259
  %261 = call i64 %236(ptr noundef %243, ptr noundef %248, ptr noundef %257, i64 noundef %260)
  store i64 %261, ptr %14, align 8, !tbaa !30
  %262 = load i64, ptr %14, align 8, !tbaa !30
  %263 = load i64, ptr %15, align 8, !tbaa !30
  %264 = add i64 %263, %262
  store i64 %264, ptr %15, align 8, !tbaa !30
  %265 = load i64, ptr %14, align 8, !tbaa !30
  %266 = load ptr, ptr %10, align 8, !tbaa !5
  %267 = getelementptr inbounds %struct.unz64_s, ptr %266, i32 0, i32 14
  %268 = load ptr, ptr %267, align 8, !tbaa !11
  %269 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %268, i32 0, i32 2
  %270 = load i64, ptr %269, align 8, !tbaa !33
  %271 = add i64 %270, %265
  store i64 %271, ptr %269, align 8, !tbaa !33
  %272 = load i64, ptr %14, align 8, !tbaa !30
  %273 = icmp eq i64 %272, 0
  br i1 %273, label %274, label %316

274:                                              ; preds = %229
  %275 = load ptr, ptr %10, align 8, !tbaa !5
  %276 = getelementptr inbounds %struct.unz64_s, ptr %275, i32 0, i32 14
  %277 = load ptr, ptr %276, align 8, !tbaa !11
  %278 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %277, i32 0, i32 12
  %279 = getelementptr inbounds %struct.zlib_filefunc64_32_def_s, ptr %278, i32 0, i32 0
  %280 = getelementptr inbounds %struct.zlib_filefunc64_def_s, ptr %279, i32 0, i32 7
  %281 = load ptr, ptr %280, align 8, !tbaa !37
  %282 = load ptr, ptr %10, align 8, !tbaa !5
  %283 = getelementptr inbounds %struct.unz64_s, ptr %282, i32 0, i32 14
  %284 = load ptr, ptr %283, align 8, !tbaa !11
  %285 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %284, i32 0, i32 12
  %286 = getelementptr inbounds %struct.zlib_filefunc64_32_def_s, ptr %285, i32 0, i32 0
  %287 = getelementptr inbounds %struct.zlib_filefunc64_def_s, ptr %286, i32 0, i32 8
  %288 = load ptr, ptr %287, align 8, !tbaa !36
  %289 = load ptr, ptr %10, align 8, !tbaa !5
  %290 = getelementptr inbounds %struct.unz64_s, ptr %289, i32 0, i32 14
  %291 = load ptr, ptr %290, align 8, !tbaa !11
  %292 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %291, i32 0, i32 13
  %293 = load ptr, ptr %292, align 8, !tbaa !32
  %294 = call i32 %281(ptr noundef %288, ptr noundef %293)
  %295 = icmp ne i32 %294, 0
  br i1 %295, label %296, label %297

296:                                              ; preds = %274
  store i32 -1, ptr %4, align 4
  store i32 1, ptr %11, align 4
  br label %401

297:                                              ; preds = %274
  %298 = load ptr, ptr %5, align 8, !tbaa !5
  %299 = call i32 @unzGoToNextDisk(ptr noundef %298)
  store i32 %299, ptr %8, align 4, !tbaa !9
  %300 = load i32, ptr %8, align 4, !tbaa !9
  %301 = icmp ne i32 %300, 0
  br i1 %301, label %302, label %304

302:                                              ; preds = %297
  %303 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %303, ptr %4, align 4
  store i32 1, ptr %11, align 4
  br label %401

304:                                              ; preds = %297
  %305 = load ptr, ptr %10, align 8, !tbaa !5
  %306 = getelementptr inbounds %struct.unz64_s, ptr %305, i32 0, i32 14
  %307 = load ptr, ptr %306, align 8, !tbaa !11
  %308 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %307, i32 0, i32 2
  store i64 0, ptr %308, align 8, !tbaa !33
  %309 = load ptr, ptr %10, align 8, !tbaa !5
  %310 = getelementptr inbounds %struct.unz64_s, ptr %309, i32 0, i32 1
  %311 = load ptr, ptr %310, align 8, !tbaa !38
  %312 = load ptr, ptr %10, align 8, !tbaa !5
  %313 = getelementptr inbounds %struct.unz64_s, ptr %312, i32 0, i32 14
  %314 = load ptr, ptr %313, align 8, !tbaa !11
  %315 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %314, i32 0, i32 13
  store ptr %311, ptr %315, align 8, !tbaa !32
  br label %316

316:                                              ; preds = %304, %229
  br label %201, !llvm.loop !39

317:                                              ; preds = %201
  %318 = load ptr, ptr %10, align 8, !tbaa !5
  %319 = getelementptr inbounds %struct.unz64_s, ptr %318, i32 0, i32 12
  %320 = getelementptr inbounds %struct.unz_file_info64_s, ptr %319, i32 0, i32 2
  %321 = load i64, ptr %320, align 8, !tbaa !41
  %322 = and i64 %321, 1
  %323 = icmp ne i64 %322, 0
  br i1 %323, label %324, label %374

324:                                              ; preds = %317
  %325 = load ptr, ptr %10, align 8, !tbaa !5
  %326 = getelementptr inbounds %struct.unz64_s, ptr %325, i32 0, i32 17
  %327 = load ptr, ptr %326, align 8, !tbaa !42
  %328 = icmp ne ptr %327, null
  br i1 %328, label %329, label %373

329:                                              ; preds = %324
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %330

330:                                              ; preds = %369, %329
  %331 = load i32, ptr %16, align 4, !tbaa !9
  %332 = zext i32 %331 to i64
  %333 = load i64, ptr %15, align 8, !tbaa !30
  %334 = icmp ult i64 %332, %333
  br i1 %334, label %335, label %372

335:                                              ; preds = %330
  %336 = load ptr, ptr %10, align 8, !tbaa !5
  %337 = getelementptr inbounds %struct.unz64_s, ptr %336, i32 0, i32 16
  %338 = getelementptr inbounds [3 x i64], ptr %337, i64 0, i64 0
  %339 = load ptr, ptr %10, align 8, !tbaa !5
  %340 = getelementptr inbounds %struct.unz64_s, ptr %339, i32 0, i32 17
  %341 = load ptr, ptr %340, align 8, !tbaa !42
  %342 = load ptr, ptr %10, align 8, !tbaa !5
  %343 = getelementptr inbounds %struct.unz64_s, ptr %342, i32 0, i32 16
  %344 = getelementptr inbounds [3 x i64], ptr %343, i64 0, i64 0
  %345 = call i32 @decrypt_byte(ptr noundef %344)
  %346 = load ptr, ptr %10, align 8, !tbaa !5
  %347 = getelementptr inbounds %struct.unz64_s, ptr %346, i32 0, i32 14
  %348 = load ptr, ptr %347, align 8, !tbaa !11
  %349 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %348, i32 0, i32 0
  %350 = load ptr, ptr %349, align 8, !tbaa !21
  %351 = load i32, ptr %16, align 4, !tbaa !9
  %352 = zext i32 %351 to i64
  %353 = getelementptr inbounds i8, ptr %350, i64 %352
  %354 = load i8, ptr %353, align 1, !tbaa !43
  %355 = zext i8 %354 to i32
  %356 = xor i32 %355, %345
  %357 = trunc i32 %356 to i8
  store i8 %357, ptr %353, align 1, !tbaa !43
  %358 = zext i8 %357 to i32
  %359 = call i32 @update_keys(ptr noundef %338, ptr noundef %341, i32 noundef %358)
  %360 = trunc i32 %359 to i8
  %361 = load ptr, ptr %10, align 8, !tbaa !5
  %362 = getelementptr inbounds %struct.unz64_s, ptr %361, i32 0, i32 14
  %363 = load ptr, ptr %362, align 8, !tbaa !11
  %364 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %363, i32 0, i32 0
  %365 = load ptr, ptr %364, align 8, !tbaa !21
  %366 = load i32, ptr %16, align 4, !tbaa !9
  %367 = zext i32 %366 to i64
  %368 = getelementptr inbounds i8, ptr %365, i64 %367
  store i8 %360, ptr %368, align 1, !tbaa !43
  br label %369

369:                                              ; preds = %335
  %370 = load i32, ptr %16, align 4, !tbaa !9
  %371 = add i32 %370, 1
  store i32 %371, ptr %16, align 4, !tbaa !9
  br label %330, !llvm.loop !44

372:                                              ; preds = %330
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  br label %373

373:                                              ; preds = %372, %324
  br label %374

374:                                              ; preds = %373, %317
  %375 = load i64, ptr %15, align 8, !tbaa !30
  %376 = load ptr, ptr %10, align 8, !tbaa !5
  %377 = getelementptr inbounds %struct.unz64_s, ptr %376, i32 0, i32 14
  %378 = load ptr, ptr %377, align 8, !tbaa !11
  %379 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %378, i32 0, i32 10
  %380 = load i64, ptr %379, align 8, !tbaa !27
  %381 = sub i64 %380, %375
  store i64 %381, ptr %379, align 8, !tbaa !27
  %382 = load ptr, ptr %10, align 8, !tbaa !5
  %383 = getelementptr inbounds %struct.unz64_s, ptr %382, i32 0, i32 14
  %384 = load ptr, ptr %383, align 8, !tbaa !11
  %385 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %384, i32 0, i32 0
  %386 = load ptr, ptr %385, align 8, !tbaa !21
  %387 = load ptr, ptr %10, align 8, !tbaa !5
  %388 = getelementptr inbounds %struct.unz64_s, ptr %387, i32 0, i32 14
  %389 = load ptr, ptr %388, align 8, !tbaa !11
  %390 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %389, i32 0, i32 1
  %391 = getelementptr inbounds %struct.z_stream_s, ptr %390, i32 0, i32 0
  store ptr %386, ptr %391, align 8, !tbaa !31
  %392 = load i64, ptr %13, align 8, !tbaa !30
  %393 = load i64, ptr %15, align 8, !tbaa !30
  %394 = add i64 %392, %393
  %395 = trunc i64 %394 to i32
  %396 = load ptr, ptr %10, align 8, !tbaa !5
  %397 = getelementptr inbounds %struct.unz64_s, ptr %396, i32 0, i32 14
  %398 = load ptr, ptr %397, align 8, !tbaa !11
  %399 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %398, i32 0, i32 1
  %400 = getelementptr inbounds %struct.z_stream_s, ptr %399, i32 0, i32 1
  store i32 %395, ptr %400, align 8, !tbaa !28
  store i32 0, ptr %11, align 4
  br label %401

401:                                              ; preds = %374, %302, %296, %228
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  %402 = load i32, ptr %11, align 4
  switch i32 %402, label %692 [
    i32 0, label %403
  ]

403:                                              ; preds = %401
  br label %404

404:                                              ; preds = %403, %133
  %405 = load ptr, ptr %10, align 8, !tbaa !5
  %406 = getelementptr inbounds %struct.unz64_s, ptr %405, i32 0, i32 14
  %407 = load ptr, ptr %406, align 8, !tbaa !11
  %408 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %407, i32 0, i32 14
  %409 = load i64, ptr %408, align 8, !tbaa !45
  %410 = icmp eq i64 %409, 0
  br i1 %410, label %418, label %411

411:                                              ; preds = %404
  %412 = load ptr, ptr %10, align 8, !tbaa !5
  %413 = getelementptr inbounds %struct.unz64_s, ptr %412, i32 0, i32 14
  %414 = load ptr, ptr %413, align 8, !tbaa !11
  %415 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %414, i32 0, i32 16
  %416 = load i32, ptr %415, align 8, !tbaa !26
  %417 = icmp ne i32 %416, 0
  br i1 %417, label %418, label %584

418:                                              ; preds = %411, %404
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  %419 = load ptr, ptr %10, align 8, !tbaa !5
  %420 = getelementptr inbounds %struct.unz64_s, ptr %419, i32 0, i32 14
  %421 = load ptr, ptr %420, align 8, !tbaa !11
  %422 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %421, i32 0, i32 1
  %423 = getelementptr inbounds %struct.z_stream_s, ptr %422, i32 0, i32 1
  %424 = load i32, ptr %423, align 8, !tbaa !28
  %425 = icmp eq i32 %424, 0
  br i1 %425, label %426, label %441

426:                                              ; preds = %418
  %427 = load ptr, ptr %10, align 8, !tbaa !5
  %428 = getelementptr inbounds %struct.unz64_s, ptr %427, i32 0, i32 14
  %429 = load ptr, ptr %428, align 8, !tbaa !11
  %430 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %429, i32 0, i32 10
  %431 = load i64, ptr %430, align 8, !tbaa !27
  %432 = icmp eq i64 %431, 0
  br i1 %432, label %433, label %441

433:                                              ; preds = %426
  %434 = load i32, ptr %9, align 4, !tbaa !9
  %435 = icmp eq i32 %434, 0
  br i1 %435, label %436, label %437

436:                                              ; preds = %433
  br label %439

437:                                              ; preds = %433
  %438 = load i32, ptr %9, align 4, !tbaa !9
  br label %439

439:                                              ; preds = %437, %436
  %440 = phi i32 [ 0, %436 ], [ %438, %437 ]
  store i32 %440, ptr %4, align 4
  store i32 1, ptr %11, align 4
  br label %581

441:                                              ; preds = %426, %418
  %442 = load ptr, ptr %10, align 8, !tbaa !5
  %443 = getelementptr inbounds %struct.unz64_s, ptr %442, i32 0, i32 14
  %444 = load ptr, ptr %443, align 8, !tbaa !11
  %445 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %444, i32 0, i32 1
  %446 = getelementptr inbounds %struct.z_stream_s, ptr %445, i32 0, i32 4
  %447 = load i32, ptr %446, align 8, !tbaa !25
  %448 = load ptr, ptr %10, align 8, !tbaa !5
  %449 = getelementptr inbounds %struct.unz64_s, ptr %448, i32 0, i32 14
  %450 = load ptr, ptr %449, align 8, !tbaa !11
  %451 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %450, i32 0, i32 1
  %452 = getelementptr inbounds %struct.z_stream_s, ptr %451, i32 0, i32 1
  %453 = load i32, ptr %452, align 8, !tbaa !28
  %454 = icmp ult i32 %447, %453
  br i1 %454, label %455, label %462

455:                                              ; preds = %441
  %456 = load ptr, ptr %10, align 8, !tbaa !5
  %457 = getelementptr inbounds %struct.unz64_s, ptr %456, i32 0, i32 14
  %458 = load ptr, ptr %457, align 8, !tbaa !11
  %459 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %458, i32 0, i32 1
  %460 = getelementptr inbounds %struct.z_stream_s, ptr %459, i32 0, i32 4
  %461 = load i32, ptr %460, align 8, !tbaa !25
  store i32 %461, ptr %17, align 4, !tbaa !9
  br label %469

462:                                              ; preds = %441
  %463 = load ptr, ptr %10, align 8, !tbaa !5
  %464 = getelementptr inbounds %struct.unz64_s, ptr %463, i32 0, i32 14
  %465 = load ptr, ptr %464, align 8, !tbaa !11
  %466 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %465, i32 0, i32 1
  %467 = getelementptr inbounds %struct.z_stream_s, ptr %466, i32 0, i32 1
  %468 = load i32, ptr %467, align 8, !tbaa !28
  store i32 %468, ptr %17, align 4, !tbaa !9
  br label %469

469:                                              ; preds = %462, %455
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %470

470:                                              ; preds = %494, %469
  %471 = load i32, ptr %18, align 4, !tbaa !9
  %472 = load i32, ptr %17, align 4, !tbaa !9
  %473 = icmp ult i32 %471, %472
  br i1 %473, label %474, label %497

474:                                              ; preds = %470
  %475 = load ptr, ptr %10, align 8, !tbaa !5
  %476 = getelementptr inbounds %struct.unz64_s, ptr %475, i32 0, i32 14
  %477 = load ptr, ptr %476, align 8, !tbaa !11
  %478 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %477, i32 0, i32 1
  %479 = getelementptr inbounds %struct.z_stream_s, ptr %478, i32 0, i32 0
  %480 = load ptr, ptr %479, align 8, !tbaa !31
  %481 = load i32, ptr %18, align 4, !tbaa !9
  %482 = zext i32 %481 to i64
  %483 = getelementptr inbounds i8, ptr %480, i64 %482
  %484 = load i8, ptr %483, align 1, !tbaa !43
  %485 = load ptr, ptr %10, align 8, !tbaa !5
  %486 = getelementptr inbounds %struct.unz64_s, ptr %485, i32 0, i32 14
  %487 = load ptr, ptr %486, align 8, !tbaa !11
  %488 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %487, i32 0, i32 1
  %489 = getelementptr inbounds %struct.z_stream_s, ptr %488, i32 0, i32 3
  %490 = load ptr, ptr %489, align 8, !tbaa !24
  %491 = load i32, ptr %18, align 4, !tbaa !9
  %492 = zext i32 %491 to i64
  %493 = getelementptr inbounds i8, ptr %490, i64 %492
  store i8 %484, ptr %493, align 1, !tbaa !43
  br label %494

494:                                              ; preds = %474
  %495 = load i32, ptr %18, align 4, !tbaa !9
  %496 = add i32 %495, 1
  store i32 %496, ptr %18, align 4, !tbaa !9
  br label %470, !llvm.loop !46

497:                                              ; preds = %470
  %498 = load ptr, ptr %10, align 8, !tbaa !5
  %499 = getelementptr inbounds %struct.unz64_s, ptr %498, i32 0, i32 14
  %500 = load ptr, ptr %499, align 8, !tbaa !11
  %501 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %500, i32 0, i32 7
  %502 = load i64, ptr %501, align 8, !tbaa !47
  %503 = load i32, ptr %17, align 4, !tbaa !9
  %504 = zext i32 %503 to i64
  %505 = add i64 %502, %504
  %506 = load ptr, ptr %10, align 8, !tbaa !5
  %507 = getelementptr inbounds %struct.unz64_s, ptr %506, i32 0, i32 14
  %508 = load ptr, ptr %507, align 8, !tbaa !11
  %509 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %508, i32 0, i32 7
  store i64 %505, ptr %509, align 8, !tbaa !47
  %510 = load i32, ptr %17, align 4, !tbaa !9
  %511 = zext i32 %510 to i64
  %512 = load ptr, ptr %10, align 8, !tbaa !5
  %513 = getelementptr inbounds %struct.unz64_s, ptr %512, i32 0, i32 14
  %514 = load ptr, ptr %513, align 8, !tbaa !11
  %515 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %514, i32 0, i32 11
  %516 = load i64, ptr %515, align 8, !tbaa !29
  %517 = sub i64 %516, %511
  store i64 %517, ptr %515, align 8, !tbaa !29
  %518 = load ptr, ptr %10, align 8, !tbaa !5
  %519 = getelementptr inbounds %struct.unz64_s, ptr %518, i32 0, i32 14
  %520 = load ptr, ptr %519, align 8, !tbaa !11
  %521 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %520, i32 0, i32 8
  %522 = load i64, ptr %521, align 8, !tbaa !48
  %523 = load ptr, ptr %10, align 8, !tbaa !5
  %524 = getelementptr inbounds %struct.unz64_s, ptr %523, i32 0, i32 14
  %525 = load ptr, ptr %524, align 8, !tbaa !11
  %526 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %525, i32 0, i32 1
  %527 = getelementptr inbounds %struct.z_stream_s, ptr %526, i32 0, i32 3
  %528 = load ptr, ptr %527, align 8, !tbaa !24
  %529 = load i32, ptr %17, align 4, !tbaa !9
  %530 = call i64 @crc32(i64 noundef %522, ptr noundef %528, i32 noundef %529)
  %531 = load ptr, ptr %10, align 8, !tbaa !5
  %532 = getelementptr inbounds %struct.unz64_s, ptr %531, i32 0, i32 14
  %533 = load ptr, ptr %532, align 8, !tbaa !11
  %534 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %533, i32 0, i32 8
  store i64 %530, ptr %534, align 8, !tbaa !48
  %535 = load i32, ptr %17, align 4, !tbaa !9
  %536 = load ptr, ptr %10, align 8, !tbaa !5
  %537 = getelementptr inbounds %struct.unz64_s, ptr %536, i32 0, i32 14
  %538 = load ptr, ptr %537, align 8, !tbaa !11
  %539 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %538, i32 0, i32 1
  %540 = getelementptr inbounds %struct.z_stream_s, ptr %539, i32 0, i32 1
  %541 = load i32, ptr %540, align 8, !tbaa !28
  %542 = sub i32 %541, %535
  store i32 %542, ptr %540, align 8, !tbaa !28
  %543 = load i32, ptr %17, align 4, !tbaa !9
  %544 = load ptr, ptr %10, align 8, !tbaa !5
  %545 = getelementptr inbounds %struct.unz64_s, ptr %544, i32 0, i32 14
  %546 = load ptr, ptr %545, align 8, !tbaa !11
  %547 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %546, i32 0, i32 1
  %548 = getelementptr inbounds %struct.z_stream_s, ptr %547, i32 0, i32 4
  %549 = load i32, ptr %548, align 8, !tbaa !25
  %550 = sub i32 %549, %543
  store i32 %550, ptr %548, align 8, !tbaa !25
  %551 = load i32, ptr %17, align 4, !tbaa !9
  %552 = load ptr, ptr %10, align 8, !tbaa !5
  %553 = getelementptr inbounds %struct.unz64_s, ptr %552, i32 0, i32 14
  %554 = load ptr, ptr %553, align 8, !tbaa !11
  %555 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %554, i32 0, i32 1
  %556 = getelementptr inbounds %struct.z_stream_s, ptr %555, i32 0, i32 3
  %557 = load ptr, ptr %556, align 8, !tbaa !24
  %558 = zext i32 %551 to i64
  %559 = getelementptr inbounds i8, ptr %557, i64 %558
  store ptr %559, ptr %556, align 8, !tbaa !24
  %560 = load i32, ptr %17, align 4, !tbaa !9
  %561 = load ptr, ptr %10, align 8, !tbaa !5
  %562 = getelementptr inbounds %struct.unz64_s, ptr %561, i32 0, i32 14
  %563 = load ptr, ptr %562, align 8, !tbaa !11
  %564 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %563, i32 0, i32 1
  %565 = getelementptr inbounds %struct.z_stream_s, ptr %564, i32 0, i32 0
  %566 = load ptr, ptr %565, align 8, !tbaa !31
  %567 = zext i32 %560 to i64
  %568 = getelementptr inbounds i8, ptr %566, i64 %567
  store ptr %568, ptr %565, align 8, !tbaa !31
  %569 = load i32, ptr %17, align 4, !tbaa !9
  %570 = zext i32 %569 to i64
  %571 = load ptr, ptr %10, align 8, !tbaa !5
  %572 = getelementptr inbounds %struct.unz64_s, ptr %571, i32 0, i32 14
  %573 = load ptr, ptr %572, align 8, !tbaa !11
  %574 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %573, i32 0, i32 1
  %575 = getelementptr inbounds %struct.z_stream_s, ptr %574, i32 0, i32 5
  %576 = load i64, ptr %575, align 8, !tbaa !49
  %577 = add i64 %576, %570
  store i64 %577, ptr %575, align 8, !tbaa !49
  %578 = load i32, ptr %17, align 4, !tbaa !9
  %579 = load i32, ptr %9, align 4, !tbaa !9
  %580 = add i32 %579, %578
  store i32 %580, ptr %9, align 4, !tbaa !9
  store i32 0, ptr %11, align 4
  br label %581

581:                                              ; preds = %497, %439
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  %582 = load i32, ptr %11, align 4
  switch i32 %582, label %692 [
    i32 0, label %583
  ]

583:                                              ; preds = %581
  br label %684

584:                                              ; preds = %411
  %585 = load ptr, ptr %10, align 8, !tbaa !5
  %586 = getelementptr inbounds %struct.unz64_s, ptr %585, i32 0, i32 14
  %587 = load ptr, ptr %586, align 8, !tbaa !11
  %588 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %587, i32 0, i32 14
  %589 = load i64, ptr %588, align 8, !tbaa !45
  %590 = icmp eq i64 %589, 12
  br i1 %590, label %591, label %592

591:                                              ; preds = %584
  br label %683

592:                                              ; preds = %584
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #4
  store i32 2, ptr %23, align 4, !tbaa !9
  %593 = load ptr, ptr %10, align 8, !tbaa !5
  %594 = getelementptr inbounds %struct.unz64_s, ptr %593, i32 0, i32 14
  %595 = load ptr, ptr %594, align 8, !tbaa !11
  %596 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %595, i32 0, i32 1
  %597 = getelementptr inbounds %struct.z_stream_s, ptr %596, i32 0, i32 5
  %598 = load i64, ptr %597, align 8, !tbaa !49
  store i64 %598, ptr %19, align 8, !tbaa !50
  %599 = load ptr, ptr %10, align 8, !tbaa !5
  %600 = getelementptr inbounds %struct.unz64_s, ptr %599, i32 0, i32 14
  %601 = load ptr, ptr %600, align 8, !tbaa !11
  %602 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %601, i32 0, i32 1
  %603 = getelementptr inbounds %struct.z_stream_s, ptr %602, i32 0, i32 3
  %604 = load ptr, ptr %603, align 8, !tbaa !24
  store ptr %604, ptr %21, align 8, !tbaa !5
  %605 = load ptr, ptr %10, align 8, !tbaa !5
  %606 = getelementptr inbounds %struct.unz64_s, ptr %605, i32 0, i32 14
  %607 = load ptr, ptr %606, align 8, !tbaa !11
  %608 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %607, i32 0, i32 1
  %609 = load i32, ptr %23, align 4, !tbaa !9
  %610 = call i32 @inflate(ptr noundef %608, i32 noundef %609)
  store i32 %610, ptr %8, align 4, !tbaa !9
  %611 = load i32, ptr %8, align 4, !tbaa !9
  %612 = icmp sge i32 %611, 0
  br i1 %612, label %613, label %622

613:                                              ; preds = %592
  %614 = load ptr, ptr %10, align 8, !tbaa !5
  %615 = getelementptr inbounds %struct.unz64_s, ptr %614, i32 0, i32 14
  %616 = load ptr, ptr %615, align 8, !tbaa !11
  %617 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %616, i32 0, i32 1
  %618 = getelementptr inbounds %struct.z_stream_s, ptr %617, i32 0, i32 6
  %619 = load ptr, ptr %618, align 8, !tbaa !51
  %620 = icmp ne ptr %619, null
  br i1 %620, label %621, label %622

621:                                              ; preds = %613
  store i32 -3, ptr %8, align 4, !tbaa !9
  br label %622

622:                                              ; preds = %621, %613, %592
  %623 = load ptr, ptr %10, align 8, !tbaa !5
  %624 = getelementptr inbounds %struct.unz64_s, ptr %623, i32 0, i32 14
  %625 = load ptr, ptr %624, align 8, !tbaa !11
  %626 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %625, i32 0, i32 1
  %627 = getelementptr inbounds %struct.z_stream_s, ptr %626, i32 0, i32 5
  %628 = load i64, ptr %627, align 8, !tbaa !49
  store i64 %628, ptr %20, align 8, !tbaa !50
  %629 = load i64, ptr %20, align 8, !tbaa !50
  %630 = load i64, ptr %19, align 8, !tbaa !50
  %631 = sub i64 %629, %630
  store i64 %631, ptr %22, align 8, !tbaa !50
  %632 = load i64, ptr %22, align 8, !tbaa !50
  %633 = load ptr, ptr %10, align 8, !tbaa !5
  %634 = getelementptr inbounds %struct.unz64_s, ptr %633, i32 0, i32 14
  %635 = load ptr, ptr %634, align 8, !tbaa !11
  %636 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %635, i32 0, i32 7
  %637 = load i64, ptr %636, align 8, !tbaa !47
  %638 = add i64 %637, %632
  store i64 %638, ptr %636, align 8, !tbaa !47
  %639 = load i64, ptr %22, align 8, !tbaa !50
  %640 = load ptr, ptr %10, align 8, !tbaa !5
  %641 = getelementptr inbounds %struct.unz64_s, ptr %640, i32 0, i32 14
  %642 = load ptr, ptr %641, align 8, !tbaa !11
  %643 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %642, i32 0, i32 11
  %644 = load i64, ptr %643, align 8, !tbaa !29
  %645 = sub i64 %644, %639
  store i64 %645, ptr %643, align 8, !tbaa !29
  %646 = load ptr, ptr %10, align 8, !tbaa !5
  %647 = getelementptr inbounds %struct.unz64_s, ptr %646, i32 0, i32 14
  %648 = load ptr, ptr %647, align 8, !tbaa !11
  %649 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %648, i32 0, i32 8
  %650 = load i64, ptr %649, align 8, !tbaa !48
  %651 = load ptr, ptr %21, align 8, !tbaa !5
  %652 = load i64, ptr %22, align 8, !tbaa !50
  %653 = trunc i64 %652 to i32
  %654 = call i64 @crc32(i64 noundef %650, ptr noundef %651, i32 noundef %653)
  %655 = load ptr, ptr %10, align 8, !tbaa !5
  %656 = getelementptr inbounds %struct.unz64_s, ptr %655, i32 0, i32 14
  %657 = load ptr, ptr %656, align 8, !tbaa !11
  %658 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %657, i32 0, i32 8
  store i64 %654, ptr %658, align 8, !tbaa !48
  %659 = load i64, ptr %20, align 8, !tbaa !50
  %660 = load i64, ptr %19, align 8, !tbaa !50
  %661 = sub i64 %659, %660
  %662 = trunc i64 %661 to i32
  %663 = load i32, ptr %9, align 4, !tbaa !9
  %664 = add i32 %663, %662
  store i32 %664, ptr %9, align 4, !tbaa !9
  %665 = load i32, ptr %8, align 4, !tbaa !9
  %666 = icmp eq i32 %665, 1
  br i1 %666, label %667, label %675

667:                                              ; preds = %622
  %668 = load i32, ptr %9, align 4, !tbaa !9
  %669 = icmp eq i32 %668, 0
  br i1 %669, label %670, label %671

670:                                              ; preds = %667
  br label %673

671:                                              ; preds = %667
  %672 = load i32, ptr %9, align 4, !tbaa !9
  br label %673

673:                                              ; preds = %671, %670
  %674 = phi i32 [ 0, %670 ], [ %672, %671 ]
  store i32 %674, ptr %4, align 4
  store i32 1, ptr %11, align 4
  br label %680

675:                                              ; preds = %622
  %676 = load i32, ptr %8, align 4, !tbaa !9
  %677 = icmp ne i32 %676, 0
  br i1 %677, label %678, label %679

678:                                              ; preds = %675
  store i32 3, ptr %11, align 4
  br label %680

679:                                              ; preds = %675
  store i32 0, ptr %11, align 4
  br label %680

680:                                              ; preds = %679, %678, %673
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  %681 = load i32, ptr %11, align 4
  switch i32 %681, label %692 [
    i32 0, label %682
    i32 3, label %685
  ]

682:                                              ; preds = %680
  br label %683

683:                                              ; preds = %682, %591
  br label %684

684:                                              ; preds = %683, %583
  br label %125, !llvm.loop !52

685:                                              ; preds = %680, %125
  %686 = load i32, ptr %8, align 4, !tbaa !9
  %687 = icmp eq i32 %686, 0
  br i1 %687, label %688, label %690

688:                                              ; preds = %685
  %689 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %689, ptr %4, align 4
  store i32 1, ptr %11, align 4
  br label %692

690:                                              ; preds = %685
  %691 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %691, ptr %4, align 4
  store i32 1, ptr %11, align 4
  br label %692

692:                                              ; preds = %690, %688, %680, %581, %401, %45, %41, %33, %26
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  %693 = load i32, ptr %4, align 4
  ret i32 %693
}

; Function Attrs: nounwind uwtable
declare hidden i32 @unzGoToNextDisk(ptr noundef) #3

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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 376}
!12 = !{!"", !13, i64 0, !6, i64 104, !6, i64 112, !15, i64 120, !16, i64 144, !16, i64 152, !16, i64 160, !16, i64 168, !16, i64 176, !17, i64 184, !16, i64 192, !16, i64 200, !18, i64 208, !20, i64 360, !6, i64 376, !10, i64 384, !7, i64 392, !6, i64 416}
!13 = !{!"zlib_filefunc64_32_def_s", !14, i64 0, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96}
!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, !6, i64 64}
!15 = !{!"unz_global_info64_s", !16, i64 0, !17, i64 8, !17, i64 16}
!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, !16, i64 136, !17, i64 144}
!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, !16, i64 8}
!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 304, !17, i64 312, !16, i64 320, !10, i64 328}
!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, !10, i64 328}
!27 = !{!22, !16, i64 184}
!28 = !{!22, !10, i64 16}
!29 = !{!22, !16, i64 192}
!30 = !{!17, !17, i64 0}
!31 = !{!22, !6, i64 8}
!32 = !{!22, !6, i64 304}
!33 = !{!22, !16, i64 120}
!34 = !{!22, !16, i64 320}
!35 = !{!22, !6, i64 216}
!36 = !{!22, !6, i64 264}
!37 = !{!22, !6, i64 256}
!38 = !{!12, !6, i64 104}
!39 = distinct !{!39, !40}
!40 = !{!"llvm.loop.mustprogress"}
!41 = !{!12, !17, i64 224}
!42 = !{!12, !6, i64 416}
!43 = !{!7, !7, i64 0}
!44 = distinct !{!44, !40}
!45 = !{!22, !17, i64 312}
!46 = distinct !{!46, !40}
!47 = !{!22, !16, i64 160}
!48 = !{!22, !17, i64 168}
!49 = !{!22, !17, i64 48}
!50 = !{!16, !16, i64 0}
!51 = !{!22, !6, i64 56}
!52 = distinct !{!52, !40}


; 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #0

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @unzReadCurrentFile(ptr noundef %0, ptr noundef %1, i32 noundef %2) local_unnamed_addr #2 {
  %4 = icmp eq ptr %0, null
  br i1 %4, label %.thread202, label %5

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

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

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

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

20:                                               ; preds = %14
  %21 = getelementptr inbounds i8, ptr %7, i64 184
  %22 = load i64, ptr %21, align 8, !tbaa !25
  %23 = getelementptr inbounds i8, ptr %7, i64 16
  %24 = load i32, ptr %23, align 8, !tbaa !26
  %25 = zext i32 %24 to i64
  %26 = add i64 %22, %25
  %27 = icmp ult i64 %26, %19
  br i1 %27, label %28, label %.lr.ph229

28:                                               ; preds = %20
  %29 = trunc i64 %22 to i32
  %30 = add i32 %24, %29
  br label %37

31:                                               ; preds = %14
  %32 = getelementptr inbounds i8, ptr %7, i64 192
  %33 = load i64, ptr %32, align 8, !tbaa !27
  %34 = icmp ult i64 %33, %19
  br i1 %34, label %35, label %.lr.ph229

35:                                               ; preds = %31
  %36 = trunc nuw i64 %33 to i32
  br label %37

37:                                               ; preds = %35, %28
  %.sink = phi i32 [ %36, %35 ], [ %30, %28 ]
  store i32 %.sink, ptr %16, align 8, !tbaa !23
  %.not186226 = icmp eq i32 %.sink, 0
  br i1 %.not186226, label %.thread202, label %.lr.ph229

.lr.ph229:                                        ; preds = %20, %31, %37
  %38 = getelementptr inbounds i8, ptr %0, i64 104
  %39 = getelementptr inbounds i8, ptr %0, i64 224
  %40 = getelementptr inbounds i8, ptr %0, i64 416
  %41 = getelementptr inbounds i8, ptr %0, i64 392
  br label %42

42:                                               ; preds = %.lr.ph229, %.thread212
  %43 = phi ptr [ %7, %.lr.ph229 ], [ %245, %.thread212 ]
  %.0158227 = phi i32 [ 0, %.lr.ph229 ], [ %.2160, %.thread212 ]
  %44 = getelementptr inbounds i8, ptr %43, i64 16
  %45 = load i32, ptr %44, align 8, !tbaa !26
  %46 = icmp eq i32 %45, 0
  br i1 %46, label %47, label %143

47:                                               ; preds = %42
  %48 = getelementptr inbounds i8, ptr %43, i64 8
  %49 = load ptr, ptr %48, align 8, !tbaa !28
  %.not187 = icmp eq ptr %49, null
  br i1 %.not187, label %.thread, label %50

50:                                               ; preds = %47
  %51 = load ptr, ptr %43, align 8, !tbaa !19
  %52 = getelementptr inbounds i8, ptr %51, i64 65536
  %53 = ptrtoint ptr %52 to i64
  %54 = ptrtoint ptr %49 to i64
  %55 = sub i64 %53, %54
  %.not188 = icmp eq i64 %55, 0
  br i1 %.not188, label %.thread, label %56

56:                                               ; preds = %50
  %57 = sub i64 65536, %55
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 1 %51, ptr nonnull align 1 %49, i64 %55, i1 false)
  %.pre = load ptr, ptr %6, align 8, !tbaa !5
  br label %.thread

.thread:                                          ; preds = %47, %56, %50
  %58 = phi ptr [ %.pre, %56 ], [ %43, %50 ], [ %43, %47 ]
  %59 = phi i64 [ %57, %56 ], [ 65536, %50 ], [ 65536, %47 ]
  %.0170201 = phi i64 [ %55, %56 ], [ 0, %50 ], [ 0, %47 ]
  %60 = getelementptr inbounds i8, ptr %58, i64 184
  %61 = load i64, ptr %60, align 8, !tbaa !25
  %62 = icmp ult i64 %61, %59
  %63 = and i64 %61, 4294967295
  %spec.select = select i1 %62, i64 %63, i64 %59
  %.not189219 = icmp eq i64 %spec.select, 0
  br i1 %.not189219, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.thread, %108
  %64 = phi ptr [ %109, %108 ], [ %58, %.thread ]
  %.0169220 = phi i64 [ %87, %108 ], [ 0, %.thread ]
  %65 = getelementptr inbounds i8, ptr %64, i64 200
  %66 = getelementptr inbounds i8, ptr %64, i64 304
  %67 = load ptr, ptr %66, align 8, !tbaa !29
  %68 = getelementptr inbounds i8, ptr %64, i64 120
  %69 = load i64, ptr %68, align 8, !tbaa !30
  %70 = getelementptr inbounds i8, ptr %64, i64 320
  %71 = load i64, ptr %70, align 8, !tbaa !31
  %72 = add i64 %71, %69
  %73 = tail call i64 @call_zseek64(ptr noundef nonnull %65, ptr noundef %67, i64 noundef %72, i32 noundef 0) #4
  %.not192 = icmp eq i64 %73, 0
  br i1 %.not192, label %74, label %.thread202

74:                                               ; preds = %.lr.ph
  %75 = load ptr, ptr %6, align 8, !tbaa !5
  %76 = getelementptr inbounds i8, ptr %75, i64 216
  %77 = load ptr, ptr %76, align 8, !tbaa !32
  %78 = getelementptr inbounds i8, ptr %75, i64 264
  %79 = load ptr, ptr %78, align 8, !tbaa !33
  %80 = getelementptr inbounds i8, ptr %75, i64 304
  %81 = load ptr, ptr %80, align 8, !tbaa !29
  %82 = load ptr, ptr %75, align 8, !tbaa !19
  %83 = getelementptr inbounds i8, ptr %82, i64 %.0170201
  %84 = getelementptr inbounds i8, ptr %83, i64 %.0169220
  %85 = sub i64 %spec.select, %.0169220
  %86 = tail call i64 %77(ptr noundef %79, ptr noundef %81, ptr noundef %84, i64 noundef %85) #4
  %87 = add i64 %86, %.0169220
  %88 = load ptr, ptr %6, align 8, !tbaa !5
  %89 = getelementptr inbounds i8, ptr %88, i64 120
  %90 = load i64, ptr %89, align 8, !tbaa !30
  %91 = add i64 %90, %86
  store i64 %91, ptr %89, align 8, !tbaa !30
  %92 = icmp eq i64 %86, 0
  br i1 %92, label %93, label %108

93:                                               ; preds = %74
  %94 = getelementptr inbounds i8, ptr %88, i64 256
  %95 = load ptr, ptr %94, align 8, !tbaa !34
  %96 = getelementptr inbounds i8, ptr %88, i64 264
  %97 = load ptr, ptr %96, align 8, !tbaa !33
  %98 = getelementptr inbounds i8, ptr %88, i64 304
  %99 = load ptr, ptr %98, align 8, !tbaa !29
  %100 = tail call i32 %95(ptr noundef %97, ptr noundef %99) #4
  %.not193 = icmp eq i32 %100, 0
  br i1 %.not193, label %101, label %.thread202

101:                                              ; preds = %93
  %102 = tail call i32 @unzGoToNextDisk(ptr noundef nonnull %0)
  %.not194 = icmp eq i32 %102, 0
  br i1 %.not194, label %103, label %.thread202

103:                                              ; preds = %101
  %104 = load ptr, ptr %6, align 8, !tbaa !5
  %105 = getelementptr inbounds i8, ptr %104, i64 120
  store i64 0, ptr %105, align 8, !tbaa !30
  %106 = load ptr, ptr %38, align 8, !tbaa !35
  %107 = getelementptr inbounds i8, ptr %104, i64 304
  store ptr %106, ptr %107, align 8, !tbaa !29
  br label %108

108:                                              ; preds = %103, %74
  %109 = phi ptr [ %104, %103 ], [ %88, %74 ]
  %.not189 = icmp eq i64 %87, %spec.select
  br i1 %.not189, label %._crit_edge, label %.lr.ph, !llvm.loop !36

._crit_edge:                                      ; preds = %108, %.thread
  %110 = phi ptr [ %58, %.thread ], [ %109, %108 ]
  %111 = load i64, ptr %39, align 8, !tbaa !38
  %112 = and i64 %111, 1
  %.not190 = icmp eq i64 %112, 0
  br i1 %.not190, label %.loopexit, label %113

113:                                              ; preds = %._crit_edge
  %114 = load ptr, ptr %40, align 8, !tbaa !39
  %.not191 = icmp ne ptr %114, null
  %115 = icmp ne i64 %spec.select, 0
  %or.cond = and i1 %.not191, %115
  br i1 %or.cond, label %.lr.ph222, label %.loopexit

.lr.ph222:                                        ; preds = %113, %.lr.ph222
  %116 = phi i64 [ %132, %.lr.ph222 ], [ 0, %113 ]
  %.0168221 = phi i32 [ %131, %.lr.ph222 ], [ 0, %113 ]
  %117 = load ptr, ptr %40, align 8, !tbaa !39
  %118 = tail call i32 @decrypt_byte(ptr noundef nonnull %41)
  %119 = load ptr, ptr %6, align 8, !tbaa !5
  %120 = load ptr, ptr %119, align 8, !tbaa !19
  %121 = getelementptr inbounds i8, ptr %120, i64 %116
  %122 = load i8, ptr %121, align 1, !tbaa !40
  %123 = trunc i32 %118 to i8
  %124 = xor i8 %122, %123
  store i8 %124, ptr %121, align 1, !tbaa !40
  %125 = zext i8 %124 to i32
  %126 = tail call i32 @update_keys(ptr noundef nonnull %41, ptr noundef %117, i32 noundef %125)
  %127 = trunc i32 %126 to i8
  %128 = load ptr, ptr %6, align 8, !tbaa !5
  %129 = load ptr, ptr %128, align 8, !tbaa !19
  %130 = getelementptr inbounds i8, ptr %129, i64 %116
  store i8 %127, ptr %130, align 1, !tbaa !40
  %131 = add i32 %.0168221, 1
  %132 = zext i32 %131 to i64
  %133 = icmp ugt i64 %spec.select, %132
  br i1 %133, label %.lr.ph222, label %.loopexit.loopexit, !llvm.loop !41

.loopexit.loopexit:                               ; preds = %.lr.ph222
  %.pre239 = load ptr, ptr %6, align 8, !tbaa !5
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit, %._crit_edge, %113
  %134 = phi ptr [ %.pre239, %.loopexit.loopexit ], [ %110, %._crit_edge ], [ %110, %113 ]
  %135 = getelementptr inbounds i8, ptr %134, i64 184
  %136 = load i64, ptr %135, align 8, !tbaa !25
  %137 = sub i64 %136, %spec.select
  store i64 %137, ptr %135, align 8, !tbaa !25
  %138 = load ptr, ptr %134, align 8, !tbaa !19
  %139 = getelementptr inbounds i8, ptr %134, i64 8
  store ptr %138, ptr %139, align 8, !tbaa !28
  %140 = add i64 %spec.select, %.0170201
  %141 = trunc i64 %140 to i32
  %142 = getelementptr inbounds i8, ptr %134, i64 16
  store i32 %141, ptr %142, align 8, !tbaa !26
  br label %143

143:                                              ; preds = %.loopexit, %42
  %144 = phi ptr [ %134, %.loopexit ], [ %43, %42 ]
  %145 = phi i32 [ %141, %.loopexit ], [ %45, %42 ]
  %146 = getelementptr inbounds i8, ptr %144, i64 312
  %147 = load i64, ptr %146, align 8, !tbaa !42
  %148 = icmp eq i64 %147, 0
  br i1 %148, label %152, label %149

149:                                              ; preds = %143
  %150 = getelementptr inbounds i8, ptr %144, i64 328
  %151 = load i32, ptr %150, align 8, !tbaa !24
  %.not195 = icmp eq i32 %151, 0
  br i1 %.not195, label %216, label %152

152:                                              ; preds = %149, %143
  %153 = icmp eq i32 %145, 0
  br i1 %153, label %154, label %158

154:                                              ; preds = %152
  %155 = getelementptr inbounds i8, ptr %144, i64 184
  %156 = load i64, ptr %155, align 8, !tbaa !25
  %157 = icmp eq i64 %156, 0
  br i1 %157, label %.thread202, label %158

158:                                              ; preds = %154, %152
  %159 = getelementptr inbounds i8, ptr %144, i64 40
  %160 = load i32, ptr %159, align 8, !tbaa !23
  %. = tail call i32 @llvm.umin.i32(i32 %160, i32 %145)
  %.not235 = icmp eq i32 %., 0
  br i1 %.not235, label %.thread205, label %.lr.ph225.preheader

.lr.ph225.preheader:                              ; preds = %158
  %wide.trip.count = zext i32 %. to i64
  %xtraiter = and i64 %wide.trip.count, 1
  %161 = icmp eq i32 %., 1
  br i1 %161, label %.thread205.loopexit.unr-lcssa, label %.lr.ph225.preheader.new

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

.lr.ph225:                                        ; preds = %.lr.ph225, %.lr.ph225.preheader.new
  %indvars.iv = phi i64 [ 0, %.lr.ph225.preheader.new ], [ %indvars.iv.next.1, %.lr.ph225 ]
  %niter = phi i64 [ 0, %.lr.ph225.preheader.new ], [ %niter.next.1, %.lr.ph225 ]
  %162 = load ptr, ptr %6, align 8, !tbaa !5
  %163 = getelementptr inbounds i8, ptr %162, i64 8
  %164 = load ptr, ptr %163, align 8, !tbaa !28
  %165 = getelementptr inbounds i8, ptr %164, i64 %indvars.iv
  %166 = load i8, ptr %165, align 1, !tbaa !40
  %167 = getelementptr inbounds i8, ptr %162, i64 32
  %168 = load ptr, ptr %167, align 8, !tbaa !22
  %169 = getelementptr inbounds i8, ptr %168, i64 %indvars.iv
  store i8 %166, ptr %169, align 1, !tbaa !40
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %170 = load ptr, ptr %6, align 8, !tbaa !5
  %171 = getelementptr inbounds i8, ptr %170, i64 8
  %172 = load ptr, ptr %171, align 8, !tbaa !28
  %173 = getelementptr inbounds i8, ptr %172, i64 %indvars.iv.next
  %174 = load i8, ptr %173, align 1, !tbaa !40
  %175 = getelementptr inbounds i8, ptr %170, i64 32
  %176 = load ptr, ptr %175, align 8, !tbaa !22
  %177 = getelementptr inbounds i8, ptr %176, i64 %indvars.iv.next
  store i8 %174, ptr %177, align 1, !tbaa !40
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %.thread205.loopexit.unr-lcssa, label %.lr.ph225, !llvm.loop !43

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

.lr.ph225.epil:                                   ; preds = %.thread205.loopexit.unr-lcssa
  %178 = load ptr, ptr %6, align 8, !tbaa !5
  %179 = getelementptr inbounds i8, ptr %178, i64 8
  %180 = load ptr, ptr %179, align 8, !tbaa !28
  %181 = getelementptr inbounds i8, ptr %180, i64 %indvars.iv.unr
  %182 = load i8, ptr %181, align 1, !tbaa !40
  %183 = getelementptr inbounds i8, ptr %178, i64 32
  %184 = load ptr, ptr %183, align 8, !tbaa !22
  %185 = getelementptr inbounds i8, ptr %184, i64 %indvars.iv.unr
  store i8 %182, ptr %185, align 1, !tbaa !40
  br label %.thread205.loopexit

.thread205.loopexit:                              ; preds = %.thread205.loopexit.unr-lcssa, %.lr.ph225.epil
  %.pre241 = load ptr, ptr %6, align 8, !tbaa !5
  br label %.thread205

.thread205:                                       ; preds = %158, %.thread205.loopexit
  %.pre-phi = phi i64 [ %wide.trip.count, %.thread205.loopexit ], [ 0, %158 ]
  %186 = phi ptr [ %.pre241, %.thread205.loopexit ], [ %144, %158 ]
  %187 = getelementptr inbounds i8, ptr %186, i64 160
  %188 = load i64, ptr %187, align 8, !tbaa !44
  %189 = add i64 %188, %.pre-phi
  store i64 %189, ptr %187, align 8, !tbaa !44
  %190 = getelementptr inbounds i8, ptr %186, i64 192
  %191 = load i64, ptr %190, align 8, !tbaa !27
  %192 = sub i64 %191, %.pre-phi
  store i64 %192, ptr %190, align 8, !tbaa !27
  %193 = getelementptr inbounds i8, ptr %186, i64 168
  %194 = load i64, ptr %193, align 8, !tbaa !45
  %195 = getelementptr inbounds i8, ptr %186, i64 32
  %196 = load ptr, ptr %195, align 8, !tbaa !22
  %197 = tail call i64 @crc32(i64 noundef %194, ptr noundef %196, i32 noundef %.) #4
  %198 = load ptr, ptr %6, align 8, !tbaa !5
  %199 = getelementptr inbounds i8, ptr %198, i64 168
  store i64 %197, ptr %199, align 8, !tbaa !45
  %200 = getelementptr inbounds i8, ptr %198, i64 16
  %201 = load i32, ptr %200, align 8, !tbaa !26
  %202 = sub i32 %201, %.
  store i32 %202, ptr %200, align 8, !tbaa !26
  %203 = getelementptr inbounds i8, ptr %198, i64 40
  %204 = load i32, ptr %203, align 8, !tbaa !23
  %205 = sub i32 %204, %.
  store i32 %205, ptr %203, align 8, !tbaa !23
  %206 = getelementptr inbounds i8, ptr %198, i64 32
  %207 = load ptr, ptr %206, align 8, !tbaa !22
  %208 = getelementptr inbounds i8, ptr %207, i64 %.pre-phi
  store ptr %208, ptr %206, align 8, !tbaa !22
  %209 = getelementptr inbounds i8, ptr %198, i64 8
  %210 = load ptr, ptr %209, align 8, !tbaa !28
  %211 = getelementptr inbounds i8, ptr %210, i64 %.pre-phi
  store ptr %211, ptr %209, align 8, !tbaa !28
  %212 = getelementptr inbounds i8, ptr %198, i64 48
  %213 = load i64, ptr %212, align 8, !tbaa !46
  %214 = add i64 %213, %.pre-phi
  store i64 %214, ptr %212, align 8, !tbaa !46
  %215 = add i32 %., %.0158227
  br label %.thread212

216:                                              ; preds = %149
  %217 = icmp eq i64 %147, 12
  br i1 %217, label %.thread212, label %218

218:                                              ; preds = %216
  %219 = getelementptr inbounds i8, ptr %144, i64 8
  %220 = getelementptr inbounds i8, ptr %144, i64 48
  %221 = load i64, ptr %220, align 8, !tbaa !46
  %222 = getelementptr inbounds i8, ptr %144, i64 32
  %223 = load ptr, ptr %222, align 8, !tbaa !22
  %224 = tail call i32 @inflate(ptr noundef nonnull %219, i32 noundef 2) #4
  %225 = icmp sgt i32 %224, -1
  %.pre240 = load ptr, ptr %6, align 8, !tbaa !5
  br i1 %225, label %226, label %select.unfold

226:                                              ; preds = %218
  %227 = getelementptr inbounds i8, ptr %.pre240, i64 56
  %228 = load ptr, ptr %227, align 8, !tbaa !47
  %.not196 = icmp eq ptr %228, null
  %spec.select253 = select i1 %.not196, i32 %224, i32 -3
  br label %select.unfold

select.unfold:                                    ; preds = %226, %218
  %.5156 = phi i32 [ %224, %218 ], [ %spec.select253, %226 ]
  %229 = getelementptr inbounds i8, ptr %.pre240, i64 48
  %230 = load i64, ptr %229, align 8, !tbaa !46
  %231 = sub i64 %230, %221
  %232 = getelementptr inbounds i8, ptr %.pre240, i64 160
  %233 = load i64, ptr %232, align 8, !tbaa !44
  %234 = add i64 %233, %231
  store i64 %234, ptr %232, align 8, !tbaa !44
  %235 = getelementptr inbounds i8, ptr %.pre240, i64 192
  %236 = load i64, ptr %235, align 8, !tbaa !27
  %237 = sub i64 %236, %231
  store i64 %237, ptr %235, align 8, !tbaa !27
  %238 = getelementptr inbounds i8, ptr %.pre240, i64 168
  %239 = load i64, ptr %238, align 8, !tbaa !45
  %240 = trunc i64 %231 to i32
  %241 = tail call i64 @crc32(i64 noundef %239, ptr noundef %223, i32 noundef %240) #4
  %242 = load ptr, ptr %6, align 8, !tbaa !5
  %243 = getelementptr inbounds i8, ptr %242, i64 168
  store i64 %241, ptr %243, align 8, !tbaa !45
  %244 = add i32 %.0158227, %240
  switch i32 %.5156, label %.thread202.loopexit256 [
    i32 1, label %.thread202
    i32 0, label %.thread212
  ]

.thread212:                                       ; preds = %select.unfold, %.thread205, %216
  %245 = phi ptr [ %144, %216 ], [ %198, %.thread205 ], [ %242, %select.unfold ]
  %.2160 = phi i32 [ %.0158227, %216 ], [ %215, %.thread205 ], [ %244, %select.unfold ]
  %246 = getelementptr inbounds i8, ptr %245, i64 40
  %247 = load i32, ptr %246, align 8, !tbaa !23
  %.not186 = icmp eq i32 %247, 0
  br i1 %.not186, label %.thread202, label %42, !llvm.loop !48

.thread202.loopexit256:                           ; preds = %select.unfold
  br label %.thread202

.thread202:                                       ; preds = %154, %.thread212, %.lr.ph, %93, %101, %select.unfold, %.thread202.loopexit256, %37, %12, %9, %5, %3
  %.6 = phi i32 [ -102, %3 ], [ -102, %5 ], [ -100, %9 ], [ 0, %12 ], [ 0, %37 ], [ %244, %select.unfold ], [ -1, %.lr.ph ], [ -1, %93 ], [ %102, %101 ], [ %.0158227, %154 ], [ %.2160, %.thread212 ], [ %.5156, %.thread202.loopexit256 ]
  ret i32 %.6
}

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

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 i32 @llvm.umin.i32(i32, i32) #3

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


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