	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_sriov_cfg_vf_guest_vlan ## -- Begin function qlcnic_sriov_cfg_vf_guest_vlan
	.p2align	4, 0x90
_qlcnic_sriov_cfg_vf_guest_vlan:        ## @qlcnic_sriov_cfg_vf_guest_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
	testl	%esi, %esi
	je	LBB0_1
## %bb.2:
	movl	%edx, %r15d
	movl	%esi, %r13d
	movq	%rdi, %r14
	movq	16(%rdi), %rax
	movq	(%rax), %r12
	movq	%r12, %rdi
	callq	_qlcnic_sriov_validate_vlan_cfg
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.3:
	movq	_QLCNIC_BC_CMD_CFG_GUEST_VLAN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdi
	callq	_qlcnic_sriov_alloc_bc_mbx_args
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.4:
	movl	%r15d, %eax
	andl	$1, %eax
	movl	%r13d, %ecx
	shll	$16, %ecx
	orl	%eax, %ecx
	movq	-48(%rbp), %rax
	movl	%ecx, 4(%rax)
	leaq	4(%r12), %rdi
	callq	_qlcnic_sriov_cleanup_async_list
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_qlcnic_issue_cmd
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movq	8(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_err
	jmp	LBB0_7
LBB0_1:
	xorl	%ebx, %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%r14, %rdi
	callq	_qlcnic_free_mac_list
	testl	%r15d, %r15d
	cmovel	%r15d, %r13d
	movl	%r13d, (%r12)
	movl	(%r14), %edi
	callq	_qlcnic_sriov_vf_set_multi
LBB0_7:
	leaq	-48(%rbp), %rdi
	callq	_qlcnic_free_mbx_args
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_QLCNIC_BC_CMD_CFG_GUEST_VLAN,4,2 ## @QLCNIC_BC_CMD_CFG_GUEST_VLAN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to configure guest VLAN, err=%d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_sriov_cfg_vf_guest_vlan ; -- Begin function qlcnic_sriov_cfg_vf_guest_vlan
	.p2align	2
_qlcnic_sriov_cfg_vf_guest_vlan:        ; @qlcnic_sriov_cfg_vf_guest_vlan
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	cbz	w1, LBB0_5
; %bb.1:
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	x22, [x8]
	mov	x0, x22
	bl	_qlcnic_sriov_validate_vlan_cfg
	mov	x23, x0
	cbnz	w0, LBB0_6
; %bb.2:
Lloh0:
	adrp	x8, _QLCNIC_BC_CMD_CFG_GUEST_VLAN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QLCNIC_BC_CMD_CFG_GUEST_VLAN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x0, sp, #8
	bl	_qlcnic_sriov_alloc_bc_mbx_args
	mov	x23, x0
	cbnz	w0, LBB0_6
; %bb.3:
	and	w8, w21, #0x1
	bfi	w8, w20, #16, #16
	ldr	x9, [sp, #8]
	str	w8, [x9, #4]
	add	x0, x22, #4
	bl	_qlcnic_sriov_cleanup_async_list
	add	x1, sp, #8
	mov	x0, x19
	bl	_qlcnic_issue_cmd
	mov	x23, x0
	cbz	w0, LBB0_7
; %bb.4:
	ldr	x0, [x19, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x23
	bl	_dev_err
	b	LBB0_8
LBB0_5:
	mov	w23, #0
LBB0_6:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_7:
	mov	x0, x19
	bl	_qlcnic_free_mac_list
	cmp	w21, #0
	csel	w8, wzr, w20, eq
	str	w8, [x22]
	ldr	w0, [x19]
	bl	_qlcnic_sriov_vf_set_multi
LBB0_8:
	add	x0, sp, #8
	bl	_qlcnic_free_mbx_args
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_QLCNIC_BC_CMD_CFG_GUEST_VLAN,4,2 ; @QLCNIC_BC_CMD_CFG_GUEST_VLAN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to configure guest VLAN, err=%d\n"

.subsections_via_symbols
