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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.zip64_internal = type { %struct.zlib_filefunc64_32_def_s, ptr, %struct.linkedlist_data_s, i32, %struct.curfile64_info, i64, i64, i64, ptr }
%struct.zlib_filefunc64_32_def_s = type { %struct.zlib_filefunc64_def_s, ptr, ptr, ptr }
%struct.zlib_filefunc64_def_s = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.linkedlist_data_s = type { ptr, ptr }
%struct.curfile64_info = type { %struct.z_stream_s, i32, i32, i64, ptr, i64, i64, i64, i64, i32, i32, [65536 x i8], i64, i64, i32, i32, i64, i64, i64, [3 x i64], ptr, 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

declare i64 @call_ztell64(ptr noundef, ptr noundef) #1

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

28:                                               ; preds = %4
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.zip64_internal, ptr %29, i32 0, i32 4
  %31 = getelementptr inbounds %struct.curfile64_info, ptr %30, i32 0, i32 15
  %32 = load i32, ptr %31, align 4, !tbaa !20
  %33 = icmp ne i32 %32, 0
  br i1 %33, label %34, label %41

34:                                               ; preds = %28
  %35 = load ptr, ptr %5, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.zip64_internal, ptr %35, i32 0, i32 0
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.zip64_internal, ptr %37, i32 0, i32 1
  %39 = load ptr, ptr %38, align 8, !tbaa !11
  %40 = call i32 @zip64local_putValue(ptr noundef %36, ptr noundef %39, i64 noundef 45, i32 noundef 2)
  store i32 %40, ptr %9, align 4, !tbaa !9
  br label %48

41:                                               ; preds = %28
  %42 = load ptr, ptr %5, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.zip64_internal, ptr %42, i32 0, i32 0
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.zip64_internal, ptr %44, i32 0, i32 1
  %46 = load ptr, ptr %45, align 8, !tbaa !11
  %47 = call i32 @zip64local_putValue(ptr noundef %43, ptr noundef %46, i64 noundef 20, i32 noundef 2)
  store i32 %47, ptr %9, align 4, !tbaa !9
  br label %48

48:                                               ; preds = %41, %34
  br label %49

49:                                               ; preds = %48, %4
  %50 = load i32, ptr %9, align 4, !tbaa !9
  %51 = icmp eq i32 %50, 0
  br i1 %51, label %52, label %63

52:                                               ; preds = %49
  %53 = load ptr, ptr %5, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.zip64_internal, ptr %53, i32 0, i32 0
  %55 = load ptr, ptr %5, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.zip64_internal, ptr %55, i32 0, i32 1
  %57 = load ptr, ptr %56, align 8, !tbaa !11
  %58 = load ptr, ptr %5, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.zip64_internal, ptr %58, i32 0, i32 4
  %60 = getelementptr inbounds %struct.curfile64_info, ptr %59, i32 0, i32 8
  %61 = load i64, ptr %60, align 8, !tbaa !21
  %62 = call i32 @zip64local_putValue(ptr noundef %54, ptr noundef %57, i64 noundef %61, i32 noundef 2)
  store i32 %62, ptr %9, align 4, !tbaa !9
  br label %63

63:                                               ; preds = %52, %49
  %64 = load i32, ptr %9, align 4, !tbaa !9
  %65 = icmp eq i32 %64, 0
  br i1 %65, label %66, label %78

66:                                               ; preds = %63
  %67 = load ptr, ptr %5, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.zip64_internal, ptr %67, i32 0, i32 0
  %69 = load ptr, ptr %5, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.zip64_internal, ptr %69, i32 0, i32 1
  %71 = load ptr, ptr %70, align 8, !tbaa !11
  %72 = load ptr, ptr %5, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.zip64_internal, ptr %72, i32 0, i32 4
  %74 = getelementptr inbounds %struct.curfile64_info, ptr %73, i32 0, i32 9
  %75 = load i32, ptr %74, align 8, !tbaa !22
  %76 = sext i32 %75 to i64
  %77 = call i32 @zip64local_putValue(ptr noundef %68, ptr noundef %71, i64 noundef %76, i32 noundef 2)
  store i32 %77, ptr %9, align 4, !tbaa !9
  br label %78

78:                                               ; preds = %66, %63
  %79 = load i32, ptr %9, align 4, !tbaa !9
  %80 = icmp eq i32 %79, 0
  br i1 %80, label %81, label %92

81:                                               ; preds = %78
  %82 = load ptr, ptr %5, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.zip64_internal, ptr %82, i32 0, i32 0
  %84 = load ptr, ptr %5, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.zip64_internal, ptr %84, i32 0, i32 1
  %86 = load ptr, ptr %85, align 8, !tbaa !11
  %87 = load ptr, ptr %5, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.zip64_internal, ptr %87, i32 0, i32 4
  %89 = getelementptr inbounds %struct.curfile64_info, ptr %88, i32 0, i32 12
  %90 = load i64, ptr %89, align 8, !tbaa !23
  %91 = call i32 @zip64local_putValue(ptr noundef %83, ptr noundef %86, i64 noundef %90, i32 noundef 4)
  store i32 %91, ptr %9, align 4, !tbaa !9
  br label %92

92:                                               ; preds = %81, %78
  %93 = load i32, ptr %9, align 4, !tbaa !9
  %94 = icmp eq i32 %93, 0
  br i1 %94, label %95, label %102

95:                                               ; preds = %92
  %96 = load ptr, ptr %5, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.zip64_internal, ptr %96, i32 0, i32 0
  %98 = load ptr, ptr %5, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.zip64_internal, ptr %98, i32 0, i32 1
  %100 = load ptr, ptr %99, align 8, !tbaa !11
  %101 = call i32 @zip64local_putValue(ptr noundef %97, ptr noundef %100, i64 noundef 0, i32 noundef 4)
  store i32 %101, ptr %9, align 4, !tbaa !9
  br label %102

102:                                              ; preds = %95, %92
  %103 = load i32, ptr %9, align 4, !tbaa !9
  %104 = icmp eq i32 %103, 0
  br i1 %104, label %105, label %126

105:                                              ; preds = %102
  %106 = load ptr, ptr %5, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.zip64_internal, ptr %106, i32 0, i32 4
  %108 = getelementptr inbounds %struct.curfile64_info, ptr %107, i32 0, i32 15
  %109 = load i32, ptr %108, align 4, !tbaa !20
  %110 = icmp ne i32 %109, 0
  br i1 %110, label %111, label %118

111:                                              ; preds = %105
  %112 = load ptr, ptr %5, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.zip64_internal, ptr %112, i32 0, i32 0
  %114 = load ptr, ptr %5, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.zip64_internal, ptr %114, i32 0, i32 1
  %116 = load ptr, ptr %115, align 8, !tbaa !11
  %117 = call i32 @zip64local_putValue(ptr noundef %113, ptr noundef %116, i64 noundef 4294967295, i32 noundef 4)
  store i32 %117, ptr %9, align 4, !tbaa !9
  br label %125

118:                                              ; preds = %105
  %119 = load ptr, ptr %5, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.zip64_internal, ptr %119, i32 0, i32 0
  %121 = load ptr, ptr %5, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.zip64_internal, ptr %121, i32 0, i32 1
  %123 = load ptr, ptr %122, align 8, !tbaa !11
  %124 = call i32 @zip64local_putValue(ptr noundef %120, ptr noundef %123, i64 noundef 0, i32 noundef 4)
  store i32 %124, ptr %9, align 4, !tbaa !9
  br label %125

125:                                              ; preds = %118, %111
  br label %126

126:                                              ; preds = %125, %102
  %127 = load i32, ptr %9, align 4, !tbaa !9
  %128 = icmp eq i32 %127, 0
  br i1 %128, label %129, label %150

129:                                              ; preds = %126
  %130 = load ptr, ptr %5, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.zip64_internal, ptr %130, i32 0, i32 4
  %132 = getelementptr inbounds %struct.curfile64_info, ptr %131, i32 0, i32 15
  %133 = load i32, ptr %132, align 4, !tbaa !20
  %134 = icmp ne i32 %133, 0
  br i1 %134, label %135, label %142

135:                                              ; preds = %129
  %136 = load ptr, ptr %5, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.zip64_internal, ptr %136, i32 0, i32 0
  %138 = load ptr, ptr %5, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.zip64_internal, ptr %138, i32 0, i32 1
  %140 = load ptr, ptr %139, align 8, !tbaa !11
  %141 = call i32 @zip64local_putValue(ptr noundef %137, ptr noundef %140, i64 noundef 4294967295, i32 noundef 4)
  store i32 %141, ptr %9, align 4, !tbaa !9
  br label %149

142:                                              ; preds = %129
  %143 = load ptr, ptr %5, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.zip64_internal, ptr %143, i32 0, i32 0
  %145 = load ptr, ptr %5, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.zip64_internal, ptr %145, i32 0, i32 1
  %147 = load ptr, ptr %146, align 8, !tbaa !11
  %148 = call i32 @zip64local_putValue(ptr noundef %144, ptr noundef %147, i64 noundef 0, i32 noundef 4)
  store i32 %148, ptr %9, align 4, !tbaa !9
  br label %149

149:                                              ; preds = %142, %135
  br label %150

150:                                              ; preds = %149, %126
  %151 = load i32, ptr %9, align 4, !tbaa !9
  %152 = icmp eq i32 %151, 0
  br i1 %152, label %153, label %162

153:                                              ; preds = %150
  %154 = load ptr, ptr %5, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.zip64_internal, ptr %154, i32 0, i32 0
  %156 = load ptr, ptr %5, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.zip64_internal, ptr %156, i32 0, i32 1
  %158 = load ptr, ptr %157, align 8, !tbaa !11
  %159 = load i32, ptr %10, align 4, !tbaa !9
  %160 = zext i32 %159 to i64
  %161 = call i32 @zip64local_putValue(ptr noundef %155, ptr noundef %158, i64 noundef %160, i32 noundef 2)
  store i32 %161, ptr %9, align 4, !tbaa !9
  br label %162

162:                                              ; preds = %153, %150
  %163 = load ptr, ptr %5, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.zip64_internal, ptr %163, i32 0, i32 4
  %165 = getelementptr inbounds %struct.curfile64_info, ptr %164, i32 0, i32 15
  %166 = load i32, ptr %165, align 4, !tbaa !20
  %167 = icmp ne i32 %166, 0
  br i1 %167, label %168, label %171

168:                                              ; preds = %162
  %169 = load i32, ptr %11, align 4, !tbaa !9
  %170 = add i32 %169, 20
  store i32 %170, ptr %11, align 4, !tbaa !9
  br label %171

171:                                              ; preds = %168, %162
  %172 = load i32, ptr %9, align 4, !tbaa !9
  %173 = icmp eq i32 %172, 0
  br i1 %173, label %174, label %183

174:                                              ; preds = %171
  %175 = load ptr, ptr %5, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.zip64_internal, ptr %175, i32 0, i32 0
  %177 = load ptr, ptr %5, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.zip64_internal, ptr %177, i32 0, i32 1
  %179 = load ptr, ptr %178, align 8, !tbaa !11
  %180 = load i32, ptr %11, align 4, !tbaa !9
  %181 = zext i32 %180 to i64
  %182 = call i32 @zip64local_putValue(ptr noundef %176, ptr noundef %179, i64 noundef %181, i32 noundef 2)
  store i32 %182, ptr %9, align 4, !tbaa !9
  br label %183

183:                                              ; preds = %174, %171
  %184 = load i32, ptr %9, align 4, !tbaa !9
  %185 = icmp eq i32 %184, 0
  br i1 %185, label %186, label %212

186:                                              ; preds = %183
  %187 = load i32, ptr %10, align 4, !tbaa !9
  %188 = icmp ugt i32 %187, 0
  br i1 %188, label %189, label %212

189:                                              ; preds = %186
  %190 = load ptr, ptr %5, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.zip64_internal, ptr %190, i32 0, i32 0
  %192 = getelementptr inbounds %struct.zlib_filefunc64_32_def_s, ptr %191, i32 0, i32 0
  %193 = getelementptr inbounds %struct.zlib_filefunc64_def_s, ptr %192, i32 0, i32 2
  %194 = load ptr, ptr %193, align 8, !tbaa !24
  %195 = load ptr, ptr %5, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.zip64_internal, ptr %195, i32 0, i32 0
  %197 = getelementptr inbounds %struct.zlib_filefunc64_32_def_s, ptr %196, i32 0, i32 0
  %198 = getelementptr inbounds %struct.zlib_filefunc64_def_s, ptr %197, i32 0, i32 7
  %199 = load ptr, ptr %198, align 8, !tbaa !25
  %200 = load ptr, ptr %5, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.zip64_internal, ptr %200, i32 0, i32 1
  %202 = load ptr, ptr %201, align 8, !tbaa !11
  %203 = load ptr, ptr %6, align 8, !tbaa !5
  %204 = load i32, ptr %10, align 4, !tbaa !9
  %205 = zext i32 %204 to i64
  %206 = call i64 %194(ptr noundef %199, ptr noundef %202, ptr noundef %203, i64 noundef %205)
  %207 = load i32, ptr %10, align 4, !tbaa !9
  %208 = zext i32 %207 to i64
  %209 = icmp ne i64 %206, %208
  br i1 %209, label %210, label %211

210:                                              ; preds = %189
  store i32 -1, ptr %9, align 4, !tbaa !9
  br label %211

211:                                              ; preds = %210, %189
  br label %212

212:                                              ; preds = %211, %186, %183
  %213 = load i32, ptr %9, align 4, !tbaa !9
  %214 = icmp eq i32 %213, 0
  br i1 %214, label %215, label %241

215:                                              ; preds = %212
  %216 = load i32, ptr %7, align 4, !tbaa !9
  %217 = icmp ugt i32 %216, 0
  br i1 %217, label %218, label %241

218:                                              ; preds = %215
  %219 = load ptr, ptr %5, align 8, !tbaa !5
  %220 = getelementptr inbounds %struct.zip64_internal, ptr %219, i32 0, i32 0
  %221 = getelementptr inbounds %struct.zlib_filefunc64_32_def_s, ptr %220, i32 0, i32 0
  %222 = getelementptr inbounds %struct.zlib_filefunc64_def_s, ptr %221, i32 0, i32 2
  %223 = load ptr, ptr %222, align 8, !tbaa !24
  %224 = load ptr, ptr %5, align 8, !tbaa !5
  %225 = getelementptr inbounds %struct.zip64_internal, ptr %224, i32 0, i32 0
  %226 = getelementptr inbounds %struct.zlib_filefunc64_32_def_s, ptr %225, i32 0, i32 0
  %227 = getelementptr inbounds %struct.zlib_filefunc64_def_s, ptr %226, i32 0, i32 7
  %228 = load ptr, ptr %227, align 8, !tbaa !25
  %229 = load ptr, ptr %5, align 8, !tbaa !5
  %230 = getelementptr inbounds %struct.zip64_internal, ptr %229, i32 0, i32 1
  %231 = load ptr, ptr %230, align 8, !tbaa !11
  %232 = load ptr, ptr %8, align 8, !tbaa !5
  %233 = load i32, ptr %7, align 4, !tbaa !9
  %234 = zext i32 %233 to i64
  %235 = call i64 %223(ptr noundef %228, ptr noundef %231, ptr noundef %232, i64 noundef %234)
  %236 = load i32, ptr %7, align 4, !tbaa !9
  %237 = zext i32 %236 to i64
  %238 = icmp ne i64 %235, %237
  br i1 %238, label %239, label %240

239:                                              ; preds = %218
  store i32 -1, ptr %9, align 4, !tbaa !9
  br label %240

240:                                              ; preds = %239, %218
  br label %241

241:                                              ; preds = %240, %215, %212
  %242 = load i32, ptr %9, align 4, !tbaa !9
  %243 = icmp eq i32 %242, 0
  br i1 %243, label %244, label %290

244:                                              ; preds = %241
  %245 = load ptr, ptr %5, align 8, !tbaa !5
  %246 = getelementptr inbounds %struct.zip64_internal, ptr %245, i32 0, i32 4
  %247 = getelementptr inbounds %struct.curfile64_info, ptr %246, i32 0, i32 15
  %248 = load i32, ptr %247, align 4, !tbaa !20
  %249 = icmp ne i32 %248, 0
  br i1 %249, label %250, label %290

250:                                              ; preds = %244
  call void @llvm.lifetime.start.p0(i64 2, ptr %12) #4
  store i16 1, ptr %12, align 2, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 2, ptr %13) #4
  store i16 16, ptr %13, align 2, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  store i64 0, ptr %14, align 8, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  store i64 0, ptr %15, align 8, !tbaa !28
  %251 = load ptr, ptr %5, align 8, !tbaa !5
  %252 = getelementptr inbounds %struct.zip64_internal, ptr %251, i32 0, i32 0
  %253 = load ptr, ptr %5, align 8, !tbaa !5
  %254 = getelementptr inbounds %struct.zip64_internal, ptr %253, i32 0, i32 1
  %255 = load ptr, ptr %254, align 8, !tbaa !11
  %256 = call i64 @call_ztell64(ptr noundef %252, ptr noundef %255)
  %257 = load ptr, ptr %5, align 8, !tbaa !5
  %258 = getelementptr inbounds %struct.zip64_internal, ptr %257, i32 0, i32 4
  %259 = getelementptr inbounds %struct.curfile64_info, ptr %258, i32 0, i32 16
  store i64 %256, ptr %259, align 8, !tbaa !29
  %260 = load ptr, ptr %5, align 8, !tbaa !5
  %261 = getelementptr inbounds %struct.zip64_internal, ptr %260, i32 0, i32 0
  %262 = load ptr, ptr %5, align 8, !tbaa !5
  %263 = getelementptr inbounds %struct.zip64_internal, ptr %262, i32 0, i32 1
  %264 = load ptr, ptr %263, align 8, !tbaa !11
  %265 = load i16, ptr %12, align 2, !tbaa !26
  %266 = sext i16 %265 to i64
  %267 = call i32 @zip64local_putValue(ptr noundef %261, ptr noundef %264, i64 noundef %266, i32 noundef 2)
  store i32 %267, ptr %9, align 4, !tbaa !9
  %268 = load ptr, ptr %5, align 8, !tbaa !5
  %269 = getelementptr inbounds %struct.zip64_internal, ptr %268, i32 0, i32 0
  %270 = load ptr, ptr %5, align 8, !tbaa !5
  %271 = getelementptr inbounds %struct.zip64_internal, ptr %270, i32 0, i32 1
  %272 = load ptr, ptr %271, align 8, !tbaa !11
  %273 = load i16, ptr %13, align 2, !tbaa !26
  %274 = sext i16 %273 to i64
  %275 = call i32 @zip64local_putValue(ptr noundef %269, ptr noundef %272, i64 noundef %274, i32 noundef 2)
  store i32 %275, ptr %9, align 4, !tbaa !9
  %276 = load ptr, ptr %5, align 8, !tbaa !5
  %277 = getelementptr inbounds %struct.zip64_internal, ptr %276, i32 0, i32 0
  %278 = load ptr, ptr %5, align 8, !tbaa !5
  %279 = getelementptr inbounds %struct.zip64_internal, ptr %278, i32 0, i32 1
  %280 = load ptr, ptr %279, align 8, !tbaa !11
  %281 = load i64, ptr %15, align 8, !tbaa !28
  %282 = call i32 @zip64local_putValue(ptr noundef %277, ptr noundef %280, i64 noundef %281, i32 noundef 8)
  store i32 %282, ptr %9, align 4, !tbaa !9
  %283 = load ptr, ptr %5, align 8, !tbaa !5
  %284 = getelementptr inbounds %struct.zip64_internal, ptr %283, i32 0, i32 0
  %285 = load ptr, ptr %5, align 8, !tbaa !5
  %286 = getelementptr inbounds %struct.zip64_internal, ptr %285, i32 0, i32 1
  %287 = load ptr, ptr %286, align 8, !tbaa !11
  %288 = load i64, ptr %14, align 8, !tbaa !28
  %289 = call i32 @zip64local_putValue(ptr noundef %284, ptr noundef %287, i64 noundef %288, i32 noundef 8)
  store i32 %289, ptr %9, align 4, !tbaa !9
  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 2, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 2, ptr %12) #4
  br label %290

