	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_archive_write_add_filter       ## -- Begin function archive_write_add_filter
	.p2align	4, 0x90
_archive_write_add_filter:              ## @archive_write_add_filter
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_codes@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movl	(%r8), %eax
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.1:
	leaq	16(%r8), %rdx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%esi, %eax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rcx
	movl	(%rdx), %eax
	addq	$16, %rdx
	cmpl	$-1, %eax
	jne	LBB0_2
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_archive_set_error
	movq	_ARCHIVE_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbp
	retq
LBB0_5:
	movl	%ecx, %eax
	shlq	$4, %rax
	popq	%rbp
	jmpq	*8(%r8,%rax)                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_codes,8,3                      ## @codes
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No such filter"

	.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       ; -- Begin function archive_write_add_filter
	.p2align	2
_archive_write_add_filter:              ; @archive_write_add_filter
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _codes@GOTPAGE
Lloh1:
	ldr	x8, [x8, _codes@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w11, [x8]
	cmn	w11, #1
	b.eq	LBB0_4
; %bb.1:
	mov	x9, #0
	add	x10, x8, #16
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w11, w1
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x9, x9, #1
	ldr	w11, [x10], #16
	cmn	w11, #1
	b.ne	LBB0_2
LBB0_4:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	bl	_archive_set_error
Lloh8:
	adrp	x8, _ARCHIVE_FATAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ARCHIVE_FATAL@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_5:
	add	x8, x8, w9, uxtw #4
	ldr	x1, [x8, #8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	br	x1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_codes,8,3                      ; @codes
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No such filter"

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