	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_archive_write_add_filter_program ## -- Begin function archive_write_add_filter_program
	.p2align	4, 0x90
_archive_write_add_filter_program:      ## @archive_write_add_filter_program
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	callq	___archive_write_allocate_filter
	movq	%rax, %r15
	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	%r12, %rdi
	callq	_archive_check_magic
	movl	$1, %edi
	movl	$24, %esi
	callq	_calloc
	movq	%rax, 32(%r15)
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_strdup
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%r14, %rdi
	callq	___archive_write_program_allocate
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%r14, %rdi
	callq	_strlen
	leaq	10(%rax), %rsi
	movq	%rbx, %rdi
	callq	_archive_string_ensure
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	_archive_write_add_filter_program.prefix(%rip), %rsi
	movq	%rbx, %rdi
	callq	_archive_strcpy
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_archive_strcat
	movl	(%rbx), %eax
	movl	%eax, 24(%r15)
	movq	_ARCHIVE_FILTER_PROGRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r15)
	movq	_archive_compressor_program_open@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movq	_archive_compressor_program_write@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
	movq	_archive_compressor_program_close@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	_archive_compressor_program_free@GOTPCREL(%rip), %rax
	movq	%rax, (%r15)
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	movq	%r15, %rdi
	callq	_archive_compressor_program_free
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r12, %rdi
	callq	_archive_set_error
	movq	_ARCHIVE_FATAL@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
_archive_write_add_filter_program.prefix: ## @archive_write_add_filter_program.prefix
	.asciz	"Program: "

	.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_program"

	.comm	_ARCHIVE_FILTER_PROGRAM,4,2     ## @ARCHIVE_FILTER_PROGRAM
	.comm	_archive_compressor_program_open,4,2 ## @archive_compressor_program_open
	.comm	_archive_compressor_program_write,4,2 ## @archive_compressor_program_write
	.comm	_archive_compressor_program_close,4,2 ## @archive_compressor_program_close
	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"Can't allocate memory for filter program"

	.comm	_ARCHIVE_FATAL,4,2              ## @ARCHIVE_FATAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_archive_write_add_filter_program ; -- Begin function archive_write_add_filter_program
	.p2align	2
_archive_write_add_filter_program:      ; @archive_write_add_filter_program
	.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	x20, x1
	mov	x21, x0
	bl	___archive_write_allocate_filter
	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
	mov	x0, x21
	bl	_archive_check_magic
	mov	w0, #1
	mov	w1, #24
	bl	_calloc
	str	x0, [x19, #32]
	cbz	x0, LBB0_5
; %bb.1:
	mov	x22, x0
	mov	x0, x20
	bl	_strdup
	str	x0, [x22, #16]
	cbz	x0, LBB0_5
; %bb.2:
	mov	x0, x20
	bl	___archive_write_program_allocate
	str	x0, [x22, #8]
	cbz	x0, LBB0_5
; %bb.3:
	mov	x0, x20
	bl	_strlen
	add	x1, x0, #10
	mov	x0, x22
	bl	_archive_string_ensure
	cbz	x0, LBB0_5
; %bb.4:
Lloh8:
	adrp	x1, _archive_write_add_filter_program.prefix@PAGE
Lloh9:
	add	x1, x1, _archive_write_add_filter_program.prefix@PAGEOFF
	mov	x0, x22
	bl	_archive_strcpy
	mov	x0, x22
	mov	x1, x20
	bl	_archive_strcat
	ldr	w8, [x22]
	str	w8, [x19, #24]
Lloh10:
	adrp	x8, _ARCHIVE_FILTER_PROGRAM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ARCHIVE_FILTER_PROGRAM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _archive_compressor_program_open@GOTPAGE
Lloh14:
	ldr	x9, [x9, _archive_compressor_program_open@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
Lloh16:
	adrp	x10, _archive_compressor_program_write@GOTPAGE
Lloh17:
	ldr	x10, [x10, _archive_compressor_program_write@GOTPAGEOFF]
	stp	w9, w8, [x19, #16]
Lloh18:
	ldr	w8, [x10]
Lloh19:
	adrp	x9, _archive_compressor_program_close@GOTPAGE
Lloh20:
	ldr	x9, [x9, _archive_compressor_program_close@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #8]
Lloh22:
	adrp	x8, _archive_compressor_program_free@GOTPAGE
Lloh23:
	ldr	x8, [x8, _archive_compressor_program_free@GOTPAGEOFF]
	str	x8, [x19]
Lloh24:
	adrp	x8, _ARCHIVE_OK@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ARCHIVE_OK@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
	mov	x0, x19
	bl	_archive_compressor_program_free
Lloh26:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
Lloh29:
	adrp	x2, l_.str.1@PAGE
Lloh30:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_archive_set_error
Lloh31:
	adrp	x8, _ARCHIVE_FATAL@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ARCHIVE_FATAL@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
	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 AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_archive_write_add_filter_program.prefix: ; @archive_write_add_filter_program.prefix
	.asciz	"Program: "

	.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_program"

	.comm	_ARCHIVE_FILTER_PROGRAM,4,2     ; @ARCHIVE_FILTER_PROGRAM
	.comm	_archive_compressor_program_open,4,2 ; @archive_compressor_program_open
	.comm	_archive_compressor_program_write,4,2 ; @archive_compressor_program_write
	.comm	_archive_compressor_program_close,4,2 ; @archive_compressor_program_close
	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"Can't allocate memory for filter program"

	.comm	_ARCHIVE_FATAL,4,2              ; @ARCHIVE_FATAL
.subsections_via_symbols
