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

@.str = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: 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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @unzOpenCurrentFile3(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4) #2 {
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i64, align 8
  %18 = alloca i32, align 4
  %19 = alloca [12 x i8], align 1
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store i32 %3, ptr %10, align 4, !tbaa !9
  store ptr %4, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 0, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr %19) #6
  %22 = load ptr, ptr %7, align 8, !tbaa !5
  %23 = icmp eq ptr %22, null
  br i1 %23, label %24, label %25

24:                                               ; preds = %5
  store i32 -102, ptr %6, align 4
  store i32 1, ptr %20, align 4
  br label %341

25:                                               ; preds = %5
  %26 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %26, ptr %15, align 8, !tbaa !5
  %27 = load ptr, ptr %15, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.unz64_s, ptr %27, i32 0, i32 7
  %29 = load i64, ptr %28, align 8, !tbaa !11
  %30 = icmp ne i64 %29, 0
  br i1 %30, label %32, label %31

31:                                               ; preds = %25
  store i32 -102, ptr %6, align 4
  store i32 1, ptr %20, align 4
  br label %341

32:                                               ; preds = %25
  %33 = load ptr, ptr %15, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.unz64_s, ptr %33, i32 0, i32 14
  %35 = load ptr, ptr %34, align 8, !tbaa !21
  %36 = icmp ne ptr %35, null
  br i1 %36, label %37, label %40

37:                                               ; preds = %32
  %38 = load ptr, ptr %7, align 8, !tbaa !5
  %39 = call i32 @unzCloseCurrentFile(ptr noundef %38)
  br label %40

40:                                               ; preds = %37, %32
  %41 = load ptr, ptr %15, align 8, !tbaa !5
  %42 = call i32 @unz64local_CheckCurrentFileCoherencyHeader(ptr noundef %41, ptr noundef %14, ptr noundef %17, ptr noundef %18)
  %43 = icmp ne i32 %42, 0
  br i1 %43, label %44, label %45

44:                                               ; preds = %40
  store i32 -103, ptr %6, align 4
  store i32 1, ptr %20, align 4
  br label %341

45:                                               ; preds = %40
  %46 = call noalias ptr @malloc(i64 noundef 336) #7
  store ptr %46, ptr %16, align 8, !tbaa !5
  %47 = load ptr, ptr %16, align 8, !tbaa !5
  %48 = icmp eq ptr %47, null
  br i1 %48, label %49, label %50

49:                                               ; preds = %45
  store i32 -104, ptr %6, align 4
  store i32 1, ptr %20, align 4
  br label %341

50:                                               ; preds = %45
  %51 = call noalias ptr @malloc(i64 noundef 65536) #7
  %52 = load ptr, ptr %16, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %52, i32 0, i32 0
  store ptr %51, ptr %53, align 8, !tbaa !22
  %54 = load i64, ptr %17, align 8, !tbaa !25
  %55 = load ptr, ptr %16, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %55, i32 0, i32 4
  store i64 %54, ptr %56, align 8, !tbaa !26
  %57 = load i32, ptr %18, align 4, !tbaa !9
  %58 = load ptr, ptr %16, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %58, i32 0, i32 5
  store i32 %57, ptr %59, align 8, !tbaa !27
  %60 = load ptr, ptr %16, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %60, i32 0, i32 6
  store i64 0, ptr %61, align 8, !tbaa !28
  %62 = load i32, ptr %10, align 4, !tbaa !9
  %63 = load ptr, ptr %16, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %63, i32 0, i32 16
  store i32 %62, ptr %64, align 8, !tbaa !29
  %65 = load ptr, ptr %16, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %65, i32 0, i32 0
  %67 = load ptr, ptr %66, align 8, !tbaa !22
  %68 = icmp eq ptr %67, null
  br i1 %68, label %69, label %75

69:                                               ; preds = %50
  %70 = load ptr, ptr %16, align 8, !tbaa !5
  %71 = icmp ne ptr %70, null
  br i1 %71, label %72, label %74

72:                                               ; preds = %69
  %73 = load ptr, ptr %16, align 8, !tbaa !5
  call void @free(ptr noundef %73) #6
  br label %74

74:                                               ; preds = %72, %69
  store i32 -104, ptr %6, align 4
  store i32 1, ptr %20, align 4
  br label %341

75:                                               ; preds = %50
  %76 = load ptr, ptr %16, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %76, i32 0, i32 3
  store i64 0, ptr %77, align 8, !tbaa !30
  %78 = load ptr, ptr %15, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.unz64_s, ptr %78, i32 0, i32 12
  %80 = getelementptr inbounds %struct.unz_file_info64_s, ptr %79, i32 0, i32 3
  %81 = load i64, ptr %80, align 8, !tbaa !31
  %82 = trunc i64 %81 to i32
  store i32 %82, ptr %13, align 4, !tbaa !9
  %83 = load ptr, ptr %8, align 8, !tbaa !5
  %84 = icmp ne ptr %83, null
  br i1 %84, label %85, label %88

85:                                               ; preds = %75
  %86 = load i32, ptr %13, align 4, !tbaa !9
  %87 = load ptr, ptr %8, align 8, !tbaa !5
  store i32 %86, ptr %87, align 4, !tbaa !9
  br label %88

88:                                               ; preds = %85, %75
  %89 = load ptr, ptr %9, align 8, !tbaa !5
  %90 = icmp ne ptr %89, null
  br i1 %90, label %91, label %105

91:                                               ; preds = %88
  %92 = load ptr, ptr %9, align 8, !tbaa !5
  store i32 6, ptr %92, align 4, !tbaa !9
  %93 = load ptr, ptr %15, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.unz64_s, ptr %93, i32 0, i32 12
  %95 = getelementptr inbounds %struct.unz_file_info64_s, ptr %94, i32 0, i32 2
  %96 = load i64, ptr %95, align 8, !tbaa !32
  %97 = and i64 %96, 6
  switch i64 %97, label %104 [
    i64 6, label %98
    i64 4, label %100
    i64 2, label %102
  ]

