	.file	"140703.c"
	.intel_syntax noprefix
	.text
	.local	progname
	.comm	progname,8,8
	.local	pipegone
	.comm	pipegone,4,4
	.type	catch_sigpipe, @function
catch_sigpipe:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR pipegone[rip], 1
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	catch_sigpipe, .-catch_sigpipe
	.section	.rodata
	.align 8
.LC0:
	.string	"Usage: %s [-nnn] program [arg [arg...]]\n\n\tRuns program with bash-style history written to stdout.\n\tnnn = number of lines of history to retain.\n\tIf nnn is zero or absent, retain all lines.\n"
	.text
	.type	usage, @function
usage:
.LFB7:
	.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	DWORD PTR -20[rbp], edi
	cmp	DWORD PTR -20[rbp], 0
	je	.L3
	mov	rax, QWORD PTR stderr[rip]
	jmp	.L4
.L3:
	mov	rax, QWORD PTR stdout[rip]
.L4:
	mov	QWORD PTR -8[rbp], rax
	mov	rdx, QWORD PTR progname[rip]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR -20[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	usage, .-usage
	.section	.rodata
.LC1:
	.string	"-help"
.LC2:
	.string	"%s: pipe failure\n"
.LC3:
	.string	"Cannot invoke %s\n"
.LC4:
	.string	"\n"
.LC5:
	.string	"%s\n"
.LC6:
	.string	"Signal %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 336
	mov	DWORD PTR -324[rbp], edi
	mov	QWORD PTR -336[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -316[rbp], 0
	mov	rax, QWORD PTR -336[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR progname[rip], rax
	sub	DWORD PTR -324[rbp], 1
	cmp	DWORD PTR -324[rbp], 0
	jg	.L7
	mov	edi, 1
	call	usage
	jmp	.L42
.L7:
	add	QWORD PTR -336[rbp], 8
	mov	rax, QWORD PTR -336[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -288[rbp], rax
	mov	rax, QWORD PTR -288[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	jne	.L9
	mov	rax, QWORD PTR -288[rbp]
	add	rax, 1
	mov	QWORD PTR -288[rbp], rax
	mov	rax, QWORD PTR -288[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 63
	jne	.L10
	mov	rax, QWORD PTR -288[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L10
	mov	edi, 0
	call	usage
	jmp	.L42
.L10:
	mov	rax, QWORD PTR -288[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L11
	mov	edi, 0
	call	usage
	jmp	.L42
.L11:
	mov	rax, QWORD PTR -288[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 47
	jle	.L12
	mov	rax, QWORD PTR -288[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 57
	jg	.L12
	mov	rax, QWORD PTR -288[rbp]
	lea	rcx, -288[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	strtol@PLT
	mov	DWORD PTR -316[rbp], eax
	mov	rax, QWORD PTR -288[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L14
	mov	edi, 1
	call	usage
	jmp	.L42
.L12:
	mov	rax, QWORD PTR -288[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	jne	.L15
	mov	rax, QWORD PTR -288[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L14
.L15:
	mov	edi, 1
	call	usage
	jmp	.L42
.L14:
	add	QWORD PTR -336[rbp], 8
	mov	rax, QWORD PTR -336[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -288[rbp], rax
	mov	rax, QWORD PTR -288[rbp]
	test	rax, rax
	jne	.L16
	mov	edi, 1
	call	usage
	jmp	.L42
.L16:
	sub	DWORD PTR -324[rbp], 1
.L9:
	lea	rax, -280[rbp]
	mov	rdi, rax
	call	pipe@PLT
	test	eax, eax
	je	.L17
	mov	rdx, QWORD PTR progname[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 2
	jmp	.L42
.L17:
	call	fork@PLT
	mov	DWORD PTR -312[rbp], eax
	cmp	DWORD PTR -312[rbp], 0
	jne	.L18
	mov	eax, DWORD PTR -280[rbp]
	mov	esi, 0
	mov	edi, eax
	call	dup2@PLT
	mov	eax, DWORD PTR -280[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -276[rbp]
	mov	edi, eax
	call	close@PLT
	mov	rax, QWORD PTR -336[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -336[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	execvp@PLT
	mov	rax, QWORD PTR -336[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 2
	jmp	.L42
.L18:
	mov	esi, 1
	mov	edi, 2
	call	signal@PLT
	lea	rsi, catch_sigpipe[rip]
	mov	edi, 13
	call	signal@PLT
	mov	eax, DWORD PTR -280[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -276[rbp]
	mov	DWORD PTR -308[rbp], eax
	call	using_history@PLT
	cmp	DWORD PTR -316[rbp], 0
	je	.L19
	mov	eax, DWORD PTR -316[rbp]
	mov	edi, eax
	call	stifle_history@PLT
.L19:
	mov	rax, QWORD PTR rl_insert@GOTPCREL[rip]
	mov	rsi, rax
	mov	edi, 9
	call	rl_bind_key@PLT
	jmp	.L20
.L36:
	mov	edi, 0
	call	readline@PLT
	mov	QWORD PTR -288[rbp], rax
	mov	rax, QWORD PTR -288[rbp]
	test	rax, rax
	jne	.L21
	lea	rcx, -272[rbp]
	mov	eax, DWORD PTR -308[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	jmp	.L22
.L21:
	mov	rax, QWORD PTR -288[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -304[rbp], eax
	mov	rdx, QWORD PTR -288[rbp]
	mov	eax, DWORD PTR -304[rbp]
	sub	eax, 1
	mov	DWORD PTR -316[rbp], eax
	mov	eax, DWORD PTR -316[rbp]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	jne	.L23
	cmp	DWORD PTR -316[rbp], 0
	jne	.L24
	mov	eax, DWORD PTR -304[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -288[rbp]
	mov	eax, DWORD PTR -308[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	jmp	.L25
.L24:
	mov	rdx, QWORD PTR -288[rbp]
	mov	eax, DWORD PTR -316[rbp]
	cdqe
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	jmp	.L26
.L23:
	mov	DWORD PTR -316[rbp], -1
.L26:
	mov	rax, QWORD PTR -288[rbp]
	lea	rdx, -296[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	history_expand@PLT
	mov	DWORD PTR -320[rbp], eax
	mov	eax, DWORD PTR -320[rbp]
	test	eax, eax
	jle	.L27
	mov	eax, DWORD PTR -320[rbp]
	cmp	eax, 2
	jne	.L28
	mov	rax, QWORD PTR -296[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -316[rbp], eax
	mov	eax, DWORD PTR -316[rbp]
	cmp	eax, 255
	ja	.L29
	mov	eax, DWORD PTR -316[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -296[rbp]
	lea	rax, -272[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	eax, DWORD PTR -316[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -316[rbp], edx
	cdqe
	mov	BYTE PTR -272[rbp+rax], 10
	mov	eax, DWORD PTR -316[rbp]
	movsx	rdx, eax
	lea	rax, -272[rbp]
	mov	rsi, rax
	mov	edi, 2
	call	write@PLT
	jmp	.L30
.L29:
	mov	eax, DWORD PTR -316[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -296[rbp]
	mov	rsi, rax
	mov	edi, 2
	call	write@PLT
	mov	edx, 1
	lea	rsi, .LC4[rip]
	mov	edi, 2
	call	write@PLT
.L30:
	mov	rax, QWORD PTR -296[rbp]
	mov	rdi, rax
	call	free@PLT
	jmp	.L25
.L28:
	mov	rax, QWORD PTR -288[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -296[rbp]
	mov	QWORD PTR -288[rbp], rax
	jmp	.L31
.L27:
	mov	rax, QWORD PTR -296[rbp]
	mov	rdi, rax
	call	free@PLT
.L31:
	mov	rax, QWORD PTR -288[rbp]
	mov	rdi, rax
	call	add_history@PLT
	mov	eax, DWORD PTR -320[rbp]
	test	eax, eax
	js	.L32
	mov	rax, QWORD PTR -288[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -316[rbp], eax
	mov	eax, DWORD PTR -316[rbp]
	cmp	eax, 255
	ja	.L33
	mov	eax, DWORD PTR -316[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -288[rbp]
	lea	rax, -272[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	eax, DWORD PTR -316[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -316[rbp], edx
	cdqe
	mov	BYTE PTR -272[rbp+rax], 10
	mov	eax, DWORD PTR -316[rbp]
	movsx	rdx, eax
	lea	rcx, -272[rbp]
	mov	eax, DWORD PTR -308[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	jmp	.L25
.L33:
	mov	eax, DWORD PTR -316[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -288[rbp]
	mov	eax, DWORD PTR -308[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR pipegone[rip]
	test	eax, eax
	jne	.L44
	mov	eax, DWORD PTR -308[rbp]
	mov	edx, 1
	lea	rsi, .LC4[rip]
	mov	edi, eax
	call	write@PLT
	jmp	.L25
.L32:
	cmp	DWORD PTR -316[rbp], 0
	js	.L35
	mov	rdx, QWORD PTR -288[rbp]
	mov	eax, DWORD PTR -316[rbp]
	cdqe
	add	rax, rdx
	mov	BYTE PTR [rax], 10
.L35:
	mov	eax, DWORD PTR -304[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -288[rbp]
	mov	eax, DWORD PTR -308[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
.L25:
	mov	rax, QWORD PTR -288[rbp]
	mov	rdi, rax
	call	free@PLT
.L20:
	mov	eax, DWORD PTR pipegone[rip]
	test	eax, eax
	je	.L36
	jmp	.L22
.L44:
	nop
.L22:
	mov	eax, DWORD PTR -308[rbp]
	mov	edi, eax
	call	close@PLT
	mov	DWORD PTR -320[rbp], 0
.L38:
	lea	rax, -320[rbp]
	mov	rdi, rax
	call	wait@PLT
	mov	DWORD PTR -316[rbp], eax
	cmp	DWORD PTR -316[rbp], -1
	je	.L37
	mov	eax, DWORD PTR -316[rbp]
	cmp	eax, DWORD PTR -312[rbp]
	jne	.L38
.L37:
	mov	eax, DWORD PTR -320[rbp]
	and	eax, 255
	mov	DWORD PTR -300[rbp], eax
	cmp	DWORD PTR -300[rbp], 0
	je	.L39
	cmp	DWORD PTR -300[rbp], 15
	jg	.L40
	mov	eax, DWORD PTR -300[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, signame.0[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L41
.L40:
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -300[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L41:
	mov	eax, 1
	jmp	.L42
.L39:
	mov	eax, DWORD PTR -320[rbp]
	sar	eax, 8
.L42:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L43
	call	__stack_chk_fail@PLT
.L43:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	main, .-main
	.section	.rodata
.LC7:
	.string	""
	.align 8
.LC8:
	.string	"Hangup on controlling terminal or death of controlling process"
.LC9:
	.string	"Interrupt from keyboard"
.LC10:
	.string	"Quit from keyboard"
.LC11:
	.string	"Illegal Instruction"
.LC12:
	.string	"Trace/breakpoint trap"
.LC13:
	.string	"Abort signal"
.LC14:
	.string	"Bus error"
.LC15:
	.string	"Floating point exception"
.LC16:
	.string	"Kill -9 signal"
.LC17:
	.string	"Signal 10"
	.align 8
.LC18:
	.string	"Segmentation fault (invalid memory reference)"
.LC19:
	.string	"Signal 12"
.LC20:
	.string	"Broken pipe"
.LC21:
	.string	"Alarmm (SIGALRM)"
.LC22:
	.string	"Termination signal (SIGTERM)"
	.section	.data.rel.local,"aw"
	.align 32
	.type	signame.0, @object
	.size	signame.0, 128
signame.0:
	.quad	.LC7
	.quad	.LC8
	.quad	.LC9
	.quad	.LC10
	.quad	.LC11
	.quad	.LC12
	.quad	.LC13
	.quad	.LC14
	.quad	.LC15
	.quad	.LC16
	.quad	.LC17
	.quad	.LC18
	.quad	.LC19
	.quad	.LC20
	.quad	.LC21
	.quad	.LC22
	.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	"140703.c"
	.text
	.local	progname
	.comm	progname,4,4
	.local	pipegone
	.comm	pipegone,4,4
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	catch_sigpipe, %function
catch_sigpipe:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, .L2
	mov	r2, #1
	str	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L3:
	.align	2
.L2:
	.word	pipegone
	.size	catch_sigpipe, .-catch_sigpipe
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Usage: %s [-nnn] program [arg [arg...]]\012\012\011"
	.ascii	"Runs program with bash-style history written to std"
	.ascii	"out.\012\011nnn = number of lines of history to ret"
	.ascii	"ain.\012\011If nnn is zero or absent, retain all li"
	.ascii	"nes.\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	usage, %function
usage:
	@ 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]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L5
	ldr	r3, .L8
	ldr	r3, [r3]
	b	.L6
.L5:
	ldr	r3, .L8+4
	ldr	r3, [r3]
.L6:
	str	r3, [fp, #-8]
	ldr	r3, .L8+8
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L8+12
	ldr	r0, [fp, #-8]
	bl	fprintf
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	stderr
	.word	stdout
	.word	progname
	.word	.LC0
	.size	usage, .-usage
	.section	.rodata
	.align	2
.LC1:
	.ascii	"-help\000"
	.align	2
.LC2:
	.ascii	"%s: pipe failure\012\000"
	.align	2
.LC3:
	.ascii	"Cannot invoke %s\012\000"
	.align	2
.LC4:
	.ascii	"\012\000"
	.align	2
.LC5:
	.ascii	"%s\012\000"
	.align	2
.LC6:
	.ascii	"Signal %d\012\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 312
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #312
	str	r0, [fp, #-312]
	str	r1, [fp, #-316]
	ldr	r3, .L49
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-292]
	ldr	r3, [fp, #-316]
	ldr	r3, [r3]
	ldr	r2, .L49+4
	str	r3, [r2]
	ldr	r3, [fp, #-312]
	sub	r3, r3, #1
	str	r3, [fp, #-312]
	ldr	r3, [fp, #-312]
	cmp	r3, #0
	bgt	.L11
	mov	r0, #1
	bl	usage
	mov	r3, r0
	b	.L46
.L11:
	ldr	r3, [fp, #-316]
	add	r3, r3, #4
	str	r3, [fp, #-316]
	ldr	r3, [fp, #-316]
	ldr	r3, [r3]
	str	r3, [fp, #-300]
	ldr	r3, [fp, #-300]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L13
	ldr	r3, [fp, #-300]
	add	r3, r3, #1
	str	r3, [fp, #-300]
	ldr	r3, [fp, #-300]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #63
	bne	.L14
	ldr	r3, [fp, #-300]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L14
	mov	r0, #0
	bl	usage
	mov	r3, r0
	b	.L46
.L14:
	ldr	r3, [fp, #-300]
	ldr	r1, .L49+8
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L15
	mov	r0, #0
	bl	usage
	mov	r3, r0
	b	.L46
.L15:
	ldr	r3, [fp, #-300]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	bls	.L16
	ldr	r3, [fp, #-300]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #57
	bhi	.L16
	ldr	r3, [fp, #-300]
	sub	r1, fp, #300
	mov	r2, #0
	mov	r0, r3
	bl	strtol
	str	r0, [fp, #-292]
	ldr	r3, [fp, #-300]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L18
	mov	r0, #1
	bl	usage
	mov	r3, r0
	b	.L46
.L16:
	ldr	r3, [fp, #-300]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L19
	ldr	r3, [fp, #-300]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L18
.L19:
	mov	r0, #1
	bl	usage
	mov	r3, r0
	b	.L46
.L18:
	ldr	r3, [fp, #-316]
	add	r3, r3, #4
	str	r3, [fp, #-316]
	ldr	r3, [fp, #-316]
	ldr	r3, [r3]
	str	r3, [fp, #-300]
	ldr	r3, [fp, #-300]
	cmp	r3, #0
	bne	.L20
	mov	r0, #1
	bl	usage
	mov	r3, r0
	b	.L46
.L20:
	ldr	r3, [fp, #-312]
	sub	r3, r3, #1
	str	r3, [fp, #-312]
.L13:
	sub	r3, fp, #272
	mov	r0, r3
	bl	pipe
	mov	r3, r0
	cmp	r3, #0
	beq	.L21
	ldr	r3, .L49+12
	ldr	r3, [r3]
	ldr	r2, .L49+4
	ldr	r2, [r2]
	ldr	r1, .L49+16
	mov	r0, r3
	bl	fprintf
	mov	r3, #2
	b	.L46
.L21:
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-288]
	ldr	r3, [fp, #-288]
	cmp	r3, #0
	bne	.L22
	ldr	r3, [fp, #-272]
	mov	r1, #0
	mov	r0, r3
	bl	dup2
	ldr	r3, [fp, #-272]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-268]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-316]
	ldr	r3, [r3]
	ldr	r1, [fp, #-316]
	mov	r0, r3
	bl	execvp
	ldr	r3, .L49+12
	ldr	r0, [r3]
	ldr	r3, [fp, #-316]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L49+20
	bl	fprintf
	mov	r3, #2
	b	.L46
.L22:
	mov	r1, #1
	mov	r0, #2
	bl	signal
	ldr	r1, .L49+24
	mov	r0, #13
	bl	signal
	ldr	r3, [fp, #-272]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-268]
	str	r3, [fp, #-284]
	bl	using_history
	ldr	r3, [fp, #-292]
	cmp	r3, #0
	beq	.L23
	ldr	r0, [fp, #-292]
	bl	stifle_history
.L23:
	ldr	r1, .L49+28
	mov	r0, #9
	bl	rl_bind_key
	b	.L24
.L40:
	mov	r0, #0
	bl	readline
	mov	r3, r0
	str	r3, [fp, #-300]
	ldr	r3, [fp, #-300]
	cmp	r3, #0
	bne	.L25
	sub	r3, fp, #264
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-284]
	bl	write
	b	.L26
.L25:
	ldr	r3, [fp, #-300]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-280]
	ldr	r2, [fp, #-300]
	ldr	r3, [fp, #-280]
	sub	r3, r3, #1
	str	r3, [fp, #-292]
	ldr	r3, [fp, #-292]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L27
	ldr	r3, [fp, #-292]
	cmp	r3, #0
	bne	.L28
	ldr	r3, [fp, #-300]
	ldr	r2, [fp, #-280]
	mov	r1, r3
	ldr	r0, [fp, #-284]
	bl	write
	b	.L29
.L28:
	ldr	r2, [fp, #-300]
	ldr	r3, [fp, #-292]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	b	.L30
.L27:
	mvn	r3, #0
	str	r3, [fp, #-292]
.L30:
	ldr	r3, [fp, #-300]
	sub	r2, fp, #304
	mov	r1, r2
	mov	r0, r3
	bl	history_expand
	mov	r3, r0
	str	r3, [fp, #-296]
	ldr	r3, [fp, #-296]
	cmp	r3, #0
	ble	.L31
	ldr	r3, [fp, #-296]
	cmp	r3, #2
	bne	.L32
	ldr	r3, [fp, #-304]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-292]
	ldr	r3, [fp, #-292]
	cmp	r3, #255
	bhi	.L33
	ldr	r1, [fp, #-304]
	ldr	r2, [fp, #-292]
	sub	r3, fp, #264
	mov	r0, r3
	bl	memcpy
	ldr	r3, [fp, #-292]
	add	r2, r3, #1
	str	r2, [fp, #-292]
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #10
	strb	r2, [r3, #-260]
	ldr	r2, [fp, #-292]
	sub	r3, fp, #264
	mov	r1, r3
	mov	r0, #2
	bl	write
	b	.L34
.L33:
	ldr	r3, [fp, #-304]
	ldr	r2, [fp, #-292]
	mov	r1, r3
	mov	r0, #2
	bl	write
	mov	r2, #1
	ldr	r1, .L49+32
	mov	r0, #2
	bl	write
.L34:
	ldr	r3, [fp, #-304]
	mov	r0, r3
	bl	free
	b	.L29
.L32:
	ldr	r3, [fp, #-300]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-304]
	str	r3, [fp, #-300]
	b	.L35
.L31:
	ldr	r3, [fp, #-304]
	mov	r0, r3
	bl	free
.L35:
	ldr	r3, [fp, #-300]
	mov	r0, r3
	bl	add_history
	ldr	r3, [fp, #-296]
	cmp	r3, #0
	blt	.L36
	ldr	r3, [fp, #-300]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-292]
	ldr	r3, [fp, #-292]
	cmp	r3, #255
	bhi	.L37
	ldr	r1, [fp, #-300]
	ldr	r2, [fp, #-292]
	sub	r3, fp, #264
	mov	r0, r3
	bl	memcpy
	ldr	r3, [fp, #-292]
	add	r2, r3, #1
	str	r2, [fp, #-292]
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #10
	strb	r2, [r3, #-260]
	ldr	r2, [fp, #-292]
	sub	r3, fp, #264
	mov	r1, r3
	ldr	r0, [fp, #-284]
	bl	write
	b	.L29
.L37:
	ldr	r3, [fp, #-300]
	ldr	r2, [fp, #-292]
	mov	r1, r3
	ldr	r0, [fp, #-284]
	bl	write
	ldr	r3, .L49+36
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L48
	mov	r2, #1
	ldr	r1, .L49+32
	ldr	r0, [fp, #-284]
	bl	write
	b	.L29
.L36:
	ldr	r3, [fp, #-292]
	cmp	r3, #0
	blt	.L39
	ldr	r2, [fp, #-300]
	ldr	r3, [fp, #-292]
	add	r3, r2, r3
	mov	r2, #10
	strb	r2, [r3]
.L39:
	ldr	r3, [fp, #-300]
	ldr	r2, [fp, #-280]
	mov	r1, r3
	ldr	r0, [fp, #-284]
	bl	write
.L29:
	ldr	r3, [fp, #-300]
	mov	r0, r3
	bl	free
.L24:
	ldr	r3, .L49+36
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L40
	b	.L26
.L48:
	nop
.L26:
	ldr	r0, [fp, #-284]
	bl	close
	mov	r3, #0
	str	r3, [fp, #-296]
.L42:
	sub	r3, fp, #296
	mov	r0, r3
	bl	wait
	str	r0, [fp, #-292]
	ldr	r3, [fp, #-292]
	cmn	r3, #1
	beq	.L41
	ldr	r2, [fp, #-292]
	ldr	r3, [fp, #-288]
	cmp	r2, r3
	bne	.L42
.L41:
	ldr	r3, [fp, #-296]
	and	r3, r3, #255
	str	r3, [fp, #-276]
	ldr	r3, [fp, #-276]
	cmp	r3, #0
	beq	.L43
	ldr	r3, [fp, #-276]
	cmp	r3, #15
	bgt	.L44
	ldr	r3, .L49+12
	ldr	r0, [r3]
	ldr	r2, .L49+40
	ldr	r3, [fp, #-276]
	ldr	r3, [r2, r3, lsl #2]
	mov	r2, r3
	ldr	r1, .L49+44
	bl	fprintf
	b	.L45
.L44:
	ldr	r3, .L49+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-276]
	ldr	r1, .L49+48
	mov	r0, r3
	bl	fprintf
.L45:
	mov	r3, #1
	b	.L46
.L43:
	ldr	r3, [fp, #-296]
	asr	r3, r3, #8
.L46:
	ldr	r2, .L49
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L47
	bl	__stack_chk_fail
.L47:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L50:
	.align	2
.L49:
	.word	.LC7
	.word	progname
	.word	.LC1
	.word	stderr
	.word	.LC2
	.word	.LC3
	.word	catch_sigpipe
	.word	rl_insert
	.word	.LC4
	.word	pipegone
	.word	signame.7579
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.section	.rodata
	.align	2
.LC8:
	.ascii	"\000"
	.align	2
.LC9:
	.ascii	"Hangup on controlling terminal or death of controll"
	.ascii	"ing process\000"
	.align	2
.LC10:
	.ascii	"Interrupt from keyboard\000"
	.align	2
.LC11:
	.ascii	"Quit from keyboard\000"
	.align	2
.LC12:
	.ascii	"Illegal Instruction\000"
	.align	2
.LC13:
	.ascii	"Trace/breakpoint trap\000"
	.align	2
.LC14:
	.ascii	"Abort signal\000"
	.align	2
.LC15:
	.ascii	"Bus error\000"
	.align	2
.LC16:
	.ascii	"Floating point exception\000"
	.align	2
.LC17:
	.ascii	"Kill -9 signal\000"
	.align	2
.LC18:
	.ascii	"Signal 10\000"
	.align	2
.LC19:
	.ascii	"Segmentation fault (invalid memory reference)\000"
	.align	2
.LC20:
	.ascii	"Signal 12\000"
	.align	2
.LC21:
	.ascii	"Broken pipe\000"
	.align	2
.LC22:
	.ascii	"Alarmm (SIGALRM)\000"
	.align	2
.LC23:
	.ascii	"Termination signal (SIGTERM)\000"
	.data
	.align	2
	.type	signame.7579, %object
	.size	signame.7579, 64
signame.7579:
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