290:                                              ; preds = %250, %244, %241
  %291 = load i32, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  ret i32 %291
}

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

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

attributes #0 = { nocallback nofree nosync 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 = { nounwind willreturn memory(read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
attributes #5 = { nounwind willreturn memory(read) }

!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 88}
!12 = !{!"", !13, i64 0, !6, i64 88, !15, i64 96, !10, i64 112, !16, i64 120, !19, i64 65920, !19, i64 65928, !19, i64 65936, !6, i64 65944}
!13 = !{!"zlib_filefunc64_32_def_s", !14, i64 0, !6, i64 64, !6, i64 72, !6, i64 80}
!14 = !{!"zlib_filefunc64_def_s", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56}
!15 = !{!"linkedlist_data_s", !6, i64 0, !6, i64 8}
!16 = !{!"", !17, i64 0, !10, i64 112, !10, i64 116, !19, i64 120, !6, i64 128, !18, i64 136, !18, i64 144, !18, i64 152, !18, i64 160, !10, i64 168, !10, i64 172, !7, i64 176, !18, i64 65712, !18, i64 65720, !10, i64 65728, !10, i64 65732, !19, i64 65736, !19, i64 65744, !19, i64 65752, !7, i64 65760, !6, i64 65784, !10, i64 65792}
!17 = !{!"z_stream_s", !6, i64 0, !10, i64 8, !18, i64 16, !6, i64 24, !10, i64 32, !18, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !10, i64 88, !18, i64 96, !18, i64 104}
!18 = !{!"long", !7, i64 0}
!19 = !{!"long long", !7, i64 0}
!20 = !{!12, !10, i64 65852}
!21 = !{!12, !18, i64 280}
!22 = !{!12, !10, i64 288}
!23 = !{!12, !18, i64 65832}
!24 = !{!12, !6, i64 16}
!25 = !{!12, !6, i64 56}
!26 = !{!27, !27, i64 0}
!27 = !{!"short", !7, i64 0}
!28 = !{!19, !19, i64 0}
!29 = !{!12, !19, i64 65856}


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

