; LLVM IR from fhanau/Efficient-Compression-Tool :: src/miniz (miniz)

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

%struct.mz_zip_archive_tag = type { i64, i64, i32, i32, i32, ptr, ptr }
%struct.mz_zip_internal_state_tag = type { %struct.mz_zip_array, %struct.mz_zip_array, %struct.mz_zip_array, ptr, i64, i64 }
%struct.mz_zip_array = type { ptr, i64, i64, i32 }

@.str.3 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [85 x i8], align 1
@__PRETTY_FUNCTION__.mz_zip_writer_add_mem_ex = external hidden unnamed_addr constant [126 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: nounwind
declare void @free(ptr noundef) #1

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

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

; Function Attrs: nounwind uwtable
declare hidden i64 @mz_zip_file_write_func(ptr noundef, i64 noundef, ptr noundef, i64 noundef) #4

; Function Attrs: nounwind uwtable
define dso_local i32 @mz_zip_writer_add_mem_ex(ptr noundef %0, ptr noundef %1, ptr noundef %2, i64 noundef %3, ptr noundef %4, i16 noundef zeroext %5, ptr noundef %6) #4 {
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i16, align 2
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca i64, align 8
  %19 = alloca i32, align 4
  %20 = alloca i16, align 2
  %21 = alloca i16, align 2
  %22 = alloca i16, align 2
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i64, align 8
  %26 = alloca i64, align 8
  %27 = alloca i64, align 8
  %28 = alloca [30 x i8], align 16
  %29 = alloca ptr, align 8
  store ptr %0, ptr %9, align 8, !tbaa !5
  store ptr %1, ptr %10, align 8, !tbaa !5
  store ptr %2, ptr %11, align 8, !tbaa !5
  store i64 %3, ptr %12, align 8, !tbaa !9
  store ptr %4, ptr %13, align 8, !tbaa !5
  store i16 %5, ptr %14, align 2, !tbaa !11
  store ptr %6, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #9
  store ptr null, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #9
  %30 = load ptr, ptr %11, align 8, !tbaa !5
  %31 = load i64, ptr %12, align 8, !tbaa !9
  %32 = trunc i64 %31 to i32
  %33 = call i64 @crc32(i64 noundef 0, ptr noundef %30, i32 noundef %32)
  %34 = trunc i64 %33 to i32
  store i32 %34, ptr %17, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #9
  %35 = load i64, ptr %12, align 8, !tbaa !9
  store i64 %35, ptr %18, align 8, !tbaa !15
  %36 = load i64, ptr %18, align 8, !tbaa !15
  %37 = icmp ne i64 %36, 0
  br i1 %37, label %38, label %52

38:                                               ; preds = %7
  %39 = load i64, ptr %18, align 8, !tbaa !15
  %40 = load i64, ptr %18, align 8, !tbaa !15
  %41 = udiv i64 %40, 65535
  %42 = load i64, ptr %18, align 8, !tbaa !15
  %43 = urem i64 %42, 65535
  %44 = icmp ne i64 %43, 0
  %45 = xor i1 %44, true
  %46 = xor i1 %45, true
  %47 = zext i1 %46 to i32
  %48 = sext i32 %47 to i64
  %49 = add i64 %41, %48
  %50 = mul i64 5, %49
  %51 = add i64 %39, %50
  br label %53

52:                                               ; preds = %7
  br label %53

53:                                               ; preds = %52, %38
  %54 = phi i64 [ %51, %38 ], [ 0, %52 ]
  store i64 %54, ptr %12, align 8, !tbaa !9
  %55 = load i64, ptr %12, align 8, !tbaa !9
  %56 = icmp ne i64 %55, 0
  br i1 %56, label %57, label %67

57:                                               ; preds = %53
  %58 = load i64, ptr %12, align 8, !tbaa !9
  %59 = call noalias ptr @malloc(i64 noundef %58) #10
  store ptr %59, ptr %16, align 8, !tbaa !5
  %60 = load ptr, ptr %16, align 8, !tbaa !5
  %61 = icmp ne ptr %60, null
  br i1 %61, label %63, label %62

62:                                               ; preds = %57
  store i32 0, ptr %8, align 4
  store i32 1, ptr %19, align 4
  br label %315

63:                                               ; preds = %57
  %64 = load ptr, ptr %11, align 8, !tbaa !5
  %65 = load i64, ptr %18, align 8, !tbaa !15
  %66 = load ptr, ptr %16, align 8, !tbaa !5
  call void @AddNonCompressedBlock(ptr noundef %64, i64 noundef %65, ptr noundef %66)
  br label %67

67:                                               ; preds = %63, %53
  call void @llvm.lifetime.start.p0(i64 2, ptr %20) #9
  store i16 0, ptr %20, align 2, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 2, ptr %21) #9
  store i16 0, ptr %21, align 2, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 2, ptr %22) #9
  store i16 0, ptr %22, align 2, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #9
  store i32 0, ptr %23, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #9
  %68 = load ptr, ptr %9, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.mz_zip_archive_tag, ptr %68, i32 0, i32 0
  %70 = load i64, ptr %69, align 8, !tbaa !17
  store i64 %70, ptr %25, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #9
  %71 = load ptr, ptr %9, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.mz_zip_archive_tag, ptr %71, i32 0, i32 0
  %73 = load i64, ptr %72, align 8, !tbaa !17
  store i64 %73, ptr %26, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #9
  call void @llvm.lifetime.start.p0(i64 30, ptr %28) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #9
  %74 = load ptr, ptr %9, align 8, !tbaa !5
  %75 = icmp ne ptr %74, null
  br i1 %75, label %76, label %107

