	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mvpp2_set_rx_mode
_mvpp2_set_rx_mode:                     ## @mvpp2_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, %rbx
	callq	_netdev_priv
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_mvpp2_prs_mac_del_all
	movq	_IFF_PROMISC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_1
## %bb.8:
	movq	%r14, %rdi
	movl	$1, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mvpp2_set_rx_promisc           ## TAILCALL
LBB0_1:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_mvpp2_set_rx_promisc
	movq	%rbx, %rdi
	callq	_netdev_uc_count
	movq	_MVPP2_PRS_MAC_UC_FILT_MAX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_3
## %bb.2:
	leaq	8(%rbx), %rsi
	movq	%r14, %rdi
	callq	_mvpp2_prs_mac_da_accept_list
	testq	%rax, %rax
	je	LBB0_4
LBB0_3:
	movl	(%r14), %esi
	movl	4(%r14), %edi
	movq	_MVPP2_PRS_L2_UNI_CAST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %ecx
	callq	_mvpp2_prs_mac_promisc_set
LBB0_4:
	movq	_IFF_ALLMULTI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	jne	LBB0_9
## %bb.5:
	movq	%rbx, %rdi
	callq	_netdev_mc_count
	movq	_MVPP2_PRS_MAC_MC_FILT_MAX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_9
## %bb.6:
	addq	$4, %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_mvpp2_prs_mac_da_accept_list
	testq	%rax, %rax
	je	LBB0_7
LBB0_9:
	movl	(%r14), %esi
	movl	4(%r14), %edi
	movq	_MVPP2_PRS_L2_MULTI_CAST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %ecx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mvpp2_prs_mac_promisc_set      ## TAILCALL
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IFF_PROMISC,4,2                ## @IFF_PROMISC
	.comm	_MVPP2_PRS_MAC_UC_FILT_MAX,8,3  ## @MVPP2_PRS_MAC_UC_FILT_MAX
	.comm	_MVPP2_PRS_L2_UNI_CAST,4,2      ## @MVPP2_PRS_L2_UNI_CAST
	.comm	_IFF_ALLMULTI,4,2               ## @IFF_ALLMULTI
	.comm	_MVPP2_PRS_L2_MULTI_CAST,4,2    ## @MVPP2_PRS_L2_MULTI_CAST
	.comm	_MVPP2_PRS_MAC_MC_FILT_MAX,8,3  ## @MVPP2_PRS_MAC_MC_FILT_MAX
	.no_dead_strip	_mvpp2_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 mvpp2_set_rx_mode
_mvpp2_set_rx_mode:                     ; @mvpp2_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	_mvpp2_prs_mac_del_all
	ldr	w8, [x20]
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:
	mov	x0, x19
	mov	w1, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mvpp2_set_rx_promisc
LBB0_2:
	mov	x0, x19
	mov	w1, #0
	bl	_mvpp2_set_rx_promisc
	mov	x0, x20
	bl	_netdev_uc_count
Lloh3:
	adrp	x8, _MVPP2_PRS_MAC_UC_FILT_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MVPP2_PRS_MAC_UC_FILT_MAX@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.gt	LBB0_4
; %bb.3:
	add	x1, x20, #8
	mov	x0, x19
	bl	_mvpp2_prs_mac_da_accept_list
	cbz	x0, LBB0_5
LBB0_4:
	ldp	w1, w0, [x19]
Lloh6:
	adrp	x8, _MVPP2_PRS_L2_UNI_CAST@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MVPP2_PRS_L2_UNI_CAST@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	w3, #1
	bl	_mvpp2_prs_mac_promisc_set
LBB0_5:
	ldr	w8, [x20]
Lloh9:
	adrp	x9, _IFF_ALLMULTI@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IFF_ALLMULTI@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_8
; %bb.6:
	mov	x0, x20
	bl	_netdev_mc_count
Lloh12:
	adrp	x8, _MVPP2_PRS_MAC_MC_FILT_MAX@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MVPP2_PRS_MAC_MC_FILT_MAX@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	x0, x8
	b.gt	LBB0_8
; %bb.7:
	add	x1, x20, #4
	mov	x0, x19
	bl	_mvpp2_prs_mac_da_accept_list
	cbz	x0, LBB0_9
LBB0_8:
Lloh15:
	adrp	x8, _MVPP2_PRS_L2_MULTI_CAST@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MVPP2_PRS_L2_MULTI_CAST@GOTPAGEOFF]
	ldp	w1, w0, [x19]
Lloh17:
	ldr	w2, [x8]
	mov	w3, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mvpp2_prs_mac_promisc_set
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 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
	.cfi_endproc
                                        ; -- End function
	.comm	_IFF_PROMISC,4,2                ; @IFF_PROMISC
	.comm	_MVPP2_PRS_MAC_UC_FILT_MAX,8,3  ; @MVPP2_PRS_MAC_UC_FILT_MAX
	.comm	_MVPP2_PRS_L2_UNI_CAST,4,2      ; @MVPP2_PRS_L2_UNI_CAST
	.comm	_IFF_ALLMULTI,4,2               ; @IFF_ALLMULTI
	.comm	_MVPP2_PRS_L2_MULTI_CAST,4,2    ; @MVPP2_PRS_L2_MULTI_CAST
	.comm	_MVPP2_PRS_MAC_MC_FILT_MAX,8,3  ; @MVPP2_PRS_MAC_MC_FILT_MAX
	.no_dead_strip	_mvpp2_set_rx_mode
.subsections_via_symbols
