	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hclge_add_uc_addr_common       ## -- Begin function hclge_add_uc_addr_common
	.p2align	4, 0x90
_hclge_add_uc_addr_common:              ## @hclge_add_uc_addr_common
	.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
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	8(%rdi), %rbx
	movq	%rsi, %rdi
	callq	_is_zero_ether_addr
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	movq	%r15, %rdi
	callq	_is_broadcast_ether_addr
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	callq	_is_multicast_ether_addr
	testq	%rax, %rax
	je	LBB0_6
LBB0_3:
	movq	8(%rbx), %r14
	movq	%r15, %rdi
	callq	_is_zero_ether_addr
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_is_broadcast_ether_addr
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_is_multicast_ether_addr
	leaq	L_.str(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%r14, %rdi
	movq	%r15, %rdx
	movq	%r12, %rcx
	movq	%rbx, %r8
	movq	%rax, %r9
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_4:
	subl	(%rax), %r13d
LBB0_5:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	-48(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_HCLGE_MAC_EPORT_VFID_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HCLGE_MAC_EPORT_VFID_S@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r14), %ecx
	xorl	%edi, %edi
	callq	_hnae3_set_field
	xorl	%edi, %edi
	callq	_cpu_to_le16
	movl	%eax, -48(%rbp)
	movq	%r12, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_hclge_prepare_mac_addr
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	callq	_hclge_lookup_mac_vlan_tbl
	movl	%eax, %r13d
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r13d, %eax
	jne	LBB0_9
## %bb.7:
	movq	%r14, %rdi
	callq	_hclge_is_umv_space_full
	testl	%eax, %eax
	je	LBB0_11
## %bb.8:
	movq	(%rbx), %rdx
	movq	8(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOSPC@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_9:
	movq	8(%rbx), %rdi
	testl	%r13d, %r13d
	je	LBB0_13
## %bb.10:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_5
LBB0_11:
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_hclge_add_mac_vlan_tbl
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.12:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_hclge_update_umv_space
	xorl	%r13d, %r13d
	jmp	LBB0_5
LBB0_13:
	movl	(%r14), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rcx
	callq	_dev_warn
	xorl	%r13d, %r13d
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Set_uc mac err! invalid mac:%pM. is_zero:%d,is_br=%d,is_mul=%d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_HCLGE_MAC_EPORT_VFID_M,4,2     ## @HCLGE_MAC_EPORT_VFID_M
	.comm	_HCLGE_MAC_EPORT_VFID_S,4,2     ## @HCLGE_MAC_EPORT_VFID_S
	.comm	_ENOENT,4,2                     ## @ENOENT
L_.str.1:                               ## @.str.1
	.asciz	"UC MAC table full(%u)\n"

	.comm	_ENOSPC,4,2                     ## @ENOSPC
L_.str.2:                               ## @.str.2
	.asciz	"VF %d mac(%pM) exists\n"

L_.str.3:                               ## @.str.3
	.asciz	"PF failed to add unicast entry(%pM) in the MAC table\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hclge_add_uc_addr_common       ; -- Begin function hclge_add_uc_addr_common
	.p2align	2
_hclge_add_uc_addr_common:              ; @hclge_add_uc_addr_common
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x1
	mov	x20, x0
	ldr	x22, [x0, #8]
	mov	x0, x1
	bl	_is_zero_ether_addr
	cbnz	x0, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_is_broadcast_ether_addr
	cbnz	x0, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_is_multicast_ether_addr
	cbz	x0, LBB0_6
LBB0_3:
	ldr	x20, [x22, #8]
	mov	x0, x19
	bl	_is_zero_ether_addr
	mov	x21, x0
	mov	x0, x19
	bl	_is_broadcast_ether_addr
	mov	x22, x0
	mov	x0, x19
	bl	_is_multicast_ether_addr
	stp	x22, x0, [sp, #8]
	str	x21, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_dev_err
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_5:
	mov	x0, x21
	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
	add	sp, sp, #96
	ret
LBB0_6:
	add	x0, sp, #40
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh4:
	adrp	x8, _HCLGE_MAC_EPORT_VFID_M@GOTPAGE
Lloh5:
	ldr	x8, [x8, _HCLGE_MAC_EPORT_VFID_M@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x8, _HCLGE_MAC_EPORT_VFID_S@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HCLGE_MAC_EPORT_VFID_S@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	ldr	w3, [x20]
	mov	w0, #0
	bl	_hnae3_set_field
	mov	w0, #0
	bl	_cpu_to_le16
	str	w0, [sp, #40]
	add	x0, sp, #40
	mov	x1, x19
	mov	w2, #0
	bl	_hclge_prepare_mac_addr
	add	x1, sp, #40
	add	x2, sp, #32
	mov	x0, x20
	mov	w3, #0
	bl	_hclge_lookup_mac_vlan_tbl
Lloh10:
	adrp	x8, _ENOENT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_9
; %bb.7:
	mov	x0, x20
	bl	_hclge_is_umv_space_full
	cbz	w0, LBB0_11
; %bb.8:
	ldp	x2, x0, [x22]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
Lloh15:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
	b	LBB0_4
LBB0_9:
	mov	x21, x0
	ldr	x0, [x22, #8]
	cbz	w21, LBB0_13
; %bb.10:
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x19
	bl	_dev_err
	b	LBB0_5
LBB0_11:
	add	x1, sp, #40
	mov	x0, x20
	mov	x2, #0
	bl	_hclge_add_mac_vlan_tbl
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.12:
	mov	x0, x20
	mov	w1, #0
	bl	_hclge_update_umv_space
	b	LBB0_5
LBB0_13:
	ldr	w2, [x20]
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x3, x19
	bl	_dev_warn
	b	LBB0_5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Set_uc mac err! invalid mac:%pM. is_zero:%d,is_br=%d,is_mul=%d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_HCLGE_MAC_EPORT_VFID_M,4,2     ; @HCLGE_MAC_EPORT_VFID_M
	.comm	_HCLGE_MAC_EPORT_VFID_S,4,2     ; @HCLGE_MAC_EPORT_VFID_S
	.comm	_ENOENT,4,2                     ; @ENOENT
l_.str.1:                               ; @.str.1
	.asciz	"UC MAC table full(%u)\n"

	.comm	_ENOSPC,4,2                     ; @ENOSPC
l_.str.2:                               ; @.str.2
	.asciz	"VF %d mac(%pM) exists\n"

l_.str.3:                               ; @.str.3
	.asciz	"PF failed to add unicast entry(%pM) in the MAC table\n"

.subsections_via_symbols
