	.file	"293378.c"
	.intel_syntax noprefix
	.text
	.globl	BUFF_SIZE
	.section	.rodata
	.align 4
	.type	BUFF_SIZE, @object
	.size	BUFF_SIZE, 4
BUFF_SIZE:
	.long	50
	.text
	.globl	split
	.type	split, @function
split:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	DWORD PTR -12[rbp], 0
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR -12[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -12[rbp], edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rdx], rax
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -12[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -12[rbp], edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rdx], rax
.L2:
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L3
	mov	eax, DWORD PTR -12[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	split, .-split
	.globl	endString
	.type	endString, @function
endString:
.LFB7:
	.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 -24[rbp], rdi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L6
.L9:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	jne	.L7
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	jmp	.L8
.L7:
	add	DWORD PTR -4[rbp], 1
.L6:
	mov	eax, 50
	cmp	DWORD PTR -4[rbp], eax
	jl	.L9
	nop
.L8:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	endString, .-endString
	.section	.rodata
.LC0:
	.string	" "
.LC1:
	.string	"-o"
	.text
	.globl	updateArguments
	.type	updateArguments, @function
updateArguments:
.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, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	split
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], 1
	jle	.L11
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 3
	lea	rdx, -16[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L11
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 3
	lea	rdx, -8[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	esi, 1089
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -4[rbp], eax
	mov	edi, 1
	call	dup@PLT
	mov	rdx, QWORD PTR -40[rbp]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, 1
	mov	edi, eax
	call	dup2@PLT
	sub	DWORD PTR -8[rbp], 2
.L11:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	QWORD PTR [rax], 0
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	updateArguments, .-updateArguments
	.section	.rodata
.LC2:
	.string	"minish> "
.LC3:
	.string	"quit"
	.align 8
.LC4:
	.string	"Error creating child process, aborting"
.LC5:
	.string	"Invalid command"
	.text
	.globl	main
	.type	main, @function
main:
.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, 216
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	rbx, rax
	mov	eax, 50
	cdqe
	sub	rax, 1
	mov	QWORD PTR -208[rbp], rax
	mov	eax, 50
	cdqe
	mov	r8, rax
	mov	r9d, 0
	mov	eax, 50
	cdqe
	mov	rsi, rax
	mov	edi, 0
	mov	eax, 50
	cdqe
	mov	edx, 16
	sub	rdx, 1
	add	rax, rdx
	mov	ecx, 16
	mov	edx, 0
	div	rcx
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L13:
	cmp	rsp, rdx
	je	.L14
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L13
.L14:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L15
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L15:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -200[rbp], rax
.L21:
	mov	DWORD PTR -216[rbp], 1
	mov	edx, 8
	lea	rsi, .LC2[rip]
	mov	edi, 1
	call	write@PLT
	mov	eax, 50
	movsx	rdx, eax
	mov	rax, QWORD PTR -200[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	read@PLT
	mov	rax, QWORD PTR -200[rbp]
	mov	rdi, rax
	call	endString
	mov	rax, QWORD PTR -200[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L25
	lea	rdx, -216[rbp]
	mov	rcx, QWORD PTR -200[rbp]
	lea	rax, -192[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	updateArguments
	call	fork@PLT
	mov	DWORD PTR -212[rbp], eax
	cmp	DWORD PTR -212[rbp], -1
	jne	.L18
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L18:
	cmp	DWORD PTR -212[rbp], 0
	jne	.L19
	mov	rax, QWORD PTR -192[rbp]
	lea	rdx, -192[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	execvp@PLT
	lea	rdi, .LC5[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -216[rbp]
	mov	esi, 1
	mov	edi, eax
	call	dup2@PLT
	jmp	.L20
.L19:
	mov	edi, 0
	call	wait@PLT
	mov	eax, DWORD PTR -216[rbp]
	mov	esi, 1
	mov	edi, eax
	call	dup2@PLT
.L20:
	jmp	.L21
.L25:
	nop
	mov	rsp, rbx
	mov	eax, 0
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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	"293378.c"
	.text
	.global	BUFF_SIZE
	.section	.rodata
	.align	2
	.type	BUFF_SIZE, %object
	.size	BUFF_SIZE, 4
BUFF_SIZE:
	.word	50
	.text
	.align	2
	.global	split
	.syntax unified
	.arm
	.fpu softvfp
	.type	split, %function
split:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	strtok
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r2, r3, #1
	str	r2, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	b	.L2
.L3:
	ldr	r3, [fp, #-12]
	add	r2, r3, #1
	str	r2, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	str	r2, [r3]
.L2:
	ldr	r1, [fp, #-20]
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L3
	ldr	r3, [fp, #-12]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	split, .-split
	.align	2
	.global	endString
	.syntax unified
	.arm
	.fpu softvfp
	.type	endString, %function
endString:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L6
.L9:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L7
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	b	.L8
.L7:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L6:
	mov	r2, #50
	ldr	r3, [fp, #-8]
	cmp	r3, r2
	blt	.L9
	nop
.L8:
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	endString, .-endString
	.section	.rodata
	.align	2
.LC0:
	.ascii	" \000"
	.align	2
.LC1:
	.ascii	"-o\000"
	.text
	.align	2
	.global	updateArguments
	.syntax unified
	.arm
	.fpu softvfp
	.type	updateArguments, %function
updateArguments:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r2, [fp, #-16]
	ldr	r1, .L12
	ldr	r0, [fp, #-20]
	bl	split
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #1
	ble	.L11
	ldr	r3, [fp, #-12]
	sub	r3, r3, #-1073741822
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L12+4
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L11
	ldr	r3, [fp, #-12]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L12+8
	mov	r0, r3
	bl	open
	str	r0, [fp, #-8]
	mov	r0, #1
	bl	dup
	mov	r2, r0
	ldr	r3, [fp, #-24]
	str	r2, [r3]
	mov	r1, #1
	ldr	r0, [fp, #-8]
	bl	dup2
	ldr	r3, [fp, #-12]
	sub	r3, r3, #2
	str	r3, [fp, #-12]
.L11:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC0
	.word	.LC1
	.word	1089
	.size	updateArguments, .-updateArguments
	.section	.rodata
	.align	2
.LC2:
	.ascii	"minish> \000"
	.align	2
.LC3:
	.ascii	"quit\000"
	.align	2
.LC4:
	.ascii	"Error creating child process, aborting\000"
	.align	2
.LC5:
	.ascii	"Invalid command\000"
	.align	2
.LC6:
	.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
	ldr	r3, .L25
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, sp
	mov	r4, r3
	mov	r3, #50
	sub	r3, r3, #1
	str	r3, [fp, #-108]
	mov	r3, #50
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r3, #50
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r3, #50
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #0
	str	r3, [fp, #-104]
.L20:
	mov	r3, #1
	str	r3, [fp, #-112]
	mov	r2, #8
	ldr	r1, .L25+4
	mov	r0, #1
	bl	write
	mov	r3, #50
	mov	r2, r3
	ldr	r1, [fp, #-104]
	mov	r0, #0
	bl	read
	ldr	r0, [fp, #-104]
	bl	endString
	ldr	r1, .L25+8
	ldr	r0, [fp, #-104]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L24
	sub	r2, fp, #112
	sub	r3, fp, #96
	ldr	r1, [fp, #-104]
	mov	r0, r3
	bl	updateArguments
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-100]
	ldr	r3, [fp, #-100]
	cmn	r3, #1
	bne	.L17
	ldr	r0, .L25+12
	bl	perror
	mov	r0, #1
	bl	exit
.L17:
	ldr	r3, [fp, #-100]
	cmp	r3, #0
	bne	.L18
	ldr	r3, [fp, #-96]
	sub	r2, fp, #96
	mov	r1, r2
	mov	r0, r3
	bl	execvp
	ldr	r0, .L25+16
	bl	perror
	ldr	r3, [fp, #-112]
	mov	r1, #1
	mov	r0, r3
	bl	dup2
	b	.L19
.L18:
	mov	r0, #0
	bl	wait
	ldr	r3, [fp, #-112]
	mov	r1, #1
	mov	r0, r3
	bl	dup2
.L19:
	b	.L20
.L24:
	nop
	mov	sp, r4
	mov	r3, #0
	ldr	r2, .L25
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L22
	bl	__stack_chk_fail
.L22:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L26:
	.align	2
.L25:
	.word	.LC6
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