98:                                               ; preds = %91
  %99 = load ptr, ptr %9, align 8, !tbaa !5
  store i32 1, ptr %99, align 4, !tbaa !9
  br label %104

100:                                              ; preds = %91
  %101 = load ptr, ptr %9, align 8, !tbaa !5
  store i32 2, ptr %101, align 4, !tbaa !9
  br label %104

102:                                              ; preds = %91
  %103 = load ptr, ptr %9, align 8, !tbaa !5
  store i32 9, ptr %103, align 4, !tbaa !9
  br label %104

104:                                              ; preds = %102, %100, %98, %91
  br label %105

105:                                              ; preds = %104, %88
  %106 = load i32, ptr %13, align 4, !tbaa !9
  %107 = icmp ne i32 %106, 0
  br i1 %107, label %108, label %112

108:                                              ; preds = %105
  %109 = load i32, ptr %13, align 4, !tbaa !9
  %110 = icmp ne i32 %109, 8
  br i1 %110, label %111, label %112

111:                                              ; preds = %108
  store i32 -103, ptr %12, align 4, !tbaa !9
  br label %112

112:                                              ; preds = %111, %108, %105
  %113 = load ptr, ptr %15, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.unz64_s, ptr %113, i32 0, i32 12
  %115 = getelementptr inbounds %struct.unz_file_info64_s, ptr %114, i32 0, i32 5
  %116 = load i64, ptr %115, align 8, !tbaa !33
  %117 = load ptr, ptr %16, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %117, i32 0, i32 9
  store i64 %116, ptr %118, align 8, !tbaa !34
  %119 = load ptr, ptr %16, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %119, i32 0, i32 8
  store i64 0, ptr %120, align 8, !tbaa !35
  %121 = load ptr, ptr %16, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %121, i32 0, i32 7
  store i64 0, ptr %122, align 8, !tbaa !36
  %123 = load i32, ptr %13, align 4, !tbaa !9
  %124 = sext i32 %123 to i64
  %125 = load ptr, ptr %16, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %125, i32 0, i32 14
  store i64 %124, ptr %126, align 8, !tbaa !37
  %127 = load ptr, ptr %15, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.unz64_s, ptr %127, i32 0, i32 1
  %129 = load ptr, ptr %128, align 8, !tbaa !38
  %130 = load ptr, ptr %16, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %130, i32 0, i32 13
  store ptr %129, ptr %131, align 8, !tbaa !39
  %132 = load ptr, ptr %16, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %132, i32 0, i32 12
  %134 = load ptr, ptr %15, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.unz64_s, ptr %134, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %133, ptr align 8 %135, i64 104, i1 false), !tbaa.struct !40
  %136 = load ptr, ptr %15, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.unz64_s, ptr %136, i32 0, i32 9
  %138 = load i64, ptr %137, align 8, !tbaa !41
  %139 = load ptr, ptr %15, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.unz64_s, ptr %139, i32 0, i32 3
  %141 = getelementptr inbounds %struct.unz_global_info64_s, ptr %140, i32 0, i32 1
  %142 = load i64, ptr %141, align 8, !tbaa !42
  %143 = icmp eq i64 %138, %142
  br i1 %143, label %144, label %150

144:                                              ; preds = %112
  %145 = load ptr, ptr %15, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.unz64_s, ptr %145, i32 0, i32 4
  %147 = load i64, ptr %146, align 8, !tbaa !43
  %148 = load ptr, ptr %16, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %148, i32 0, i32 15
  store i64 %147, ptr %149, align 8, !tbaa !44
  br label %153

150:                                              ; preds = %112
  %151 = load ptr, ptr %16, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %151, i32 0, i32 15
  store i64 0, ptr %152, align 8, !tbaa !44
  br label %153

153:                                              ; preds = %150, %144
  %154 = load ptr, ptr %16, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %154, i32 0, i32 1
  %156 = getelementptr inbounds %struct.z_stream_s, ptr %155, i32 0, i32 5
  store i64 0, ptr %156, align 8, !tbaa !45
  %157 = load ptr, ptr %16, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %157, i32 0, i32 1
  %159 = getelementptr inbounds %struct.z_stream_s, ptr %158, i32 0, i32 2
  store i64 0, ptr %159, align 8, !tbaa !46
  %160 = load ptr, ptr %16, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %160, i32 0, i32 1
  %162 = getelementptr inbounds %struct.z_stream_s, ptr %161, i32 0, i32 0
  store ptr null, ptr %162, align 8, !tbaa !47
  %163 = load i32, ptr %10, align 4, !tbaa !9
  %164 = icmp ne i32 %163, 0
  br i1 %164, label %209, label %165

165:                                              ; preds = %153
  %166 = load i32, ptr %13, align 4, !tbaa !9
  %167 = icmp eq i32 %166, 12
  br i1 %167, label %168, label %171

168:                                              ; preds = %165
  %169 = load ptr, ptr %16, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %169, i32 0, i32 16
  store i32 1, ptr %170, align 8, !tbaa !29
  br label %208

171:                                              ; preds = %165
  %172 = load i32, ptr %13, align 4, !tbaa !9
  %173 = icmp eq i32 %172, 8
  br i1 %173, label %174, label %207

174:                                              ; preds = %171
  %175 = load ptr, ptr %16, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %175, i32 0, i32 1
  %177 = getelementptr inbounds %struct.z_stream_s, ptr %176, i32 0, i32 8
  store ptr null, ptr %177, align 8, !tbaa !48
  %178 = load ptr, ptr %16, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %178, i32 0, i32 1
  %180 = getelementptr inbounds %struct.z_stream_s, ptr %179, i32 0, i32 9
  store ptr null, ptr %180, align 8, !tbaa !49
  %181 = load ptr, ptr %15, align 8, !tbaa !5
  %182 = load ptr, ptr %16, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %182, i32 0, i32 1
  %184 = getelementptr inbounds %struct.z_stream_s, ptr %183, i32 0, i32 10
  store ptr %181, ptr %184, align 8, !tbaa !50
  %185 = load ptr, ptr %16, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %185, i32 0, i32 1
  %187 = getelementptr inbounds %struct.z_stream_s, ptr %186, i32 0, i32 0
  store ptr null, ptr %187, align 8, !tbaa !47
  %188 = load ptr, ptr %16, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %188, i32 0, i32 1
  %190 = getelementptr inbounds %struct.z_stream_s, ptr %189, i32 0, i32 1
  store i32 0, ptr %190, align 8, !tbaa !51
  %191 = load ptr, ptr %16, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %191, i32 0, i32 1
  %193 = call i32 @inflateInit2_(ptr noundef %192, i32 noundef -15, ptr noundef @.str, i32 noundef 112)
  store i32 %193, ptr %12, align 4, !tbaa !9
  %194 = load i32, ptr %12, align 4, !tbaa !9
  %195 = icmp eq i32 %194, 0
  br i1 %195, label %196, label %199

