	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	16(%rdi), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	(%rax), %r14
	leaq	-48(%rbp), %rdi
	xorl	%r13d, %r13d
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	testl	%r15d, %r15d
	je	LBB0_10
## %bb.1:
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	callq	_qlcnic_sriov_validate_vlan_cfg
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.2:
	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, %r13d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.3:
	movl	%r12d, %eax
	andl	$1, %eax
	movl	%r15d, %ecx
	shll	$16, %ecx
	orl	%eax, %ecx
	movq	-48(%rbp), %rax
	movl	%ecx, 4(%rax)
	movq	%r14, %rdi
	callq	_qlcnic_sriov_cleanup_async_list
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_qlcnic_issue_cmd
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movq	(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edx
	callq	_dev_err
	jmp	LBB0_9
LBB0_5:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_netif_addr_lock_bh
	movq	%rbx, %rdi
	callq	_qlcnic_free_mac_list
	movq	%r14, %rdi
	callq	_netif_addr_unlock_bh
	testl	%r12d, %r12d
	jne	LBB0_6
## %bb.7:
	movq	_QLC_VLAN_DELETE@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	_QLC_VLAN_ADD@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	callq	_qlcnic_sriov_vlan_operation
	movq	%r14, %rdi
	callq	_netif_addr_lock_bh
	movq	%r14, %rdi
	callq	_qlcnic_set_multi
	movq	%r14, %rdi
	callq	_netif_addr_unlock_bh
LBB0_9:
	leaq	-48(%rbp), %rdi
	callq	_qlcnic_free_mbx_args
LBB0_10:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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"

	.comm	_QLC_VLAN_ADD,4,2               ## @QLC_VLAN_ADD
	.comm	_QLC_VLAN_DELETE,4,2            ## @QLC_VLAN_DELETE
.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, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x2
	mov	x20, x1
	mov	x22, x0
	ldp	x8, x19, [x0, #8]
	ldr	x25, [x8]
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	cbz	w20, LBB0_5
; %bb.1:
	ldr	x8, [x22, #8]
	ldr	x8, [x8]
	ldr	x24, [x8, #8]
	mov	x0, x22
	mov	x1, x20
	mov	x2, x21
	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]
	mov	x0, x25
	bl	_qlcnic_sriov_cleanup_async_list
	add	x1, sp, #8
	mov	x0, x22
	bl	_qlcnic_issue_cmd
	mov	x23, x0
	cbz	w0, LBB0_7
; %bb.4:
	ldr	x0, [x22]
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, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_7:
	mov	x0, x19
	bl	_netif_addr_lock_bh
	mov	x0, x22
	bl	_qlcnic_free_mac_list
	mov	x0, x19
	bl	_netif_addr_unlock_bh
Lloh5:
	adrp	x8, _QLC_VLAN_DELETE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _QLC_VLAN_DELETE@GOTPAGEOFF]
Lloh7:
	adrp	x9, _QLC_VLAN_ADD@GOTPAGE
Lloh8:
	ldr	x9, [x9, _QLC_VLAN_ADD@GOTPAGEOFF]
	cmp	w21, #0
	csel	x8, x8, x9, eq
	ldr	w2, [x8]
	mov	x0, x24
	mov	x1, x20
	bl	_qlcnic_sriov_vlan_operation
	mov	x0, x19
	bl	_netif_addr_lock_bh
	mov	x0, x19
	bl	_qlcnic_set_multi
	mov	x0, x19
	bl	_netif_addr_unlock_bh
LBB0_8:
	add	x0, sp, #8
	bl	_qlcnic_free_mbx_args
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.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"

	.comm	_QLC_VLAN_ADD,4,2               ; @QLC_VLAN_ADD
	.comm	_QLC_VLAN_DELETE,4,2            ; @QLC_VLAN_DELETE
.subsections_via_symbols
