	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function send_nic_timestamp_pkt
_send_nic_timestamp_pkt:                ## @send_nic_timestamp_pkt
	.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
	movl	%ecx, %r13d
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	16(%rdx), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	addq	$8, %rsi
	movl	$4, %edx
	callq	_octeon_alloc_soft_command_resp
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movl	(%r12), %eax
	movq	_REQTYPE_NORESP_NET@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_4
## %bb.3:
	movq	_REQTYPE_RESP_NET@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_1:
	movq	(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_IQ_SEND_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_10
LBB0_4:
	movq	_REQTYPE_NORESP_NET_SG@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_7
## %bb.5:
	movq	_REQTYPE_RESP_NET_SG@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	movl	%eax, (%r12)
LBB0_7:
	movq	_handle_timestamp@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movl	(%r14), %eax
	movl	%eax, 12(%rbx)
	movl	4(%r12), %eax
	movl	%eax, 8(%rbx)
	movq	%r15, %rdi
	callq	_OCTEON_CN23XX_PF
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	movq	(%rbx,%rcx,4), %r9
	xorl	%edx, %edx
	testl	%r13d, %r13d
	sete	%dl
	movl	8(%rbx), %esi
	movl	(%r12), %eax
	movl	%eax, (%rsp)
	movq	%r15, %rdi
	movq	%rbx, %rcx
	movq	%rbx, %r8
	callq	_octeon_send_command
	movl	%eax, %r12d
	movq	_IQ_SEND_FAILED@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_9
## %bb.8:
	movq	(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_octeon_free_soft_command
	jmp	LBB0_10
LBB0_9:
	movq	_tx_queued@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	(%rdi), %edx
	leaq	L_.str.2(%rip), %rcx
	callq	_netif_info
LBB0_10:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No memory for timestamped data packet\n"

	.comm	_IQ_SEND_FAILED,4,2             ## @IQ_SEND_FAILED
	.comm	_REQTYPE_NORESP_NET,4,2         ## @REQTYPE_NORESP_NET
	.comm	_REQTYPE_RESP_NET,4,2           ## @REQTYPE_RESP_NET
	.comm	_REQTYPE_NORESP_NET_SG,4,2      ## @REQTYPE_NORESP_NET_SG
	.comm	_REQTYPE_RESP_NET_SG,4,2        ## @REQTYPE_RESP_NET_SG
	.comm	_handle_timestamp,4,2           ## @handle_timestamp
L_.str.1:                               ## @.str.1
	.asciz	"timestamp data packet failed status: %x\n"

	.comm	_tx_queued,4,2                  ## @tx_queued
L_.str.2:                               ## @.str.2
	.asciz	"Queued timestamp packet\n"

	.no_dead_strip	_send_nic_timestamp_pkt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function send_nic_timestamp_pkt
_send_nic_timestamp_pkt:                ; @send_nic_timestamp_pkt
	.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	x23, x3
	mov	x24, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x20, [x2, #16]
	add	x1, x1, #8
	mov	w2, #4
	bl	_octeon_alloc_soft_command_resp
	str	x0, [x24, #8]
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	ldr	w8, [x22]
Lloh0:
	adrp	x9, _REQTYPE_NORESP_NET@GOTPAGE
Lloh1:
	ldr	x9, [x9, _REQTYPE_NORESP_NET@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _REQTYPE_RESP_NET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REQTYPE_RESP_NET@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:
	ldr	x0, [x19]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh7:
	adrp	x8, _IQ_SEND_FAILED@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IQ_SEND_FAILED@GOTPAGEOFF]
Lloh9:
	ldr	w22, [x8]
	b	LBB0_10
LBB0_4:
Lloh10:
	adrp	x9, _REQTYPE_NORESP_NET_SG@GOTPAGE
Lloh11:
	ldr	x9, [x9, _REQTYPE_NORESP_NET_SG@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_7
; %bb.5:
Lloh13:
	adrp	x8, _REQTYPE_RESP_NET_SG@GOTPAGE
Lloh14:
	ldr	x8, [x8, _REQTYPE_RESP_NET_SG@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	str	w8, [x22]
LBB0_7:
Lloh15:
	adrp	x8, _handle_timestamp@GOTPAGE
Lloh16:
	ldr	x8, [x8, _handle_timestamp@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x21, #16]
	ldr	w8, [x24]
	ldr	w9, [x22, #4]
	stp	w9, w8, [x21, #8]
	mov	x0, x19
	bl	_OCTEON_CN23XX_PF
	cmp	x0, #0
	cset	w8, ne
	lsl	x8, x8, #2
	ldr	x5, [x21, x8]
	cmp	w23, #0
	cset	w2, eq
	ldr	w1, [x21, #8]
	ldr	w6, [x22]
	mov	x0, x19
	mov	x3, x21
	mov	x4, x21
	bl	_octeon_send_command
	mov	x22, x0
Lloh18:
	adrp	x8, _IQ_SEND_FAILED@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IQ_SEND_FAILED@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_9
; %bb.8:
	ldr	x0, [x19]
	str	x22, [sp]
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	mov	x0, x19
	mov	x1, x21
	bl	_octeon_free_soft_command
	b	LBB0_10
LBB0_9:
Lloh23:
	adrp	x8, _tx_queued@GOTPAGE
Lloh24:
	ldr	x8, [x8, _tx_queued@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	ldr	w2, [x20]
Lloh26:
	adrp	x3, l_.str.2@PAGE
Lloh27:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_netif_info
LBB0_10:
	mov	x0, x22
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No memory for timestamped data packet\n"

	.comm	_IQ_SEND_FAILED,4,2             ; @IQ_SEND_FAILED
	.comm	_REQTYPE_NORESP_NET,4,2         ; @REQTYPE_NORESP_NET
	.comm	_REQTYPE_RESP_NET,4,2           ; @REQTYPE_RESP_NET
	.comm	_REQTYPE_NORESP_NET_SG,4,2      ; @REQTYPE_NORESP_NET_SG
	.comm	_REQTYPE_RESP_NET_SG,4,2        ; @REQTYPE_RESP_NET_SG
	.comm	_handle_timestamp,4,2           ; @handle_timestamp
l_.str.1:                               ; @.str.1
	.asciz	"timestamp data packet failed status: %x\n"

	.comm	_tx_queued,4,2                  ; @tx_queued
l_.str.2:                               ; @.str.2
	.asciz	"Queued timestamp packet\n"

	.no_dead_strip	_send_nic_timestamp_pkt
.subsections_via_symbols