declare i64 @call_ztell64(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local i32 @Write_LocalFileHeader(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3) local_unnamed_addr #1 {
  %5 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %1) #3
  %6 = getelementptr inbounds i8, ptr %0, i64 88
  %7 = load ptr, ptr %6, align 8, !tbaa !5
  %8 = tail call i32 @zip64local_putValue(ptr noundef %0, ptr noundef %7, i64 noundef 67324752, i32 noundef 4)
  %9 = icmp eq i32 %8, 0
  br i1 %9, label %10, label %.thread127

10:                                               ; preds = %4
  %11 = getelementptr inbounds i8, ptr %0, i64 65852
  %12 = load i32, ptr %11, align 4, !tbaa !18
  %.not = icmp eq i32 %12, 0
  %13 = load ptr, ptr %6, align 8, !tbaa !5
  %. = select i1 %.not, i64 20, i64 45
  %14 = tail call i32 @zip64local_putValue(ptr noundef nonnull %0, ptr noundef %13, i64 noundef %., i32 noundef 2)
  %15 = icmp eq i32 %14, 0
  br i1 %15, label %16, label %.thread127

16:                                               ; preds = %10
  %17 = load ptr, ptr %6, align 8, !tbaa !5
  %18 = getelementptr inbounds i8, ptr %0, i64 280
  %19 = load i64, ptr %18, align 8, !tbaa !19
  %20 = tail call i32 @zip64local_putValue(ptr noundef nonnull %0, ptr noundef %17, i64 noundef %19, i32 noundef 2)
  %21 = icmp eq i32 %20, 0
  br i1 %21, label %22, label %.thread127

