	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mvneta_mcast_addr_set
_mvneta_mcast_addr_set:                 ## @mvneta_mcast_addr_set
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	leaq	l_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	$5, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_mvneta_addr_crc
	movq	(%r15), %rdx
	movzbl	%al, %ecx
	movl	(%rdx,%rcx,4), %eax
	cmpl	$-1, %r14d
	je	LBB0_3
## %bb.8:
	incl	%eax
	movl	%eax, (%rdx,%rcx,4)
LBB0_9:
	movq	%r15, %rdi
	movl	%ecx, %esi
	movl	%r14d, %edx
	callq	_mvneta_set_other_mcast_addr
	jmp	LBB0_10
LBB0_1:
	movzbl	5(%rbx), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_mvneta_set_special_mcast_addr
LBB0_10:
	xorl	%ebx, %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	testl	%eax, %eax
	je	LBB0_4
## %bb.6:
	decl	%eax
	movl	%eax, (%rdx,%rcx,4)
	je	LBB0_9
## %bb.7:
	movl	8(%r15), %edi
	movzbl	%al, %edx
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%eax, %eax
	callq	_netdev_info
	jmp	LBB0_5
LBB0_4:
	movl	8(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movl	%ecx, %edx
	xorl	%eax, %eax
	callq	_netdev_info
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
l_.str:                                 ## @.str
	.asciz	"\001\000^\000\000"

	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"No valid Mcast for crc8=0x%02x\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"After delete there are %d valid Mcast for crc8=0x%02x\n"

	.no_dead_strip	_mvneta_mcast_addr_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mvneta_mcast_addr_set
_mvneta_mcast_addr_set:                 ; @mvneta_mcast_addr_set
	.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, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	w2, #5
	bl	_memcmp
	cbz	x0, LBB0_4
; %bb.1:
	mov	x0, x21
	bl	_mvneta_addr_crc
	ldr	x8, [x20]
	mov	w2, w0
	ldr	w9, [x8, w0, uxtw #2]
	cmn	w19, #1
	b.eq	LBB0_7
; %bb.2:
	add	w9, w9, #1
	str	w9, [x8, x2, lsl #2]
LBB0_3:
	mov	x0, x20
	mov	x1, x2
	mov	x2, x19
	bl	_mvneta_set_other_mcast_addr
	b	LBB0_5
LBB0_4:
	ldrb	w1, [x21, #5]
	mov	x0, x20
	mov	x2, x19
	bl	_mvneta_set_special_mcast_addr
LBB0_5:
	mov	w0, #0
LBB0_6:
	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_7:
	cbz	w9, LBB0_10
; %bb.8:
	subs	w9, w9, #1
	str	w9, [x8, x2, lsl #2]
	b.eq	LBB0_3
; %bb.9:
	ldr	w0, [x20, #8]
	str	x2, [sp]
	and	w2, w9, #0xff
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_10:
	ldr	w0, [x20, #8]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
                                        ; kill: def $w2 killed $w2 killed $x2
LBB0_11:
	bl	_netdev_info
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
l_.str:                                 ; @.str
	.asciz	"\001\000^\000\000"

	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"No valid Mcast for crc8=0x%02x\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"After delete there are %d valid Mcast for crc8=0x%02x\n"

	.no_dead_strip	_mvneta_mcast_addr_set
.subsections_via_symbols
