	.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
	movq	%rdi, %r12
	movl	(%rsi), %r15d
	testl	%edx, %edx
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	je	LBB0_16
## %bb.1:
	movl	%edx, %r13d
	movl	(%r12), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r15, %r14
	shlq	$4, %r14
	addq	16(%rsi), %r14
	movq	8(%r12), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%r14)
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	decl	%r13d
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	16(%r12), %rax
	movq	%rax, 16(%rsp)
	movups	(%r12), %xmm0
	movups	%xmm0, (%rsp)
	movl	%r15d, %edi
	callq	_E1000_RX_DESC
	movq	%rax, %rbx
	movq	(%r14), %rdi
	callq	_cpu_to_le64
	movl	%eax, (%rbx)
	incl	%r15d
	xorl	%edi, %edi
	cmpl	4(%r12), %r15d
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	movl	$0, %eax
	cmovnel	%eax, %r15d
	movq	%r15, %r14
	shlq	$4, %r14
	addq	16(%r12), %r14
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	testl	%r13d, %r13d
	je	LBB0_16
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 8(%r14)
	jne	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	callq	_e1000_alloc_frag
	testq	%rax, %rax
	je	LBB0_15
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %rbx
	movq	%r12, %rdi
	movq	%rax, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_e1000_check_64k_bound
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rsi
	jmp	LBB0_11
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	_rx_err@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	%rbx, %rcx
	callq	_e_err
	movq	%r12, %rdi
	callq	_e1000_alloc_frag
	testq	%rax, %rax
	je	LBB0_21
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_e1000_check_64k_bound
	testl	%eax, %eax
	je	LBB0_22
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	callq	_skb_free_frag
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r12), %edx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	callq	_dma_map_single
	movq	%rax, (%r14)
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_dma_mapping_error
	testq	%rax, %rax
	jne	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r14), %rsi
	movl	(%r12), %edx
	movq	%r12, %rdi
	callq	_e1000_check_64k_bound
	testl	%eax, %eax
	jne	LBB0_2
## %bb.13:
	movq	_rx_err@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %edx
	movq	(%r14), %rcx
	leaq	L_.str.1(%rip), %rsi
	callq	_e_err
	movq	(%r14), %rsi
	movl	(%r12), %edx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_dma_unmap_single
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_skb_free_frag
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r14)
	jmp	LBB0_15
LBB0_14:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_skb_free_frag
	movq	$0, (%r14)
	jmp	LBB0_15
LBB0_21:
	movq	%rbx, %rdi
	callq	_skb_free_frag
	jmp	LBB0_15
LBB0_22:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_skb_free_frag
	movq	%rbx, %rdi
	callq	_skb_free_frag
	movq	-64(%rbp), %r12                 ## 8-byte Reload
LBB0_15:
	incl	4(%r12)
LBB0_16:
	xorl	%edi, %edi
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	cmpl	%r15d, (%rbx)
	setne	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_20
## %bb.17:
	movl	%r15d, (%rbx)
	xorl	%edi, %edi
	testl	%r15d, %r15d
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	movl	4(%rbx), %r15d
LBB0_19:
	decl	%r15d
	xorl	%eax, %eax
	callq	_dma_wmb
	movq	8(%rbx), %rsi
	addq	16(%r12), %rsi
	movl	%r15d, %edi
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
LBB0_20:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_rx_err,4,2                     ## @rx_err
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"skb align check failed: %u bytes at %p\n"

	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
L_.str.1:                               ## @.str.1
	.asciz	"dma align check failed: %u bytes at %p\n"

	.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, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x20, x0
	ldr	w21, [x1]
	cbz	w2, LBB0_19
