	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fm10k_configure_rx_ring
_fm10k_configure_rx_ring:               ## @fm10k_configure_rx_ring
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	leaq	24(%rdi), %r15
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movl	(%rsi), %r13d
	movl	4(%rsi), %eax
	shll	$2, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_FM10K_RXDCTL_WRITE_BACK_MIN_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	_FM10K_SRRCTL_BUFFER_CHAINING_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_FM10K_INT_MAP_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	(%rdi), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	8(%rsi), %r14d
	movl	%r14d, %edi
	callq	_FM10K_RXQCTL
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_fm10k_read_reg
	movq	_FM10K_RXQCTL_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	notl	%r12d
	andl	%eax, %r12d
	movl	%r14d, %edi
	callq	_FM10K_RXQCTL
	movq	%r15, %rdi
	movq	%rax, %rsi
	movl	%r12d, %edx
	callq	_fm10k_write_reg
	movq	%r15, %rdi
	callq	_fm10k_write_flush
	movl	%r14d, %edi
	callq	_FM10K_RDBAL
	movq	%rax, %r12
	movl	$32, %edi
	callq	_DMA_BIT_MASK
	andl	%eax, %r13d
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%r13d, %edx
	movq	%rbx, %r13
	callq	_fm10k_write_reg
	movl	%r14d, %edi
	callq	_FM10K_RDBAH
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_fm10k_write_reg
	movl	%r14d, %edi
	callq	_FM10K_RDLEN
	movq	%r15, %rdi
	movq	%rax, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_fm10k_write_reg
	movl	%r14d, %edi
	callq	_FM10K_RDH
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_fm10k_write_reg
	movl	%r14d, %edi
	callq	_FM10K_RDT
	movq	%r15, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_fm10k_write_reg
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rbx
	movl	%r14d, %edi
	callq	_FM10K_RDT
	leaq	(%rbx,%rax,4), %rax
	movq	%rax, 56(%r13)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%r13)
	movq	$0, 48(%r13)
	movq	_FM10K_RX_BUFSZ@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_FM10K_SRRCTL_BSIZEPKT_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %ebx
	orl	-48(%rbp), %ebx                 ## 4-byte Folded Reload
	movq	_FM10K_SRRCTL_LOOPBACK_SUPPRESS@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	%r14d, %edi
	callq	_FM10K_SRRCTL
	movq	%r15, %rdi
	movq	%rax, %rsi
	movl	%ebx, %edx
	callq	_fm10k_write_reg
	movl	28(%r13), %edi
	callq	_BIT
	testl	%eax, -52(%rbp)                 ## 4-byte Folded Reload
	jne	LBB0_2
## %bb.1:
	movq	_FM10K_RXDCTL_DROP_ON_EMPTY@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_2:
	orl	-56(%rbp), %r12d                ## 4-byte Folded Reload
	movl	%r14d, %edi
	callq	_FM10K_RXDCTL
	movq	%r15, %rdi
	movq	%rax, %rsi
	movl	%r12d, %edx
	callq	_fm10k_write_reg
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	24(%rax), %edi
	movl	%edi, 24(%r13)
	movl	8(%rax), %esi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_FM10K_VLAN_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 24(%r13)
