	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efx_siena_sriov_set_vf_vlan    ## -- Begin function efx_siena_sriov_set_vf_vlan
	.p2align	4, 0x90
_efx_siena_sriov_set_vf_vlan:           ## @efx_siena_sriov_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	%esi, (%rdi)
	jle	LBB0_1
## %bb.2:
	movl	%ecx, %ebx
	movl	%edx, %r14d
	movq	8(%rdi), %rax
	movq	(%rax), %r12
	movslq	%esi, %r13
	leaq	(%r12,%r13,8), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	_VLAN_VID_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r14d
	andl	$7, %ebx
	movq	_VLAN_PRIO_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %ebx
	orl	%r14d, %ebx
	movl	%ebx, %edi
	callq	_htons
	movl	%eax, 4(%r12,%r13,8)
	movq	%r15, %rdi
	callq	___efx_siena_sriov_update_vf_addr
	movq	%r15, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_VLAN_VID_MASK,4,2              ## @VLAN_VID_MASK
	.comm	_VLAN_PRIO_SHIFT,4,2            ## @VLAN_PRIO_SHIFT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efx_siena_sriov_set_vf_vlan    ; -- Begin function efx_siena_sriov_set_vf_vlan
	.p2align	2
_efx_siena_sriov_set_vf_vlan:           ; @efx_siena_sriov_set_vf_vlan
	.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
	ldr	w8, [x0]
	cmp	w8, w1
	b.le	LBB0_2
; %bb.1:
	mov	x19, x3
	mov	x20, x2
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	add	x21, x8, w1, sxtw #3
	mov	x0, x21
	bl	_mutex_lock
Lloh0:
	adrp	x8, _VLAN_VID_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VLAN_VID_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w20
	and	w9, w19, #0x7
Lloh3:
	adrp	x10, _VLAN_PRIO_SHIFT@GOTPAGE
Lloh4:
	ldr	x10, [x10, _VLAN_PRIO_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w0, w9, w8
	bl	_htons
	str	w0, [x21, #4]
	mov	x0, x21
	bl	___efx_siena_sriov_update_vf_addr
	mov	x0, x21
	bl	_mutex_unlock
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_VLAN_VID_MASK,4,2              ; @VLAN_VID_MASK
	.comm	_VLAN_PRIO_SHIFT,4,2            ; @VLAN_PRIO_SHIFT
.subsections_via_symbols
