	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpaa2_eth_set_rx_mode
_dpaa2_eth_set_rx_mode:                 ## @dpaa2_eth_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, %rbx
	callq	_netdev_priv
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_netdev_uc_count
	movl	%eax, %r14d
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_netdev_mc_count
	movl	%eax, %r15d
	movl	12(%r13), %ebx
	movl	8(%r13), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	(%r13), %r12
	movq	_DPNI_OPT_NO_MAC_FILTER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%r13)
	je	LBB0_3
## %bb.1:
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_netdev_info
LBB0_3:
	cmpl	%ebx, %r14d
	jle	LBB0_8
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %edx
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_netdev_info
	jmp	LBB0_5
LBB0_8:
	addl	%r14d, %r15d
	cmpl	%ebx, %r15d
	jle	LBB0_12
## %bb.9:
	leaq	L_.str.2(%rip), %rsi
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_netdev_info
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	jmp	LBB0_10
LBB0_12:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %ebx
	movq	_IFF_PROMISC@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_13
LBB0_5:
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edx
	movl	$1, %ecx
	callq	_dpni_set_unicast_promisc
	testl	%eax, %eax
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_10
## %bb.6:
	leaq	L_.str.11(%rip), %rsi
LBB0_7:
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_netdev_warn
LBB0_10:
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%r14d, %edx
	movl	$1, %ecx
	callq	_dpni_set_multicast_promisc
	testl	%eax, %eax
	je	LBB0_31
## %bb.11:
	leaq	L_.str.12(%rip), %rsi
	movq	%r13, %rdi
LBB0_30:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netdev_warn                    ## TAILCALL
LBB0_13:
	movq	_IFF_ALLMULTI@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edx
	movl	$1, %ecx
	callq	_dpni_set_unicast_promisc
	testl	%ebx, %ebx
	je	LBB0_20
