	.file	"695361.c"
	.intel_syntax noprefix
	.text
	.globl	insertAtFront
	.type	insertAtFront, @function
insertAtFront:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	edi, 24
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L2
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 16[rax], rdx
	jmp	.L4
.L2:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 16[rax], rdx
.L4:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	insertAtFront, .-insertAtFront
	.section	.rodata
.LC0:
	.string	"%s "
	.text
	.globl	print
	.type	print, @function
print:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	cmp	QWORD PTR -8[rbp], 0
	je	.L8
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	print
	jmp	.L5
.L8:
	nop
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	print, .-print
	.section	.rodata
.LC1:
	.string	"partytime@joes1.0>"
.LC2:
	.string	"%s"
.LC3:
	.string	"The command histo is "
.LC4:
	.string	"cycle"
.LC5:
	.string	"& detected saved and removed"
.LC6:
	.string	" "
.LC7:
	.string	"array [0]"
.LC8:
	.string	"array [1]"
.LC9:
	.string	"array [2]"
.LC10:
	.string	"array [3]"
.LC11:
	.string	"array [4]"
.LC12:
	.string	"array [5]"
.LC13:
	.string	"array [6]"
.LC14:
	.string	"Fork Failed"
	.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, 1088
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edi, 24
	call	malloc@PLT
	mov	QWORD PTR -1048[rbp], rax
	mov	rax, QWORD PTR -1048[rbp]
	mov	QWORD PTR -1040[rbp], rax
	mov	rax, QWORD PTR -1040[rbp]
	mov	QWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -1040[rbp]
	mov	QWORD PTR 16[rax], 0
	mov	DWORD PTR -1068[rbp], 1
	jmp	.L10
