	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function emac_add_mcast
_emac_add_mcast:                        ## @emac_add_mcast
	.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	%esi, %ebx
	movq	%rdi, %r14
	leal	-128(%rbx), %eax
	cmpl	$3, %eax
	ja	LBB0_6
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	movq	%r14, %rdi
	movq	%rdx, %rsi
	callq	_emac_hash_del
	testl	%eax, %eax
	jg	LBB0_5
	jmp	LBB0_10
LBB0_6:
	movq	24(%r14), %r15
	movq	%r14, %rdi
	callq	_netif_msg_drv
	testl	%eax, %eax
	je	LBB0_10
## %bb.7:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
LBB0_8:
	movq	%r14, %rdi
	movq	%rdx, %rsi
	callq	_emac_hash_add
	testl	%eax, %eax
	jg	LBB0_5
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_EMAC_ALL_MULTI_REG_VALUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r14)
	movq	%rax, (%r14)
	jmp	LBB0_5
LBB0_4:
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r14)
	movq	16(%r14), %rdi
	movq	_EMAC_NUM_MULTICAST_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	shll	$2, %edx
	xorl	%esi, %esi
	callq	_memset
LBB0_5:
	movq	_EMAC_MACHASH1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%r14), %rsi
	callq	_emac_write
	movq	_EMAC_MACHASH2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_emac_write                     ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_8
	.long	L0_0_set_3
	.long	L0_0_set_4
	.end_data_region
                                        ## -- End function
	.comm	_EMAC_ALL_MULTI_REG_VALUE,8,3   ## @EMAC_ALL_MULTI_REG_VALUE
	.comm	_EMAC_NUM_MULTICAST_BITS,4,2    ## @EMAC_NUM_MULTICAST_BITS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DaVinci EMAC: add_mcast: bad operation %d"

	.comm	_EMAC_MACHASH1,4,2              ## @EMAC_MACHASH1
	.comm	_EMAC_MACHASH2,4,2              ## @EMAC_MACHASH2
	.no_dead_strip	_emac_add_mcast
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function emac_add_mcast
_emac_add_mcast:                        ; @emac_add_mcast
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x0
	sub	w8, w1, #128
	cmp	w8, #3
	b.hi	LBB0_3
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	mov	x0, x19
	mov	x1, x2
	bl	_emac_hash_del
	cmp	w0, #1
	b.ge	LBB0_9
	b	LBB0_6
LBB0_3:
	mov	x20, x1
	ldr	x21, [x19, #24]
	mov	x0, x19
	bl	_netif_msg_drv
	cbz	w0, LBB0_6
; %bb.4:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_dev_err
LBB0_5:
	mov	x0, x19
	mov	x1, x2
	bl	_emac_hash_add
	cmp	w0, #1
	b.ge	LBB0_9
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh4:
	adrp	x8, _EMAC_ALL_MULTI_REG_VALUE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EMAC_ALL_MULTI_REG_VALUE@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	stp	x8, x8, [x19]
	b	LBB0_9
LBB0_8:
	stp	xzr, xzr, [x19]
	ldr	x0, [x19, #16]
Lloh7:
	adrp	x8, _EMAC_NUM_MULTICAST_BITS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EMAC_NUM_MULTICAST_BITS@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	lsl	w2, w8, #2
	mov	w1, #0
	bl	_memset
LBB0_9:
Lloh10:
	adrp	x8, _EMAC_MACHASH1@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EMAC_MACHASH1@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ldr	x1, [x19, #8]
	bl	_emac_write
Lloh13:
	adrp	x8, _EMAC_MACHASH2@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EMAC_MACHASH2@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	ldr	x1, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_emac_write
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
                                        ; -- End function
	.comm	_EMAC_ALL_MULTI_REG_VALUE,8,3   ; @EMAC_ALL_MULTI_REG_VALUE
	.comm	_EMAC_NUM_MULTICAST_BITS,4,2    ; @EMAC_NUM_MULTICAST_BITS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DaVinci EMAC: add_mcast: bad operation %d"

	.comm	_EMAC_MACHASH1,4,2              ; @EMAC_MACHASH1
	.comm	_EMAC_MACHASH2,4,2              ; @EMAC_MACHASH2
	.no_dead_strip	_emac_add_mcast
.subsections_via_symbols
