	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function greth_rx_gbit
_greth_rx_gbit:                         ## @greth_rx_gbit
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r13
	callq	_netdev_priv
	movl	%ebx, -64(%rbp)                 ## 4-byte Spill
	testl	%ebx, %ebx
	jle	LBB0_1
## %bb.2:
	movq	%rax, %r15
	leaq	24(%r13), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	leaq	20(%r13), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	leaq	16(%r13), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	%r15, %rax
	addq	$4, %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movl	(%r15), %eax
	xorl	%r14d, %r14d
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_3 Depth=1
	orl	%eax, %ebx
	xorl	%eax, %eax
	callq	_wmb
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_greth_write_bd
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	%r15, %rdi
	callq	_greth_enable_rx
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movslq	(%r15), %rdi
	callq	_NEXT_RX
	movl	%eax, (%r15)
	incl	%r14d
	cmpl	%r14d, -64(%rbp)                ## 4-byte Folded Reload
	je	LBB0_27
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r15), %rbx
	movslq	%eax, %r13
	movq	16(%r15), %rax
	movq	24(%r15), %rcx
	movq	(%rax,%r13,8), %rax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	movl	(%rcx), %edi
	movq	_GRETH_INT_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GRETH_INT_RE@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	callq	_GRETH_REGSAVE
	xorl	%eax, %eax
	callq	_mb
	leaq	(%rbx,%r13,8), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_greth_read_bd
	movl	%eax, %r12d
	movq	_GRETH_BD_EN@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	jne	LBB0_28
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_GRETH_RXBD_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	%r12d, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movq	_GRETH_RXBD_ERR_FT@GOTPCREL(%rip), %rcx
	testl	%r12d, (%rcx)
	jne	LBB0_20
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_GRETH_RXBD_ERR_OE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_GRETH_RXBD_ERR_AE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_GRETH_RXBD_ERR_LE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	-104(%rbp), %rax                ## 8-byte Reload
	testl	%r12d, %ecx
	jne	LBB0_20
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	_GRETH_RXBD_ERR_CRC@GOTPCREL(%rip), %rcx
	testl	%r12d, (%rcx)
	je	LBB0_8
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_3 Depth=1
	incl	(%rax)
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	incl	8(%r13)
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_NET_IP_ALIGN@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_MAX_FRAME_SIZE@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_netdev_alloc_skb
	testq	%rax, %rax
	je	LBB0_21
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r14d, -60(%rbp)                ## 4-byte Spill
	movq	_NET_IP_ALIGN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_skb_reserve
	movl	8(%r15), %edi
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movl	8(%r14), %esi
	movq	_NET_IP_ALIGN@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	_MAX_FRAME_SIZE@GOTPCREL(%rip), %rax
	addq	(%rax), %rdx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_map_single
	movl	%eax, %r14d
	movl	8(%r15), %edi
	movl	%eax, %esi
	callq	_dma_mapping_error
	testl	%eax, %eax
	je	LBB0_10
