	.file	"403570.c"
	.intel_syntax noprefix
	.text
	.globl	pipe2
	.type	pipe2, @function
pipe2:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	cmp	DWORD PTR -28[rbp], 0
	jne	.L2
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	pipe@PLT
	jmp	.L3
.L2:
	mov	edx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	mov	edi, 293
	mov	eax, 0
	call	__syscall@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], -38
	je	.L4
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	mov	eax, 0
	call	__syscall_ret@PLT
	jmp	.L3
.L4:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	pipe@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L5
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L3
.L5:
	mov	eax, DWORD PTR -28[rbp]
	and	eax, 524288
	test	eax, eax
	je	.L6
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	ecx, 1
	mov	edx, 2
	mov	esi, eax
	mov	edi, 72
	mov	eax, 0
	call	__syscall@PLT
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 4
	mov	eax, DWORD PTR [rax]
	mov	ecx, 1
	mov	edx, 2
	mov	esi, eax
	mov	edi, 72
	mov	eax, 0
	call	__syscall@PLT
.L6:
	mov	eax, DWORD PTR -28[rbp]
	and	eax, 2048
	test	eax, eax
	je	.L7
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	ecx, 2048
	mov	edx, 4
	mov	esi, eax
	mov	edi, 72
	mov	eax, 0
	call	__syscall@PLT
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 4
	mov	eax, DWORD PTR [rax]
	mov	ecx, 2048
	mov	edx, 4
	mov	esi, eax
	mov	edi, 72
	mov	eax, 0
	call	__syscall@PLT
.L7:
	mov	eax, 0
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	pipe2, .-pipe2
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"403570.c"
	.text
	.align	2
	.global	pipe2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pipe2, %function
pipe2:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L2
	ldr	r0, [fp, #-16]
	bl	pipe
	mov	r3, r0
	b	.L3
.L2:
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-16]
	ldr	r0, .L8
	bl	__syscall
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #38
	beq	.L4
	ldr	r0, [fp, #-8]
	bl	__syscall_ret
	mov	r3, r0
	b	.L3
.L4:
	ldr	r0, [fp, #-16]
	bl	pipe
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L5
	ldr	r3, [fp, #-8]
	b	.L3
.L5:
	ldr	r3, [fp, #-20]
	and	r3, r3, #524288
	cmp	r3, #0
	beq	.L6
	ldr	r3, [fp, #-16]
	ldr	r1, [r3]
	mov	r3, #1
	mov	r2, #2
	mov	r0, #55
	bl	__syscall
	ldr	r3, [fp, #-16]
	add	r3, r3, #4
	ldr	r1, [r3]
	mov	r3, #1
	mov	r2, #2
	mov	r0, #55
	bl	__syscall
.L6:
	ldr	r3, [fp, #-20]
	and	r3, r3, #2048
	cmp	r3, #0
	beq	.L7
	ldr	r3, [fp, #-16]
	ldr	r1, [r3]
	mov	r3, #2048
	mov	r2, #4
	mov	r0, #55
	bl	__syscall
	ldr	r3, [fp, #-16]
	add	r3, r3, #4
	ldr	r1, [r3]
	mov	r3, #2048
	mov	r2, #4
	mov	r0, #55
	bl	__syscall
.L7:
	mov	r3, #0
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	359
	.size	pipe2, .-pipe2
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
