	.file	"extr_rpc_main.c_open_input.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"execvp %s"
.LC1:
	.string	"fork"
.LC2:
	.string	"r"
.LC3:
	.string	"%s"
.LC4:
	.string	"<stdin>"
	.text
	.p2align 4
	.type	open_input, @function
open_input:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	test	rdi, rdi
	je	.L22
	mov	QWORD PTR infilename[rip], rdi
	mov	rbp, rdi
	mov	rdi, rsp
	call	pipe@PLT
	call	fork@PLT
	mov	DWORD PTR childpid[rip], eax
	cmp	eax, -1
	je	.L9
	test	eax, eax
	je	.L23
.L10:
	mov	edi, DWORD PTR 4[rsp]
	call	close@PLT
	mov	edi, DWORD PTR [rsp]
	lea	rsi, .LC2[rip]
	call	fdopen@PLT
	mov	QWORD PTR fin[rip], rax
	test	rax, rax
	je	.L24
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L25
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	lea	rax, .LC4[rip]
	mov	rdi, rsp
	mov	QWORD PTR infilename[rip], rax
	call	pipe@PLT
	call	fork@PLT
	mov	DWORD PTR childpid[rip], eax
	cmp	eax, -1
	je	.L9
	test	eax, eax
	jne	.L10
	xor	eax, eax
	call	prepend_cpp@PLT
	mov	rdi, r12
	call	addarg@PLT
.L5:
	xor	edi, edi
	call	addarg@PLT
	mov	edi, 1
	call	close@PLT
	mov	edi, DWORD PTR 4[rsp]
	mov	esi, 1
	call	dup2@PLT
	mov	edi, DWORD PTR [rsp]
	call	close@PLT
	mov	rax, QWORD PTR arglist[rip]
	mov	edi, DWORD PTR [rax]
	mov	rsi, rax
	call	execvp@PLT
	mov	rax, QWORD PTR arglist[rip]
	mov	edi, 1
	lea	rsi, .LC0[rip]
	mov	edx, DWORD PTR [rax]
	xor	eax, eax
	call	err@PLT
.L9:
	lea	rsi, .LC1[rip]
	mov	edi, 1
	xor	eax, eax
	call	err@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L23:
	xor	eax, eax
	call	prepend_cpp@PLT
	mov	rdi, r12
	call	addarg@PLT
	mov	rdi, rbp
	call	addarg@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L24:
	mov	rsi, QWORD PTR infilename[rip]
	lea	rdi, .LC3[rip]
	call	warn@PLT
	xor	eax, eax
	call	crash@PLT
	jmp	.L1
.L25:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	open_input, .-open_input
	.comm	infilename,8,8
	.comm	fin,8,8
	.comm	childpid,4,4
	.comm	arglist,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_rpc_main.c_open_input.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"execvp %s\000"
	.align	2
.LC1:
	.ascii	"fork\000"
	.align	2
.LC2:
	.ascii	"r\000"
	.align	2
.LC3:
	.ascii	"%s\000"
	.align	2
.LC4:
	.ascii	"<stdin>\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	open_input, %function
open_input:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L26
	sub	sp, sp, #16
	subs	r4, r0, #0
	mov	r5, r1
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	beq	.L22
	ldr	r6, .L26+4
	add	r0, sp, #4
	str	r4, [r6]
	bl	pipe
	bl	fork
	ldr	r3, .L26+8
	cmn	r0, #1
	str	r0, [r3]
	beq	.L9
	cmp	r0, #0
	beq	.L23
.L10:
	ldr	r0, [sp, #8]
	bl	close
	ldr	r1, .L26+12
	ldr	r0, [sp, #4]
	bl	fdopen
	ldr	r3, .L26+16
	cmp	r0, #0
	str	r0, [r3]
	beq	.L24
.L1:
	ldr	r3, .L26
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L25
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, pc}
.L22:
	ldr	r3, .L26+20
	ldr	r6, .L26+4
	add	r0, sp, #4
	str	r3, [r6]
	bl	pipe
	bl	fork
	ldr	r3, .L26+8
	cmn	r0, #1
	str	r0, [r3]
	beq	.L9
	cmp	r0, #0
	bne	.L10
	bl	prepend_cpp
	mov	r0, r5
	bl	addarg
.L5:
	mov	r0, #0
	bl	addarg
	mov	r0, #1
	bl	close
	ldr	r4, .L26+24
	mov	r1, #1
	ldr	r0, [sp, #8]
	bl	dup2
	ldr	r0, [sp, #4]
	bl	close
	ldr	r1, [r4]
	ldr	r0, [r1]
	bl	execvp
	ldr	r3, [r4]
	mov	r0, #1
	ldr	r1, .L26+28
	ldr	r2, [r3]
	bl	err
.L9:
	ldr	r1, .L26+32
	mov	r0, #1
	bl	err
	b	.L10
.L23:
	bl	prepend_cpp
	mov	r0, r5
	bl	addarg
	mov	r0, r4
	bl	addarg
	b	.L5
.L24:
	ldr	r1, [r6]
	ldr	r0, .L26+36
	bl	warn
	bl	crash
	b	.L1
.L25:
	bl	__stack_chk_fail
.L27:
	.align	2
.L26:
	.word	.LC5
	.word	infilename
	.word	childpid
	.word	.LC2
	.word	fin
	.word	.LC4
	.word	arglist
	.word	.LC0
	.word	.LC1
	.word	.LC3
	.size	open_input, .-open_input
	.comm	infilename,4,4
	.comm	fin,4,4
	.comm	childpid,4,4
	.comm	arglist,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
