	.file	"extr_proto.c_proto_connection_send.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	proto_connection_send
	.type	proto_connection_send, @function
proto_connection_send:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	test	rdi, rdi
	setne	dil
	movzx	edi, dil
	call	PJDLOG_ASSERT@PLT
	mov	rax, QWORD PTR PROTO_CONN_MAGIC[rip]
	xor	edi, edi
	cmp	QWORD PTR [rbx], rax
	sete	dil
	call	PJDLOG_ASSERT@PLT
	xor	edi, edi
	cmp	QWORD PTR 16[rbx], 0
	setne	dil
	call	PJDLOG_ASSERT@PLT
	mov	rax, QWORD PTR 16[rbx]
	xor	edi, edi
	cmp	QWORD PTR [rax], 0
	setne	dil
	call	PJDLOG_ASSERT@PLT
	xor	edi, edi
	test	rbp, rbp
	setne	dil
	call	PJDLOG_ASSERT@PLT
	mov	rax, QWORD PTR PROTO_CONN_MAGIC[rip]
	xor	edi, edi
	cmp	QWORD PTR 0[rbp], rax
	sete	dil
	call	PJDLOG_ASSERT@PLT
	xor	edi, edi
	cmp	QWORD PTR 16[rbp], 0
	setne	dil
	call	PJDLOG_ASSERT@PLT
	mov	rdi, rbp
	call	proto_descriptor@PLT
	mov	edi, eax
	mov	r12d, eax
	not	edi
	shr	edi, 31
	call	PJDLOG_ASSERT@PLT
	mov	rax, QWORD PTR 16[rbp]
	xor	edi, edi
	mov	r13, QWORD PTR 8[rax]
	test	r13, r13
	setne	dil
	call	PJDLOG_ASSERT@PLT
	mov	rdi, r13
	call	strlen@PLT
	mov	edi, DWORD PTR 8[rbx]
	mov	ecx, r12d
	mov	rsi, r13
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR 16[rbx]
	call	[QWORD PTR [rax]]
	mov	rdi, rbp
	mov	r12d, eax
	call	proto_close@PLT
	test	r12d, r12d
	jne	.L8
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	DWORD PTR errno[rip], r12d
	mov	r12d, -1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	proto_connection_send, .-proto_connection_send
	.comm	errno,4,4
	.comm	PROTO_CONN_MAGIC,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_proto.c_proto_connection_send.c"
	.text
	.align	2
	.global	proto_connection_send
	.syntax unified
	.arm
	.fpu softvfp
	.type	proto_connection_send, %function
proto_connection_send:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	ldr	r6, .L8
	subs	r0, r0, #0
	movne	r0, #1
	mov	r4, r1
	bl	PJDLOG_ASSERT
	ldr	r3, [r6]
	ldr	r0, [r5]
	sub	r0, r0, r3
	clz	r0, r0
	lsr	r0, r0, #5
	bl	PJDLOG_ASSERT
	ldr	r0, [r5, #8]
	subs	r0, r0, #0
	movne	r0, #1
	bl	PJDLOG_ASSERT
	ldr	r3, [r5, #8]
	ldr	r0, [r3]
	subs	r0, r0, #0
	movne	r0, #1
	bl	PJDLOG_ASSERT
	subs	r0, r4, #0
	movne	r0, #1
	bl	PJDLOG_ASSERT
	ldr	r3, [r6]
	ldr	r0, [r4]
	sub	r0, r0, r3
	clz	r0, r0
	lsr	r0, r0, #5
	bl	PJDLOG_ASSERT
	ldr	r0, [r4, #8]
	subs	r0, r0, #0
	movne	r0, #1
	bl	PJDLOG_ASSERT
	mov	r0, r4
	bl	proto_descriptor
	mov	r6, r0
	mvn	r0, r0
	lsr	r0, r0, #31
	bl	PJDLOG_ASSERT
	ldr	r3, [r4, #8]
	ldr	r7, [r3, #4]
	subs	r0, r7, #0
	movne	r0, #1
	bl	PJDLOG_ASSERT
	mov	r0, r7
	bl	strlen
	ldr	ip, [r5, #8]
	mov	r3, r6
	add	r2, r0, #1
	mov	r1, r7
	ldr	r6, [ip]
	ldr	r0, [r5, #4]
	blx	r6
	mov	r5, r0
	mov	r0, r4
	bl	proto_close
	cmp	r5, #0
	ldrne	r3, .L8+4
	strne	r5, [r3]
	mvnne	r5, #0
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	.align	2
.L8:
	.word	PROTO_CONN_MAGIC
	.word	errno
	.size	proto_connection_send, .-proto_connection_send
	.comm	errno,4,4
	.comm	PROTO_CONN_MAGIC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
