	.file	"extr_dwxgmac2_descs.c_dwxgmac2_get_rx_hash.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	dwxgmac2_get_rx_hash, @function
dwxgmac2_get_rx_hash:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	edi, DWORD PTR 4[rdi]
	mov	rbx, rsi
	call	le32_to_cpu@PLT
	mov	r8d, DWORD PTR EINVAL[rip]
	neg	r8d
	test	DWORD PTR XGMAC_RDES3_RSV[rip], eax
	je	.L1
	mov	ecx, DWORD PTR XGMAC_RDES3_L34T_SHIFT[rip]
	and	eax, DWORD PTR XGMAC_RDES3_L34T[rip]
	shr	eax, cl
	add	eax, -128
	cmp	eax, 4
	mov	eax, DWORD PTR PKT_HASH_TYPE_L4[rip]
	cmovnb	eax, DWORD PTR PKT_HASH_TYPE_L3[rip]
	mov	DWORD PTR 0[rbp], eax
	mov	edi, DWORD PTR [r12]
	call	le32_to_cpu@PLT
	xor	r8d, r8d
	mov	DWORD PTR [rbx], eax
.L1:
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	eax, r8d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	dwxgmac2_get_rx_hash, .-dwxgmac2_get_rx_hash
	.comm	XGMAC_RDES3_RSV,4,4
	.comm	XGMAC_RDES3_L34T_SHIFT,4,4
	.comm	XGMAC_RDES3_L34T,4,4
	.comm	PKT_HASH_TYPE_L4,4,4
	.comm	PKT_HASH_TYPE_L3,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_dwxgmac2_descs.c_dwxgmac2_get_rx_hash.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dwxgmac2_get_rx_hash, %function
dwxgmac2_get_rx_hash:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r0, [r0, #4]
	mov	r5, r1
	mov	r6, r2
	bl	le32_to_cpu
	ldr	r3, .L9
	ldr	r3, [r3]
	tst	r0, r3
	bne	.L8
	ldr	r3, .L9+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L8:
	ldr	r3, .L9+8
	ldr	r2, .L9+12
	ldr	r3, [r3]
	ldr	r2, [r2]
	and	r3, r3, r0
	lsr	r3, r3, r2
	sub	r3, r3, #128
	cmp	r3, #3
	ldrls	r3, .L9+16
	ldrhi	r3, .L9+20
	ldr	r3, [r3]
	str	r3, [r6]
	ldr	r0, [r4]
	bl	le32_to_cpu
	mov	r3, r0
	mov	r0, #0
	str	r3, [r5]
	pop	{r4, r5, r6, pc}
.L10:
	.align	2
.L9:
	.word	XGMAC_RDES3_RSV
	.word	EINVAL
	.word	XGMAC_RDES3_L34T
	.word	XGMAC_RDES3_L34T_SHIFT
	.word	PKT_HASH_TYPE_L4
	.word	PKT_HASH_TYPE_L3
	.size	dwxgmac2_get_rx_hash, .-dwxgmac2_get_rx_hash
	.comm	XGMAC_RDES3_RSV,4,4
	.comm	XGMAC_RDES3_L34T_SHIFT,4,4
	.comm	XGMAC_RDES3_L34T,4,4
	.comm	PKT_HASH_TYPE_L4,4,4
	.comm	PKT_HASH_TYPE_L3,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
