	.file	"249724.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"\nHow many elements:"
.LC1:
	.string	"%d"
	.align 8
.LC2:
	.string	"\nEnter position,element to insert:"
.LC3:
	.string	"%d%d"
.LC4:
	.string	"\nContinue?(y/n):"
.LC5:
	.string	"\nEnter the position (delete):"
.LC6:
	.string	"\nThe deleted element:%d"
.LC7:
	.string	"\nEnter the element to locate:"
	.align 8
.LC8:
	.string	"\nThe position of the element %d: %d"
	.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 3952
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -8036[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	scanf_s@PLT
	mov	edx, DWORD PTR -8036[rbp]
	lea	rax, -8016[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	create_list
	lea	rax, -8016[rbp]
	mov	rdi, rax
	call	print_list
.L3:
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdx, -8024[rbp]
	lea	rax, -8032[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	scanf_s@PLT
	mov	edx, DWORD PTR -8024[rbp]
	mov	ecx, DWORD PTR -8032[rbp]
	lea	rax, -8016[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	insert_element
	lea	rax, -8016[rbp]
	mov	rdi, rax
	call	print_list
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	nop
.L2:
	call	getchar@PLT
	cmp	eax, 10
	jne	.L2
	call	getchar@PLT
	mov	DWORD PTR -8020[rbp], eax
	cmp	DWORD PTR -8020[rbp], 121
	je	.L3
	cmp	DWORD PTR -8020[rbp], 89
	je	.L3
.L5:
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -8032[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	scanf_s@PLT
	mov	ecx, DWORD PTR -8032[rbp]
	lea	rdx, -8024[rbp]
	lea	rax, -8016[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	delete_element
	mov	eax, DWORD PTR -8024[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -8016[rbp]
	mov	rdi, rax
	call	print_list
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	nop
.L4:
	call	getchar@PLT
	cmp	eax, 10
	jne	.L4
	call	getchar@PLT
	mov	DWORD PTR -8020[rbp], eax
	cmp	DWORD PTR -8020[rbp], 121
	je	.L5
	cmp	DWORD PTR -8020[rbp], 89
	je	.L5
.L7:
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -8024[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	scanf_s@PLT
	mov	edx, DWORD PTR -8024[rbp]
	lea	rax, -8016[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	locate_elem
	mov	DWORD PTR -8032[rbp], eax
	mov	edx, DWORD PTR -8032[rbp]
	mov	eax, DWORD PTR -8024[rbp]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	nop
.L6:
	call	getchar@PLT
	cmp	eax, 10
	jne	.L6
	call	getchar@PLT
	mov	DWORD PTR -8020[rbp], eax
	cmp	DWORD PTR -8020[rbp], 121
	je	.L7
	cmp	DWORD PTR -8020[rbp], 89
	je	.L7
	lea	rdx, -8028[rbp]
	lea	rax, -8016[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	difference
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC9:
	.string	"\nEnter %d elements:\n"
	.text
	.globl	create_list
	.type	create_list, @function
create_list:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	init_list
	mov	eax, DWORD PTR -28[rbp]
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -12[rbp], 0
	jmp	.L11
.L12:
	lea	rax, -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	scanf_s@PLT
	mov	edx, DWORD PTR -16[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	insert_element
	add	DWORD PTR -12[rbp], 1
.L11:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L12
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	create_list, .-create_list
	.globl	init_list
	.type	init_list, @function
init_list:
.LFB8:
	.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	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 4[rax], 2
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 12[rax], 1
	mov	DWORD PTR -4[rbp], 2
	jmp	.L15
.L16:
	mov	eax, DWORD PTR -4[rbp]
	lea	ecx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -4[rbp]
	movsx	rdx, edx
	mov	DWORD PTR 4[rax+rdx*8], ecx
	add	DWORD PTR -4[rbp], 1
.L15:
	cmp	DWORD PTR -4[rbp], 998
	jle	.L16
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 7996[rax], 0
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	init_list, .-init_list
	.section	.rodata
.LC10:
	.string	"\n====the list========"
.LC11:
	.string	"%d, "
	.text
	.globl	print_list
	.type	print_list, @function
print_list:
.LFB9:
	.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
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 12[rax]
	mov	DWORD PTR -4[rbp], eax
	jmp	.L18
.L19:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -4[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*8]
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -4[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR 4[rax+rdx*8]
	mov	DWORD PTR -4[rbp], eax
.L18:
	cmp	DWORD PTR -4[rbp], 1
	jne	.L19
	mov	edi, 10
	call	putchar@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	print_list, .-print_list
	.section	.rodata
.LC12:
	.string	"not enough space!!!"
	.text
	.globl	alloc_space
	.type	alloc_space, @function
alloc_space:
.LFB10:
	.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	eax, DWORD PTR 4[rax]
	test	eax, eax
	jne	.L21
	lea	rdi, .LC12[rip]
	call	puts@PLT
	mov	edi, 2
	call	exit@PLT
.L21:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -4[rbp]
	movsx	rdx, edx
	mov	edx, DWORD PTR 4[rax+rdx*8]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	alloc_space, .-alloc_space
	.globl	free_space
	.type	free_space, @function
free_space:
.LFB11:
	.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 -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	rax, QWORD PTR -8[rbp]
	mov	ecx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -12[rbp]
	movsx	rdx, edx
	mov	DWORD PTR 4[rax+rdx*8], ecx
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -12[rbp]
	mov	DWORD PTR 4[rax], edx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	free_space, .-free_space
	.globl	insert_element
	.type	insert_element, @function
insert_element:
.LFB12:
	.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	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	DWORD PTR -16[rbp], 1
	mov	DWORD PTR -12[rbp], 1
	jmp	.L25
.L27:
	add	DWORD PTR -16[rbp], 1
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR -12[rbp], eax
.L25:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jge	.L26
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -12[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR 4[rax+rdx*8]
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], 1
	jne	.L27
.L26:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jne	.L29
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	alloc_space
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -4[rbp]
	movsx	rdx, edx
	mov	ecx, DWORD PTR -32[rbp]
	mov	DWORD PTR [rax+rdx*8], ecx
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -12[rbp]
	movsx	rdx, edx
	mov	ecx, DWORD PTR 4[rax+rdx*8]
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -4[rbp]
	movsx	rdx, edx
	mov	DWORD PTR 4[rax+rdx*8], ecx
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -12[rbp]
	movsx	rdx, edx
	mov	ecx, DWORD PTR -4[rbp]
	mov	DWORD PTR 4[rax+rdx*8], ecx
.L29:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	insert_element, .-insert_element
	.globl	delete_element
	.type	delete_element, @function
delete_element:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 40
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	QWORD PTR -40[rbp], rdx
	mov	DWORD PTR -16[rbp], 1
	mov	DWORD PTR -12[rbp], 1
	jmp	.L31
.L33:
	add	DWORD PTR -16[rbp], 1
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR -12[rbp], eax
.L31:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jge	.L32
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -12[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR 4[rax+rdx*8]
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], 1
	jne	.L33
.L32:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jne	.L34
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -12[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR 4[rax+rdx*8]
	cmp	eax, 1
	je	.L34
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -12[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR 4[rax+rdx*8]
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -4[rbp]
	movsx	rdx, edx
	mov	ecx, DWORD PTR 4[rax+rdx*8]
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -12[rbp]
	movsx	rdx, edx
	mov	DWORD PTR 4[rax+rdx*8], ecx
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -4[rbp]
	movsx	rdx, edx
	mov	edx, DWORD PTR [rax+rdx*8]
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR [rax], edx
	mov	edx, DWORD PTR -4[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	free_space
	jmp	.L35
.L34:
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR [rax], 0
	nop
.L35:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	delete_element, .-delete_element
	.globl	locate_elem
	.type	locate_elem, @function
locate_elem:
.LFB14:
	.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 -28[rbp], esi
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 12[rax]
	mov	DWORD PTR -8[rbp], eax
	mov	DWORD PTR -4[rbp], 1
	jmp	.L37
.L40:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -8[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*8]
	cmp	DWORD PTR -28[rbp], eax
	je	.L43
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -8[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR 4[rax+rdx*8]
	mov	DWORD PTR -8[rbp], eax
	add	DWORD PTR -4[rbp], 1
.L37:
	cmp	DWORD PTR -8[rbp], 1
	jne	.L40
	jmp	.L39
.L43:
	nop
.L39:
	cmp	DWORD PTR -8[rbp], 1
	jne	.L41
	mov	eax, -1
	jmp	.L42
.L41:
	mov	eax, DWORD PTR -4[rbp]
.L42:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	locate_elem, .-locate_elem
	.globl	get_elem_cursor
	.type	get_elem_cursor, @function
get_elem_cursor:
.LFB15:
	.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 -28[rbp], esi
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 12[rax]
	mov	DWORD PTR -4[rbp], eax
	jmp	.L45
.L48:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -4[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*8]
	cmp	DWORD PTR -28[rbp], eax
	je	.L52
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -4[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR 4[rax+rdx*8]
	mov	DWORD PTR -4[rbp], eax
.L45:
	cmp	DWORD PTR -4[rbp], 1
	jne	.L48
	jmp	.L47
.L52:
	nop
.L47:
	cmp	DWORD PTR -4[rbp], 1
	je	.L49
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L51
.L49:
	mov	eax, -1
.L51:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	get_elem_cursor, .-get_elem_cursor
	.section	.rodata
.LC13:
	.string	"\n=====the list======="
	.text
	.globl	print_list_002
	.type	print_list_002, @function
print_list_002:
.LFB16:
	.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	DWORD PTR -28[rbp], esi
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -28[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR 4[rax+rdx*8]
	mov	DWORD PTR -4[rbp], eax
	lea	rdi, .LC13[rip]
	call	puts@PLT
	jmp	.L54
.L55:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -4[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*8]
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -4[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR 4[rax+rdx*8]
	mov	DWORD PTR -4[rbp], eax
.L54:
	cmp	DWORD PTR -4[rbp], 0
	jne	.L55
	mov	edi, 10
	call	putchar@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	print_list_002, .-print_list_002
	.globl	add_different_delete_same
	.type	add_different_delete_same, @function
add_different_delete_same:
.LFB17:
	.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	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR -12[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -28[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR 4[rax+rdx*8]
	mov	DWORD PTR -8[rbp], eax
	jmp	.L57
.L60:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -8[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*8]
	cmp	DWORD PTR -32[rbp], eax
	jne	.L58
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -8[rbp]
	movsx	rdx, edx
	mov	ecx, DWORD PTR 4[rax+rdx*8]
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -12[rbp]
	movsx	rdx, edx
	mov	DWORD PTR 4[rax+rdx*8], ecx
	mov	edx, DWORD PTR -8[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	free_space
	jmp	.L56
.L58:
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR -12[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -8[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR 4[rax+rdx*8]
	mov	DWORD PTR -8[rbp], eax
.L57:
	cmp	DWORD PTR -8[rbp], 0
	jne	.L60
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	alloc_space
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -4[rbp]
	movsx	rdx, edx
	mov	ecx, DWORD PTR -32[rbp]
	mov	DWORD PTR [rax+rdx*8], ecx
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -4[rbp]
	movsx	rdx, edx
	mov	DWORD PTR 4[rax+rdx*8], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -12[rbp]
	movsx	rdx, edx
	mov	ecx, DWORD PTR -4[rbp]
	mov	DWORD PTR 4[rax+rdx*8], ecx
.L56:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	add_different_delete_same, .-add_different_delete_same
	.section	.rodata
.LC14:
	.string	"\nHow many elements in list A:"
.LC15:
	.string	"\nHow many elements in list B:"
.LC16:
	.string	"\n(A-B)U(B-A):"
	.text
	.globl	difference
	.type	difference, @function
difference:
.LFB18:
	.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 -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -16[rbp], 0
	jmp	.L62
.L63:
	mov	eax, DWORD PTR -16[rbp]
	lea	ecx, 1[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR -16[rbp]
	movsx	rdx, edx
	mov	DWORD PTR 4[rax+rdx*8], ecx
	add	DWORD PTR -16[rbp], 1
.L62:
	cmp	DWORD PTR -16[rbp], 998
	jle	.L63
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR 7996[rax], 0
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	scanf_s@PLT
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	alloc_space
	mov	rdx, QWORD PTR -48[rbp]
	mov	DWORD PTR [rdx], eax
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	movsx	rdx, edx
	mov	DWORD PTR 4[rax+rdx*8], 0
	mov	DWORD PTR -16[rbp], 0
	jmp	.L64
.L65:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	alloc_space
	mov	DWORD PTR -12[rbp], eax
	lea	rax, -20[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	scanf_s@PLT
	mov	ecx, DWORD PTR -20[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR -12[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*8], ecx
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	movsx	rdx, edx
	mov	ecx, DWORD PTR 4[rax+rdx*8]
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR -12[rbp]
	movsx	rdx, edx
	mov	DWORD PTR 4[rax+rdx*8], ecx
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	movsx	rdx, edx
	mov	ecx, DWORD PTR -12[rbp]
	mov	DWORD PTR 4[rax+rdx*8], ecx
	add	DWORD PTR -16[rbp], 1
.L64:
	mov	eax, DWORD PTR -24[rbp]
	cmp	DWORD PTR -16[rbp], eax
	jl	.L65
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	print_list_002
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	scanf_s@PLT
	mov	DWORD PTR -16[rbp], 0
	jmp	.L66
.L67:
	lea	rax, -20[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	scanf_s@PLT
	mov	edx, DWORD PTR -20[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	ecx, DWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	add_different_delete_same
	add	DWORD PTR -16[rbp], 1
.L66:
	mov	eax, DWORD PTR -24[rbp]
	cmp	DWORD PTR -16[rbp], eax
	jl	.L67
	lea	rdi, .LC16[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	print_list_002
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L68
	call	__stack_chk_fail@PLT
.L68:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	difference, .-difference
	.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	"249724.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012How many elements:\000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"\012Enter position,element to insert:\000"
	.align	2
.LC3:
	.ascii	"%d%d\000"
	.align	2
.LC4:
	.ascii	"\012Continue?(y/n):\000"
	.align	2
.LC5:
	.ascii	"\012Enter the position (delete):\000"
	.align	2
.LC6:
	.ascii	"\012The deleted element:%d\000"
	.align	2
.LC7:
	.ascii	"\012Enter the element to locate:\000"
	.align	2
.LC8:
	.ascii	"\012The position of the element %d: %d\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8024
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #8000
	sub	sp, sp, #28
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r0, .L10+4
	bl	printf
	sub	r3, fp, #8000
	sub	r3, r3, #12
	sub	r3, r3, #24
	mov	r1, r3
	ldr	r0, .L10+8
	bl	scanf_s
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-3928]
	sub	r3, fp, #8000
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	create_list
	sub	r3, fp, #8000
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	print_list
.L3:
	ldr	r0, .L10+12
	bl	printf
	sub	r2, fp, #8000
	sub	r2, r2, #12
	sub	r2, r2, #12
	sub	r3, fp, #8000
	sub	r3, r3, #12
	sub	r3, r3, #20
	mov	r1, r3
	ldr	r0, .L10+16
	bl	scanf_s
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, [r3, #-3924]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-3916]
	sub	r3, fp, #8000
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	insert_element
	sub	r3, fp, #8000
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	print_list
	ldr	r0, .L10+20
	bl	printf
	nop
.L2:
	bl	getchar
	mov	r3, r0
	cmp	r3, #10
	bne	.L2
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	bl	getchar
	str	r0, [r4, #-3912]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3912]
	cmp	r3, #121
	beq	.L3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3912]
	cmp	r3, #89
	beq	.L3
.L5:
	ldr	r0, .L10+24
	bl	printf
	sub	r3, fp, #8000
	sub	r3, r3, #12
	sub	r3, r3, #20
	mov	r1, r3
	ldr	r0, .L10+8
	bl	scanf_s
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, [r3, #-3924]
	sub	r2, fp, #8000
	sub	r2, r2, #12
	sub	r2, r2, #12
	sub	r3, fp, #8000
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	delete_element
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3916]
	mov	r1, r3
	ldr	r0, .L10+28
	bl	printf
	sub	r3, fp, #8000
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	print_list
	ldr	r0, .L10+20
	bl	printf
	nop
.L4:
	bl	getchar
	mov	r3, r0
	cmp	r3, #10
	bne	.L4
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	bl	getchar
	str	r0, [r4, #-3912]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3912]
	cmp	r3, #121
	beq	.L5
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3912]
	cmp	r3, #89
	beq	.L5
.L7:
	ldr	r0, .L10+32
	bl	printf
	sub	r3, fp, #8000
	sub	r3, r3, #12
	sub	r3, r3, #12
	mov	r1, r3
	ldr	r0, .L10+8
	bl	scanf_s
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-3916]
	sub	r3, fp, #8000
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	locate_elem
	mov	r3, r0
	sub	r2, fp, #4096
	sub	r2, r2, #12
	str	r3, [r2, #-3924]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3916]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-3924]
	mov	r1, r3
	ldr	r0, .L10+36
	bl	printf
	ldr	r0, .L10+20
	bl	printf
	nop
.L6:
	bl	getchar
	mov	r3, r0
	cmp	r3, #10
	bne	.L6
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	bl	getchar
	str	r0, [r4, #-3912]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3912]
	cmp	r3, #121
	beq	.L7
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-3912]
	cmp	r3, #89
	beq	.L7
	sub	r2, fp, #8000
	sub	r2, r2, #12
	sub	r2, r2, #16
	sub	r3, fp, #8000
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	difference
	mov	r3, #0
	ldr	r2, .L10
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC9
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	main, .-main
	.section	.rodata
	.align	2
.LC10:
	.ascii	"\012Enter %d elements:\012\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	create_list
	.syntax unified
	.arm
	.fpu softvfp
	.type	create_list, %function
create_list:
	@ 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, #-24]
	str	r1, [fp, #-28]
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, [fp, #-24]
	bl	init_list
	ldr	r1, [fp, #-28]
	ldr	r0, .L16+4
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L13
.L14:
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, .L16+8
	bl	scanf_s
	ldr	r3, [fp, #-16]
	mov	r2, r3
	mov	r1, #1
	ldr	r0, [fp, #-24]
	bl	insert_element
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L13:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L14
	nop
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC11
	.word	.LC10
	.word	.LC1
	.size	create_list, .-create_list
	.align	2
	.global	init_list
	.syntax unified
	.arm
	.fpu softvfp
	.type	init_list, %function
init_list:
	@ 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]
	ldr	r3, [fp, #-16]
	mov	r2, #2
	str	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	mov	r2, #1
	str	r2, [r3, #12]
	mov	r3, #2
	str	r3, [fp, #-8]
	b	.L19
.L20:
	ldr	r3, [fp, #-8]
	add	r2, r3, #1
	ldr	r1, [fp, #-16]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #3
	add	r3, r1, r3
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L19:
	ldr	r3, [fp, #-8]
	ldr	r2, .L21
	cmp	r3, r2
	ble	.L20
	ldr	r3, [fp, #-16]
	add	r3, r3, #4096
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #3900]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L22:
	.align	2
.L21:
	.word	998
	.size	init_list, .-init_list
	.section	.rodata
	.align	2
.LC12:
	.ascii	"\012====the list========\000"
	.align	2
.LC13:
	.ascii	"%d, \000"
	.text
	.align	2
	.global	print_list
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_list, %function
print_list:
	@ 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	r0, .L26
	bl	puts
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-8]
	b	.L24
.L25:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	ldr	r3, [r3, r2, lsl #3]
	mov	r1, r3
	ldr	r0, .L26+4
	bl	printf
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	str	r3, [fp, #-8]
.L24:
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	bne	.L25
	mov	r0, #10
	bl	putchar
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	.LC12
	.word	.LC13
	.size	print_list, .-print_list
	.section	.rodata
	.align	2
.LC14:
	.ascii	"not enough space!!!\000"
	.text
	.align	2
	.global	alloc_space
	.syntax unified
	.arm
	.fpu softvfp
	.type	alloc_space, %function
alloc_space:
	@ 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, #4]
	cmp	r3, #0
	bne	.L29
	ldr	r0, .L31
	bl	puts
	mov	r0, #2
	bl	exit
.L29:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L32:
	.align	2
.L31:
	.word	.LC14
	.size	alloc_space, .-alloc_space
	.align	2
	.global	free_space
	.syntax unified
	.arm
	.fpu softvfp
	.type	free_space, %function
free_space:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #4]
	ldr	r1, [fp, #-8]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #3
	add	r3, r1, r3
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	str	r2, [r3, #4]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	free_space, .-free_space
	.align	2
	.global	insert_element
	.syntax unified
	.arm
	.fpu softvfp
	.type	insert_element, %function
insert_element:
	@ 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	r3, #1
	str	r3, [fp, #-20]
	mov	r3, #1
	str	r3, [fp, #-16]
	b	.L35
.L37:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-16]
.L35:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	bge	.L36
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #1
	bne	.L37
.L36:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	bne	.L39
	ldr	r0, [fp, #-24]
	bl	alloc_space
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-32]
	str	r1, [r3, r2, lsl #3]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r2, [r3, #4]
	ldr	r1, [fp, #-24]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #3
	add	r3, r1, r3
	str	r2, [r3, #4]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	str	r2, [r3, #4]
.L39:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	insert_element, .-insert_element
	.align	2
	.global	delete_element
	.syntax unified
	.arm
	.fpu softvfp
	.type	delete_element, %function
delete_element:
	@ 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	r3, #1
	str	r3, [fp, #-20]
	mov	r3, #1
	str	r3, [fp, #-16]
	b	.L41
.L43:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-16]
.L41:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	bge	.L42
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #1
	bne	.L43
.L42:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	bne	.L44
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	cmp	r3, #1
	beq	.L44
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r2, [r3, #4]
	ldr	r1, [fp, #-24]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #3
	add	r3, r1, r3
	str	r2, [r3, #4]
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-8]
	ldr	r2, [r3, r2, lsl #3]
	ldr	r3, [fp, #-32]
	str	r2, [r3]
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-24]
	bl	free_space
	b	.L45
.L44:
	ldr	r3, [fp, #-32]
	mov	r2, #0
	str	r2, [r3]
	nop
.L45:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	delete_element, .-delete_element
	.align	2
	.global	locate_elem
	.syntax unified
	.arm
	.fpu softvfp
	.type	locate_elem, %function
locate_elem:
	@ 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]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-12]
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L47
.L50:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	ldr	r3, [r3, r2, lsl #3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	beq	.L53
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L47:
	ldr	r3, [fp, #-12]
	cmp	r3, #1
	bne	.L50
	b	.L49
.L53:
	nop
.L49:
	ldr	r3, [fp, #-12]
	cmp	r3, #1
	bne	.L51
	mvn	r3, #0
	b	.L52
.L51:
	ldr	r3, [fp, #-8]
.L52:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	locate_elem, .-locate_elem
	.align	2
	.global	get_elem_cursor
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_elem_cursor, %function
get_elem_cursor:
	@ 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]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-8]
	b	.L55
.L58:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	ldr	r3, [r3, r2, lsl #3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	beq	.L62
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	str	r3, [fp, #-8]
.L55:
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	bne	.L58
	b	.L57
.L62:
	nop
.L57:
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	beq	.L59
	ldr	r3, [fp, #-8]
	b	.L61
.L59:
	mvn	r3, #0
.L61:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	get_elem_cursor, .-get_elem_cursor
	.section	.rodata
	.align	2
.LC15:
	.ascii	"\012=====the list=======\000"
	.text
	.align	2
	.global	print_list_002
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_list_002, %function
print_list_002:
	@ 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]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	str	r3, [fp, #-8]
	ldr	r0, .L66
	bl	puts
	b	.L64
.L65:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	ldr	r3, [r3, r2, lsl #3]
	mov	r1, r3
	ldr	r0, .L66+4
	bl	printf
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	str	r3, [fp, #-8]
.L64:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L65
	mov	r0, #10
	bl	putchar
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L67:
	.align	2
.L66:
	.word	.LC15
	.word	.LC13
	.size	print_list_002, .-print_list_002
	.align	2
	.global	add_different_delete_same
	.syntax unified
	.arm
	.fpu softvfp
	.type	add_different_delete_same, %function
add_different_delete_same:
	@ 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]
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-16]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	str	r3, [fp, #-12]
	b	.L69
.L72:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-12]
	ldr	r3, [r3, r2, lsl #3]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	bne	.L70
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r2, [r3, #4]
	ldr	r1, [fp, #-24]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #3
	add	r3, r1, r3
	str	r2, [r3, #4]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-24]
	bl	free_space
	b	.L68
.L70:
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-16]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	str	r3, [fp, #-12]
.L69:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L72
	ldr	r0, [fp, #-24]
	bl	alloc_space
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-32]
	str	r1, [r3, r2, lsl #3]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #3
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	str	r2, [r3, #4]
.L68:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	add_different_delete_same, .-add_different_delete_same
	.section	.rodata
	.align	2
.LC16:
	.ascii	"\012How many elements in list A:\000"
	.align	2
.LC17:
	.ascii	"\012How many elements in list B:\000"
	.align	2
.LC18:
	.ascii	"\012(A-B)U(B-A):\000"
	.align	2
.LC19:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	difference
	.syntax unified
	.arm
	.fpu softvfp
	.type	difference, %function
difference:
	@ 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, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L81
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L74
.L75:
	ldr	r3, [fp, #-16]
	add	r2, r3, #1
	ldr	r1, [fp, #-32]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #3
	add	r3, r1, r3
	str	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L74:
	ldr	r3, [fp, #-16]
	ldr	r2, .L81+4
	cmp	r3, r2
	ble	.L75
	ldr	r3, [fp, #-32]
	add	r3, r3, #4096
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #3900]
	ldr	r0, .L81+8
	bl	printf
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, .L81+12
	bl	scanf_s
	ldr	r3, [fp, #-24]
	mov	r1, r3
	ldr	r0, .L81+16
	bl	printf
	ldr	r0, [fp, #-32]
	bl	alloc_space
	mov	r2, r0
	ldr	r3, [fp, #-36]
	str	r2, [r3]
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	lsl	r3, r3, #3
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #4]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L76
.L77:
	ldr	r0, [fp, #-32]
	bl	alloc_space
	str	r0, [fp, #-12]
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L81+12
	bl	scanf_s
	ldr	r1, [fp, #-20]
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-12]
	str	r1, [r3, r2, lsl #3]
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r2, [r3, #4]
	ldr	r1, [fp, #-32]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #3
	add	r3, r1, r3
	str	r2, [r3, #4]
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r2, [fp, #-12]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L76:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L77
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	print_list_002
	ldr	r0, .L81+20
	bl	printf
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, .L81+12
	bl	scanf_s
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L78
.L79:
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L81+12
	bl	scanf_s
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	add_different_delete_same
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L78:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L79
	ldr	r0, .L81+24
	bl	puts
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	print_list_002
	nop
	ldr	r3, .L81
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L80
	bl	__stack_chk_fail
.L80:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L82:
	.align	2
.L81:
	.word	.LC19
	.word	998
	.word	.LC16
	.word	.LC1
	.word	.LC10
	.word	.LC17
	.word	.LC18
	.size	difference, .-difference
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