## %bb.14:
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:
	leaq	L_.str.3(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_netdev_warn
LBB0_16:
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%r14d, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	_dpni_clear_mac_filters
	testl	%eax, %eax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_18
## %bb.17:
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_netdev_warn
LBB0_18:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_add_uc_hw_addr
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	callq	_dpni_set_unicast_promisc
	testl	%eax, %eax
	movq	%rbx, %r13
	je	LBB0_10
## %bb.19:
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_7
LBB0_20:
	testl	%eax, %eax
	je	LBB0_22
## %bb.21:
	leaq	L_.str.6(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_netdev_warn
LBB0_22:
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%r14d, %edx
	movl	$1, %ecx
	callq	_dpni_set_multicast_promisc
	testl	%eax, %eax
	je	LBB0_24
## %bb.23:
	leaq	L_.str.7(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_netdev_warn
LBB0_24:
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%r14d, %edx
	movl	$1, %ecx
	movl	$1, %r8d
	callq	_dpni_clear_mac_filters
	testl	%eax, %eax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_26
## %bb.25:
	leaq	L_.str.8(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_netdev_warn
LBB0_26:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_add_mc_hw_addr
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_add_uc_hw_addr
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	callq	_dpni_set_unicast_promisc
	testl	%eax, %eax
	je	LBB0_28
## %bb.27:
	leaq	L_.str.9(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_netdev_warn
LBB0_28:
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	callq	_dpni_set_multicast_promisc
	testl	%eax, %eax
	je	LBB0_31
## %bb.29:
	leaq	L_.str.10(%rip), %rsi
	movq	%rbx, %rdi
	jmp	LBB0_30
LBB0_31:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DPNI_OPT_NO_MAC_FILTER,4,2     ## @DPNI_OPT_NO_MAC_FILTER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mac_filter_entries=%d, DPNI_OPT_NO_MAC_FILTER option must be disabled\n"

L_.str.1:                               ## @.str.1
	.asciz	"Unicast addr count reached %d, max allowed is %d; forcing promisc\n"

L_.str.2:                               ## @.str.2
	.asciz	"Unicast + multicast addr count reached %d, max allowed is %d; forcing promisc\n"

	.comm	_IFF_PROMISC,4,2                ## @IFF_PROMISC
	.comm	_IFF_ALLMULTI,4,2               ## @IFF_ALLMULTI
L_.str.3:                               ## @.str.3
	.asciz	"Can't set uc promisc\n"

L_.str.4:                               ## @.str.4
	.asciz	"Can't clear uc filters\n"

L_.str.5:                               ## @.str.5
	.asciz	"Can't clear uc promisc\n"

L_.str.6:                               ## @.str.6
	.asciz	"Can't set uc promisc (%d)\n"

L_.str.7:                               ## @.str.7
	.asciz	"Can't set mc promisc (%d)\n"

L_.str.8:                               ## @.str.8
	.asciz	"Can't clear mac filters\n"

L_.str.9:                               ## @.str.9
	.asciz	"Can't clear ucast promisc\n"

L_.str.10:                              ## @.str.10
	.asciz	"Can't clear mcast promisc\n"

L_.str.11:                              ## @.str.11
	.asciz	"Can't set ucast promisc\n"

L_.str.12:                              ## @.str.12
	.asciz	"Can't set mcast promisc\n"

	.no_dead_strip	_dpaa2_eth_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 dpaa2_eth_set_rx_mode
_dpaa2_eth_set_rx_mode:                 ; @dpaa2_eth_set_rx_mode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
	bl	_netdev_priv
	mov	x22, x0
	mov	x0, x19
	bl	_netdev_uc_count
	mov	x23, x0
	mov	x0, x19
	bl	_netdev_mc_count
	mov	x25, x0
	ldp	w24, w8, [x22, #12]
	ldr	w20, [x22, #8]
	ldr	x21, [x22]
Lloh0:
	adrp	x9, _DPNI_OPT_NO_MAC_FILTER@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DPNI_OPT_NO_MAC_FILTER@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w8, w9, w8
	cmp	w8, #0
	ccmp	w24, #0, #4, ne
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x24
	bl	_netdev_info
LBB0_2:
	cmp	w23, w24
	b.le	LBB0_4
; %bb.3:
	str	x24, [sp]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x23
	bl	_netdev_info
	b	LBB0_7
LBB0_4:
	add	w2, w25, w23
	cmp	w2, w24
	b.le	LBB0_6
; %bb.5:
                                        ; kill: def $w24 killed $w24 killed $x24 def $x24
	str	x24, [sp]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_netdev_info
	b	LBB0_10
LBB0_6:
	ldr	w8, [x19]
Lloh9:
	adrp	x9, _IFF_PROMISC@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IFF_PROMISC@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
LBB0_7:
	mov	x0, x21
	mov	w1, #0
	mov	x2, x20
	mov	w3, #1
	bl	_dpni_set_unicast_promisc
	cbz	w0, LBB0_10
; %bb.8:
Lloh12:
	adrp	x1, l_.str.11@PAGE
Lloh13:
	add	x1, x1, l_.str.11@PAGEOFF
LBB0_9:
	mov	x0, x19
	bl	_netdev_warn
LBB0_10:
	mov	x0, x21
	mov	w1, #0
	mov	x2, x20
	mov	w3, #1
	bl	_dpni_set_multicast_promisc
	cbz	w0, LBB0_30
; %bb.11:
Lloh14:
	adrp	x1, l_.str.12@PAGE
Lloh15:
	add	x1, x1, l_.str.12@PAGEOFF
LBB0_12:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_netdev_warn
LBB0_13:
Lloh16:
	adrp	x9, _IFF_ALLMULTI@GOTPAGE
Lloh17:
	ldr	x9, [x9, _IFF_ALLMULTI@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	and	w23, w9, w8
	mov	x0, x21
	mov	w1, #0
	mov	x2, x20
	mov	w3, #1
	bl	_dpni_set_unicast_promisc
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w23, LBB0_20
; %bb.14:
	cbz	w0, LBB0_16
; %bb.15:
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_netdev_warn
LBB0_16:
	mov	x0, x21
	mov	w1, #0
	mov	x2, x20
	mov	w3, #1
	mov	w4, #0
	bl	_dpni_clear_mac_filters
	cbz	w0, LBB0_18
; %bb.17:
Lloh21:
	adrp	x1, l_.str.4@PAGE
Lloh22:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_netdev_warn
LBB0_18:
	mov	x0, x19
	mov	x1, x22
	bl	_add_uc_hw_addr
	mov	x0, x21
	mov	w1, #0
	mov	x2, x20
	mov	w3, #0
	bl	_dpni_set_unicast_promisc
	cbz	w0, LBB0_10
; %bb.19:
Lloh23:
	adrp	x1, l_.str.5@PAGE
Lloh24:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_9
LBB0_20:
	cbz	w0, LBB0_22
; %bb.21:
	str	x0, [sp]
Lloh25:
	adrp	x1, l_.str.6@PAGE
Lloh26:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_netdev_warn
LBB0_22:
	mov	x0, x21
	mov	w1, #0
	mov	x2, x20
	mov	w3, #1
	bl	_dpni_set_multicast_promisc
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_24
; %bb.23:
	str	x0, [sp]
Lloh27:
	adrp	x1, l_.str.7@PAGE
Lloh28:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_netdev_warn
LBB0_24:
	mov	x0, x21
	mov	w1, #0
	mov	x2, x20
	mov	w3, #1
	mov	w4, #1
	bl	_dpni_clear_mac_filters
	cbz	w0, LBB0_26
; %bb.25:
Lloh29:
	adrp	x1, l_.str.8@PAGE
Lloh30:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_netdev_warn
LBB0_26:
	mov	x0, x19
	mov	x1, x22
	bl	_add_mc_hw_addr
	mov	x0, x19
	mov	x1, x22
	bl	_add_uc_hw_addr
	mov	x0, x21
	mov	w1, #0
	mov	x2, x20
	mov	w3, #0
	bl	_dpni_set_unicast_promisc
	cbz	w0, LBB0_28
; %bb.27:
Lloh31:
	adrp	x1, l_.str.9@PAGE
Lloh32:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x19
	bl	_netdev_warn
LBB0_28:
	mov	x0, x21
	mov	w1, #0
	mov	x2, x20
	mov	w3, #0
	bl	_dpni_set_multicast_promisc
	cbz	w0, LBB0_30
; %bb.29:
Lloh33:
	adrp	x1, l_.str.10@PAGE
Lloh34:
	add	x1, x1, l_.str.10@PAGEOFF
	b	LBB0_12
LBB0_30:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_DPNI_OPT_NO_MAC_FILTER,4,2     ; @DPNI_OPT_NO_MAC_FILTER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mac_filter_entries=%d, DPNI_OPT_NO_MAC_FILTER option must be disabled\n"

l_.str.1:                               ; @.str.1
	.asciz	"Unicast addr count reached %d, max allowed is %d; forcing promisc\n"

l_.str.2:                               ; @.str.2
	.asciz	"Unicast + multicast addr count reached %d, max allowed is %d; forcing promisc\n"

	.comm	_IFF_PROMISC,4,2                ; @IFF_PROMISC
	.comm	_IFF_ALLMULTI,4,2               ; @IFF_ALLMULTI
l_.str.3:                               ; @.str.3
	.asciz	"Can't set uc promisc\n"

l_.str.4:                               ; @.str.4
	.asciz	"Can't clear uc filters\n"

l_.str.5:                               ; @.str.5
	.asciz	"Can't clear uc promisc\n"

l_.str.6:                               ; @.str.6
	.asciz	"Can't set uc promisc (%d)\n"

l_.str.7:                               ; @.str.7
	.asciz	"Can't set mc promisc (%d)\n"

l_.str.8:                               ; @.str.8
	.asciz	"Can't clear mac filters\n"

l_.str.9:                               ; @.str.9
	.asciz	"Can't clear ucast promisc\n"

l_.str.10:                              ; @.str.10
	.asciz	"Can't clear mcast promisc\n"

l_.str.11:                              ; @.str.11
	.asciz	"Can't set ucast promisc\n"

l_.str.12:                              ; @.str.12
	.asciz	"Can't set mcast promisc\n"

	.no_dead_strip	_dpaa2_eth_set_rx_mode
.subsections_via_symbols
