	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_archive_write_set_format_zip   ## -- Begin function archive_write_set_format_zip
	.p2align	4, 0x90
_archive_write_set_format_zip:          ## @archive_write_set_format_zip
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_ARCHIVE_WRITE_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ARCHIVE_STATE_NEW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	callq	_archive_check_magic
	movq	24(%r14), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	*%rax
LBB0_2:
	movl	$1, %edi
	movl	$32, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	%rax, %rbx
	movq	_COMPRESSION_UNSPECIFIED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_real_crc32@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movl	$65536, (%rbx)                  ## imm = 0x10000
	movl	$65536, %edi                    ## imm = 0x10000
	callq	_malloc
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rbx, 56(%r14)
	leaq	L_.str.3(%rip), %rax
	movq	%rax, (%r14)
	movq	_archive_write_zip_options@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r14)
	movq	_archive_write_zip_header@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%r14)
	movq	_archive_write_zip_data@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r14)
	movq	_archive_write_zip_finish_entry@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r14)
	movq	_archive_write_zip_close@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r14)
	movq	_archive_write_zip_free@GOTPCREL(%rip), %rax
	movq	%rax, 24(%r14)
	movq	_ARCHIVE_FORMAT_ZIP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	leaq	L_.str.4(%rip), %rax
	movq	%rax, 8(%r14)
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_3:
	addq	$8, %r14
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_4
LBB0_6:
	movq	%rbx, %rdi
	callq	_free
	addq	$8, %r14
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
LBB0_4:
	movq	%r14, %rdi
	callq	_archive_set_error
	movq	_ARCHIVE_FATAL@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ARCHIVE_WRITE_MAGIC,4,2        ## @ARCHIVE_WRITE_MAGIC
	.comm	_ARCHIVE_STATE_NEW,4,2          ## @ARCHIVE_STATE_NEW
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"archive_write_set_format_zip"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"Can't allocate zip data"

	.comm	_ARCHIVE_FATAL,4,2              ## @ARCHIVE_FATAL
	.comm	_COMPRESSION_UNSPECIFIED,4,2    ## @COMPRESSION_UNSPECIFIED
	.comm	_real_crc32,4,2                 ## @real_crc32
L_.str.2:                               ## @.str.2
	.asciz	"Can't allocate compression buffer"

L_.str.3:                               ## @.str.3
	.asciz	"zip"

	.comm	_archive_write_zip_options,4,2  ## @archive_write_zip_options
	.comm	_archive_write_zip_header,4,2   ## @archive_write_zip_header
	.comm	_archive_write_zip_data,4,2     ## @archive_write_zip_data
	.comm	_archive_write_zip_finish_entry,4,2 ## @archive_write_zip_finish_entry
	.comm	_archive_write_zip_close,4,2    ## @archive_write_zip_close
	.comm	_ARCHIVE_FORMAT_ZIP,4,2         ## @ARCHIVE_FORMAT_ZIP
L_.str.4:                               ## @.str.4
	.asciz	"ZIP"

	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
	.comm	_Z_DEFAULT_COMPRESSION,4,2      ## @Z_DEFAULT_COMPRESSION
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_archive_write_set_format_zip   ; -- Begin function archive_write_set_format_zip
	.p2align	2
_archive_write_set_format_zip:          ; @archive_write_set_format_zip
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _ARCHIVE_WRITE_MAGIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ARCHIVE_WRITE_MAGIC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _ARCHIVE_STATE_NEW@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ARCHIVE_STATE_NEW@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x3, l_.str@PAGE
Lloh7:
	add	x3, x3, l_.str@PAGEOFF
	bl	_archive_check_magic
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	blr	x8
LBB0_2:
	mov	w0, #1
	mov	w1, #32
	bl	_calloc
	cbz	x0, LBB0_5
; %bb.3:
	mov	x20, x0
Lloh8:
	adrp	x8, _COMPRESSION_UNSPECIFIED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _COMPRESSION_UNSPECIFIED@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x0, #24]
Lloh11:
	adrp	x8, _real_crc32@GOTPAGE
