	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vnic_dev_packet_filter         ## -- Begin function vnic_dev_packet_filter
	.p2align	4, 0x90
_vnic_dev_packet_filter:                ## @vnic_dev_packet_filter
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	$0, -20(%rbp)
	testl	%esi, %esi
	jne	LBB0_1
## %bb.2:
	testl	%edx, %edx
	jne	LBB0_3
LBB0_4:
	testl	%ecx, %ecx
	je	LBB0_6
LBB0_5:
	movq	_CMD_PFILTER_BROADCAST@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_6:
	orl	%esi, %edx
	testl	%r8d, %r8d
	je	LBB0_8
## %bb.7:
	movq	_CMD_PFILTER_PROMISCUOUS@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
LBB0_8:
	orl	%r8d, %ecx
	orl	%ecx, %edx
	testl	%r9d, %r9d
	je	LBB0_10
## %bb.9:
	movq	_CMD_PFILTER_ALL_MULTICAST@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
LBB0_10:
	orl	%r9d, %edx
	movl	%edx, -24(%rbp)
	movq	_CMD_PACKET_FILTER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-24(%rbp), %rdx
	leaq	-20(%rbp), %rcx
	movq	%r14, %rdi
	movl	$1000, %r8d                     ## imm = 0x3E8
	callq	_vnic_dev_cmd
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_vdev_neterr
LBB0_12:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movq	_CMD_PFILTER_DIRECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%edx, %edx
	je	LBB0_4
LBB0_3:
	movq	_CMD_PFILTER_MULTICAST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testl	%ecx, %ecx
	jne	LBB0_5
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_CMD_PFILTER_DIRECTED,4,2       ## @CMD_PFILTER_DIRECTED
	.comm	_CMD_PFILTER_MULTICAST,4,2      ## @CMD_PFILTER_MULTICAST
	.comm	_CMD_PFILTER_BROADCAST,4,2      ## @CMD_PFILTER_BROADCAST
	.comm	_CMD_PFILTER_PROMISCUOUS,4,2    ## @CMD_PFILTER_PROMISCUOUS
	.comm	_CMD_PFILTER_ALL_MULTICAST,4,2  ## @CMD_PFILTER_ALL_MULTICAST
	.comm	_CMD_PACKET_FILTER,4,2          ## @CMD_PACKET_FILTER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't set packet filter\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vnic_dev_packet_filter         ; -- Begin function vnic_dev_packet_filter
	.p2align	2
_vnic_dev_packet_filter:                ; @vnic_dev_packet_filter
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	str	wzr, [sp, #8]
Lloh0:
	adrp	x8, _CMD_PFILTER_DIRECTED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CMD_PFILTER_DIRECTED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w1, #0
	csel	w8, wzr, w8, eq
Lloh3:
	adrp	x9, _CMD_PFILTER_MULTICAST@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CMD_PFILTER_MULTICAST@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w2, #0
	csel	w9, wzr, w9, eq
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _CMD_PFILTER_BROADCAST@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CMD_PFILTER_BROADCAST@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w3, #0
	csel	w9, wzr, w9, eq
	orr	w8, w8, w9
Lloh9:
	adrp	x9, _CMD_PFILTER_PROMISCUOUS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CMD_PFILTER_PROMISCUOUS@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w4, #0
	csel	w9, wzr, w9, eq
	orr	w8, w8, w9
Lloh12:
	adrp	x9, _CMD_PFILTER_ALL_MULTICAST@GOTPAGE
Lloh13:
	ldr	x9, [x9, _CMD_PFILTER_ALL_MULTICAST@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w5, #0
	csel	w9, wzr, w9, eq
	orr	w8, w8, w9
	str	w8, [sp, #12]
Lloh15:
	adrp	x8, _CMD_PACKET_FILTER@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CMD_PACKET_FILTER@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	add	x2, sp, #12
	add	x3, sp, #8
	mov	w4, #1000
	bl	_vnic_dev_cmd
	mov	x20, x0
	cbz	w0, LBB0_2
; %bb.1:
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_vdev_neterr
LBB0_2:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_CMD_PFILTER_DIRECTED,4,2       ; @CMD_PFILTER_DIRECTED
	.comm	_CMD_PFILTER_MULTICAST,4,2      ; @CMD_PFILTER_MULTICAST
	.comm	_CMD_PFILTER_BROADCAST,4,2      ; @CMD_PFILTER_BROADCAST
	.comm	_CMD_PFILTER_PROMISCUOUS,4,2    ; @CMD_PFILTER_PROMISCUOUS
	.comm	_CMD_PFILTER_ALL_MULTICAST,4,2  ; @CMD_PFILTER_ALL_MULTICAST
	.comm	_CMD_PACKET_FILTER,4,2          ; @CMD_PACKET_FILTER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't set packet filter\n"

.subsections_via_symbols