196:                                              ; preds = %174
  %197 = load ptr, ptr %16, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %197, i32 0, i32 3
  store i64 8, ptr %198, align 8, !tbaa !30
  br label %206

199:                                              ; preds = %174
  %200 = load ptr, ptr %16, align 8, !tbaa !5
  %201 = icmp ne ptr %200, null
  br i1 %201, label %202, label %204

202:                                              ; preds = %199
  %203 = load ptr, ptr %16, align 8, !tbaa !5
  call void @free(ptr noundef %203) #6
  br label %204

204:                                              ; preds = %202, %199
  %205 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %205, ptr %6, align 4
  store i32 1, ptr %20, align 4
  br label %341

206:                                              ; preds = %196
  br label %207

207:                                              ; preds = %206, %171
  br label %208

208:                                              ; preds = %207, %168
  br label %209

209:                                              ; preds = %208, %153
  %210 = load ptr, ptr %15, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.unz64_s, ptr %210, i32 0, i32 12
  %212 = getelementptr inbounds %struct.unz_file_info64_s, ptr %211, i32 0, i32 6
  %213 = load i64, ptr %212, align 8, !tbaa !52
  %214 = load ptr, ptr %16, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %214, i32 0, i32 10
  store i64 %213, ptr %215, align 8, !tbaa !53
  %216 = load ptr, ptr %15, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.unz64_s, ptr %216, i32 0, i32 12
  %218 = getelementptr inbounds %struct.unz_file_info64_s, ptr %217, i32 0, i32 7
  %219 = load i64, ptr %218, align 8, !tbaa !54
  %220 = load ptr, ptr %16, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %220, i32 0, i32 11
  store i64 %219, ptr %221, align 8, !tbaa !55
  %222 = load ptr, ptr %15, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.unz64_s, ptr %222, i32 0, i32 13
  %224 = getelementptr inbounds %struct.unz_file_info64_internal_s, ptr %223, i32 0, i32 0
  %225 = load i64, ptr %224, align 8, !tbaa !56
  %226 = add i64 %225, 30
  %227 = load i32, ptr %14, align 4, !tbaa !9
  %228 = zext i32 %227 to i64
  %229 = add i64 %226, %228
  %230 = load ptr, ptr %16, align 8, !tbaa !5
  %231 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %230, i32 0, i32 2
  store i64 %229, ptr %231, align 8, !tbaa !57
  %232 = load ptr, ptr %16, align 8, !tbaa !5
  %233 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %232, i32 0, i32 1
  %234 = getelementptr inbounds %struct.z_stream_s, ptr %233, i32 0, i32 1
  store i32 0, ptr %234, align 8, !tbaa !51
  %235 = load ptr, ptr %16, align 8, !tbaa !5
  %236 = load ptr, ptr %15, align 8, !tbaa !5
  %237 = getelementptr inbounds %struct.unz64_s, ptr %236, i32 0, i32 14
  store ptr %235, ptr %237, align 8, !tbaa !21
  %238 = load ptr, ptr %15, align 8, !tbaa !5
  %239 = getelementptr inbounds %struct.unz64_s, ptr %238, i32 0, i32 17
  store ptr null, ptr %239, align 8, !tbaa !58
  %240 = load ptr, ptr %11, align 8, !tbaa !5
  %241 = icmp ne ptr %240, null
  br i1 %241, label %242, label %340

242:                                              ; preds = %209
  %243 = load ptr, ptr %15, align 8, !tbaa !5
  %244 = getelementptr inbounds %struct.unz64_s, ptr %243, i32 0, i32 12
  %245 = getelementptr inbounds %struct.unz_file_info64_s, ptr %244, i32 0, i32 2
  %246 = load i64, ptr %245, align 8, !tbaa !32
  %247 = and i64 %246, 1
  %248 = icmp ne i64 %247, 0
  br i1 %248, label %249, label %340

249:                                              ; preds = %242
  %250 = load ptr, ptr %15, align 8, !tbaa !5
  %251 = getelementptr inbounds %struct.unz64_s, ptr %250, i32 0, i32 0
  %252 = load ptr, ptr %15, align 8, !tbaa !5
  %253 = getelementptr inbounds %struct.unz64_s, ptr %252, i32 0, i32 1
  %254 = load ptr, ptr %253, align 8, !tbaa !38
  %255 = load ptr, ptr %15, align 8, !tbaa !5
  %256 = getelementptr inbounds %struct.unz64_s, ptr %255, i32 0, i32 14
  %257 = load ptr, ptr %256, align 8, !tbaa !21
  %258 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %257, i32 0, i32 2
  %259 = load i64, ptr %258, align 8, !tbaa !57
  %260 = load ptr, ptr %15, align 8, !tbaa !5
  %261 = getelementptr inbounds %struct.unz64_s, ptr %260, i32 0, i32 14
  %262 = load ptr, ptr %261, align 8, !tbaa !21
  %263 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %262, i32 0, i32 15
  %264 = load i64, ptr %263, align 8, !tbaa !44
  %265 = add i64 %259, %264
  %266 = call i64 @call_zseek64(ptr noundef %251, ptr noundef %254, i64 noundef %265, i32 noundef 0)
  %267 = icmp ne i64 %266, 0
  br i1 %267, label %268, label %269

