	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dmfe_rx_packet
_dmfe_rx_packet:                        ## @dmfe_rx_packet
	.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, %r13
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rsi), %r14
	cmpq	$0, 24(%rsi)
	je	LBB0_23
## %bb.1:
	movq	_RX_ALLOC_SIZE@GOTPCREL(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edi, %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_DMFE_DBUG
	movq	8(%r14), %rsi
	movq	%r13, %rdi
	callq	_dmfe_reuse_skb
LBB0_22:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r14), %r14
	cmpq	$0, 24(%r13)
	je	LBB0_23
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	20(%r14), %edi
	callq	_le32_to_cpu
	testl	%eax, %eax
	js	LBB0_23
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %ebx
	decq	24(%r13)
	incl	20(%r13)
	movl	16(%r13), %r15d
	movl	16(%r14), %edi
	callq	_le32_to_cpu
	movl	(%r12), %edx
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_pci_unmap_single
	movl	%ebx, %eax
	notl	%eax
	testl	$768, %eax                      ## imm = 0x300
	jne	LBB0_21
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %r15d
	shrl	$16, %r15d
	andl	$16383, %r15d                   ## imm = 0x3FFF
	testl	$32768, %ebx                    ## imm = 0x8000
	je	LBB0_13
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	incl	20(%rax)
	testb	$1, %bl
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	testb	$2, %bl
	jne	LBB0_8
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	testb	$-128, %bl
	je	LBB0_11
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	incl	8(%rax)
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_CR6_PM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	je	LBB0_21
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$11, %r15d
	jb	LBB0_21
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	-4(%r15), %rbx
	movq	8(%r14), %r12
	testb	$1, 4(%r13)
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r12), %rdi
	movl	%ebx, %esi
	movl	$1, %edx
	callq	_cal_CRC
	movq	8(%r12), %rcx
	cmpl	(%rcx,%rbx), %eax
	jne	LBB0_15
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_RX_COPY_SIZE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jge	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_2 Depth=1
	addl	$-2, %r15d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	callq	_netdev_alloc_skb
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r12
	movq	%rax, %rdi
	movl	$2, %esi
	callq	_skb_reserve
	movq	%rbx, %r15
	movq	8(%r14), %rbx
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_skb_put
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	%r15d, %edx
	callq	_skb_copy_from_linear_data
	movq	8(%r14), %rsi
	movq	%r13, %rdi
	callq	_dmfe_reuse_skb
	jmp	LBB0_20
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_skb_put
	movq	%rbx, %r15
LBB0_20:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_eth_type_trans
	movl	%eax, (%r12)
	movq	%r12, %rdi
	callq	_netif_rx
	incl	4(%rbx)
	addl	%r15d, (%rbx)
	movq	_RX_ALLOC_SIZE@GOTPCREL(%rip), %r12
	jmp	LBB0_22
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	incl	16(%rax)
	testb	$2, %bl
	je	LBB0_9
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	incl	12(%rax)
	testb	$-128, %bl
	jne	LBB0_10
	jmp	LBB0_11
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r14), %rsi
	movq	%r13, %rdi
	callq	_dmfe_reuse_skb
	movl	$3, 4(%r13)
	movq	_RX_ALLOC_SIZE@GOTPCREL(%rip), %r12
	jmp	LBB0_22
LBB0_23:
	movq	%r14, 8(%r13)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RX_ALLOC_SIZE,4,2              ## @RX_ALLOC_SIZE
	.comm	_PCI_DMA_FROMDEVICE,4,2         ## @PCI_DMA_FROMDEVICE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Reuse SK buffer, rdes0"

	.comm	_CR6_PM,4,2                     ## @CR6_PM
	.comm	_RX_COPY_SIZE,4,2               ## @RX_COPY_SIZE
	.no_dead_strip	_dmfe_rx_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dmfe_rx_packet