22:                                               ; preds = %16
  %23 = load ptr, ptr %6, align 8, !tbaa !5
  %24 = getelementptr inbounds i8, ptr %0, i64 288
  %25 = load i32, ptr %24, align 8, !tbaa !20
  %26 = sext i32 %25 to i64
  %27 = tail call i32 @zip64local_putValue(ptr noundef nonnull %0, ptr noundef %23, i64 noundef %26, i32 noundef 2)
  %28 = icmp eq i32 %27, 0
  br i1 %28, label %29, label %.thread127

29:                                               ; preds = %22
  %30 = load ptr, ptr %6, align 8, !tbaa !5
  %31 = getelementptr inbounds i8, ptr %0, i64 65832
  %32 = load i64, ptr %31, align 8, !tbaa !21
  %33 = tail call i32 @zip64local_putValue(ptr noundef nonnull %0, ptr noundef %30, i64 noundef %32, i32 noundef 4)
  %34 = icmp eq i32 %33, 0
  br i1 %34, label %35, label %.thread127

35:                                               ; preds = %29
  %36 = load ptr, ptr %6, align 8, !tbaa !5
  %37 = tail call i32 @zip64local_putValue(ptr noundef nonnull %0, ptr noundef %36, i64 noundef 0, i32 noundef 4)
  %38 = icmp eq i32 %37, 0
  br i1 %38, label %39, label %.thread127