LBB0_4:
	movq	16(%r13), %rax
	testq	%rax, %rax
	movl	-60(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_6
## %bb.5:
	movq	_NON_Q_VECTORS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	addl	(%rax), %ebx
	movq	_FM10K_INT_MAP_TIMER1@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
LBB0_6:
	movl	%r14d, %edi
	callq	_FM10K_RXINT
	movq	%r15, %rdi
	movq	%rax, %rsi
	movl	%ebx, %edx
	callq	_fm10k_write_reg
	movl	%r14d, %edi
	callq	_FM10K_RXQCTL
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_fm10k_read_reg
	movl	%eax, %ebx
	movq	_FM10K_RXQCTL_ENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	%r14d, %edi
	callq	_FM10K_RXQCTL
	movq	%r15, %rdi
	movq	%rax, %rsi
	movl	%ebx, %edx
	callq	_fm10k_write_reg
	movq	%r13, %rdi
	callq	_fm10k_desc_unused
	movq	%r13, %rdi
	movl	%eax, %esi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fm10k_alloc_rx_buffers         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FM10K_RXDCTL_WRITE_BACK_MIN_DELAY,4,2 ## @FM10K_RXDCTL_WRITE_BACK_MIN_DELAY
	.comm	_FM10K_SRRCTL_BUFFER_CHAINING_EN,4,2 ## @FM10K_SRRCTL_BUFFER_CHAINING_EN
	.comm	_FM10K_INT_MAP_DISABLE,4,2      ## @FM10K_INT_MAP_DISABLE
	.comm	_FM10K_RXQCTL_ENABLE,4,2        ## @FM10K_RXQCTL_ENABLE
	.comm	_FM10K_RX_BUFSZ,4,2             ## @FM10K_RX_BUFSZ
	.comm	_FM10K_SRRCTL_BSIZEPKT_SHIFT,4,2 ## @FM10K_SRRCTL_BSIZEPKT_SHIFT
	.comm	_FM10K_SRRCTL_LOOPBACK_SUPPRESS,4,2 ## @FM10K_SRRCTL_LOOPBACK_SUPPRESS
	.comm	_FM10K_RXDCTL_DROP_ON_EMPTY,4,2 ## @FM10K_RXDCTL_DROP_ON_EMPTY
	.comm	_FM10K_VLAN_CLEAR,4,2           ## @FM10K_VLAN_CLEAR
	.comm	_NON_Q_VECTORS,4,2              ## @NON_Q_VECTORS
	.comm	_FM10K_INT_MAP_TIMER1,4,2       ## @FM10K_INT_MAP_TIMER1
	.no_dead_strip	_fm10k_configure_rx_ring
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fm10k_configure_rx_ring
_fm10k_configure_rx_ring:               ; @fm10k_configure_rx_ring
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x23, x0
	add	x20, x0, #24
	ldp	w27, w8, [x1]
	lsl	w24, w8, #2
Lloh0:
	adrp	x8, _FM10K_RXDCTL_WRITE_BACK_MIN_DELAY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FM10K_RXDCTL_WRITE_BACK_MIN_DELAY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
Lloh3:
	adrp	x8, _FM10K_SRRCTL_BUFFER_CHAINING_EN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FM10K_SRRCTL_BUFFER_CHAINING_EN@GOTPAGEOFF]
Lloh5:
	ldr	w26, [x8]
Lloh6:
	adrp	x8, _FM10K_INT_MAP_DISABLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FM10K_INT_MAP_DISABLE@GOTPAGEOFF]
