	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgmac_rx
_xgmac_rx:                              ## @xgmac_rx
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	testl	%esi, %esi
	je	LBB0_1
## %bb.2:
	leaq	4(%r15), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	movq	_DMA_RX_RING_SZ@GOTPCREL(%rip), %r13
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_napi_gro_receive
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	movq	_DMA_RX_RING_SZ@GOTPCREL(%rip), %r13
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	incl	%r14d
	cmpl	%r14d, -44(%rbp)                ## 4-byte Folded Reload
	je	LBB0_13
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %esi
	movl	48(%r15), %edi
	movl	(%r13), %edx
	callq	_dma_ring_cnt
	testl	%eax, %eax
	je	LBB0_14
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r15), %ebx
	leaq	(,%rbx,4), %r12
	addq	40(%r15), %r12
	movq	%r12, %rdi
	callq	_desc_get_owner
	testq	%rax, %rax
	jne	LBB0_14
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r15), %edi
	movl	(%r13), %esi
	callq	_dma_ring_incr
	movl	%eax, (%r15)
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_desc_get_rx_status
	testl	%eax, %eax
	js	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	32(%r15), %rax
	movq	(%rax,%rbx,8), %r13
	xorl	%edi, %edi
	testq	%r13, %r13
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	movq	32(%r15), %rax
	movq	$0, (%rax,%rbx,8)
	movq	%r12, %rdi
	callq	_desc_get_rx_frame_len
	movl	%eax, %r14d
	movl	8(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %ecx
	callq	_netdev_dbg
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_skb_put
	movl	24(%r15), %r14d
	movq	%r12, %rdi
	callq	_desc_get_buf_addr
	movq	16(%r15), %rdx
	movq	_NET_IP_ALIGN@GOTPCREL(%rip), %rcx
	subq	(%rcx), %rdx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_dma_unmap_single
	movl	8(%r15), %esi
	movq	%r13, %rdi
	callq	_eth_type_trans
	movl	%eax, 4(%r13)
	movl	%ebx, (%r13)
	movq	_CHECKSUM_NONE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	callq	_netif_receive_skb
	jmp	LBB0_11
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_14
LBB0_13:
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	jmp	LBB0_14
LBB0_7:
	movl	8(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_err
	incl	%r14d
LBB0_14:
	movq	%r15, %rdi
	callq	_xgmac_rx_refill
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_RX_RING_SZ,4,2             ## @DMA_RX_RING_SZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Inconsistent Rx descriptor chain\n"

L_.str.1:                               ## @.str.1
	.asciz	"RX frame size %d, COE status: %d\n"

	.comm	_NET_IP_ALIGN,8,3               ## @NET_IP_ALIGN
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_CHECKSUM_NONE,4,2              ## @CHECKSUM_NONE
	.no_dead_strip	_xgmac_rx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgmac_rx
_xgmac_rx:                              ; @xgmac_rx
	.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, x0
	cbz	w1, LBB0_10
; %bb.1:
	mov	x21, x1
	mov	w20, #0
	add	x22, x19, #4
Lloh0:
	adrp	x28, _DMA_RX_RING_SZ@GOTPAGE
Lloh1:
	ldr	x28, [x28, _DMA_RX_RING_SZ@GOTPAGEOFF]
Lloh2:
	adrp	x23, l_.str.1@PAGE
Lloh3:
	add	x23, x23, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	mov	x1, x24
	bl	_napi_gro_receive
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w20, w20, #1
	cmp	w21, w20
	b.eq	LBB0_11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #48]
	ldr	w1, [x19]
	ldr	w2, [x28]
	bl	_dma_ring_cnt
	cbz	w0, LBB0_13
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w27, [x19]
	ldr	x8, [x19, #40]
	add	x26, x8, x27, lsl #2
	mov	x0, x26
	bl	_desc_get_owner
	cbnz	x0, LBB0_13
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x19]
	ldr	w1, [x28]
	bl	_dma_ring_incr
	str	w0, [x19]
	mov	x0, x19
	mov	x1, x26
	bl	_desc_get_rx_status
	tbnz	w0, #31, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x25, x0
	ldr	x8, [x19, #32]
	ldr	x24, [x8, x27, lsl #3]
	cmp	x24, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #32]
	str	xzr, [x8, x27, lsl #3]
	mov	x0, x26
	bl	_desc_get_rx_frame_len
	mov	x27, x0
	ldr	w0, [x19, #8]
	mov	x1, x23
	mov	x2, x27
	mov	x3, x25
	bl	_netdev_dbg
	mov	x0, x24
	mov	x1, x27
	bl	_skb_put
	ldr	w27, [x19, #24]
	mov	x0, x26
	bl	_desc_get_buf_addr
	mov	x1, x0
	ldr	x8, [x19, #16]
Lloh4:
	adrp	x9, _NET_IP_ALIGN@GOTPAGE
Lloh5:
	ldr	x9, [x9, _NET_IP_ALIGN@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	sub	x2, x8, x9
Lloh7:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh9:
	ldr	w3, [x8]
	mov	x0, x27
	bl	_dma_unmap_single
	ldr	w1, [x19, #8]
	mov	x0, x24
	bl	_eth_type_trans
	stp	w25, w0, [x24]
Lloh10:
	adrp	x8, _CHECKSUM_NONE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CHECKSUM_NONE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w25, w8
	b.ne	LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x24
	bl	_netif_receive_skb
	b	LBB0_3
LBB0_10:
	mov	w20, #0
	b	LBB0_13
LBB0_11:
	mov	x20, x21
	b	LBB0_13
LBB0_12:
	ldr	w0, [x19, #8]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_err
	add	w20, w20, #1
LBB0_13:
	mov	x0, x19
	bl	_xgmac_rx_refill
	mov	x0, x20
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_RX_RING_SZ,4,2             ; @DMA_RX_RING_SZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Inconsistent Rx descriptor chain\n"

l_.str.1:                               ; @.str.1
	.asciz	"RX frame size %d, COE status: %d\n"

	.comm	_NET_IP_ALIGN,8,3               ; @NET_IP_ALIGN
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_CHECKSUM_NONE,4,2              ; @CHECKSUM_NONE
	.no_dead_strip	_xgmac_rx
.subsections_via_symbols
