	.file	"extr_af_vsock.c_vsock_stream_sendmsg.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	vsock_stream_sendmsg, @function
vsock_stream_sendmsg:
.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
	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
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	esi, DWORD PTR woken_wake_function[rip]
	mov	edi, DWORD PTR wait[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	DEFINE_WAIT_FUNC@PLT
	mov	r14, QWORD PTR [r12]
	mov	rdi, r14
	call	vsock_sk@PLT
	mov	r13, rax
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR MSG_OOB[rip], eax
	je	.L2
	mov	r15d, DWORD PTR EOPNOTSUPP[rip]
	neg	r15d
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L36
	add	rsp, 40
	.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
.L2:
	.cfi_restore_state
	mov	rdi, r14
	call	lock_sock@PLT
	cmp	QWORD PTR 8[rbx], 0
	jne	.L37
	mov	eax, DWORD PTR 8[r14]
	test	DWORD PTR SEND_SHUTDOWN[rip], eax
	jne	.L7
	mov	eax, DWORD PTR 0[r13]
	test	DWORD PTR RCV_SHUTDOWN[rip], eax
	jne	.L7
	mov	rax, QWORD PTR TCP_ESTABLISHED[rip]
	cmp	QWORD PTR [r14], rax
	je	.L9
.L10:
	mov	r15d, DWORD PTR ENOTCONN[rip]
	neg	r15d
.L6:
	mov	rdi, r14
	call	release_sock@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	mov	r15d, DWORD PTR EPIPE[rip]
	neg	r15d
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L37:
	mov	r15d, DWORD PTR EOPNOTSUPP[rip]
	mov	rax, QWORD PTR TCP_ESTABLISHED[rip]
	neg	r15d
	cmp	QWORD PTR [r14], rax
	jne	.L6
	mov	r15d, DWORD PTR EISCONN[rip]
	neg	r15d
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L9:
	lea	rdi, 8[r13]
	call	vsock_addr_bound@PLT
	test	eax, eax
	je	.L10
	lea	rdi, 4[r13]
	call	vsock_addr_bound@PLT
	test	eax, eax
	jne	.L11
	mov	r15d, DWORD PTR EDESTADDRREQ[rip]
	neg	r15d
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L11:
	mov	esi, DWORD PTR [rbx]
	mov	rdi, r14
	and	esi, DWORD PTR MSG_DONTWAIT[rip]
	call	sock_sndtimeo@PLT
	mov	rdi, r13
	mov	r12, rax
	lea	rax, 20[rsp]
	mov	QWORD PTR [rsp], rax
	mov	rsi, rax
	mov	rax, QWORD PTR transport[rip]
	call	[QWORD PTR [rax]]
	mov	r15d, eax
	test	eax, eax
	js	.L6
	mov	QWORD PTR 8[rsp], 0
.L12:
	cmp	QWORD PTR 8[rsp], rbp
	jnb	.L15
	mov	rdi, r14
	call	sk_sleep@PLT
	lea	rsi, wait[rip]
	mov	edi, eax
	call	add_wait_queue@PLT
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L39:
	mov	eax, DWORD PTR 12[r14]
	test	eax, eax
	jne	.L18
	mov	eax, DWORD PTR 8[r14]
	test	DWORD PTR SEND_SHUTDOWN[rip], eax
	jne	.L18
	mov	eax, DWORD PTR 0[r13]
	test	DWORD PTR RCV_SHUTDOWN[rip], eax
	jne	.L18
	test	r12, r12
	je	.L34
	mov	rax, QWORD PTR transport[rip]
	mov	rdi, r13
	mov	rsi, QWORD PTR [rsp]
	call	[QWORD PTR 8[rax]]
	mov	rdi, r14
	mov	r15d, eax
	test	eax, eax
	js	.L33
	call	release_sock@PLT
	mov	esi, DWORD PTR TASK_INTERRUPTIBLE[rip]
	mov	rdx, r12
	lea	rdi, wait[rip]
	call	wait_woken@PLT
	mov	rdi, r14
	mov	r12, rax
	call	lock_sock@PLT
	mov	edi, DWORD PTR current[rip]
	call	signal_pending@PLT
	test	rax, rax
	jne	.L38
	test	r12, r12
	je	.L34
.L13:
	mov	rdi, r13
	call	vsock_stream_has_space@PLT
	test	rax, rax
	je	.L39
.L18:
	mov	rdi, r14
	call	sk_sleep@PLT
	lea	rsi, wait[rip]
	mov	edi, eax
	call	remove_wait_queue@PLT
	mov	r8d, DWORD PTR 12[r14]
	test	r8d, r8d
	jne	.L40
	mov	eax, DWORD PTR 8[r14]
	test	DWORD PTR SEND_SHUTDOWN[rip], eax
	jne	.L21
	mov	eax, DWORD PTR 0[r13]
	test	DWORD PTR RCV_SHUTDOWN[rip], eax
	jne	.L21
	mov	rax, QWORD PTR transport[rip]
	mov	rsi, QWORD PTR [rsp]
	mov	rdi, r13
	call	[QWORD PTR 16[rax]]
	mov	r15d, eax
	test	eax, eax
	js	.L15
	mov	r15, QWORD PTR 8[rsp]
	mov	rax, rbp
	mov	rsi, rbx
	mov	rdi, r13
	sub	rax, r15
	mov	rdx, rax
	mov	rax, QWORD PTR transport[rip]
	call	[QWORD PTR 24[rax]]
	mov	rdx, QWORD PTR [rsp]
	mov	rdi, r13
	add	r15, rax
	mov	rsi, rax
	mov	rax, QWORD PTR transport[rip]
	mov	QWORD PTR 8[rsp], r15
	call	[QWORD PTR 32[rax]]
	mov	r15d, eax
	test	eax, eax
	jns	.L12
.L15:
	mov	rax, QWORD PTR 8[rsp]
	test	rax, rax
	cmovne	r15d, eax
	jmp	.L6
.L34:
	mov	r15d, DWORD PTR EAGAIN[rip]
	neg	r15d
.L32:
	mov	rdi, r14
.L33:
	call	sk_sleep@PLT
	lea	rsi, wait[rip]
	mov	edi, eax
	call	remove_wait_queue@PLT
	jmp	.L15
.L38:
	mov	rdi, r12
	call	sock_intr_errno@PLT
	mov	r15d, eax
	jmp	.L32
.L36:
	call	__stack_chk_fail@PLT
.L21:
	mov	r15d, DWORD PTR EPIPE[rip]
	neg	r15d
	jmp	.L15
.L40:
	neg	r8d
	mov	r15d, r8d
	jmp	.L15
	.cfi_endproc
.LFE0:
	.size	vsock_stream_sendmsg, .-vsock_stream_sendmsg
	.comm	woken_wake_function,4,4
	.comm	wait,4,4
	.comm	transport,8,8
	.comm	current,4,4
	.comm	TCP_ESTABLISHED,8,8
	.comm	TASK_INTERRUPTIBLE,4,4
	.comm	SEND_SHUTDOWN,4,4
	.comm	RCV_SHUTDOWN,4,4
	.comm	MSG_OOB,4,4
	.comm	MSG_DONTWAIT,4,4
	.comm	EPIPE,4,4
	.comm	EOPNOTSUPP,4,4
	.comm	ENOTCONN,4,4
	.comm	ENOMEM,4,4
	.comm	EISCONN,4,4
	.comm	EDESTADDRREQ,4,4
	.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_af_vsock.c_vsock_stream_sendmsg.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vsock_stream_sendmsg, %function
vsock_stream_sendmsg:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r0
	mov	r4, r1
	ldr	r3, .L42
	ldr	r9, .L42+4
	ldr	r1, [r3]
	ldr	r3, .L42+8
	sub	sp, sp, #20
	ldr	r0, [r9]
	mov	r8, r2
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	DEFINE_WAIT_FUNC
	ldr	r6, [r5]
	mov	r0, r6
	bl	vsock_sk
	ldr	r3, .L42+12
	ldr	r2, [r4]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L2
	ldr	r3, .L42+16
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L1:
	ldr	r3, .L42+8
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L37
	mov	r0, r5
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	mov	r7, r0
	mov	r0, r6
	bl	lock_sock
	ldr	r3, [r4, #4]
	cmp	r3, #0
	bne	.L38
	ldr	r10, .L42+20
	ldr	r2, [r6, #4]
	ldr	r3, [r10]
	tst	r2, r3
	bne	.L7
	ldr	fp, .L42+24
	ldr	r1, [r7]
	ldr	r2, [fp]
	ands	r2, r1, r2
	bne	.L7
	ldr	r1, .L42+28
	ldr	r0, [r6]
	ldr	r1, [r1]
	cmp	r0, r1
	beq	.L9
.L10:
	ldr	r3, .L42+32
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L6:
	mov	r0, r6
	bl	release_sock
	b	.L1
.L7:
	ldr	r3, .L42+36
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L6
.L38:
	ldr	r3, .L42+28
	ldr	r2, [r6]
	ldr	r3, [r3]
	cmp	r2, r3
	ldreq	r3, .L42+40
	ldrne	r3, .L42+16
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L6
.L9:
	add	r0, r7, #8
	str	r2, [sp]
	bl	vsock_addr_bound
	cmp	r0, #0
	beq	.L10
	add	r0, r7, #4
	bl	vsock_addr_bound
	cmp	r0, #0
	ldr	r2, [sp]
	ldreq	r3, .L42+44
	ldreq	r5, [r3]
	rsbeq	r5, r5, #0
	beq	.L6
.L11:
	ldr	r1, .L42+48
	ldr	ip, [r4]
	ldr	r1, [r1]
	mov	r0, r6
	and	r1, r1, ip
	str	r2, [sp]
	bl	sock_sndtimeo
	mov	r3, r0
	ldr	r2, .L42+52
	add	r1, sp, #8
	ldr	r0, [r2]
	str	r3, [sp, #4]
	ldr	r5, [r0]
	mov	r0, r7
	blx	r5
	subs	r5, r0, #0
	blt	.L6
	mov	r0, r5
	mov	r5, r4
	ldr	r4, [sp, #4]
.L12:
	ldr	r3, [sp]
	cmp	r3, r8
	bcs	.L32
	mov	r0, r6
	bl	sk_sleep
	mov	r1, r9
	bl	add_wait_queue
	b	.L13
.L40:
	ldr	r3, [r6, #8]
	cmp	r3, #0
	bne	.L18
	ldr	r2, [r6, #4]
	ldr	r3, [r10]
	tst	r2, r3
	bne	.L18
	ldr	r2, [r7]
	ldr	r3, [fp]
	tst	r2, r3
	bne	.L18
	cmp	r4, #0
	beq	.L34
	ldr	r3, .L42+52
	mov	r0, r7
	ldr	r3, [r3]
	add	r1, sp, #8
	ldr	r3, [r3, #4]
	blx	r3
	cmp	r0, #0
	blt	.L35
	mov	r0, r6
	bl	release_sock
	ldr	r3, .L42+56
	mov	r2, r4
	ldr	r1, [r3]
	mov	r0, r9
	bl	wait_woken
	mov	r4, r0
	mov	r0, r6
	bl	lock_sock
	ldr	r3, .L42+60
	ldr	r0, [r3]
	bl	signal_pending
	cmp	r0, #0
	bne	.L39
	cmp	r4, #0
	beq	.L34
.L13:
	mov	r0, r7
	bl	vsock_stream_has_space
	cmp	r0, #0
	beq	.L40
.L18:
	mov	r0, r6
	bl	sk_sleep
	mov	r1, r9
	bl	remove_wait_queue
	ldr	r3, [r6, #8]
	cmp	r3, #0
	bne	.L41
	ldr	r2, [r6, #4]
	ldr	r3, [r10]
	tst	r2, r3
	bne	.L21
	ldr	r2, [r7]
	ldr	r3, [fp]
	tst	r2, r3
	bne	.L21
	ldr	r3, .L42+52
	mov	r0, r7
	ldr	r3, [r3]
	add	r1, sp, #8
	ldr	r3, [r3, #8]
	blx	r3
	cmp	r0, #0
	blt	.L32
	ldr	r3, .L42+52
	ldr	r2, [sp]
	ldr	r3, [r3]
	mov	r1, r5
	ldr	r3, [r3, #12]
	sub	r2, r8, r2
	mov	r0, r7
	blx	r3
	mov	r1, r0
	ldr	r3, .L42+52
	ldr	ip, [sp]
	ldr	r3, [r3]
	add	ip, ip, r1
	mov	r0, r7
	ldr	r3, [r3, #16]
	add	r2, sp, #8
	str	ip, [sp]
	blx	r3
	cmp	r0, #0
	bge	.L12
.L32:
	mov	r5, r0
.L15:
	ldr	r3, [sp]
	cmp	r3, #0
	moveq	r3, r5
	mov	r5, r3
	b	.L6
.L39:
	mov	r0, r4
	bl	sock_intr_errno
.L35:
	mov	r5, r0
	mov	r0, r6
	bl	sk_sleep
	ldr	r1, .L42+4
	bl	remove_wait_queue
	b	.L15
.L34:
	ldr	r3, .L42+64
	mov	r0, r6
	ldr	r5, [r3]
	bl	sk_sleep
	ldr	r1, .L42+4
	rsb	r5, r5, #0
	bl	remove_wait_queue
	b	.L15
.L37:
	bl	__stack_chk_fail
.L21:
	ldr	r3, .L42+36
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L15
.L41:
	rsb	r5, r3, #0
	b	.L15
.L43:
	.align	2
.L42:
	.word	woken_wake_function
	.word	wait
	.word	.LC0
	.word	MSG_OOB
	.word	EOPNOTSUPP
	.word	SEND_SHUTDOWN
	.word	RCV_SHUTDOWN
	.word	TCP_ESTABLISHED
	.word	ENOTCONN
	.word	EPIPE
	.word	EISCONN
	.word	EDESTADDRREQ
	.word	MSG_DONTWAIT
	.word	transport
	.word	TASK_INTERRUPTIBLE
	.word	current
	.word	EAGAIN
	.size	vsock_stream_sendmsg, .-vsock_stream_sendmsg
	.comm	woken_wake_function,4,4
	.comm	wait,4,4
	.comm	transport,4,4
	.comm	current,4,4
	.comm	TCP_ESTABLISHED,4,4
	.comm	TASK_INTERRUPTIBLE,4,4
	.comm	SEND_SHUTDOWN,4,4
	.comm	RCV_SHUTDOWN,4,4
	.comm	MSG_OOB,4,4
	.comm	MSG_DONTWAIT,4,4
	.comm	EPIPE,4,4
	.comm	EOPNOTSUPP,4,4
	.comm	ENOTCONN,4,4
	.comm	ENOMEM,4,4
	.comm	EISCONN,4,4
	.comm	EDESTADDRREQ,4,4
	.comm	EAGAIN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
