	.file	"766992.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC5:
	.string	"memcpy() used:"
.LC6:
	.string	"values (original data): "
.LC7:
	.string	"target (copy of values):"
	.align 8
.LC8:
	.string	"\nUsing memmove() with overlapping ranges:"
	.align 8
.LC9:
	.string	"values -- elements 0-5 copied to 2-7:"
	.align 8
.LC10:
	.string	"\nUsing memcpy() to copy double to int:"
	.align 8
.LC11:
	.string	"target -- 5 doubles into 10 int positions:"
	.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, 144
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -144[rbp], 1
	mov	DWORD PTR -140[rbp], 2
	mov	DWORD PTR -136[rbp], 3
	mov	DWORD PTR -132[rbp], 4
	mov	DWORD PTR -128[rbp], 5
	mov	DWORD PTR -124[rbp], 6
	mov	DWORD PTR -120[rbp], 7
	mov	DWORD PTR -116[rbp], 8
	mov	DWORD PTR -112[rbp], 9
	mov	DWORD PTR -108[rbp], 10
	movsd	xmm0, QWORD PTR .LC0[rip]
	movsd	QWORD PTR -48[rbp], xmm0
	movsd	xmm0, QWORD PTR .LC1[rip]
	movsd	QWORD PTR -40[rbp], xmm0
	movsd	xmm0, QWORD PTR .LC2[rip]
	movsd	QWORD PTR -32[rbp], xmm0
	movsd	xmm0, QWORD PTR .LC3[rip]
	movsd	QWORD PTR -24[rbp], xmm0
	movsd	xmm0, QWORD PTR .LC4[rip]
	movsd	QWORD PTR -16[rbp], xmm0
	lea	rdi, .LC5[rip]
	call	puts@PLT
	lea	rdi, .LC6[rip]
	call	puts@PLT
	lea	rax, -144[rbp]
	mov	esi, 10
	mov	rdi, rax
	call	show_array
	mov	rax, QWORD PTR -144[rbp]
	mov	rdx, QWORD PTR -136[rbp]
	mov	QWORD PTR -96[rbp], rax
	mov	QWORD PTR -88[rbp], rdx
	mov	rax, QWORD PTR -128[rbp]
	mov	rdx, QWORD PTR -120[rbp]
	mov	QWORD PTR -80[rbp], rax
	mov	QWORD PTR -72[rbp], rdx
	mov	rax, QWORD PTR -112[rbp]
	mov	QWORD PTR -64[rbp], rax
	lea	rdi, .LC7[rip]
	call	puts@PLT
	lea	rax, -96[rbp]
	mov	esi, 10
	mov	rdi, rax
	call	show_array
	lea	rdi, .LC8[rip]
	call	puts@PLT
	lea	rax, -144[rbp]
	add	rax, 8
	lea	rcx, -144[rbp]
	mov	edx, 20
	mov	rsi, rcx
	mov	rdi, rax
	call	memmove@PLT
	lea	rdi, .LC9[rip]
	call	puts@PLT
	lea	rax, -144[rbp]
	mov	esi, 10
	mov	rdi, rax
	call	show_array
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	QWORD PTR -96[rbp], rax
	mov	QWORD PTR -88[rbp], rdx
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR -80[rbp], rax
	mov	QWORD PTR -72[rbp], rdx
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR -64[rbp], rax
	lea	rdi, .LC11[rip]
	call	puts@PLT
	lea	rax, -96[rbp]
	mov	esi, 10
	mov	rdi, rax
	call	show_array
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, 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
.LC12:
	.string	"%d "
	.text
	.globl	show_array
	.type	show_array, @function
show_array:
.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	DWORD PTR -4[rbp], 0
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L5:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L6
	mov	edi, 10
	call	putchar@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	show_array, .-show_array
	.section	.rodata
	.align 8
.LC0:
	.long	0
	.long	1072693248
	.align 8
.LC1:
	.long	0
	.long	1073741824
	.align 8
.LC2:
	.long	0
	.long	1074266112
	.align 8
.LC3:
	.long	0
	.long	1074790400
	.align 8
.LC4:
	.long	0
	.long	1075052544
	.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	"766992.c"
	.text
	.section	.rodata
	.align	2
.LC2:
	.ascii	"memcpy() used:\000"
	.align	2
.LC3:
	.ascii	"values (original data): \000"
	.align	2
.LC4:
	.ascii	"target (copy of values):\000"
	.align	2
.LC5:
	.ascii	"\012Using memmove() with overlapping ranges:\000"
	.align	2
.LC6:
	.ascii	"values -- elements 0-5 copied to 2-7:\000"
	.align	2
.LC7:
	.ascii	"\012Using memcpy() to copy double to int:\000"
	.align	2
.LC8:
	.ascii	"target -- 5 doubles into 10 int positions:\000"
	.align	2
.LC0:
	.word	1
	.word	2
	.word	3
	.word	4
	.word	5
	.word	6
	.word	7
	.word	8
	.word	9
	.word	10
	.align	3
.LC1:
	.word	0
	.word	1072693248
	.word	0
	.word	1073741824
	.word	0
	.word	1074266112
	.word	0
	.word	1074790400
	.word	0
	.word	1075052544
	.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 = 128
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #128
	ldr	r3, .L4
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L4+4
	sub	ip, fp, #88
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1}
	stm	ip, {r0, r1}
	ldr	r3, .L4+8
	sub	ip, fp, #132
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1}
	stm	ip, {r0, r1}
	ldr	r0, .L4+12
	bl	puts
	ldr	r0, .L4+16
	bl	puts
	sub	r3, fp, #88
	mov	r1, #10
	mov	r0, r3
	bl	show_array
	sub	ip, fp, #48
	sub	lr, fp, #88
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1}
	stm	ip, {r0, r1}
	ldr	r0, .L4+20
	bl	puts
	sub	r3, fp, #48
	mov	r1, #10
	mov	r0, r3
	bl	show_array
	ldr	r0, .L4+24
	bl	puts
	sub	r3, fp, #88
	add	r3, r3, #8
	sub	r1, fp, #88
	mov	r2, #20
	mov	r0, r3
	bl	memmove
	ldr	r0, .L4+28
	bl	puts
	sub	r3, fp, #88
	mov	r1, #10
	mov	r0, r3
	bl	show_array
	ldr	r0, .L4+32
	bl	puts
	sub	ip, fp, #48
	sub	lr, fp, #132
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1}
	stm	ip, {r0, r1}
	ldr	r0, .L4+36
	bl	puts
	sub	r3, fp, #48
	mov	r1, #10
	mov	r0, r3
	bl	show_array
	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	.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	"%d \000"
	.text
	.align	2
	.global	show_array
	.syntax unified
	.arm
	.fpu softvfp
	.type	show_array, %function
show_array:
	@ 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	r3, #0
	str	r3, [fp, #-8]
	b	.L7
.L8:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L9
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L7:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L8
	mov	r0, #10
	bl	putchar
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC10
	.size	show_array, .-show_array
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