76:                                               ; preds = %67
  %77 = load ptr, ptr %9, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.mz_zip_archive_tag, ptr %77, i32 0, i32 6
  %79 = load ptr, ptr %78, align 8, !tbaa !19
  %80 = icmp ne ptr %79, null
  br i1 %80, label %81, label %107

81:                                               ; preds = %76
  %82 = load ptr, ptr %9, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.mz_zip_archive_tag, ptr %82, i32 0, i32 3
  %84 = load i32, ptr %83, align 4, !tbaa !20
  %85 = icmp ne i32 %84, 2
  br i1 %85, label %107, label %86

86:                                               ; preds = %81
  %87 = load i64, ptr %12, align 8, !tbaa !9
  %88 = icmp ne i64 %87, 0
  br i1 %88, label %89, label %92

89:                                               ; preds = %86
  %90 = load ptr, ptr %11, align 8, !tbaa !5
  %91 = icmp ne ptr %90, null
  br i1 %91, label %92, label %107

92:                                               ; preds = %89, %86
  %93 = load ptr, ptr %10, align 8, !tbaa !5
  %94 = icmp ne ptr %93, null
  br i1 %94, label %95, label %107

95:                                               ; preds = %92
  %96 = load i16, ptr %14, align 2, !tbaa !11
  %97 = zext i16 %96 to i32
  %98 = icmp ne i32 %97, 0
  br i1 %98, label %99, label %102

99:                                               ; preds = %95
  %100 = load ptr, ptr %13, align 8, !tbaa !5
  %101 = icmp ne ptr %100, null
  br i1 %101, label %102, label %107

102:                                              ; preds = %99, %95
  %103 = load ptr, ptr %9, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.mz_zip_archive_tag, ptr %103, i32 0, i32 2
  %105 = load i32, ptr %104, align 8, !tbaa !21
  %106 = icmp eq i32 %105, 65535
  br i1 %106, label %107, label %108

107:                                              ; preds = %102, %99, %92, %89, %81, %76, %67
  store i32 0, ptr %8, align 4
  store i32 1, ptr %19, align 4
  br label %314

108:                                              ; preds = %102
  %109 = load ptr, ptr %9, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.mz_zip_archive_tag, ptr %109, i32 0, i32 6
  %111 = load ptr, ptr %110, align 8, !tbaa !19
  store ptr %111, ptr %29, align 8, !tbaa !5
  %112 = load i64, ptr %12, align 8, !tbaa !9
  %113 = icmp ugt i64 %112, 4294967295
  br i1 %113, label %117, label %114

114:                                              ; preds = %108
  %115 = load i64, ptr %18, align 8, !tbaa !15
  %116 = icmp ugt i64 %115, 4294967295
  br i1 %116, label %117, label %118

117:                                              ; preds = %114, %108
  store i32 0, ptr %8, align 4
  store i32 1, ptr %19, align 4
  br label %314

118:                                              ; preds = %114
  %119 = load ptr, ptr %10, align 8, !tbaa !5
  %120 = call i32 @mz_zip_writer_validate_archive_name(ptr noundef %119)
  %121 = icmp ne i32 %120, 0
  br i1 %121, label %123, label %122

122:                                              ; preds = %118
  store i32 0, ptr %8, align 4
  store i32 1, ptr %19, align 4
  br label %314

123:                                              ; preds = %118
  %124 = load ptr, ptr %15, align 8, !tbaa !5
  %125 = call i32 @mz_zip_get_file_modified_time(ptr noundef %124, ptr noundef %21, ptr noundef %22)
  %126 = load ptr, ptr %10, align 8, !tbaa !5
  %127 = call i64 @strlen(ptr noundef %126) #11
  store i64 %127, ptr %27, align 8, !tbaa !9
  %128 = load i64, ptr %27, align 8, !tbaa !9
  %129 = icmp ugt i64 %128, 65535
  br i1 %129, label %130, label %131

130:                                              ; preds = %123
  store i32 0, ptr %8, align 4
  store i32 1, ptr %19, align 4
  br label %314

131:                                              ; preds = %123
  %132 = load ptr, ptr %9, align 8, !tbaa !5
  %133 = call i32 @mz_zip_writer_compute_padding_needed_for_file_alignment(ptr noundef %132)
  store i32 %133, ptr %24, align 4, !tbaa !13
  %134 = load ptr, ptr %9, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.mz_zip_archive_tag, ptr %134, i32 0, i32 2
  %136 = load i32, ptr %135, align 8, !tbaa !21
  %137 = icmp eq i32 %136, 65535
  br i1 %137, label %153, label %138

