	.file	"583831.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 4
	.type	MODE_NONE, @object
	.size	MODE_NONE, 4
MODE_NONE:
	.long	1
	.align 4
	.type	MODE_MAKE, @object
	.size	MODE_MAKE, 4
MODE_MAKE:
	.long	2
	.align 4
	.type	MODE_GCC, @object
	.size	MODE_GCC, 4
MODE_GCC:
	.long	3
	.align 4
	.type	MODE_GCC_MSG, @object
	.size	MODE_GCC_MSG, 4
MODE_GCC_MSG:
	.long	4
.LC0:
	.string	"pipe"
.LC1:
	.string	"fork"
.LC2:
	.string	"make"
	.align 8
.LC3:
	.string	"It would seem make isn't installed.\n"
.LC4:
	.string	"%s"
.LC5:
	.string	"cc"
.LC6:
	.string	"c++"
.LC7:
	.string	"gcc"
.LC8:
	.string	"g++"
.LC9:
	.string	"\033[m"
.LC10:
	.string	"\033[36m"
.LC11:
	.string	"\033[32m"
.LC12:
	.string	"warning:"
.LC13:
	.string	"note:"
.LC14:
	.string	"In file included from"
.LC15:
	.string	"                 from"
.LC16:
	.string	"At global scope"
.LC17:
	.string	"At top level"
.LC18:
	.string	"In member function"
.LC19:
	.string	"In function"
.LC20:
	.string	"\033[33m"
.LC21:
	.string	"error:"
.LC22:
	.string	"\033[31m"
