	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function virtnet_vlan_rx_add_vid
_virtnet_vlan_rx_add_vid:               ## @virtnet_vlan_rx_add_vid
	.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	%rdi, %r14
	movl	%esi, -28(%rbp)
	callq	_netdev_priv
	movq	%rax, %rbx
	leaq	-32(%rbp), %r15
	leaq	-28(%rbp), %rsi
	movq	%r15, %rdi
	movl	$4, %edx
	callq	_sg_init_one
	movq	_VIRTIO_NET_CTRL_VLAN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_VIRTIO_NET_CTRL_VLAN_ADD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r15, %rcx
	movl	$1, %r8d
	xorl	%r9d, %r9d
	callq	_virtnet_send_command
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	-28(%rbp), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_warn
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VIRTIO_NET_CTRL_VLAN,4,2       ## @VIRTIO_NET_CTRL_VLAN
	.comm	_VIRTIO_NET_CTRL_VLAN_ADD,4,2   ## @VIRTIO_NET_CTRL_VLAN_ADD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to add VLAN ID %d.\n"

	.no_dead_strip	_virtnet_vlan_rx_add_vid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function virtnet_vlan_rx_add_vid
_virtnet_vlan_rx_add_vid:               ; @virtnet_vlan_rx_add_vid
	.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	w1, [sp, #12]
	bl	_netdev_priv
	mov	x20, x0
	add	x0, sp, #8
	add	x1, sp, #12
	mov	w2, #4
	bl	_sg_init_one
Lloh0:
	adrp	x8, _VIRTIO_NET_CTRL_VLAN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VIRTIO_NET_CTRL_VLAN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _VIRTIO_NET_CTRL_VLAN_ADD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VIRTIO_NET_CTRL_VLAN_ADD@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	x0, x20
	mov	w4, #1
	mov	w5, #0
	bl	_virtnet_send_command
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w2, [sp, #12]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
LBB0_2:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_VIRTIO_NET_CTRL_VLAN,4,2       ; @VIRTIO_NET_CTRL_VLAN
	.comm	_VIRTIO_NET_CTRL_VLAN_ADD,4,2   ; @VIRTIO_NET_CTRL_VLAN_ADD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to add VLAN ID %d.\n"

	.no_dead_strip	_virtnet_vlan_rx_add_vid
.subsections_via_symbols