138:                                              ; preds = %131
  %139 = load ptr, ptr %9, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.mz_zip_archive_tag, ptr %139, i32 0, i32 0
  %141 = load i64, ptr %140, align 8, !tbaa !17
  %142 = load i32, ptr %24, align 4, !tbaa !13
  %143 = zext i32 %142 to i64
  %144 = add i64 %141, %143
  %145 = add i64 %144, 30
  %146 = add i64 %145, 46
  %147 = load i16, ptr %14, align 2, !tbaa !11
  %148 = zext i16 %147 to i64
  %149 = add i64 %146, %148
  %150 = load i64, ptr %27, align 8, !tbaa !9
  %151 = add i64 %149, %150
  %152 = icmp ugt i64 %151, 4294967295
  br i1 %152, label %153, label %154

153:                                              ; preds = %138, %131
  store i32 0, ptr %8, align 4
  store i32 1, ptr %19, align 4
  br label %314

154:                                              ; preds = %138
  %155 = load i64, ptr %27, align 8, !tbaa !9
  %156 = icmp ne i64 %155, 0
  br i1 %156, label %157, label %175

157:                                              ; preds = %154
  %158 = load ptr, ptr %10, align 8, !tbaa !5
  %159 = load i64, ptr %27, align 8, !tbaa !9
  %160 = sub i64 %159, 1
  %161 = getelementptr inbounds i8, ptr %158, i64 %160
  %162 = load i8, ptr %161, align 1, !tbaa !22
  %163 = sext i8 %162 to i32
  %164 = icmp eq i32 %163, 47
  br i1 %164, label %165, label %175

165:                                              ; preds = %157
  %166 = load i32, ptr %23, align 4, !tbaa !13
  %167 = or i32 %166, 16
  store i32 %167, ptr %23, align 4, !tbaa !13
  %168 = load i64, ptr %12, align 8, !tbaa !9
  %169 = icmp ne i64 %168, 0
  br i1 %169, label %173, label %170

170:                                              ; preds = %165
  %171 = load i64, ptr %18, align 8, !tbaa !15
  %172 = icmp ne i64 %171, 0
  br i1 %172, label %173, label %174

173:                                              ; preds = %170, %165
  store i32 0, ptr %8, align 4
  store i32 1, ptr %19, align 4
  br label %314

174:                                              ; preds = %170
  br label %175

175:                                              ; preds = %174, %157, %154
  %176 = load ptr, ptr %29, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.mz_zip_internal_state_tag, ptr %176, i32 0, i32 0
  %178 = load i64, ptr %27, align 8, !tbaa !9
  %179 = add i64 46, %178
  %180 = load i16, ptr %14, align 2, !tbaa !11
  %181 = zext i16 %180 to i64
  %182 = add i64 %179, %181
  %183 = call i32 @mz_zip_array_ensure_room(ptr noundef %177, i64 noundef %182)
  %184 = icmp ne i32 %183, 0
  br i1 %184, label %185, label %190

185:                                              ; preds = %175
  %186 = load ptr, ptr %29, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.mz_zip_internal_state_tag, ptr %186, i32 0, i32 1
  %188 = call i32 @mz_zip_array_ensure_room(ptr noundef %187, i64 noundef 1)
  %189 = icmp ne i32 %188, 0
  br i1 %189, label %191, label %190

190:                                              ; preds = %185, %175
  store i32 0, ptr %8, align 4
  store i32 1, ptr %19, align 4
  br label %314

191:                                              ; preds = %185
  %192 = load ptr, ptr %9, align 8, !tbaa !5
  %193 = load i64, ptr %26, align 8, !tbaa !15
  %194 = load i32, ptr %24, align 4, !tbaa !13
  %195 = zext i32 %194 to i64
  %196 = add i64 %195, 30
  %197 = trunc i64 %196 to i32
  %198 = call i32 @mz_zip_writer_write_zeros(ptr noundef %192, i64 noundef %193, i32 noundef %197)
  %199 = icmp ne i32 %198, 0
  br i1 %199, label %201, label %200

200:                                              ; preds = %191
  store i32 0, ptr %8, align 4
  store i32 1, ptr %19, align 4
  br label %314

201:                                              ; preds = %191
  %202 = load i32, ptr %24, align 4, !tbaa !13
  %203 = zext i32 %202 to i64
  %204 = load i64, ptr %25, align 8, !tbaa !15
  %205 = add i64 %204, %203
  store i64 %205, ptr %25, align 8, !tbaa !15
  %206 = load ptr, ptr %9, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.mz_zip_archive_tag, ptr %206, i32 0, i32 4
  %208 = load i32, ptr %207, align 8, !tbaa !23
  %209 = icmp ne i32 %208, 0
  br i1 %209, label %210, label %222

210:                                              ; preds = %201
  %211 = load i64, ptr %25, align 8, !tbaa !15
  %212 = load ptr, ptr %9, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.mz_zip_archive_tag, ptr %212, i32 0, i32 4
  %214 = load i32, ptr %213, align 8, !tbaa !23
  %215 = sub i32 %214, 1
  %216 = zext i32 %215 to i64
  %217 = and i64 %211, %216
  %218 = icmp eq i64 %217, 0
  br i1 %218, label %219, label %220