268:                                              ; preds = %249
  store i32 -104, ptr %6, align 4
  store i32 1, ptr %20, align 4
  br label %341

269:                                              ; preds = %249
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  %270 = call ptr @get_crc_table()
  %271 = load ptr, ptr %15, align 8, !tbaa !5
  %272 = getelementptr inbounds %struct.unz64_s, ptr %271, i32 0, i32 17
  store ptr %270, ptr %272, align 8, !tbaa !58
  %273 = load ptr, ptr %11, align 8, !tbaa !5
  %274 = load ptr, ptr %15, align 8, !tbaa !5
  %275 = getelementptr inbounds %struct.unz64_s, ptr %274, i32 0, i32 16
  %276 = getelementptr inbounds [3 x i64], ptr %275, i64 0, i64 0
  %277 = load ptr, ptr %15, align 8, !tbaa !5
  %278 = getelementptr inbounds %struct.unz64_s, ptr %277, i32 0, i32 17
  %279 = load ptr, ptr %278, align 8, !tbaa !58
  call void @init_keys(ptr noundef %273, ptr noundef %276, ptr noundef %279)
  %280 = load ptr, ptr %15, align 8, !tbaa !5
  %281 = getelementptr inbounds %struct.unz64_s, ptr %280, i32 0, i32 0
  %282 = getelementptr inbounds %struct.zlib_filefunc64_32_def_s, ptr %281, i32 0, i32 0
  %283 = getelementptr inbounds %struct.zlib_filefunc64_def_s, ptr %282, i32 0, i32 2
  %284 = load ptr, ptr %283, align 8, !tbaa !59
  %285 = load ptr, ptr %15, align 8, !tbaa !5
  %286 = getelementptr inbounds %struct.unz64_s, ptr %285, i32 0, i32 0
  %287 = getelementptr inbounds %struct.zlib_filefunc64_32_def_s, ptr %286, i32 0, i32 0
  %288 = getelementptr inbounds %struct.zlib_filefunc64_def_s, ptr %287, i32 0, i32 8
  %289 = load ptr, ptr %288, align 8, !tbaa !60
  %290 = load ptr, ptr %15, align 8, !tbaa !5
  %291 = getelementptr inbounds %struct.unz64_s, ptr %290, i32 0, i32 1
  %292 = load ptr, ptr %291, align 8, !tbaa !38
  %293 = getelementptr inbounds [12 x i8], ptr %19, i64 0, i64 0
  %294 = call i64 %284(ptr noundef %289, ptr noundef %292, ptr noundef %293, i64 noundef 12)
  %295 = icmp ult i64 %294, 12
  br i1 %295, label %296, label %297

296:                                              ; preds = %269
  store i32 -104, ptr %6, align 4
  store i32 1, ptr %20, align 4
  br label %337

297:                                              ; preds = %269
  store i32 0, ptr %21, align 4, !tbaa !9
  br label %298

298:                                              ; preds = %321, %297
  %299 = load i32, ptr %21, align 4, !tbaa !9
  %300 = icmp slt i32 %299, 12
  br i1 %300, label %301, label %324

301:                                              ; preds = %298
  %302 = load ptr, ptr %15, align 8, !tbaa !5
  %303 = getelementptr inbounds %struct.unz64_s, ptr %302, i32 0, i32 16
  %304 = getelementptr inbounds [3 x i64], ptr %303, i64 0, i64 0
  %305 = load ptr, ptr %15, align 8, !tbaa !5
  %306 = getelementptr inbounds %struct.unz64_s, ptr %305, i32 0, i32 17
  %307 = load ptr, ptr %306, align 8, !tbaa !58
  %308 = load ptr, ptr %15, align 8, !tbaa !5
  %309 = getelementptr inbounds %struct.unz64_s, ptr %308, i32 0, i32 16
  %310 = getelementptr inbounds [3 x i64], ptr %309, i64 0, i64 0
  %311 = call i32 @decrypt_byte(ptr noundef %310)
  %312 = load i32, ptr %21, align 4, !tbaa !9
  %313 = sext i32 %312 to i64
  %314 = getelementptr inbounds [12 x i8], ptr %19, i64 0, i64 %313
  %315 = load i8, ptr %314, align 1, !tbaa !61
  %316 = sext i8 %315 to i32
  %317 = xor i32 %316, %311
  %318 = trunc i32 %317 to i8
  store i8 %318, ptr %314, align 1, !tbaa !61
  %319 = sext i8 %318 to i32
  %320 = call i32 @update_keys(ptr noundef %304, ptr noundef %307, i32 noundef %319)
  br label %321

321:                                              ; preds = %301
  %322 = load i32, ptr %21, align 4, !tbaa !9
  %323 = add nsw i32 %322, 1
  store i32 %323, ptr %21, align 4, !tbaa !9
  br label %298, !llvm.loop !62

324:                                              ; preds = %298
  %325 = load ptr, ptr %15, align 8, !tbaa !5
  %326 = getelementptr inbounds %struct.unz64_s, ptr %325, i32 0, i32 14
  %327 = load ptr, ptr %326, align 8, !tbaa !21
  %328 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %327, i32 0, i32 10
  %329 = load i64, ptr %328, align 8, !tbaa !53
  %330 = sub i64 %329, 12
  store i64 %330, ptr %328, align 8, !tbaa !53
  %331 = load ptr, ptr %15, align 8, !tbaa !5
  %332 = getelementptr inbounds %struct.unz64_s, ptr %331, i32 0, i32 14
  %333 = load ptr, ptr %332, align 8, !tbaa !21
  %334 = getelementptr inbounds %struct.file_in_zip64_read_info_s, ptr %333, i32 0, i32 2
  %335 = load i64, ptr %334, align 8, !tbaa !57
  %336 = add i64 %335, 12
  store i64 %336, ptr %334, align 8, !tbaa !57
  store i32 0, ptr %20, align 4
  br label %337

337:                                              ; preds = %324, %296
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  %338 = load i32, ptr %20, align 4
  switch i32 %338, label %341 [
    i32 0, label %339
  ]

339:                                              ; preds = %337
  br label %340

