	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_igb_configure_rx_ring          ## -- Begin function igb_configure_rx_ring
	.p2align	4, 0x90
_igb_configure_rx_ring:                 ## @igb_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
	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
	movl	(%rsi), %ebx
	movl	4(%rsi), %r14d
	movl	%r14d, %edi
	callq	_E1000_RXDCTL
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_wr32
	movl	%r14d, %edi
	callq	_E1000_RDBAL
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_wr32
	movl	%r14d, %edi
	callq	_E1000_RDBAH
	movl	%eax, %edi
	callq	_wr32
	movl	%r14d, %edi
	callq	_E1000_RDLEN
	movl	8(%r12), %esi
	shll	$3, %esi
	movl	%eax, %edi
	callq	_wr32
	movq	16(%r15), %rbx
	movl	%r14d, %edi
	callq	_E1000_RDT
	addq	%rbx, %rax
	movq	%rax, 16(%r12)
	movl	%r14d, %edi
	callq	_E1000_RDH
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_wr32
	movq	16(%r12), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	_IGB_RX_HDR_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_E1000_SRRCTL_BSIZEHDRSIZE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r13d
	movq	%r12, %rdi
	callq	_ring_uses_large_buffer
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	_IGB_RXBUFFER_2048@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_IGB_RXBUFFER_3072@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %ebx
	movq	_E1000_SRRCTL_BSIZEPKT_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %ebx
	orl	%r13d, %ebx
	movq	_E1000_SRRCTL_DESCTYPE_ADV_ONEBUF@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	24(%r15), %rax
	movq	_e1000_82580@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	$0, %eax
	jl	LBB0_5
## %bb.4:
	movq	_E1000_SRRCTL_TIMESTAMP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_5:
	orl	%eax, %ebx
	cmpq	$0, 8(%r15)
	jne	LBB0_7
## %bb.6:
	cmpl	$2, (%r15)
	jl	LBB0_8
LBB0_7:
	movq	_E1000_SRRCTL_DROP_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
LBB0_8:
	movl	%r14d, %edi
	callq	_E1000_SRRCTL
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_wr32
	movl	%r14d, %esi
	andl	$7, %esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_igb_set_vmolr
	movq	_IGB_RX_PTHRESH@GOTPCREL(%rip), %rax
	movq	_IGB_RX_HTHRESH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	shll	$8, %ecx
	orl	(%rax), %ecx
	movq	_IGB_RX_WTHRESH@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	shll	$16, %ebx
	orl	%ecx, %ebx
	movl	8(%r12), %edx
	movl	12(%r12), %edi
	shll	$2, %edx
	xorl	%esi, %esi
	callq	_memset
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_IGB_RX_DESC
	movq	$0, (%rax)
	movq	_E1000_RXDCTL_QUEUE_ENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	%r14d, %edi
	callq	_E1000_RXDCTL
	movl	%eax, %edi
	movl	%ebx, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wr32                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IGB_RX_HDR_LEN,4,2             ## @IGB_RX_HDR_LEN
	.comm	_E1000_SRRCTL_BSIZEHDRSIZE_SHIFT,4,2 ## @E1000_SRRCTL_BSIZEHDRSIZE_SHIFT
	.comm	_IGB_RXBUFFER_3072,4,2          ## @IGB_RXBUFFER_3072
	.comm	_E1000_SRRCTL_BSIZEPKT_SHIFT,4,2 ## @E1000_SRRCTL_BSIZEPKT_SHIFT
	.comm	_IGB_RXBUFFER_2048,4,2          ## @IGB_RXBUFFER_2048
	.comm	_E1000_SRRCTL_DESCTYPE_ADV_ONEBUF,4,2 ## @E1000_SRRCTL_DESCTYPE_ADV_ONEBUF
	.comm	_e1000_82580,8,3                ## @e1000_82580
	.comm	_E1000_SRRCTL_TIMESTAMP,4,2     ## @E1000_SRRCTL_TIMESTAMP
	.comm	_E1000_SRRCTL_DROP_EN,4,2       ## @E1000_SRRCTL_DROP_EN
	.comm	_IGB_RX_PTHRESH,4,2             ## @IGB_RX_PTHRESH
	.comm	_IGB_RX_HTHRESH,4,2             ## @IGB_RX_HTHRESH
	.comm	_IGB_RX_WTHRESH,4,2             ## @IGB_RX_WTHRESH
	.comm	_E1000_RXDCTL_QUEUE_ENABLE,4,2  ## @E1000_RXDCTL_QUEUE_ENABLE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_igb_configure_rx_ring          ; -- Begin function igb_configure_rx_ring
	.p2align	2