219:                                              ; preds = %210
  br label %221

220:                                              ; preds = %210
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.4, i32 noundef 859, ptr noundef @__PRETTY_FUNCTION__.mz_zip_writer_add_mem_ex) #12
  unreachable

221:                                              ; preds = %219
  br label %222

222:                                              ; preds = %221, %201
  %223 = load i32, ptr %24, align 4, !tbaa !13
  %224 = zext i32 %223 to i64
  %225 = add i64 %224, 30
  %226 = load i64, ptr %26, align 8, !tbaa !15
  %227 = add i64 %226, %225
  store i64 %227, ptr %26, align 8, !tbaa !15
  call void @llvm.memset.p0.i64(ptr align 16 %28, i8 0, i64 30, i1 false)
  %228 = load ptr, ptr %9, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct.mz_zip_archive_tag, ptr %228, i32 0, i32 5
  %230 = load ptr, ptr %229, align 8, !tbaa !24
  %231 = load i64, ptr %26, align 8, !tbaa !15
  %232 = load ptr, ptr %10, align 8, !tbaa !5
  %233 = load i64, ptr %27, align 8, !tbaa !9
  %234 = call i64 @mz_zip_file_write_func(ptr noundef %230, i64 noundef %231, ptr noundef %232, i64 noundef %233)
  %235 = load i64, ptr %27, align 8, !tbaa !9
  %236 = icmp ne i64 %234, %235
  br i1 %236, label %237, label %238

237:                                              ; preds = %222
  store i32 0, ptr %8, align 4
  store i32 1, ptr %19, align 4
  br label %314

238:                                              ; preds = %222
  %239 = load i64, ptr %27, align 8, !tbaa !9
  %240 = load i64, ptr %26, align 8, !tbaa !15
  %241 = add i64 %240, %239
  store i64 %241, ptr %26, align 8, !tbaa !15
  %242 = load i64, ptr %12, align 8, !tbaa !9
  %243 = icmp ne i64 %242, 0
  br i1 %243, label %244, label %261

244:                                              ; preds = %238
  %245 = load ptr, ptr %9, align 8, !tbaa !5
  %246 = getelementptr inbounds %struct.mz_zip_archive_tag, ptr %245, i32 0, i32 5
  %247 = load ptr, ptr %246, align 8, !tbaa !24
  %248 = load i64, ptr %26, align 8, !tbaa !15
  %249 = load ptr, ptr %16, align 8, !tbaa !5
  %250 = load i64, ptr %12, align 8, !tbaa !9
  %251 = call i64 @mz_zip_file_write_func(ptr noundef %247, i64 noundef %248, ptr noundef %249, i64 noundef %250)
  %252 = load i64, ptr %12, align 8, !tbaa !9
  %253 = icmp ne i64 %251, %252
  br i1 %253, label %254, label %256

254:                                              ; preds = %244
  %255 = load ptr, ptr %16, align 8, !tbaa !5
  call void @free(ptr noundef %255) #9
  store i32 0, ptr %8, align 4
  store i32 1, ptr %19, align 4
  br label %314

256:                                              ; preds = %244
  %257 = load ptr, ptr %16, align 8, !tbaa !5
  call void @free(ptr noundef %257) #9
  %258 = load i64, ptr %12, align 8, !tbaa !9
  %259 = load i64, ptr %26, align 8, !tbaa !15
  %260 = add i64 %259, %258
  store i64 %260, ptr %26, align 8, !tbaa !15
  store i16 8, ptr %20, align 2, !tbaa !11
  br label %261

261:                                              ; preds = %256, %238
  %262 = load i64, ptr %26, align 8, !tbaa !15
  %263 = icmp ugt i64 %262, 4294967295
  br i1 %263, label %264, label %265

264:                                              ; preds = %261
  store i32 0, ptr %8, align 4
  store i32 1, ptr %19, align 4
  br label %314

265:                                              ; preds = %261
  %266 = load ptr, ptr %9, align 8, !tbaa !5
  %267 = getelementptr inbounds [30 x i8], ptr %28, i64 0, i64 0
  %268 = load i64, ptr %27, align 8, !tbaa !9
  %269 = trunc i64 %268 to i16
  %270 = load i64, ptr %18, align 8, !tbaa !15
  %271 = load i64, ptr %12, align 8, !tbaa !9
  %272 = load i32, ptr %17, align 4, !tbaa !13
  %273 = load i16, ptr %20, align 2, !tbaa !11
  %274 = load i16, ptr %21, align 2, !tbaa !11
  %275 = load i16, ptr %22, align 2, !tbaa !11
  %276 = call i32 @mz_zip_writer_create_local_dir_header(ptr noundef %266, ptr noundef %267, i16 noundef zeroext %269, i16 noundef zeroext 0, i64 noundef %270, i64 noundef %271, i32 noundef %272, i16 noundef zeroext %273, i16 noundef zeroext 0, i16 noundef zeroext %274, i16 noundef zeroext %275)
  %277 = icmp ne i32 %276, 0
  br i1 %277, label %279, label %278