Lloh12:
	ldr	x8, [x8, _real_crc32@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x0, #16]
	mov	w8, #65536
	str	w8, [x0]
	mov	w0, #65536
	bl	_malloc
	str	x0, [x20, #8]
	cbz	x0, LBB0_6
; %bb.4:
	str	x20, [x19, #56]
Lloh14:
	adrp	x8, l_.str.3@PAGE
Lloh15:
	add	x8, x8, l_.str.3@PAGEOFF
Lloh16:
	adrp	x9, _archive_write_zip_options@GOTPAGE
Lloh17:
	ldr	x9, [x9, _archive_write_zip_options@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	str	w9, [x19, #48]
Lloh19:
	adrp	x9, _archive_write_zip_header@GOTPAGE
Lloh20:
	ldr	x9, [x9, _archive_write_zip_header@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
Lloh22:
	adrp	x10, _archive_write_zip_data@GOTPAGE
Lloh23:
	ldr	x10, [x10, _archive_write_zip_data@GOTPAGEOFF]
Lloh24:
	ldr	w10, [x10]
	stp	w10, w9, [x19, #40]
Lloh25:
	adrp	x9, _archive_write_zip_finish_entry@GOTPAGE
Lloh26:
	ldr	x9, [x9, _archive_write_zip_finish_entry@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
Lloh28:
	adrp	x10, _archive_write_zip_close@GOTPAGE
Lloh29:
	ldr	x10, [x10, _archive_write_zip_close@GOTPAGEOFF]
Lloh30:
	ldr	w10, [x10]
Lloh31:
	adrp	x11, _archive_write_zip_free@GOTPAGE
Lloh32:
	ldr	x11, [x11, _archive_write_zip_free@GOTPAGEOFF]
	stp	w10, w9, [x19, #32]
	str	x11, [x19, #24]
Lloh33:
	adrp	x9, _ARCHIVE_FORMAT_ZIP@GOTPAGE
Lloh34:
	ldr	x9, [x9, _ARCHIVE_FORMAT_ZIP@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	str	w9, [x19, #16]
Lloh36:
	adrp	x9, l_.str.4@PAGE
Lloh37:
	add	x9, x9, l_.str.4@PAGEOFF
	stp	x8, x9, [x19]
Lloh38:
	adrp	x8, _ARCHIVE_OK@GOTPAGE
Lloh39:
	ldr	x8, [x8, _ARCHIVE_OK@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
	add	x0, x19, #8
Lloh40:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh41:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
Lloh43:
	adrp	x2, l_.str.1@PAGE
Lloh44:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_6:
	mov	x0, x20
	bl	_free
	add	x0, x19, #8
Lloh45:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh46:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh47:
	ldr	w1, [x8]
Lloh48:
	adrp	x2, l_.str.2@PAGE
Lloh49:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_7:
	bl	_archive_set_error
Lloh50:
	adrp	x8, _ARCHIVE_FATAL@GOTPAGE
Lloh51:
	ldr	x8, [x8, _ARCHIVE_FATAL@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.comm	_ARCHIVE_WRITE_MAGIC,4,2        ; @ARCHIVE_WRITE_MAGIC
	.comm	_ARCHIVE_STATE_NEW,4,2          ; @ARCHIVE_STATE_NEW
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"archive_write_set_format_zip"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"Can't allocate zip data"

	.comm	_ARCHIVE_FATAL,4,2              ; @ARCHIVE_FATAL
	.comm	_COMPRESSION_UNSPECIFIED,4,2    ; @COMPRESSION_UNSPECIFIED
	.comm	_real_crc32,4,2                 ; @real_crc32
l_.str.2:                               ; @.str.2
	.asciz	"Can't allocate compression buffer"

l_.str.3:                               ; @.str.3
	.asciz	"zip"

	.comm	_archive_write_zip_options,4,2  ; @archive_write_zip_options
	.comm	_archive_write_zip_header,4,2   ; @archive_write_zip_header
	.comm	_archive_write_zip_data,4,2     ; @archive_write_zip_data
	.comm	_archive_write_zip_finish_entry,4,2 ; @archive_write_zip_finish_entry
	.comm	_archive_write_zip_close,4,2    ; @archive_write_zip_close
	.comm	_ARCHIVE_FORMAT_ZIP,4,2         ; @ARCHIVE_FORMAT_ZIP
l_.str.4:                               ; @.str.4
	.asciz	"ZIP"

	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
	.comm	_Z_DEFAULT_COMPRESSION,4,2      ; @Z_DEFAULT_COMPRESSION
.subsections_via_symbols
