	.file	"extr_rsocket.c_rsendv.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	rsendv, @function
rsendv:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	mov	esi, edi
	lea	rdi, idm[rip]
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, edx
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	rbp, QWORD PTR RS_OLAP_START_SIZE[rip]
	mov	DWORD PTR 20[rsp], ecx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	mov	QWORD PTR 48[rsp], 0
	call	idm_at@PLT
	mov	r14, rax
	mov	eax, DWORD PTR [rax]
	test	DWORD PTR rs_opening[rip], eax
	jne	.L42
.L2:
	mov	rax, QWORD PTR 0[r13]
	mov	QWORD PTR 40[rsp], r13
	mov	QWORD PTR 8[rsp], rax
	cmp	ebx, 1
	jle	.L4
	lea	edx, -2[rbx]
	lea	rax, 8[r13]
	lea	rdx, 16[r13+rdx*8]
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rsi, QWORD PTR [rax]
	add	rax, 8
	add	QWORD PTR 8[rsp], rsi
	cmp	rax, rdx
	jne	.L5
.L4:
	lea	rax, 40[r14]
	mov	rdi, rax
	mov	QWORD PTR 24[rsp], rax
	call	fastlock_acquire@PLT
	cmp	QWORD PTR 64[r14], 0
	jne	.L6
.L10:
	mov	rax, QWORD PTR 8[rsp]
	lea	r13, 48[rsp]
	mov	rbx, rax
	test	rax, rax
	jne	.L7
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L44:
	mov	rax, QWORD PTR 48[r14]
	lea	rsi, 40[rsp]
	mov	rcx, r12
	mov	rdx, r13
	mov	rdi, QWORD PTR [rax]
	call	rs_copy_iov@PLT
	mov	rsi, QWORD PTR 48[r14]
	xor	r8d, r8d
	mov	QWORD PTR 8[rsi], r12
	cmp	QWORD PTR 24[r14], r12
	jb	.L15
	mov	r8d, DWORD PTR IBV_SEND_INLINE[rip]
.L15:
	mov	rcx, r12
	mov	edx, 1
	mov	rdi, r14
	call	rs_write_data@PLT
	mov	rdi, r14
	mov	r15d, eax
	call	rs_sbuf_left@PLT
	cmp	rax, r12
	mov	rax, QWORD PTR 48[r14]
	jbe	.L16
	add	QWORD PTR [rax], r12
.L17:
	test	r15d, r15d
	jne	.L12
.L45:
	sub	rbx, r12
	je	.L8
.L7:
	mov	rdi, r14
	call	rs_can_send@PLT
	test	eax, eax
	je	.L43
.L11:
	mov	rax, rbx
	cmp	rbx, rbp
	jbe	.L13
	cmp	QWORD PTR RS_MAX_TRANSFER[rip], rbp
	mov	rax, rbp
	jbe	.L13
	add	rbp, rbp
.L13:
	mov	rcx, QWORD PTR 16[r14]
	mov	rdx, QWORD PTR 56[r14]
	mov	rdi, r14
	mov	r10, QWORD PTR 8[r14]
	cmp	QWORD PTR [rdx+rcx*8], r10
	cmovbe	r10, QWORD PTR [rdx+rcx*8]
	cmp	r10, rax
	cmovbe	rax, r10
	mov	r12, rax
	call	rs_sbuf_left@PLT
	cmp	rax, r12
	jnb	.L44
	mov	r15, QWORD PTR 48[r14]
	mov	rdi, r14
	call	rs_sbuf_left@PLT
	mov	rdx, r13
	mov	QWORD PTR 8[r15], rax
	mov	rax, QWORD PTR 48[r14]
	lea	r15, 40[rsp]
	mov	rsi, r15
	mov	rcx, QWORD PTR 8[rax]
	mov	rdi, QWORD PTR [rax]
	call	rs_copy_iov@PLT
	mov	rax, QWORD PTR 48[r14]
	mov	rcx, r12
	mov	rdi, QWORD PTR 32[r14]
	mov	rdx, r13
	mov	rsi, r15
	sub	rcx, QWORD PTR 8[rax]
	mov	QWORD PTR 24[rax], rcx
	call	rs_copy_iov@PLT
	xor	r8d, r8d
	cmp	QWORD PTR 24[r14], r12
	jb	.L18
	mov	r8d, DWORD PTR IBV_SEND_INLINE[rip]
.L18:
	mov	rsi, QWORD PTR 48[r14]
	mov	edx, 2
	mov	rcx, r12
	mov	rdi, r14
	call	rs_write_data@PLT
	mov	rdx, QWORD PTR 48[r14]
	mov	r15d, eax
	mov	rax, QWORD PTR 24[rdx]
	add	rax, QWORD PTR 32[r14]
	mov	QWORD PTR [rdx], rax
	test	r15d, r15d
	je	.L45
