	.file	"extr_state.c_dst_trans_send.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	dst_trans_send
	.type	dst_trans_send, @function
dst_trans_send:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR 16[rdi]
	mov	r14, QWORD PTR 8[rdi]
	mov	r13, QWORD PTR [rax]
	call	dst_convert_cmd@PLT
	mov	rdi, r13
	call	dst_state_lock@PLT
	mov	eax, DWORD PTR 0[r13]
	test	eax, eax
	jne	.L6
	mov	rdi, r13
	call	dst_state_init_connected@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L5
.L6:
	mov	rdi, r14
	call	bio_data_dir@PLT
	cmp	rax, QWORD PTR WRITE[rip]
	je	.L14
	mov	edi, DWORD PTR 0[r13]
	xor	ecx, ecx
	mov	edx, 4
	mov	rsi, rbp
	call	dst_data_send_header@PLT
	mov	r12d, eax
.L7:
	mov	rdi, r13
	test	r12d, r12d
	jne	.L15
.L12:
	call	dst_state_unlock@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	call	dst_state_reset_nolock@PLT
.L5:
	mov	rdi, r13
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rdx, QWORD PTR 8[rbp]
	mov	rsi, rbp
	mov	rdi, r13
	call	dst_send_bio@PLT
	mov	r12d, eax
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	dst_trans_send, .-dst_trans_send
	.comm	WRITE,8,8
	.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_state.c_dst_trans_send.c"
	.text
	.align	2
	.global	dst_trans_send
	.syntax unified
	.arm
	.fpu softvfp
	.type	dst_trans_send, %function
dst_trans_send:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0, #8]
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r6, [r3]
	mov	r5, r0
	ldr	r7, [r0, #4]
	bl	dst_convert_cmd
	mov	r0, r6
	bl	dst_state_lock
	ldr	r3, [r6]
	cmp	r3, #0
	bne	.L6
	mov	r0, r6
	bl	dst_state_init_connected
	subs	r4, r0, #0
	bne	.L5
.L6:
	mov	r0, r7
	bl	bio_data_dir
	ldr	r3, .L16
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L14
	mov	r1, r5
	mov	r3, #0
	mov	r2, #4
	ldr	r0, [r6]
	bl	dst_data_send_header
	mov	r4, r0
.L7:
	cmp	r4, #0
	mov	r0, r6
	bne	.L15
.L12:
	bl	dst_state_unlock
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L15:
	bl	dst_state_reset_nolock
.L5:
	mov	r0, r6
	b	.L12
.L14:
	mov	r1, r5
	mov	r0, r6
	ldr	r2, [r5, #4]
	bl	dst_send_bio
	mov	r4, r0
	b	.L7
.L17:
	.align	2
.L16:
	.word	WRITE
	.size	dst_trans_send, .-dst_trans_send
	.comm	WRITE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
