	.file	"extr_tcp.c_nvme_tcp_try_send.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	nvme_tcp_try_send, @function
nvme_tcp_try_send:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rbp, QWORD PTR [rdi]
	test	rbp, rbp
	je	.L18
.L2:
	mov	rax, QWORD PTR 0[rbp]
	cmp	rax, QWORD PTR NVME_TCP_SEND_CMD_PDU[rip]
	mov	r12d, 1
	je	.L19
.L4:
	cmp	QWORD PTR NVME_TCP_SEND_H2C_PDU[rip], rax
	je	.L20
	cmp	QWORD PTR NVME_TCP_SEND_DATA[rip], rax
	je	.L21
.L8:
	cmp	QWORD PTR NVME_TCP_SEND_DDGST[rip], rax
	je	.L22
.L5:
	mov	eax, r12d
	add	eax, DWORD PTR EAGAIN[rip]
	je	.L3
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	mov	r12, rdi
	call	nvme_tcp_fetch_request@PLT
	mov	QWORD PTR [r12], rax
	mov	rbp, rax
	test	rax, rax
	jne	.L2
.L3:
	xor	r12d, r12d
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	mov	rdi, rbp
	call	nvme_tcp_try_send_cmd_pdu@PLT
	mov	r12d, eax
	test	eax, eax
	jle	.L5
	mov	rdi, rbp
	call	nvme_tcp_has_inline_data@PLT
	test	eax, eax
	je	.L1
	mov	rax, QWORD PTR 0[rbp]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L20:
	mov	rdi, rbp
	call	nvme_tcp_try_send_data_pdu@PLT
	mov	r12d, eax
	test	eax, eax
	jle	.L5
	mov	rax, QWORD PTR 0[rbp]
	cmp	QWORD PTR NVME_TCP_SEND_DATA[rip], rax
	jne	.L8
	.p2align 4,,10
	.p2align 3
.L21:
	mov	rdi, rbp
	call	nvme_tcp_try_send_data@PLT
	mov	r12d, eax
	test	eax, eax
	jle	.L5
	mov	rax, QWORD PTR 0[rbp]
	cmp	QWORD PTR NVME_TCP_SEND_DDGST[rip], rax
	jne	.L5
	.p2align 4,,10
	.p2align 3
.L22:
	mov	rdi, rbp
	call	nvme_tcp_try_send_ddgst@PLT
	mov	r12d, eax
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	nvme_tcp_try_send, .-nvme_tcp_try_send
	.comm	NVME_TCP_SEND_H2C_PDU,8,8
	.comm	NVME_TCP_SEND_DDGST,8,8
	.comm	NVME_TCP_SEND_DATA,8,8
	.comm	NVME_TCP_SEND_CMD_PDU,8,8
	.comm	EAGAIN,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_tcp.c_nvme_tcp_try_send.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	nvme_tcp_try_send, %function
nvme_tcp_try_send:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r5, [r0]
	cmp	r5, #0
	beq	.L18
.L2:
	ldr	r2, .L23
	ldr	r3, [r5]
	ldr	r2, [r2]
	cmp	r3, r2
	movne	r4, #1
	beq	.L19
.L4:
	ldr	r2, .L23+4
	ldr	r2, [r2]
	cmp	r2, r3
	beq	.L20
	ldr	r2, .L23+8
	ldr	r2, [r2]
	cmp	r2, r3
	beq	.L21
.L8:
	ldr	r2, .L23+12
	ldr	r2, [r2]
	cmp	r2, r3
	beq	.L22
.L5:
	ldr	r3, .L23+16
	ldr	r3, [r3]
	cmn	r4, r3
	beq	.L3
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L18:
	mov	r4, r0
	bl	nvme_tcp_fetch_request
	cmp	r0, #0
	mov	r5, r0
	str	r0, [r4]
	bne	.L2
.L3:
	mov	r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L19:
	mov	r0, r5
	bl	nvme_tcp_try_send_cmd_pdu
	subs	r4, r0, #0
	ble	.L5
	mov	r0, r5
	bl	nvme_tcp_has_inline_data
	cmp	r0, #0
	beq	.L1
	ldr	r3, [r5]
	b	.L4
.L20:
	mov	r0, r5
	bl	nvme_tcp_try_send_data_pdu
	subs	r4, r0, #0
	ble	.L5
	ldr	r2, .L23+8
	ldr	r3, [r5]
	ldr	r2, [r2]
	cmp	r2, r3
	bne	.L8
.L21:
	mov	r0, r5
	bl	nvme_tcp_try_send_data
	subs	r4, r0, #0
	ble	.L5
	ldr	r2, .L23+12
	ldr	r3, [r5]
	ldr	r2, [r2]
	cmp	r2, r3
	bne	.L5
.L22:
	mov	r0, r5
	bl	nvme_tcp_try_send_ddgst
	mov	r4, r0
	b	.L5
.L24:
	.align	2
.L23:
	.word	NVME_TCP_SEND_CMD_PDU
	.word	NVME_TCP_SEND_H2C_PDU
	.word	NVME_TCP_SEND_DATA
	.word	NVME_TCP_SEND_DDGST
	.word	EAGAIN
	.size	nvme_tcp_try_send, .-nvme_tcp_try_send
	.comm	NVME_TCP_SEND_H2C_PDU,4,4
	.comm	NVME_TCP_SEND_DDGST,4,4
	.comm	NVME_TCP_SEND_DATA,4,4
	.comm	NVME_TCP_SEND_CMD_PDU,4,4
	.comm	EAGAIN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
