	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_ae_set_multicast_one
_hns_ae_set_multicast_one:              ## @hns_ae_set_multicast_one
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_hns_get_mac_cb
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_assert
	movq	(%rbx), %rax
	movq	_HNAE_PORT_SERVICE@GOTPCREL(%rip), %rcx
	xorl	%r12d, %r12d
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.1:
	movl	8(%rbx), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	movl	$1, %ecx
	callq	_hns_mac_set_multi
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %r12d
	movl	(%r15), %edi
	movl	8(%rbx), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	movl	%eax, %r8d
	callq	_dev_err
	jmp	LBB0_6
LBB0_3:
	movl	4(%r15), %esi
	leaq	-36(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_hns_mac_get_inner_port_num
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	movl	-36(%rbp), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	movl	$1, %ecx
	callq	_hns_mac_set_multi
	movl	$0, %r12d
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	movl	(%r15), %edi
	movq	_DSAF_BASE_INNER_PORT_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	movl	%ebx, %r8d
	callq	_dev_err
	movl	%ebx, %r12d
LBB0_6:
	movl	%r12d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HNAE_PORT_SERVICE,8,3          ## @HNAE_PORT_SERVICE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mac add mul_mac:%pM port%d  fail, ret = %#x!\n"

	.comm	_DSAF_BASE_INNER_PORT_NUM,4,2   ## @DSAF_BASE_INNER_PORT_NUM
	.no_dead_strip	_hns_ae_set_multicast_one
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns_ae_set_multicast_one
_hns_ae_set_multicast_one:              ; @hns_ae_set_multicast_one
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	bl	_hns_get_mac_cb
	mov	x22, x0
	bl	_assert
	ldr	x8, [x22]
Lloh0:
	adrp	x9, _HNAE_PORT_SERVICE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HNAE_PORT_SERVICE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	ldr	w1, [x22, #8]
	mov	x0, x22
	mov	x2, x19
	mov	w3, #1
	bl	_hns_mac_set_multi
	cbz	w0, LBB0_6
; %bb.2:
	mov	x21, x0
	ldr	w0, [x20]
	ldr	w3, [x22, #8]
LBB0_3:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	mov	x4, x21
	bl	_dev_err
	b	LBB0_5
LBB0_4:
	mov	w21, #0
LBB0_5:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_6:
	ldr	w1, [x20, #4]
	add	x2, sp, #12
	mov	x0, x22
	bl	_hns_mac_get_inner_port_num
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.7:
	ldr	w1, [sp, #12]
	mov	x0, x22
	mov	x2, x19
	mov	w3, #1
	bl	_hns_mac_set_multi
	mov	x21, x0
	cbz	w0, LBB0_5
; %bb.8:
	ldr	w0, [x20]
Lloh5:
	adrp	x8, _DSAF_BASE_INNER_PORT_NUM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DSAF_BASE_INNER_PORT_NUM@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_HNAE_PORT_SERVICE,8,3          ; @HNAE_PORT_SERVICE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mac add mul_mac:%pM port%d  fail, ret = %#x!\n"

	.comm	_DSAF_BASE_INNER_PORT_NUM,4,2   ; @DSAF_BASE_INNER_PORT_NUM
	.no_dead_strip	_hns_ae_set_multicast_one
.subsections_via_symbols
