	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function enetc_setup_rxbdr
_enetc_setup_rxbdr:                     ## @enetc_setup_rxbdr
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	_ENETC_RBBAR0@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	(%rsi), %r14d
	movl	36(%rsi), %edi
	callq	_lower_32_bits
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_enetc_rxbdr_wr
	movq	_ENETC_RBBAR1@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	36(%r12), %edi
	callq	_upper_32_bits
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_enetc_rxbdr_wr
	movl	32(%r12), %edi
	movl	$64, %esi
	callq	_IS_ALIGNED
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_WARN_ON
	movq	_ENETC_RBLENR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	32(%r12), %edi
	callq	_ENETC_RTBLENR_LEN
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_enetc_rxbdr_wr
	movq	_ENETC_RBBSR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ENETC_RXB_DMA_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_enetc_rxbdr_wr
	movq	_ENETC_RBPIR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	xorl	%ecx, %ecx
	callq	_enetc_rxbdr_wr
	movq	_ENETC_RBICIR0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ENETC_RBICIR0_ICEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	orl	$1, %ecx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_enetc_rxbdr_wr
	movq	_ENETC_RBMR_EN@GOTPCREL(%rip), %rax
	movq	24(%r12), %rcx
	movq	_NETIF_F_HW_VLAN_CTAG_RX@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	andl	(%rcx), %ebx
	je	LBB0_2
## %bb.1:
	movq	_ENETC_RBMR_VTE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
LBB0_2:
	orl	(%rax), %ebx
	movq	(%r15), %r13
	movq	_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ENETC_RBCIR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %esi
	callq	_ENETC_BDR
	addq	%r13, %rax
	movq	%rax, 16(%r12)
	movq	_ENETC_SIRXIDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	(%r15), %rax
	movq	%rax, 8(%r12)
	movq	%r12, %rdi
	callq	_enetc_bd_unused
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_enetc_refill_rx_ring
	movq	_ENETC_RBMR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%ebx, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_enetc_rxbdr_wr                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENETC_RBBAR0,4,2               ## @ENETC_RBBAR0
	.comm	_ENETC_RBBAR1,4,2               ## @ENETC_RBBAR1
	.comm	_ENETC_RBLENR,4,2               ## @ENETC_RBLENR
	.comm	_ENETC_RBBSR,4,2                ## @ENETC_RBBSR
	.comm	_ENETC_RXB_DMA_SIZE,4,2         ## @ENETC_RXB_DMA_SIZE
	.comm	_ENETC_RBPIR,4,2                ## @ENETC_RBPIR
	.comm	_ENETC_RBICIR0,4,2              ## @ENETC_RBICIR0
	.comm	_ENETC_RBICIR0_ICEN,4,2         ## @ENETC_RBICIR0_ICEN
	.comm	_ENETC_RBMR_EN,4,2              ## @ENETC_RBMR_EN
	.comm	_NETIF_F_HW_VLAN_CTAG_RX,4,2    ## @NETIF_F_HW_VLAN_CTAG_RX
	.comm	_ENETC_RBMR_VTE,4,2             ## @ENETC_RBMR_VTE
	.comm	_RX,4,2                         ## @RX
	.comm	_ENETC_RBCIR,4,2                ## @ENETC_RBCIR
	.comm	_ENETC_SIRXIDR,8,3              ## @ENETC_SIRXIDR
	.comm	_ENETC_RBMR,4,2                 ## @ENETC_RBMR
	.comm	_ENETC_RBMR_BDS,4,2             ## @ENETC_RBMR_BDS
	.no_dead_strip	_enetc_setup_rxbdr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function enetc_setup_rxbdr
_enetc_setup_rxbdr:                     ; @enetc_setup_rxbdr
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x1
	mov	x19, x0
	ldr	w20, [x1]
