	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_rx_mode
_set_rx_mode:                           ## @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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	(%rdi), %r15d
	callq	_netdev_priv
	movq	%rax, %r14
	movq	$0, -32(%rbp)
	movl	4(%rbx), %eax
	movq	_IFF_PROMISC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	_RxStripCRC@GOTPCREL(%rip), %rax
	movq	_RxEnable@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	_RxPromisc@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_IFF_ALLMULTI@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.3:
	movq	_RxStripCRC@GOTPCREL(%rip), %rax
	movq	_RxEnable@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
LBB0_4:
	orl	(%rax), %ebx
	movq	_RxAllMulti@GOTPCREL(%rip), %rax
LBB0_8:
	orl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movl	$3, %edi
	callq	_SMC_SELECT_BANK
	movl	-32(%rbp), %edi
	movq	_MULTICAST0@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r15, %rsi
	callq	_outl
	movl	-28(%rbp), %edi
	movq	_MULTICAST4@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r15, %rsi
	callq	_outl
	xorl	%edi, %edi
	callq	_SMC_SELECT_BANK
	movq	_RCR@GOTPCREL(%rip), %rax
	addq	(%rax), %r15
	movl	%ebx, %edi
	movq	%r15, %rsi
	callq	_outw
	movl	$2, %edi
	callq	_SMC_SELECT_BANK
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:
	movl	8(%rbx), %esi
	leaq	-32(%rbp), %rdx
	callq	_fill_multicast_tbl
LBB0_7:
	movq	_RxEnable@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_RxStripCRC@GOTPCREL(%rip), %rax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_IFF_PROMISC,4,2                ## @IFF_PROMISC
	.comm	_RxStripCRC,4,2                 ## @RxStripCRC
	.comm	_RxEnable,4,2                   ## @RxEnable
	.comm	_RxPromisc,4,2                  ## @RxPromisc
	.comm	_RxAllMulti,4,2                 ## @RxAllMulti
	.comm	_IFF_ALLMULTI,4,2               ## @IFF_ALLMULTI
	.comm	_MULTICAST0,8,3                 ## @MULTICAST0
	.comm	_MULTICAST4,8,3                 ## @MULTICAST4
	.comm	_RCR,8,3                        ## @RCR
	.no_dead_strip	_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 set_rx_mode
_set_rx_mode:                           ; @set_rx_mode
	.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	x20, x0
	ldr	w21, [x0]
	bl	_netdev_priv
	mov	x19, x0
	str	xzr, [sp, #8]
	ldr	w8, [x20, #4]
Lloh0:
	adrp	x9, _IFF_PROMISC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IFF_PROMISC@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _RxStripCRC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RxStripCRC@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _RxEnable@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RxEnable@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _RxPromisc@GOTPAGE
Lloh10:
	ldr	x9, [x9, _RxPromisc@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
	b	LBB0_4
LBB0_2:
Lloh12:
	adrp	x9, _IFF_ALLMULTI@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IFF_ALLMULTI@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.3:
Lloh15:
	adrp	x8, _RxStripCRC@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RxStripCRC@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _RxEnable@GOTPAGE
Lloh19:
	ldr	x9, [x9, _RxEnable@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w9, w8
LBB0_4:
Lloh21:
	adrp	x9, _RxAllMulti@GOTPAGE
Lloh22:
	ldr	x9, [x9, _RxAllMulti@GOTPAGEOFF]
LBB0_5:
	ldr	w9, [x9]
	orr	w20, w8, w9
	mov	x0, x19
	bl	_spin_lock_irqsave
	mov	w0, #3
	bl	_SMC_SELECT_BANK
	ldr	w0, [sp, #8]
Lloh23:
	adrp	x8, _MULTICAST0@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MULTICAST0@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	add	x1, x8, x21
	bl	_outl
	ldr	w0, [sp, #12]
Lloh26:
	adrp	x8, _MULTICAST4@GOTPAGE
Lloh27:
	ldr	x8, [x8, _MULTICAST4@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	add	x1, x8, x21
	bl	_outl
	mov	w0, #0
	bl	_SMC_SELECT_BANK
Lloh29:
	adrp	x8, _RCR@GOTPAGE
Lloh30:
	ldr	x8, [x8, _RCR@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
	add	x1, x8, x21
	mov	x0, x20
	bl	_outw
	mov	w0, #2
	bl	_SMC_SELECT_BANK
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	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	x0, [x20, #16]
	cbz	x0, LBB0_8
; %bb.7:
	ldr	w1, [x20, #8]
	add	x2, sp, #8
	bl	_fill_multicast_tbl
LBB0_8:
Lloh32:
	adrp	x8, _RxEnable@GOTPAGE
Lloh33:
	ldr	x8, [x8, _RxEnable@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
Lloh35:
	adrp	x9, _RxStripCRC@GOTPAGE
Lloh36:
	ldr	x9, [x9, _RxStripCRC@GOTPAGEOFF]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_IFF_PROMISC,4,2                ; @IFF_PROMISC
	.comm	_RxStripCRC,4,2                 ; @RxStripCRC
	.comm	_RxEnable,4,2                   ; @RxEnable
	.comm	_RxPromisc,4,2                  ; @RxPromisc
	.comm	_RxAllMulti,4,2                 ; @RxAllMulti
	.comm	_IFF_ALLMULTI,4,2               ; @IFF_ALLMULTI
	.comm	_MULTICAST0,8,3                 ; @MULTICAST0
	.comm	_MULTICAST4,8,3                 ; @MULTICAST4
	.comm	_RCR,8,3                        ; @RCR
	.no_dead_strip	_set_rx_mode
.subsections_via_symbols