278:                                              ; preds = %265
  store i32 0, ptr %8, align 4
  store i32 1, ptr %19, align 4
  br label %314

279:                                              ; preds = %265
  %280 = load ptr, ptr %9, align 8, !tbaa !5
  %281 = getelementptr inbounds %struct.mz_zip_archive_tag, ptr %280, i32 0, i32 5
  %282 = load ptr, ptr %281, align 8, !tbaa !24
  %283 = load i64, ptr %25, align 8, !tbaa !15
  %284 = getelementptr inbounds [30 x i8], ptr %28, i64 0, i64 0
  %285 = call i64 @mz_zip_file_write_func(ptr noundef %282, i64 noundef %283, ptr noundef %284, i64 noundef 30)
  %286 = icmp ne i64 %285, 30
  br i1 %286, label %287, label %288

287:                                              ; preds = %279
  store i32 0, ptr %8, align 4
  store i32 1, ptr %19, align 4
  br label %314

288:                                              ; preds = %279
  %289 = load ptr, ptr %9, align 8, !tbaa !5
  %290 = load ptr, ptr %10, align 8, !tbaa !5
  %291 = load i64, ptr %27, align 8, !tbaa !9
  %292 = trunc i64 %291 to i16
  %293 = load ptr, ptr %13, align 8, !tbaa !5
  %294 = load i16, ptr %14, align 2, !tbaa !11
  %295 = load i64, ptr %18, align 8, !tbaa !15
  %296 = load i64, ptr %12, align 8, !tbaa !9
  %297 = load i32, ptr %17, align 4, !tbaa !13
  %298 = load i16, ptr %20, align 2, !tbaa !11
  %299 = load i16, ptr %21, align 2, !tbaa !11
  %300 = load i16, ptr %22, align 2, !tbaa !11
  %301 = load i64, ptr %25, align 8, !tbaa !15
  %302 = load i32, ptr %23, align 4, !tbaa !13
  %303 = call i32 @mz_zip_writer_add_to_central_dir(ptr noundef %289, ptr noundef %290, i16 noundef zeroext %292, ptr noundef null, i16 noundef zeroext 0, ptr noundef %293, i16 noundef zeroext %294, i64 noundef %295, i64 noundef %296, i32 noundef %297, i16 noundef zeroext %298, i16 noundef zeroext 0, i16 noundef zeroext %299, i16 noundef zeroext %300, i64 noundef %301, i32 noundef %302)
  %304 = icmp ne i32 %303, 0
  br i1 %304, label %306, label %305

305:                                              ; preds = %288
  store i32 0, ptr %8, align 4
  store i32 1, ptr %19, align 4
  br label %314

306:                                              ; preds = %288
  %307 = load ptr, ptr %9, align 8, !tbaa !5
  %308 = getelementptr inbounds %struct.mz_zip_archive_tag, ptr %307, i32 0, i32 2
  %309 = load i32, ptr %308, align 8, !tbaa !21
  %310 = add i32 %309, 1
  store i32 %310, ptr %308, align 8, !tbaa !21
  %311 = load i64, ptr %26, align 8, !tbaa !15
  %312 = load ptr, ptr %9, align 8, !tbaa !5
  %313 = getelementptr inbounds %struct.mz_zip_archive_tag, ptr %312, i32 0, i32 0
  store i64 %311, ptr %313, align 8, !tbaa !17
  store i32 1, ptr %8, align 4
  store i32 1, ptr %19, align 4
  br label %314

314:                                              ; preds = %306, %305, %287, %278, %264, %254, %237, %200, %190, %173, %153, %130, %122, %117, %107
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #9
  call void @llvm.lifetime.end.p0(i64 30, ptr %28) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 2, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 2, ptr %21) #9
  call void @llvm.lifetime.end.p0(i64 2, ptr %20) #9
  br label %315

315:                                              ; preds = %314, %62
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #9
  %316 = load i32, ptr %8, align 4
  ret i32 %316
}

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

; Function Attrs: nounwind uwtable
declare hidden void @AddNonCompressedBlock(ptr noundef, i64 noundef, ptr noundef) #4

; Function Attrs: nounwind uwtable
declare hidden i32 @mz_zip_writer_validate_archive_name(ptr noundef) #4

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

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

; Function Attrs: nounwind uwtable
declare hidden i32 @mz_zip_writer_compute_padding_needed_for_file_alignment(ptr noundef) #4

; Function Attrs: alwaysinline nounwind uwtable
declare hidden i32 @mz_zip_array_ensure_room(ptr noundef, i64 noundef) #7

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #8

; Function Attrs: nounwind uwtable
declare hidden i32 @mz_zip_writer_create_local_dir_header(ptr noundef, ptr noundef, i16 noundef zeroext, i16 noundef zeroext, i64 noundef, i64 noundef, i32 noundef, i16 noundef zeroext, i16 noundef zeroext, i16 noundef zeroext, i16 noundef zeroext) #4