Lloh0:
	adrp	x8, _ENETC_RBBAR0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENETC_RBBAR0@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	ldr	w0, [x1, #36]
	bl	_lower_32_bits
	mov	x3, x0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_enetc_rxbdr_wr
Lloh3:
	adrp	x8, _ENETC_RBBAR1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENETC_RBBAR1@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	ldr	w0, [x21, #36]
	bl	_upper_32_bits
	mov	x3, x0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_enetc_rxbdr_wr
	ldr	w0, [x21, #32]
	mov	w1, #64
	bl	_IS_ALIGNED
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON
Lloh6:
	adrp	x8, _ENETC_RBLENR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENETC_RBLENR@GOTPAGEOFF]
Lloh8:
	ldr	w22, [x8]
	ldr	w0, [x21, #32]
	bl	_ENETC_RTBLENR_LEN
	mov	x3, x0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_enetc_rxbdr_wr
Lloh9:
	adrp	x8, _ENETC_RBBSR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENETC_RBBSR@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
Lloh12:
	adrp	x8, _ENETC_RXB_DMA_SIZE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENETC_RXB_DMA_SIZE@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_enetc_rxbdr_wr
Lloh15:
	adrp	x8, _ENETC_RBPIR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENETC_RBPIR@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w3, #0
	bl	_enetc_rxbdr_wr
Lloh18:
	adrp	x8, _ENETC_RBICIR0@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENETC_RBICIR0@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
Lloh21:
	adrp	x8, _ENETC_RBICIR0_ICEN@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENETC_RBICIR0_ICEN@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	orr	w3, w8, #0x1
	mov	x0, x19
	mov	x1, x20
	bl	_enetc_rxbdr_wr
Lloh24:
	adrp	x8, _ENETC_RBMR_EN@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENETC_RBMR_EN@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	ldr	x9, [x21, #24]
	ldr	w9, [x9]
Lloh27:
	adrp	x10, _NETIF_F_HW_VLAN_CTAG_RX@GOTPAGE
Lloh28:
	ldr	x10, [x10, _NETIF_F_HW_VLAN_CTAG_RX@GOTPAGEOFF]
Lloh29:
	adrp	x11, _ENETC_RBMR_VTE@GOTPAGE
Lloh30:
	ldr	x11, [x11, _ENETC_RBMR_VTE@GOTPAGEOFF]
Lloh31:
	ldr	w10, [x10]
Lloh32:
	ldr	w11, [x11]
	tst	w10, w9
	csel	w9, wzr, w11, eq
	orr	w22, w9, w8
	ldr	x23, [x19]
Lloh33:
	adrp	x8, _RX@GOTPAGE
Lloh34:
	ldr	x8, [x8, _RX@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
Lloh36:
	adrp	x8, _ENETC_RBCIR@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ENETC_RBCIR@GOTPAGEOFF]
Lloh38:
	ldr	w2, [x8]
	mov	x1, x20
	bl	_ENETC_BDR
	add	x8, x0, x23
	ldr	x9, [x19]
Lloh39:
	adrp	x10, _ENETC_SIRXIDR@GOTPAGE
Lloh40:
	ldr	x10, [x10, _ENETC_SIRXIDR@GOTPAGEOFF]
Lloh41:
	ldr	x10, [x10]
	add	x9, x10, x9
	stp	x9, x8, [x21, #8]
	mov	x0, x21
	bl	_enetc_bd_unused
	mov	x1, x0
	mov	x0, x21
	bl	_enetc_refill_rx_ring
Lloh42:
	adrp	x8, _ENETC_RBMR@GOTPAGE
Lloh43:
	ldr	x8, [x8, _ENETC_RBMR@GOTPAGEOFF]
Lloh44:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	x3, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_enetc_rxbdr_wr
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh31
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENETC_RBBAR0,4,2               ; @ENETC_RBBAR0
	.comm	_ENETC_RBBAR1,4,2               ; @ENETC_RBBAR1
	.comm	_ENETC_RBLENR,4,2               ; @ENETC_RBLENR
	.comm	_ENETC_RBBSR,4,2                ; @ENETC_RBBSR
	.comm	_ENETC_RXB_DMA_SIZE,4,2         ; @ENETC_RXB_DMA_SIZE
	.comm	_ENETC_RBPIR,4,2                ; @ENETC_RBPIR
	.comm	_ENETC_RBICIR0,4,2              ; @ENETC_RBICIR0
	.comm	_ENETC_RBICIR0_ICEN,4,2         ; @ENETC_RBICIR0_ICEN
	.comm	_ENETC_RBMR_EN,4,2              ; @ENETC_RBMR_EN
	.comm	_NETIF_F_HW_VLAN_CTAG_RX,4,2    ; @NETIF_F_HW_VLAN_CTAG_RX
	.comm	_ENETC_RBMR_VTE,4,2             ; @ENETC_RBMR_VTE
	.comm	_RX,4,2                         ; @RX
	.comm	_ENETC_RBCIR,4,2                ; @ENETC_RBCIR
	.comm	_ENETC_SIRXIDR,8,3              ; @ENETC_SIRXIDR
	.comm	_ENETC_RBMR,4,2                 ; @ENETC_RBMR
	.comm	_ENETC_RBMR_BDS,4,2             ; @ENETC_RBMR_BDS
	.no_dead_strip	_enetc_setup_rxbdr
.subsections_via_symbols
