	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_timestamp
_handle_timestamp:                      ## @handle_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	(%rdx), %rax
	movq	(%rax), %r15
	movq	8(%rax), %r12
	movq	16(%r12), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	(%r15), %r13
	movq	_OCTEON_REQUEST_DONE@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	je	LBB0_2
## %bb.1:
	movq	%r15, %rbx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r15
	movq	%rsi, %rdi
	callq	_CVM_CAST64
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movq	%rbx, %r15
	movl	%eax, %edx
	callq	_dev_err
	movq	$0, (%r13)
LBB0_2:
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_octeon_swap_8B_data
	movq	%r14, %rdi
	callq	_skb_shinfo
	movq	_SKBTX_IN_PROGRESS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%edi, %edi
	andl	(%rax), %ecx
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	(%r13), %rbx
	movq	_tx_done@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r12), %edx
	leaq	L_.str.1(%rip), %rcx
	movq	%r12, %rdi
	movq	%r14, %r8
	movq	%rbx, %r9
	callq	_netif_info
	addq	(%r12), %rbx
	movq	%rbx, %rdi
	callq	_ns_to_ktime
	movl	%eax, -48(%rbp)
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_skb_tstamp_tx
LBB0_4:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_octeon_free_soft_command
	movq	%r14, %rdi
	callq	_tx_buffer_free
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OCTEON_REQUEST_DONE,8,3        ## @OCTEON_REQUEST_DONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Tx timestamp instruction failed. Status: %llx\n"

	.comm	_SKBTX_IN_PROGRESS,4,2          ## @SKBTX_IN_PROGRESS
	.comm	_tx_done,4,2                    ## @tx_done
L_.str.1:                               ## @.str.1
	.asciz	"Got resulting SKBTX_HW_TSTAMP skb=%p ns=%016llu\n"

	.no_dead_strip	_handle_timestamp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_timestamp
_handle_timestamp:                      ; @handle_timestamp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x2
	ldr	x8, [x2]
	ldp	x20, x22, [x8]
	ldr	x21, [x22, #16]
	ldr	x23, [x20]
Lloh0:
	adrp	x8, _OCTEON_REQUEST_DONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OCTEON_REQUEST_DONE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x1
	b.eq	LBB0_2
; %bb.1:
	ldr	x24, [x21]
	mov	x0, x1
	bl	_CVM_CAST64
	mov	x2, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x24
	bl	_dev_err
	str	xzr, [x23]
LBB0_2:
	mov	x0, x23
	mov	w1, #1
	bl	_octeon_swap_8B_data
	mov	x0, x19
	bl	_skb_shinfo
	ldr	w8, [x0]
Lloh5:
	adrp	x9, _SKBTX_IN_PROGRESS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SKBTX_IN_PROGRESS@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x23, [x23]
Lloh8:
	adrp	x8, _tx_done@GOTPAGE
Lloh9:
	ldr	x8, [x8, _tx_done@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	w2, [x22, #8]
Lloh11:
	adrp	x3, l_.str.1@PAGE
Lloh12:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	x4, x19
	mov	x5, x23
	bl	_netif_info
	ldr	x8, [x22]
	add	x0, x8, x23
	bl	_ns_to_ktime
	str	w0, [sp, #8]
	add	x1, sp, #8
	mov	x0, x19
	bl	_skb_tstamp_tx
LBB0_4:
	mov	x0, x21
	mov	x1, x20
	bl	_octeon_free_soft_command
	mov	x0, x19
	bl	_tx_buffer_free
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_OCTEON_REQUEST_DONE,8,3        ; @OCTEON_REQUEST_DONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Tx timestamp instruction failed. Status: %llx\n"

	.comm	_SKBTX_IN_PROGRESS,4,2          ; @SKBTX_IN_PROGRESS
	.comm	_tx_done,4,2                    ; @tx_done
l_.str.1:                               ; @.str.1
	.asciz	"Got resulting SKBTX_HW_TSTAMP skb=%p ns=%016llu\n"

	.no_dead_strip	_handle_timestamp
.subsections_via_symbols