; Function Attrs: nounwind uwtable
declare hidden i32 @mz_zip_writer_add_to_central_dir(ptr noundef, ptr noundef, i16 noundef zeroext, ptr noundef, i16 noundef zeroext, ptr noundef, i16 noundef zeroext, i64 noundef, i64 noundef, i32 noundef, i16 noundef zeroext, i16 noundef zeroext, i16 noundef zeroext, i16 noundef zeroext, i64 noundef, i32 noundef) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { 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 #5 = { "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 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 #7 = { alwaysinline nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { noreturn 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 #9 = { nounwind }
attributes #10 = { nounwind allocsize(0) }
attributes #11 = { nounwind willreturn memory(read) }
attributes #12 = { noreturn 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 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"short", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"long long", !7, i64 0}
!17 = !{!18, !16, i64 0}
!18 = !{!"mz_zip_archive_tag", !16, i64 0, !16, i64 8, !14, i64 16, !14, i64 20, !14, i64 24, !6, i64 32, !6, i64 40}
!19 = !{!18, !6, i64 40}
!20 = !{!18, !14, i64 20}
!21 = !{!18, !14, i64 16}
!22 = !{!7, !7, i64 0}
!23 = !{!18, !14, i64 24}
!24 = !{!18, !6, i64 32}


; 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.3 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [85 x i8], align 1
@__PRETTY_FUNCTION__.mz_zip_writer_add_mem_ex = external hidden unnamed_addr constant [126 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 nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #1

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

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

; Function Attrs: nounwind uwtable
declare hidden i64 @mz_zip_file_write_func(ptr noundef, i64 noundef, ptr noundef, i64 noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @mz_zip_writer_add_mem_ex(ptr noundef %0, ptr noundef %1, ptr noundef %2, i64 noundef %3, ptr noundef %4, i16 noundef zeroext %5, ptr noundef %6) local_unnamed_addr #4 {
  %8 = alloca i16, align 2
  %9 = alloca i16, align 2
  %10 = alloca [30 x i8], align 16
  %11 = trunc i64 %3 to i32
  %12 = tail call i64 @crc32(i64 noundef 0, ptr noundef %2, i32 noundef %11) #9
  %13 = trunc i64 %12 to i32
  %.not124 = icmp eq i64 %3, 0
  br i1 %.not124, label %.thread, label %14

14:                                               ; preds = %7
  %15 = udiv i64 %3, 65535
  %16 = urem i64 %3, 65535
  %17 = icmp ne i64 %16, 0
  %18 = zext i1 %17 to i64
  %19 = add nuw nsw i64 %15, %18
  %20 = mul nuw nsw i64 %19, 5
  %21 = add i64 %20, %3
  %.not123 = icmp eq i64 %21, 0
  br i1 %.not123, label %.thread, label %22

22:                                               ; preds = %14
  %23 = tail call noalias ptr @malloc(i64 noundef %21) #10
  %.not = icmp eq ptr %23, null
  br i1 %.not, label %120, label %24

24:                                               ; preds = %22
  tail call void @AddNonCompressedBlock(ptr noundef %2, i64 noundef %3, ptr noundef nonnull %23)
  br label %.thread

.thread:                                          ; preds = %7, %24, %14
  %.not123136 = phi i1 [ false, %24 ], [ true, %14 ], [ true, %7 ]
  %25 = phi i64 [ %21, %24 ], [ 0, %14 ], [ 0, %7 ]
  %.0107 = phi ptr [ %23, %24 ], [ null, %14 ], [ null, %7 ]
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %8) #9
  store i16 0, ptr %8, align 2, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %9) #9
  store i16 0, ptr %9, align 2, !tbaa !5
  %26 = load i64, ptr %0, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 30, ptr nonnull %10) #9
  %27 = getelementptr inbounds i8, ptr %0, i64 40
  %28 = load ptr, ptr %27, align 8, !tbaa !14
  %.not119 = icmp eq ptr %28, null
  br i1 %.not119, label %119, label %29

29:                                               ; preds = %.thread
  %30 = getelementptr inbounds i8, ptr %0, i64 20
  %31 = load i32, ptr %30, align 4, !tbaa !15
  %.not120 = icmp eq i32 %31, 2
  br i1 %.not120, label %32, label %119

32:                                               ; preds = %29
  %33 = icmp ne ptr %2, null
  %or.cond = or i1 %33, %.not123136
  %34 = icmp ne ptr %1, null
  %or.cond3 = and i1 %34, %or.cond
  br i1 %or.cond3, label %35, label %119

35:                                               ; preds = %32
  %36 = icmp eq i16 %5, 0
  %37 = icmp ne ptr %4, null
  %or.cond5 = or i1 %37, %36
  br i1 %or.cond5, label %38, label %119

38:                                               ; preds = %35
  %39 = getelementptr inbounds i8, ptr %0, i64 16
  %40 = load i32, ptr %39, align 8, !tbaa !16
  %41 = icmp ne i32 %40, 65535
  %42 = or i64 %25, %3
  %or.cond7.not = icmp ult i64 %42, 4294967296
  %or.cond134 = and i1 %or.cond7.not, %41
  br i1 %or.cond134, label %43, label %119

