	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_sriov_cfg_vf_def_mac
_qlcnic_sriov_cfg_vf_def_mac:           ## @qlcnic_sriov_cfg_vf_def_mac
	.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
	movl	%ecx, %r12d
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	8(%rsi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	_QLCNIC_CMD_CONFIG_MAC_VLAN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_qlcnic_alloc_mbx_args
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	movq	_QLC_83XX_MBX_CMD_NO_WAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r13)
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_qlcnic_sriov_pf_get_vport_handle
	testl	%eax, %eax
	js	LBB0_4
## %bb.7:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.8:
	movq	_QLCNIC_MAC_ADD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_QLCNIC_MAC_VLAN_ADD@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, %esi
	cmpl	%r12d, %edx
	je	LBB0_10
## %bb.9:
	movq	_QLCNIC_MAC_VLAN_DEL@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
LBB0_10:
	cmpl	%r12d, %ecx
	cmovel	%edx, %esi
	movl	%esi, %r12d
LBB0_11:
	shll	$16, %eax
	orl	%r12d, %eax
	movq	_BIT_31@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	(%r13), %rdi
	orl	$448, %eax                      ## imm = 0x1C0
	movl	%eax, 4(%rdi)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	%rbx, -72(%rbp)
	movups	(%rax), %xmm0
	movaps	%xmm0, -96(%rbp)
	movl	16(%rax), %ecx
	movl	%ecx, -80(%rbp)
	movl	20(%rax), %eax
	movl	%eax, -76(%rbp)
	addq	$8, %rdi
	leaq	-96(%rbp), %rsi
	movl	$32, %edx
	callq	_memcpy
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_qlcnic_issue_cmd
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.12:
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_13
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_5:
	movq	%r13, %rdi
	callq	_qlcnic_free_mbx_args
LBB0_6:
	movq	%r13, %rdi
	callq	_kfree
LBB0_13:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_QLCNIC_CMD_CONFIG_MAC_VLAN,4,2 ## @QLCNIC_CMD_CONFIG_MAC_VLAN
	.comm	_QLC_83XX_MBX_CMD_NO_WAIT,4,2   ## @QLC_83XX_MBX_CMD_NO_WAIT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_QLCNIC_MAC_ADD,4,2             ## @QLCNIC_MAC_ADD
	.comm	_QLCNIC_MAC_VLAN_ADD,4,2        ## @QLCNIC_MAC_VLAN_ADD
	.comm	_QLCNIC_MAC_VLAN_DEL,4,2        ## @QLCNIC_MAC_VLAN_DEL
	.comm	_BIT_31,4,2                     ## @BIT_31
	.no_dead_strip	_qlcnic_sriov_cfg_vf_def_mac
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_sriov_cfg_vf_def_mac
_qlcnic_sriov_cfg_vf_def_mac:           ; @qlcnic_sriov_cfg_vf_def_mac
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x3
	mov	x21, x2
	mov	x24, x1
	mov	x20, x0
	ldr	x25, [x1, #8]
Lloh0:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #16
	bl	_kzalloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x8, _QLCNIC_CMD_CONFIG_MAC_VLAN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QLCNIC_CMD_CONFIG_MAC_VLAN@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x1, x20
	bl	_qlcnic_alloc_mbx_args
	mov	x23, x0
	cbnz	w0, LBB0_9
; %bb.2:
Lloh6:
	adrp	x8, _QLC_83XX_MBX_CMD_NO_WAIT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _QLC_83XX_MBX_CMD_NO_WAIT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	ldr	w1, [x24]
	mov	x0, x20
	bl	_qlcnic_sriov_pf_get_vport_handle
	tbnz	w0, #31, LBB0_7
; %bb.3:
	cbz	x21, LBB0_5
; %bb.4:
Lloh9:
	adrp	x8, _QLCNIC_MAC_ADD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _QLCNIC_MAC_ADD@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _QLCNIC_MAC_VLAN_ADD@GOTPAGE
Lloh13:
	ldr	x9, [x9, _QLCNIC_MAC_VLAN_ADD@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w9, w22
	ccmp	w8, w22, #4, ne
Lloh15:
	adrp	x8, _QLCNIC_MAC_VLAN_DEL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _QLCNIC_MAC_VLAN_DEL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	csel	w22, w9, w8, eq
LBB0_5:
	ldr	x8, [x19]
Lloh18:
	adrp	x9, _BIT_31@GOTPAGE
Lloh19:
	ldr	x9, [x9, _BIT_31@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w10, w22, w0, lsl #16
	orr	w9, w10, w9
	orr	w9, w9, #0x1c0
	str	w9, [x8, #4]
	ldr	x9, [x25]
	str	x21, [sp, #24]
	ldr	q0, [x9]
	str	q0, [sp]
	ldr	d0, [x9, #16]
	str	d0, [sp, #16]
	add	x0, x8, #8
	mov	x1, sp
	mov	w2, #32
	bl	_memcpy
	mov	x0, x20
	mov	x1, x19
	bl	_qlcnic_issue_cmd
	mov	x23, x0
	cbnz	w0, LBB0_8
	b	LBB0_10
LBB0_6:
Lloh21:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_10
LBB0_7:
Lloh24:
	adrp	x8, _EINVAL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_8:
	mov	x0, x19
	bl	_qlcnic_free_mbx_args
LBB0_9:
	mov	x0, x19
	bl	_kfree
LBB0_10:
	mov	x0, x23
	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
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_QLCNIC_CMD_CONFIG_MAC_VLAN,4,2 ; @QLCNIC_CMD_CONFIG_MAC_VLAN
	.comm	_QLC_83XX_MBX_CMD_NO_WAIT,4,2   ; @QLC_83XX_MBX_CMD_NO_WAIT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_QLCNIC_MAC_ADD,4,2             ; @QLCNIC_MAC_ADD
	.comm	_QLCNIC_MAC_VLAN_ADD,4,2        ; @QLCNIC_MAC_VLAN_ADD
	.comm	_QLCNIC_MAC_VLAN_DEL,4,2        ; @QLCNIC_MAC_VLAN_DEL
	.comm	_BIT_31,4,2                     ; @BIT_31
	.no_dead_strip	_qlcnic_sriov_cfg_vf_def_mac
.subsections_via_symbols