_igb_configure_rx_ring:                 ; @igb_configure_rx_ring
	.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, x1
	mov	x21, x0
	ldp	w22, w19, [x1]
	mov	x0, x19
	bl	_E1000_RXDCTL
	mov	w1, #0
	bl	_wr32
	mov	x0, x19
	bl	_E1000_RDBAL
	mov	x1, x22
	bl	_wr32
	mov	x0, x19
	bl	_E1000_RDBAH
	bl	_wr32
	mov	x0, x19
	bl	_E1000_RDLEN
	ldr	w8, [x20, #8]
	lsl	w1, w8, #3
	bl	_wr32
	ldr	x22, [x21, #16]
	mov	x0, x19
	bl	_E1000_RDT
	add	x8, x0, x22
	str	x8, [x20, #16]
	mov	x0, x19
	bl	_E1000_RDH
	mov	w1, #0
	bl	_wr32
	ldr	x1, [x20, #16]
	mov	w0, #0
	bl	_writel
Lloh0:
	adrp	x8, _IGB_RX_HDR_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IGB_RX_HDR_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _E1000_SRRCTL_BSIZEHDRSIZE_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _E1000_SRRCTL_BSIZEHDRSIZE_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	lsl	w22, w8, w9
	mov	x0, x20
	bl	_ring_uses_large_buffer
Lloh6:
	adrp	x8, _IGB_RXBUFFER_2048@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IGB_RXBUFFER_2048@GOTPAGEOFF]
Lloh8:
	adrp	x9, _IGB_RXBUFFER_3072@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IGB_RXBUFFER_3072@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _E1000_SRRCTL_BSIZEPKT_SHIFT@GOTPAGE
Lloh11:
	ldr	x9, [x9, _E1000_SRRCTL_BSIZEPKT_SHIFT@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	asr	w8, w8, w9
	orr	w8, w8, w22
Lloh13:
	adrp	x9, _E1000_SRRCTL_DESCTYPE_ADV_ONEBUF@GOTPAGE
Lloh14:
	ldr	x9, [x9, _E1000_SRRCTL_DESCTYPE_ADV_ONEBUF@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	x9, [x21, #24]
Lloh16:
	adrp	x10, _e1000_82580@GOTPAGE
Lloh17:
	ldr	x10, [x10, _e1000_82580@GOTPAGEOFF]
Lloh18:
	adrp	x11, _E1000_SRRCTL_TIMESTAMP@GOTPAGE
Lloh19:
	ldr	x11, [x11, _E1000_SRRCTL_TIMESTAMP@GOTPAGEOFF]
Lloh20:
	ldr	x10, [x10]
Lloh21:
	ldr	w11, [x11]
	cmp	x9, x10
	csel	w9, wzr, w11, lt
	orr	w22, w8, w9
	ldr	x8, [x21, #8]
	cbnz	x8, LBB0_2
; %bb.1:
	ldr	w8, [x21]
	cmp	w8, #2
	b.lt	LBB0_3
LBB0_2:
Lloh22:
	adrp	x8, _E1000_SRRCTL_DROP_EN@GOTPAGE
Lloh23:
	ldr	x8, [x8, _E1000_SRRCTL_DROP_EN@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	orr	w22, w8, w22
LBB0_3:
	mov	x0, x19
	bl	_E1000_SRRCTL
	mov	x1, x22
	bl	_wr32
	and	w1, w19, #0x7
	mov	x0, x21
	mov	w2, #1
	bl	_igb_set_vmolr
Lloh25:
	adrp	x8, _IGB_RX_PTHRESH@GOTPAGE
Lloh26:
	ldr	x8, [x8, _IGB_RX_PTHRESH@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
Lloh28:
	adrp	x9, _IGB_RX_HTHRESH@GOTPAGE
Lloh29:
	ldr	x9, [x9, _IGB_RX_HTHRESH@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
Lloh31:
	adrp	x10, _IGB_RX_WTHRESH@GOTPAGE
Lloh32:
	ldr	x10, [x10, _IGB_RX_WTHRESH@GOTPAGEOFF]
	orr	w8, w8, w9, lsl #8
Lloh33:
	ldr	w9, [x10]
	orr	w21, w8, w9, lsl #16
	ldp	w8, w0, [x20, #8]
	lsl	w2, w8, #2
	mov	w1, #0
	bl	_memset
	mov	x0, x20
	mov	w1, #0
	bl	_IGB_RX_DESC
	str	xzr, [x0]
Lloh34:
	adrp	x8, _E1000_RXDCTL_QUEUE_ENABLE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _E1000_RXDCTL_QUEUE_ENABLE@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	orr	w20, w21, w8
	mov	x0, x19
	bl	_E1000_RXDCTL
	mov	x1, x20
	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
	b	_wr32
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh20
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_IGB_RX_HDR_LEN,4,2             ; @IGB_RX_HDR_LEN
	.comm	_E1000_SRRCTL_BSIZEHDRSIZE_SHIFT,4,2 ; @E1000_SRRCTL_BSIZEHDRSIZE_SHIFT
	.comm	_IGB_RXBUFFER_3072,4,2          ; @IGB_RXBUFFER_3072
	.comm	_E1000_SRRCTL_BSIZEPKT_SHIFT,4,2 ; @E1000_SRRCTL_BSIZEPKT_SHIFT
	.comm	_IGB_RXBUFFER_2048,4,2          ; @IGB_RXBUFFER_2048
	.comm	_E1000_SRRCTL_DESCTYPE_ADV_ONEBUF,4,2 ; @E1000_SRRCTL_DESCTYPE_ADV_ONEBUF
	.comm	_e1000_82580,8,3                ; @e1000_82580
	.comm	_E1000_SRRCTL_TIMESTAMP,4,2     ; @E1000_SRRCTL_TIMESTAMP
	.comm	_E1000_SRRCTL_DROP_EN,4,2       ; @E1000_SRRCTL_DROP_EN
	.comm	_IGB_RX_PTHRESH,4,2             ; @IGB_RX_PTHRESH
	.comm	_IGB_RX_HTHRESH,4,2             ; @IGB_RX_HTHRESH
	.comm	_IGB_RX_WTHRESH,4,2             ; @IGB_RX_WTHRESH
	.comm	_E1000_RXDCTL_QUEUE_ENABLE,4,2  ; @E1000_RXDCTL_QUEUE_ENABLE
.subsections_via_symbols
