	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_alloc_rx_buffers
_e1000_alloc_rx_buffers:                ## @e1000_alloc_rx_buffers
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r14
	movl	(%rdi), %r13d
	testl	%esi, %esi
	je	LBB0_14
## %bb.1:
	movl	%esi, %r12d
	movq	24(%r14), %rax
	movq	24(%rax), %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	(%rax), %ecx
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	%r13, %rbx
	shlq	$4, %rbx
	addq	8(%r14), %rbx
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	16(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%r14), %esi
	movl	%r13d, %edi
	callq	_writel
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	%r13d
	cmpl	4(%r14), %r13d
	movl	$0, %eax
	cmovel	%eax, %r13d
	movq	%r13, %rbx
	shlq	$4, %rbx
	addq	8(%r14), %rbx
	testl	%r12d, %r12d
	je	LBB0_14
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %r15
	testq	%r15, %r15
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_skb_trim
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	callq	___netdev_alloc_skb_ip_align
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r15
	movq	%rax, 8(%rbx)
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %esi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_dma_map_single
	movl	%eax, (%rbx)
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_dma_mapping_error
	testq	%rax, %rax
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	decl	%r12d
	movups	(%r14), %xmm0
	movups	16(%r14), %xmm1
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	%r13d, %edi
	callq	_E1000_RX_DESC_EXT
	movq	%rax, %r15
	movl	(%rbx), %edi
	callq	_cpu_to_le64
	movl	%eax, (%r15)
	movq	_E1000_RX_BUFFER_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	decl	%eax
	xorl	%edi, %edi
	testl	%r13d, %eax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_wmb
	movq	_FLAG2_PCIM2PCI_ARBITER_WA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	testl	%eax, 4(%rcx)
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_e1000e_update_rdt_wa
	jmp	LBB0_13
LBB0_8:
	leaq	L_.str(%rip), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_err
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	incl	8(%rax)
	jmp	LBB0_14
LBB0_5:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	incl	12(%rax)
LBB0_14:
	movl	%r13d, (%r14)
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Rx DMA map failed\n"

	.comm	_E1000_RX_BUFFER_WRITE,4,2      ## @E1000_RX_BUFFER_WRITE
	.comm	_FLAG2_PCIM2PCI_ARBITER_WA,4,2  ## @FLAG2_PCIM2PCI_ARBITER_WA
	.no_dead_strip	_e1000_alloc_rx_buffers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e1000_alloc_rx_buffers
_e1000_alloc_rx_buffers:                ; @e1000_alloc_rx_buffers
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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, x0
	ldr	w20, [x0]
	cbz	w1, LBB0_14
; %bb.1:
	mov	x21, x2
	mov	x22, x1
	ldr	x27, [x19, #24]
	ldr	w8, [x27]
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	ldr	x8, [x19, #8]
	add	x25, x8, x20, lsl #4
	ldp	x24, x8, [x27, #16]
	str	x8, [sp]                        ; 8-byte Folded Spill
Lloh0:
	adrp	x28, _DMA_FROM_DEVICE@GOTPAGE
Lloh1:
	ldr	x28, [x28, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh2:
	adrp	x23, _E1000_RX_BUFFER_WRITE@GOTPAGE
Lloh3:
	ldr	x23, [x23, _E1000_RX_BUFFER_WRITE@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x19, #16]
	mov	x0, x20
	bl	_writel
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w8, w20, #1
	ldr	w9, [x19, #4]
	cmp	w8, w9
	csinc	w20, wzr, w20, eq
	ldr	x8, [x19, #8]
	add	x25, x8, w20, uxtw #4
	cbz	w22, LBB0_14
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x26, [x25, #8]
	cbz	x26, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x26
	mov	w1, #0
	bl	_skb_trim
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	ldr	w1, [sp, #12]                   ; 4-byte Folded Reload
	mov	x2, x21
	bl	___netdev_alloc_skb_ip_align
	cbz	x0, LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x26, x0
	str	x0, [x25, #8]
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x26]
	ldr	w2, [x27]
	ldr	w3, [x28]
	mov	x0, x24
	bl	_dma_map_single
	mov	x1, x0
	str	w0, [x25]
	mov	x0, x24
	bl	_dma_mapping_error
	cbnz	x0, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	w22, w22, #1
	ldp	q0, q1, [x19]
	stp	q0, q1, [sp, #16]
	add	x0, sp, #16
	mov	x1, x20
	bl	_E1000_RX_DESC_EXT
	mov	x26, x0
	ldr	w0, [x25]
	bl	_cpu_to_le64
	str	w0, [x26]
	ldr	w8, [x23]
	sub	w8, w8, #1
	tst	w8, w20
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_3
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	bl	_wmb
	ldr	w8, [x27, #4]
Lloh4:
	adrp	x9, _FLAG2_PCIM2PCI_ARBITER_WA@GOTPAGE
Lloh5:
	ldr	x9, [x9, _FLAG2_PCIM2PCI_ARBITER_WA@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_e1000e_update_rdt_wa
	b	LBB0_3
LBB0_12:
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x24
	bl	_dev_err
	ldr	w8, [x27, #8]
	add	w8, w8, #1
	str	w8, [x27, #8]
	b	LBB0_14
LBB0_13:
	ldr	w8, [x27, #12]
	add	w8, w8, #1
	str	w8, [x27, #12]
LBB0_14:
	str	w20, [x19]
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Rx DMA map failed\n"

	.comm	_E1000_RX_BUFFER_WRITE,4,2      ; @E1000_RX_BUFFER_WRITE
	.comm	_FLAG2_PCIM2PCI_ARBITER_WA,4,2  ; @FLAG2_PCIM2PCI_ARBITER_WA
	.no_dead_strip	_e1000_alloc_rx_buffers
.subsections_via_symbols