340:                                              ; preds = %339, %242, %209
  store i32 0, ptr %6, align 4
  store i32 1, ptr %20, align 4
  br label %341

341:                                              ; preds = %340, %337, %268, %204, %74, %49, %44, %31, %24
  call void @llvm.lifetime.end.p0(i64 12, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  %342 = load i32, ptr %6, align 4
  ret i32 %342
}

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

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #5

declare i32 @inflateInit2_(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #4

declare ptr @get_crc_table() #4

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind "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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }
attributes #7 = { nounwind allocsize(0) }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !16, i64 168}
!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 = !{!12, !6, i64 376}
!22 = !{!23, !6, i64 0}
!23 = !{!"", !6, i64 0, !24, 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}
!24 = !{!"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}
!25 = !{!16, !16, i64 0}
!26 = !{!23, !16, i64 136}
!27 = !{!23, !10, i64 144}
!28 = !{!23, !16, i64 152}
!29 = !{!23, !10, i64 328}
!30 = !{!23, !17, i64 128}
!31 = !{!12, !17, i64 232}
!32 = !{!12, !17, i64 224}
!33 = !{!12, !17, i64 248}
!34 = !{!23, !17, i64 176}
!35 = !{!23, !17, i64 168}
!36 = !{!23, !16, i64 160}
!37 = !{!23, !17, i64 312}
!38 = !{!12, !6, i64 104}
!39 = !{!23, !6, i64 304}
!40 = !{i64 0, i64 8, !5, i64 8, i64 8, !5, i64 16, i64 8, !5, i64 24, i64 8, !5, i64 32, i64 8, !5, i64 40, i64 8, !5, i64 48, i64 8, !5, i64 56, i64 8, !5, i64 64, i64 8, !5, i64 72, i64 8, !5, i64 80, i64 8, !5, i64 88, i64 8, !5, i64 96, i64 8, !5}
!41 = !{!12, !17, i64 184}
!42 = !{!12, !17, i64 128}
!43 = !{!12, !16, i64 144}
!44 = !{!23, !16, i64 320}
!45 = !{!23, !17, i64 48}
!46 = !{!23, !17, i64 24}
!47 = !{!23, !6, i64 8}
!48 = !{!23, !6, i64 72}
!49 = !{!23, !6, i64 80}
!50 = !{!23, !6, i64 88}
!51 = !{!23, !10, i64 16}
!52 = !{!12, !16, i64 256}
!53 = !{!23, !16, i64 184}
!54 = !{!12, !16, i64 264}
!55 = !{!23, !16, i64 192}
!56 = !{!12, !16, i64 360}
!57 = !{!23, !16, i64 120}
!58 = !{!12, !6, i64 416}
!59 = !{!12, !6, i64 16}
!60 = !{!12, !6, i64 64}
!61 = !{!7, !7, i64 0}
!62 = distinct !{!62, !63}
!63 = !{!"llvm.loop.mustprogress"}


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

@.str = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress 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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @unzOpenCurrentFile3(ptr noundef %0, ptr noundef writeonly %1, ptr noundef writeonly %2, i32 noundef %3, ptr noundef %4) local_unnamed_addr #2 {
  %6 = alloca i32, align 4
  %7 = alloca i64, align 8
  %8 = alloca i32, align 4
  %9 = alloca [12 x i8], align 1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #7
  %10 = icmp eq ptr %0, null
  br i1 %10, label %.critedge, label %11

11:                                               ; preds = %5
  %12 = getelementptr inbounds i8, ptr %0, i64 168
  %13 = load i64, ptr %12, align 8, !tbaa !5
  %.not = icmp eq i64 %13, 0
  br i1 %.not, label %.critedge, label %14

14:                                               ; preds = %11
  %15 = getelementptr inbounds i8, ptr %0, i64 376
  %16 = load ptr, ptr %15, align 8, !tbaa !19
  %.not105 = icmp eq ptr %16, null
  br i1 %.not105, label %19, label %17

17:                                               ; preds = %14
  %18 = tail call i32 @unzCloseCurrentFile(ptr noundef nonnull %0)
  br label %19

19:                                               ; preds = %17, %14
  %20 = call i32 @unz64local_CheckCurrentFileCoherencyHeader(ptr noundef nonnull %0, ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef nonnull %8)
  %.not106 = icmp eq i32 %20, 0
  br i1 %.not106, label %21, label %.critedge

21:                                               ; preds = %19
  %22 = call noalias dereferenceable_or_null(336) ptr @malloc(i64 noundef 336) #8
  %23 = icmp eq ptr %22, null
  br i1 %23, label %.critedge, label %24

24:                                               ; preds = %21
  %25 = call noalias dereferenceable_or_null(65536) ptr @malloc(i64 noundef 65536) #8
  store ptr %25, ptr %22, align 8, !tbaa !20
  %26 = load i64, ptr %7, align 8, !tbaa !23
  %27 = getelementptr inbounds i8, ptr %22, i64 136
  store i64 %26, ptr %27, align 8, !tbaa !24
  %28 = load i32, ptr %8, align 4, !tbaa !25
  %29 = getelementptr inbounds i8, ptr %22, i64 144
  store i32 %28, ptr %29, align 8, !tbaa !26
  %30 = getelementptr inbounds i8, ptr %22, i64 152
  store i64 0, ptr %30, align 8, !tbaa !27
  %31 = getelementptr inbounds i8, ptr %22, i64 328
  store i32 %3, ptr %31, align 8, !tbaa !28
  %32 = icmp eq ptr %25, null
  br i1 %32, label %33, label %34

33:                                               ; preds = %24
  call void @free(ptr noundef nonnull %22) #7
  br label %.critedge

34:                                               ; preds = %24
  %35 = getelementptr inbounds i8, ptr %22, i64 128
  store i64 0, ptr %35, align 8, !tbaa !29
  %36 = getelementptr inbounds i8, ptr %0, i64 232
  %37 = load i64, ptr %36, align 8, !tbaa !30
  %38 = trunc i64 %37 to i32
  %.not107 = icmp eq ptr %1, null
  br i1 %.not107, label %40, label %39

39:                                               ; preds = %34
  store i32 %38, ptr %1, align 4, !tbaa !25
  br label %40

40:                                               ; preds = %39, %34
  %.not108 = icmp eq ptr %2, null
  br i1 %.not108, label %47, label %41

41:                                               ; preds = %40
  store i32 6, ptr %2, align 4, !tbaa !25
  %42 = getelementptr inbounds i8, ptr %0, i64 224
  %43 = load i64, ptr %42, align 8, !tbaa !31
  %44 = and i64 %43, 6
  switch i64 %44, label %.unreachabledefault [
    i64 6, label %.sink.split
    i64 4, label %45
    i64 2, label %46
    i64 0, label %47
  ]

45:                                               ; preds = %41
  br label %.sink.split

46:                                               ; preds = %41
  br label %.sink.split

.unreachabledefault:                              ; preds = %41
  unreachable

.sink.split:                                      ; preds = %41, %46, %45
  %.sink115 = phi i32 [ 2, %45 ], [ 9, %46 ], [ 1, %41 ]
  store i32 %.sink115, ptr %2, align 4, !tbaa !25
  br label %47

47:                                               ; preds = %.sink.split, %41, %40
  %48 = getelementptr inbounds i8, ptr %0, i64 248
  %49 = load i64, ptr %48, align 8, !tbaa !32
  %50 = getelementptr inbounds i8, ptr %22, i64 176
  store i64 %49, ptr %50, align 8, !tbaa !33
  %51 = getelementptr inbounds i8, ptr %22, i64 160
  %sext = shl i64 %37, 32
  %52 = ashr exact i64 %sext, 32
  %53 = getelementptr inbounds i8, ptr %22, i64 312
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %51, i8 0, i64 16, i1 false)
  store i64 %52, ptr %53, align 8, !tbaa !34
  %54 = getelementptr inbounds i8, ptr %0, i64 104
  %55 = load ptr, ptr %54, align 8, !tbaa !35
  %56 = getelementptr inbounds i8, ptr %22, i64 304
  store ptr %55, ptr %56, align 8, !tbaa !36
  %57 = getelementptr inbounds i8, ptr %22, i64 200
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(104) %57, ptr noundef nonnull align 8 dereferenceable(104) %0, i64 104, i1 false), !tbaa.struct !37
  %58 = getelementptr inbounds i8, ptr %0, i64 184
  %59 = load i64, ptr %58, align 8, !tbaa !39
  %60 = getelementptr inbounds i8, ptr %0, i64 128
  %61 = load i64, ptr %60, align 8, !tbaa !40
  %62 = icmp eq i64 %59, %61
  br i1 %62, label %63, label %66

