	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv88e6xxx_txtstamp_work
_mv88e6xxx_txtstamp_work:               ## @mv88e6xxx_txtstamp_work
	.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	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%eax, %eax
	cmpq	$0, 8(%rsi)
	je	LBB0_13
## %bb.1:
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %r15
	callq	_mv88e6xxx_reg_lock
	movl	16(%r13), %r14d
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movl	(%r15), %r12d
	leaq	-64(%rbp), %r15
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%r12d, %edx
	movq	%r15, %rcx
	movq	%rbx, %r14
	movl	%eax, %r8d
	callq	_mv88e6xxx_port_ptp_read
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_mv88e6xxx_reg_unlock
	testl	%ebx, %ebx
	jne	LBB0_11
## %bb.2:
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	_MV88E6XXX_PTP_TS_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -64(%rbp)
	je	LBB0_3
## %bb.6:
	movq	%r14, %rdi
	callq	_mv88e6xxx_reg_lock
	movl	16(%r13), %esi
	movl	(%r15), %edx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_mv88e6xxx_port_ptp_write
	movq	%r14, %rdi
	callq	_mv88e6xxx_reg_unlock
	movq	_MV88E6XXX_PTP_TS_STATUS_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-64(%rbp), %eax
	movq	_MV88E6XXX_PTP_TS_STATUS_NORMAL@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_7
## %bb.8:
	movl	-52(%rbp), %eax
	cmpl	(%r13), %eax
	jne	LBB0_9