.LC23:
	.string	"%s%s"
	.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
	push	rbx
	sub	rsp, 136
	.cfi_offset 3, -24
	mov	DWORD PTR -132[rbp], edi
	mov	QWORD PTR -144[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	pipe@PLT
	test	eax, eax
	je	.L2
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -112[rbp], 1
	mov	DWORD PTR -108[rbp], eax
	lea	rax, .LC0[rip]
	mov	QWORD PTR -56[rbp], rax
	mov	rdx, QWORD PTR -56[rbp]
	mov	ecx, DWORD PTR -108[rbp]
	mov	eax, DWORD PTR -112[rbp]
	mov	esi, ecx
	mov	edi, eax
	mov	eax, 0
	call	error@PLT
	nop
.L2:
	call	fork@PLT
	mov	DWORD PTR -116[rbp], eax
	cmp	DWORD PTR -116[rbp], 0
	jns	.L3
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -104[rbp], 1
	mov	DWORD PTR -100[rbp], eax
	lea	rax, .LC1[rip]
	mov	QWORD PTR -48[rbp], rax
	mov	rdx, QWORD PTR -48[rbp]
	mov	ecx, DWORD PTR -100[rbp]
	mov	eax, DWORD PTR -104[rbp]
	mov	esi, ecx
	mov	edi, eax
	mov	eax, 0
	call	error@PLT
	nop
.L3:
	cmp	DWORD PTR -116[rbp], 0
	jne	.L4
	mov	eax, DWORD PTR -28[rbp]
	mov	esi, 1
	mov	edi, eax
	call	dup2@PLT
	mov	eax, DWORD PTR -28[rbp]
	mov	esi, 2
	mov	edi, eax
	call	dup2@PLT
	mov	eax, DWORD PTR -32[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -28[rbp]
	mov	edi, eax
	call	close@PLT
	mov	rax, QWORD PTR -144[rbp]
	lea	rdx, .LC2[rip]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -144[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -144[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	execvp@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 2
	jne	.L5
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 36
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
.L5:
	mov	rax, QWORD PTR -144[rbp]
	mov	rbx, QWORD PTR [rax]
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -96[rbp], 127
	mov	DWORD PTR -92[rbp], eax
	lea	rax, .LC4[rip]
	mov	QWORD PTR -40[rbp], rax
	mov	rdx, QWORD PTR -40[rbp]
	mov	esi, DWORD PTR -92[rbp]
	mov	eax, DWORD PTR -96[rbp]
	mov	rcx, rbx
	mov	edi, eax
	mov	eax, 0
	call	error@PLT
	nop
.L4:
	mov	eax, DWORD PTR -32[rbp]
	mov	esi, 0
	mov	edi, eax
	call	dup2@PLT
	mov	eax, DWORD PTR -32[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -28[rbp]
	mov	edi, eax
	call	close@PLT
	mov	QWORD PTR -88[rbp], 0
	mov	QWORD PTR -80[rbp], 0
	mov	DWORD PTR -124[rbp], 1
	jmp	.L6
.L16:
	mov	rax, QWORD PTR -88[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strstr@PLT
	test	rax, rax
	je	.L7
	mov	DWORD PTR -124[rbp], 2
.L7:
	mov	rax, QWORD PTR -88[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	strstr@PLT
	test	rax, rax
	jne	.L8
	mov	rax, QWORD PTR -88[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strstr@PLT
	test	rax, rax
	jne	.L8
	mov	rax, QWORD PTR -88[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	strstr@PLT
	test	rax, rax
	jne	.L8
	mov	rax, QWORD PTR -88[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	strstr@PLT
	test	rax, rax
	je	.L9
.L8:
	mov	DWORD PTR -124[rbp], 3
.L9:
	lea	rax, .LC9[rip]
	mov	QWORD PTR -72[rbp], rax
	mov	DWORD PTR -120[rbp], 1
	mov	eax, 2
	cmp	DWORD PTR -124[rbp], eax
	jne	.L10
	lea	rax, .LC10[rip]
	mov	QWORD PTR -72[rbp], rax
.L10:
	mov	eax, 3
	cmp	DWORD PTR -124[rbp], eax
	jne	.L11
	lea	rax, .LC11[rip]
	mov	QWORD PTR -72[rbp], rax
	mov	DWORD PTR -120[rbp], 4
.L11:
	mov	eax, 4
	cmp	DWORD PTR -124[rbp], eax
	jne	.L12
	mov	eax, DWORD PTR -124[rbp]
	mov	DWORD PTR -120[rbp], eax
	mov	rax, QWORD PTR -88[rbp]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	call	strstr@PLT
	test	rax, rax
	jne	.L13
	mov	rax, QWORD PTR -88[rbp]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	call	strstr@PLT
	test	rax, rax
	jne	.L13
	mov	rax, QWORD PTR -88[rbp]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	call	strstr@PLT
	test	rax, rax
	jne	.L13
	mov	rax, QWORD PTR -88[rbp]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	call	strstr@PLT
	test	rax, rax
	jne	.L13
	mov	rax, QWORD PTR -88[rbp]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	call	strstr@PLT
	test	rax, rax
	jne	.L13
	mov	rax, QWORD PTR -88[rbp]
	lea	rsi, .LC17[rip]
	mov	rdi, rax
	call	strstr@PLT
	test	rax, rax
	jne	.L13
	mov	rax, QWORD PTR -88[rbp]
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	call	strstr@PLT
	test	rax, rax
	jne	.L13
	mov	rax, QWORD PTR -88[rbp]
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	call	strstr@PLT
	test	rax, rax
	jne	.L13
	mov	rax, QWORD PTR -88[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	jne	.L14
.L13:
	lea	rax, .LC20[rip]
	mov	QWORD PTR -72[rbp], rax
	jmp	.L12
.L14:
	mov	rax, QWORD PTR -88[rbp]
	lea	rsi, .LC21[rip]
	mov	rdi, rax
	call	strstr@PLT
	test	rax, rax
	je	.L15
	lea	rax, .LC22[rip]
	mov	QWORD PTR -72[rbp], rax
	jmp	.L12
.L15:
	mov	DWORD PTR -120[rbp], 1
.L12:
	mov	rdx, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rax
	lea	rdi, .LC23[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	eax, DWORD PTR -120[rbp]
	mov	DWORD PTR -124[rbp], eax
.L6:
	mov	rdx, QWORD PTR stdin[rip]
	lea	rcx, -80[rbp]
	lea	rax, -88[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	getline@PLT
	mov	QWORD PTR -64[rbp], rax
	cmp	QWORD PTR -64[rbp], 0
	jg	.L16
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	free@PLT
	lea	rcx, -128[rbp]
	mov	eax, DWORD PTR -116[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	waitpid@PLT
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	eax, DWORD PTR -128[rbp]
	sar	eax, 8
	movzx	eax, al
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"583831.c"
	.text
	.section	.rodata
	.align	2
	.type	MODE_NONE, %object
	.size	MODE_NONE, 4
MODE_NONE:
	.word	1
	.align	2
	.type	MODE_MAKE, %object
	.size	MODE_MAKE, 4
MODE_MAKE:
	.word	2
	.align	2
	.type	MODE_GCC, %object
	.size	MODE_GCC, 4
MODE_GCC:
	.word	3
	.align	2
	.type	MODE_GCC_MSG, %object
	.size	MODE_GCC_MSG, 4
MODE_GCC_MSG:
	.word	4
	.align	2
.LC0:
	.ascii	"pipe\000"
	.align	2
.LC1:
	.ascii	"fork\000"
	.align	2
.LC2:
	.ascii	"make\000"
	.align	2
.LC3:
	.ascii	"It would seem make isn't installed.\012\000"
	.align	2
.LC4:
	.ascii	"%s\000"
	.align	2
.LC5:
	.ascii	"cc\000"
	.align	2
.LC6:
	.ascii	"c++\000"
	.align	2
.LC7:
	.ascii	"gcc\000"
	.align	2
.LC8:
	.ascii	"g++\000"
	.align	2
.LC9:
	.ascii	"\033[m\000"
	.align	2
.LC10:
	.ascii	"\033[36m\000"
	.align	2
.LC11:
	.ascii	"\033[32m\000"
	.align	2
.LC12:
	.ascii	"warning:\000"
	.align	2
.LC13:
	.ascii	"note:\000"
	.align	2
.LC14:
	.ascii	"In file included from\000"
	.align	2
.LC15:
	.ascii	"                 from\000"
	.align	2
.LC16:
	.ascii	"At global scope\000"
	.align	2
.LC17:
	.ascii	"At top level\000"
	.align	2
.LC18:
	.ascii	"In member function\000"
	.align	2
.LC19:
	.ascii	"In function\000"
	.align	2
.LC20:
	.ascii	"\033[33m\000"
	.align	2
.LC21:
	.ascii	"error:\000"
	.align	2
.LC22:
	.ascii	"\033[31m\000"
	.align	2
.LC23:
	.ascii	"%s%s\000"
	.align	2
.LC24:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 88
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #88
	str	r0, [fp, #-88]
	str	r1, [fp, #-92]
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #16
	mov	r0, r3
	bl	pipe
	mov	r3, r0
	cmp	r3, #0
	beq	.L2
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, #1
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	ldr	r3, .L19+4
	str	r3, [fp, #-44]
	ldr	r2, [fp, #-44]
	ldr	r1, [fp, #-48]
	ldr	r0, [fp, #-52]
	bl	error
	nop
.L2:
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	bge	.L3
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, #1
	str	r2, [fp, #-40]
	str	r3, [fp, #-36]
	ldr	r3, .L19+8
	str	r3, [fp, #-32]
	ldr	r2, [fp, #-32]
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-40]
	bl	error
	nop
.L3:
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	bne	.L4
	ldr	r3, [fp, #-12]
	mov	r1, #1
	mov	r0, r3
	bl	dup2
	ldr	r3, [fp, #-12]
	mov	r1, #2
	mov	r0, r3
	bl	dup2
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-92]
	ldr	r2, .L19+12
	str	r2, [r3]
	ldr	r3, [fp, #-92]
	ldr	r3, [r3]
	ldr	r1, [fp, #-92]
	mov	r0, r3
	bl	execvp
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #2
	bne	.L5
	ldr	r3, .L19+16
	ldr	r3, [r3]
	mov	r2, #36
	mov	r1, #1
	ldr	r0, .L19+20
	bl	fwrite
.L5:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	ldr	r2, [fp, #-92]
	ldr	r2, [r2]
	mov	r1, #127
	str	r1, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r3, .L19+24
	str	r3, [fp, #-20]
	mov	r3, r2
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-28]
	bl	error
	nop
.L4:
	ldr	r3, [fp, #-16]
	mov	r1, #0
	mov	r0, r3
	bl	dup2
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	close
	mov	r3, #0
	str	r3, [fp, #-84]
	mov	r3, #0
	str	r3, [fp, #-80]
	mov	r3, #1
	str	r3, [fp, #-72]
	b	.L6
.L16:
	ldr	r3, [fp, #-84]
	ldr	r1, .L19+12
	mov	r0, r3
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	beq	.L7
	mov	r3, #2
	str	r3, [fp, #-72]
.L7:
	ldr	r3, [fp, #-84]
	ldr	r1, .L19+28
	mov	r0, r3
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	bne	.L8
	ldr	r3, [fp, #-84]
	ldr	r1, .L19+32
	mov	r0, r3
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	bne	.L8
	ldr	r3, [fp, #-84]
	ldr	r1, .L19+36
	mov	r0, r3
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	bne	.L8
	ldr	r3, [fp, #-84]
	ldr	r1, .L19+40
	mov	r0, r3
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	beq	.L9
.L8:
	mov	r3, #3
	str	r3, [fp, #-72]
.L9:
	ldr	r3, .L19+44
	str	r3, [fp, #-68]
	mov	r3, #1
	str	r3, [fp, #-64]
	mov	r2, #2
	ldr	r3, [fp, #-72]
	cmp	r3, r2
	bne	.L10
	ldr	r3, .L19+48
	str	r3, [fp, #-68]
.L10:
	mov	r2, #3
	ldr	r3, [fp, #-72]
	cmp	r3, r2
	bne	.L11
	ldr	r3, .L19+52
	str	r3, [fp, #-68]
	mov	r3, #4
	str	r3, [fp, #-64]
.L11:
	mov	r2, #4
	ldr	r3, [fp, #-72]
	cmp	r3, r2
	bne	.L12
	ldr	r3, [fp, #-72]
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-84]
	ldr	r1, .L19+56
	mov	r0, r3
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	bne	.L13
	ldr	r3, [fp, #-84]
	ldr	r1, .L19+60
	mov	r0, r3
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	bne	.L13
	ldr	r3, [fp, #-84]
	ldr	r1, .L19+64
	mov	r0, r3
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	bne	.L13
	ldr	r3, [fp, #-84]
	ldr	r1, .L19+68
	mov	r0, r3
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	bne	.L13
	ldr	r3, [fp, #-84]
	ldr	r1, .L19+72
	mov	r0, r3
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	bne	.L13
	ldr	r3, [fp, #-84]
	ldr	r1, .L19+76
	mov	r0, r3
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	bne	.L13
	ldr	r3, [fp, #-84]
	ldr	r1, .L19+80
	mov	r0, r3
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	bne	.L13
	ldr	r3, [fp, #-84]
	ldr	r1, .L19+84
	mov	r0, r3
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	bne	.L13
	ldr	r3, [fp, #-84]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L14
.L13:
	ldr	r3, .L19+88
	str	r3, [fp, #-68]
	b	.L12
.L14:
	ldr	r3, [fp, #-84]
	ldr	r1, .L19+92
	mov	r0, r3
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	beq	.L15
	ldr	r3, .L19+96
	str	r3, [fp, #-68]
	b	.L12
.L15:
	mov	r3, #1
	str	r3, [fp, #-64]
.L12:
	ldr	r3, [fp, #-84]
	mov	r2, r3
	ldr	r1, [fp, #-68]
	ldr	r0, .L19+100
	bl	printf
	ldr	r3, .L19+104
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, [fp, #-64]
	str	r3, [fp, #-72]
.L6:
	ldr	r3, .L19+108
	ldr	r2, [r3]
	sub	r1, fp, #80
	sub	r3, fp, #84
	mov	r0, r3
	bl	getline
	str	r0, [fp, #-56]
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	bgt	.L16
	ldr	r3, [fp, #-84]
	mov	r0, r3
	bl	free
	sub	r3, fp, #76
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-60]
	bl	waitpid
	ldr	r0, .L19+44
	bl	printf
	ldr	r3, .L19+104
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, [fp, #-76]
	asr	r3, r3, #8
	and	r3, r3, #255
	ldr	r2, .L19
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L18
	bl	__stack_chk_fail
.L18:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC24
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	stderr
	.word	.LC3
	.word	.LC4
	.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
	.word	.LC22
	.word	.LC23
	.word	stdout
	.word	stdin
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
