	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dwxgmac2_get_rx_hash
_dwxgmac2_get_rx_hash:                  ## @dwxgmac2_get_rx_hash
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	4(%rdi), %edi
	callq	_le32_to_cpu
	movq	_XGMAC_RDES3_RSV@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.1:
	movq	_XGMAC_RDES3_L34T@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_XGMAC_RDES3_L34T_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shrl	%cl, %eax
	andl	$-4, %eax
	cmpl	$128, %eax
	jne	LBB0_2
## %bb.3:
	movq	_PKT_HASH_TYPE_L4@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_2:
	movq	_PKT_HASH_TYPE_L3@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movl	(%rbx), %edi
	callq	_le32_to_cpu
	movl	%eax, (%r14)
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XGMAC_RDES3_RSV,4,2            ## @XGMAC_RDES3_RSV
	.comm	_XGMAC_RDES3_L34T,4,2           ## @XGMAC_RDES3_L34T
	.comm	_XGMAC_RDES3_L34T_SHIFT,4,2     ## @XGMAC_RDES3_L34T_SHIFT
	.comm	_PKT_HASH_TYPE_L4,4,2           ## @PKT_HASH_TYPE_L4
	.comm	_PKT_HASH_TYPE_L3,4,2           ## @PKT_HASH_TYPE_L3
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_dwxgmac2_get_rx_hash
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dwxgmac2_get_rx_hash
_dwxgmac2_get_rx_hash:                  ; @dwxgmac2_get_rx_hash
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	ldr	w0, [x0, #4]
	bl	_le32_to_cpu
Lloh0:
	adrp	x8, _XGMAC_RDES3_RSV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XGMAC_RDES3_RSV@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _XGMAC_RDES3_L34T@GOTPAGE
Lloh4:
	ldr	x8, [x8, _XGMAC_RDES3_L34T@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh6:
	adrp	x9, _XGMAC_RDES3_L34T_SHIFT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _XGMAC_RDES3_L34T_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	lsr	w8, w8, w9
Lloh9:
	adrp	x9, _PKT_HASH_TYPE_L4@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PKT_HASH_TYPE_L4@GOTPAGEOFF]
Lloh11:
	adrp	x10, _PKT_HASH_TYPE_L3@GOTPAGE
Lloh12:
	ldr	x10, [x10, _PKT_HASH_TYPE_L3@GOTPAGEOFF]
	and	w8, w8, #0xfffffffc
	cmp	w8, #128
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
	str	w8, [x20]
	ldr	w0, [x21]
	bl	_le32_to_cpu
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19]
	b	LBB0_3
LBB0_2:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_XGMAC_RDES3_RSV,4,2            ; @XGMAC_RDES3_RSV
	.comm	_XGMAC_RDES3_L34T,4,2           ; @XGMAC_RDES3_L34T
	.comm	_XGMAC_RDES3_L34T_SHIFT,4,2     ; @XGMAC_RDES3_L34T_SHIFT
	.comm	_PKT_HASH_TYPE_L4,4,2           ; @PKT_HASH_TYPE_L4
	.comm	_PKT_HASH_TYPE_L3,4,2           ; @PKT_HASH_TYPE_L3
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_dwxgmac2_get_rx_hash
.subsections_via_symbols
