; LLVM IR from zjhellofss/KuiperInfer :: source/runtime/pnnx/store_zip.ll (ZN4pnnx14StoreZipWriter5closeEv)

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

%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.pnnx::central_directory_file_header" = type <{ i16, i16, i16, i16, i16, i16, i32, i32, i32, i16, i16, i16, i16, i16, i32, i32 }>
%"struct.pnnx::zip64_extended_extra_field" = type <{ i64, i64, i64, i32 }>
%"struct.pnnx::zip64_end_of_central_directory_record" = type <{ i64, i16, i16, i32, i32, i64, i64, i64, i64 }>
%"struct.pnnx::zip64_end_of_central_directory_locator" = type <{ i32, i64, i32 }>
%"struct.pnnx::end_of_central_directory_record" = type <{ i16, i16, i16, i16, i32, i32, i16 }>
%"class.pnnx::StoreZipWriter" = type { ptr, %"class.std::vector.6" }
%"class.std::vector.6" = type { %"struct.std::_Vector_base.7" }
%"struct.std::_Vector_base.7" = type { %"struct.std::_Vector_base<pnnx::StoreZipWriter::StoreZipMeta, std::allocator<pnnx::StoreZipWriter::StoreZipMeta>>::_Vector_impl" }
%"struct.std::_Vector_base<pnnx::StoreZipWriter::StoreZipMeta, std::allocator<pnnx::StoreZipWriter::StoreZipMeta>>::_Vector_impl" = type { %"struct.std::_Vector_base<pnnx::StoreZipWriter::StoreZipMeta, std::allocator<pnnx::StoreZipWriter::StoreZipMeta>>::_Vector_impl_data" }
%"struct.std::_Vector_base<pnnx::StoreZipWriter::StoreZipMeta, std::allocator<pnnx::StoreZipWriter::StoreZipMeta>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.pnnx::StoreZipWriter::StoreZipMeta" = type { %"class.std::__cxx11::basic_string", i64, i32, i64 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32)) #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32)) #0 align 2

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

declare i64 @ftell(ptr noundef) #2

declare i32 @fclose(ptr noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN4pnnx14StoreZipWriter5closeEv(ptr noundef nonnull align 8 dereferenceable(32) %0) #3 align 2 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca i64, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca %"struct.pnnx::central_directory_file_header", align 1
  %11 = alloca %"struct.pnnx::zip64_extended_extra_field", align 1
  %12 = alloca i16, align 2
  %13 = alloca i16, align 2
  %14 = alloca i64, align 8
  %15 = alloca i32, align 4
  %16 = alloca %"struct.pnnx::zip64_end_of_central_directory_record", align 1
  %17 = alloca i32, align 4
  %18 = alloca %"struct.pnnx::zip64_end_of_central_directory_locator", align 1
  %19 = alloca i32, align 4
  %20 = alloca %"struct.pnnx::end_of_central_directory_record", align 1
  store ptr %0, ptr %3, align 8, !tbaa !5
  %21 = load ptr, ptr %3, align 8
  %22 = getelementptr inbounds %"class.pnnx::StoreZipWriter", ptr %21, i32 0, i32 0
  %23 = load ptr, ptr %22, align 8, !tbaa !9
  %24 = icmp ne ptr %23, null
  br i1 %24, label %26, label %25

25:                                               ; preds = %1
  store i32 0, ptr %2, align 4
  br label %158

26:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  %27 = getelementptr inbounds %"class.pnnx::StoreZipWriter", ptr %21, i32 0, i32 0
  %28 = load ptr, ptr %27, align 8, !tbaa !9
  %29 = call i64 @ftell(ptr noundef %28)
  store i64 %29, ptr %4, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %30 = getelementptr inbounds %"class.pnnx::StoreZipWriter", ptr %21, i32 0, i32 1
  store ptr %30, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  %32 = call ptr @_ZNSt6vectorIN4pnnx14StoreZipWriter12StoreZipMetaESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #5
  %33 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %6, i32 0, i32 0
  store ptr %32, ptr %33, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %34 = load ptr, ptr %5, align 8, !tbaa !5
  %35 = call ptr @_ZNSt6vectorIN4pnnx14StoreZipWriter12StoreZipMetaESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %34) #5
  %36 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %7, i32 0, i32 0
  store ptr %35, ptr %36, align 8
  br label %37

37:                                               ; preds = %102, %26
  %38 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN4pnnx14StoreZipWriter12StoreZipMetaESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  br i1 %38, label %40, label %39

39:                                               ; preds = %37
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  br label %104

40:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %41 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN4pnnx14StoreZipWriter12StoreZipMetaESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  store ptr %41, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 33639248, ptr %9, align 4, !tbaa !17
  %42 = getelementptr inbounds %"class.pnnx::StoreZipWriter", ptr %21, i32 0, i32 0
  %43 = load ptr, ptr %42, align 8, !tbaa !9
  %44 = call i64 @fwrite(ptr noundef %9, i64 noundef 4, i64 noundef 1, ptr noundef %43)
  call void @llvm.lifetime.start.p0(i64 42, ptr %10) #5
  %45 = getelementptr inbounds %"struct.pnnx::central_directory_file_header", ptr %10, i32 0, i32 0
  store i16 0, ptr %45, align 1, !tbaa !19
  %46 = getelementptr inbounds %"struct.pnnx::central_directory_file_header", ptr %10, i32 0, i32 1
  store i16 0, ptr %46, align 1, !tbaa !22
  %47 = getelementptr inbounds %"struct.pnnx::central_directory_file_header", ptr %10, i32 0, i32 2
  store i16 0, ptr %47, align 1, !tbaa !23
  %48 = getelementptr inbounds %"struct.pnnx::central_directory_file_header", ptr %10, i32 0, i32 3
  store i16 0, ptr %48, align 1, !tbaa !24
  %49 = getelementptr inbounds %"struct.pnnx::central_directory_file_header", ptr %10, i32 0, i32 4
  store i16 0, ptr %49, align 1, !tbaa !25
  %50 = getelementptr inbounds %"struct.pnnx::central_directory_file_header", ptr %10, i32 0, i32 5
  store i16 0, ptr %50, align 1, !tbaa !26
  %51 = load ptr, ptr %8, align 8, !tbaa !5
  %52 = getelementptr inbounds %"struct.pnnx::StoreZipWriter::StoreZipMeta", ptr %51, i32 0, i32 2
  %53 = load i32, ptr %52, align 8, !tbaa !27
  %54 = getelementptr inbounds %"struct.pnnx::central_directory_file_header", ptr %10, i32 0, i32 6
  store i32 %53, ptr %54, align 1, !tbaa !31
  %55 = getelementptr inbounds %"struct.pnnx::central_directory_file_header", ptr %10, i32 0, i32 7
  store i32 -1, ptr %55, align 1, !tbaa !32
  %56 = getelementptr inbounds %"struct.pnnx::central_directory_file_header", ptr %10, i32 0, i32 8
  store i32 -1, ptr %56, align 1, !tbaa !33
  %57 = load ptr, ptr %8, align 8, !tbaa !5
  %58 = getelementptr inbounds %"struct.pnnx::StoreZipWriter::StoreZipMeta", ptr %57, i32 0, i32 0
  %59 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %58) #5
  %60 = trunc i64 %59 to i16
  %61 = getelementptr inbounds %"struct.pnnx::central_directory_file_header", ptr %10, i32 0, i32 9
  store i16 %60, ptr %61, align 1, !tbaa !34
  %62 = getelementptr inbounds %"struct.pnnx::central_directory_file_header", ptr %10, i32 0, i32 11
  store i16 0, ptr %62, align 1, !tbaa !35
  %63 = getelementptr inbounds %"struct.pnnx::central_directory_file_header", ptr %10, i32 0, i32 12
  store i16 -1, ptr %63, align 1, !tbaa !36
  %64 = getelementptr inbounds %"struct.pnnx::central_directory_file_header", ptr %10, i32 0, i32 13
  store i16 0, ptr %64, align 1, !tbaa !37
  %65 = getelementptr inbounds %"struct.pnnx::central_directory_file_header", ptr %10, i32 0, i32 14
  store i32 0, ptr %65, align 1, !tbaa !38
  %66 = getelementptr inbounds %"struct.pnnx::central_directory_file_header", ptr %10, i32 0, i32 15
  store i32 -1, ptr %66, align 1, !tbaa !39
  call void @llvm.lifetime.start.p0(i64 28, ptr %11) #5
  %67 = load ptr, ptr %8, align 8, !tbaa !5
  %68 = getelementptr inbounds %"struct.pnnx::StoreZipWriter::StoreZipMeta", ptr %67, i32 0, i32 3
  %69 = load i64, ptr %68, align 8, !tbaa !40
  %70 = getelementptr inbounds %"struct.pnnx::zip64_extended_extra_field", ptr %11, i32 0, i32 0
  store i64 %69, ptr %70, align 1, !tbaa !41
  %71 = load ptr, ptr %8, align 8, !tbaa !5
  %72 = getelementptr inbounds %"struct.pnnx::StoreZipWriter::StoreZipMeta", ptr %71, i32 0, i32 3
  %73 = load i64, ptr %72, align 8, !tbaa !40
  %74 = getelementptr inbounds %"struct.pnnx::zip64_extended_extra_field", ptr %11, i32 0, i32 1
  store i64 %73, ptr %74, align 1, !tbaa !43
  %75 = load ptr, ptr %8, align 8, !tbaa !5
  %76 = getelementptr inbounds %"struct.pnnx::StoreZipWriter::StoreZipMeta", ptr %75, i32 0, i32 1
  %77 = load i64, ptr %76, align 8, !tbaa !44
  %78 = getelementptr inbounds %"struct.pnnx::zip64_extended_extra_field", ptr %11, i32 0, i32 2
  store i64 %77, ptr %78, align 1, !tbaa !45
  %79 = getelementptr inbounds %"struct.pnnx::zip64_extended_extra_field", ptr %11, i32 0, i32 3
  store i32 0, ptr %79, align 1, !tbaa !46
  call void @llvm.lifetime.start.p0(i64 2, ptr %12) #5
  store i16 1, ptr %12, align 2, !tbaa !47
  call void @llvm.lifetime.start.p0(i64 2, ptr %13) #5
  store i16 28, ptr %13, align 2, !tbaa !47
  %80 = getelementptr inbounds %"struct.pnnx::central_directory_file_header", ptr %10, i32 0, i32 10
  store i16 32, ptr %80, align 1, !tbaa !48
  %81 = getelementptr inbounds %"class.pnnx::StoreZipWriter", ptr %21, i32 0, i32 0
  %82 = load ptr, ptr %81, align 8, !tbaa !9
  %83 = call i64 @fwrite(ptr noundef %10, i64 noundef 42, i64 noundef 1, ptr noundef %82)
  %84 = load ptr, ptr %8, align 8, !tbaa !5
  %85 = getelementptr inbounds %"struct.pnnx::StoreZipWriter::StoreZipMeta", ptr %84, i32 0, i32 0
  %86 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %85) #5
  %87 = load ptr, ptr %8, align 8, !tbaa !5
  %88 = getelementptr inbounds %"struct.pnnx::StoreZipWriter::StoreZipMeta", ptr %87, i32 0, i32 0
  %89 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %88) #5
  %90 = getelementptr inbounds %"class.pnnx::StoreZipWriter", ptr %21, i32 0, i32 0
  %91 = load ptr, ptr %90, align 8, !tbaa !9
  %92 = call i64 @fwrite(ptr noundef %86, i64 noundef %89, i64 noundef 1, ptr noundef %91)
  %93 = getelementptr inbounds %"class.pnnx::StoreZipWriter", ptr %21, i32 0, i32 0
  %94 = load ptr, ptr %93, align 8, !tbaa !9
  %95 = call i64 @fwrite(ptr noundef %12, i64 noundef 2, i64 noundef 1, ptr noundef %94)
  %96 = getelementptr inbounds %"class.pnnx::StoreZipWriter", ptr %21, i32 0, i32 0
  %97 = load ptr, ptr %96, align 8, !tbaa !9
  %98 = call i64 @fwrite(ptr noundef %13, i64 noundef 2, i64 noundef 1, ptr noundef %97)
  %99 = getelementptr inbounds %"class.pnnx::StoreZipWriter", ptr %21, i32 0, i32 0
  %100 = load ptr, ptr %99, align 8, !tbaa !9
  %101 = call i64 @fwrite(ptr noundef %11, i64 noundef 28, i64 noundef 1, ptr noundef %100)
  call void @llvm.lifetime.end.p0(i64 2, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 28, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 42, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %102

102:                                              ; preds = %40
  %103 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN4pnnx14StoreZipWriter12StoreZipMetaESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  br label %37

104:                                              ; preds = %39
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %105 = getelementptr inbounds %"class.pnnx::StoreZipWriter", ptr %21, i32 0, i32 0
  %106 = load ptr, ptr %105, align 8, !tbaa !9
  %107 = call i64 @ftell(ptr noundef %106)
  store i64 %107, ptr %14, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 101075792, ptr %15, align 4, !tbaa !17
  %108 = getelementptr inbounds %"class.pnnx::StoreZipWriter", ptr %21, i32 0, i32 0
  %109 = load ptr, ptr %108, align 8, !tbaa !9
  %110 = call i64 @fwrite(ptr noundef %15, i64 noundef 4, i64 noundef 1, ptr noundef %109)
  call void @llvm.lifetime.start.p0(i64 52, ptr %16) #5
  %111 = getelementptr inbounds %"struct.pnnx::zip64_end_of_central_directory_record", ptr %16, i32 0, i32 0
  store i64 44, ptr %111, align 1, !tbaa !49
  %112 = getelementptr inbounds %"struct.pnnx::zip64_end_of_central_directory_record", ptr %16, i32 0, i32 1
  store i16 0, ptr %112, align 1, !tbaa !51
  %113 = getelementptr inbounds %"struct.pnnx::zip64_end_of_central_directory_record", ptr %16, i32 0, i32 2
  store i16 0, ptr %113, align 1, !tbaa !52
  %114 = getelementptr inbounds %"struct.pnnx::zip64_end_of_central_directory_record", ptr %16, i32 0, i32 3
  store i32 0, ptr %114, align 1, !tbaa !53
  %115 = getelementptr inbounds %"struct.pnnx::zip64_end_of_central_directory_record", ptr %16, i32 0, i32 4
  store i32 0, ptr %115, align 1, !tbaa !54
  %116 = getelementptr inbounds %"class.pnnx::StoreZipWriter", ptr %21, i32 0, i32 1
  %117 = call noundef i64 @_ZNKSt6vectorIN4pnnx14StoreZipWriter12StoreZipMetaESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %116) #5
  %118 = getelementptr inbounds %"struct.pnnx::zip64_end_of_central_directory_record", ptr %16, i32 0, i32 5
  store i64 %117, ptr %118, align 1, !tbaa !55
  %119 = getelementptr inbounds %"class.pnnx::StoreZipWriter", ptr %21, i32 0, i32 1
  %120 = call noundef i64 @_ZNKSt6vectorIN4pnnx14StoreZipWriter12StoreZipMetaESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %119) #5
  %121 = getelementptr inbounds %"struct.pnnx::zip64_end_of_central_directory_record", ptr %16, i32 0, i32 6
  store i64 %120, ptr %121, align 1, !tbaa !56
  %122 = load i64, ptr %14, align 8, !tbaa !15
  %123 = load i64, ptr %4, align 8, !tbaa !15
  %124 = sub nsw i64 %122, %123
  %125 = getelementptr inbounds %"struct.pnnx::zip64_end_of_central_directory_record", ptr %16, i32 0, i32 7
  store i64 %124, ptr %125, align 1, !tbaa !57
  %126 = load i64, ptr %4, align 8, !tbaa !15
  %127 = getelementptr inbounds %"struct.pnnx::zip64_end_of_central_directory_record", ptr %16, i32 0, i32 8
  store i64 %126, ptr %127, align 1, !tbaa !58
  %128 = getelementptr inbounds %"class.pnnx::StoreZipWriter", ptr %21, i32 0, i32 0
  %129 = load ptr, ptr %128, align 8, !tbaa !9
  %130 = call i64 @fwrite(ptr noundef %16, i64 noundef 52, i64 noundef 1, ptr noundef %129)
  call void @llvm.lifetime.end.p0(i64 52, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  store i32 117853008, ptr %17, align 4, !tbaa !17
  %131 = getelementptr inbounds %"class.pnnx::StoreZipWriter", ptr %21, i32 0, i32 0
  %132 = load ptr, ptr %131, align 8, !tbaa !9
  %133 = call i64 @fwrite(ptr noundef %17, i64 noundef 4, i64 noundef 1, ptr noundef %132)
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #5
  %134 = getelementptr inbounds %"struct.pnnx::zip64_end_of_central_directory_locator", ptr %18, i32 0, i32 0
  store i32 0, ptr %134, align 1, !tbaa !59
  %135 = load i64, ptr %14, align 8, !tbaa !15
  %136 = getelementptr inbounds %"struct.pnnx::zip64_end_of_central_directory_locator", ptr %18, i32 0, i32 1
  store i64 %135, ptr %136, align 1, !tbaa !61
  %137 = getelementptr inbounds %"struct.pnnx::zip64_end_of_central_directory_locator", ptr %18, i32 0, i32 2
  store i32 1, ptr %137, align 1, !tbaa !62
  %138 = getelementptr inbounds %"class.pnnx::StoreZipWriter", ptr %21, i32 0, i32 0
  %139 = load ptr, ptr %138, align 8, !tbaa !9
  %140 = call i64 @fwrite(ptr noundef %18, i64 noundef 16, i64 noundef 1, ptr noundef %139)
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  store i32 101010256, ptr %19, align 4, !tbaa !17
  %141 = getelementptr inbounds %"class.pnnx::StoreZipWriter", ptr %21, i32 0, i32 0
  %142 = load ptr, ptr %141, align 8, !tbaa !9
  %143 = call i64 @fwrite(ptr noundef %19, i64 noundef 4, i64 noundef 1, ptr noundef %142)
  call void @llvm.lifetime.start.p0(i64 18, ptr %20) #5
  %144 = getelementptr inbounds %"struct.pnnx::end_of_central_directory_record", ptr %20, i32 0, i32 0
  store i16 -1, ptr %144, align 1, !tbaa !63
  %145 = getelementptr inbounds %"struct.pnnx::end_of_central_directory_record", ptr %20, i32 0, i32 1
  store i16 -1, ptr %145, align 1, !tbaa !65
  %146 = getelementptr inbounds %"struct.pnnx::end_of_central_directory_record", ptr %20, i32 0, i32 2
  store i16 -1, ptr %146, align 1, !tbaa !66
  %147 = getelementptr inbounds %"struct.pnnx::end_of_central_directory_record", ptr %20, i32 0, i32 3
  store i16 -1, ptr %147, align 1, !tbaa !67
  %148 = getelementptr inbounds %"struct.pnnx::end_of_central_directory_record", ptr %20, i32 0, i32 4
  store i32 -1, ptr %148, align 1, !tbaa !68
  %149 = getelementptr inbounds %"struct.pnnx::end_of_central_directory_record", ptr %20, i32 0, i32 5
  store i32 -1, ptr %149, align 1, !tbaa !69
  %150 = getelementptr inbounds %"struct.pnnx::end_of_central_directory_record", ptr %20, i32 0, i32 6
  store i16 0, ptr %150, align 1, !tbaa !70
  %151 = getelementptr inbounds %"class.pnnx::StoreZipWriter", ptr %21, i32 0, i32 0
  %152 = load ptr, ptr %151, align 8, !tbaa !9
  %153 = call i64 @fwrite(ptr noundef %20, i64 noundef 18, i64 noundef 1, ptr noundef %152)
  call void @llvm.lifetime.end.p0(i64 18, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  %154 = getelementptr inbounds %"class.pnnx::StoreZipWriter", ptr %21, i32 0, i32 0
  %155 = load ptr, ptr %154, align 8, !tbaa !9
  %156 = call i32 @fclose(ptr noundef %155)
  %157 = getelementptr inbounds %"class.pnnx::StoreZipWriter", ptr %21, i32 0, i32 0
  store ptr null, ptr %157, align 8, !tbaa !9
  store i32 0, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  br label %158

158:                                              ; preds = %104, %25
  %159 = load i32, ptr %2, align 4
  ret i32 %159
}

declare i64 @fwrite(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIN4pnnx14StoreZipWriter12StoreZipMetaESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIN4pnnx14StoreZipWriter12StoreZipMetaESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPN4pnnx14StoreZipWriter12StoreZipMetaESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(56) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN4pnnx14StoreZipWriter12StoreZipMetaESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN4pnnx14StoreZipWriter12StoreZipMetaESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIN4pnnx14StoreZipWriter12StoreZipMetaESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress 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 = { 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++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"_ZTSN4pnnx14StoreZipWriterE", !6, i64 0, !11, i64 8}
!11 = !{!"_ZTSSt6vectorIN4pnnx14StoreZipWriter12StoreZipMetaESaIS2_EE", !12, i64 0}
!12 = !{!"_ZTSSt12_Vector_baseIN4pnnx14StoreZipWriter12StoreZipMetaESaIS2_EE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIN4pnnx14StoreZipWriter12StoreZipMetaESaIS2_EE12_Vector_implE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIN4pnnx14StoreZipWriter12StoreZipMetaESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!15 = !{!16, !16, i64 0}
!16 = !{!"long", !7, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"int", !7, i64 0}
!19 = !{!20, !21, i64 0}
!20 = !{!"_ZTSN4pnnx29central_directory_file_headerE", !21, i64 0, !21, i64 2, !21, i64 4, !21, i64 6, !21, i64 8, !21, i64 10, !18, i64 12, !18, i64 16, !18, i64 20, !21, i64 24, !21, i64 26, !21, i64 28, !21, i64 30, !21, i64 32, !18, i64 34, !18, i64 38}
!21 = !{!"short", !7, i64 0}
!22 = !{!20, !21, i64 2}
!23 = !{!20, !21, i64 4}
!24 = !{!20, !21, i64 6}
!25 = !{!20, !21, i64 8}
!26 = !{!20, !21, i64 10}
!27 = !{!28, !18, i64 40}
!28 = !{!"_ZTSN4pnnx14StoreZipWriter12StoreZipMetaE", !29, i64 0, !16, i64 32, !18, i64 40, !16, i64 48}
!29 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !30, i64 0, !16, i64 8, !7, i64 16}
!30 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!31 = !{!20, !18, i64 12}
!32 = !{!20, !18, i64 16}
!33 = !{!20, !18, i64 20}
!34 = !{!20, !21, i64 24}
!35 = !{!20, !21, i64 28}
!36 = !{!20, !21, i64 30}
!37 = !{!20, !21, i64 32}
!38 = !{!20, !18, i64 34}
!39 = !{!20, !18, i64 38}
!40 = !{!28, !16, i64 48}
!41 = !{!42, !16, i64 0}
!42 = !{!"_ZTSN4pnnx26zip64_extended_extra_fieldE", !16, i64 0, !16, i64 8, !16, i64 16, !18, i64 24}
!43 = !{!42, !16, i64 8}
!44 = !{!28, !16, i64 32}
!45 = !{!42, !16, i64 16}
!46 = !{!42, !18, i64 24}
!47 = !{!21, !21, i64 0}
!48 = !{!20, !21, i64 26}
!49 = !{!50, !16, i64 0}
!50 = !{!"_ZTSN4pnnx37zip64_end_of_central_directory_recordE", !16, i64 0, !21, i64 8, !21, i64 10, !18, i64 12, !18, i64 16, !16, i64 20, !16, i64 28, !16, i64 36, !16, i64 44}
!51 = !{!50, !21, i64 8}
!52 = !{!50, !21, i64 10}
!53 = !{!50, !18, i64 12}
!54 = !{!50, !18, i64 16}
!55 = !{!50, !16, i64 20}
!56 = !{!50, !16, i64 28}
!57 = !{!50, !16, i64 36}
!58 = !{!50, !16, i64 44}
!59 = !{!60, !18, i64 0}
!60 = !{!"_ZTSN4pnnx38zip64_end_of_central_directory_locatorE", !18, i64 0, !16, i64 4, !18, i64 12}
!61 = !{!60, !16, i64 4}
!62 = !{!60, !18, i64 12}
!63 = !{!64, !21, i64 0}
!64 = !{!"_ZTSN4pnnx31end_of_central_directory_recordE", !21, i64 0, !21, i64 2, !21, i64 4, !21, i64 6, !18, i64 8, !18, i64 12, !21, i64 16}
!65 = !{!64, !21, i64 2}
!66 = !{!64, !21, i64 4}
!67 = !{!64, !21, i64 6}
!68 = !{!64, !18, i64 8}
!69 = !{!64, !18, i64 12}
!70 = !{!64, !21, i64 16}


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

%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.pnnx::central_directory_file_header" = type <{ i16, i16, i16, i16, i16, i16, i32, i32, i32, i16, i16, i16, i16, i16, i32, i32 }>
%"struct.pnnx::zip64_extended_extra_field" = type <{ i64, i64, i64, i32 }>
%"struct.pnnx::zip64_end_of_central_directory_record" = type <{ i64, i16, i16, i32, i32, i64, i64, i64, i64 }>
%"struct.pnnx::zip64_end_of_central_directory_locator" = type <{ i32, i64, i32 }>
%"struct.pnnx::end_of_central_directory_record" = type <{ i16, i16, i16, i16, i32, i32, i16 }>

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0 align 2

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

; Function Attrs: nofree nounwind
declare noundef i64 @ftell(ptr nocapture noundef) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef i32 @_ZN4pnnx14StoreZipWriter5closeEv(ptr noundef nonnull align 8 dereferenceable(32) %0) local_unnamed_addr #0 align 2 {
  %2 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %3 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %4 = alloca i32, align 4
  %5 = alloca %"struct.pnnx::central_directory_file_header", align 1
  %6 = alloca %"struct.pnnx::zip64_extended_extra_field", align 8
  %7 = alloca i16, align 2
  %8 = alloca i16, align 2
  %9 = alloca i32, align 4
  %10 = alloca %"struct.pnnx::zip64_end_of_central_directory_record", align 8
  %11 = alloca i32, align 4
  %12 = alloca %"struct.pnnx::zip64_end_of_central_directory_locator", align 4
  %13 = alloca i32, align 4
  %14 = alloca %"struct.pnnx::end_of_central_directory_record", align 1
  %15 = load ptr, ptr %0, align 8, !tbaa !5
  %.not = icmp eq ptr %15, null
  br i1 %.not, label %88, label %16

16:                                               ; preds = %1
  %17 = tail call i64 @ftell(ptr noundef nonnull %15)
  %18 = getelementptr inbounds i8, ptr %0, i64 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #5
  %19 = tail call ptr @_ZNSt6vectorIN4pnnx14StoreZipWriter12StoreZipMetaESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #5
  store ptr %19, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  %20 = tail call ptr @_ZNSt6vectorIN4pnnx14StoreZipWriter12StoreZipMetaESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #5
  store ptr %20, ptr %3, align 8
  %21 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN4pnnx14StoreZipWriter12StoreZipMetaESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  br i1 %21, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %16
  %22 = getelementptr inbounds i8, ptr %5, i64 12
  %23 = getelementptr inbounds i8, ptr %5, i64 16
  %24 = getelementptr inbounds i8, ptr %5, i64 20
  %25 = getelementptr inbounds i8, ptr %5, i64 24
  %26 = getelementptr inbounds i8, ptr %5, i64 28
  %27 = getelementptr inbounds i8, ptr %5, i64 30
  %28 = getelementptr inbounds i8, ptr %5, i64 32
  %29 = getelementptr inbounds i8, ptr %5, i64 34
  %30 = getelementptr inbounds i8, ptr %5, i64 38
  %31 = getelementptr inbounds i8, ptr %6, i64 8
  %32 = getelementptr inbounds i8, ptr %6, i64 16
  %33 = getelementptr inbounds i8, ptr %6, i64 24
  %34 = getelementptr inbounds i8, ptr %5, i64 26
  br label %62

._crit_edge:                                      ; preds = %62, %16
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
  %35 = load ptr, ptr %0, align 8, !tbaa !5
  %36 = call i64 @ftell(ptr noundef %35)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #5
  store i32 101075792, ptr %9, align 4, !tbaa !14
  %37 = load ptr, ptr %0, align 8, !tbaa !5
  %38 = call i64 @fwrite(ptr noundef nonnull %9, i64 noundef 4, i64 noundef 1, ptr noundef %37)
  call void @llvm.lifetime.start.p0(i64 52, ptr nonnull %10) #5
  store i64 44, ptr %10, align 8, !tbaa !16
  %39 = getelementptr inbounds i8, ptr %10, i64 8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(12) %39, i8 0, i64 12, i1 false)
  %40 = call noundef i64 @_ZNKSt6vectorIN4pnnx14StoreZipWriter12StoreZipMetaESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #5
  %41 = getelementptr inbounds i8, ptr %10, i64 20
  store i64 %40, ptr %41, align 4, !tbaa !20
  %42 = call noundef i64 @_ZNKSt6vectorIN4pnnx14StoreZipWriter12StoreZipMetaESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #5
  %43 = getelementptr inbounds i8, ptr %10, i64 28
  store i64 %42, ptr %43, align 4, !tbaa !21
  %44 = sub nsw i64 %36, %17
  %45 = getelementptr inbounds i8, ptr %10, i64 36
  store i64 %44, ptr %45, align 4, !tbaa !22
  %46 = getelementptr inbounds i8, ptr %10, i64 44
  store i64 %17, ptr %46, align 4, !tbaa !23
  %47 = load ptr, ptr %0, align 8, !tbaa !5
  %48 = call i64 @fwrite(ptr noundef nonnull %10, i64 noundef 52, i64 noundef 1, ptr noundef %47)
  call void @llvm.lifetime.end.p0(i64 52, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #5
  store i32 117853008, ptr %11, align 4, !tbaa !14
  %49 = load ptr, ptr %0, align 8, !tbaa !5
  %50 = call i64 @fwrite(ptr noundef nonnull %11, i64 noundef 4, i64 noundef 1, ptr noundef %49)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #5
  store i32 0, ptr %12, align 4, !tbaa !24
  %51 = getelementptr inbounds i8, ptr %12, i64 4
  store i64 %36, ptr %51, align 4, !tbaa !26
  %52 = getelementptr inbounds i8, ptr %12, i64 12
  store i32 1, ptr %52, align 4, !tbaa !27
  %53 = load ptr, ptr %0, align 8, !tbaa !5
  %54 = call i64 @fwrite(ptr noundef nonnull %12, i64 noundef 16, i64 noundef 1, ptr noundef %53)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #5
  store i32 101010256, ptr %13, align 4, !tbaa !14
  %55 = load ptr, ptr %0, align 8, !tbaa !5
  %56 = call i64 @fwrite(ptr noundef nonnull %13, i64 noundef 4, i64 noundef 1, ptr noundef %55)
  call void @llvm.lifetime.start.p0(i64 18, ptr nonnull %14) #5
  %57 = getelementptr inbounds i8, ptr %14, i64 16
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(16) %14, i8 -1, i64 16, i1 false)
  store i16 0, ptr %57, align 1, !tbaa !28
  %58 = load ptr, ptr %0, align 8, !tbaa !5
  %59 = call i64 @fwrite(ptr noundef nonnull %14, i64 noundef 18, i64 noundef 1, ptr noundef %58)
  call void @llvm.lifetime.end.p0(i64 18, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #5
  %60 = load ptr, ptr %0, align 8, !tbaa !5
  %61 = call i32 @fclose(ptr noundef %60)
  store ptr null, ptr %0, align 8, !tbaa !5
  br label %88

62:                                               ; preds = %.lr.ph, %62
  %63 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN4pnnx14StoreZipWriter12StoreZipMetaESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #5
  store i32 33639248, ptr %4, align 4, !tbaa !14
  %64 = load ptr, ptr %0, align 8, !tbaa !5
  %65 = call i64 @fwrite(ptr noundef nonnull %4, i64 noundef 4, i64 noundef 1, ptr noundef %64)
  call void @llvm.lifetime.start.p0(i64 42, ptr nonnull %5) #5
  %66 = getelementptr inbounds i8, ptr %63, i64 40
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(12) %5, i8 0, i64 12, i1 false)
  %67 = load i32, ptr %66, align 8, !tbaa !30
  store i32 %67, ptr %22, align 1, !tbaa !34
  store i32 -1, ptr %23, align 1, !tbaa !36
  store i32 -1, ptr %24, align 1, !tbaa !37
  %68 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %63) #5
  %69 = trunc i64 %68 to i16
  store i16 %69, ptr %25, align 1, !tbaa !38
  store i16 0, ptr %26, align 1, !tbaa !39
  store i16 -1, ptr %27, align 1, !tbaa !40
  store i16 0, ptr %28, align 1, !tbaa !41
  store i32 0, ptr %29, align 1, !tbaa !42
  store i32 -1, ptr %30, align 1, !tbaa !43
  call void @llvm.lifetime.start.p0(i64 28, ptr nonnull %6) #5
  %70 = getelementptr inbounds i8, ptr %63, i64 48
  %71 = load i64, ptr %70, align 8, !tbaa !44
  store i64 %71, ptr %6, align 8, !tbaa !45
  store i64 %71, ptr %31, align 8, !tbaa !47
  %72 = getelementptr inbounds i8, ptr %63, i64 32
  %73 = load i64, ptr %72, align 8, !tbaa !48
  store i64 %73, ptr %32, align 8, !tbaa !49
  store i32 0, ptr %33, align 8, !tbaa !50
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %7) #5
  store i16 1, ptr %7, align 2, !tbaa !51
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %8) #5
  store i16 28, ptr %8, align 2, !tbaa !51
  store i16 32, ptr %34, align 1, !tbaa !52
  %74 = load ptr, ptr %0, align 8, !tbaa !5
  %75 = call i64 @fwrite(ptr noundef nonnull %5, i64 noundef 42, i64 noundef 1, ptr noundef %74)
  %76 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %63) #5
  %77 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %63) #5
  %78 = load ptr, ptr %0, align 8, !tbaa !5
  %79 = call i64 @fwrite(ptr noundef %76, i64 noundef %77, i64 noundef 1, ptr noundef %78)
  %80 = load ptr, ptr %0, align 8, !tbaa !5
  %81 = call i64 @fwrite(ptr noundef nonnull %7, i64 noundef 2, i64 noundef 1, ptr noundef %80)
  %82 = load ptr, ptr %0, align 8, !tbaa !5
  %83 = call i64 @fwrite(ptr noundef nonnull %8, i64 noundef 2, i64 noundef 1, ptr noundef %82)
  %84 = load ptr, ptr %0, align 8, !tbaa !5
  %85 = call i64 @fwrite(ptr noundef nonnull %6, i64 noundef 28, i64 noundef 1, ptr noundef %84)
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 42, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
  %86 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN4pnnx14StoreZipWriter12StoreZipMetaESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #5
  %87 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN4pnnx14StoreZipWriter12StoreZipMetaESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  br i1 %87, label %62, label %._crit_edge

