	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_archive_write_add_filter_zstd  ## -- Begin function archive_write_add_filter_zstd
	.p2align	4, 0x90
_archive_write_add_filter_zstd:         ## @archive_write_add_filter_zstd
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	___archive_write_allocate_filter
	movq	%rax, %rbx
	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
	movq	%r15, %rdi
	callq	_archive_check_magic
	movl	$1, %edi
	movl	$24, %esi
	callq	_calloc
	leaq	L_.str.1(%rip), %r14
	movq	_ENOMEM@GOTPCREL(%rip), %r13
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %r12
	movq	%rax, 48(%rbx)
	movq	_archive_compressor_zstd_open@GOTPCREL(%rip), %rax
	movq	%rax, 40(%rbx)
	movq	_archive_compressor_zstd_options@GOTPCREL(%rip), %rax
	movq	%rax, 32(%rbx)
	movq	_archive_compressor_zstd_close@GOTPCREL(%rip), %rax
	movq	%rax, 24(%rbx)
	movq	_archive_compressor_zstd_free@GOTPCREL(%rip), %rax
	movq	%rax, 16(%rbx)
	movq	_ARCHIVE_FILTER_ZSTD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	leaq	L_.str.2(%rip), %rdi
	movq	%rdi, (%rbx)
	movl	$3, (%r12)
	callq	___archive_write_program_allocate
	movq	%rax, 8(%r12)
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_ARCHIVE_WARN@GOTPCREL(%rip), %rbx
	leaq	L_.str.3(%rip), %r14
	movq	_ARCHIVE_ERRNO_MISC@GOTPCREL(%rip), %r13
	jmp	LBB0_5
LBB0_3:
	movq	%r12, %rdi
	callq	_free
LBB0_4:
	movq	_ARCHIVE_FATAL@GOTPCREL(%rip), %rbx
LBB0_5:
	movl	(%r13), %esi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_archive_set_error
	movl	(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	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_add_filter_zstd"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"Out of memory"

	.comm	_ARCHIVE_FATAL,4,2              ## @ARCHIVE_FATAL
	.comm	_archive_compressor_zstd_open,4,2 ## @archive_compressor_zstd_open
	.comm	_archive_compressor_zstd_options,4,2 ## @archive_compressor_zstd_options
	.comm	_archive_compressor_zstd_close,4,2 ## @archive_compressor_zstd_close
	.comm	_archive_compressor_zstd_free,4,2 ## @archive_compressor_zstd_free
	.comm	_ARCHIVE_FILTER_ZSTD,4,2        ## @ARCHIVE_FILTER_ZSTD
L_.str.2:                               ## @.str.2
	.asciz	"zstd"

	.comm	_ARCHIVE_ERRNO_MISC,4,2         ## @ARCHIVE_ERRNO_MISC
L_.str.3:                               ## @.str.3
	.asciz	"Using external zstd program"

	.comm	_ARCHIVE_WARN,4,2               ## @ARCHIVE_WARN
	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_archive_write_add_filter_zstd  ; -- Begin function archive_write_add_filter_zstd
	.p2align	2
_archive_write_add_filter_zstd:         ; @archive_write_add_filter_zstd
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	bl	___archive_write_allocate_filter
	mov	x20, 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
	mov	x0, x19
	bl	_archive_check_magic
	mov	w0, #1
	mov	w1, #24
	bl	_calloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x21, x0
Lloh8:
	adrp	x8, _archive_compressor_zstd_open@GOTPAGE
Lloh9:
	ldr	x8, [x8, _archive_compressor_zstd_open@GOTPAGEOFF]
Lloh10:
	adrp	x9, _archive_compressor_zstd_options@GOTPAGE
Lloh11:
	ldr	x9, [x9, _archive_compressor_zstd_options@GOTPAGEOFF]
	stp	x9, x8, [x20, #32]
Lloh12:
	adrp	x8, _archive_compressor_zstd_close@GOTPAGE
Lloh13:
	ldr	x8, [x8, _archive_compressor_zstd_close@GOTPAGEOFF]
Lloh14:
	adrp	x9, _archive_compressor_zstd_free@GOTPAGE
Lloh15:
	ldr	x9, [x9, _archive_compressor_zstd_free@GOTPAGEOFF]
	str	x0, [x20, #48]
	stp	x9, x8, [x20, #16]
Lloh16:
	adrp	x8, _ARCHIVE_FILTER_ZSTD@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ARCHIVE_FILTER_ZSTD@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [x20, #8]
Lloh19:
	adrp	x0, l_.str.2@PAGE
Lloh20:
	add	x0, x0, l_.str.2@PAGEOFF
	str	x0, [x20]
	mov	w8, #3
	str	w8, [x21]
	bl	___archive_write_program_allocate
	str	x0, [x21, #8]
	cbz	x0, LBB0_3
; %bb.2:
Lloh21:
	adrp	x20, _ARCHIVE_WARN@GOTPAGE
Lloh22:
	ldr	x20, [x20, _ARCHIVE_WARN@GOTPAGEOFF]
Lloh23:
	adrp	x2, l_.str.3@PAGE
Lloh24:
	add	x2, x2, l_.str.3@PAGEOFF
Lloh25:
	adrp	x8, _ARCHIVE_ERRNO_MISC@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ARCHIVE_ERRNO_MISC@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
	mov	x0, x21
	bl	_free
LBB0_4:
Lloh27:
	adrp	x20, _ARCHIVE_FATAL@GOTPAGE
Lloh28:
	ldr	x20, [x20, _ARCHIVE_FATAL@GOTPAGEOFF]
Lloh29:
	adrp	x2, l_.str.1@PAGE
Lloh30:
	add	x2, x2, l_.str.1@PAGEOFF
Lloh31:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_archive_set_error
	ldr	w0, [x20]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.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_add_filter_zstd"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"Out of memory"

	.comm	_ARCHIVE_FATAL,4,2              ; @ARCHIVE_FATAL
	.comm	_archive_compressor_zstd_open,4,2 ; @archive_compressor_zstd_open
	.comm	_archive_compressor_zstd_options,4,2 ; @archive_compressor_zstd_options
	.comm	_archive_compressor_zstd_close,4,2 ; @archive_compressor_zstd_close
	.comm	_archive_compressor_zstd_free,4,2 ; @archive_compressor_zstd_free
	.comm	_ARCHIVE_FILTER_ZSTD,4,2        ; @ARCHIVE_FILTER_ZSTD
l_.str.2:                               ; @.str.2
	.asciz	"zstd"

	.comm	_ARCHIVE_ERRNO_MISC,4,2         ; @ARCHIVE_ERRNO_MISC
l_.str.3:                               ; @.str.3
	.asciz	"Using external zstd program"

	.comm	_ARCHIVE_WARN,4,2               ; @ARCHIVE_WARN
	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
.subsections_via_symbols
