	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcap_setfilter_bpf
_pcap_setfilter_bpf:                    ## @pcap_setfilter_bpf
	.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, %r14
	movq	%rdi, %rbx
	movq	24(%rdi), %r15
	addq	$20, %rdi
	callq	_pcap_freecode
	movl	16(%rbx), %edi
	movq	_BIOCSETF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edx
	callq	_ioctl
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	_EINVAL@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_6
## %bb.2:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_install_bpf_program
	testq	%rax, %rax
	js	LBB0_7
## %bb.3:
	movl	$0, (%r15)
	jmp	LBB0_5
LBB0_4:
	movl	$1, (%r15)
	movq	$0, 8(%rbx)
LBB0_5:
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_6:
	movl	(%rbx), %edi
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
	callq	_pcap_fmt_errmsg_for_errno
LBB0_7:
	movl	$-1, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BIOCSETF,4,2                   ## @BIOCSETF
	.comm	_errno,8,3                      ## @errno
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_PCAP_ERRBUF_SIZE,4,2           ## @PCAP_ERRBUF_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BIOCSETF"

	.no_dead_strip	_pcap_setfilter_bpf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcap_setfilter_bpf
_pcap_setfilter_bpf:                    ; @pcap_setfilter_bpf
	.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
	ldr	x21, [x0, #24]
	add	x0, x0, #20
	bl	_pcap_freecode
	ldr	w0, [x19, #16]
Lloh0:
	adrp	x8, _BIOCSETF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BIOCSETF@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_ioctl
	cbz	x0, LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _errno@GOTPAGE
Lloh4:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh5:
	ldr	x2, [x8]
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x2, x8
	b.ne	LBB0_5
; %bb.2:
	mov	x0, x19
	mov	x1, x20
	bl	_install_bpf_program
	tbnz	x0, #63, LBB0_6
; %bb.3:
	mov	w0, #0
	str	wzr, [x21]
	b	LBB0_7
LBB0_4:
	mov	w8, #1
	str	w8, [x21]
	str	xzr, [x19, #8]
	b	LBB0_7
LBB0_5:
	ldr	w0, [x19]
Lloh9:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x3, l_.str@PAGE
Lloh13:
	add	x3, x3, l_.str@PAGEOFF
	bl	_pcap_fmt_errmsg_for_errno
LBB0_6:
	mov	w0, #-1
LBB0_7:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_BIOCSETF,4,2                   ; @BIOCSETF
	.comm	_errno,8,3                      ; @errno
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_PCAP_ERRBUF_SIZE,4,2           ; @PCAP_ERRBUF_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BIOCSETF"

	.no_dead_strip	_pcap_setfilter_bpf
.subsections_via_symbols