88:                                               ; preds = %1, %._crit_edge
  ret i32 0
}

; Function Attrs: nofree nounwind
declare noundef i64 @fwrite(ptr nocapture noundef, i64 noundef, i64 noundef, ptr nocapture noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIN4pnnx14StoreZipWriter12StoreZipMetaESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIN4pnnx14StoreZipWriter12StoreZipMetaESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPN4pnnx14StoreZipWriter12StoreZipMetaESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(56) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN4pnnx14StoreZipWriter12StoreZipMetaESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN4pnnx14StoreZipWriter12StoreZipMetaESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIN4pnnx14StoreZipWriter12StoreZipMetaESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

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

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree 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 #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { 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, !7, i64 0}
!6 = !{!"_ZTSN4pnnx14StoreZipWriterE", !7, i64 0, !10, i64 8}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSSt6vectorIN4pnnx14StoreZipWriter12StoreZipMetaESaIS2_EE", !11, i64 0}
!11 = !{!"_ZTSSt12_Vector_baseIN4pnnx14StoreZipWriter12StoreZipMetaESaIS2_EE", !12, i64 0}
!12 = !{!"_ZTSNSt12_Vector_baseIN4pnnx14StoreZipWriter12StoreZipMetaESaIS2_EE12_Vector_implE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIN4pnnx14StoreZipWriter12StoreZipMetaESaIS2_EE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!14 = !{!15, !15, i64 0}
!15 = !{!"int", !8, i64 0}
!16 = !{!17, !18, i64 0}
!17 = !{!"_ZTSN4pnnx37zip64_end_of_central_directory_recordE", !18, i64 0, !19, i64 8, !19, i64 10, !15, i64 12, !15, i64 16, !18, i64 20, !18, i64 28, !18, i64 36, !18, i64 44}
!18 = !{!"long", !8, i64 0}
!19 = !{!"short", !8, i64 0}
!20 = !{!17, !18, i64 20}
!21 = !{!17, !18, i64 28}
!22 = !{!17, !18, i64 36}
!23 = !{!17, !18, i64 44}
!24 = !{!25, !15, i64 0}
!25 = !{!"_ZTSN4pnnx38zip64_end_of_central_directory_locatorE", !15, i64 0, !18, i64 4, !15, i64 12}
!26 = !{!25, !18, i64 4}
!27 = !{!25, !15, i64 12}
!28 = !{!29, !19, i64 16}
!29 = !{!"_ZTSN4pnnx31end_of_central_directory_recordE", !19, i64 0, !19, i64 2, !19, i64 4, !19, i64 6, !15, i64 8, !15, i64 12, !19, i64 16}
!30 = !{!31, !15, i64 40}
!31 = !{!"_ZTSN4pnnx14StoreZipWriter12StoreZipMetaE", !32, i64 0, !18, i64 32, !15, i64 40, !18, i64 48}
!32 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !33, i64 0, !18, i64 8, !8, i64 16}
!33 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !7, i64 0}
!34 = !{!35, !15, i64 12}
!35 = !{!"_ZTSN4pnnx29central_directory_file_headerE", !19, i64 0, !19, i64 2, !19, i64 4, !19, i64 6, !19, i64 8, !19, i64 10, !15, i64 12, !15, i64 16, !15, i64 20, !19, i64 24, !19, i64 26, !19, i64 28, !19, i64 30, !19, i64 32, !15, i64 34, !15, i64 38}
!36 = !{!35, !15, i64 16}
!37 = !{!35, !15, i64 20}
!38 = !{!35, !19, i64 24}
!39 = !{!35, !19, i64 28}
!40 = !{!35, !19, i64 30}
!41 = !{!35, !19, i64 32}
!42 = !{!35, !15, i64 34}
!43 = !{!35, !15, i64 38}
!44 = !{!31, !18, i64 48}
!45 = !{!46, !18, i64 0}
!46 = !{!"_ZTSN4pnnx26zip64_extended_extra_fieldE", !18, i64 0, !18, i64 8, !18, i64 16, !15, i64 24}
!47 = !{!46, !18, i64 8}
!48 = !{!31, !18, i64 32}
!49 = !{!46, !18, i64 16}
!50 = !{!46, !15, i64 24}
!51 = !{!19, !19, i64 0}
!52 = !{!35, !19, i64 26}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass