	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hclge_add_mc_addr_common       ## -- Begin function hclge_add_mc_addr_common
	.p2align	4, 0x90
_hclge_add_mc_addr_common:              ## @hclge_add_mc_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	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	8(%rdi), %r12
	movq	%rsi, %rdi
	callq	_is_multicast_ether_addr
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	leaq	-72(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	-72(%rbp), %edi
	movq	_HCLGE_MAC_VLAN_BIT0_EN_B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_hnae3_set_bit
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_hclge_prepare_mac_addr
	leaq	-64(%rbp), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$1, %ecx
	callq	_hclge_lookup_mac_vlan_tbl
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	-64(%rbp), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	-56(%rbp), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	-48(%rbp), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
LBB0_4:
	movl	(%r14), %esi
	leaq	-64(%rbp), %rdi
	xorl	%edx, %edx
	callq	_hclge_update_desc_vfid
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:
	leaq	-72(%rbp), %rsi
	leaq	-64(%rbp), %rdx
	movq	%r14, %rdi
	callq	_hclge_add_mac_vlan_tbl
	movl	%eax, %ebx
	movq	_ENOSPC@GOTPCREL(%rip), %rax
	movl	%ebx, %ecx
	addl	(%rax), %ecx
	jne	LBB0_7
## %bb.6:
	movq	(%r12), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_7
LBB0_1:
	movq	(%r12), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	movl	%ebx, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Add mc mac err! invalid mac:%pM.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_HCLGE_MAC_VLAN_BIT0_EN_B,4,2   ## @HCLGE_MAC_VLAN_BIT0_EN_B
	.comm	_ENOSPC,4,2                     ## @ENOSPC
L_.str.1:                               ## @.str.1
	.asciz	"mc mac vlan table is full\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hclge_add_mc_addr_common       ; -- Begin function hclge_add_mc_addr_common
	.p2align	2
_hclge_add_mc_addr_common:              ; @hclge_add_mc_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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	ldr	x21, [x0, #8]
	mov	x0, x1
	bl	_is_multicast_ether_addr
	cbz	w0, LBB0_6
; %bb.1:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	w0, [sp, #8]
Lloh3:
	adrp	x8, _HCLGE_MAC_VLAN_BIT0_EN_B@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HCLGE_MAC_VLAN_BIT0_EN_B@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_hnae3_set_bit
	add	x0, sp, #8
	mov	x1, x20
	mov	w2, #1
	bl	_hclge_prepare_mac_addr
	add	x1, sp, #8
	add	x2, sp, #16
	mov	x0, x19
	mov	w3, #1
	bl	_hclge_lookup_mac_vlan_tbl
	cbz	w0, LBB0_3
; %bb.2:
	ldr	x0, [sp, #16]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	x0, [sp, #24]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	x0, [sp, #32]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
LBB0_3:
	ldr	w1, [x19]
	add	x0, sp, #16
	mov	w2, #0
	bl	_hclge_update_desc_vfid
	mov	x20, x0
	cbnz	w0, LBB0_7
; %bb.4:
	add	x1, sp, #8
	add	x2, sp, #16
	mov	x0, x19
	bl	_hclge_add_mac_vlan_tbl
	mov	x20, x0
Lloh6:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_7
; %bb.5:
	ldr	x0, [x21]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	b	LBB0_7
LBB0_6:
	ldr	x0, [x21]
	str	x20, [sp]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_7:
	ldr	x8, [sp, #40]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	mov	x0, x20
	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_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Add mc mac err! invalid mac:%pM.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_HCLGE_MAC_VLAN_BIT0_EN_B,4,2   ; @HCLGE_MAC_VLAN_BIT0_EN_B
	.comm	_ENOSPC,4,2                     ; @ENOSPC
l_.str.1:                               ; @.str.1
	.asciz	"mc mac vlan table is full\n"

.subsections_via_symbols
