	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nfp_net_set_rx_mode
_nfp_net_set_rx_mode:                   ## @nfp_net_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
	callq	_netdev_priv
	movq	%rax, %r14
	movl	4(%rax), %r15d
	movq	%rbx, %rdi
	callq	_netdev_mc_empty
	movl	(%rbx), %ecx
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	_IFF_ALLMULTI@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_3
LBB0_2:
	movq	_NFP_NET_CFG_CTRL_L2MC@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	(%r14), %ebx
	orl	%r15d, %ebx
	jmp	LBB0_4
LBB0_3:
	movq	_NFP_NET_CFG_CTRL_L2MC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %r15d
	movl	%r15d, %ebx
LBB0_4:
	movq	_IFF_PROMISC@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_8
## %bb.5:
	movq	_NFP_NET_CFG_CTRL_PROMISC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_7
## %bb.6:
	orl	%eax, %ebx
	cmpl	4(%r14), %ebx
	jne	LBB0_10
	jmp	LBB0_11
LBB0_8:
	movq	_NFP_NET_CFG_CTRL_PROMISC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %ebx
	cmpl	4(%r14), %ebx
	je	LBB0_11
LBB0_10:
	movq	_NFP_NET_CFG_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_nn_writel
	movq	_NFP_NET_CFG_UPDATE_GEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_nfp_net_reconfig_post
	movl	%ebx, 4(%r14)
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_nn_warn
	cmpl	4(%r14), %ebx
	jne	LBB0_10
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_IFF_ALLMULTI,4,2               ## @IFF_ALLMULTI
	.comm	_NFP_NET_CFG_CTRL_L2MC,4,2      ## @NFP_NET_CFG_CTRL_L2MC
	.comm	_IFF_PROMISC,4,2                ## @IFF_PROMISC
	.comm	_NFP_NET_CFG_CTRL_PROMISC,4,2   ## @NFP_NET_CFG_CTRL_PROMISC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FW does not support promiscuous mode\n"

	.comm	_NFP_NET_CFG_CTRL,4,2           ## @NFP_NET_CFG_CTRL
	.comm	_NFP_NET_CFG_UPDATE_GEN,4,2     ## @NFP_NET_CFG_UPDATE_GEN
	.no_dead_strip	_nfp_net_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 nfp_net_set_rx_mode
_nfp_net_set_rx_mode:                   ; @nfp_net_set_rx_mode
	.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
	bl	_netdev_priv
	mov	x19, x0
	ldr	w21, [x0, #4]
	mov	x0, x20
	bl	_netdev_mc_empty
	ldr	w8, [x20]
	cbz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x9, _IFF_ALLMULTI@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IFF_ALLMULTI@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
LBB0_2:
	ldr	w9, [x19]
Lloh3:
	adrp	x10, _NFP_NET_CFG_CTRL_L2MC@GOTPAGE
Lloh4:
	ldr	x10, [x10, _NFP_NET_CFG_CTRL_L2MC@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	and	w9, w10, w9
	orr	w20, w9, w21
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x9, _NFP_NET_CFG_CTRL_L2MC@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NFP_NET_CFG_CTRL_L2MC@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	bic	w20, w21, w9
LBB0_4:
Lloh9:
	adrp	x9, _IFF_PROMISC@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IFF_PROMISC@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.5:
	ldr	w9, [x19]
Lloh12:
	adrp	x8, _NFP_NET_CFG_CTRL_PROMISC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _NFP_NET_CFG_CTRL_PROMISC@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_8
; %bb.6:
	orr	w20, w8, w20
	b	LBB0_9
LBB0_7:
Lloh15:
	adrp	x8, _NFP_NET_CFG_CTRL_PROMISC@GOTPAGE
Lloh16:
	ldr	x8, [x8, _NFP_NET_CFG_CTRL_PROMISC@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	bic	w20, w20, w8
	b	LBB0_9
LBB0_8:
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_nn_warn
LBB0_9:
	ldr	w8, [x19, #4]
	cmp	w20, w8
	b.eq	LBB0_11
; %bb.10:
Lloh20:
	adrp	x8, _NFP_NET_CFG_CTRL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _NFP_NET_CFG_CTRL@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_nn_writel
Lloh23:
	adrp	x8, _NFP_NET_CFG_UPDATE_GEN@GOTPAGE
Lloh24:
	ldr	x8, [x8, _NFP_NET_CFG_UPDATE_GEN@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_nfp_net_reconfig_post
	str	w20, [x19, #4]
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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_IFF_ALLMULTI,4,2               ; @IFF_ALLMULTI
	.comm	_NFP_NET_CFG_CTRL_L2MC,4,2      ; @NFP_NET_CFG_CTRL_L2MC
	.comm	_IFF_PROMISC,4,2                ; @IFF_PROMISC
	.comm	_NFP_NET_CFG_CTRL_PROMISC,4,2   ; @NFP_NET_CFG_CTRL_PROMISC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FW does not support promiscuous mode\n"

	.comm	_NFP_NET_CFG_CTRL,4,2           ; @NFP_NET_CFG_CTRL
	.comm	_NFP_NET_CFG_UPDATE_GEN,4,2     ; @NFP_NET_CFG_UPDATE_GEN
	.no_dead_strip	_nfp_net_set_rx_mode
.subsections_via_symbols