43:                                               ; preds = %38
  %44 = tail call i32 @mz_zip_writer_validate_archive_name(ptr noundef nonnull %1)
  %.not121 = icmp eq i32 %44, 0
  br i1 %.not121, label %119, label %45

45:                                               ; preds = %43
  %46 = call i32 @mz_zip_get_file_modified_time(ptr noundef %6, ptr noundef nonnull %8, ptr noundef nonnull %9)
  %47 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %1) #11
  %48 = icmp ugt i64 %47, 65535
  br i1 %48, label %119, label %49

49:                                               ; preds = %45
  %50 = call i32 @mz_zip_writer_compute_padding_needed_for_file_alignment(ptr noundef nonnull %0)
  %51 = load i32, ptr %39, align 8, !tbaa !16
  %52 = icmp eq i32 %51, 65535
  br i1 %52, label %119, label %53

53:                                               ; preds = %49
  %54 = load i64, ptr %0, align 8, !tbaa !9
  %55 = zext i32 %50 to i64
  %56 = zext i16 %5 to i64
  %57 = add nuw nsw i64 %56, 76
  %58 = add nuw nsw i64 %57, %47
  %59 = add nuw nsw i64 %58, %55
  %60 = add i64 %59, %54
  %61 = icmp ugt i64 %60, 4294967295
  br i1 %61, label %119, label %62

62:                                               ; preds = %53
  %.not122 = icmp eq i64 %47, 0
  br i1 %.not122, label %69, label %63

63:                                               ; preds = %62
  %64 = getelementptr i8, ptr %1, i64 %47
  %65 = getelementptr i8, ptr %64, i64 -1
  %66 = load i8, ptr %65, align 1, !tbaa !17
  %67 = icmp eq i8 %66, 47
  br i1 %67, label %68, label %69

68:                                               ; preds = %63
  %or.cond9.not = icmp eq i64 %42, 0
  br i1 %or.cond9.not, label %69, label %119

69:                                               ; preds = %68, %63, %62
  %.0108 = phi i32 [ 16, %68 ], [ 0, %63 ], [ 0, %62 ]
  %70 = add nuw nsw i64 %56, 46
  %71 = add nuw nsw i64 %70, %47
  %72 = call i32 @mz_zip_array_ensure_room(ptr noundef nonnull %28, i64 noundef %71)
  %.not125 = icmp eq i32 %72, 0
  br i1 %.not125, label %119, label %73

73:                                               ; preds = %69
  %74 = getelementptr inbounds i8, ptr %28, i64 32
  %75 = call i32 @mz_zip_array_ensure_room(ptr noundef nonnull %74, i64 noundef 1)
  %.not126 = icmp eq i32 %75, 0
  br i1 %.not126, label %119, label %76

76:                                               ; preds = %73
  %77 = add nuw nsw i64 %55, 30
  %78 = trunc i64 %77 to i32
  %79 = call i32 @mz_zip_writer_write_zeros(ptr noundef nonnull %0, i64 noundef %26, i32 noundef %78)
  %.not127 = icmp eq i32 %79, 0
  br i1 %.not127, label %119, label %80

80:                                               ; preds = %76
  %81 = add i64 %26, %55
  %82 = getelementptr inbounds i8, ptr %0, i64 24
  %83 = load i32, ptr %82, align 8, !tbaa !18
  %.not128 = icmp eq i32 %83, 0
  br i1 %.not128, label %90, label %84

84:                                               ; preds = %80
  %85 = add i32 %83, -1
  %86 = zext i32 %85 to i64
  %87 = and i64 %81, %86
  %88 = icmp eq i64 %87, 0
  br i1 %88, label %90, label %89

89:                                               ; preds = %84
  call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.4, i32 noundef 859, ptr noundef nonnull @__PRETTY_FUNCTION__.mz_zip_writer_add_mem_ex) #12
  unreachable

90:                                               ; preds = %84, %80
  %91 = add i64 %77, %26
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(30) %10, i8 0, i64 30, i1 false)
  %92 = getelementptr inbounds i8, ptr %0, i64 32
  %93 = load ptr, ptr %92, align 8, !tbaa !19
  %94 = call i64 @mz_zip_file_write_func(ptr noundef %93, i64 noundef %91, ptr noundef nonnull %1, i64 noundef %47)
  %.not129 = icmp eq i64 %94, %47
  br i1 %.not129, label %95, label %119

95:                                               ; preds = %90
  %96 = add i64 %91, %47
  br i1 %.not123136, label %102, label %97

97:                                               ; preds = %95
  %98 = load ptr, ptr %92, align 8, !tbaa !19
  %99 = call i64 @mz_zip_file_write_func(ptr noundef %98, i64 noundef %96, ptr noundef %.0107, i64 noundef %25)
  %.not130 = icmp eq i64 %99, %25
  call void @free(ptr noundef %.0107) #9
  br i1 %.not130, label %100, label %119

100:                                              ; preds = %97
  %101 = add i64 %96, %25
  br label %102

102:                                              ; preds = %100, %95
  %.0109 = phi i16 [ 8, %100 ], [ 0, %95 ]
  %.0106 = phi i64 [ %101, %100 ], [ %96, %95 ]
  %103 = icmp ugt i64 %.0106, 4294967295
  br i1 %103, label %119, label %104

