	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_ptp_hw_read_rx_ts
_qed_ptp_hw_read_rx_ts:                 ## @qed_ptp_hw_read_rx_ts
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	callq	_QED_LEADING_HWFN
	movq	%rax, %rbx
	movq	(%rax), %r14
	movl	$0, (%r15)
	movq	_NIG_REG_LLH_PTP_HOST_BUF_SEQID@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_qed_rd
	movq	_QED_TIMESTAMP_MASK@GOTPCREL(%rip), %r12
	testl	%eax, (%r12)
	je	LBB0_1
## %bb.2:
	movq	_NIG_REG_LLH_PTP_HOST_BUF_TS_LSB@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_qed_rd
	movq	_NIG_REG_LLH_PTP_HOST_BUF_TS_MSB@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_qed_rd
	movl	(%r15), %edx
	movl	(%r12), %ecx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_qed_wr
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_DP_INFO
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NIG_REG_LLH_PTP_HOST_BUF_SEQID,4,2 ## @NIG_REG_LLH_PTP_HOST_BUF_SEQID
	.comm	_QED_TIMESTAMP_MASK,4,2         ## @QED_TIMESTAMP_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid Rx timestamp, buf_seqid = %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NIG_REG_LLH_PTP_HOST_BUF_TS_LSB,4,2 ## @NIG_REG_LLH_PTP_HOST_BUF_TS_LSB
	.comm	_NIG_REG_LLH_PTP_HOST_BUF_TS_MSB,4,2 ## @NIG_REG_LLH_PTP_HOST_BUF_TS_MSB
	.no_dead_strip	_qed_ptp_hw_read_rx_ts
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qed_ptp_hw_read_rx_ts
_qed_ptp_hw_read_rx_ts:                 ; @qed_ptp_hw_read_rx_ts
	.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	x21, x1
	bl	_QED_LEADING_HWFN
	mov	x19, x0
	ldr	x20, [x0]
	str	wzr, [x21]
Lloh0:
	adrp	x21, _NIG_REG_LLH_PTP_HOST_BUF_SEQID@GOTPAGE
Lloh1:
	ldr	x21, [x21, _NIG_REG_LLH_PTP_HOST_BUF_SEQID@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x1, x20
	bl	_qed_rd
Lloh2:
	adrp	x22, _QED_TIMESTAMP_MASK@GOTPAGE
Lloh3:
	ldr	x22, [x22, _QED_TIMESTAMP_MASK@GOTPAGEOFF]
	ldr	w8, [x22]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
Lloh4:
	adrp	x8, _NIG_REG_LLH_PTP_HOST_BUF_TS_LSB@GOTPAGE
Lloh5:
	ldr	x8, [x8, _NIG_REG_LLH_PTP_HOST_BUF_TS_LSB@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_qed_rd
Lloh7:
	adrp	x8, _NIG_REG_LLH_PTP_HOST_BUF_TS_MSB@GOTPAGE
Lloh8:
	ldr	x8, [x8, _NIG_REG_LLH_PTP_HOST_BUF_TS_MSB@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_qed_rd
	ldr	w2, [x21]
	ldr	w3, [x22]
	mov	x0, x19
	mov	x1, x20
	bl	_qed_wr
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	mov	x2, x0
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_DP_INFO
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_NIG_REG_LLH_PTP_HOST_BUF_SEQID,4,2 ; @NIG_REG_LLH_PTP_HOST_BUF_SEQID
	.comm	_QED_TIMESTAMP_MASK,4,2         ; @QED_TIMESTAMP_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid Rx timestamp, buf_seqid = %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NIG_REG_LLH_PTP_HOST_BUF_TS_LSB,4,2 ; @NIG_REG_LLH_PTP_HOST_BUF_TS_LSB
	.comm	_NIG_REG_LLH_PTP_HOST_BUF_TS_MSB,4,2 ; @NIG_REG_LLH_PTP_HOST_BUF_TS_MSB
	.no_dead_strip	_qed_ptp_hw_read_rx_ts
.subsections_via_symbols
