	.file	"597972.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Sam"
.LC1:
	.string	"Antony"
.LC2:
	.string	"Tony"
.LC3:
	.string	"Peter"
.LC4:
	.string	"John"
.LC5:
	.string	"Richard"
.LC6:
	.string	"gilfoyle"
.LC7:
	.string	"Original linked list"
.LC8:
	.string	"Reversed linked list"
	.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
	sub	rsp, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edi, 32
	call	malloc@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR [rax], 1953723722
	mov	WORD PTR 4[rax], 28265
	mov	BYTE PTR 6[rax], 0
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 20[rax], 1000
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR 24[rax], 0
	lea	rax, -16[rbp]
	mov	edx, 700
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	insert
	lea	rax, -16[rbp]
	mov	edx, 200
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	insert
	lea	rax, -16[rbp]
	mov	edx, 300
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	insert
	lea	rax, -16[rbp]
	mov	edx, 400
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	insert
	lea	rax, -16[rbp]
	mov	edx, 600
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	insert
	lea	rax, -16[rbp]
	mov	edx, 900
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	insert
	lea	rax, -16[rbp]
	mov	edx, 680
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	insert
	lea	rdi, .LC7[rip]
	call	puts@PLT
	lea	rax, -16[rbp]
	mov	rdi, rax
	call	print
	lea	rax, -16[rbp]
	mov	rdi, rax
	call	reverse
	lea	rdi, .LC8[rip]
	call	puts@PLT
	lea	rax, -16[rbp]
	mov	rdi, rax
	call	print
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC9:
	.string	"No memory found to allocate newPtr of name:%s and salary:%i\n"
	.text
	.globl	insert
	.type	insert, @function
insert:
.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	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	DWORD PTR -52[rbp], edx
	mov	edi, 32
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -48[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -52[rbp]
	mov	DWORD PTR 20[rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 24[rax], 0
	cmp	QWORD PTR -8[rbp], 0
	je	.L5
	mov	QWORD PTR -24[rbp], 0
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L6
.L8:
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -16[rbp], rax
.L6:
	cmp	QWORD PTR -16[rbp], 0
	je	.L7
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jg	.L8
.L7:
	cmp	QWORD PTR -24[rbp], 0
	jne	.L9
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 24[rax], rdx
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	jmp	.L11
.L9:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 24[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR 24[rax], rdx
	jmp	.L11
.L5:
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, DWORD PTR -52[rbp]
	mov	rdx, QWORD PTR -48[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L11:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	insert, .-insert
	.section	.rodata
.LC10:
	.string	"Name: %s, Salary: %i\n"
	.text
	.globl	print
	.type	print, @function
print:
.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	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L13
.L14:
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR 20[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -8[rbp], rax
.L13:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L14
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	print, .-print
	.globl	reverse
	.type	reverse, @function
reverse:
.LFB9:
	.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 -40[rbp], rdi
	mov	QWORD PTR -24[rbp], 0
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -16[rbp], rax
	mov	QWORD PTR -8[rbp], 0
	jmp	.L16
.L17:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 24[rax], rdx
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -16[rbp], rax
.L16:
	cmp	QWORD PTR -16[rbp], 0
	jne	.L17
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], rdx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	reverse, .-reverse
	.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	"597972.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Justin\000"
	.align	2
.LC1:
	.ascii	"Sam\000"
	.align	2
.LC2:
	.ascii	"Antony\000"
	.align	2
.LC3:
	.ascii	"Tony\000"
	.align	2
.LC4:
	.ascii	"Peter\000"
	.align	2
.LC5:
	.ascii	"John\000"
	.align	2
.LC6:
	.ascii	"Richard\000"
	.align	2
.LC7:
	.ascii	"gilfoyle\000"
	.align	2
.LC8:
	.ascii	"Original linked list\000"
	.align	2
.LC9:
	.ascii	"Reversed linked list\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L4
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r0, #28
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	mov	r2, r3
	ldr	r3, .L4+4
	mov	r0, r2
	mov	r1, r3
	mov	r3, #7
	mov	r2, r3
	bl	memcpy
	ldr	r3, [fp, #-12]
	mov	r2, #1000
	str	r2, [r3, #20]
	ldr	r3, [fp, #-12]
	mov	r2, #0
	str	r2, [r3, #24]
	sub	r3, fp, #12
	mov	r2, #700
	ldr	r1, .L4+8
	mov	r0, r3
	bl	insert
	sub	r3, fp, #12
	mov	r2, #200
	ldr	r1, .L4+12
	mov	r0, r3
	bl	insert
	sub	r3, fp, #12
	mov	r2, #300
	ldr	r1, .L4+16
	mov	r0, r3
	bl	insert
	sub	r3, fp, #12
	mov	r2, #400
	ldr	r1, .L4+20
	mov	r0, r3
	bl	insert
	sub	r3, fp, #12
	mov	r2, #600
	ldr	r1, .L4+24
	mov	r0, r3
	bl	insert
	sub	r3, fp, #12
	mov	r2, #900
	ldr	r1, .L4+28
	mov	r0, r3
	bl	insert
	sub	r3, fp, #12
	mov	r2, #680
	ldr	r1, .L4+32
	mov	r0, r3
	bl	insert
	ldr	r0, .L4+36
	bl	puts
	sub	r3, fp, #12
	mov	r0, r3
	bl	print
	sub	r3, fp, #12
	mov	r0, r3
	bl	reverse
	ldr	r0, .L4+40
	bl	puts
	sub	r3, fp, #12
	mov	r0, r3
	bl	print
	mov	r3, #0
	ldr	r2, .L4
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L3
	bl	__stack_chk_fail
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC10
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	main, .-main
	.section	.rodata
	.align	2
.LC11:
	.ascii	"No memory found to allocate newPtr of name:%s and s"
	.ascii	"alary:%i\012\000"
	.text
	.align	2
	.global	insert
	.syntax unified
	.arm
	.fpu softvfp
	.type	insert, %function
insert:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	mov	r0, #28
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r1, [fp, #-28]
	mov	r0, r3
	bl	strcpy
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-32]
	str	r2, [r3, #20]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #24]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L7
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	b	.L8
.L10:
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #24]
	str	r3, [fp, #-12]
.L8:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L9
	ldr	r3, [fp, #-12]
	mov	r1, r3
	ldr	r0, [fp, #-28]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bgt	.L10
.L9:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L11
	ldr	r3, [fp, #-24]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	str	r2, [r3, #24]
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	b	.L13
.L11:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #24]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	str	r2, [r3, #24]
	b	.L13
.L7:
	ldr	r3, .L14
	ldr	r0, [r3]
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-28]
	ldr	r1, .L14+4
	bl	fprintf
.L13:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	stderr
	.word	.LC11
	.size	insert, .-insert
	.section	.rodata
	.align	2
.LC12:
	.ascii	"Name: %s, Salary: %i\012\000"
	.text
	.align	2
	.global	print
	.syntax unified
	.arm
	.fpu softvfp
	.type	print, %function
print:
	@ 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	r3, [fp, #-16]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	b	.L17
.L18:
	ldr	r1, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #20]
	mov	r2, r3
	ldr	r0, .L19
	bl	printf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #24]
	str	r3, [fp, #-8]
.L17:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L18
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC12
	.size	print, .-print
	.align	2
	.global	reverse
	.syntax unified
	.arm
	.fpu softvfp
	.type	reverse, %function
reverse:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L22
.L23:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #24]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #24]
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-12]
.L22:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L23
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	reverse, .-reverse
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