Lloh8:
	ldr	w22, [x8]
	ldr	w28, [x0]
	ldr	w21, [x1, #8]
	mov	x0, x21
	bl	_FM10K_RXQCTL
	mov	x1, x0
	mov	x0, x20
	bl	_fm10k_read_reg
Lloh9:
	adrp	x8, _FM10K_RXQCTL_ENABLE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FM10K_RXQCTL_ENABLE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	bic	w25, w0, w8
	mov	x0, x21
	bl	_FM10K_RXQCTL
	mov	x1, x0
	mov	x0, x20
	mov	x2, x25
	bl	_fm10k_write_reg
	mov	x0, x20
	bl	_fm10k_write_flush
	mov	x0, x21
	bl	_FM10K_RDBAL
	mov	x25, x0
	mov	w0, #32
	bl	_DMA_BIT_MASK
	and	w2, w0, w27
	mov	x0, x20
	mov	x1, x25
	bl	_fm10k_write_reg
	mov	x0, x21
	bl	_FM10K_RDBAH
	mov	x1, x0
	mov	x0, x20
	bl	_fm10k_write_reg
	mov	x0, x21
	bl	_FM10K_RDLEN
	mov	x1, x0
	mov	x0, x20
	mov	x2, x24
	bl	_fm10k_write_reg
	mov	x0, x21
	bl	_FM10K_RDH
	mov	x1, x0
	mov	x0, x20
	mov	w2, #0
	bl	_fm10k_write_reg
	mov	x0, x21
	bl	_FM10K_RDT
	mov	x1, x0
	mov	x0, x20
	mov	w2, #0
	bl	_fm10k_write_reg
	ldr	x24, [x23, #16]
	mov	x0, x21
	bl	_FM10K_RDT
	add	x8, x24, x0, lsl #2
	stp	xzr, x8, [x19, #48]
	stp	xzr, xzr, [x19, #32]
Lloh12:
	adrp	x8, _FM10K_RX_BUFSZ@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FM10K_RX_BUFSZ@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _FM10K_SRRCTL_BSIZEPKT_SHIFT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _FM10K_SRRCTL_BSIZEPKT_SHIFT@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	asr	w8, w8, w9
	orr	w8, w8, w26
Lloh18:
	adrp	x9, _FM10K_SRRCTL_LOOPBACK_SUPPRESS@GOTPAGE
Lloh19:
	ldr	x9, [x9, _FM10K_SRRCTL_LOOPBACK_SUPPRESS@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w24, w8, w9
	mov	x0, x21
	bl	_FM10K_SRRCTL
	mov	x1, x0
	mov	x0, x20
	mov	x2, x24
	bl	_fm10k_write_reg
	ldr	w0, [x19, #28]
	bl	_BIT
Lloh21:
	adrp	x8, _FM10K_RXDCTL_DROP_ON_EMPTY@GOTPAGE
Lloh22:
	ldr	x8, [x8, _FM10K_RXDCTL_DROP_ON_EMPTY@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	tst	w0, w28
	csel	w8, w8, wzr, eq
	ldr	w9, [sp, #12]                   ; 4-byte Folded Reload
	orr	w24, w8, w9
	mov	x0, x21
	bl	_FM10K_RXDCTL
	mov	x1, x0
	mov	x0, x20
	mov	x2, x24
	bl	_fm10k_write_reg
	ldr	w0, [x23, #24]
	str	w0, [x19, #24]
	ldr	w1, [x23, #8]
	bl	_test_bit
	cbz	x0, LBB0_2
; %bb.1:
Lloh24:
	adrp	x8, _FM10K_VLAN_CLEAR@GOTPAGE
Lloh25:
	ldr	x8, [x8, _FM10K_VLAN_CLEAR@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	ldr	w9, [x19, #24]
	orr	w8, w9, w8
	str	w8, [x19, #24]
LBB0_2:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _NON_Q_VECTORS@GOTPAGE
Lloh28:
	ldr	x9, [x9, _NON_Q_VECTORS@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
Lloh30:
	adrp	x10, _FM10K_INT_MAP_TIMER1@GOTPAGE
Lloh31:
	ldr	x10, [x10, _FM10K_INT_MAP_TIMER1@GOTPAGEOFF]
Lloh32:
	ldr	w10, [x10]
	add	w8, w9, w8
	orr	w22, w8, w10
LBB0_4:
	mov	x0, x21
	bl	_FM10K_RXINT
	mov	x1, x0
	mov	x0, x20
	mov	x2, x22
	bl	_fm10k_write_reg
	mov	x0, x21
	bl	_FM10K_RXQCTL
	mov	x1, x0
	mov	x0, x20
	bl	_fm10k_read_reg
Lloh33:
	adrp	x8, _FM10K_RXQCTL_ENABLE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _FM10K_RXQCTL_ENABLE@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	orr	w22, w8, w0
	mov	x0, x21
	bl	_FM10K_RXQCTL
	mov	x1, x0
	mov	x0, x20
	mov	x2, x22
	bl	_fm10k_write_reg
	mov	x0, x19
	bl	_fm10k_desc_unused
	mov	x1, x0
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_fm10k_alloc_rx_buffers
	.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
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_FM10K_RXDCTL_WRITE_BACK_MIN_DELAY,4,2 ; @FM10K_RXDCTL_WRITE_BACK_MIN_DELAY
	.comm	_FM10K_SRRCTL_BUFFER_CHAINING_EN,4,2 ; @FM10K_SRRCTL_BUFFER_CHAINING_EN
	.comm	_FM10K_INT_MAP_DISABLE,4,2      ; @FM10K_INT_MAP_DISABLE
	.comm	_FM10K_RXQCTL_ENABLE,4,2        ; @FM10K_RXQCTL_ENABLE
	.comm	_FM10K_RX_BUFSZ,4,2             ; @FM10K_RX_BUFSZ
	.comm	_FM10K_SRRCTL_BSIZEPKT_SHIFT,4,2 ; @FM10K_SRRCTL_BSIZEPKT_SHIFT
	.comm	_FM10K_SRRCTL_LOOPBACK_SUPPRESS,4,2 ; @FM10K_SRRCTL_LOOPBACK_SUPPRESS
	.comm	_FM10K_RXDCTL_DROP_ON_EMPTY,4,2 ; @FM10K_RXDCTL_DROP_ON_EMPTY
	.comm	_FM10K_VLAN_CLEAR,4,2           ; @FM10K_VLAN_CLEAR
	.comm	_NON_Q_VECTORS,4,2              ; @NON_Q_VECTORS
	.comm	_FM10K_INT_MAP_TIMER1,4,2       ; @FM10K_INT_MAP_TIMER1
	.no_dead_strip	_fm10k_configure_rx_ring
.subsections_via_symbols