.L12:
	mov	rdi, QWORD PTR 24[rsp]
	call	fastlock_release@PLT
	test	r15d, r15d
	je	.L20
	cmp	rbx, QWORD PTR 8[rsp]
	jne	.L20
.L1:
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L46
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r15d
	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
.L43:
	.cfi_restore_state
	mov	esi, DWORD PTR 20[rsp]
	mov	r12d, DWORD PTR rs_conn_can_send[rip]
	mov	rdi, r14
	call	rs_nonblocking@PLT
	mov	edx, r12d
	mov	rdi, r14
	mov	esi, eax
	call	rs_get_comp@PLT
	mov	r15d, eax
	test	eax, eax
	jne	.L12
	mov	eax, DWORD PTR [r14]
	test	DWORD PTR rs_writable[rip], eax
	jne	.L11
	mov	edi, DWORD PTR ECONNRESET[rip]
	call	ERR@PLT
	mov	r15d, eax
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L16:
	mov	rdx, QWORD PTR 32[r14]
	mov	QWORD PTR [rax], rdx
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rdi, QWORD PTR 24[rsp]
	xor	ebx, ebx
	call	fastlock_release@PLT
.L20:
	mov	r15d, DWORD PTR 8[rsp]
	sub	r15d, ebx
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L42:
	mov	rdi, r14
	call	rs_do_connect@PLT
	mov	r15d, eax
	test	eax, eax
	je	.L2
	mov	rax, QWORD PTR EINPROGRESS[rip]
	cmp	QWORD PTR errno[rip], rax
	jne	.L1
	mov	rax, QWORD PTR EAGAIN[rip]
	mov	QWORD PTR errno[rip], rax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	mov	esi, DWORD PTR 20[rsp]
	mov	rdi, r14
	call	rs_send_iomaps@PLT
	mov	r15d, eax
	test	eax, eax
	je	.L10
	mov	rdi, QWORD PTR 24[rsp]
	call	fastlock_release@PLT
	jmp	.L1
.L46:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	rsendv, .-rsendv
	.comm	rs_writable,4,4
	.comm	rs_opening,4,4
	.comm	rs_conn_can_send,4,4
	.comm	idm,4,4
	.comm	errno,8,8
	.comm	RS_OLAP_START_SIZE,8,8
	.comm	RS_MAX_TRANSFER,8,8
	.comm	IBV_SEND_INLINE,4,4
	.comm	EINPROGRESS,8,8
	.comm	ECONNRESET,4,4
	.comm	EAGAIN,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_rsocket.c_rsendv.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rsendv, %function