## %bb.15:
	leaq	-72(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	-56(%rbp), %ebx
	shll	$16, %ebx
	orl	-60(%rbp), %ebx
	movq	%r14, %rdi
	callq	_mv88e6xxx_reg_lock
	leaq	4(%r14), %rdi
	movl	%ebx, %esi
	callq	_timecounter_cyc2time
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_mv88e6xxx_reg_unlock
	movl	%ebx, %edi
	callq	_ns_to_ktime
	movl	%eax, -72(%rbp)
	movl	(%r14), %ebx
	movl	16(%r13), %r14d
	movl	%eax, %edi
	callq	_ktime_to_ns
	movl	(%r13), %r9d
	movl	-64(%rbp), %r8d
	movl	-52(%rbp), %ecx
	movl	%ecx, (%rsp)
	leaq	L_.str.3(%rip), %rsi
	movl	%ebx, %edi
	movl	%r14d, %edx
	movl	%eax, %ecx
	callq	_dev_dbg
	movq	8(%r13), %rbx
	movq	$0, 8(%r13)
	movq	_MV88E6XXX_HWTSTAMP_TX_IN_PROGRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$4, %r13
	movq	%r13, %rsi
	callq	_clear_bit_unlock
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_skb_complete_tx_timestamp
	jmp	LBB0_12
LBB0_3:
	movq	_TX_TSTAMP_TIMEOUT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	24(%r13), %rdi
	callq	_time_is_before_jiffies
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_10
LBB0_7:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_10
LBB0_9:
	leaq	L_.str.2(%rip), %rsi
LBB0_10:
	movl	(%r14), %edi
	movl	16(%r13), %edx
	callq	_dev_warn
LBB0_11:
	movq	8(%r13), %rdi
	callq	_dev_kfree_skb_any
	movq	$0, 8(%r13)
	movq	_MV88E6XXX_HWTSTAMP_TX_IN_PROGRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$4, %r13
	movq	%r13, %rsi
	callq	_clear_bit_unlock
LBB0_12:
	xorl	%eax, %eax
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_16
## %bb.14:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	$1, %eax
	jmp	LBB0_13
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MV88E6XXX_PTP_TS_VALID,4,2     ## @MV88E6XXX_PTP_TS_VALID
	.comm	_TX_TSTAMP_TIMEOUT,8,3          ## @TX_TSTAMP_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"p%d: clearing tx timestamp hang\n"

	.comm	_MV88E6XXX_PTP_TS_STATUS_MASK,4,2 ## @MV88E6XXX_PTP_TS_STATUS_MASK
	.comm	_MV88E6XXX_PTP_TS_STATUS_NORMAL,4,2 ## @MV88E6XXX_PTP_TS_STATUS_NORMAL
L_.str.1:                               ## @.str.1
	.asciz	"p%d: tx timestamp overrun\n"

L_.str.2:                               ## @.str.2
	.asciz	"p%d: unexpected seq. id\n"

L_.str.3:                               ## @.str.3
	.asciz	"p%d: txtstamp %llx status 0x%04x skb ID 0x%04x hw ID 0x%04x\n"

	.comm	_MV88E6XXX_HWTSTAMP_TX_IN_PROGRESS,4,2 ## @MV88E6XXX_HWTSTAMP_TX_IN_PROGRESS
	.no_dead_strip	_mv88e6xxx_txtstamp_work
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mv88e6xxx_txtstamp_work
_mv88e6xxx_txtstamp_work:               ; @mv88e6xxx_txtstamp_work
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	x8, [x1, #8]
	cbz	x8, LBB0_12
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	ldr	x23, [x8]
	bl	_mv88e6xxx_reg_lock
	ldr	w21, [x19, #16]
	ldr	w22, [x23]
	add	x0, sp, #8
	bl	_ARRAY_SIZE
	mov	x4, x0
	add	x3, sp, #8
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_mv88e6xxx_port_ptp_read
	mov	x21, x0
	mov	x0, x20
	bl	_mv88e6xxx_reg_unlock
	cbnz	w21, LBB0_11
; %bb.2:
	ldr	w8, [sp, #8]
Lloh3:
	adrp	x9, _MV88E6XXX_PTP_TS_VALID@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MV88E6XXX_PTP_TS_VALID@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.3:
	mov	x0, x20
	bl	_mv88e6xxx_reg_lock
	ldr	w1, [x19, #16]
	ldr	w2, [x23]
	mov	x0, x20
	mov	w3, #0
	bl	_mv88e6xxx_port_ptp_write
	mov	x0, x20
	bl	_mv88e6xxx_reg_unlock
	ldr	w8, [sp, #8]
Lloh6:
	adrp	x9, _MV88E6XXX_PTP_TS_STATUS_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MV88E6XXX_PTP_TS_STATUS_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh9:
	adrp	x9, _MV88E6XXX_PTP_TS_STATUS_NORMAL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MV88E6XXX_PTP_TS_STATUS_NORMAL@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_8
; %bb.4:
	ldr	w8, [sp, #20]
	ldr	w9, [x19]
	cmp	w8, w9
	b.ne	LBB0_9
; %bb.5:
	mov	x0, sp
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldp	w9, w8, [sp, #12]
	orr	w21, w9, w8, lsl #16
	mov	x0, x20
	bl	_mv88e6xxx_reg_lock
	add	x0, x20, #4
	mov	x1, x21
	bl	_timecounter_cyc2time
	mov	x21, x0
	mov	x0, x20
	bl	_mv88e6xxx_reg_unlock
	mov	x0, x21
	bl	_ns_to_ktime
	str	w0, [sp]
	ldr	w20, [x20]
	ldr	w21, [x19, #16]
	bl	_ktime_to_ns
	mov	x3, x0
	ldr	w5, [x19]
	ldr	w4, [sp, #8]
	ldr	w6, [sp, #20]
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_dev_dbg
	ldr	x20, [x19, #8]
	str	xzr, [x19, #8]
Lloh14:
	adrp	x8, _MV88E6XXX_HWTSTAMP_TX_IN_PROGRESS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MV88E6XXX_HWTSTAMP_TX_IN_PROGRESS@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	add	x1, x19, #4
	bl	_clear_bit_unlock
	mov	x1, sp
	mov	x0, x20
	bl	_skb_complete_tx_timestamp
	b	LBB0_12
LBB0_6:
	ldr	x8, [x19, #24]
Lloh17:
	adrp	x9, _TX_TSTAMP_TIMEOUT@GOTPAGE
Lloh18:
	ldr	x9, [x9, _TX_TSTAMP_TIMEOUT@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_time_is_before_jiffies
	cbz	x0, LBB0_15
; %bb.7:
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_10
LBB0_8:
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_9:
Lloh24:
	adrp	x1, l_.str.2@PAGE
Lloh25:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_10:
	ldr	w0, [x20]
	ldr	w2, [x19, #16]
	bl	_dev_warn
LBB0_11:
	ldr	x0, [x19, #8]
	bl	_dev_kfree_skb_any
	str	xzr, [x19, #8]
Lloh26:
	adrp	x8, _MV88E6XXX_HWTSTAMP_TX_IN_PROGRESS@GOTPAGE
Lloh27:
	ldr	x8, [x8, _MV88E6XXX_HWTSTAMP_TX_IN_PROGRESS@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	add	x1, x19, #4
	bl	_clear_bit_unlock
LBB0_12:
	mov	w0, #0
LBB0_13:
	ldr	x8, [sp, #24]
Lloh29:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh30:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.14:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_15:
	mov	w0, #1
	b	LBB0_13
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_MV88E6XXX_PTP_TS_VALID,4,2     ; @MV88E6XXX_PTP_TS_VALID
	.comm	_TX_TSTAMP_TIMEOUT,8,3          ; @TX_TSTAMP_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"p%d: clearing tx timestamp hang\n"

	.comm	_MV88E6XXX_PTP_TS_STATUS_MASK,4,2 ; @MV88E6XXX_PTP_TS_STATUS_MASK
	.comm	_MV88E6XXX_PTP_TS_STATUS_NORMAL,4,2 ; @MV88E6XXX_PTP_TS_STATUS_NORMAL
l_.str.1:                               ; @.str.1
	.asciz	"p%d: tx timestamp overrun\n"

l_.str.2:                               ; @.str.2
	.asciz	"p%d: unexpected seq. id\n"

l_.str.3:                               ; @.str.3
	.asciz	"p%d: txtstamp %llx status 0x%04x skb ID 0x%04x hw ID 0x%04x\n"

	.comm	_MV88E6XXX_HWTSTAMP_TX_IN_PROGRESS,4,2 ; @MV88E6XXX_HWTSTAMP_TX_IN_PROGRESS
	.no_dead_strip	_mv88e6xxx_txtstamp_work
.subsections_via_symbols