## %bb.17:                              ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	callq	_net_ratelimit
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	8(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
LBB0_19:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_kfree_skb
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	incl	8(%r13)
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movl	-60(%rbp), %r14d                ## 4-byte Reload
	jmp	LBB0_24
LBB0_21:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	callq	_net_ratelimit
	testq	%rax, %rax
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	8(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_warn
LBB0_23:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	incl	8(%r13)
	jmp	LBB0_24
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%r14d, -80(%rbp)                ## 4-byte Spill
	movq	_GRETH_BD_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	andl	%r12d, %r14d
	movl	8(%r15), %eax
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	leaq	(%rbx,%r13,8), %rbx
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_greth_read_bd
	movq	_NET_IP_ALIGN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	_MAX_FRAME_SIZE@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rdx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	-72(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %esi
	callq	_dma_unmap_single
	movq	%r15, %rdi
	callq	_netif_msg_pktdata
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_greth_read_bd
	movl	%eax, %edi
	callq	_phys_to_virt
	movl	%eax, %edi
	movl	%r14d, %esi
	callq	_greth_print_rx_packet
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	-128(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r14d, -76(%rbp)                ## 4-byte Spill
	movl	%r14d, %esi
	callq	_skb_put
	movq	_NETIF_F_RXCSUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	testl	%eax, (%r13)
	movl	-60(%rbp), %r14d                ## 4-byte Reload
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	%r12d, %edi
	callq	_hw_checksummed
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_CHECKSUM_UNNECESSARY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	jmp	LBB0_16
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_skb_checksum_none_assert
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_eth_type_trans
	movl	%eax, (%rbx)
	incl	12(%r13)
	movl	-76(%rbp), %eax                 ## 4-byte Reload
	addl	%eax, 4(%r13)
	movq	%rbx, %rdi
	callq	_netif_receive_skb
	movq	16(%r15), %rax
	movslq	(%r15), %rcx
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movq	%rdx, (%rax,%rcx,8)
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	-80(%rbp), %esi                 ## 4-byte Reload
	callq	_greth_write_bd
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_GRETH_BD_IE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_GRETH_BD_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movslq	(%r15), %rcx
	movl	$0, %eax
	movq	_GRETH_RXBD_NUM_MASK@GOTPCREL(%rip), %rdx
	cmpq	%rcx, (%rdx)
	jne	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_GRETH_BD_WR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_26
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_28
LBB0_27:
	movl	-64(%rbp), %r14d                ## 4-byte Reload
LBB0_28:
	movl	%r14d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GRETH_INT_RE,4,2               ## @GRETH_INT_RE
	.comm	_GRETH_INT_RX,4,2               ## @GRETH_INT_RX
	.comm	_GRETH_BD_EN,4,2                ## @GRETH_BD_EN
	.comm	_GRETH_RXBD_STATUS,4,2          ## @GRETH_RXBD_STATUS
	.comm	_GRETH_RXBD_ERR_FT,4,2          ## @GRETH_RXBD_ERR_FT
	.comm	_GRETH_RXBD_ERR_AE,4,2          ## @GRETH_RXBD_ERR_AE
	.comm	_GRETH_RXBD_ERR_OE,4,2          ## @GRETH_RXBD_ERR_OE
	.comm	_GRETH_RXBD_ERR_LE,4,2          ## @GRETH_RXBD_ERR_LE
	.comm	_GRETH_RXBD_ERR_CRC,4,2         ## @GRETH_RXBD_ERR_CRC
	.comm	_MAX_FRAME_SIZE,8,3             ## @MAX_FRAME_SIZE
	.comm	_NET_IP_ALIGN,8,3               ## @NET_IP_ALIGN
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_GRETH_BD_LEN,4,2               ## @GRETH_BD_LEN
	.comm	_NETIF_F_RXCSUM,4,2             ## @NETIF_F_RXCSUM
	.comm	_CHECKSUM_UNNECESSARY,4,2       ## @CHECKSUM_UNNECESSARY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not create DMA mapping, dropping packet\n"

L_.str.1:                               ## @.str.1
	.asciz	"Could not allocate SKB, dropping packet\n"

	.comm	_GRETH_BD_IE,4,2                ## @GRETH_BD_IE
	.comm	_GRETH_RXBD_NUM_MASK,8,3        ## @GRETH_RXBD_NUM_MASK
	.comm	_GRETH_BD_WR,4,2                ## @GRETH_BD_WR
	.no_dead_strip	_greth_rx_gbit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function greth_rx_gbit
_greth_rx_gbit:                         ; @greth_rx_gbit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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	x28, x0
	bl	_netdev_priv
	str	w19, [sp, #84]                  ; 4-byte Folded Spill
	cmp	w19, #1
	b.lt	LBB0_25
; %bb.1:
	mov	x22, x0
	mov	w21, #0
	mov	x8, x0
	ldr	w0, [x8], #4
	str	x8, [sp, #64]                   ; 8-byte Folded Spill
	add	x8, x28, #24
	str	x8, [sp, #56]                   ; 8-byte Folded Spill
Lloh0:
	adrp	x23, _GRETH_BD_EN@GOTPAGE
Lloh1:
	ldr	x23, [x23, _GRETH_BD_EN@GOTPAGEOFF]
	add	x8, x28, #20
	str	x8, [sp, #32]                   ; 8-byte Folded Spill
	add	x8, x28, #16
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
Lloh2:
	adrp	x20, _MAX_FRAME_SIZE@GOTPAGE
Lloh3:
	ldr	x20, [x20, _MAX_FRAME_SIZE@GOTPAGEOFF]
Lloh4:
	adrp	x27, _NET_IP_ALIGN@GOTPAGE
Lloh5:
	ldr	x27, [x27, _NET_IP_ALIGN@GOTPAGEOFF]
Lloh6:
	adrp	x26, _DMA_FROM_DEVICE@GOTPAGE
Lloh7:
	ldr	x26, [x26, _DMA_FROM_DEVICE@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	ldr	w8, [x28, #8]
	add	w8, w8, #1
	str	w8, [x28, #8]
Lloh8:
	adrp	x23, _GRETH_BD_EN@GOTPAGE
Lloh9:
	ldr	x23, [x23, _GRETH_BD_EN@GOTPAGEOFF]
	ldr	x24, [sp, #88]                  ; 8-byte Folded Reload
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x23]
Lloh10:
	adrp	x9, _GRETH_BD_IE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _GRETH_BD_IE@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldrsw	x9, [x22]
Lloh13:
	adrp	x10, _GRETH_RXBD_NUM_MASK@GOTPAGE
Lloh14:
	ldr	x10, [x10, _GRETH_RXBD_NUM_MASK@GOTPAGEOFF]
Lloh15:
	ldr	x10, [x10]
Lloh16:
	adrp	x11, _GRETH_BD_WR@GOTPAGE
Lloh17:
	ldr	x11, [x11, _GRETH_BD_WR@GOTPAGEOFF]
Lloh18:
	ldr	w11, [x11]
	cmp	x10, x9
	csel	w9, w11, wzr, eq
	orr	w19, w8, w9
	bl	_wmb
	mov	x0, x24
	mov	x1, x19
	bl	_greth_write_bd
	ldr	x19, [sp, #64]                  ; 8-byte Folded Reload
	mov	x0, x19
	bl	_spin_lock_irqsave
	mov	x0, x22
	bl	_greth_enable_rx
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	ldrsw	x0, [x22]
	bl	_NEXT_RX
	str	w0, [x22]
	add	w21, w21, #1
	ldr	w8, [sp, #84]                   ; 4-byte Folded Reload
	cmp	w8, w21
	b.eq	LBB0_26
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x9, x25, [x22, #24]
	mov	x19, x0
	sbfiz	x24, x19, #3, #32
	ldr	x8, [x22, #16]
	ldr	x8, [x8, x24]
	str	x8, [sp, #72]                   ; 8-byte Folded Spill
	ldr	w0, [x9]
Lloh19:
	adrp	x8, _GRETH_INT_RE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _GRETH_INT_RE@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _GRETH_INT_RX@GOTPAGE
Lloh23:
	ldr	x9, [x9, _GRETH_INT_RX@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_GRETH_REGSAVE
	bl	_mb
	add	x0, x25, x24
	str	x0, [sp, #88]                   ; 8-byte Folded Spill
	bl	_greth_read_bd
	ldr	w8, [x23]
	tst	w8, w0
	b.ne	LBB0_27
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x24, x0
Lloh25:
	adrp	x8, _GRETH_RXBD_STATUS@GOTPAGE
Lloh26:
	ldr	x8, [x8, _GRETH_RXBD_STATUS@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	and	w0, w8, w0
	bl	_unlikely
	cbz	x0, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh28:
	adrp	x8, _GRETH_RXBD_ERR_FT@GOTPAGE
Lloh29:
	ldr	x8, [x8, _GRETH_RXBD_ERR_FT@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x8]
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	tst	w9, w24
	b.ne	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh31:
	adrp	x8, _GRETH_RXBD_ERR_AE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _GRETH_RXBD_ERR_AE@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
Lloh34:
	adrp	x9, _GRETH_RXBD_ERR_OE@GOTPAGE
Lloh35:
	ldr	x9, [x9, _GRETH_RXBD_ERR_OE@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh37:
	adrp	x9, _GRETH_RXBD_ERR_LE@GOTPAGE
Lloh38:
	ldr	x9, [x9, _GRETH_RXBD_ERR_LE@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	orr	w9, w8, w9
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	tst	w9, w24
	b.ne	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh40:
	adrp	x8, _GRETH_RXBD_ERR_CRC@GOTPAGE
Lloh41:
	ldr	x8, [x8, _GRETH_RXBD_ERR_CRC@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x8]
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	tst	w9, w24
	b.ne	LBB0_2
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20]
	mov	x23, x27
	ldr	x9, [x27]
	add	x1, x9, x8
	mov	x0, x28
	bl	_netdev_alloc_skb
	cbz	x0, LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	str	w21, [sp, #44]                  ; 4-byte Folded Spill
	ldr	x1, [x23]
	mov	x21, x23
	mov	x23, x0
	bl	_skb_reserve
	ldr	w0, [x22, #8]
	str	x23, [sp, #48]                  ; 8-byte Folded Spill
	ldr	w1, [x23, #8]
Lloh43:
	adrp	x8, _MAX_FRAME_SIZE@GOTPAGE
Lloh44:
	ldr	x8, [x8, _MAX_FRAME_SIZE@GOTPAGEOFF]
Lloh45:
	ldr	x8, [x8]
	ldr	x9, [x21]
	add	x2, x9, x8
	mov	x21, x26
	ldr	w3, [x26]
	bl	_dma_map_single
	mov	x23, x0
	ldr	w0, [x22, #8]
	mov	x1, x23
	bl	_dma_mapping_error
	cbz	w0, LBB0_17
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	bl	_net_ratelimit
	cbz	x0, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x22, #8]
Lloh46:
	adrp	x1, l_.str@PAGE
Lloh47:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [sp, #48]                   ; 8-byte Folded Reload
	bl	_dev_kfree_skb
	ldr	w8, [x28, #8]
	add	w8, w8, #1
	str	w8, [x28, #8]
Lloh48:
	adrp	x23, _GRETH_BD_EN@GOTPAGE
Lloh49:
	ldr	x23, [x23, _GRETH_BD_EN@GOTPAGEOFF]
	ldr	x24, [sp, #88]                  ; 8-byte Folded Reload
	ldr	w21, [sp, #44]                  ; 4-byte Folded Reload
	b	LBB0_3
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_net_ratelimit
	ldr	x24, [sp, #88]                  ; 8-byte Folded Reload
	cbz	x0, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x22, #8]
Lloh50:
	adrp	x1, l_.str.1@PAGE
Lloh51:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_warn
LBB0_16:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x28, #8]
	add	w8, w8, #1
	str	w8, [x28, #8]
	b	LBB0_24
LBB0_17:                                ;   in Loop: Header=BB0_4 Depth=1
	str	w23, [sp, #20]                  ; 4-byte Folded Spill
	sxtw	x8, w19
Lloh52:
	adrp	x9, _GRETH_BD_LEN@GOTPAGE
Lloh53:
	ldr	x9, [x9, _GRETH_BD_LEN@GOTPAGEOFF]
Lloh54:
	ldr	w9, [x9]
	and	w23, w9, w24
	ldr	w19, [x22, #8]
	add	x8, x25, x8, lsl #3
	add	x25, x8, #4
	mov	x0, x25
	bl	_greth_read_bd
	mov	x1, x0
Lloh55:
	adrp	x20, _MAX_FRAME_SIZE@GOTPAGE
Lloh56:
	ldr	x20, [x20, _MAX_FRAME_SIZE@GOTPAGEOFF]
	ldr	x8, [x20]
Lloh57:
	adrp	x27, _NET_IP_ALIGN@GOTPAGE
Lloh58:
	ldr	x27, [x27, _NET_IP_ALIGN@GOTPAGEOFF]
	ldr	x9, [x27]
	add	x2, x9, x8
	ldr	w3, [x21]
	mov	x0, x19
	bl	_dma_unmap_single
	mov	x0, x22
	bl	_netif_msg_pktdata
	mov	x26, x21
	cbz	x0, LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x25
	bl	_greth_read_bd
	bl	_phys_to_virt
	mov	x1, x23
	bl	_greth_print_rx_packet
LBB0_19:                                ;   in Loop: Header=BB0_4 Depth=1
	str	x25, [sp, #24]                  ; 8-byte Folded Spill
	ldr	x19, [sp, #72]                  ; 8-byte Folded Reload
	mov	x0, x19
	mov	x25, x23
	mov	x1, x23
	bl	_skb_put
	ldr	w8, [x28]
Lloh59:
	adrp	x9, _NETIF_F_RXCSUM@GOTPAGE
Lloh60:
	ldr	x9, [x9, _NETIF_F_RXCSUM@GOTPAGEOFF]
Lloh61:
	ldr	w9, [x9]
	tst	w9, w8
	ldr	w21, [sp, #44]                  ; 4-byte Folded Reload
	b.eq	LBB0_22
; %bb.20:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x24
	bl	_hw_checksummed
	cbz	x0, LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh62:
	adrp	x8, _CHECKSUM_UNNECESSARY@GOTPAGE
Lloh63:
	ldr	x8, [x8, _CHECKSUM_UNNECESSARY@GOTPAGEOFF]
Lloh64:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	b	LBB0_23
LBB0_22:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_skb_checksum_none_assert
LBB0_23:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x24, [sp, #88]                  ; 8-byte Folded Reload
	ldr	w23, [sp, #20]                  ; 4-byte Folded Reload
	mov	x0, x19
	mov	x1, x28
	bl	_eth_type_trans
	str	w0, [x19]
	ldr	w8, [x28, #12]
	add	w8, w8, #1
	str	w8, [x28, #12]
	ldr	w8, [x28, #4]
	add	w8, w8, w25
	str	w8, [x28, #4]
	mov	x0, x19
	bl	_netif_receive_skb
	ldr	x8, [x22, #16]
	ldrsw	x9, [x22]
	ldr	x10, [sp, #48]                  ; 8-byte Folded Reload
	str	x10, [x8, x9, lsl #3]
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	mov	x1, x23
	bl	_greth_write_bd
LBB0_24:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh65:
	adrp	x23, _GRETH_BD_EN@GOTPAGE
Lloh66:
	ldr	x23, [x23, _GRETH_BD_EN@GOTPAGEOFF]
	b	LBB0_3
LBB0_25:
	mov	w21, #0
	b	LBB0_27
LBB0_26:
	ldr	w21, [sp, #84]                  ; 4-byte Folded Reload
LBB0_27:
	mov	x0, x21
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh57, Lloh58
	.loh AdrpLdrGot	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGot	Lloh65, Lloh66
	.cfi_endproc
                                        ; -- End function
	.comm	_GRETH_INT_RE,4,2               ; @GRETH_INT_RE
	.comm	_GRETH_INT_RX,4,2               ; @GRETH_INT_RX
	.comm	_GRETH_BD_EN,4,2                ; @GRETH_BD_EN
	.comm	_GRETH_RXBD_STATUS,4,2          ; @GRETH_RXBD_STATUS
	.comm	_GRETH_RXBD_ERR_FT,4,2          ; @GRETH_RXBD_ERR_FT
	.comm	_GRETH_RXBD_ERR_AE,4,2          ; @GRETH_RXBD_ERR_AE
	.comm	_GRETH_RXBD_ERR_OE,4,2          ; @GRETH_RXBD_ERR_OE
	.comm	_GRETH_RXBD_ERR_LE,4,2          ; @GRETH_RXBD_ERR_LE
	.comm	_GRETH_RXBD_ERR_CRC,4,2         ; @GRETH_RXBD_ERR_CRC
	.comm	_MAX_FRAME_SIZE,8,3             ; @MAX_FRAME_SIZE
	.comm	_NET_IP_ALIGN,8,3               ; @NET_IP_ALIGN
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_GRETH_BD_LEN,4,2               ; @GRETH_BD_LEN
	.comm	_NETIF_F_RXCSUM,4,2             ; @NETIF_F_RXCSUM
	.comm	_CHECKSUM_UNNECESSARY,4,2       ; @CHECKSUM_UNNECESSARY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not create DMA mapping, dropping packet\n"

l_.str.1:                               ; @.str.1
	.asciz	"Could not allocate SKB, dropping packet\n"

	.comm	_GRETH_BD_IE,4,2                ; @GRETH_BD_IE
	.comm	_GRETH_RXBD_NUM_MASK,8,3        ; @GRETH_RXBD_NUM_MASK
	.comm	_GRETH_BD_WR,4,2                ; @GRETH_BD_WR
	.no_dead_strip	_greth_rx_gbit
.subsections_via_symbols