39:                                               ; preds = %35
  %40 = load i32, ptr %11, align 4, !tbaa !18
  %.not87 = icmp eq i32 %40, 0
  %41 = load ptr, ptr %6, align 8, !tbaa !5
  %.133 = select i1 %.not87, i64 0, i64 4294967295
  %42 = tail call i32 @zip64local_putValue(ptr noundef nonnull %0, ptr noundef %41, i64 noundef %.133, i32 noundef 4)
  %43 = icmp eq i32 %42, 0
  br i1 %43, label %44, label %.thread127

44:                                               ; preds = %39
  %45 = load i32, ptr %11, align 4, !tbaa !18
  %.not88 = icmp eq i32 %45, 0
  %46 = load ptr, ptr %6, align 8, !tbaa !5
  %.134 = select i1 %.not88, i64 0, i64 4294967295
  %47 = tail call i32 @zip64local_putValue(ptr noundef nonnull %0, ptr noundef %46, i64 noundef %.134, i32 noundef 4)
  %48 = icmp eq i32 %47, 0
  br i1 %48, label %49, label %.thread127

49:                                               ; preds = %44
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  %51 = and i64 %5, 4294967295
  %52 = tail call i32 @zip64local_putValue(ptr noundef nonnull %0, ptr noundef %50, i64 noundef %51, i32 noundef 2)
  %53 = icmp eq i32 %52, 0
  br i1 %53, label %54, label %.thread127

