	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dwxgmac2_rx_check_timestamp
_dwxgmac2_rx_check_timestamp:           ## @dwxgmac2_rx_check_timestamp
	.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	%rdi, %r14
	movl	8(%rdi), %edi
	callq	_le32_to_cpu
	movl	%eax, %ebx
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_dma_rmb
	movq	_XGMAC_RDES3_OWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ebx, %eax
	sete	%al
	movq	_XGMAC_RDES3_CTXT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%ebx, %ecx
	setne	%cl
	andb	%al, %cl
	movq	_XGMAC_RDES3_TSD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ebx, %eax
	sete	%al
	movq	_XGMAC_RDES3_TSA@GOTPCREL(%rip), %rdx
	andl	(%rdx), %ebx
	setne	%dl
	andb	%al, %dl
	andb	%cl, %dl
	movzbl	%dl, %edi
	callq	_likely
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	cmpl	$-1, (%r14)
	jne	LBB0_4
## %bb.2:
	cmpl	$-1, 4(%r14)
	jne	LBB0_4
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_4:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XGMAC_RDES3_OWN,4,2            ## @XGMAC_RDES3_OWN
	.comm	_XGMAC_RDES3_CTXT,4,2           ## @XGMAC_RDES3_CTXT
	.comm	_XGMAC_RDES3_TSD,4,2            ## @XGMAC_RDES3_TSD
	.comm	_XGMAC_RDES3_TSA,4,2            ## @XGMAC_RDES3_TSA
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_dwxgmac2_rx_check_timestamp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dwxgmac2_rx_check_timestamp
_dwxgmac2_rx_check_timestamp:           ; @dwxgmac2_rx_check_timestamp
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w0, [x0, #8]
	bl	_le32_to_cpu
	mov	x20, x0
	bl	_dma_rmb
Lloh0:
	adrp	x8, _XGMAC_RDES3_OWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XGMAC_RDES3_OWN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w20
	cset	w8, eq
Lloh3:
	adrp	x9, _XGMAC_RDES3_CTXT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _XGMAC_RDES3_CTXT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w20
	cset	w9, ne
	and	w8, w8, w9
Lloh6:
	adrp	x9, _XGMAC_RDES3_TSD@GOTPAGE
Lloh7:
	ldr	x9, [x9, _XGMAC_RDES3_TSD@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w20
Lloh9:
	adrp	x9, _XGMAC_RDES3_TSA@GOTPAGE
Lloh10:
	ldr	x9, [x9, _XGMAC_RDES3_TSA@GOTPAGEOFF]
	cset	w10, eq
Lloh11:
	ldr	w9, [x9]
	tst	w9, w20
	cset	w9, ne
	and	w8, w8, w10
	and	w0, w8, w9
	bl	_likely
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w8, [x19]
	cmn	w8, #1
	b.ne	LBB0_3
; %bb.2:
	ldr	w8, [x19, #4]
	cmn	w8, #1
	b.eq	LBB0_4
LBB0_3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_XGMAC_RDES3_OWN,4,2            ; @XGMAC_RDES3_OWN
	.comm	_XGMAC_RDES3_CTXT,4,2           ; @XGMAC_RDES3_CTXT
	.comm	_XGMAC_RDES3_TSD,4,2            ; @XGMAC_RDES3_TSD
	.comm	_XGMAC_RDES3_TSA,4,2            ; @XGMAC_RDES3_TSA
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_dwxgmac2_rx_check_timestamp
.subsections_via_symbols
