	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgbe_dev_read
_xgbe_dev_read:                         ## @xgbe_dev_read
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	16(%rdi), %r15
	movq	24(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	32(%rax), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	(%r15), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_DBGPR
	movl	(%r15), %esi
	movq	%r15, %rdi
	callq	_XGBE_GET_DESC_DATA
	movq	%rax, %r14
	movq	8(%rax), %r12
	movl	4(%r12), %edi
	movq	_RX_NORMAL_DESC3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_XGMAC_GET_BITS_LE
	movl	$1, %ebx
	testl	%eax, %eax
	jne	LBB0_37
## %bb.1:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_dma_rmb
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_netif_msg_rx_status
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%r12, %rdi
	movl	(%r15), %edx
	movq	%r15, %rsi
	callq	_xgbe_dump_rx_desc
LBB0_3:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	4(%r14), %edi
	movq	_RX_NORMAL_DESC3@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_CTXT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_XGMAC_GET_BITS_LE
	testl	%eax, %eax
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_5
## %bb.4:
	leaq	8(%r15), %rdi
	movq	%r14, %rsi
	callq	_xgbe_get_rx_tstamp
	movl	16(%r15), %edi
	movq	_RX_PACKET_ATTRIBUTES@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_CONTEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %ecx
	callq	_XGMAC_SET_BITS
	movl	16(%r15), %edi
	movl	(%rbx), %esi
	movq	_CONTEXT_NEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ebx, %ebx
	xorl	%ecx, %ecx
	callq	_XGMAC_SET_BITS
	jmp	LBB0_37
LBB0_5:
	movl	16(%r15), %edi
	movq	%rbx, %r12
	movq	_RX_PACKET_ATTRIBUTES@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_CONTEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	_XGMAC_SET_BITS
	movl	4(%r14), %edi
	movl	(%r12), %esi
	movq	%rbx, %r12
	movq	_CDA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_XGMAC_GET_BITS_LE
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	16(%r15), %edi
	movl	(%r12), %esi
	movq	_CONTEXT_NEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %ecx
	callq	_XGMAC_SET_BITS
LBB0_7:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	4(%rbx), %edi
	movq	_RX_NORMAL_DESC3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_XGMAC_GET_BITS_LE
	movl	16(%r15), %edi
	movl	(%r12), %esi
	movq	_FIRST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	testl	%eax, %eax
	je	LBB0_10
## %bb.8:
	movl	$1, %ecx
	callq	_XGMAC_SET_BITS
	movl	8(%rbx), %edi
	movq	_RX_NORMAL_DESC2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_XGMAC_GET_BITS_LE
	movl	%eax, (%r13)
	testl	%eax, %eax
	je	LBB0_11
## %bb.9:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	incl	28(%rax)
	jmp	LBB0_11
LBB0_10:
	xorl	%ecx, %ecx
	callq	_XGMAC_SET_BITS
LBB0_11:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	4(%rbx), %edi
	movq	_RX_NORMAL_DESC3@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_RSV@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_XGMAC_GET_BITS_LE
	testl	%eax, %eax
	je	LBB0_16
## %bb.12:
	movl	16(%r15), %edi
	movl	(%r12), %esi
	movq	_RSS_HASH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %ecx
	callq	_XGMAC_SET_BITS
	movl	12(%rbx), %edi
	callq	_le32_to_cpu
	movl	%eax, 24(%r15)
	movl	4(%rbx), %edi
	movl	(%r14), %esi
	movq	_L34T@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_XGMAC_GET_BITS_LE
	addl	$-129, %eax
	cmpl	$4, %eax
	ja	LBB0_13
## %bb.14:
	cltq
	leaq	l_switch.table.xgbe_dev_read(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	jmp	LBB0_15
LBB0_13:
	movq	_PKT_HASH_TYPE_L3@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %eax
	movl	%eax, 20(%r15)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	_RX_NORMAL_DESC3@GOTPCREL(%rip), %r14
LBB0_16:
	movl	4(%rbx), %edi
	movl	(%r14), %esi
	movq	_LD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_XGMAC_GET_BITS_LE
	testl	%eax, %eax
	je	LBB0_17
## %bb.18:
	movl	16(%r15), %edi
	movl	(%r12), %esi
	movq	_LAST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %ecx
	callq	_XGMAC_SET_BITS
	movl	4(%rbx), %edi
	movl	(%r14), %esi
	movq	_PL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_XGMAC_GET_BITS_LE
	movl	%eax, 4(%r13)
	movq	_NETIF_F_RXCSUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	testl	%eax, (%rcx)
	je	LBB0_20
## %bb.19:
	movl	16(%r15), %edi
	movl	(%r12), %esi
	movq	_CSUM_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %ecx
	callq	_XGMAC_SET_BITS
	movl	16(%r15), %edi
	movl	(%r12), %esi
	movq	_TNPCSUM_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %ecx
	callq	_XGMAC_SET_BITS
LBB0_20:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	8(%rbx), %edi
	movq	_RX_NORMAL_DESC2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TNP@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	callq	_XGMAC_GET_BITS_LE
	testl	%eax, %eax
	je	LBB0_24
## %bb.21:
	movl	16(%r15), %edi
	movl	(%r12), %esi
	movl	(%r14), %edx
	movl	$1, %ecx
	callq	_XGMAC_SET_BITS
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	incl	24(%rax)
	movl	4(%rbx), %edi
	movq	_RX_NORMAL_DESC3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_L34T@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_XGMAC_GET_BITS_LE
	cmpl	$131, %eax
	je	LBB0_23
## %bb.22:
	cmpl	$128, %eax
	jne	LBB0_24
LBB0_23:
	movl	16(%r15), %edi
	movl	(%r12), %esi
	movq	_TNPCSUM_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	_XGMAC_SET_BITS
LBB0_24:
	movq	%r12, %r13
	movl	4(%rbx), %edi
	movq	_RX_NORMAL_DESC3@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_ES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_XGMAC_GET_BITS_LE
	movq	%rbx, %rcx
	movl	%eax, %ebx
	movl	4(%rcx), %edi
	movl	(%r14), %esi
	movq	_ETLT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_XGMAC_GET_BITS_LE
	movl	%eax, %r12d
	movq	_rx_status@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rcx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movl	%ebx, %r8d
	movl	%r12d, %r9d
	xorl	%eax, %eax
	callq	_netif_dbg
	testl	%ebx, %ebx
	je	LBB0_26
## %bb.25:
	testl	%r12d, %r12d
	je	LBB0_26
## %bb.29:
	movl	16(%r15), %edi
	movq	%r13, %rbx
	movl	(%r13), %esi
	movq	_TNP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_XGMAC_GET_BITS
	leal	-5(%r12), %ecx
	cmpl	$1, %ecx
	ja	LBB0_31
## %bb.30:
	movl	16(%r15), %edi
	movl	(%rbx), %esi
	movq	_CSUM_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	_XGMAC_SET_BITS
	movl	16(%r15), %edi
	movl	(%rbx), %esi
	movq	_TNPCSUM_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	_XGMAC_SET_BITS
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	incl	20(%rbx)
	jmp	LBB0_35
LBB0_17:
	xorl	%ebx, %ebx
	jmp	LBB0_37
LBB0_26:
	movq	%r13, %rdx
	cmpl	$9, %r12d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	jne	LBB0_36
## %bb.27:
	movq	_NETIF_F_HW_VLAN_CTAG_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	testl	%eax, (%rcx)
	je	LBB0_36
## %bb.28:
	movl	16(%r15), %edi
	movl	(%rdx), %esi
	movq	_VLAN_CTAG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %ecx
	callq	_XGMAC_SET_BITS
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	_RX_NORMAL_DESC0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OVT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_XGMAC_GET_BITS_LE
	movl	%eax, 8(%r15)
	movq	_rx_status@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.2(%rip), %rcx
	movq	%rbx, %rdi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_netif_dbg
	jmp	LBB0_36
LBB0_31:
	addl	$-9, %r12d
	cmpl	$1, %r12d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	ja	LBB0_34
## %bb.32:
	testl	%eax, %eax
	je	LBB0_34
## %bb.33:
	movl	16(%r15), %edi
	movl	(%r13), %esi
	movq	_CSUM_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	_XGMAC_SET_BITS
	movl	16(%r15), %edi
	movl	(%r13), %esi
	movq	_TNPCSUM_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	_XGMAC_SET_BITS
	incl	16(%rbx)
	jmp	LBB0_35
LBB0_34:
	movl	12(%r15), %edi
	movq	_RX_PACKET_ERRORS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %ecx
	callq	_XGMAC_SET_BITS
LBB0_35:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	-72(%rbp), %r13                 ## 8-byte Reload
LBB0_36:
	movq	8(%rbx), %rax
	movq	(%r13), %rcx
	incl	(%rax,%rcx,4)
	movl	4(%r14), %eax
	movq	(%rbx), %rdx
	addl	%eax, (%rdx,%rcx,4)
	movl	8(%r13), %esi
	movl	(%r15), %ecx
	movl	4(%r15), %edx
	decl	%edx
	andl	%ecx, %edx
	leaq	L_.str.3(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DBGPR
LBB0_37:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"-->xgbe_dev_read: cur = %d\n"

	.comm	_RX_NORMAL_DESC3,4,2            ## @RX_NORMAL_DESC3
	.comm	_OWN,4,2                        ## @OWN
	.comm	_CTXT,4,2                       ## @CTXT
	.comm	_RX_PACKET_ATTRIBUTES,4,2       ## @RX_PACKET_ATTRIBUTES
	.comm	_CONTEXT,4,2                    ## @CONTEXT
	.comm	_CONTEXT_NEXT,4,2               ## @CONTEXT_NEXT
	.comm	_CDA,4,2                        ## @CDA
	.comm	_FD,4,2                         ## @FD
	.comm	_FIRST,4,2                      ## @FIRST
	.comm	_RX_NORMAL_DESC2,4,2            ## @RX_NORMAL_DESC2
	.comm	_HL,4,2                         ## @HL
	.comm	_RSV,4,2                        ## @RSV
	.comm	_RSS_HASH,4,2                   ## @RSS_HASH
	.comm	_L34T,4,2                       ## @L34T
	.comm	_PKT_HASH_TYPE_L4,4,2           ## @PKT_HASH_TYPE_L4
	.comm	_PKT_HASH_TYPE_L3,4,2           ## @PKT_HASH_TYPE_L3
	.comm	_LD,4,2                         ## @LD
	.comm	_LAST,4,2                       ## @LAST
	.comm	_PL,4,2                         ## @PL
	.comm	_NETIF_F_RXCSUM,4,2             ## @NETIF_F_RXCSUM
	.comm	_CSUM_DONE,4,2                  ## @CSUM_DONE
	.comm	_TNPCSUM_DONE,4,2               ## @TNPCSUM_DONE
	.comm	_TNP,4,2                        ## @TNP
	.comm	_ES,4,2                         ## @ES
	.comm	_ETLT,4,2                       ## @ETLT
	.comm	_rx_status,4,2                  ## @rx_status
L_.str.1:                               ## @.str.1
	.asciz	"err=%u, etlt=%#x\n"

	.comm	_NETIF_F_HW_VLAN_CTAG_RX,4,2    ## @NETIF_F_HW_VLAN_CTAG_RX
	.comm	_VLAN_CTAG,4,2                  ## @VLAN_CTAG
	.comm	_RX_NORMAL_DESC0,4,2            ## @RX_NORMAL_DESC0
	.comm	_OVT,4,2                        ## @OVT
L_.str.2:                               ## @.str.2
	.asciz	"vlan-ctag=%#06x\n"

	.comm	_RX_PACKET_ERRORS,4,2           ## @RX_PACKET_ERRORS
	.comm	_FRAME,4,2                      ## @FRAME
L_.str.3:                               ## @.str.3
	.asciz	"<--xgbe_dev_read: %s - descriptor=%u (cur=%d)\n"

	.no_dead_strip	_xgbe_dev_read
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.xgbe_dev_read
l_switch.table.xgbe_dev_read:
	.quad	_PKT_HASH_TYPE_L4
	.quad	_PKT_HASH_TYPE_L4
	.quad	_PKT_HASH_TYPE_L3
	.quad	_PKT_HASH_TYPE_L4
	.quad	_PKT_HASH_TYPE_L4

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgbe_dev_read
_xgbe_dev_read:                         ; @xgbe_dev_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x0
	ldp	x19, x21, [x0, #16]
	ldr	x23, [x21, #32]
	ldr	w1, [x19]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DBGPR
	mov	x25, x19
	ldr	w1, [x25], #8
	mov	x0, x19
	bl	_XGBE_GET_DESC_DATA
	mov	x22, x0
	ldr	x24, [x0, #8]
	ldr	w0, [x24, #4]
Lloh2:
	adrp	x28, _RX_NORMAL_DESC3@GOTPAGE
Lloh3:
	ldr	x28, [x28, _RX_NORMAL_DESC3@GOTPAGEOFF]
	ldr	w1, [x28]
Lloh4:
	adrp	x8, _OWN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _OWN@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	bl	_XGMAC_GET_BITS_LE
	cbz	w0, LBB0_2
; %bb.1:
	mov	w0, #1
	b	LBB0_37
LBB0_2:
	bl	_dma_rmb
	mov	x0, x21
	bl	_netif_msg_rx_status
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w2, [x19]
	mov	x0, x21
	mov	x1, x19
	bl	_xgbe_dump_rx_desc
LBB0_4:
	ldr	w0, [x24, #4]
	ldr	w1, [x28]
Lloh7:
	adrp	x8, _CTXT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CTXT@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	bl	_XGMAC_GET_BITS_LE
	cbz	w0, LBB0_6
; %bb.5:
	mov	x0, x25
	mov	x1, x24
	bl	_xgbe_get_rx_tstamp
	ldr	w0, [x19, #16]
Lloh10:
	adrp	x20, _RX_PACKET_ATTRIBUTES@GOTPAGE
Lloh11:
	ldr	x20, [x20, _RX_PACKET_ATTRIBUTES@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh12:
	adrp	x8, _CONTEXT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CONTEXT@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	w3, #1
	bl	_XGMAC_SET_BITS
	ldr	w0, [x19, #16]
	ldr	w1, [x20]
Lloh15:
	adrp	x8, _CONTEXT_NEXT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CONTEXT_NEXT@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_XGMAC_SET_BITS
	b	LBB0_36
LBB0_6:
	ldr	w0, [x19, #16]
Lloh18:
	adrp	x27, _RX_PACKET_ATTRIBUTES@GOTPAGE
Lloh19:
	ldr	x27, [x27, _RX_PACKET_ATTRIBUTES@GOTPAGEOFF]
	ldr	w1, [x27]
Lloh20:
	adrp	x8, _CONTEXT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _CONTEXT@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_XGMAC_SET_BITS
	ldr	w0, [x24, #4]
	ldr	w1, [x28]
Lloh23:
	adrp	x8, _CDA@GOTPAGE
Lloh24:
	ldr	x8, [x8, _CDA@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	bl	_XGMAC_GET_BITS_LE
	cbz	w0, LBB0_8
; %bb.7:
	ldr	w0, [x19, #16]
	ldr	w1, [x27]
Lloh26:
	adrp	x8, _CONTEXT_NEXT@GOTPAGE
Lloh27:
	ldr	x8, [x8, _CONTEXT_NEXT@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
	mov	w3, #1
	bl	_XGMAC_SET_BITS
LBB0_8:
	ldr	w0, [x24, #4]
	ldr	w1, [x28]
Lloh29:
	adrp	x8, _FD@GOTPAGE
Lloh30:
	ldr	x8, [x8, _FD@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
	bl	_XGMAC_GET_BITS_LE
	mov	x8, x0
	ldr	w0, [x19, #16]
	ldr	w1, [x27]
Lloh32:
	adrp	x9, _FIRST@GOTPAGE
Lloh33:
	ldr	x9, [x9, _FIRST@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x9]
Lloh35:
	adrp	x25, _RX_NORMAL_DESC2@GOTPAGE
Lloh36:
	ldr	x25, [x25, _RX_NORMAL_DESC2@GOTPAGEOFF]
	cbz	w8, LBB0_11
; %bb.9:
	mov	w3, #1
	bl	_XGMAC_SET_BITS
	ldr	w0, [x24, #8]
	ldr	w1, [x25]
Lloh37:
	adrp	x8, _HL@GOTPAGE
Lloh38:
	ldr	x8, [x8, _HL@GOTPAGEOFF]
Lloh39:
	ldr	w2, [x8]
	bl	_XGMAC_GET_BITS_LE
	str	w0, [x22]
	cbz	w0, LBB0_12
; %bb.10:
	ldr	w8, [x21, #28]
	add	w8, w8, #1
	str	w8, [x21, #28]
	b	LBB0_12
LBB0_11:
	mov	w3, #0
	bl	_XGMAC_SET_BITS
LBB0_12:
	ldr	w0, [x24, #4]
	ldr	w1, [x28]
Lloh40:
	adrp	x8, _RSV@GOTPAGE
Lloh41:
	ldr	x8, [x8, _RSV@GOTPAGEOFF]
Lloh42:
	ldr	w2, [x8]
	bl	_XGMAC_GET_BITS_LE
Lloh43:
	adrp	x26, _L34T@GOTPAGE
Lloh44:
	ldr	x26, [x26, _L34T@GOTPAGEOFF]
	cbz	w0, LBB0_17
; %bb.13:
	ldr	w0, [x19, #16]
	ldr	w1, [x27]
Lloh45:
	adrp	x8, _RSS_HASH@GOTPAGE
Lloh46:
	ldr	x8, [x8, _RSS_HASH@GOTPAGEOFF]
Lloh47:
	ldr	w2, [x8]
	mov	w3, #1
	bl	_XGMAC_SET_BITS
	ldr	w0, [x24, #12]
	bl	_le32_to_cpu
	str	w0, [x19, #24]
	ldr	w0, [x24, #4]
	ldr	w1, [x28]
	ldr	w2, [x26]
	bl	_XGMAC_GET_BITS_LE
	sub	w8, w0, #129
	cmp	w8, #4
	b.hi	LBB0_15
; %bb.14:
Lloh48:
	adrp	x9, l_switch.table.xgbe_dev_read@PAGE
Lloh49:
	add	x9, x9, l_switch.table.xgbe_dev_read@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	b	LBB0_16
LBB0_15:
Lloh50:
	adrp	x8, _PKT_HASH_TYPE_L3@GOTPAGE
Lloh51:
	ldr	x8, [x8, _PKT_HASH_TYPE_L3@GOTPAGEOFF]
LBB0_16:
	ldr	w8, [x8]
	str	w8, [x19, #20]
LBB0_17:
	ldr	w0, [x24, #4]
	ldr	w1, [x28]
Lloh52:
	adrp	x8, _LD@GOTPAGE
Lloh53:
	ldr	x8, [x8, _LD@GOTPAGEOFF]
Lloh54:
	ldr	w2, [x8]
	bl	_XGMAC_GET_BITS_LE
	cbz	w0, LBB0_37
; %bb.18:
	mov	x26, x25
	ldr	w0, [x19, #16]
	ldr	w1, [x27]
Lloh55:
	adrp	x8, _LAST@GOTPAGE
Lloh56:
	ldr	x8, [x8, _LAST@GOTPAGEOFF]
Lloh57:
	ldr	w2, [x8]
	mov	w3, #1
	bl	_XGMAC_SET_BITS
	ldr	w0, [x24, #4]
	ldr	w1, [x28]
Lloh58:
	adrp	x8, _PL@GOTPAGE
Lloh59:
	ldr	x8, [x8, _PL@GOTPAGEOFF]
Lloh60:
	ldr	w2, [x8]
	bl	_XGMAC_GET_BITS_LE
	str	w0, [x22, #4]
	ldr	w8, [x23]
Lloh61:
	adrp	x9, _NETIF_F_RXCSUM@GOTPAGE
Lloh62:
	ldr	x9, [x9, _NETIF_F_RXCSUM@GOTPAGEOFF]
Lloh63:
	ldr	w9, [x9]
Lloh64:
	adrp	x25, _TNPCSUM_DONE@GOTPAGE
Lloh65:
	ldr	x25, [x25, _TNPCSUM_DONE@GOTPAGEOFF]
	tst	w9, w8
	b.eq	LBB0_20
; %bb.19:
	ldr	w0, [x19, #16]
	ldr	w1, [x27]
Lloh66:
	adrp	x8, _CSUM_DONE@GOTPAGE
Lloh67:
	ldr	x8, [x8, _CSUM_DONE@GOTPAGEOFF]
Lloh68:
	ldr	w2, [x8]
	mov	w3, #1
	bl	_XGMAC_SET_BITS
	ldr	w0, [x19, #16]
	ldr	w1, [x27]
	ldr	w2, [x25]
	mov	w3, #1
	bl	_XGMAC_SET_BITS
LBB0_20:
	ldr	w0, [x24, #8]
	ldr	w1, [x26]
Lloh69:
	adrp	x25, _TNP@GOTPAGE
Lloh70:
	ldr	x25, [x25, _TNP@GOTPAGEOFF]
	ldr	w2, [x25]
	bl	_XGMAC_GET_BITS_LE
	cbz	w0, LBB0_24
; %bb.21:
	ldr	w0, [x19, #16]
	ldr	w1, [x27]
	ldr	w2, [x25]
	mov	w3, #1
	bl	_XGMAC_SET_BITS
	ldr	w8, [x21, #24]
	add	w8, w8, #1
	str	w8, [x21, #24]
	ldr	w0, [x24, #4]
	ldr	w1, [x28]
Lloh71:
	adrp	x8, _L34T@GOTPAGE
Lloh72:
	ldr	x8, [x8, _L34T@GOTPAGEOFF]
Lloh73:
	ldr	w2, [x8]
	bl	_XGMAC_GET_BITS_LE
	cmp	w0, #131
	b.eq	LBB0_23
; %bb.22:
	cmp	w0, #128
	b.ne	LBB0_24
LBB0_23:
	ldr	w0, [x19, #16]
	ldr	w1, [x27]
Lloh74:
	adrp	x8, _TNPCSUM_DONE@GOTPAGE
Lloh75:
	ldr	x8, [x8, _TNPCSUM_DONE@GOTPAGEOFF]
Lloh76:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_XGMAC_SET_BITS
LBB0_24:
	ldr	w0, [x24, #4]
	ldr	w1, [x28]
Lloh77:
	adrp	x8, _ES@GOTPAGE
Lloh78:
	ldr	x8, [x8, _ES@GOTPAGEOFF]
Lloh79:
	ldr	w2, [x8]
	bl	_XGMAC_GET_BITS_LE
	mov	x26, x0
	ldr	w0, [x24, #4]
	ldr	w1, [x28]
Lloh80:
	adrp	x8, _ETLT@GOTPAGE
Lloh81:
	ldr	x8, [x8, _ETLT@GOTPAGEOFF]
Lloh82:
	ldr	w2, [x8]
	bl	_XGMAC_GET_BITS_LE
	mov	x25, x0
Lloh83:
	adrp	x28, _rx_status@GOTPAGE
Lloh84:
	ldr	x28, [x28, _rx_status@GOTPAGEOFF]
	ldr	w1, [x28]
Lloh85:
	adrp	x3, l_.str.1@PAGE
Lloh86:
	add	x3, x3, l_.str.1@PAGEOFF
	str	x25, [sp]
	mov	x0, x21
	mov	x2, x23
	mov	x4, x26
	bl	_netif_dbg
	cbz	w26, LBB0_28
; %bb.25:
	cbz	w25, LBB0_28
; %bb.26:
	ldr	w0, [x19, #16]
	ldr	w1, [x27]
Lloh87:
	adrp	x8, _TNP@GOTPAGE
Lloh88:
	ldr	x8, [x8, _TNP@GOTPAGEOFF]
Lloh89:
	ldr	w2, [x8]
	bl	_XGMAC_GET_BITS
	sub	w8, w25, #5
	cmp	w8, #1
	b.hi	LBB0_31
; %bb.27:
	ldr	w0, [x19, #16]
	ldr	w1, [x27]
Lloh90:
	adrp	x8, _CSUM_DONE@GOTPAGE
Lloh91:
	ldr	x8, [x8, _CSUM_DONE@GOTPAGEOFF]
Lloh92:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_XGMAC_SET_BITS
	ldr	w0, [x19, #16]
	ldr	w1, [x27]
Lloh93:
	adrp	x8, _TNPCSUM_DONE@GOTPAGE
Lloh94:
	ldr	x8, [x8, _TNPCSUM_DONE@GOTPAGEOFF]
Lloh95:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_XGMAC_SET_BITS
	ldr	w8, [x21, #20]
	add	w8, w8, #1
	str	w8, [x21, #20]
	b	LBB0_35
LBB0_28:
	cmp	w25, #9
	b.ne	LBB0_35
; %bb.29:
	ldr	w8, [x23]
Lloh96:
	adrp	x9, _NETIF_F_HW_VLAN_CTAG_RX@GOTPAGE
Lloh97:
	ldr	x9, [x9, _NETIF_F_HW_VLAN_CTAG_RX@GOTPAGEOFF]
Lloh98:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_35
; %bb.30:
	ldr	w0, [x19, #16]
	ldr	w1, [x27]
Lloh99:
	adrp	x8, _VLAN_CTAG@GOTPAGE
Lloh100:
	ldr	x8, [x8, _VLAN_CTAG@GOTPAGEOFF]
Lloh101:
	ldr	w2, [x8]
	mov	w3, #1
	bl	_XGMAC_SET_BITS
	ldr	w0, [x24]
Lloh102:
	adrp	x8, _RX_NORMAL_DESC0@GOTPAGE
Lloh103:
	ldr	x8, [x8, _RX_NORMAL_DESC0@GOTPAGEOFF]
Lloh104:
	ldr	w1, [x8]
Lloh105:
	adrp	x8, _OVT@GOTPAGE
Lloh106:
	ldr	x8, [x8, _OVT@GOTPAGEOFF]
Lloh107:
	ldr	w2, [x8]
	bl	_XGMAC_GET_BITS_LE
	mov	x4, x0
	str	w0, [x19, #8]
	ldr	w1, [x28]
Lloh108:
	adrp	x3, l_.str.2@PAGE
Lloh109:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x21
	mov	x2, x23
	bl	_netif_dbg
	b	LBB0_35
LBB0_31:
	sub	w8, w25, #9
	cmp	w8, #1
Lloh110:
	adrp	x23, _TNPCSUM_DONE@GOTPAGE
Lloh111:
	ldr	x23, [x23, _TNPCSUM_DONE@GOTPAGEOFF]
	b.hi	LBB0_34
; %bb.32:
	cbz	w0, LBB0_34
; %bb.33:
	ldr	w0, [x19, #16]
	ldr	w1, [x27]
Lloh112:
	adrp	x8, _CSUM_DONE@GOTPAGE
Lloh113:
	ldr	x8, [x8, _CSUM_DONE@GOTPAGEOFF]
Lloh114:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_XGMAC_SET_BITS
	ldr	w0, [x19, #16]
	ldr	w1, [x27]
	ldr	w2, [x23]
	mov	w3, #0
	bl	_XGMAC_SET_BITS
	ldr	w8, [x21, #16]
	add	w8, w8, #1
	str	w8, [x21, #16]
	b	LBB0_35
LBB0_34:
	ldr	w0, [x19, #12]
Lloh115:
	adrp	x8, _RX_PACKET_ERRORS@GOTPAGE
Lloh116:
	ldr	x8, [x8, _RX_PACKET_ERRORS@GOTPAGEOFF]
Lloh117:
	ldr	w1, [x8]
Lloh118:
	adrp	x8, _FRAME@GOTPAGE
Lloh119:
	ldr	x8, [x8, _FRAME@GOTPAGEOFF]
Lloh120:
	ldr	w2, [x8]
	mov	w3, #1
	bl	_XGMAC_SET_BITS
LBB0_35:
	ldr	x8, [x20]
	lsl	x8, x8, #2
	ldp	x10, x9, [x21]
	ldr	w11, [x9, x8]
	add	w11, w11, #1
	str	w11, [x9, x8]
	ldr	w9, [x22, #4]
	ldr	w11, [x10, x8]
	add	w9, w11, w9
	str	w9, [x10, x8]
	ldr	w1, [x20, #8]
	ldp	w8, w9, [x19]
	sub	w9, w9, #1
	and	w9, w9, w8
	stp	x9, x8, [sp]
Lloh121:
	adrp	x0, l_.str.3@PAGE
Lloh122:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_DBGPR
LBB0_36:
	mov	w0, #0
LBB0_37:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGot	Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpAdd	Lloh85, Lloh86
	.loh AdrpLdrGot	Lloh83, Lloh84
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.loh AdrpLdrGotLdr	Lloh93, Lloh94, Lloh95
	.loh AdrpLdrGotLdr	Lloh90, Lloh91, Lloh92
	.loh AdrpLdrGotLdr	Lloh96, Lloh97, Lloh98
	.loh AdrpAdd	Lloh108, Lloh109
	.loh AdrpLdrGotLdr	Lloh105, Lloh106, Lloh107
	.loh AdrpLdrGotLdr	Lloh102, Lloh103, Lloh104
	.loh AdrpLdrGotLdr	Lloh99, Lloh100, Lloh101
	.loh AdrpLdrGot	Lloh110, Lloh111
	.loh AdrpLdrGotLdr	Lloh112, Lloh113, Lloh114
	.loh AdrpLdrGotLdr	Lloh118, Lloh119, Lloh120
	.loh AdrpLdrGotLdr	Lloh115, Lloh116, Lloh117
	.loh AdrpAdd	Lloh121, Lloh122
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"-->xgbe_dev_read: cur = %d\n"

	.comm	_RX_NORMAL_DESC3,4,2            ; @RX_NORMAL_DESC3
	.comm	_OWN,4,2                        ; @OWN
	.comm	_CTXT,4,2                       ; @CTXT
	.comm	_RX_PACKET_ATTRIBUTES,4,2       ; @RX_PACKET_ATTRIBUTES
	.comm	_CONTEXT,4,2                    ; @CONTEXT
	.comm	_CONTEXT_NEXT,4,2               ; @CONTEXT_NEXT
	.comm	_CDA,4,2                        ; @CDA
	.comm	_FD,4,2                         ; @FD
	.comm	_FIRST,4,2                      ; @FIRST
	.comm	_RX_NORMAL_DESC2,4,2            ; @RX_NORMAL_DESC2
	.comm	_HL,4,2                         ; @HL
	.comm	_RSV,4,2                        ; @RSV
	.comm	_RSS_HASH,4,2                   ; @RSS_HASH
	.comm	_L34T,4,2                       ; @L34T
	.comm	_PKT_HASH_TYPE_L4,4,2           ; @PKT_HASH_TYPE_L4
	.comm	_PKT_HASH_TYPE_L3,4,2           ; @PKT_HASH_TYPE_L3
	.comm	_LD,4,2                         ; @LD
	.comm	_LAST,4,2                       ; @LAST
	.comm	_PL,4,2                         ; @PL
	.comm	_NETIF_F_RXCSUM,4,2             ; @NETIF_F_RXCSUM
	.comm	_CSUM_DONE,4,2                  ; @CSUM_DONE
	.comm	_TNPCSUM_DONE,4,2               ; @TNPCSUM_DONE
	.comm	_TNP,4,2                        ; @TNP
	.comm	_ES,4,2                         ; @ES
	.comm	_ETLT,4,2                       ; @ETLT
	.comm	_rx_status,4,2                  ; @rx_status
l_.str.1:                               ; @.str.1
	.asciz	"err=%u, etlt=%#x\n"

	.comm	_NETIF_F_HW_VLAN_CTAG_RX,4,2    ; @NETIF_F_HW_VLAN_CTAG_RX
	.comm	_VLAN_CTAG,4,2                  ; @VLAN_CTAG
	.comm	_RX_NORMAL_DESC0,4,2            ; @RX_NORMAL_DESC0
	.comm	_OVT,4,2                        ; @OVT
l_.str.2:                               ; @.str.2
	.asciz	"vlan-ctag=%#06x\n"

	.comm	_RX_PACKET_ERRORS,4,2           ; @RX_PACKET_ERRORS
	.comm	_FRAME,4,2                      ; @FRAME
l_.str.3:                               ; @.str.3
	.asciz	"<--xgbe_dev_read: %s - descriptor=%u (cur=%d)\n"

	.no_dead_strip	_xgbe_dev_read
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.xgbe_dev_read
l_switch.table.xgbe_dev_read:
	.quad	_PKT_HASH_TYPE_L4
	.quad	_PKT_HASH_TYPE_L4
	.quad	_PKT_HASH_TYPE_L3
	.quad	_PKT_HASH_TYPE_L4
	.quad	_PKT_HASH_TYPE_L4

.subsections_via_symbols
