	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_archive_write_set_format_filter_by_ext ## -- Begin function archive_write_set_format_filter_by_ext
	.p2align	4, 0x90
_archive_write_set_format_filter_by_ext: ## @archive_write_set_format_filter_by_ext
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_get_array_index
	testl	%eax, %eax
	js	LBB0_3
## %bb.1:
	movq	_names@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	movl	%eax, %edx
	shlq	$4, %rdx
	movq	%r14, %rdi
	movq	%rdx, %rbx
	callq	*(%rcx,%rdx)
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_4
## %bb.2:
	movq	(%r15), %rax
	movq	%r14, %rdi
	movq	%rbx, %rcx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*8(%rax,%rcx)                   ## TAILCALL
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rcx
	callq	_archive_set_error
	movq	_ARCHIVE_STATE_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	_ARCHIVE_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_names,8,3                      ## @names
	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No such format '%s'"

	.comm	_ARCHIVE_STATE_FATAL,4,2        ## @ARCHIVE_STATE_FATAL
	.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_set_format_filter_by_ext ; -- Begin function archive_write_set_format_filter_by_ext
	.p2align	2
_archive_write_set_format_filter_by_ext: ; @archive_write_set_format_filter_by_ext
	.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	x19, x0
	mov	x0, x1
	bl	_get_array_index
	tbnz	w0, #31, LBB0_3
; %bb.1:
Lloh0:
	adrp	x20, _names@GOTPAGE
Lloh1:
	ldr	x20, [x20, _names@GOTPAGEOFF]
	ldr	x8, [x20]
	mov	w21, w0
	lsl	x9, x21, #4
	ldr	x8, [x8, x9]
	mov	x0, x19
	blr	x8
Lloh2:
	adrp	x8, _ARCHIVE_OK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ARCHIVE_OK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.2:
	ldr	x8, [x20]
	add	x8, x8, x21, lsl #4
	ldr	x1, [x8, #8]
	mov	x0, x19
	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
	br	x1
LBB0_3:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x3, x20
	bl	_archive_set_error
Lloh10:
	adrp	x8, _ARCHIVE_STATE_FATAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ARCHIVE_STATE_FATAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x19]
Lloh13:
	adrp	x8, _ARCHIVE_FATAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ARCHIVE_FATAL@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
LBB0_4:
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_names,8,3                      ; @names
	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No such format '%s'"

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