	.file	"extr_lio_main.c_send_nic_timestamp_pkt.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"No memory for timestamped data packet\n"
	.align 8
.LC1:
	.string	"timestamp data packet failed status: %x\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"Queued timestamp packet\n"
	.text
	.p2align 4
	.type	send_nic_timestamp_pkt, @function
send_nic_timestamp_pkt:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rsi
	add	rsi, 8
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, ecx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdx
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	r14, QWORD PTR 16[rdx]
	mov	edx, 4
	call	octeon_alloc_soft_command_resp@PLT
	mov	QWORD PTR 8[rbx], rax
	test	rax, rax
	je	.L11
	mov	rbp, rax
	mov	eax, DWORD PTR [r15]
	cmp	eax, DWORD PTR REQTYPE_NORESP_NET[rip]
	je	.L12
	cmp	eax, DWORD PTR REQTYPE_NORESP_NET_SG[rip]
	je	.L13
.L5:
	mov	eax, DWORD PTR handle_timestamp[rip]
	mov	rdi, r12
	mov	DWORD PTR 16[rbp], eax
	mov	eax, DWORD PTR [rbx]
	mov	DWORD PTR 12[rbp], eax
	mov	eax, DWORD PTR 4[r15]
	mov	DWORD PTR 8[rbp], eax
	call	OCTEON_CN23XX_PF@PLT
	test	rax, rax
	jne	.L14
	mov	r9, QWORD PTR 0[rbp]
.L7:
	mov	eax, DWORD PTR [r15]
	xor	edx, edx
	test	r13d, r13d
	mov	esi, DWORD PTR 8[rbp]
	sete	dl
	sub	rsp, 8
	.cfi_def_cfa_offset 72
	mov	r8, rbp
	mov	rcx, rbp
	push	rax
	.cfi_def_cfa_offset 80
	mov	rdi, r12
	call	octeon_send_command@PLT
	mov	r13d, eax
	cmp	DWORD PTR IQ_SEND_FAILED[rip], r13d
	pop	rax
	.cfi_def_cfa_offset 72
	pop	rdx
	.cfi_def_cfa_offset 64
	je	.L15
	mov	edx, DWORD PTR [r14]
	mov	esi, DWORD PTR tx_queued[rip]
	lea	rcx, .LC2[rip]
	mov	rdi, r14
	call	netif_info@PLT
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r13d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	r9, QWORD PTR 4[rbp]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L13:
	mov	eax, DWORD PTR REQTYPE_RESP_NET_SG[rip]
	mov	DWORD PTR [r15], eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rdi, QWORD PTR [r12]
	mov	edx, r13d
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	dev_err@PLT
	mov	rsi, rbp
	mov	rdi, r12
	call	octeon_free_soft_command@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	mov	eax, DWORD PTR REQTYPE_RESP_NET[rip]
	mov	DWORD PTR [r15], eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rdi, QWORD PTR [r12]
	lea	rsi, .LC0[rip]
	xor	eax, eax
	call	dev_err@PLT
	mov	r13d, DWORD PTR IQ_SEND_FAILED[rip]
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	send_nic_timestamp_pkt, .-send_nic_timestamp_pkt
	.comm	tx_queued,4,4
	.comm	handle_timestamp,4,4
	.comm	REQTYPE_RESP_NET_SG,4,4
	.comm	REQTYPE_RESP_NET,4,4
	.comm	REQTYPE_NORESP_NET_SG,4,4
	.comm	REQTYPE_NORESP_NET,4,4
	.comm	IQ_SEND_FAILED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_lio_main.c_send_nic_timestamp_pkt.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"No memory for timestamped data packet\012\000"
	.align	2
.LC1:
	.ascii	"timestamp data packet failed status: %x\012\000"
	.align	2
.LC2:
	.ascii	"Queued timestamp packet\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	send_nic_timestamp_pkt, %function
send_nic_timestamp_pkt:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r8, r2
	mov	r5, r1
	mov	r2, #4
	sub	sp, sp, #20
	add	r1, r1, #8
	mov	r9, r3
	mov	r6, r0
	ldr	r7, [r8, #8]
	bl	octeon_alloc_soft_command_resp
	cmp	r0, #0
	str	r0, [r8, #4]
	beq	.L11
	ldr	r3, .L14
	ldr	ip, [r5]
	ldr	r3, [r3]
	mov	r4, r0
	cmp	ip, r3
	beq	.L12
	ldr	r3, .L14+4
	ldr	r3, [r3]
	cmp	ip, r3
	ldreq	r3, .L14+8
	ldreq	r3, [r3]
	streq	r3, [r5]
.L5:
	ldr	r3, [r8]
	ldr	r2, .L14+12
	str	r3, [r4, #12]
	ldr	r2, [r2]
	ldr	r3, [r5, #4]
	mov	r0, r6
	str	r2, [r4, #16]
	str	r3, [r4, #8]
	bl	OCTEON_CN23XX_PF
	clz	r2, r9
	cmp	r0, #0
	ldrne	r0, [r4, #4]
	ldreq	r0, [r4]
	ldr	r3, [r5]
	ldr	r1, [r4, #8]
	lsr	r2, r2, #5
	stmib	sp, {r0, r3}
	str	r4, [sp]
	mov	r3, r4
	mov	r0, r6
	bl	octeon_send_command
	ldr	r3, .L14+16
	mov	r5, r0
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L13
	ldr	r2, .L14+20
	mov	r0, r7
	ldr	r1, [r2]
	ldr	r3, .L14+24
	ldr	r2, [r7]
	bl	netif_info
.L1:
	mov	r0, r5
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L12:
	ldr	r3, .L14+28
	ldr	r3, [r3]
	str	r3, [r5]
	b	.L5
.L13:
	mov	r2, r0
	ldr	r1, .L14+32
	ldr	r0, [r6]
	bl	dev_err
	mov	r1, r4
	mov	r0, r6
	bl	octeon_free_soft_command
	mov	r0, r5
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L11:
	ldr	r0, [r6]
	ldr	r1, .L14+36
	bl	dev_err
	ldr	r3, .L14+16
	ldr	r5, [r3]
	b	.L1
.L15:
	.align	2
.L14:
	.word	REQTYPE_NORESP_NET
	.word	REQTYPE_NORESP_NET_SG
	.word	REQTYPE_RESP_NET_SG
	.word	handle_timestamp
	.word	IQ_SEND_FAILED
	.word	tx_queued
	.word	.LC2
	.word	REQTYPE_RESP_NET
	.word	.LC1
	.word	.LC0
	.size	send_nic_timestamp_pkt, .-send_nic_timestamp_pkt
	.comm	tx_queued,4,4
	.comm	handle_timestamp,4,4
	.comm	REQTYPE_RESP_NET_SG,4,4
	.comm	REQTYPE_RESP_NET,4,4
	.comm	REQTYPE_NORESP_NET_SG,4,4
	.comm	REQTYPE_NORESP_NET,4,4
	.comm	IQ_SEND_FAILED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
