	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function be_set_vf_vlan
_be_set_vf_vlan:                        ## @be_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r14d
	callq	_netdev_priv
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_sriov_enabled
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	cmpl	$4095, %r15d                    ## imm = 0xFFF
	jg	LBB0_5
## %bb.4:
	cmpl	%r14d, (%r12)
	jle	LBB0_5
## %bb.6:
	movq	16(%r12), %rax
	movslq	%r14d, %rcx
	leaq	(%rcx,%rcx,2), %rcx
	leaq	(%rax,%rcx,4), %rdx
	testl	%r15d, %r15d
	je	LBB0_9
## %bb.7:
	xorl	%ebx, %ebx
	cmpl	%r15d, (%rdx)
	je	LBB0_13
## %bb.8:
	movl	%r15d, (%rdx)
	jmp	LBB0_10
LBB0_1:
	movq	_EPERM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	$0, (%rdx)
	movl	4(%rax,%rcx,4), %r15d
LBB0_10:
	leal	1(%r14), %edx
	movl	8(%rax,%rcx,4), %ecx
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_be_cmd_set_hsw_config
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:
	movl	%eax, %ebx
	movq	8(%r12), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	callq	_dev_info
	jmp	LBB0_13
LBB0_11:
	xorl	%ebx, %ebx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VLAN %d config on VF %d failed\n"

	.no_dead_strip	_be_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 be_set_vf_vlan
_be_set_vf_vlan:                        ; @be_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
	mov	x20, x2
	mov	x19, x1
	bl	_netdev_priv
	mov	x21, x0
	bl	_sriov_enabled
	cbz	w0, LBB0_6
; %bb.1:
	cmp	w20, #4095
	b.gt	LBB0_7
; %bb.2:
	ldr	w8, [x21]
	cmp	w8, w19
	b.le	LBB0_7
; %bb.3:
	ldr	x8, [x21, #16]
	sxtw	x9, w19
	mov	w10, #12
	smaddl	x10, w19, w10, x8
	cbz	w20, LBB0_10
; %bb.4:
	ldr	w11, [x10]
	cmp	w11, w20
	b.ne	LBB0_11
; %bb.5:
	mov	w22, #0
	b	LBB0_9
LBB0_6:
Lloh0:
	adrp	x8, _EPERM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_9:
	mov	x0, x22
	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
LBB0_10:
	str	wzr, [x10]
	mov	w10, #12
	madd	x10, x9, x10, x8
	ldr	w20, [x10, #4]
	b	LBB0_12
LBB0_11:
	str	w20, [x10]
LBB0_12:
	add	w2, w19, #1
	mov	w10, #12
	madd	x8, x9, x10, x8
	ldr	w3, [x8, #8]
	mov	x0, x21
	mov	x1, x20
	bl	_be_cmd_set_hsw_config
	mov	x22, x0
	cbz	w0, LBB0_9
; %bb.13:
	ldr	x0, [x21, #8]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	mov	x3, x19
	bl	_dev_info
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VLAN %d config on VF %d failed\n"

	.no_dead_strip	_be_set_vf_vlan
.subsections_via_symbols