.L24:
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	rdx, QWORD PTR stdin[rip]
	lea	rcx, -1056[rbp]
	lea	rax, -672[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	getline@PLT
	mov	rax, QWORD PTR -672[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -672[rbp]
	mov	QWORD PTR -1032[rbp], rax
	mov	rdx, QWORD PTR -1032[rbp]
	mov	rax, QWORD PTR -1048[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	insertAtFront
	mov	rax, QWORD PTR -672[rbp]
	mov	QWORD PTR -1024[rbp], rax
	mov	rax, QWORD PTR -1024[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -1024[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -672[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	movabs	rax, 34184295202646376
	mov	QWORD PTR -16[rbp], rax
	mov	rdx, QWORD PTR -672[rbp]
	lea	rax, -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L11
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -1048[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	print
	mov	edi, 10
	call	putchar@PLT
.L11:
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	DWORD PTR -21[rbp], 1953069157
	mov	BYTE PTR -17[rbp], 0
	mov	rdx, QWORD PTR -672[rbp]
	lea	rax, -21[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L27
	mov	rax, QWORD PTR -672[rbp]
	mov	QWORD PTR -1016[rbp], rax
	mov	DWORD PTR -1076[rbp], 0
	mov	rax, QWORD PTR -1016[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -1016[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 38
	jne	.L14
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	DWORD PTR -1076[rbp], 1
	mov	rax, QWORD PTR -1016[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -1016[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -672[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
.L14:
	mov	DWORD PTR -1072[rbp], 0
	jmp	.L15
.L18:
	lea	rax, -672[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strsep@PLT
	mov	edx, DWORD PTR -1072[rbp]
	movsx	rdx, edx
	mov	QWORD PTR -1008[rbp+rdx*8], rax
	mov	eax, DWORD PTR -1072[rbp]
	cdqe
	mov	rax, QWORD PTR -1008[rbp+rax*8]
	test	rax, rax
	je	.L28
	add	DWORD PTR -1072[rbp], 1
.L15:
	cmp	DWORD PTR -1072[rbp], 80
	jle	.L18
	jmp	.L17
.L28:
	nop
.L17:
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -1008[rbp]
	mov	rdi, rax
	call	puts@PLT
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -1000[rbp]
	mov	rdi, rax
	call	puts@PLT
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -992[rbp]
	mov	rdi, rax
	call	puts@PLT
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -984[rbp]
	mov	rdi, rax
	call	puts@PLT
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -976[rbp]
	mov	rdi, rax
	call	puts@PLT
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -968[rbp]
	mov	rdi, rax
	call	puts@PLT
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -960[rbp]
	mov	rdi, rax
	call	puts@PLT
	call	fork@PLT
	mov	DWORD PTR -1064[rbp], eax
	cmp	DWORD PTR -1064[rbp], 0
	jns	.L19
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 11
	mov	esi, 1
	lea	rdi, .LC14[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L25
.L19:
	cmp	DWORD PTR -1064[rbp], 0
	jne	.L21
	mov	rax, QWORD PTR -1008[rbp]
	lea	rdx, -1008[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	execvp@PLT
	mov	DWORD PTR -1060[rbp], eax
	mov	eax, 0
	jmp	.L25
.L21:
	cmp	DWORD PTR -1076[rbp], 1
	je	.L10
	mov	edi, 0
	mov	eax, 0
	call	wait@PLT
.L10:
	cmp	DWORD PTR -1068[rbp], 0
	jne	.L24
	jmp	.L13
.L27:
	nop
.L13:
	mov	eax, 0
.L25:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	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	"695361.c"
	.text
	.align	2
	.global	insertAtFront
	.syntax unified
	.arm
	.fpu softvfp
	.type	insertAtFront, %function
insertAtFront:
	@ 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]
	str	r1, [fp, #-20]
	mov	r0, #12
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L2
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #8]
	b	.L4
.L2:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #8]
.L4:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	insertAtFront, .-insertAtFront
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%s \000"
	.text
	.align	2
	.global	print
	.syntax unified
	.arm
	.fpu softvfp
	.type	print, %function
print:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L8
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L9
	bl	printf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	print
	b	.L5
.L8:
	nop
.L5:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC0
	.size	print, .-print
	.section	.rodata
	.align	2
.LC1:
	.ascii	"partytime@joes1.0>\000"
	.align	2
.LC2:
	.ascii	"%s\000"
	.align	2
.LC4:
	.ascii	"The command histo is \000"
	.align	2
.LC5:
	.ascii	"cycle\000"
	.align	2
.LC7:
	.ascii	"& detected saved and removed\000"
	.align	2
.LC8:
	.ascii	" \000"
	.align	2
.LC9:
	.ascii	"array [0]\000"
	.align	2
.LC10:
	.ascii	"array [1]\000"
	.align	2
.LC11:
	.ascii	"array [2]\000"
	.align	2
.LC12:
	.ascii	"array [3]\000"
	.align	2
.LC13:
	.ascii	"array [4]\000"
	.align	2
.LC14:
	.ascii	"array [5]\000"
	.align	2
.LC15:
	.ascii	"array [6]\000"
	.align	2
.LC16:
	.ascii	"Fork Failed\000"
	.align	2
.LC3:
	.ascii	"history\000"
	.align	2
.LC6:
	.ascii	"exit\000"
	.align	2
.LC17:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 552
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #552
	ldr	r3, .L31
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r0, #12
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-540]
	ldr	r3, [fp, #-540]
	str	r3, [fp, #-536]
	ldr	r3, [fp, #-536]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-536]
	mov	r2, #0
	str	r2, [r3, #8]
	mov	r3, #1
	str	r3, [fp, #-532]
	b	.L12
.L26:
	ldr	r0, .L31+4
	bl	printf
	ldr	r3, .L31+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, .L31+12
	ldr	r2, [r3]
	sub	r1, fp, #552
	sub	r3, fp, #344
	mov	r0, r3
	bl	getline
	ldr	r3, [fp, #-344]
	mov	r1, r3
	ldr	r0, .L31+16
	bl	printf
	ldr	r3, [fp, #-344]
	str	r3, [fp, #-528]
	ldr	r1, [fp, #-528]
	ldr	r0, [fp, #-540]
	bl	insertAtFront
	ldr	r3, [fp, #-344]
	str	r3, [fp, #-524]
	ldr	r0, [fp, #-524]
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	ldr	r2, [fp, #-524]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-344]
	mov	r1, r3
	ldr	r0, .L31+16
	bl	printf
	ldr	r2, .L31+20
	sub	r3, fp, #16
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	ldr	r2, [fp, #-344]
	sub	r3, fp, #16
	mov	r1, r2
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L13
	ldr	r0, .L31+24
	bl	printf
	ldr	r3, [fp, #-540]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	print
	mov	r0, #10
	bl	putchar
.L13:
	ldr	r0, .L31+28
	bl	puts
	ldr	r2, .L31+32
	sub	r3, fp, #24
	ldm	r2, {r0, r1}
	str	r0, [r3]
	add	r3, r3, #4
	strb	r1, [r3]
	ldr	r2, [fp, #-344]
	sub	r3, fp, #24
	mov	r1, r2
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L29
	ldr	r3, [fp, #-344]
	str	r3, [fp, #-520]
	mov	r3, #0
	str	r3, [fp, #-548]
	ldr	r0, [fp, #-520]
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	ldr	r2, [fp, #-520]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #38
	bne	.L16
	ldr	r0, .L31+36
	bl	puts
	mov	r3, #1
	str	r3, [fp, #-548]
	ldr	r0, [fp, #-520]
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	ldr	r2, [fp, #-520]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-344]
	mov	r1, r3
	ldr	r0, .L31+16
	bl	printf
.L16:
	mov	r3, #0
	str	r3, [fp, #-544]
	b	.L17
.L20:
	sub	r3, fp, #344
	ldr	r1, .L31+40
	mov	r0, r3
	bl	strsep
	mov	r2, r0
	ldr	r3, [fp, #-544]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-504]
	ldr	r3, [fp, #-544]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-504]
	cmp	r3, #0
	beq	.L30
	ldr	r3, [fp, #-544]
	add	r3, r3, #1
	str	r3, [fp, #-544]
.L17:
	ldr	r3, [fp, #-544]
	cmp	r3, #80
	ble	.L20
	b	.L19
.L30:
	nop
.L19:
	ldr	r0, .L31+44
	bl	printf
	ldr	r3, [fp, #-508]
	mov	r0, r3
	bl	puts
	ldr	r0, .L31+48
	bl	printf
	ldr	r3, [fp, #-504]
	mov	r0, r3
	bl	puts
	ldr	r0, .L31+52
	bl	printf
	ldr	r3, [fp, #-500]
	mov	r0, r3
	bl	puts
	ldr	r0, .L31+56
	bl	printf
	ldr	r3, [fp, #-496]
	mov	r0, r3
	bl	puts
	ldr	r0, .L31+60
	bl	printf
	ldr	r3, [fp, #-492]
	mov	r0, r3
	bl	puts
	ldr	r0, .L31+64
	bl	printf
	ldr	r3, [fp, #-488]
	mov	r0, r3
	bl	puts
	ldr	r0, .L31+68
	bl	printf
	ldr	r3, [fp, #-484]
	mov	r0, r3
	bl	puts
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-516]
	ldr	r3, [fp, #-516]
	cmp	r3, #0
	bge	.L21
	ldr	r3, .L31+72
	ldr	r3, [r3]
	mov	r2, #11
	mov	r1, #1
	ldr	r0, .L31+76
	bl	fwrite
	mov	r3, #1
	b	.L27
.L21:
	ldr	r3, [fp, #-516]
	cmp	r3, #0
	bne	.L23
	ldr	r3, [fp, #-508]
	sub	r2, fp, #508
	mov	r1, r2
	mov	r0, r3
	bl	execvp
	mov	r3, r0
	str	r3, [fp, #-512]
	mov	r3, #0
	b	.L27
.L23:
	ldr	r3, [fp, #-548]
	cmp	r3, #1
	beq	.L12
	mov	r0, #0
	bl	wait
.L12:
	ldr	r3, [fp, #-532]
	cmp	r3, #0
	bne	.L26
	b	.L15
.L29:
	nop
.L15:
	mov	r3, #0
.L27:
	ldr	r2, .L31
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L28
	bl	__stack_chk_fail
.L28:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L32:
	.align	2
.L31:
	.word	.LC17
	.word	.LC1
	.word	stdout
	.word	stdin
	.word	.LC2
	.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	stderr
	.word	.LC16
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
