	.file	"extr_splice.c_do_tee.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	do_tee, @function
do_tee:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, ecx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	get_pipe_info@PLT
	mov	rdi, rbx
	mov	rbp, rax
	call	get_pipe_info@PLT
	test	rbp, rbp
	setne	dl
	test	rax, rax
	mov	r14, rax
	setne	al
	test	dl, al
	je	.L6
	cmp	rbp, r14
	je	.L6
	mov	eax, DWORD PTR [r15]
	or	eax, DWORD PTR [rbx]
	test	DWORD PTR O_NONBLOCK[rip], eax
	je	.L5
	or	r12d, DWORD PTR SPLICE_F_NONBLOCK[rip]
.L5:
	mov	esi, r12d
	mov	rdi, rbp
	call	ipipe_prep@PLT
	test	eax, eax
	jne	.L4
	mov	esi, r12d
	mov	rdi, r14
	call	opipe_prep@PLT
	test	eax, eax
	jne	.L4
	mov	ecx, r12d
	mov	rdx, r13
	mov	rsi, r14
	mov	rdi, rbp
	call	link_pipe@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L6:
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
.L4:
	add	rsp, 8
	.cfi_def_cfa_offset 56
	cdqe
	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
	.cfi_endproc
.LFE0:
	.size	do_tee, .-do_tee
	.comm	SPLICE_F_NONBLOCK,4,4
	.comm	O_NONBLOCK,4,4
	.comm	EINVAL,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_splice.c_do_tee.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_tee, %function
do_tee:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r6, r1
	mov	r9, r2
	mov	r7, r3
	mov	r8, r0
	bl	get_pipe_info
	mov	r4, r0
	mov	r0, r6
	bl	get_pipe_info
	subs	ip, r0, #0
	movne	ip, #1
	cmp	r4, #0
	moveq	ip, #0
	cmp	r4, r0
	moveq	ip, #0
	andne	ip, ip, #1
	cmp	ip, #0
	bne	.L2
	ldr	r3, .L10
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	ldr	r2, .L10+4
	ldr	r1, [r6]
	ldr	r3, [r8]
	ldr	r2, [r2]
	orr	r3, r3, r1
	tst	r3, r2
	ldrne	r3, .L10+8
	mov	r5, r0
	ldrne	r3, [r3]
	mov	r0, r4
	orrne	r7, r7, r3
	mov	r1, r7
	bl	ipipe_prep
	cmp	r0, #0
	popne	{r4, r5, r6, r7, r8, r9, r10, pc}
	mov	r1, r7
	mov	r0, r5
	bl	opipe_prep
	cmp	r0, #0
	popne	{r4, r5, r6, r7, r8, r9, r10, pc}
	mov	r3, r7
	mov	r2, r9
	mov	r1, r5
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	link_pipe
.L11:
	.align	2
.L10:
	.word	EINVAL
	.word	O_NONBLOCK
	.word	SPLICE_F_NONBLOCK
	.size	do_tee, .-do_tee
	.comm	SPLICE_F_NONBLOCK,4,4
	.comm	O_NONBLOCK,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