63:                                               ; preds = %47
  %64 = getelementptr inbounds i8, ptr %0, i64 144
  %65 = load i64, ptr %64, align 8, !tbaa !41
  br label %66

66:                                               ; preds = %47, %63
  %.sink = phi i64 [ %65, %63 ], [ 0, %47 ]
  %67 = getelementptr inbounds i8, ptr %22, i64 320
  store i64 %.sink, ptr %67, align 8
  %68 = getelementptr inbounds i8, ptr %22, i64 8
  %69 = getelementptr inbounds i8, ptr %22, i64 48
  store i64 0, ptr %69, align 8, !tbaa !42
  %70 = getelementptr inbounds i8, ptr %22, i64 24
  store i64 0, ptr %70, align 8, !tbaa !43
  store ptr null, ptr %68, align 8, !tbaa !44
  %.not109 = icmp eq i32 %3, 0
  br i1 %.not109, label %71, label %81

71:                                               ; preds = %66
  switch i32 %38, label %81 [
    i32 12, label %72
    i32 8, label %73
  ]

72:                                               ; preds = %71
  store i32 1, ptr %31, align 8, !tbaa !28
  br label %81

73:                                               ; preds = %71
  %74 = getelementptr inbounds i8, ptr %22, i64 72
  %75 = getelementptr inbounds i8, ptr %22, i64 88
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %74, i8 0, i64 16, i1 false)
  store ptr %0, ptr %75, align 8, !tbaa !45
  %76 = getelementptr inbounds i8, ptr %22, i64 16
  store i32 0, ptr %76, align 8, !tbaa !46
  %77 = call i32 @inflateInit2_(ptr noundef nonnull %68, i32 noundef -15, ptr noundef nonnull @.str, i32 noundef 112) #7
  %78 = icmp eq i32 %77, 0
  br i1 %78, label %79, label %80

79:                                               ; preds = %73
  store i64 8, ptr %35, align 8, !tbaa !29
  br label %81

80:                                               ; preds = %73
  call void @free(ptr noundef nonnull %22) #7
  br label %.critedge

81:                                               ; preds = %71, %72, %79, %66
  %82 = getelementptr inbounds i8, ptr %0, i64 256
  %83 = getelementptr inbounds i8, ptr %22, i64 184
  %84 = load <2 x i64>, ptr %82, align 8, !tbaa !23
  store <2 x i64> %84, ptr %83, align 8, !tbaa !23
  %85 = getelementptr inbounds i8, ptr %0, i64 360
  %86 = load i64, ptr %85, align 8, !tbaa !47
  %87 = add i64 %86, 30
  %88 = load i32, ptr %6, align 4, !tbaa !25
  %89 = zext i32 %88 to i64
  %90 = add i64 %87, %89
  %91 = getelementptr inbounds i8, ptr %22, i64 120
  store i64 %90, ptr %91, align 8, !tbaa !48
  %92 = getelementptr inbounds i8, ptr %22, i64 16
  store i32 0, ptr %92, align 8, !tbaa !46
  store ptr %22, ptr %15, align 8, !tbaa !19
  %93 = getelementptr inbounds i8, ptr %0, i64 416
  store ptr null, ptr %93, align 8, !tbaa !49
  %.not110 = icmp eq ptr %4, null
  br i1 %.not110, label %.critedge, label %94

