	.file	"981630.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"User can type \342\200\231help\342\200\231 to see the list of commands"
.LC1:
	.string	"Which application to run - "
.LC2:
	.string	"\n"
.LC3:
	.string	"Enter Correct Command to Run"
.LC4:
	.string	"help\n"
	.align 8
.LC5:
	.string	"\thelp - Prints the list of commands.\n\texit - for exitting the main application\n\trun X [flags]- where X can be any executable with or without path and flags are optional"
.LC6:
	.string	"exit\n"
.LC7:
	.string	" "
.LC8:
	.string	"run"
.LC9:
	.string	"Wrong Executable Provided"
.LC10:
	.string	"FORK ERROR"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	r11, -65536[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	add	rsp, -128
	mov	DWORD PTR -65652[rbp], edi
	mov	QWORD PTR -65664[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	call	puts@PLT
.L26:
	mov	esi, 0
	mov	edi, 2
	call	signal@PLT
	mov	DWORD PTR -65640[rbp], 0
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -528[rbp]
	mov	esi, 255
	mov	rdi, rax
	call	fgets@PLT
	lea	rax, -528[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L2
	lea	rdi, .LC3[rip]
	call	puts@PLT
	jmp	.L26
.L2:
	lea	rax, -528[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L4
	lea	rdi, .LC5[rip]
	call	puts@PLT
	jmp	.L26
.L4:
	lea	rax, -528[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L5
	mov	edi, 0
	call	exit@PLT
.L5:
	mov	DWORD PTR -65632[rbp], 0
	lea	rax, -528[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -65608[rbp], rax
	jmp	.L6
.L7:
	mov	eax, DWORD PTR -65632[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 8
	sub	rax, rdx
	mov	rcx, rax
	lea	rax, -65568[rbp]
	lea	rdx, [rax+rcx]
	mov	rax, QWORD PTR -65608[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
	add	DWORD PTR -65632[rbp], 1
	lea	rsi, .LC7[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -65608[rbp], rax
.L6:
	cmp	QWORD PTR -65608[rbp], 0
	jne	.L7
	mov	eax, DWORD PTR -65632[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 8
	sub	rax, rdx
	lea	rdx, -255[rax]
	lea	rax, -65568[rbp]
	add	rax, rdx
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -65600[rbp], rax
	mov	eax, DWORD PTR -65632[rbp]
	sub	eax, 1
	sub	QWORD PTR -65600[rbp], 1
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 8
	sub	rax, rdx
	lea	rdx, 0[rbp+rax]
	mov	rax, QWORD PTR -65600[rbp]
	add	rax, rdx
	sub	rax, 65568
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	jne	.L8
	mov	eax, DWORD PTR -65632[rbp]
	sub	eax, 1
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 8
	sub	rax, rdx
	lea	rdx, 0[rbp+rax]
	mov	rax, QWORD PTR -65600[rbp]
	add	rax, rdx
	sub	rax, 65568
	mov	BYTE PTR [rax], 0
.L8:
	lea	rax, -65568[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L9
	mov	esi, 1
	mov	edi, 2
	call	signal@PLT
	cmp	DWORD PTR -65632[rbp], 1
	jne	.L10
	lea	rdi, .LC3[rip]
	call	puts@PLT
	jmp	.L26
.L10:
	cmp	DWORD PTR -65632[rbp], 2
	jle	.L11
	mov	eax, DWORD PTR -65632[rbp]
	cdqe
	mov	esi, 8
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR -65592[rbp], rax
	lea	rax, -65568[rbp]
	add	rax, 255
	mov	rdx, QWORD PTR -65592[rbp]
	mov	QWORD PTR [rdx], rax
	mov	DWORD PTR -65628[rbp], 1
	mov	DWORD PTR -65636[rbp], 2
	jmp	.L12
.L13:
	mov	eax, DWORD PTR -65636[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 8
	sub	rax, rdx
	mov	rcx, rax
	mov	eax, DWORD PTR -65628[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -65592[rbp]
	add	rax, rdx
	lea	rdx, -65568[rbp]
	add	rdx, rcx
	mov	QWORD PTR [rax], rdx
	add	DWORD PTR -65628[rbp], 1
	add	DWORD PTR -65636[rbp], 1
.L12:
	mov	eax, DWORD PTR -65636[rbp]
	cmp	eax, DWORD PTR -65632[rbp]
	jl	.L13
	mov	eax, DWORD PTR -65628[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -65592[rbp]
	add	rax, rdx
	mov	QWORD PTR [rax], 0
	call	fork@PLT
	mov	DWORD PTR -65616[rbp], eax
	cmp	DWORD PTR -65616[rbp], 0
	jne	.L14
	mov	esi, 0
	mov	edi, 2
	call	signal@PLT
	lea	rax, -65568[rbp]
	add	rax, 255
	mov	rdx, QWORD PTR -65592[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	execvp@PLT
	test	eax, eax
	je	.L15
	lea	rax, -272[rbp]
	mov	WORD PTR [rax], 12078
	mov	BYTE PTR 2[rax], 0
	lea	rax, -65568[rbp]
	add	rax, 255
	lea	rdx, -272[rbp]
	add	rdx, 2
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
	mov	rax, QWORD PTR -65592[rbp]
	lea	rdx, -272[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rdx, QWORD PTR -65592[rbp]
	lea	rax, -272[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	execvp@PLT
	test	eax, eax
	je	.L15
	lea	rdi, .LC9[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L15:
	mov	edi, 0
	call	exit@PLT
.L14:
	cmp	DWORD PTR -65616[rbp], -1
	jne	.L28
	lea	rdi, .LC10[rip]
	call	puts@PLT
	jmp	.L18
.L28:
	nop
.L19:
	lea	rax, -65640[rbp]
	mov	rdi, rax
	call	wait@PLT
	mov	DWORD PTR -65612[rbp], eax
	cmp	DWORD PTR -65612[rbp], 0
	jg	.L19
.L18:
	mov	rax, QWORD PTR -65592[rbp]
	mov	rdi, rax
	call	free@PLT
	jmp	.L26
.L11:
	lea	rax, -65568[rbp]
	add	rax, 255
	mov	QWORD PTR -65584[rbp], rax
	mov	QWORD PTR -65576[rbp], 0
	call	fork@PLT
	mov	DWORD PTR -65624[rbp], eax
	cmp	DWORD PTR -65624[rbp], 0
	jne	.L20
	mov	esi, 0
	mov	edi, 2
	call	signal@PLT
	lea	rax, -65568[rbp]
	add	rax, 255
	lea	rdx, -65584[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	execvp@PLT
	test	eax, eax
	je	.L21
	lea	rax, -272[rbp]
	mov	WORD PTR [rax], 12078
	mov	BYTE PTR 2[rax], 0
	lea	rax, -65568[rbp]
	add	rax, 255
	lea	rdx, -272[rbp]
	add	rdx, 2
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
	lea	rax, -272[rbp]
	mov	QWORD PTR -65584[rbp], rax
	lea	rdx, -65584[rbp]
	lea	rax, -272[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	execvp@PLT
	test	eax, eax
	je	.L21
	lea	rdi, .LC9[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L21:
	mov	edi, 0
	call	exit@PLT
.L20:
	cmp	DWORD PTR -65624[rbp], -1
	jne	.L29
	lea	rdi, .LC10[rip]
	call	puts@PLT
	jmp	.L26
.L29:
	nop
.L25:
	lea	rax, -65640[rbp]
	mov	rdi, rax
	call	wait@PLT
	mov	DWORD PTR -65620[rbp], eax
	cmp	DWORD PTR -65620[rbp], 0
	jg	.L25
	jmp	.L26
.L9:
	lea	rdi, .LC3[rip]
	call	puts@PLT
	jmp	.L26
	.cfi_endproc
.LFE6:
	.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	"981630.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"User can type \342\200\231help\342\200\231 to see t"
	.ascii	"he list of commands\000"
	.align	2
.LC1:
	.ascii	"Which application to run - \000"
	.align	2
.LC2:
	.ascii	"\012\000"
	.align	2
.LC3:
	.ascii	"Enter Correct Command to Run\000"
	.align	2
.LC4:
	.ascii	"help\012\000"
	.align	2
.LC5:
	.ascii	"\011help - Prints the list of commands.\012\011exit"
	.ascii	" - for exitting the main application\012\011run X ["
	.ascii	"flags]- where X can be any executable with or witho"
	.ascii	"ut path and flags are optional\000"
	.align	2
.LC6:
	.ascii	"exit\012\000"
	.align	2
.LC7:
	.ascii	" \000"
	.align	2
.LC8:
	.ascii	"run\000"
	.align	2
.LC9:
	.ascii	"./\000"
	.align	2
.LC10:
	.ascii	"Wrong Executable Provided\000"
	.align	2
.LC11:
	.ascii	"FORK ERROR\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 65608
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #65536
	sub	sp, sp, #76
	sub	r3, fp, #65536
	sub	r3, r3, #12
	str	r0, [r3, #-68]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	str	r1, [r3, #-72]
	ldr	r3, .L30
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r0, .L30+4
	bl	puts
.L26:
	mov	r1, #0
	mov	r0, #2
	bl	signal
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-64]
	ldr	r0, .L30+8
	bl	printf
	ldr	r3, .L30+12
	ldr	r2, [r3]
	sub	r3, fp, #532
	mov	r1, #255
	mov	r0, r3
	bl	fgets
	sub	r3, fp, #532
	ldr	r1, .L30+16
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L2
	ldr	r0, .L30+20
	bl	puts
	b	.L26
.L2:
	sub	r3, fp, #532
	ldr	r1, .L30+24
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L4
	ldr	r0, .L30+28
	bl	puts
	b	.L26
.L4:
	sub	r3, fp, #532
	ldr	r1, .L30+32
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L5
	mov	r0, #0
	bl	exit
.L5:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-56]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #532
	ldr	r1, .L30+36
	mov	r0, r3
	bl	strtok
	str	r0, [r4, #-52]
	b	.L6
.L7:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r2, [r3, #-56]
	mov	r3, r2
	lsl	r3, r3, #8
	sub	r2, r3, r2
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #12
	add	r3, r3, r2
	sub	r2, fp, #65536
	sub	r2, r2, #12
	ldr	r1, [r2, #-52]
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-56]
	add	r3, r3, #1
	str	r3, [r2, #-56]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r4, r3
	ldr	r1, .L30+36
	mov	r0, #0
	bl	strtok
	str	r0, [r4, #-52]
.L6:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-52]
	cmp	r3, #0
	bne	.L7
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r2, [r3, #-56]
	mov	r3, r2
	lsl	r3, r3, #8
	sub	r3, r3, r2
	sub	r2, r3, #255
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #12
	add	r3, r3, r2
	sub	r2, fp, #65536
	sub	r2, r2, #12
	mov	r4, r2
	mov	r0, r3
	bl	strlen
	str	r0, [r4, #-44]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-56]
	sub	r2, r3, #1
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	sub	r3, r3, #1
	str	r3, [r1, #-44]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r1, r3
	mov	r3, r2
	lsl	r3, r3, #8
	sub	r3, r3, r2
	add	r2, r1, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	add	r3, r2, r3
	sub	r3, r3, #12
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L8
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-56]
	sub	r2, r3, #1
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r1, r3
	mov	r3, r2
	lsl	r3, r3, #8
	sub	r3, r3, r2
	add	r2, r1, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	add	r3, r2, r3
	sub	r3, r3, #12
	mov	r2, #0
	strb	r2, [r3]
.L8:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #12
	ldr	r1, .L30+40
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L9
	mov	r1, #1
	mov	r0, #2
	bl	signal
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-56]
	cmp	r3, #1
	bne	.L10
	ldr	r0, .L30+20
	bl	puts
	b	.L26
.L10:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-56]
	cmp	r3, #2
	ble	.L11
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-56]
	sub	r2, fp, #65536
	sub	r2, r2, #12
	mov	r4, r2
	mov	r1, #4
	mov	r0, r3
	bl	calloc
	mov	r3, r0
	str	r3, [r4, #-32]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #12
	add	r3, r3, #255
	sub	r2, fp, #65536
	sub	r2, r2, #12
	ldr	r2, [r2, #-32]
	str	r3, [r2]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-48]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #2
	str	r3, [r2, #-60]
	b	.L12
.L13:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r2, [r3, #-60]
	mov	r3, r2
	lsl	r3, r3, #8
	sub	r1, r3, r2
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-48]
	lsl	r3, r3, #2
	sub	r2, fp, #65536
	sub	r2, r2, #12
	ldr	r2, [r2, #-32]
	add	r2, r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #12
	add	r3, r3, r1
	str	r3, [r2]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-48]
	add	r3, r3, #1
	str	r3, [r2, #-48]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-60]
	add	r3, r3, #1
	str	r3, [r2, #-60]
.L12:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r2, [r2, #-60]
	ldr	r3, [r3, #-56]
	cmp	r2, r3
	blt	.L13
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-48]
	lsl	r3, r3, #2
	sub	r2, fp, #65536
	sub	r2, r2, #12
	ldr	r2, [r2, #-32]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r4, r3
	bl	fork
	mov	r3, r0
	str	r3, [r4, #-28]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-28]
	cmp	r3, #0
	bne	.L14
	mov	r1, #0
	mov	r0, #2
	bl	signal
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #12
	add	r3, r3, #255
	sub	r2, fp, #65536
	sub	r2, r2, #12
	ldr	r1, [r2, #-32]
	mov	r0, r3
	bl	execvp
	mov	r3, r0
	cmp	r3, #0
	beq	.L15
	sub	r3, fp, #276
	ldr	r2, .L30+44
	ldr	r2, [r2]
	strh	r2, [r3]	@ movhi
	add	r3, r3, #2
	lsr	r2, r2, #16
	strb	r2, [r3]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #12
	add	r3, r3, #255
	sub	r2, fp, #276
	add	r2, r2, #2
	mov	r1, r3
	mov	r0, r2
	bl	strcpy
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-32]
	sub	r2, fp, #276
	str	r2, [r3]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #276
	ldr	r1, [r2, #-32]
	mov	r0, r3
	bl	execvp
	mov	r3, r0
	cmp	r3, #0
	beq	.L15
	ldr	r0, .L30+48
	bl	perror
	mov	r0, #1
	bl	exit
.L15:
	mov	r0, #0
	bl	exit
.L14:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-28]
	cmn	r3, #1
	bne	.L28
	ldr	r0, .L30+52
	bl	puts
	b	.L18
.L28:
	nop
.L19:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #64
	mov	r0, r3
	bl	wait
	str	r0, [r4, #-24]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-24]
	cmp	r3, #0
	bgt	.L19
.L18:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r0, [r3, #-32]
	bl	free
	b	.L26
.L11:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #12
	add	r3, r3, #255
	sub	r2, fp, #65536
	sub	r2, r2, #12
	str	r3, [r2, #-20]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-16]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r4, r3
	bl	fork
	mov	r3, r0
	str	r3, [r4, #-40]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-40]
	cmp	r3, #0
	bne	.L20
	mov	r1, #0
	mov	r0, #2
	bl	signal
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #12
	add	r3, r3, #255
	sub	r2, fp, #65536
	sub	r2, r2, #12
	sub	r2, r2, #20
	mov	r1, r2
	mov	r0, r3
	bl	execvp
	mov	r3, r0
	cmp	r3, #0
	beq	.L21
	sub	r3, fp, #276
	ldr	r2, .L30+44
	ldr	r2, [r2]
	strh	r2, [r3]	@ movhi
	add	r3, r3, #2
	lsr	r2, r2, #16
	strb	r2, [r3]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #12
	add	r3, r3, #255
	sub	r2, fp, #276
	add	r2, r2, #2
	mov	r1, r3
	mov	r0, r2
	bl	strcpy
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #276
	str	r3, [r2, #-20]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #20
	sub	r2, fp, #276
	mov	r1, r3
	mov	r0, r2
	bl	execvp
	mov	r3, r0
	cmp	r3, #0
	beq	.L21
	ldr	r0, .L30+48
	bl	perror
	mov	r0, #1
	bl	exit
.L21:
	mov	r0, #0
	bl	exit
.L20:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-40]
	cmn	r3, #1
	bne	.L29
	ldr	r0, .L30+52
	bl	puts
	b	.L26
.L29:
	nop
.L25:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #64
	mov	r0, r3
	bl	wait
	str	r0, [r4, #-36]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-36]
	cmp	r3, #0
	bgt	.L25
	b	.L26
.L9:
	ldr	r0, .L30+20
	bl	puts
	b	.L26
.L31:
	.align	2
.L30:
	.word	.LC12
	.word	.LC0
	.word	.LC1
	.word	stdin
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
