	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_archive_write_zip_set_compression_deflate ## -- Begin function archive_write_zip_set_compression_deflate
	.p2align	4, 0x90
_archive_write_zip_set_compression_deflate: ## @archive_write_zip_set_compression_deflate
	.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
	movq	_ARCHIVE_STATE_NEW@GOTPCREL(%rip), %rcx
	movq	_ARCHIVE_STATE_HEADER@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movl	(%rax), %esi
	movq	_ARCHIVE_STATE_DATA@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	callq	_archive_check_magic
	movq	(%r14), %rax
	movq	_ARCHIVE_FORMAT_ZIP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	_ARCHIVE_ERRNO_MISC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rax, %rdx
	movq	_ARCHIVE_FATAL@GOTPCREL(%rip), %rbx
	cmoveq	_ARCHIVE_FAILED@GOTPCREL(%rip), %rbx
	movq	%r14, %rdi
	callq	_archive_set_error
	movl	(%rbx), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ARCHIVE_FAILED,4,2             ## @ARCHIVE_FAILED
	.comm	_ARCHIVE_WRITE_MAGIC,4,2        ## @ARCHIVE_WRITE_MAGIC
	.comm	_ARCHIVE_STATE_NEW,4,2          ## @ARCHIVE_STATE_NEW
	.comm	_ARCHIVE_STATE_HEADER,4,2       ## @ARCHIVE_STATE_HEADER
	.comm	_ARCHIVE_STATE_DATA,4,2         ## @ARCHIVE_STATE_DATA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"archive_write_zip_set_compression_deflate"

	.comm	_ARCHIVE_FORMAT_ZIP,8,3         ## @ARCHIVE_FORMAT_ZIP
	.comm	_ARCHIVE_ERRNO_MISC,4,2         ## @ARCHIVE_ERRNO_MISC
L_.str.1:                               ## @.str.1
	.asciz	"Can only use archive_write_zip_set_compression_deflate with zip format"

	.comm	_ARCHIVE_FATAL,4,2              ## @ARCHIVE_FATAL
L_.str.2:                               ## @.str.2
	.asciz	"deflate compression not supported"

	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
	.comm	_COMPRESSION_DEFLATE,4,2        ## @COMPRESSION_DEFLATE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_archive_write_zip_set_compression_deflate ; -- Begin function archive_write_zip_set_compression_deflate
	.p2align	2
_archive_write_zip_set_compression_deflate: ; @archive_write_zip_set_compression_deflate
	.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	w8, [x8]
Lloh6:
	adrp	x9, _ARCHIVE_STATE_HEADER@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ARCHIVE_STATE_HEADER@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _ARCHIVE_STATE_DATA@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ARCHIVE_STATE_DATA@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w2, w8, w9
Lloh12:
	adrp	x3, l_.str@PAGE
Lloh13:
	add	x3, x3, l_.str@PAGEOFF
	bl	_archive_check_magic
	ldr	x8, [x19]
Lloh14:
	adrp	x9, _ARCHIVE_FORMAT_ZIP@GOTPAGE
Lloh15:
	ldr	x9, [x9, _ARCHIVE_FORMAT_ZIP@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
Lloh17:
	adrp	x10, _ARCHIVE_ERRNO_MISC@GOTPAGE
Lloh18:
	ldr	x10, [x10, _ARCHIVE_ERRNO_MISC@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x10]
Lloh20:
	adrp	x10, l_.str.1@PAGE
Lloh21:
	add	x10, x10, l_.str.1@PAGEOFF
Lloh22:
	adrp	x11, l_.str.2@PAGE
Lloh23:
	add	x11, x11, l_.str.2@PAGEOFF
	cmp	x8, x9
	csel	x2, x11, x10, eq
Lloh24:
	adrp	x8, _ARCHIVE_FAILED@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ARCHIVE_FAILED@GOTPAGEOFF]
Lloh26:
	adrp	x9, _ARCHIVE_FATAL@GOTPAGE
Lloh27:
	ldr	x9, [x9, _ARCHIVE_FATAL@GOTPAGEOFF]
	csel	x20, x8, x9, eq
	mov	x0, x19
	bl	_archive_set_error
	ldr	w0, [x20]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ARCHIVE_FAILED,4,2             ; @ARCHIVE_FAILED
	.comm	_ARCHIVE_WRITE_MAGIC,4,2        ; @ARCHIVE_WRITE_MAGIC
	.comm	_ARCHIVE_STATE_NEW,4,2          ; @ARCHIVE_STATE_NEW
	.comm	_ARCHIVE_STATE_HEADER,4,2       ; @ARCHIVE_STATE_HEADER
	.comm	_ARCHIVE_STATE_DATA,4,2         ; @ARCHIVE_STATE_DATA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"archive_write_zip_set_compression_deflate"

	.comm	_ARCHIVE_FORMAT_ZIP,8,3         ; @ARCHIVE_FORMAT_ZIP
	.comm	_ARCHIVE_ERRNO_MISC,4,2         ; @ARCHIVE_ERRNO_MISC
l_.str.1:                               ; @.str.1
	.asciz	"Can only use archive_write_zip_set_compression_deflate with zip format"

	.comm	_ARCHIVE_FATAL,4,2              ; @ARCHIVE_FATAL
l_.str.2:                               ; @.str.2
	.asciz	"deflate compression not supported"

	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
	.comm	_COMPRESSION_DEFLATE,4,2        ; @COMPRESSION_DEFLATE
.subsections_via_symbols