104:                                              ; preds = %102
  %105 = trunc nuw i64 %47 to i16
  %106 = load i16, ptr %8, align 2, !tbaa !5
  %107 = load i16, ptr %9, align 2, !tbaa !5
  %108 = call i32 @mz_zip_writer_create_local_dir_header(ptr noundef nonnull %0, ptr noundef nonnull %10, i16 noundef zeroext %105, i16 noundef zeroext 0, i64 noundef %3, i64 noundef %25, i32 noundef %13, i16 noundef zeroext %.0109, i16 noundef zeroext 0, i16 noundef zeroext %106, i16 noundef zeroext %107)
  %.not131 = icmp eq i32 %108, 0
  br i1 %.not131, label %119, label %109

109:                                              ; preds = %104
  %110 = load ptr, ptr %92, align 8, !tbaa !19
  %111 = call i64 @mz_zip_file_write_func(ptr noundef %110, i64 noundef %81, ptr noundef nonnull %10, i64 noundef 30)
  %.not132 = icmp eq i64 %111, 30
  br i1 %.not132, label %112, label %119

112:                                              ; preds = %109
  %113 = load i16, ptr %8, align 2, !tbaa !5
  %114 = load i16, ptr %9, align 2, !tbaa !5
  %115 = call i32 @mz_zip_writer_add_to_central_dir(ptr noundef nonnull %0, ptr noundef nonnull %1, i16 noundef zeroext %105, ptr noundef null, i16 noundef zeroext 0, ptr noundef %4, i16 noundef zeroext %5, i64 noundef %3, i64 noundef %25, i32 noundef %13, i16 noundef zeroext %.0109, i16 noundef zeroext 0, i16 noundef zeroext %113, i16 noundef zeroext %114, i64 noundef %81, i32 noundef %.0108)
  %.not133 = icmp eq i32 %115, 0
  br i1 %.not133, label %119, label %116

116:                                              ; preds = %112
  %117 = load i32, ptr %39, align 8, !tbaa !16
  %118 = add i32 %117, 1
  store i32 %118, ptr %39, align 8, !tbaa !16
  store i64 %.0106, ptr %0, align 8, !tbaa !9
  br label %119

119:                                              ; preds = %97, %112, %109, %104, %102, %90, %76, %69, %73, %68, %49, %53, %45, %43, %.thread, %29, %38, %32, %35, %116
  %.0 = phi i32 [ 1, %116 ], [ 0, %35 ], [ 0, %32 ], [ 0, %38 ], [ 0, %29 ], [ 0, %.thread ], [ 0, %43 ], [ 0, %45 ], [ 0, %53 ], [ 0, %49 ], [ 0, %68 ], [ 0, %73 ], [ 0, %69 ], [ 0, %76 ], [ 0, %90 ], [ 0, %102 ], [ 0, %104 ], [ 0, %109 ], [ 0, %112 ], [ 0, %97 ]
  call void @llvm.lifetime.end.p0(i64 30, ptr nonnull %10) #9
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %8) #9
  br label %120

120:                                              ; preds = %22, %119
  %.1 = phi i32 [ %.0, %119 ], [ 0, %22 ]
  ret i32 %.1
}

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

; Function Attrs: nounwind uwtable
declare hidden void @AddNonCompressedBlock(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #4

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

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

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

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

; Function Attrs: alwaysinline nounwind uwtable
declare hidden i32 @mz_zip_array_ensure_room(ptr noundef, i64 noundef) local_unnamed_addr #7

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #8

; Function Attrs: nounwind uwtable
declare hidden i32 @mz_zip_writer_create_local_dir_header(ptr noundef, ptr noundef, i16 noundef zeroext, i16 noundef zeroext, i64 noundef, i64 noundef, i32 noundef, i16 noundef zeroext, i16 noundef zeroext, i16 noundef zeroext, i16 noundef zeroext) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
declare hidden i32 @mz_zip_writer_add_to_central_dir(ptr noundef, ptr noundef, i16 noundef zeroext, ptr noundef, i16 noundef zeroext, ptr noundef, i16 noundef zeroext, i64 noundef, i64 noundef, i32 noundef, i16 noundef zeroext, i16 noundef zeroext, i16 noundef zeroext, i16 noundef zeroext, i64 noundef, i32 noundef) local_unnamed_addr #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { 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 #5 = { "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 = { 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 #7 = { alwaysinline nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { noreturn 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 #9 = { nounwind }
attributes #10 = { nounwind allocsize(0) }
attributes #11 = { nounwind willreturn memory(read) }
attributes #12 = { noreturn 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 = !{!"short", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"mz_zip_archive_tag", !11, i64 0, !11, i64 8, !12, i64 16, !12, i64 20, !12, i64 24, !13, i64 32, !13, i64 40}
!11 = !{!"long long", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!10, !13, i64 40}
!15 = !{!10, !12, i64 20}
!16 = !{!10, !12, i64 16}
!17 = !{!7, !7, i64 0}
!18 = !{!10, !12, i64 24}
!19 = !{!10, !13, i64 32}


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