	.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	%rsi, %r12
	movl	(%rsi), %r15d
	testl	%edx, %edx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_19
## %bb.1:
	movl	%edx, %r13d
	movq	16(%rdi), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	leaq	(%r15,%r15,2), %rbx
	shlq	$3, %rbx
	addq	16(%r12), %rbx
	movq	8(%rdi), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rbx), %r12
	testq	%r12, %r12
	movl	%r13d, -64(%rbp)                ## 4-byte Spill
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_skb_trim
	movl	(%rbx), %edx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	-60(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %esi
	callq	_netdev_alloc_skb_ip_align
	movq	%rax, %r12
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jne	LBB0_18
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rsi
	movl	%r14d, %edx
	callq	_e1000_check_64k_bound
	testl	%eax, %eax
	jne	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_rx_err@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	(%r12), %rcx
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	callq	_e_err
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	callq	_netdev_alloc_skb_ip_align
	testq	%rax, %rax
	je	LBB0_16
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r12
	movq	(%rax), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %edx
	callq	_e1000_check_64k_bound
	testl	%eax, %eax
	je	LBB0_15
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_kfree_skb
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, 16(%rbx)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	movl	%edx, (%rbx)
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rsi
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_dma_map_single
	leaq	8(%rbx), %r14
	movq	%rax, 8(%rbx)
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_dma_mapping_error
	testq	%rax, %rax
	jne	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r14), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	(%rdi), %edx
	callq	_e1000_check_64k_bound
	testl	%eax, %eax
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	-64(%rbp), %r13d                ## 4-byte Reload
	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
	leaq	(%r15,%r15,2), %rbx
	shlq	$3, %rbx
	addq	16(%r12), %rbx
	testl	%r13d, %r13d
	jne	LBB0_2
	jmp	LBB0_19
LBB0_13:
	movq	%r12, %rdi
	callq	_dev_kfree_skb
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r14)
	jmp	LBB0_17
LBB0_14:
	movq	_rx_err@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movl	(%r14), %edx
	movq	8(%rbx), %rcx
	leaq	L_.str.1(%rip), %rsi
	callq	_e_err
	movq	%r12, %rdi
	callq	_dev_kfree_skb
	movq	$0, 16(%rbx)
	movq	8(%rbx), %rsi
	movl	(%r14), %edx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_dma_unmap_single
	movq	%r14, %rdi
	movq	$0, 8(%rbx)
	jmp	LBB0_18
LBB0_15:
	movq	%r12, %rdi
	callq	_dev_kfree_skb
LBB0_16:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_kfree_skb
LBB0_17:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_18:
	incl	4(%rdi)
	movq	-80(%rbp), %r12                 ## 8-byte Reload
LBB0_19:
	xorl	%edi, %edi
	cmpl	%r15d, (%r12)
	setne	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_23
## %bb.20:
	movl	%r15d, (%r12)
	xorl	%edi, %edi
	testl	%r15d, %r15d
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:
	movl	4(%r12), %r15d
LBB0_22:
	decl	%r15d
	xorl	%eax, %eax
	callq	_wmb
	movq	8(%r12), %rsi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	24(%rax), %rsi
	movl	%r15d, %edi
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
LBB0_23:
	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]
	mov	w9, #24
	madd	x26, x21, x9, x8
	ldp	x22, x25, [x20, #8]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x27, [x26, #16]
	cbz	x27, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x27
	mov	w1, #0
	bl	_skb_trim
	ldr	w2, [x26]
	b	LBB0_11
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x25
	mov	x1, x24
	bl	_netdev_alloc_skb_ip_align
	mov	x28, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_18
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x1, [x28]
	mov	x0, x20
	mov	x2, x24
	bl	_e1000_check_64k_bound
	cbz	w0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x27, x28
	b	LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
Lloh0:
	adrp	x8, _rx_err@GOTPAGE
Lloh1:
	ldr	x8, [x8, _rx_err@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	x3, [x28]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x24
	bl	_e_err
	mov	x0, x25
	mov	x1, x24
	bl	_netdev_alloc_skb_ip_align
	cbz	x0, LBB0_17
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x27, x0
	ldr	x1, [x0]
	mov	x0, x20
	mov	x2, x24
	bl	_e1000_check_64k_bound
	cbz	w0, LBB0_16
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x28
	bl	_dev_kfree_skb
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	str	x27, [x26, #16]
	ldr	w2, [x20]
	str	w2, [x26]
LBB0_11:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x1, [x27]
Lloh5:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	mov	x0, x22
	bl	_dma_map_single
	mov	x1, x0
	mov	x28, x26
	str	x0, [x28, #8]!
	mov	x0, x22
	bl	_dma_mapping_error
	cbnz	x0, LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x1, [x28]
	ldr	w2, [x20]
	mov	x0, x20
	bl	_e1000_check_64k_bound
	cbz	w0, LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_2 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	x27, x0
	ldr	x0, [x28]
	bl	_cpu_to_le64
	str	w0, [x27]
	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]
	mov	w9, #24
	umaddl	x26, w21, w9, x8
	cbnz	w23, LBB0_2
	b	LBB0_19
LBB0_14:
	mov	x0, x27
	bl	_dev_kfree_skb
	stp	xzr, xzr, [x28]
	b	LBB0_18
LBB0_15:
Lloh8:
	adrp	x8, _rx_err@GOTPAGE
Lloh9:
	ldr	x8, [x8, _rx_err@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldr	w2, [x20]
	ldr	x3, [x26, #8]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_e_err
	mov	x0, x27
	bl	_dev_kfree_skb
	str	xzr, [x26, #16]
	ldr	x1, [x26, #8]
	ldr	w2, [x20]
Lloh13:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh15:
	ldr	w3, [x8]
	mov	x0, x22
	bl	_dma_unmap_single
	str	xzr, [x26, #8]
	b	LBB0_18
LBB0_16:
	mov	x0, x27
	bl	_dev_kfree_skb
LBB0_17:
	mov	x0, x28
	bl	_dev_kfree_skb
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	_wmb
	ldr	x8, [x20, #24]
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.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
