	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function liquidio_set_vf_vlan
_liquidio_set_vf_vlan:                  ## @liquidio_set_vf_vlan
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movl	%ecx, %r15d
	movl	%edx, %r13d
	movl	%esi, %ebx
	callq	_GET_LIO
	testl	%ebx, %ebx
	js	LBB0_2
## %bb.1:
	movq	%rax, %r12
	movq	8(%rax), %rax
	cmpl	%ebx, (%rax)
	jle	LBB0_2
## %bb.4:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_ETH_P_8021Q@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	cmpq	%r14, %rax
	jne	LBB0_5
## %bb.6:
	cmpl	$7, %r15d
	jg	LBB0_2
## %bb.7:
	movq	_VLAN_N_VID@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jle	LBB0_2
## %bb.8:
	movq	_VLAN_PRIO_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r15d
	orl	%r13d, %r15d
	testl	%r13d, %r13d
	cmovel	%r13d, %r15d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rcx
	movl	%ebx, %r14d
	xorl	%eax, %eax
	cmpl	%r15d, (%rcx,%r14,4)
	je	LBB0_15
## %bb.9:
	leaq	-88(%rbp), %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	testl	%r13d, %r13d
	jne	LBB0_10
## %bb.11:
	movq	_OCTNET_CMD_DEL_VLAN_FILTER@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_3:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_15:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_EPROTONOSUPPORT@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_10:
	movq	_OCTNET_CMD_ADD_VLAN_FILTER@GOTPCREL(%rip), %rax
LBB0_12:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	leaq	-88(%rbp), %rsi
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movl	%r15d, -72(%rbp)
	incl	%ebx
	movl	%ebx, -68(%rbp)
	movq	$0, -64(%rbp)
	movq	(%r12), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
	movq	$0, -88(%rbp)
	movq	%rcx, %rbx
	movq	%rcx, %rdi
	callq	_octnet_send_nic_ctrl_pkt
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movl	%eax, %ecx
	movq	_EIO@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	subl	(%rdx), %eax
	testl	%ecx, %ecx
	cmovlel	%ecx, %eax
	jmp	LBB0_15
LBB0_14:
	movq	8(%rbx), %rax
	movl	%r15d, (%rax,%r14,4)
	xorl	%eax, %eax
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ETH_P_8021Q,4,2                ## @ETH_P_8021Q
	.comm	_EPROTONOSUPPORT,4,2            ## @EPROTONOSUPPORT
	.comm	_VLAN_N_VID,4,2                 ## @VLAN_N_VID
	.comm	_VLAN_PRIO_SHIFT,4,2            ## @VLAN_PRIO_SHIFT
	.comm	_OCTNET_CMD_ADD_VLAN_FILTER,4,2 ## @OCTNET_CMD_ADD_VLAN_FILTER
	.comm	_OCTNET_CMD_DEL_VLAN_FILTER,4,2 ## @OCTNET_CMD_DEL_VLAN_FILTER
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_liquidio_set_vf_vlan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function liquidio_set_vf_vlan
_liquidio_set_vf_vlan:                  ; @liquidio_set_vf_vlan
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x24, x4
	mov	x23, x3
	mov	x22, x2
	mov	x19, x1
	bl	_GET_LIO
	tbnz	w19, #31, LBB0_8
; %bb.1:
	mov	x21, x0
	ldr	x20, [x0, #8]
	ldr	w8, [x20]
	cmp	w8, w19
	b.le	LBB0_8
; %bb.2:
Lloh0:
	adrp	x8, _ETH_P_8021Q@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_P_8021Q@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_htons
	cmp	x0, x24
	b.ne	LBB0_11
; %bb.3:
	cmp	w23, #7
	b.gt	LBB0_8
; %bb.4:
Lloh3:
	adrp	x8, _VLAN_N_VID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VLAN_N_VID@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w22
	b.le	LBB0_8
; %bb.5:
	mov	w0, #0
Lloh6:
	adrp	x8, _VLAN_PRIO_SHIFT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VLAN_PRIO_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	lsl	w8, w23, w8
	orr	w8, w8, w22
	cmp	w22, #0
	csel	w23, wzr, w8, eq
	ldr	x8, [x20, #8]
	ldr	w8, [x8, w19, uxtw #2]
	cmp	w8, w23
	b.eq	LBB0_10
; %bb.6:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #40
	bl	_memset
Lloh9:
	adrp	x8, _OCTNET_CMD_DEL_VLAN_FILTER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _OCTNET_CMD_DEL_VLAN_FILTER@GOTPAGEOFF]
Lloh11:
	adrp	x9, _OCTNET_CMD_ADD_VLAN_FILTER@GOTPAGE
Lloh12:
	ldr	x9, [x9, _OCTNET_CMD_ADD_VLAN_FILTER@GOTPAGEOFF]
	cmp	w22, #0
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	str	w8, [sp, #40]
	add	w8, w19, #1
	stp	w23, w8, [sp, #24]
	str	xzr, [sp, #32]
	ldr	x8, [x21]
	ldr	w8, [x8]
	str	w8, [sp, #16]
	str	xzr, [sp, #8]
	add	x1, sp, #8
	mov	x0, x20
	bl	_octnet_send_nic_ctrl_pkt
	cbz	w0, LBB0_12
; %bb.7:
Lloh13:
	adrp	x8, _EIO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cmp	w0, #0
	csneg	w0, w0, w8, le
	b	LBB0_10
LBB0_8:
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_11:
Lloh18:
	adrp	x8, _EPROTONOSUPPORT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EPROTONOSUPPORT@GOTPAGEOFF]
	b	LBB0_9
LBB0_12:
	mov	w8, w19
	ldr	x9, [x20, #8]
	str	w23, [x9, x8, lsl #2]
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ETH_P_8021Q,4,2                ; @ETH_P_8021Q
	.comm	_EPROTONOSUPPORT,4,2            ; @EPROTONOSUPPORT
	.comm	_VLAN_N_VID,4,2                 ; @VLAN_N_VID
	.comm	_VLAN_PRIO_SHIFT,4,2            ; @VLAN_PRIO_SHIFT
	.comm	_OCTNET_CMD_ADD_VLAN_FILTER,4,2 ; @OCTNET_CMD_ADD_VLAN_FILTER
	.comm	_OCTNET_CMD_DEL_VLAN_FILTER,4,2 ; @OCTNET_CMD_DEL_VLAN_FILTER
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_liquidio_set_vf_vlan
.subsections_via_symbols