54:                                               ; preds = %49
  %55 = load i32, ptr %11, align 4, !tbaa !18
  %.not89 = icmp eq i32 %55, 0
  %56 = add i32 %2, 20
  %spec.select = select i1 %.not89, i32 %2, i32 %56
  %57 = load ptr, ptr %6, align 8, !tbaa !5
  %58 = zext i32 %spec.select to i64
  %59 = tail call i32 @zip64local_putValue(ptr noundef nonnull %0, ptr noundef %57, i64 noundef %58, i32 noundef 2)
  %60 = icmp eq i32 %59, 0
  %61 = icmp ne i64 %51, 0
  %or.cond = and i1 %60, %61
  br i1 %or.cond, label %62, label %69

62:                                               ; preds = %54
  %63 = getelementptr inbounds i8, ptr %0, i64 16
  %64 = load ptr, ptr %63, align 8, !tbaa !22
  %65 = getelementptr inbounds i8, ptr %0, i64 56
  %66 = load ptr, ptr %65, align 8, !tbaa !23
  %67 = load ptr, ptr %6, align 8, !tbaa !5
  %68 = tail call i64 %64(ptr noundef %66, ptr noundef %67, ptr noundef %1, i64 noundef %51) #4
  %.not90 = icmp ne i64 %68, %51
  %spec.select93 = sext i1 %.not90 to i32
  br label %69

