	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netdrv_set_rx_mode
_netdrv_set_rx_mode:                    ## @netdrv_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, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_netdev_priv
	movq	%rax, %r14
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_DPRINTK
	movl	(%r12), %r15d
	movl	24(%r12), %ebx
	movq	_RxConfig@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	callq	_NETDRV_R32
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	movl	%r15d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_DPRINTK
	movl	(%r12), %ecx
	movq	_IFF_PROMISC@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_AcceptBroadcast@GOTPCREL(%rip), %rax
	movq	_AcceptMulticast@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	_AcceptMyPhys@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_AcceptAllPhys@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_2:
	movq	8(%r12), %rax
	movq	_multicast_filter_limit@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jg	LBB0_4
## %bb.3:
	movq	_IFF_ALLMULTI@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_6
LBB0_4:
	movq	_AcceptBroadcast@GOTPCREL(%rip), %rax
	movq	_AcceptMulticast@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	_AcceptMyPhys@GOTPCREL(%rip), %rax
LBB0_5:
	orl	(%rax), %ebx
	movl	$-1, -56(%rbp)
	movl	$-1, -52(%rbp)
	movl	$-1, %r15d
LBB0_8:
	xorl	%eax, %eax
	callq	_in_irq
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:
	leaq	8(%r14), %rdi
	callq	_spin_lock_irq
LBB0_10:
	movq	_netdrv_rx_config@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	(%r13), %rdi
	callq	_NETDRV_R32
	movq	_rtl_chip_info@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%r14), %rdx
	andl	(%rcx,%rdx,4), %eax
	orl	%eax, %ebx
	movq	(%r13), %rdi
	movl	%ebx, %esi
	callq	_NETDRV_W32_F
	movq	_MAR0@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	movl	-56(%rbp), %esi
	callq	_NETDRV_W32_F
	movq	(%rbx), %rdi
	addq	$4, %rdi
	movl	%r15d, %esi
	callq	_NETDRV_W32_F
	xorl	%eax, %eax
	callq	_in_irq
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	addq	$8, %r14
	movq	%r14, %rdi
	callq	_spin_unlock_irq
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.19:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DPRINTK                        ## TAILCALL
LBB0_6:
	movq	_AcceptBroadcast@GOTPCREL(%rip), %rcx
	movq	_AcceptMulticast@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	orl	(%rcx), %ebx
	movq	_AcceptMyPhys@GOTPCREL(%rip), %rcx
	orl	(%rcx), %ebx
	movq	$0, -56(%rbp)
	movq	16(%r12), %r13
	xorl	%r15d, %r15d
	testq	%r13, %r13
	je	LBB0_7
## %bb.14:
	testq	%rax, %rax
	jle	LBB0_7
## %bb.15:
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r13), %esi
	callq	_ether_crc
	movl	%eax, %ecx
	shrl	$26, %ecx
	movl	$1, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	sarl	$31, %eax
	cltq
	orl	%edx, -56(%rbp,%rax,4)
	movq	8(%r13), %r13
	testq	%r13, %r13
	je	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=1
	incq	%r15
	cmpq	%r15, 8(%r12)
	jg	LBB0_16
LBB0_17:
	movq	_RxConfig@GOTPCREL(%rip), %r13
	xorl	%r15d, %r15d
	jmp	LBB0_8
LBB0_7:
	movq	_RxConfig@GOTPCREL(%rip), %r13
	jmp	LBB0_8
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ENTER\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s:   netdrv_set_rx_mode(%4.4x) done -- Rx config %8.8x.\n"

	.comm	_RxConfig,8,3                   ## @RxConfig
	.comm	_IFF_PROMISC,4,2                ## @IFF_PROMISC
	.comm	_AcceptBroadcast,4,2            ## @AcceptBroadcast
	.comm	_AcceptMulticast,4,2            ## @AcceptMulticast
	.comm	_AcceptMyPhys,4,2               ## @AcceptMyPhys
	.comm	_AcceptAllPhys,4,2              ## @AcceptAllPhys
	.comm	_multicast_filter_limit,8,3     ## @multicast_filter_limit
	.comm	_IFF_ALLMULTI,4,2               ## @IFF_ALLMULTI
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_netdrv_rx_config,4,2           ## @netdrv_rx_config
	.comm	_rtl_chip_info,8,3              ## @rtl_chip_info
	.comm	_MAR0,8,3                       ## @MAR0
L_.str.2:                               ## @.str.2
	.asciz	"EXIT\n"

	.no_dead_strip	_netdrv_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 netdrv_set_rx_mode
_netdrv_set_rx_mode:                    ; @netdrv_set_rx_mode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x0
	bl	_netdev_priv
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DPRINTK
Lloh2:
	adrp	x22, _RxConfig@GOTPAGE
Lloh3:
	ldr	x22, [x22, _RxConfig@GOTPAGEOFF]
	ldr	x0, [x22]
	ldr	w21, [x20, #24]
	ldr	w23, [x20]
	bl	_NETDRV_R32
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x23, x0, [sp, #8]
	str	x21, [sp]
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DPRINTK
	ldr	w9, [x20]
Lloh6:
	adrp	x8, _IFF_PROMISC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IFF_PROMISC@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _AcceptBroadcast@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AcceptBroadcast@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _AcceptMulticast@GOTPAGE
Lloh13:
	ldr	x9, [x9, _AcceptMulticast@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh15:
	adrp	x9, _AcceptMyPhys@GOTPAGE
Lloh16:
	ldr	x9, [x9, _AcceptMyPhys@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh18:
	adrp	x9, _AcceptAllPhys@GOTPAGE
Lloh19:
	ldr	x9, [x9, _AcceptAllPhys@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:
	ldr	x8, [x20, #8]
Lloh20:
	adrp	x10, _multicast_filter_limit@GOTPAGE
Lloh21:
	ldr	x10, [x10, _multicast_filter_limit@GOTPAGEOFF]
Lloh22:
	ldr	x10, [x10]
	cmp	x8, x10
	b.gt	LBB0_4
; %bb.3:
Lloh23:
	adrp	x10, _IFF_ALLMULTI@GOTPAGE
Lloh24:
	ldr	x10, [x10, _IFF_ALLMULTI@GOTPAGEOFF]
Lloh25:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_11
LBB0_4:
Lloh26:
	adrp	x8, _AcceptBroadcast@GOTPAGE
Lloh27:
	ldr	x8, [x8, _AcceptBroadcast@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
Lloh29:
	adrp	x9, _AcceptMulticast@GOTPAGE
Lloh30:
	ldr	x9, [x9, _AcceptMulticast@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh32:
	adrp	x9, _AcceptMyPhys@GOTPAGE
Lloh33:
	ldr	x9, [x9, _AcceptMyPhys@GOTPAGEOFF]
LBB0_5:
	ldr	w9, [x9]
	orr	w23, w8, w9
	mov	w8, #-1
	mov	w21, #-1
	stp	w8, w21, [sp, #24]
LBB0_6:
	bl	_in_irq
	cbnz	w0, LBB0_8
; %bb.7:
	add	x0, x19, #8
	bl	_spin_lock_irq
LBB0_8:
Lloh34:
	adrp	x8, _netdrv_rx_config@GOTPAGE
Lloh35:
	ldr	x8, [x8, _netdrv_rx_config@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	orr	w20, w8, w23
	ldr	x0, [x22]
	bl	_NETDRV_R32
Lloh37:
	adrp	x8, _rtl_chip_info@GOTPAGE
Lloh38:
	ldr	x8, [x8, _rtl_chip_info@GOTPAGEOFF]
Lloh39:
	ldr	x8, [x8]
	ldr	x9, [x19]
	ldr	w8, [x8, x9, lsl #2]
	and	w8, w8, w0
	orr	w1, w20, w8
	ldr	x0, [x22]
	bl	_NETDRV_W32_F
Lloh40:
	adrp	x20, _MAR0@GOTPAGE
Lloh41:
	ldr	x20, [x20, _MAR0@GOTPAGEOFF]
	ldr	x0, [x20]
	ldr	w1, [sp, #24]
	bl	_NETDRV_W32_F
	ldr	x8, [x20]
	add	x0, x8, #4
	mov	x1, x21
	bl	_NETDRV_W32_F
	bl	_in_irq
	cbnz	w0, LBB0_10
; %bb.9:
	add	x0, x19, #8
	bl	_spin_unlock_irq
LBB0_10:
Lloh42:
	adrp	x0, l_.str.2@PAGE
Lloh43:
	add	x0, x0, l_.str.2@PAGEOFF
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_DPRINTK
LBB0_11:
	mov	w21, #0
Lloh44:
	adrp	x9, _AcceptBroadcast@GOTPAGE
Lloh45:
	ldr	x9, [x9, _AcceptBroadcast@GOTPAGEOFF]
Lloh46:
	ldr	w9, [x9]
Lloh47:
	adrp	x10, _AcceptMulticast@GOTPAGE
Lloh48:
	ldr	x10, [x10, _AcceptMulticast@GOTPAGEOFF]
Lloh49:
	ldr	w10, [x10]
Lloh50:
	adrp	x11, _AcceptMyPhys@GOTPAGE
Lloh51:
	ldr	x11, [x11, _AcceptMyPhys@GOTPAGEOFF]
	orr	w9, w10, w9
Lloh52:
	ldr	w10, [x11]
	orr	w23, w9, w10
	str	xzr, [sp, #24]
	ldr	x24, [x20, #16]
	cbz	x24, LBB0_6
; %bb.12:
	cmp	x8, #1
	b.lt	LBB0_6
; %bb.13:
	mov	x21, #0
Lloh53:
	adrp	x25, _ETH_ALEN@GOTPAGE
Lloh54:
	ldr	x25, [x25, _ETH_ALEN@GOTPAGEOFF]
	mov	w26, #1
	add	x27, sp, #24
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x25]
	ldr	w1, [x24]
	bl	_ether_crc
	lsr	w8, w0, #26
	lsl	w8, w26, w8
	asr	w9, w0, #31
	sbfiz	x9, x9, #2, #32
	ldr	w10, [x27, x9]
	orr	w8, w8, w10
	str	w8, [x27, x9]
	ldr	x24, [x24, #8]
	cbz	x24, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	add	x21, x21, #1
	ldr	x8, [x20, #8]
	cmp	x8, x21
	b.gt	LBB0_14
LBB0_16:
	mov	w21, #0
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh53, Lloh54
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ENTER\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s:   netdrv_set_rx_mode(%4.4x) done -- Rx config %8.8x.\n"

	.comm	_RxConfig,8,3                   ; @RxConfig
	.comm	_IFF_PROMISC,4,2                ; @IFF_PROMISC
	.comm	_AcceptBroadcast,4,2            ; @AcceptBroadcast
	.comm	_AcceptMulticast,4,2            ; @AcceptMulticast
	.comm	_AcceptMyPhys,4,2               ; @AcceptMyPhys
	.comm	_AcceptAllPhys,4,2              ; @AcceptAllPhys
	.comm	_multicast_filter_limit,8,3     ; @multicast_filter_limit
	.comm	_IFF_ALLMULTI,4,2               ; @IFF_ALLMULTI
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_netdrv_rx_config,4,2           ; @netdrv_rx_config
	.comm	_rtl_chip_info,8,3              ; @rtl_chip_info
	.comm	_MAR0,8,3                       ; @MAR0
l_.str.2:                               ; @.str.2
	.asciz	"EXIT\n"

	.no_dead_strip	_netdrv_set_rx_mode
.subsections_via_symbols