94:                                               ; preds = %81
  %95 = getelementptr inbounds i8, ptr %0, i64 224
  %96 = load i64, ptr %95, align 8, !tbaa !31
  %97 = and i64 %96, 1
  %.not111 = icmp eq i64 %97, 0
  br i1 %.not111, label %.critedge, label %98

98:                                               ; preds = %94
  %99 = load ptr, ptr %54, align 8, !tbaa !35
  %100 = load i64, ptr %67, align 8, !tbaa !50
  %101 = add i64 %100, %90
  %102 = call i64 @call_zseek64(ptr noundef nonnull %0, ptr noundef %99, i64 noundef %101, i32 noundef 0) #7
  %.not112 = icmp eq i64 %102, 0
  br i1 %.not112, label %103, label %.critedge

103:                                              ; preds = %98
  %104 = call ptr @get_crc_table() #7
  store ptr %104, ptr %93, align 8, !tbaa !49
  %105 = getelementptr inbounds i8, ptr %0, i64 392
  call void @init_keys(ptr noundef nonnull %4, ptr noundef nonnull %105, ptr noundef %104)
  %106 = getelementptr inbounds i8, ptr %0, i64 16
  %107 = load ptr, ptr %106, align 8, !tbaa !51
  %108 = getelementptr inbounds i8, ptr %0, i64 64
  %109 = load ptr, ptr %108, align 8, !tbaa !52
  %110 = load ptr, ptr %54, align 8, !tbaa !35
  %111 = call i64 %107(ptr noundef %109, ptr noundef %110, ptr noundef nonnull %9, i64 noundef 12) #7
  %112 = icmp ugt i64 %111, 11
  br i1 %112, label %.preheader.preheader, label %.critedge

.preheader.preheader:                             ; preds = %103
  %113 = load ptr, ptr %93, align 8, !tbaa !49
  %114 = call i32 @decrypt_byte(ptr noundef nonnull %105)
  %115 = load i8, ptr %9, align 1, !tbaa !53
  %116 = trunc i32 %114 to i8
  %117 = xor i8 %115, %116
  store i8 %117, ptr %9, align 1, !tbaa !53
  %118 = sext i8 %117 to i32
  %119 = call i32 @update_keys(ptr noundef nonnull %105, ptr noundef %113, i32 noundef %118)
  %120 = load ptr, ptr %93, align 8, !tbaa !49
  %121 = call i32 @decrypt_byte(ptr noundef nonnull %105)
  %122 = getelementptr inbounds i8, ptr %9, i64 1
  %123 = load i8, ptr %122, align 1, !tbaa !53
  %124 = trunc i32 %121 to i8
  %125 = xor i8 %123, %124
  store i8 %125, ptr %122, align 1, !tbaa !53
  %126 = sext i8 %125 to i32
  %127 = call i32 @update_keys(ptr noundef nonnull %105, ptr noundef %120, i32 noundef %126)
  %128 = load ptr, ptr %93, align 8, !tbaa !49
  %129 = call i32 @decrypt_byte(ptr noundef nonnull %105)
  %130 = getelementptr inbounds i8, ptr %9, i64 2
  %131 = load i8, ptr %130, align 1, !tbaa !53
  %132 = trunc i32 %129 to i8
  %133 = xor i8 %131, %132
  store i8 %133, ptr %130, align 1, !tbaa !53
  %134 = sext i8 %133 to i32
  %135 = call i32 @update_keys(ptr noundef nonnull %105, ptr noundef %128, i32 noundef %134)
  %136 = load ptr, ptr %93, align 8, !tbaa !49
  %137 = call i32 @decrypt_byte(ptr noundef nonnull %105)
  %138 = getelementptr inbounds i8, ptr %9, i64 3
  %139 = load i8, ptr %138, align 1, !tbaa !53
  %140 = trunc i32 %137 to i8
  %141 = xor i8 %139, %140
  store i8 %141, ptr %138, align 1, !tbaa !53
  %142 = sext i8 %141 to i32
  %143 = call i32 @update_keys(ptr noundef nonnull %105, ptr noundef %136, i32 noundef %142)
  %144 = load ptr, ptr %93, align 8, !tbaa !49
  %145 = call i32 @decrypt_byte(ptr noundef nonnull %105)
  %146 = getelementptr inbounds i8, ptr %9, i64 4
  %147 = load i8, ptr %146, align 1, !tbaa !53
  %148 = trunc i32 %145 to i8
  %149 = xor i8 %147, %148
  store i8 %149, ptr %146, align 1, !tbaa !53
  %150 = sext i8 %149 to i32
  %151 = call i32 @update_keys(ptr noundef nonnull %105, ptr noundef %144, i32 noundef %150)
  %152 = load ptr, ptr %93, align 8, !tbaa !49
  %153 = call i32 @decrypt_byte(ptr noundef nonnull %105)
  %154 = getelementptr inbounds i8, ptr %9, i64 5
  %155 = load i8, ptr %154, align 1, !tbaa !53
  %156 = trunc i32 %153 to i8
  %157 = xor i8 %155, %156
  store i8 %157, ptr %154, align 1, !tbaa !53
  %158 = sext i8 %157 to i32
  %159 = call i32 @update_keys(ptr noundef nonnull %105, ptr noundef %152, i32 noundef %158)
  %160 = load ptr, ptr %93, align 8, !tbaa !49
  %161 = call i32 @decrypt_byte(ptr noundef nonnull %105)
  %162 = getelementptr inbounds i8, ptr %9, i64 6
  %163 = load i8, ptr %162, align 1, !tbaa !53
  %164 = trunc i32 %161 to i8
  %165 = xor i8 %163, %164
  store i8 %165, ptr %162, align 1, !tbaa !53
  %166 = sext i8 %165 to i32
  %167 = call i32 @update_keys(ptr noundef nonnull %105, ptr noundef %160, i32 noundef %166)
  %168 = load ptr, ptr %93, align 8, !tbaa !49
  %169 = call i32 @decrypt_byte(ptr noundef nonnull %105)
  %170 = getelementptr inbounds i8, ptr %9, i64 7
  %171 = load i8, ptr %170, align 1, !tbaa !53
  %172 = trunc i32 %169 to i8
  %173 = xor i8 %171, %172
  store i8 %173, ptr %170, align 1, !tbaa !53
  %174 = sext i8 %173 to i32
  %175 = call i32 @update_keys(ptr noundef nonnull %105, ptr noundef %168, i32 noundef %174)
  %176 = load ptr, ptr %93, align 8, !tbaa !49
  %177 = call i32 @decrypt_byte(ptr noundef nonnull %105)
  %178 = getelementptr inbounds i8, ptr %9, i64 8
  %179 = load i8, ptr %178, align 1, !tbaa !53
  %180 = trunc i32 %177 to i8
  %181 = xor i8 %179, %180
  store i8 %181, ptr %178, align 1, !tbaa !53
  %182 = sext i8 %181 to i32
  %183 = call i32 @update_keys(ptr noundef nonnull %105, ptr noundef %176, i32 noundef %182)
  %184 = load ptr, ptr %93, align 8, !tbaa !49
  %185 = call i32 @decrypt_byte(ptr noundef nonnull %105)
  %186 = getelementptr inbounds i8, ptr %9, i64 9
  %187 = load i8, ptr %186, align 1, !tbaa !53
  %188 = trunc i32 %185 to i8
  %189 = xor i8 %187, %188
  store i8 %189, ptr %186, align 1, !tbaa !53
  %190 = sext i8 %189 to i32
  %191 = call i32 @update_keys(ptr noundef nonnull %105, ptr noundef %184, i32 noundef %190)
  %192 = load ptr, ptr %93, align 8, !tbaa !49
  %193 = call i32 @decrypt_byte(ptr noundef nonnull %105)
  %194 = getelementptr inbounds i8, ptr %9, i64 10
  %195 = load i8, ptr %194, align 1, !tbaa !53
  %196 = trunc i32 %193 to i8
  %197 = xor i8 %195, %196
  store i8 %197, ptr %194, align 1, !tbaa !53
  %198 = sext i8 %197 to i32
  %199 = call i32 @update_keys(ptr noundef nonnull %105, ptr noundef %192, i32 noundef %198)
  %200 = load ptr, ptr %93, align 8, !tbaa !49
  %201 = call i32 @decrypt_byte(ptr noundef nonnull %105)
  %202 = getelementptr inbounds i8, ptr %9, i64 11
  %203 = load i8, ptr %202, align 1, !tbaa !53
  %204 = trunc i32 %201 to i8
  %205 = xor i8 %203, %204
  store i8 %205, ptr %202, align 1, !tbaa !53
  %206 = sext i8 %205 to i32
  %207 = call i32 @update_keys(ptr noundef nonnull %105, ptr noundef %200, i32 noundef %206)
  %208 = load ptr, ptr %15, align 8, !tbaa !19
  %209 = getelementptr inbounds i8, ptr %208, i64 184
  %210 = load i64, ptr %209, align 8, !tbaa !54
  %211 = add i64 %210, -12
  store i64 %211, ptr %209, align 8, !tbaa !54
  %212 = getelementptr inbounds i8, ptr %208, i64 120
  %213 = load i64, ptr %212, align 8, !tbaa !48
  %214 = add i64 %213, 12
  store i64 %214, ptr %212, align 8, !tbaa !48
  br label %.critedge