69:                                               ; preds = %62, %54
  %.9 = phi i32 [ %59, %54 ], [ %spec.select93, %62 ]
  %70 = icmp eq i32 %.9, 0
  %71 = icmp ne i32 %2, 0
  %or.cond3 = and i1 %71, %70
  br i1 %or.cond3, label %72, label %80

72:                                               ; preds = %69
  %73 = getelementptr inbounds i8, ptr %0, i64 16
  %74 = load ptr, ptr %73, align 8, !tbaa !22
  %75 = getelementptr inbounds i8, ptr %0, i64 56
  %76 = load ptr, ptr %75, align 8, !tbaa !23
  %77 = load ptr, ptr %6, align 8, !tbaa !5
  %78 = zext i32 %2 to i64
  %79 = tail call i64 %74(ptr noundef %76, ptr noundef %77, ptr noundef %3, i64 noundef %78) #4
  %.not91 = icmp eq i64 %79, %78
  br i1 %.not91, label %.thread129, label %.thread127

80:                                               ; preds = %69
  br i1 %70, label %.thread129, label %.thread127

.thread129:                                       ; preds = %72, %80
  %81 = load i32, ptr %11, align 4, !tbaa !18
  %.not92 = icmp eq i32 %81, 0
  br i1 %.not92, label %.thread127, label %82

