	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function emac_hash_add
_emac_hash_add:                         ## @emac_hash_add
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	24(%rdi), %r12
	movq	%rsi, %rdi
	callq	_hash_get
	movq	%rax, %r14
	movq	_EMAC_NUM_MULTICAST_BITS@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jae	LBB0_1
## %bb.3:
	movq	(%rbx), %rax
	xorl	%r15d, %r15d
	cmpq	$0, (%rax,%r14,8)
	jne	LBB0_8
## %bb.4:
	movq	%r14, %rdi
	cmpq	$31, %r14
	ja	LBB0_6
## %bb.5:
	callq	_BIT
	leaq	8(%rbx), %rcx
	jmp	LBB0_7
LBB0_1:
	movq	%rbx, %rdi
	callq	_netif_msg_drv
	movl	$-1, %r15d
	testq	%rax, %rax
	je	LBB0_9
## %bb.2:
	movq	(%r13), %rcx
	decq	%rcx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movq	%r14, %rdx
	callq	_dev_err
	jmp	LBB0_9
LBB0_6:
	addq	$-32, %rdi
	callq	_BIT
	leaq	16(%rbx), %rcx
LBB0_7:
	orq	%rax, (%rcx)
	movl	$1, %r15d
LBB0_8:
	movq	(%rbx), %rax
	incq	(%rax,%r14,8)
LBB0_9:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EMAC_NUM_MULTICAST_BITS,8,3    ## @EMAC_NUM_MULTICAST_BITS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DaVinci EMAC: emac_hash_add(): Invalid Hash %08x, should not be greater than %08x"

	.no_dead_strip	_emac_hash_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function emac_hash_add
_emac_hash_add:                         ; @emac_hash_add
	.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	x20, x0
	ldr	x21, [x0, #24]
	mov	x0, x1
	bl	_hash_get
	mov	x19, x0
Lloh0:
	adrp	x22, _EMAC_NUM_MULTICAST_BITS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _EMAC_NUM_MULTICAST_BITS@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x0, x8
	b.hs	LBB0_3
; %bb.1:
	ldr	x8, [x20]
	ldr	x8, [x8, x19, lsl #3]
	cbz	x8, LBB0_5
; %bb.2:
	mov	w0, #0
	b	LBB0_10
LBB0_3:
	mov	x0, x20
	bl	_netif_msg_drv
	cbz	x0, LBB0_7
; %bb.4:
	ldr	x8, [x22]
	sub	x3, x8, #1
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x19
	bl	_dev_err
	mov	w0, #-1
	b	LBB0_11
LBB0_5:
	cmp	x19, #31
	b.hi	LBB0_8
; %bb.6:
	mov	x0, x19
	bl	_BIT
	add	x8, x20, #8
	b	LBB0_9
LBB0_7:
	mov	w0, #-1
	b	LBB0_11
LBB0_8:
	sub	x0, x19, #32
	bl	_BIT
	add	x8, x20, #16
LBB0_9:
	ldr	x9, [x8]
	orr	x9, x9, x0
	str	x9, [x8]
	mov	w0, #1
LBB0_10:
	ldr	x8, [x20]
	lsl	x9, x19, #3
	ldr	x10, [x8, x9]
	add	x10, x10, #1
	str	x10, [x8, x9]
LBB0_11:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_EMAC_NUM_MULTICAST_BITS,8,3    ; @EMAC_NUM_MULTICAST_BITS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DaVinci EMAC: emac_hash_add(): Invalid Hash %08x, should not be greater than %08x"

	.no_dead_strip	_emac_hash_add
.subsections_via_symbols