.critedge:                                        ; preds = %81, %94, %.preheader.preheader, %103, %98, %21, %19, %11, %5, %80, %33
  %.1 = phi i32 [ -104, %33 ], [ %77, %80 ], [ -102, %5 ], [ -102, %11 ], [ -103, %19 ], [ -104, %21 ], [ -104, %98 ], [ -104, %103 ], [ 0, %.preheader.preheader ], [ 0, %94 ], [ 0, %81 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  ret i32 %.1
}

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

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #5

declare i32 @inflateInit2_(ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #4

declare ptr @get_crc_table() local_unnamed_addr #4

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

; 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: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #6

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #7 = { nounwind }
attributes #8 = { nounwind allocsize(0) }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !13, i64 168}
!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 = !{!6, !9, i64 376}
!20 = !{!21, !9, i64 0}
!21 = !{!"", !9, i64 0, !22, 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}
!22 = !{!"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}
!23 = !{!13, !13, i64 0}
!24 = !{!21, !13, i64 136}
!25 = !{!17, !17, i64 0}
!26 = !{!21, !17, i64 144}
!27 = !{!21, !13, i64 152}
!28 = !{!21, !17, i64 328}
!29 = !{!21, !14, i64 128}
!30 = !{!6, !14, i64 232}
!31 = !{!6, !14, i64 224}
!32 = !{!6, !14, i64 248}
!33 = !{!21, !14, i64 176}
!34 = !{!21, !14, i64 312}
!35 = !{!6, !9, i64 104}
!36 = !{!21, !9, i64 304}
!37 = !{i64 0, i64 8, !38, i64 8, i64 8, !38, i64 16, i64 8, !38, i64 24, i64 8, !38, i64 32, i64 8, !38, i64 40, i64 8, !38, i64 48, i64 8, !38, i64 56, i64 8, !38, i64 64, i64 8, !38, i64 72, i64 8, !38, i64 80, i64 8, !38, i64 88, i64 8, !38, i64 96, i64 8, !38}
!38 = !{!9, !9, i64 0}
!39 = !{!6, !14, i64 184}
!40 = !{!6, !14, i64 128}
!41 = !{!6, !13, i64 144}
!42 = !{!21, !14, i64 48}
!43 = !{!21, !14, i64 24}
!44 = !{!21, !9, i64 8}
!45 = !{!21, !9, i64 88}
!46 = !{!21, !17, i64 16}
!47 = !{!6, !13, i64 360}
!48 = !{!21, !13, i64 120}
!49 = !{!6, !9, i64 416}
!50 = !{!21, !13, i64 320}
!51 = !{!6, !9, i64 16}
!52 = !{!6, !9, i64 64}
!53 = !{!10, !10, i64 0}
!54 = !{!21, !13, i64 184}


; Effective O3 passes: ConstraintEliminationPass,CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,MemCpyOptPass,MergedLoadStoreMotionPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass