	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function moxart_mac_set_rx_mode
_moxart_mac_set_rx_mode:                ## @moxart_mac_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_spin_lock_irq
	movl	(%r14), %ecx
	movq	_IFF_PROMISC@GOTPCREL(%rip), %rdx
	movq	_RCV_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%ecx, (%rdx)
	je	LBB0_2
## %bb.1:
	orl	16(%rbx), %eax
	jmp	LBB0_3
LBB0_2:
	notl	%eax
	andl	16(%rbx), %eax
LBB0_3:
	movq	_IFF_ALLMULTI@GOTPCREL(%rip), %rsi
	movq	_RX_MULTIPKT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%ecx, (%rsi)
	je	LBB0_5
## %bb.4:
	orl	%edx, %eax
	jmp	LBB0_6
LBB0_5:
	notl	%edx
	andl	%edx, %eax
LBB0_6:
	movl	%eax, 16(%rbx)
	movq	_IFF_MULTICAST@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_9
## %bb.7:
	movq	%r14, %rdi
	callq	_netdev_mc_count
	testq	%rax, %rax
	je	LBB0_8
## %bb.11:
	movq	_HT_MULTI_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%rbx)
	movq	%r14, %rdi
	callq	_moxart_mac_setmulticast
	movl	16(%rbx), %edi
	jmp	LBB0_10
LBB0_8:
	movl	16(%rbx), %eax
LBB0_9:
	movq	_HT_MULTI_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	notl	%edi
	andl	%eax, %edi
	movl	%edi, 16(%rbx)
LBB0_10:
	movq	_REG_MAC_CTRL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	callq	_writel
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_spin_unlock_irq                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IFF_PROMISC,4,2                ## @IFF_PROMISC
	.comm	_RCV_ALL,4,2                    ## @RCV_ALL
	.comm	_IFF_ALLMULTI,4,2               ## @IFF_ALLMULTI
	.comm	_RX_MULTIPKT,4,2                ## @RX_MULTIPKT
	.comm	_IFF_MULTICAST,4,2              ## @IFF_MULTICAST
	.comm	_HT_MULTI_EN,4,2                ## @HT_MULTI_EN
	.comm	_REG_MAC_CTRL,8,3               ## @REG_MAC_CTRL
	.no_dead_strip	_moxart_mac_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 moxart_mac_set_rx_mode
_moxart_mac_set_rx_mode:                ; @moxart_mac_set_rx_mode
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	bl	_spin_lock_irq
Lloh0:
	adrp	x9, _IFF_PROMISC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IFF_PROMISC@GOTPAGEOFF]
	ldr	w8, [x20]
Lloh2:
	ldr	w10, [x9]
Lloh3:
	adrp	x9, _RCV_ALL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RCV_ALL@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w10, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	w10, [x19, #16]
	orr	w9, w10, w9
	b	LBB0_3
LBB0_2:
	ldr	w10, [x19, #16]
	bic	w9, w10, w9
LBB0_3:
Lloh6:
	adrp	x10, _IFF_ALLMULTI@GOTPAGE
Lloh7:
	ldr	x10, [x10, _IFF_ALLMULTI@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x10]
Lloh9:
	adrp	x10, _RX_MULTIPKT@GOTPAGE
Lloh10:
	ldr	x10, [x10, _RX_MULTIPKT@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	tst	w11, w8
	b.eq	LBB0_5
; %bb.4:
	orr	w9, w9, w10
	b	LBB0_6
LBB0_5:
	bic	w9, w9, w10
LBB0_6:
	str	w9, [x19, #16]
Lloh12:
	adrp	x10, _IFF_MULTICAST@GOTPAGE
Lloh13:
	ldr	x10, [x10, _IFF_MULTICAST@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_10
; %bb.7:
	mov	x0, x20
	bl	_netdev_mc_count
	cbz	x0, LBB0_9
; %bb.8:
Lloh15:
	adrp	x8, _HT_MULTI_EN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HT_MULTI_EN@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	ldr	w9, [x19, #16]
	orr	w8, w9, w8
	str	w8, [x19, #16]
	mov	x0, x20
	bl	_moxart_mac_setmulticast
	ldr	w0, [x19, #16]
	b	LBB0_11
LBB0_9:
	ldr	w9, [x19, #16]
LBB0_10:
Lloh18:
	adrp	x8, _HT_MULTI_EN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _HT_MULTI_EN@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	bic	w0, w9, w8
	str	w0, [x19, #16]
LBB0_11:
	ldr	x8, [x19, #8]
Lloh21:
	adrp	x9, _REG_MAC_CTRL@GOTPAGE
Lloh22:
	ldr	x9, [x9, _REG_MAC_CTRL@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_spin_unlock_irq
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_IFF_PROMISC,4,2                ; @IFF_PROMISC
	.comm	_RCV_ALL,4,2                    ; @RCV_ALL
	.comm	_IFF_ALLMULTI,4,2               ; @IFF_ALLMULTI
	.comm	_RX_MULTIPKT,4,2                ; @RX_MULTIPKT
	.comm	_IFF_MULTICAST,4,2              ; @IFF_MULTICAST
	.comm	_HT_MULTI_EN,4,2                ; @HT_MULTI_EN
	.comm	_REG_MAC_CTRL,8,3               ; @REG_MAC_CTRL
	.no_dead_strip	_moxart_mac_set_rx_mode
.subsections_via_symbols