rsendv:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	lr, #0
	ldr	ip, .L47
	mov	r9, r3
	ldr	r3, .L47+4
	sub	sp, sp, #36
	mov	r5, r1
	mov	r1, r0
	ldr	r0, .L47+8
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	mov	r6, r2
	ldr	r7, [ip]
	str	lr, [sp, #24]
	bl	idm_at
	ldr	r3, .L47+12
	ldr	r2, [r0]
	ldr	r3, [r3]
	mov	r4, r0
	tst	r2, r3
	bne	.L41
.L2:
	cmp	r6, #1
	ldr	r8, [r5]
	str	r5, [sp, #20]
	ble	.L4
	mov	r1, r5
	add	r2, r5, r6, lsl #2
	sub	r2, r2, #4
.L5:
	ldr	r3, [r1, #4]!
	cmp	r1, r2
	add	r8, r8, r3
	bne	.L5
.L4:
	add	r3, r4, #20
	mov	r0, r3
	str	r3, [sp, #12]
	bl	fastlock_acquire
	ldr	r3, [r4, #32]
	cmp	r3, #0
	bne	.L6
.L10:
	cmp	r8, #0
	movne	r6, r8
	ldrne	r10, .L47+16
	bne	.L7
	b	.L8
.L43:
	ldr	r2, [r4, #24]
	mov	r3, r5
	ldr	r0, [r2]
	add	r1, sp, #20
	add	r2, sp, #24
	bl	rs_copy_iov
	ldr	r3, [r4, #12]
	ldr	r1, [r4, #24]
	cmp	r3, r5
	movcc	r3, #0
	ldrcs	r3, .L47+20
	mov	r2, #1
	ldrcs	r3, [r3]
	str	r5, [r1, #4]
	mov	r0, r4
	str	r3, [sp]
	mov	r3, r5
	bl	rs_write_data
	mov	fp, r0
	mov	r0, r4
	bl	rs_sbuf_left
	cmp	r0, r5
	ldrhi	r2, [r4, #24]
	ldrls	r3, [r4, #24]
	ldrhi	r3, [r2]
	ldrls	r2, [r4, #16]
	addhi	r3, r3, r5
	strhi	r3, [r2]
	strls	r2, [r3]
	cmp	fp, #0
	bne	.L12
.L44:
	subs	r6, r6, r5
	beq	.L8
.L7:
	mov	r0, r4
	bl	rs_can_send
	cmp	r0, #0
	beq	.L42
.L11:
	cmp	r6, r7
	movls	r2, r6
	bls	.L13
	ldr	r3, [r10]
	mov	r2, r7
	cmp	r3, r7
	lslhi	r7, r7, #1
.L13:
	ldr	r0, [r4, #8]
	ldr	r1, [r4, #28]
	ldr	r3, [r4, #4]
	ldr	r5, [r1, r0, lsl #2]
	mov	r0, r4
	cmp	r5, r3
	movcs	r5, r3
	cmp	r5, r2
	movcs	r5, r2
	bl	rs_sbuf_left
	cmp	r0, r5
	bcs	.L43
	mov	r0, r4
	ldr	fp, [r4, #24]
	bl	rs_sbuf_left
	ldr	r2, [r4, #24]
	str	r0, [fp, #4]
	ldm	r2, {r0, r3}
	add	r1, sp, #20
	add	r2, sp, #24
	bl	rs_copy_iov
	ldr	r0, [r4, #24]
	add	r2, sp, #24
	ldr	r3, [r0, #4]
	add	r1, sp, #20
	sub	r3, r5, r3
	str	r3, [r0, #12]
	ldr	r0, [r4, #16]
	bl	rs_copy_iov
	ldr	r3, [r4, #12]
	ldr	r1, [r4, #24]
	cmp	r3, r5
	movcc	r3, #0
	ldrcs	r3, .L47+20
	mov	r2, #2
	ldrcs	r3, [r3]
	mov	r0, r4
	str	r3, [sp]
	mov	r3, r5
	bl	rs_write_data
	mov	fp, r0
	ldr	r2, [r4, #24]
	ldr	r3, [r4, #16]
	ldr	r1, [r2, #12]
	cmp	fp, #0
	add	r3, r3, r1
	str	r3, [r2]
	beq	.L44
.L12:
	ldr	r0, [sp, #12]
	bl	fastlock_release
	subs	r2, r6, r8
	movne	r2, #1
	cmp	fp, #0
	moveq	r2, #1
	cmp	r2, #0
	bne	.L45
.L1:
	ldr	r3, .L47+4
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L46
	mov	r0, fp
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L42:
	mov	r1, r9
	mov	r0, r4
	bl	rs_nonblocking
	ldr	r3, .L47+24
	mov	r1, r0
	ldr	r2, [r3]
	mov	r0, r4
	bl	rs_get_comp
	subs	fp, r0, #0
	bne	.L12
	ldr	r3, .L47+28
	ldr	r2, [r4]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L11
	ldr	r3, .L47+32
	ldr	r0, [r3]
	bl	ERR
	mov	fp, r0
	b	.L12
.L41:
	bl	rs_do_connect
	subs	fp, r0, #0
	beq	.L2
	ldr	r2, .L47+36
	ldr	r1, .L47+40
	ldr	r0, [r2]
	ldr	r1, [r1]
	cmp	r0, r1
	ldreq	r1, .L47+44
	ldreq	r1, [r1]
	streq	r1, [r2]
	b	.L1
.L8:
	ldr	r0, [sp, #12]
	bl	fastlock_release
.L19:
	mov	fp, r8
	b	.L1
.L6:
	mov	r1, r9
	mov	r0, r4
	bl	rs_send_iomaps
	subs	fp, r0, #0
	beq	.L10
	ldr	r0, [sp, #12]
	bl	fastlock_release
	b	.L1
.L45:
	sub	r8, r8, r6
	b	.L19
.L46:
	bl	__stack_chk_fail
.L48:
	.align	2
.L47:
	.word	RS_OLAP_START_SIZE
	.word	.LC0
	.word	idm
	.word	rs_opening
	.word	RS_MAX_TRANSFER
	.word	IBV_SEND_INLINE
	.word	rs_conn_can_send
	.word	rs_writable
	.word	ECONNRESET
	.word	errno
	.word	EINPROGRESS
	.word	EAGAIN
	.size	rsendv, .-rsendv
	.comm	rs_writable,4,4
	.comm	rs_opening,4,4
	.comm	rs_conn_can_send,4,4
	.comm	idm,4,4
	.comm	errno,4,4
	.comm	RS_OLAP_START_SIZE,4,4
	.comm	RS_MAX_TRANSFER,4,4
	.comm	IBV_SEND_INLINE,4,4
	.comm	EINPROGRESS,4,4
	.comm	ECONNRESET,4,4
	.comm	EAGAIN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
