	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function emac_set_rx_mode
_emac_set_rx_mode:                      ## @emac_set_rx_mode
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_EMAC_ASSERT_LOCKED
	movq	(%rbx), %r14
	movq	_EMAC_RX_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_EMAC_READ_REG
	movl	%eax, %r15d
	movq	_EMAC_RX_UCAD@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_EMAC_RX_DAF@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	$0, -56(%rbp)
	movq	_IFF_ALLMULTI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_2
## %bb.1:
	movq	$-1, -56(%rbp)
	movl	$-1, %edx
	jmp	LBB0_3
LBB0_2:
	movq	_emac_hash_maddr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	callq	_if_foreach_llmaddr
	movl	-56(%rbp), %edx
LBB0_3:
	orl	%r15d, %r12d
	orl	%r13d, %r12d
	movq	_EMAC_RX_MCO@GOTPCREL(%rip), %r15
	orl	(%r15), %r12d
	movq	_EMAC_RX_MHF@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	movq	_EMAC_RX_HASH0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_EMAC_WRITE_REG
	movq	_EMAC_RX_HASH1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-52(%rbp), %edx
	movq	%rbx, %rdi
	callq	_EMAC_WRITE_REG
	movl	(%r14), %eax
	movq	_IFF_BROADCAST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_EMAC_RX_BCO@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	%r12d, %edx
	orl	(%r15), %edx
	andl	%eax, %ecx
	testl	%ecx, %ecx
	cmovel	%r12d, %edx
	movq	_IFF_PROMISC@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	jne	LBB0_4
## %bb.5:
	movq	_EMAC_RX_UCAD@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_EMAC_RX_PA@GOTPCREL(%rip), %rax
LBB0_6:
	orl	(%rax), %edx
	movq	_EMAC_RX_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_EMAC_WRITE_REG
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EMAC_RX_CTL,4,2                ## @EMAC_RX_CTL
	.comm	_EMAC_RX_UCAD,4,2               ## @EMAC_RX_UCAD
	.comm	_EMAC_RX_DAF,4,2                ## @EMAC_RX_DAF
	.comm	_IFF_ALLMULTI,4,2               ## @IFF_ALLMULTI
	.comm	_emac_hash_maddr,4,2            ## @emac_hash_maddr
	.comm	_EMAC_RX_MCO,4,2                ## @EMAC_RX_MCO
	.comm	_EMAC_RX_MHF,4,2                ## @EMAC_RX_MHF
	.comm	_EMAC_RX_HASH0,4,2              ## @EMAC_RX_HASH0
	.comm	_EMAC_RX_HASH1,4,2              ## @EMAC_RX_HASH1
	.comm	_IFF_BROADCAST,4,2              ## @IFF_BROADCAST
	.comm	_EMAC_RX_BCO,4,2                ## @EMAC_RX_BCO
	.comm	_IFF_PROMISC,4,2                ## @IFF_PROMISC
	.comm	_EMAC_RX_PA,4,2                 ## @EMAC_RX_PA
	.no_dead_strip	_emac_set_rx_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function emac_set_rx_mode
_emac_set_rx_mode:                      ; @emac_set_rx_mode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	bl	_EMAC_ASSERT_LOCKED
	ldr	x20, [x19]
Lloh0:
	adrp	x22, _EMAC_RX_CTL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _EMAC_RX_CTL@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_EMAC_READ_REG
	mov	x21, x0
Lloh2:
	adrp	x23, _EMAC_RX_UCAD@GOTPAGE
Lloh3:
	ldr	x23, [x23, _EMAC_RX_UCAD@GOTPAGEOFF]
	ldr	w24, [x23]
Lloh4:
	adrp	x8, _EMAC_RX_DAF@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EMAC_RX_DAF@GOTPAGEOFF]