; %bb.1:
	mov	x23, x2
	ldr	w24, [x20]
	ldr	x8, [x19, #16]
	add	x28, x8, x21, lsl #4
	ldr	x22, [x20, #8]
Lloh0:
	adrp	x25, _DMA_FROM_DEVICE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _DMA_FROM_DEVICE@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	x26, [x28, #8]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	w23, w23, #1
	ldr	q0, [x19]
	str	q0, [sp]
	ldr	x8, [x19, #16]
	str	x8, [sp, #16]
	mov	x0, sp
	mov	x1, x21
	bl	_E1000_RX_DESC
	mov	x26, x0
	ldr	x0, [x28]
	bl	_cpu_to_le64
	str	w0, [x26]
	add	w8, w21, #1
	ldr	w9, [x19, #4]
	cmp	w8, w9
	cset	w0, eq
	bl	_unlikely
	cmp	x0, #0
	csinc	w21, wzr, w21, ne
	ldr	x8, [x19, #16]
	add	x28, x8, w21, uxtw #4
	cbz	w23, LBB0_19
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x28, #8]
	cbnz	x8, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_e1000_alloc_frag
	cbz	x0, LBB0_18
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x27, x0
	mov	x0, x20
	mov	x1, x27
	mov	x2, x24
	bl	_e1000_check_64k_bound
	cbz	w0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x26, x27
	b	LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh2:
	adrp	x8, _rx_err@GOTPAGE
Lloh3:
	ldr	x8, [x8, _rx_err@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x24
	mov	x3, x27
	bl	_e_err
	mov	x0, x20
	bl	_e1000_alloc_frag
	cbz	x0, LBB0_17
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x26, x0
	mov	x0, x20
	mov	x1, x26
	mov	x2, x24
	bl	_e1000_check_64k_bound
	cbz	w0, LBB0_16
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x27
	bl	_skb_free_frag
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w2, [x20]
	ldr	w3, [x25]
	mov	x0, x22
	mov	x1, x26
	bl	_dma_map_single
	mov	x1, x0
	str	x0, [x28]
	mov	x0, x22
	bl	_dma_mapping_error
	cbnz	x0, LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [x28]
	ldr	w2, [x20]
	mov	x0, x20
	bl	_e1000_check_64k_bound
	cbnz	w0, LBB0_2
; %bb.13:
Lloh7:
	adrp	x8, _rx_err@GOTPAGE
Lloh8:
	ldr	x8, [x8, _rx_err@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	ldr	w2, [x20]
	ldr	x3, [x28]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_e_err
	ldr	x1, [x28]
	ldr	w2, [x20]
	ldr	w3, [x25]
	mov	x0, x22
	bl	_dma_unmap_single
	mov	x0, x26
	bl	_skb_free_frag
	str	xzr, [x28, #8]
	b	LBB0_15
LBB0_14:
	mov	x0, x26
	bl	_skb_free_frag
LBB0_15:
	str	xzr, [x28]
	b	LBB0_18
LBB0_16:
	mov	x0, x26
	bl	_skb_free_frag
LBB0_17:
	mov	x0, x27
	bl	_skb_free_frag
LBB0_18:
	ldr	w8, [x20, #4]
	add	w8, w8, #1
	str	w8, [x20, #4]
LBB0_19:
	ldr	w8, [x19]
	cmp	w8, w21
	cset	w0, ne
	bl	_likely
	cbz	x0, LBB0_23
; %bb.20:
	str	w21, [x19]
	cmp	w21, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_22
; %bb.21:
	ldr	w21, [x19, #4]
LBB0_22:
	sub	w21, w21, #1
	bl	_dma_wmb
	ldr	x8, [x20, #16]
	ldr	x9, [x19, #8]
	add	x1, x9, x8
	mov	x0, x21
	bl	_writel
LBB0_23:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_rx_err,4,2                     ; @rx_err
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"skb align check failed: %u bytes at %p\n"

	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
l_.str.1:                               ; @.str.1
	.asciz	"dma align check failed: %u bytes at %p\n"

	.no_dead_strip	_e1000_alloc_rx_buffers
.subsections_via_symbols
