	.file	"6388535.c"
	.intel_syntax noprefix
	.text
	.globl	is_alphabetic_do_lower
	.type	is_alphabetic_do_lower, @function
is_alphabetic_do_lower:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 96
	jle	.L2
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 122
	jg	.L2
	mov	eax, 1
	jmp	.L3
.L2:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 64
	jle	.L4
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 90
	jg	.L4
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	add	eax, 32
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR [rax], dl
	mov	eax, 1
	jmp	.L3
.L4:
	mov	eax, 0
.L3:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	is_alphabetic_do_lower, .-is_alphabetic_do_lower
	.section	.rodata
.LC0:
	.string	"Stdin read error"
	.text
	.globl	do_parse
	.type	do_parse, @function
do_parse:
.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, 64
	mov	DWORD PTR -36[rbp], edi
	mov	DWORD PTR -40[rbp], esi
	mov	DWORD PTR -44[rbp], edx
	mov	QWORD PTR -56[rbp], rcx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -32[rbp], 0
	mov	DWORD PTR -28[rbp], 0
	mov	eax, DWORD PTR -40[rbp]
	add	eax, 1
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	jmp	.L6
.L9:
	lea	rax, -10[rbp]
	mov	rdi, rax
	call	is_alphabetic_do_lower
	test	eax, eax
	je	.L7
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -40[rbp]
	jge	.L6
	mov	eax, DWORD PTR -28[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -28[rbp], edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -10[rbp]
	mov	BYTE PTR [rdx], al
	jmp	.L6
.L7:
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jle	.L8
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	mov	eax, DWORD PTR -32[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -32[rbp], edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	mov	eax, DWORD PTR -32[rbp]
	cdq
	idiv	DWORD PTR -36[rbp]
	mov	DWORD PTR -32[rbp], edx
.L8:
	mov	DWORD PTR -28[rbp], 0
.L6:
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -10[rbp]
	mov	esi, 2
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L9
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jle	.L10
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	mov	eax, DWORD PTR -32[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -32[rbp], edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	mov	eax, DWORD PTR -32[rbp]
	cdq
	idiv	DWORD PTR -36[rbp]
	mov	DWORD PTR -32[rbp], edx
.L10:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	ferror@PLT
	test	eax, eax
	je	.L11
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L13
.L11:
	mov	eax, 0
.L13:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	do_parse, .-do_parse
	.globl	clean_tail_break
	.type	clean_tail_break, @function
clean_tail_break:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	jne	.L18
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	nop
.L18:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	clean_tail_break, .-clean_tail_break
	.section	.rodata
.LC1:
	.string	"\n"
.LC2:
	.string	"%-10lu%s\n"
	.text
	.globl	do_merge
	.type	do_merge, @function
do_merge:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 72
	.cfi_offset 3, -24
	mov	DWORD PTR -68[rbp], edi
	mov	DWORD PTR -72[rbp], esi
	mov	QWORD PTR -80[rbp], rdx
	mov	eax, DWORD PTR -72[rbp]
	add	eax, 1
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	QWORD PTR -48[rbp], 0
	mov	DWORD PTR -60[rbp], 0
	mov	DWORD PTR -52[rbp], 1
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	DWORD PTR -56[rbp], 0
	jmp	.L20
.L21:
	mov	eax, DWORD PTR -72[rbp]
	add	eax, 1
	cdqe
	mov	edx, DWORD PTR -56[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -32[rbp]
	lea	rbx, [rcx+rdx]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	add	DWORD PTR -56[rbp], 1
.L20:
	mov	eax, DWORD PTR -56[rbp]
	cmp	eax, DWORD PTR -68[rbp]
	jl	.L21
	mov	rax, QWORD PTR -40[rbp]
	mov	WORD PTR [rax], 123
	mov	DWORD PTR -56[rbp], 0
	jmp	.L22
.L25:
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -72[rbp]
	lea	ecx, 1[rax]
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	lea	rsi, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rsi
	mov	rax, QWORD PTR [rax]
	mov	esi, ecx
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L23
	mov	eax, DWORD PTR -56[rbp]
	mov	edx, 1
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	or	DWORD PTR -60[rbp], eax
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	BYTE PTR [rax], 0
	jmp	.L24
.L23:
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	clean_tail_break
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jns	.L24
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
.L24:
	add	DWORD PTR -56[rbp], 1
.L22:
	mov	eax, DWORD PTR -56[rbp]
	cmp	eax, DWORD PTR -68[rbp]
	jl	.L25
.L46:
	mov	DWORD PTR -56[rbp], 0
	jmp	.L26
.L35:
	mov	eax, DWORD PTR -56[rbp]
	mov	edx, 1
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	and	eax, DWORD PTR -60[rbp]
	test	eax, eax
	jne	.L51
	jmp	.L29
.L34:
	add	QWORD PTR -48[rbp], 1
	jmp	.L30
.L32:
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L52
.L30:
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -72[rbp]
	lea	ecx, 1[rax]
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	lea	rsi, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rsi
	mov	rax, QWORD PTR [rax]
	mov	esi, ecx
	mov	rdi, rax
	call	fgets@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L32
	jmp	.L31
.L52:
	nop
.L31:
	cmp	QWORD PTR -24[rbp], 0
	jne	.L33
	mov	eax, DWORD PTR -56[rbp]
	mov	edx, 1
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	or	DWORD PTR -60[rbp], eax
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	BYTE PTR [rax], 0
	jmp	.L28
.L33:
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	clean_tail_break
.L29:
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L34
	jmp	.L28
.L51:
	nop
.L28:
	add	DWORD PTR -56[rbp], 1
.L26:
	mov	eax, DWORD PTR -56[rbp]
	cmp	eax, DWORD PTR -68[rbp]
	jl	.L35
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	test	eax, eax
	je	.L36
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR -48[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L36:
	mov	DWORD PTR -52[rbp], 1
	mov	DWORD PTR -56[rbp], 0
	jmp	.L37
.L39:
	mov	eax, DWORD PTR -56[rbp]
	mov	edx, 1
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	and	eax, DWORD PTR -60[rbp]
	test	eax, eax
	jne	.L38
	mov	DWORD PTR -52[rbp], 0
.L38:
	add	DWORD PTR -56[rbp], 1
.L37:
	mov	eax, DWORD PTR -56[rbp]
	cmp	eax, DWORD PTR -68[rbp]
	jl	.L39
	cmp	DWORD PTR -52[rbp], 1
	je	.L53
	mov	QWORD PTR -48[rbp], 0
	mov	rax, QWORD PTR -40[rbp]
	mov	WORD PTR [rax], 123
	mov	DWORD PTR -56[rbp], 0
	jmp	.L42
.L45:
	mov	eax, DWORD PTR -56[rbp]
	mov	edx, 1
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	and	eax, DWORD PTR -60[rbp]
	test	eax, eax
	jne	.L54
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jns	.L44
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	jmp	.L44
.L54:
	nop
.L44:
	add	DWORD PTR -56[rbp], 1
.L42:
	mov	eax, DWORD PTR -56[rbp]
	cmp	eax, DWORD PTR -68[rbp]
	jl	.L45
	jmp	.L46
.L53:
	nop
	mov	DWORD PTR -56[rbp], 0
	jmp	.L47
.L48:
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	add	DWORD PTR -56[rbp], 1
.L47:
	mov	eax, DWORD PTR -56[rbp]
	cmp	eax, DWORD PTR -68[rbp]
	jl	.L48
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	do_merge, .-do_merge
	.section	.rodata
	.align 8
.LC3:
	.string	"pipsort: Invalid option argument: -%c %s \n"
	.align 8
.LC4:
	.string	"pipesort: Invalid option: -%c\n"
.LC5:
	.string	"n:s:l:"
	.align 8
.LC6:
	.string	"USAGE: pipesort -n sorter_cnt -s short -l long\n"
	.align 8
.LC7:
	.string	"pipsort: expected -s < -l, but violates when -s=%d, -l=%d\n"
	.align 8
.LC8:
	.string	"Pipe between parser and sorter"
	.align 8
.LC9:
	.string	"Pipe between merger and sorter"
.LC10:
	.string	"Fork parse and merge process"
.LC11:
	.string	"w"
	.align 8
.LC12:
	.string	"OutPipe between parser and sorter - fdopen"
.LC13:
	.string	"r"
	.align 8
.LC14:
	.string	"InPipe between merger and sorter - fdopen"
.LC15:
	.string	"Fork sorter process"
.LC16:
	.string	"sort"
.LC17:
	.string	"/usr/bin/sort"
.LC18:
	.string	"Main wait"
	.align 8
.LC19:
	.string	"Child Process[pid=%d] returned %d, exit\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 200
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	DWORD PTR -196[rbp], edi
	mov	QWORD PTR -208[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -164[rbp], -1
	mov	DWORD PTR -168[rbp], -1
	mov	DWORD PTR -172[rbp], -1
	mov	DWORD PTR -176[rbp], 0
	jmp	.L56
.L65:
	cmp	DWORD PTR -152[rbp], 115
	je	.L57
	cmp	DWORD PTR -152[rbp], 115
	jg	.L56
	cmp	DWORD PTR -152[rbp], 110
	je	.L58
	cmp	DWORD PTR -152[rbp], 110
	jg	.L56
	cmp	DWORD PTR -152[rbp], 63
	je	.L59
	cmp	DWORD PTR -152[rbp], 108
	je	.L60
	jmp	.L56
.L58:
	mov	rax, QWORD PTR optarg[rip]
	lea	rcx, -136[rbp]
	mov	edx, 10
	mov	rsi, rcx
	mov	rdi, rax
	call	strtol@PLT
	mov	DWORD PTR -172[rbp], eax
	cmp	DWORD PTR -172[rbp], 0
	jns	.L56
	mov	rcx, QWORD PTR optarg[rip]
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -152[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L57:
	mov	rax, QWORD PTR optarg[rip]
	lea	rcx, -136[rbp]
	mov	edx, 10
	mov	rsi, rcx
	mov	rdi, rax
	call	strtol@PLT
	mov	DWORD PTR -164[rbp], eax
	cmp	DWORD PTR -164[rbp], 0
	jns	.L56
	mov	rcx, QWORD PTR optarg[rip]
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -152[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L60:
	mov	rax, QWORD PTR optarg[rip]
	lea	rcx, -136[rbp]
	mov	edx, 10
	mov	rsi, rcx
	mov	rdi, rax
	call	strtol@PLT
	mov	DWORD PTR -168[rbp], eax
	cmp	DWORD PTR -168[rbp], 0
	jns	.L56
	mov	rcx, QWORD PTR optarg[rip]
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -152[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L59:
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -152[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L114
.L56:
	mov	rcx, QWORD PTR -208[rbp]
	mov	eax, DWORD PTR -196[rbp]
	lea	rdx, .LC5[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -152[rbp], eax
	cmp	DWORD PTR -152[rbp], -1
	jne	.L65
	cmp	DWORD PTR -172[rbp], -1
	je	.L66
	cmp	DWORD PTR -164[rbp], -1
	je	.L66
	cmp	DWORD PTR -168[rbp], -1
	jne	.L67
.L66:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 47
	mov	esi, 1
	lea	rdi, .LC6[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L114
.L67:
	mov	eax, DWORD PTR -164[rbp]
	cmp	eax, DWORD PTR -168[rbp]
	jl	.L68
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, DWORD PTR -168[rbp]
	mov	edx, DWORD PTR -164[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L114
.L68:
	call	getpid@PLT
	mov	DWORD PTR -68[rbp], eax
	mov	eax, DWORD PTR -172[rbp]
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -128[rbp], rax
	mov	eax, DWORD PTR -172[rbp]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -120[rbp], rax
	mov	eax, DWORD PTR -172[rbp]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -112[rbp], rax
	mov	DWORD PTR -180[rbp], 0
	jmp	.L69
.L73:
	mov	eax, DWORD PTR -180[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -120[rbp]
	lea	rbx, [rdx+rax]
	mov	edi, 8
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	eax, DWORD PTR -180[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	pipe@PLT
	cmp	eax, -1
	jne	.L70
	lea	rdi, .LC8[rip]
	call	perror@PLT
	mov	DWORD PTR -176[rbp], 1
	jmp	.L71
.L70:
	mov	eax, DWORD PTR -180[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -112[rbp]
	lea	rbx, [rdx+rax]
	mov	edi, 8
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	eax, DWORD PTR -180[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -112[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	pipe@PLT
	cmp	eax, -1
	jne	.L72
	lea	rdi, .LC9[rip]
	call	perror@PLT
	mov	DWORD PTR -176[rbp], 1
	jmp	.L71
.L72:
	add	DWORD PTR -180[rbp], 1
.L69:
	mov	eax, DWORD PTR -180[rbp]
	cmp	eax, DWORD PTR -172[rbp]
	jl	.L73
.L71:
	cmp	DWORD PTR -176[rbp], 0
	je	.L74
	mov	rax, QWORD PTR -128[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	DWORD PTR -180[rbp], 0
	jmp	.L75
.L76:
	mov	eax, DWORD PTR -180[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -180[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -112[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	add	DWORD PTR -180[rbp], 1
.L75:
	mov	eax, DWORD PTR -180[rbp]
	cmp	eax, DWORD PTR -172[rbp]
	jl	.L76
	mov	rax, QWORD PTR -120[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -112[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -176[rbp]
	jmp	.L114
.L74:
	mov	DWORD PTR -160[rbp], 1
	jmp	.L77
.L97:
	call	fork@PLT
	mov	edx, eax
	mov	eax, DWORD PTR -160[rbp]
	cdqe
	mov	DWORD PTR -68[rbp+rax*4], edx
	mov	eax, DWORD PTR -160[rbp]
	cdqe
	mov	eax, DWORD PTR -68[rbp+rax*4]
	cmp	eax, -1
	jne	.L78
	lea	rdi, .LC10[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L78:
	cmp	DWORD PTR -160[rbp], 1
	jne	.L79
	mov	eax, DWORD PTR -64[rbp]
	test	eax, eax
	jne	.L79
	mov	DWORD PTR -144[rbp], 0
	mov	eax, DWORD PTR -172[rbp]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -104[rbp], rdx
	movsx	rdx, eax
	mov	r12, rdx
	mov	r13d, 0
	movsx	rdx, eax
	mov	r14, rdx
	mov	r15d, 0
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	ebx, 16
	mov	edx, 0
	div	rbx
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L80:
	cmp	rsp, rdx
	je	.L81
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L80
.L81:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L82
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L82:
	mov	rax, rsp
	add	rax, 7
	shr	rax, 3
	sal	rax, 3
	mov	QWORD PTR -96[rbp], rax
	mov	DWORD PTR -180[rbp], 0
	jmp	.L83
.L85:
	mov	eax, DWORD PTR -180[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -180[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	add	rax, 4
	mov	eax, DWORD PTR [rax]
	lea	rsi, .LC11[rip]
	mov	edi, eax
	call	fdopen@PLT
	mov	rdx, QWORD PTR -96[rbp]
	mov	ecx, DWORD PTR -180[rbp]
	movsx	rcx, ecx
	mov	QWORD PTR [rdx+rcx*8], rax
	mov	rax, QWORD PTR -96[rbp]
	mov	edx, DWORD PTR -180[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR [rax+rdx*8]
	test	rax, rax
	jne	.L84
	lea	rdi, .LC12[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L84:
	mov	eax, DWORD PTR -180[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -112[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -180[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -112[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	add	rax, 4
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	close@PLT
	add	DWORD PTR -180[rbp], 1
.L83:
	mov	eax, DWORD PTR -180[rbp]
	cmp	eax, DWORD PTR -172[rbp]
	jl	.L85
	mov	rcx, QWORD PTR -96[rbp]
	mov	edx, DWORD PTR -164[rbp]
	mov	esi, DWORD PTR -168[rbp]
	mov	eax, DWORD PTR -172[rbp]
	mov	edi, eax
	call	do_parse
	mov	DWORD PTR -144[rbp], eax
	mov	DWORD PTR -180[rbp], 0
	jmp	.L86
.L87:
	mov	rax, QWORD PTR -96[rbp]
	mov	edx, DWORD PTR -180[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR [rax+rdx*8]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, DWORD PTR -180[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	add	rax, 4
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	close@PLT
	add	DWORD PTR -180[rbp], 1
.L86:
	mov	eax, DWORD PTR -180[rbp]
	cmp	eax, DWORD PTR -172[rbp]
	jl	.L87
	mov	eax, DWORD PTR -144[rbp]
	mov	edi, eax
	call	exit@PLT
.L79:
	cmp	DWORD PTR -160[rbp], 2
	sete	dl
	mov	eax, DWORD PTR -60[rbp]
	test	eax, eax
	sete	al
	and	eax, edx
	test	al, al
	je	.L88
	mov	eax, DWORD PTR -172[rbp]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -88[rbp], rdx
	movsx	rdx, eax
	mov	QWORD PTR -224[rbp], rdx
	mov	QWORD PTR -216[rbp], 0
	movsx	rdx, eax
	mov	QWORD PTR -240[rbp], rdx
	mov	QWORD PTR -232[rbp], 0
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	ebx, 16
	mov	edx, 0
	div	rbx
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L89:
	cmp	rsp, rdx
	je	.L90
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L89
.L90:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L91
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L91:
	mov	rax, rsp
	add	rax, 7
	shr	rax, 3
	sal	rax, 3
	mov	QWORD PTR -80[rbp], rax
	mov	DWORD PTR -180[rbp], 0
	jmp	.L92
.L94:
	mov	eax, DWORD PTR -180[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -180[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	add	rax, 4
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -180[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -112[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	lea	rsi, .LC13[rip]
	mov	edi, eax
	call	fdopen@PLT
	mov	rdx, QWORD PTR -80[rbp]
	mov	ecx, DWORD PTR -180[rbp]
	movsx	rcx, ecx
	mov	QWORD PTR [rdx+rcx*8], rax
	mov	rax, QWORD PTR -80[rbp]
	mov	edx, DWORD PTR -180[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR [rax+rdx*8]
	test	rax, rax
	jne	.L93
	lea	rdi, .LC14[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L93:
	mov	eax, DWORD PTR -180[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -112[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	add	rax, 4
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	close@PLT
	add	DWORD PTR -180[rbp], 1
.L92:
	mov	eax, DWORD PTR -180[rbp]
	cmp	eax, DWORD PTR -172[rbp]
	jl	.L94
	mov	rdx, QWORD PTR -80[rbp]
	mov	ecx, DWORD PTR -168[rbp]
	mov	eax, DWORD PTR -172[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	do_merge
	mov	DWORD PTR -140[rbp], eax
	mov	DWORD PTR -180[rbp], 0
	jmp	.L95
.L96:
	mov	rax, QWORD PTR -80[rbp]
	mov	edx, DWORD PTR -180[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR [rax+rdx*8]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, DWORD PTR -180[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -112[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	close@PLT
	add	DWORD PTR -180[rbp], 1
.L95:
	mov	eax, DWORD PTR -180[rbp]
	cmp	eax, DWORD PTR -172[rbp]
	jl	.L96
	mov	eax, DWORD PTR -140[rbp]
	mov	edi, eax
	call	exit@PLT
.L88:
	add	DWORD PTR -160[rbp], 1
.L77:
	cmp	DWORD PTR -160[rbp], 2
	jle	.L97
	mov	DWORD PTR -180[rbp], 0
	jmp	.L98
.L104:
	mov	eax, DWORD PTR -180[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -128[rbp]
	lea	rbx, [rdx+rax]
	call	fork@PLT
	mov	DWORD PTR [rbx], eax
	mov	eax, DWORD PTR [rbx]
	cmp	eax, -1
	jne	.L99
	lea	rdi, .LC15[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L99:
	mov	eax, DWORD PTR -180[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -128[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L100
	mov	DWORD PTR -156[rbp], 0
	jmp	.L101
.L103:
	mov	eax, DWORD PTR -156[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	add	rax, 4
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -156[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -112[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -180[rbp]
	cmp	eax, DWORD PTR -156[rbp]
	je	.L102
	mov	eax, DWORD PTR -156[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -156[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -112[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	add	rax, 4
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	close@PLT
.L102:
	add	DWORD PTR -156[rbp], 1
.L101:
	mov	eax, DWORD PTR -156[rbp]
	cmp	eax, DWORD PTR -172[rbp]
	jl	.L103
	mov	eax, DWORD PTR -180[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	mov	esi, 0
	mov	edi, eax
	call	dup2@PLT
	mov	eax, DWORD PTR -180[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -112[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	add	rax, 4
	mov	eax, DWORD PTR [rax]
	mov	esi, 1
	mov	edi, eax
	call	dup2@PLT
	mov	edx, 0
	lea	rsi, .LC16[rip]
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	execl@PLT
	mov	eax, DWORD PTR -180[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -180[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -112[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	add	rax, 4
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	close@PLT
	mov	edi, 0
	call	exit@PLT
.L100:
	add	DWORD PTR -180[rbp], 1
.L98:
	mov	eax, DWORD PTR -180[rbp]
	cmp	eax, DWORD PTR -172[rbp]
	jl	.L104
	mov	DWORD PTR -180[rbp], 0
	jmp	.L105
.L106:
	mov	eax, DWORD PTR -180[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -180[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	add	rax, 4
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -180[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -112[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -180[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -112[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	add	rax, 4
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	close@PLT
	add	DWORD PTR -180[rbp], 1
.L105:
	mov	eax, DWORD PTR -180[rbp]
	cmp	eax, DWORD PTR -172[rbp]
	jl	.L106
	mov	DWORD PTR -180[rbp], 0
	jmp	.L107
.L111:
	lea	rax, -184[rbp]
	mov	rdi, rax
	call	wait@PLT
	mov	DWORD PTR -148[rbp], eax
	cmp	DWORD PTR -148[rbp], -1
	jne	.L108
	lea	rdi, .LC18[rip]
	call	perror@PLT
	mov	DWORD PTR -176[rbp], 1
	jmp	.L109
.L108:
	mov	eax, DWORD PTR -184[rbp]
	test	eax, eax
	je	.L110
	mov	ecx, DWORD PTR -184[rbp]
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -148[rbp]
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -176[rbp], 1
	jmp	.L109
.L110:
	add	DWORD PTR -180[rbp], 1
.L107:
	mov	eax, DWORD PTR -172[rbp]
	cmp	eax, DWORD PTR -180[rbp]
	jge	.L111
.L109:
	mov	rax, QWORD PTR -128[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	DWORD PTR -180[rbp], 0
	jmp	.L112
.L113:
	mov	eax, DWORD PTR -180[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -180[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -112[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	add	DWORD PTR -180[rbp], 1
.L112:
	mov	eax, DWORD PTR -180[rbp]
	cmp	eax, DWORD PTR -172[rbp]
	jl	.L113
	mov	rax, QWORD PTR -120[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -112[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -176[rbp]
.L114:
	mov	rbx, QWORD PTR -56[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L115
	call	__stack_chk_fail@PLT
.L115:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	main, .-main
	.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	"6388535.c"
	.text
	.align	2
	.global	is_alphabetic_do_lower
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_alphabetic_do_lower, %function
is_alphabetic_do_lower:
	@ 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, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #96
	bls	.L2
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #122
	bhi	.L2
	mov	r3, #1
	b	.L3
.L2:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #64
	bls	.L4
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #90
	bhi	.L4
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	add	r3, r3, #32
	and	r2, r3, #255
	ldr	r3, [fp, #-8]
	strb	r2, [r3]
	mov	r3, #1
	b	.L3
.L4:
	mov	r3, #0
.L3:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	is_alphabetic_do_lower, .-is_alphabetic_do_lower
	.global	__aeabi_idivmod
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Stdin read error\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	do_parse
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_parse, %function
do_parse:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	str	r3, [fp, #-44]
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-16]
	b	.L6
.L9:
	sub	r3, fp, #12
	mov	r0, r3
	bl	is_alphabetic_do_lower
	mov	r3, r0
	cmp	r3, #0
	beq	.L7
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	bge	.L6
	ldr	r3, [fp, #-20]
	add	r2, r3, #1
	str	r2, [fp, #-20]
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	ldrb	r2, [fp, #-12]	@ zero_extendqisi2
	strb	r2, [r3]
	b	.L6
.L7:
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	ble	.L8
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	fputs
	ldr	r3, [fp, #-24]
	add	r2, r3, #1
	str	r2, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #10
	bl	fputc
	ldr	r3, [fp, #-24]
	ldr	r1, [fp, #-32]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-24]
.L8:
	mov	r3, #0
	str	r3, [fp, #-20]
.L6:
	ldr	r3, .L15+4
	ldr	r2, [r3]
	sub	r3, fp, #12
	mov	r1, #2
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L9
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	ble	.L10
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	fputs
	ldr	r3, [fp, #-24]
	add	r2, r3, #1
	str	r2, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #10
	bl	fputc
	ldr	r3, [fp, #-24]
	ldr	r1, [fp, #-32]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-24]
.L10:
	ldr	r0, [fp, #-16]
	bl	free
	ldr	r3, .L15+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	ferror
	mov	r3, r0
	cmp	r3, #0
	beq	.L11
	ldr	r0, .L15+8
	bl	perror
	mov	r3, #1
	b	.L13
.L11:
	mov	r3, #0
.L13:
	ldr	r2, .L15
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC1
	.word	stdin
	.word	.LC0
	.size	do_parse, .-do_parse
	.align	2
	.global	clean_tail_break
	.syntax unified
	.arm
	.fpu softvfp
	.type	clean_tail_break, %function
clean_tail_break:
	@ 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	r0, [fp, #-16]
	bl	strlen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L20
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	nop
.L20:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	clean_tail_break, .-clean_tail_break
	.section	.rodata
	.align	2
.LC2:
	.ascii	"{\000"
	.align	2
.LC3:
	.ascii	"\012\000"
	.align	2
.LC4:
	.ascii	"%-10lu%s\012\000"
	.text
	.align	2
	.global	do_merge
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_merge, %function
do_merge:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #52
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	str	r2, [fp, #-56]
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-36]
	mov	r3, #1
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L22
.L23:
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r4, r2, r3
	mov	r0, r1
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L22:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	blt	.L23
	ldr	r3, [fp, #-24]
	ldr	r2, .L57
	mov	r0, r3
	mov	r1, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L24
.L27:
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r0, [r3]
	ldr	r3, [fp, #-52]
	add	r1, r3, #1
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L25
	mov	r2, #1
	ldr	r3, [fp, #-32]
	lsl	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-36]
	orr	r3, r3, r2
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, #0
	strb	r2, [r3]
	b	.L26
.L25:
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	clean_tail_break
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, [fp, #-24]
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bge	.L26
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	strcpy
.L26:
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L24:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	blt	.L27
.L48:
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L28
.L37:
	mov	r2, #1
	ldr	r3, [fp, #-32]
	lsl	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-36]
	and	r3, r3, r2
	cmp	r3, #0
	bne	.L53
	b	.L31
.L36:
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
	b	.L32
.L34:
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L57+4
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L54
.L32:
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r0, [r3]
	ldr	r3, [fp, #-52]
	add	r1, r3, #1
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	bl	fgets
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L34
	b	.L33
.L54:
	nop
.L33:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L35
	mov	r2, #1
	ldr	r3, [fp, #-32]
	lsl	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-36]
	orr	r3, r3, r2
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, #0
	strb	r2, [r3]
	b	.L30
.L35:
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	clean_tail_break
.L31:
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, [fp, #-24]
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L36
	b	.L30
.L53:
	nop
.L30:
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L28:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	blt	.L37
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L38
	ldr	r3, .L57+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-40]
	ldr	r1, .L57+12
	bl	fprintf
.L38:
	mov	r3, #1
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L39
.L41:
	mov	r2, #1
	ldr	r3, [fp, #-32]
	lsl	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-36]
	and	r3, r3, r2
	cmp	r3, #0
	bne	.L40
	mov	r3, #0
	str	r3, [fp, #-28]
.L40:
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L39:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	blt	.L41
	ldr	r3, [fp, #-28]
	cmp	r3, #1
	beq	.L55
	mov	r3, #0
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-24]
	ldr	r2, .L57
	mov	r0, r3
	mov	r1, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L44
.L47:
	mov	r2, #1
	ldr	r3, [fp, #-32]
	lsl	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-36]
	and	r3, r3, r2
	cmp	r3, #0
	bne	.L56
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, [fp, #-24]
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bge	.L46
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	strcpy
	b	.L46
.L56:
	nop
.L46:
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L44:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	blt	.L47
	b	.L48
.L55:
	nop
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L49
.L50:
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L49:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	blt	.L50
	ldr	r0, [fp, #-20]
	bl	free
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L58:
	.align	2
.L57:
	.word	.LC2
	.word	.LC3
	.word	stdout
	.word	.LC4
	.size	do_merge, .-do_merge
	.section	.rodata
	.align	2
.LC5:
	.ascii	"pipsort: Invalid option argument: -%c %s \012\000"
	.align	2
.LC6:
	.ascii	"pipesort: Invalid option: -%c\012\000"
	.align	2
.LC7:
	.ascii	"n:s:l:\000"
	.align	2
.LC8:
	.ascii	"USAGE: pipesort -n sorter_cnt -s short -l long\012\000"
	.align	2
.LC9:
	.ascii	"pipsort: expected -s < -l, but violates when -s=%d,"
	.ascii	" -l=%d\012\000"
	.align	2
.LC10:
	.ascii	"Pipe between parser and sorter\000"
	.align	2
.LC11:
	.ascii	"Pipe between merger and sorter\000"
	.align	2
.LC12:
	.ascii	"Fork parse and merge process\000"
	.align	2
.LC13:
	.ascii	"w\000"
	.align	2
.LC14:
	.ascii	"OutPipe between parser and sorter - fdopen\000"
	.align	2
.LC15:
	.ascii	"r\000"
	.align	2
.LC16:
	.ascii	"InPipe between merger and sorter - fdopen\000"
	.align	2
.LC17:
	.ascii	"Fork sorter process\000"
	.align	2
.LC18:
	.ascii	"sort\000"
	.align	2
.LC19:
	.ascii	"/usr/bin/sort\000"
	.align	2
.LC20:
	.ascii	"Main wait\000"
	.align	2
.LC21:
	.ascii	"Child Process[pid=%d] returned %d, exit\012\000"
	.align	2
.LC22:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 104
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #108
	str	r0, [fp, #-112]
	str	r1, [fp, #-116]
	ldr	r3, .L114
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mvn	r3, #0
	str	r3, [fp, #-84]
	mvn	r3, #0
	str	r3, [fp, #-88]
	mvn	r3, #0
	str	r3, [fp, #-92]
	mov	r3, #0
	str	r3, [fp, #-96]
	b	.L60
.L69:
	ldr	r3, [fp, #-72]
	cmp	r3, #115
	beq	.L61
	ldr	r3, [fp, #-72]
	cmp	r3, #115
	bgt	.L60
	ldr	r3, [fp, #-72]
	cmp	r3, #110
	beq	.L62
	ldr	r3, [fp, #-72]
	cmp	r3, #110
	bgt	.L60
	ldr	r3, [fp, #-72]
	cmp	r3, #63
	beq	.L63
	ldr	r3, [fp, #-72]
	cmp	r3, #108
	beq	.L64
	b	.L60
.L62:
	ldr	r3, .L114+4
	ldr	r3, [r3]
	sub	r1, fp, #108
	mov	r2, #10
	mov	r0, r3
	bl	strtol
	str	r0, [fp, #-92]
	ldr	r3, [fp, #-92]
	cmp	r3, #0
	bge	.L60
	ldr	r3, .L114+8
	ldr	r0, [r3]
	ldr	r3, .L114+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-72]
	ldr	r1, .L114+12
	bl	fprintf
	mov	r0, #1
	bl	exit
.L61:
	ldr	r3, .L114+4
	ldr	r3, [r3]
	sub	r1, fp, #108
	mov	r2, #10
	mov	r0, r3
	bl	strtol
	str	r0, [fp, #-84]
	ldr	r3, [fp, #-84]
	cmp	r3, #0
	bge	.L60
	ldr	r3, .L114+8
	ldr	r0, [r3]
	ldr	r3, .L114+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-72]
	ldr	r1, .L114+12
	bl	fprintf
	mov	r0, #1
	bl	exit
.L64:
	ldr	r3, .L114+4
	ldr	r3, [r3]
	sub	r1, fp, #108
	mov	r2, #10
	mov	r0, r3
	bl	strtol
	str	r0, [fp, #-88]
	ldr	r3, [fp, #-88]
	cmp	r3, #0
	bge	.L60
	ldr	r3, .L114+8
	ldr	r0, [r3]
	ldr	r3, .L114+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-72]
	ldr	r1, .L114+12
	bl	fprintf
	mov	r0, #1
	bl	exit
.L63:
	ldr	r3, .L114+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-72]
	ldr	r1, .L114+16
	mov	r0, r3
	bl	fprintf
	mov	r3, #1
	b	.L112
.L60:
	ldr	r2, .L114+20
	ldr	r1, [fp, #-116]
	ldr	r0, [fp, #-112]
	bl	getopt
	str	r0, [fp, #-72]
	ldr	r3, [fp, #-72]
	cmn	r3, #1
	bne	.L69
	ldr	r3, [fp, #-92]
	cmn	r3, #1
	beq	.L70
	ldr	r3, [fp, #-84]
	cmn	r3, #1
	beq	.L70
	ldr	r3, [fp, #-88]
	cmn	r3, #1
	bne	.L71
.L70:
	ldr	r3, .L114+8
	ldr	r3, [r3]
	mov	r2, #47
	mov	r1, #1
	ldr	r0, .L114+24
	bl	fwrite
	mov	r3, #1
	b	.L112
.L71:
	ldr	r2, [fp, #-84]
	ldr	r3, [fp, #-88]
	cmp	r2, r3
	blt	.L72
	ldr	r3, .L114+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-88]
	ldr	r2, [fp, #-84]
	ldr	r1, .L114+28
	bl	fprintf
	mov	r3, #1
	b	.L112
.L72:
	bl	getpid
	mov	r3, r0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-92]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-68]
	ldr	r3, [fp, #-92]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-92]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-60]
	mov	r3, #0
	str	r3, [fp, #-100]
	b	.L73
.L77:
	ldr	r3, [fp, #-100]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-64]
	add	r4, r2, r3
	mov	r0, #8
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-100]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-64]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	pipe
	mov	r3, r0
	cmn	r3, #1
	bne	.L74
	ldr	r0, .L114+32
	bl	perror
	mov	r3, #1
	str	r3, [fp, #-96]
	b	.L75
.L74:
	ldr	r3, [fp, #-100]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-60]
	add	r4, r2, r3
	mov	r0, #8
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-100]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	pipe
	mov	r3, r0
	cmn	r3, #1
	bne	.L76
	ldr	r0, .L114+36
	bl	perror
	mov	r3, #1
	str	r3, [fp, #-96]
	b	.L75
.L76:
	ldr	r3, [fp, #-100]
	add	r3, r3, #1
	str	r3, [fp, #-100]
.L73:
	ldr	r2, [fp, #-100]
	ldr	r3, [fp, #-92]
	cmp	r2, r3
	blt	.L77
.L75:
	ldr	r3, [fp, #-96]
	cmp	r3, #0
	beq	.L78
	ldr	r0, [fp, #-68]
	bl	free
	mov	r3, #0
	str	r3, [fp, #-100]
	b	.L79
.L80:
	ldr	r3, [fp, #-100]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-64]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-100]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-100]
	add	r3, r3, #1
	str	r3, [fp, #-100]
.L79:
	ldr	r2, [fp, #-100]
	ldr	r3, [fp, #-92]
	cmp	r2, r3
	blt	.L80
	ldr	r0, [fp, #-64]
	bl	free
	ldr	r0, [fp, #-60]
	bl	free
	ldr	r3, [fp, #-96]
	b	.L112
.L78:
	mov	r3, #1
	str	r3, [fp, #-80]
	b	.L81
.L95:
	bl	fork
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	str	r2, [r3, #-16]
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-16]
	cmn	r3, #1
	bne	.L82
	ldr	r0, .L114+40
	bl	perror
	mov	r0, #1
	bl	exit
.L82:
	ldr	r3, [fp, #-80]
	cmp	r3, #1
	bne	.L83
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L83
	mov	r3, #0
	str	r3, [fp, #-52]
	ldr	ip, [fp, #-92]
	sub	r3, ip, #1
	str	r3, [fp, #-48]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-100]
	b	.L84
.L86:
	ldr	r3, [fp, #-100]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-64]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-100]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-64]
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L114+44
	mov	r0, r3
	bl	fdopen
	mov	r1, r0
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-100]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-100]
	ldr	r3, [r3, r2, lsl #2]
	cmp	r3, #0
	bne	.L85
	ldr	r0, .L114+48
	bl	perror
	mov	r0, #1
	bl	exit
.L85:
	ldr	r3, [fp, #-100]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-100]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-100]
	add	r3, r3, #1
	str	r3, [fp, #-100]
.L84:
	ldr	r2, [fp, #-100]
	ldr	r3, [fp, #-92]
	cmp	r2, r3
	blt	.L86
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-84]
	ldr	r1, [fp, #-88]
	ldr	r0, [fp, #-92]
	bl	do_parse
	str	r0, [fp, #-52]
	mov	r3, #0
	str	r3, [fp, #-100]
	b	.L87
.L88:
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-100]
	ldr	r3, [r3, r2, lsl #2]
	mov	r0, r3
	bl	fclose
	ldr	r3, [fp, #-100]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-64]
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-100]
	add	r3, r3, #1
	str	r3, [fp, #-100]
.L87:
	ldr	r2, [fp, #-100]
	ldr	r3, [fp, #-92]
	cmp	r2, r3
	blt	.L88
	ldr	r0, [fp, #-52]
	bl	exit
.L83:
	ldr	r3, [fp, #-80]
	cmp	r3, #2
	moveq	r3, #1
	movne	r3, #0
	and	r2, r3, #255
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	and	r3, r3, r2
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L89
	ldr	ip, [fp, #-92]
	sub	r3, ip, #1
	str	r3, [fp, #-40]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-100]
	b	.L90
.L92:
	ldr	r3, [fp, #-100]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-64]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-100]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-64]
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-100]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r3, [r3]
	ldr	r1, .L114+52
	mov	r0, r3
	bl	fdopen
	mov	r1, r0
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-100]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-100]
	ldr	r3, [r3, r2, lsl #2]
	cmp	r3, #0
	bne	.L91
	ldr	r0, .L114+56
	bl	perror
	mov	r0, #1
	bl	exit
.L91:
	ldr	r3, [fp, #-100]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-100]
	add	r3, r3, #1
	str	r3, [fp, #-100]
.L90:
	ldr	r2, [fp, #-100]
	ldr	r3, [fp, #-92]
	cmp	r2, r3
	blt	.L92
	ldr	r2, [fp, #-36]
	ldr	r1, [fp, #-88]
	ldr	r0, [fp, #-92]
	bl	do_merge
	str	r0, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-100]
	b	.L93
.L94:
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-100]
	ldr	r3, [r3, r2, lsl #2]
	mov	r0, r3
	bl	fclose
	ldr	r3, [fp, #-100]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-100]
	add	r3, r3, #1
	str	r3, [fp, #-100]
.L93:
	ldr	r2, [fp, #-100]
	ldr	r3, [fp, #-92]
	cmp	r2, r3
	blt	.L94
	ldr	r0, [fp, #-32]
	bl	exit
.L89:
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	str	r3, [fp, #-80]
.L81:
	ldr	r3, [fp, #-80]
	cmp	r3, #2
	ble	.L95
	mov	r3, #0
	str	r3, [fp, #-100]
	b	.L96
.L102:
	ldr	r3, [fp, #-100]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-68]
	add	r4, r2, r3
	bl	fork
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [r4]
	cmn	r3, #1
	bne	.L97
	ldr	r0, .L114+60
	bl	perror
	mov	r0, #1
	bl	exit
.L97:
	ldr	r3, [fp, #-100]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-68]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L98
	mov	r3, #0
	str	r3, [fp, #-76]
	b	.L99
.L101:
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-64]
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	ldr	r2, [fp, #-100]
	ldr	r3, [fp, #-76]
	cmp	r2, r3
	beq	.L100
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-64]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
.L100:
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
.L99:
	ldr	r2, [fp, #-76]
	ldr	r3, [fp, #-92]
	cmp	r2, r3
	blt	.L101
	ldr	r3, [fp, #-100]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-64]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	dup2
	ldr	r3, [fp, #-100]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, #1
	mov	r0, r3
	bl	dup2
	mov	r2, #0
	ldr	r1, .L114+64
	ldr	r0, .L114+68
	bl	execl
	ldr	r3, [fp, #-100]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-64]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-100]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	mov	r0, #0
	bl	exit
.L98:
	ldr	r3, [fp, #-100]
	add	r3, r3, #1
	str	r3, [fp, #-100]
.L96:
	ldr	r2, [fp, #-100]
	ldr	r3, [fp, #-92]
	cmp	r2, r3
	blt	.L102
	mov	r3, #0
	str	r3, [fp, #-100]
	b	.L103
.L104:
	ldr	r3, [fp, #-100]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-64]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-100]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-64]
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-100]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-100]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-100]
	add	r3, r3, #1
	str	r3, [fp, #-100]
.L103:
	ldr	r2, [fp, #-100]
	ldr	r3, [fp, #-92]
	cmp	r2, r3
	blt	.L104
	mov	r3, #0
	str	r3, [fp, #-100]
	b	.L105
.L109:
	sub	r3, fp, #104
	mov	r0, r3
	bl	wait
	str	r0, [fp, #-56]
	ldr	r3, [fp, #-56]
	cmn	r3, #1
	bne	.L106
	ldr	r0, .L114+72
	bl	perror
	mov	r3, #1
	str	r3, [fp, #-96]
	b	.L107
.L106:
	ldr	r3, [fp, #-104]
	cmp	r3, #0
	beq	.L108
	ldr	r3, .L114+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-104]
	ldr	r2, [fp, #-56]
	ldr	r1, .L114+76
	bl	fprintf
	mov	r3, #1
	str	r3, [fp, #-96]
	b	.L107
.L108:
	ldr	r3, [fp, #-100]
	add	r3, r3, #1
	str	r3, [fp, #-100]
.L105:
	ldr	r2, [fp, #-92]
	ldr	r3, [fp, #-100]
	cmp	r2, r3
	bge	.L109
.L107:
	ldr	r0, [fp, #-68]
	bl	free
	mov	r3, #0
	str	r3, [fp, #-100]
	b	.L110
.L111:
	ldr	r3, [fp, #-100]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-64]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-100]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-100]
	add	r3, r3, #1
	str	r3, [fp, #-100]
.L110:
	ldr	r2, [fp, #-100]
	ldr	r3, [fp, #-92]
	cmp	r2, r3
	blt	.L111
	ldr	r0, [fp, #-64]
	bl	free
	ldr	r0, [fp, #-60]
	bl	free
	ldr	r3, [fp, #-96]
.L112:
	ldr	r2, .L114
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L113
	bl	__stack_chk_fail
.L113:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L115:
	.align	2
.L114:
	.word	.LC22
	.word	optarg
	.word	stderr
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.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
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