Lloh6:
	ldr	w25, [x8]
	str	xzr, [sp, #8]
	ldr	w8, [x20]
Lloh7:
	adrp	x9, _IFF_ALLMULTI@GOTPAGE
Lloh8:
	ldr	x9, [x9, _IFF_ALLMULTI@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	movi.2d	v0, #0xffffffffffffffff
	str	d0, [sp, #8]
	mov	w2, #-1
	b	LBB0_3
LBB0_2:
Lloh10:
	adrp	x8, _emac_hash_maddr@GOTPAGE
Lloh11:
	ldr	x8, [x8, _emac_hash_maddr@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x20
	bl	_if_foreach_llmaddr
	ldr	w2, [sp, #8]
LBB0_3:
	orr	w8, w24, w21
	orr	w8, w8, w25
Lloh13:
	adrp	x21, _EMAC_RX_MCO@GOTPAGE
Lloh14:
	ldr	x21, [x21, _EMAC_RX_MCO@GOTPAGEOFF]
	ldr	w9, [x21]
Lloh15:
	adrp	x10, _EMAC_RX_MHF@GOTPAGE
Lloh16:
	ldr	x10, [x10, _EMAC_RX_MHF@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh17:
	ldr	w9, [x10]
	orr	w24, w8, w9
Lloh18:
	adrp	x8, _EMAC_RX_HASH0@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EMAC_RX_HASH0@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_EMAC_WRITE_REG
Lloh21:
	adrp	x8, _EMAC_RX_HASH1@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EMAC_RX_HASH1@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_EMAC_WRITE_REG
	ldr	w8, [x20]
Lloh24:
	adrp	x9, _IFF_BROADCAST@GOTPAGE
Lloh25:
	ldr	x9, [x9, _IFF_BROADCAST@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
Lloh27:
	adrp	x10, _EMAC_RX_BCO@GOTPAGE
Lloh28:
	ldr	x10, [x10, _EMAC_RX_BCO@GOTPAGEOFF]
Lloh29:
	ldr	w10, [x10]
	orr	w10, w10, w24
	ldr	w11, [x21]
	orr	w10, w10, w11
	tst	w9, w8
	csel	w9, w24, w10, eq
Lloh30:
	adrp	x10, _IFF_PROMISC@GOTPAGE
Lloh31:
	ldr	x10, [x10, _IFF_PROMISC@GOTPAGEOFF]
Lloh32:
	adrp	x11, _EMAC_RX_PA@GOTPAGE
Lloh33:
	ldr	x11, [x11, _EMAC_RX_PA@GOTPAGEOFF]
Lloh34:
	ldr	w10, [x10]
	tst	w10, w8
	csel	x8, x23, x11, eq
	ldr	w8, [x8]
	orr	w2, w8, w9
	ldr	w1, [x22]
	mov	x0, x19
	bl	_EMAC_WRITE_REG
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh34
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EMAC_RX_CTL,4,2                ; @EMAC_RX_CTL
	.comm	_EMAC_RX_UCAD,4,2               ; @EMAC_RX_UCAD
	.comm	_EMAC_RX_DAF,4,2                ; @EMAC_RX_DAF
	.comm	_IFF_ALLMULTI,4,2               ; @IFF_ALLMULTI
	.comm	_emac_hash_maddr,4,2            ; @emac_hash_maddr
	.comm	_EMAC_RX_MCO,4,2                ; @EMAC_RX_MCO
	.comm	_EMAC_RX_MHF,4,2                ; @EMAC_RX_MHF
	.comm	_EMAC_RX_HASH0,4,2              ; @EMAC_RX_HASH0
	.comm	_EMAC_RX_HASH1,4,2              ; @EMAC_RX_HASH1
	.comm	_IFF_BROADCAST,4,2              ; @IFF_BROADCAST
	.comm	_EMAC_RX_BCO,4,2                ; @EMAC_RX_BCO
	.comm	_IFF_PROMISC,4,2                ; @IFF_PROMISC
	.comm	_EMAC_RX_PA,4,2                 ; @EMAC_RX_PA
	.no_dead_strip	_emac_set_rx_mode
.subsections_via_symbols
