	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv88e6xxx_get_rxts
_mv88e6xxx_get_rxts:                    ## @mv88e6xxx_get_rxts
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movl	%ecx, %r12d
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	leaq	-72(%rbp), %rdi
	callq	___skb_queue_head_init
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	%rbx, %rdi
	leaq	-72(%rbp), %rsi
	callq	_skb_queue_splice_tail_init
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r14, %rdi
	callq	_mv88e6xxx_reg_lock
	movq	%r13, -96(%rbp)                 ## 8-byte Spill
	movl	(%r13), %ebx
	leaq	-64(%rbp), %r13
	movq	%r13, %rdi
	callq	_ARRAY_SIZE
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%r12d, -76(%rbp)                ## 4-byte Spill
	movl	%r12d, %edx
	movq	%r13, %rcx
	movl	%eax, %r8d
	callq	_mv88e6xxx_port_ptp_read
	movl	%eax, %ebx
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_mv88e6xxx_reg_unlock
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
LBB0_2:
	movl	-64(%rbp), %ebx
	movl	-60(%rbp), %r14d
	movl	-56(%rbp), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movl	-52(%rbp), %eax
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
	movq	_MV88E6XXX_PTP_TS_VALID@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_5
## %bb.3:
	movl	%r14d, %r13d
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_mv88e6xxx_reg_lock
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	-76(%rbp), %edx                 ## 4-byte Reload
	xorl	%ecx, %ecx
	callq	_mv88e6xxx_port_ptp_write
	movl	%eax, %r12d
	movq	%r14, %rdi
	movl	%r13d, %r14d
	callq	_mv88e6xxx_reg_unlock
	testl	%r12d, %r12d
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_err
LBB0_5:
	testq	%r15, %r15
	je	LBB0_11
## %bb.6:
	movl	-68(%rbp), %r13d                ## 4-byte Reload
	shll	$16, %r13d
	orl	%r14d, %r13d
	movl	%r13d, -68(%rbp)                ## 4-byte Spill
	leaq	-72(%rbp), %r12
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%r15, %rdi
	callq	_netif_rx_ni
	movq	%r12, %rdi
	callq	___skb_dequeue
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_11
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_mv88e6xxx_ts_valid
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%r15, %rdi
	movl	-80(%rbp), %esi                 ## 4-byte Reload
	callq	_seq_match
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	%ebx, %r14d
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_mv88e6xxx_reg_lock
	movq	%rbx, %rdi
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	callq	_timecounter_cyc2time
	movl	%eax, %r13d
	movq	%rbx, %rdi
	movl	%r14d, %ebx
	callq	_mv88e6xxx_reg_unlock
	movq	%r15, %rdi
	callq	_skb_hwtstamps
	movq	%r12, %r14
	movq	%rax, %r12
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	%r13d, %edi
	callq	_ns_to_ktime
	movl	%eax, (%r12)
	movq	%r14, %r12
	movq	_MV88E6XXX_PTP_TS_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %ebx
	jmp	LBB0_10
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to get the receive time stamp\n"

	.comm	_MV88E6XXX_PTP_TS_VALID,4,2     ## @MV88E6XXX_PTP_TS_VALID
L_.str.1:                               ## @.str.1
	.asciz	"failed to clear the receive status\n"

	.no_dead_strip	_mv88e6xxx_get_rxts
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mv88e6xxx_get_rxts
_mv88e6xxx_get_rxts:                    ; @mv88e6xxx_get_rxts
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x21, x4
	mov	x23, x3
	mov	x20, x2
	mov	x24, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	stp	xzr, xzr, [sp, #8]
	mov	x0, sp
	bl	___skb_queue_head_init
	mov	x0, x21
	bl	_spin_lock_irqsave
	mov	x1, sp
	mov	x0, x21
	bl	_skb_queue_splice_tail_init
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	bl	_mv88e6xxx_reg_lock
	ldr	w21, [x24]
	add	x0, sp, #8
	bl	_ARRAY_SIZE
	mov	x4, x0
	add	x3, sp, #8
	mov	x0, x19
	mov	x1, x21
	mov	x2, x23
	bl	_mv88e6xxx_port_ptp_read
	mov	x21, x0
	mov	x0, x19
	bl	_mv88e6xxx_reg_unlock
	cbz	w21, LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
LBB0_2:
	ldp	w21, w25, [sp, #8]
	ldp	w27, w22, [sp, #16]
Lloh5:
	adrp	x26, _MV88E6XXX_PTP_TS_VALID@GOTPAGE
Lloh6:
	ldr	x26, [x26, _MV88E6XXX_PTP_TS_VALID@GOTPAGEOFF]
	ldr	w8, [x26]
	tst	w8, w21
	b.eq	LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_mv88e6xxx_reg_lock
	ldr	w1, [x24]
	mov	x0, x19
	mov	x2, x23
	mov	w3, #0
	bl	_mv88e6xxx_port_ptp_write
	mov	x23, x0
	mov	x0, x19
	bl	_mv88e6xxx_reg_unlock
	cbz	w23, LBB0_5
; %bb.4:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
LBB0_5:
	cbz	x20, LBB0_11
; %bb.6:
	orr	w23, w25, w27, lsl #16
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x20
	bl	_netif_rx_ni
	mov	x0, sp
	bl	___skb_dequeue
	mov	x20, x0
	cbz	x0, LBB0_11
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_mv88e6xxx_ts_valid
	cbz	x0, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_seq_match
	cbz	x0, LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x19
	bl	_mv88e6xxx_reg_lock
	mov	x0, x19
	mov	x1, x23
	bl	_timecounter_cyc2time
	mov	x24, x0
	mov	x0, x19
	bl	_mv88e6xxx_reg_unlock
	mov	x0, x20
	bl	_skb_hwtstamps
	mov	x25, x0
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	x0, x24
	bl	_ns_to_ktime
	str	w0, [x25]
	ldr	w8, [x26]
	bic	w21, w21, w8
	b	LBB0_7
LBB0_11:
	ldr	x8, [sp, #24]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to get the receive time stamp\n"

	.comm	_MV88E6XXX_PTP_TS_VALID,4,2     ; @MV88E6XXX_PTP_TS_VALID
l_.str.1:                               ; @.str.1
	.asciz	"failed to clear the receive status\n"

	.no_dead_strip	_mv88e6xxx_get_rxts
.subsections_via_symbols