82:                                               ; preds = %.thread129
  %83 = load ptr, ptr %6, align 8, !tbaa !5
  %84 = tail call i64 @call_ztell64(ptr noundef nonnull %0, ptr noundef %83) #4
  %85 = getelementptr inbounds i8, ptr %0, i64 65856
  store i64 %84, ptr %85, align 8, !tbaa !24
  %86 = load ptr, ptr %6, align 8, !tbaa !5
  %87 = tail call i32 @zip64local_putValue(ptr noundef nonnull %0, ptr noundef %86, i64 noundef 1, i32 noundef 2)
  %88 = load ptr, ptr %6, align 8, !tbaa !5
  %89 = tail call i32 @zip64local_putValue(ptr noundef nonnull %0, ptr noundef %88, i64 noundef 16, i32 noundef 2)
  %90 = load ptr, ptr %6, align 8, !tbaa !5
  %91 = tail call i32 @zip64local_putValue(ptr noundef nonnull %0, ptr noundef %90, i64 noundef 0, i32 noundef 8)
  %92 = load ptr, ptr %6, align 8, !tbaa !5
  %93 = tail call i32 @zip64local_putValue(ptr noundef nonnull %0, ptr noundef %92, i64 noundef 0, i32 noundef 8)
  br label %.thread127

.thread127:                                       ; preds = %49, %44, %39, %35, %29, %22, %16, %10, %4, %72, %82, %.thread129, %80
  %.11 = phi i32 [ %93, %82 ], [ 0, %.thread129 ], [ %.9, %80 ], [ -1, %72 ], [ %52, %49 ], [ %47, %44 ], [ %42, %39 ], [ %37, %35 ], [ %33, %29 ], [ %27, %22 ], [ %20, %16 ], [ %14, %10 ], [ %8, %4 ]
  ret i32 %.11
}

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

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

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nofree nounwind willreturn memory(argmem: read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind willreturn memory(read) }
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 88}
!6 = !{!"", !7, i64 0, !9, i64 88, !12, i64 96, !13, i64 112, !14, i64 120, !17, i64 65920, !17, i64 65928, !17, i64 65936, !9, i64 65944}
!7 = !{!"zlib_filefunc64_32_def_s", !8, i64 0, !9, i64 64, !9, i64 72, !9, i64 80}
!8 = !{!"zlib_filefunc64_def_s", !9, i64 0, !9, i64 8, !9, i64 16, !9, i64 24, !9, i64 32, !9, i64 40, !9, i64 48, !9, i64 56}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C/C++ TBAA"}
!12 = !{!"linkedlist_data_s", !9, i64 0, !9, i64 8}
!13 = !{!"int", !10, i64 0}
!14 = !{!"", !15, i64 0, !13, i64 112, !13, i64 116, !17, i64 120, !9, i64 128, !16, i64 136, !16, i64 144, !16, i64 152, !16, i64 160, !13, i64 168, !13, i64 172, !10, i64 176, !16, i64 65712, !16, i64 65720, !13, i64 65728, !13, i64 65732, !17, i64 65736, !17, i64 65744, !17, i64 65752, !10, i64 65760, !9, i64 65784, !13, i64 65792}
!15 = !{!"z_stream_s", !9, i64 0, !13, i64 8, !16, i64 16, !9, i64 24, !13, i64 32, !16, i64 40, !9, i64 48, !9, i64 56, !9, i64 64, !9, i64 72, !9, i64 80, !13, i64 88, !16, i64 96, !16, i64 104}
!16 = !{!"long", !10, i64 0}
!17 = !{!"long long", !10, i64 0}
!18 = !{!6, !13, i64 65852}
!19 = !{!6, !16, i64 280}
!20 = !{!6, !13, i64 288}
!21 = !{!6, !16, i64 65832}
!22 = !{!6, !9, i64 16}
!23 = !{!6, !9, i64 56}
!24 = !{!6, !17, i64 65856}


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