_dmfe_rx_packet:                        ; @dmfe_rx_packet
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	ldr	x25, [x1, #8]
	ldr	x8, [x1, #24]
	cbz	x8, LBB0_22
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x26, _RX_ALLOC_SIZE@GOTPAGE
Lloh1:
	ldr	x26, [x26, _RX_ALLOC_SIZE@GOTPAGEOFF]
Lloh2:
	adrp	x27, _PCI_DMA_FROMDEVICE@GOTPAGE
Lloh3:
	ldr	x27, [x27, _PCI_DMA_FROMDEVICE@GOTPAGEOFF]
Lloh4:
	adrp	x28, _RX_COPY_SIZE@GOTPAGE
Lloh5:
	ldr	x28, [x28, _RX_COPY_SIZE@GOTPAGEOFF]
Lloh6:
	adrp	x21, l_.str@PAGE
Lloh7:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #0
	mov	x1, x21
	mov	x2, x22
	bl	_DMFE_DBUG
	ldr	x1, [x25, #8]
	mov	x0, x19
	bl	_dmfe_reuse_skb
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x25, [x25]
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_22
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x25, #20]
	bl	_le32_to_cpu
	tbnz	w0, #31, LBB0_22
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x22, x0
	ldr	x8, [x19, #24]
	sub	x8, x8, #1
	str	x8, [x19, #24]
	ldp	w23, w8, [x19, #16]
	add	w8, w8, #1
	str	w8, [x19, #20]
	ldr	w0, [x25, #16]
	bl	_le32_to_cpu
	mov	x1, x0
	ldr	w2, [x26]
	ldr	w3, [x27]
	mov	x0, x23
	bl	_pci_unmap_single
	mvn	w8, w22
	tst	w8, #0x300
	b.ne	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ubfx	w24, w22, #16, #14
	tbz	w22, #15, LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x20, #20]
	add	w8, w8, #1
	str	w8, [x20, #20]
	tbnz	w22, #0, LBB0_19
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	tbnz	w22, #1, LBB0_20
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	tbz	w22, #7, LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x20, #8]
	add	w8, w8, #1
	str	w8, [x20, #8]
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19]
Lloh8:
	adrp	x9, _CR6_PM@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CR6_PM@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	and	w8, w9, w8
	cmp	w8, #0
	ccmp	w24, #11, #0, ne
	b.lo	LBB0_2
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	x22, x24, #4
	ldr	x23, [x25, #8]
	ldrb	w8, [x19, #4]
	tbz	w8, #0, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x23, #8]
	mov	x1, x22
	mov	w2, #1
	bl	_cal_CRC
	ldr	x8, [x23, #8]
	ldr	w8, [x8, x22]
	cmp	w0, w8
	b.ne	LBB0_21
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x28]
	cmp	w22, w8
	b.ge	LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	sub	w1, w24, #2
	mov	x0, x20
	bl	_netdev_alloc_skb
	cbz	x0, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x24, x0
	mov	w1, #2
	bl	_skb_reserve
	ldr	x23, [x25, #8]
	mov	x0, x24
	mov	x1, x22
	bl	_skb_put
	mov	x1, x0
	mov	x0, x23
	mov	x2, x22
	bl	_skb_copy_from_linear_data
	ldr	x1, [x25, #8]
	mov	x0, x19
	bl	_dmfe_reuse_skb
	mov	x23, x24
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	mov	x1, x22
	bl	_skb_put
LBB0_18:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	mov	x1, x20
	bl	_eth_type_trans
	str	w0, [x23]
	mov	x0, x23
	bl	_netif_rx
	ldr	d0, [x20]
	movi.2s	v1, #1
	mov.s	v1[0], w22
	add.2s	v0, v0, v1
	str	d0, [x20]
	b	LBB0_3
LBB0_19:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x20, #16]
	add	w8, w8, #1
	str	w8, [x20, #16]
	tbz	w22, #1, LBB0_9
LBB0_20:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x20, #12]
	add	w8, w8, #1
	str	w8, [x20, #12]
	tbnz	w22, #7, LBB0_10
	b	LBB0_11
LBB0_21:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [x25, #8]
	mov	x0, x19
	bl	_dmfe_reuse_skb
	mov	w8, #3
	str	w8, [x19, #4]
	b	LBB0_3
LBB0_22:
	str	x25, [x19, #8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_RX_ALLOC_SIZE,4,2              ; @RX_ALLOC_SIZE
	.comm	_PCI_DMA_FROMDEVICE,4,2         ; @PCI_DMA_FROMDEVICE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Reuse SK buffer, rdes0"

	.comm	_CR6_PM,4,2                     ; @CR6_PM
	.comm	_RX_COPY_SIZE,4,2               ; @RX_COPY_SIZE
	.no_dead_strip	_dmfe_rx_packet
.subsections_via_symbols
