	.file	"extr_string.c_test_memmove_s.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Moving a buffer into a big enough destination returned %d, expected 0\n"
	.align 8
.LC1:
	.string	"Moving a buffer up one char returned %d, expected 0\n"
	.align 8
.LC2:
	.string	"Moving a big buffer to a small destination returned %d, expected ERANGE\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC3:
	.string	"errno is %d, expected ERANGE\n"
	.section	.rodata.str1.8
	.align 8
.LC4:
	.string	"Moving a NULL source buffer returned %d, expected EINVAL\n"
	.section	.rodata.str1.1
.LC5:
	.string	"errno is %d, expected EINVAL\n"
	.section	.rodata.str1.8
	.align 8
.LC6:
	.string	"Moving into a destination of size 0 returned %d, expected ERANGE\n"
	.align 8
.LC7:
	.string	"Moving a tiny buffer to a big NULL destination returned %d, expected EINVAL\n"
	.align 8
.LC8:
	.string	"Moving a NULL buffer into a destination of size 0 returned %d, expected EINVAL\n"
	.text
	.p2align 4
	.type	test_memmove_s, @function
test_memmove_s:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	edx, 8
	mov	esi, 88
	lea	rdi, dest.1953[rip]
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	memset@PLT
	lea	rdi, tiny.1954[rip]
	call	ARRAY_SIZE@PLT
	lea	rdi, dest.1953[rip]
	mov	r12, rax
	call	ARRAY_SIZE@PLT
	mov	rcx, r12
	lea	rdx, tiny.1954[rip]
	lea	rdi, dest.1953[rip]
	mov	rsi, rax
	call	p_memmove_s@PLT
	xor	edi, edi
	lea	rsi, .LC0[rip]
	test	eax, eax
	mov	edx, eax
	sete	dil
	call	ok@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 40
	mov	ecx, 73
	xor	edx, edx
	push	88
	.cfi_def_cfa_offset 48
	mov	r9d, 89
	mov	r8d, 78
	mov	esi, 84
	push	88
	.cfi_def_cfa_offset 56
	lea	rdi, dest.1953[rip]
	push	0
	.cfi_def_cfa_offset 64
	call	okchars@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 32
	mov	edx, 8
	lea	rsi, big.1955[rip]
	lea	rdi, dest.1953[rip]
	call	memcpy@PLT
	lea	rdi, dest.1953[rip]
	call	ARRAY_SIZE@PLT
	lea	rdi, dest.1953[rip]
	mov	rbx, rax
	call	ARRAY_SIZE@PLT
	lea	rdx, dest.1953[rip]
	lea	rcx, -1[rbx]
	lea	rdi, 1[rdx]
	lea	rsi, -1[rax]
	call	p_memmove_s@PLT
	xor	edi, edi
	lea	rsi, .LC1[rip]
	test	eax, eax
	mov	edx, eax
	sete	dil
	call	ok@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 40
	mov	r9d, 111
	mov	r8d, 111
	push	110
	.cfi_def_cfa_offset 48
	mov	ecx, 116
	mov	edx, 97
	mov	esi, 97
	push	111
	.cfi_def_cfa_offset 56
	lea	rdi, dest.1953[rip]
	push	108
	.cfi_def_cfa_offset 64
	call	okchars@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 32
	mov	edx, 8
	mov	esi, 88
	lea	rdi, dest.1953[rip]
	mov	DWORD PTR errno[rip], -559038737
	call	memset@PLT
	lea	rdi, big.1955[rip]
	call	ARRAY_SIZE@PLT
	lea	rdi, dest.1953[rip]
	mov	r12, rax
	call	ARRAY_SIZE@PLT
	mov	rcx, r12
	lea	rdx, big.1955[rip]
	lea	rdi, dest.1953[rip]
	mov	rsi, rax
	call	p_memmove_s@PLT
	xor	edi, edi
	cmp	DWORD PTR ERANGE[rip], eax
	lea	rsi, .LC2[rip]
	sete	dil
	mov	edx, eax
	call	ok@PLT
	mov	edx, DWORD PTR errno[rip]
	xor	edi, edi
	cmp	DWORD PTR ERANGE[rip], edx
	sete	dil
	lea	rsi, .LC3[rip]
	call	ok@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 40
	mov	r9d, 88
	mov	r8d, 88
	push	88
	.cfi_def_cfa_offset 48
	mov	ecx, 88
	mov	edx, 88
	mov	esi, 88
	push	88
	.cfi_def_cfa_offset 56
	lea	rdi, dest.1953[rip]
	push	88
	.cfi_def_cfa_offset 64
	call	okchars@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 32
	mov	edx, 8
	mov	esi, 88
	lea	rdi, dest.1953[rip]
	mov	DWORD PTR errno[rip], -559038737
	call	memset@PLT
	lea	rdi, tiny.1954[rip]
	call	ARRAY_SIZE@PLT
	lea	rdi, dest.1953[rip]
	mov	r12, rax
	call	ARRAY_SIZE@PLT
	mov	rcx, r12
	xor	edx, edx
	lea	rdi, dest.1953[rip]
	mov	rsi, rax
	call	p_memmove_s@PLT
	xor	edi, edi
	cmp	DWORD PTR EINVAL[rip], eax
	lea	rsi, .LC4[rip]
	sete	dil
	mov	edx, eax
	call	ok@PLT
	mov	edx, DWORD PTR errno[rip]
	xor	edi, edi
	cmp	DWORD PTR EINVAL[rip], edx
	sete	dil
	lea	rsi, .LC5[rip]
	call	ok@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 40
	mov	r9d, 88
	mov	r8d, 88
	push	88
	.cfi_def_cfa_offset 48
	mov	ecx, 88
	mov	edx, 88
	mov	esi, 88
	push	88
	.cfi_def_cfa_offset 56
	lea	rdi, dest.1953[rip]
	push	88
	.cfi_def_cfa_offset 64
	call	okchars@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 32
	mov	edx, 8
	mov	esi, 88
	lea	rdi, dest.1953[rip]
	mov	DWORD PTR errno[rip], -559038737
	call	memset@PLT
	lea	rdi, tiny.1954[rip]
	call	ARRAY_SIZE@PLT
	xor	esi, esi
	lea	rdx, tiny.1954[rip]
	lea	rdi, dest.1953[rip]
	mov	rcx, rax
	call	p_memmove_s@PLT
	xor	edi, edi
	cmp	DWORD PTR ERANGE[rip], eax
	lea	rsi, .LC6[rip]
	sete	dil
	mov	edx, eax
	call	ok@PLT
	mov	edx, DWORD PTR errno[rip]
	xor	edi, edi
	cmp	DWORD PTR ERANGE[rip], edx
	sete	dil
	lea	rsi, .LC3[rip]
	call	ok@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 40
	mov	r9d, 88
	mov	r8d, 88
	push	88
	.cfi_def_cfa_offset 48
	mov	ecx, 88
	mov	edx, 88
	mov	esi, 88
	push	88
	.cfi_def_cfa_offset 56
	lea	rdi, dest.1953[rip]
	push	88
	.cfi_def_cfa_offset 64
	call	okchars@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 32
	lea	rdi, tiny.1954[rip]
	mov	DWORD PTR errno[rip], -559038737
	call	ARRAY_SIZE@PLT
	lea	rdi, dest.1953[rip]
	mov	r12, rax
	call	ARRAY_SIZE@PLT
	mov	rcx, r12
	xor	edi, edi
	lea	rdx, tiny.1954[rip]
	mov	rsi, rax
	call	p_memmove_s@PLT
	xor	edi, edi
	cmp	DWORD PTR EINVAL[rip], eax
	lea	rsi, .LC7[rip]
	sete	dil
	mov	edx, eax
	call	ok@PLT
	mov	edx, DWORD PTR errno[rip]
	xor	edi, edi
	cmp	DWORD PTR EINVAL[rip], edx
	sete	dil
	lea	rsi, .LC5[rip]
	call	ok@PLT
	mov	edx, 8
	mov	esi, 88
	lea	rdi, dest.1953[rip]
	mov	DWORD PTR errno[rip], -559038737
	call	memset@PLT
	lea	rdi, tiny.1954[rip]
	call	ARRAY_SIZE@PLT
	xor	edx, edx
	xor	esi, esi
	lea	rdi, dest.1953[rip]
	mov	rcx, rax
	call	p_memmove_s@PLT
	xor	edi, edi
	cmp	DWORD PTR EINVAL[rip], eax
	lea	rsi, .LC8[rip]
	sete	dil
	mov	edx, eax
	call	ok@PLT
	mov	edx, DWORD PTR errno[rip]
	xor	edi, edi
	cmp	DWORD PTR EINVAL[rip], edx
	sete	dil
	lea	rsi, .LC5[rip]
	call	ok@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 40
	mov	r9d, 88
	mov	r8d, 88
	push	88
	.cfi_def_cfa_offset 48
	mov	ecx, 88
	mov	edx, 88
	mov	esi, 88
	push	88
	.cfi_def_cfa_offset 56
	lea	rdi, dest.1953[rip]
	push	88
	.cfi_def_cfa_offset 64
	call	okchars@PLT
	add	rsp, 40
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	test_memmove_s, .-test_memmove_s
	.section	.rodata
	.align 8
	.type	big.1955, @object
	.size	big.1955, 15
big.1955:
	.string	"atoolongstring"
	.type	tiny.1954, @object
	.size	tiny.1954, 6
tiny.1954:
	.string	"T"
	.string	"INY"
	.local	dest.1953
	.comm	dest.1953,8,8
	.comm	errno,4,4
	.comm	ERANGE,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_string.c_test_memmove_s.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Moving a buffer into a big enough destination retur"
	.ascii	"ned %d, expected 0\012\000"
	.align	2
.LC1:
	.ascii	"Moving a buffer up one char returned %d, expected 0"
	.ascii	"\012\000"
	.align	2
.LC2:
	.ascii	"Moving a big buffer to a small destination returned"
	.ascii	" %d, expected ERANGE\012\000"
	.align	2
.LC3:
	.ascii	"errno is %d, expected ERANGE\012\000"
	.align	2
.LC4:
	.ascii	"Moving a NULL source buffer returned %d, expected E"
	.ascii	"INVAL\012\000"
	.align	2
.LC5:
	.ascii	"errno is %d, expected EINVAL\012\000"
	.align	2
.LC6:
	.ascii	"Moving into a destination of size 0 returned %d, ex"
	.ascii	"pected ERANGE\012\000"
	.align	2
.LC7:
	.ascii	"Moving a tiny buffer to a big NULL destination retu"
	.ascii	"rned %d, expected EINVAL\012\000"
	.align	2
.LC8:
	.ascii	"Moving a NULL buffer into a destination of size 0 r"
	.ascii	"eturned %d, expected EINVAL\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_memmove_s, %function
test_memmove_s:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r5, .L4
	sub	sp, sp, #28
	mov	r2, #8
	mov	r1, #88
	mov	r0, r5
	bl	memset
	mov	r0, r5
	bl	ARRAY_SIZE
	ldr	r7, .L4+4
	mov	r4, r0
	mov	r0, r7
	bl	ARRAY_SIZE
	mov	r2, r7
	mov	r3, r0
	mov	r1, r4
	mov	r0, r5
	bl	p_memmove_s
	mov	r2, r0
	clz	r0, r0
	ldr	r1, .L4+8
	lsr	r0, r0, #5
	mov	r4, #88
	bl	ok
	mov	r9, #0
	mov	r1, #89
	mov	r3, #78
	mov	r2, r9
	add	r8, r7, #8
	str	r1, [sp, #4]
	str	r3, [sp]
	mov	r0, r5
	mov	r3, #73
	mov	r1, #84
	str	r4, [sp, #16]
	str	r4, [sp, #12]
	str	r9, [sp, #8]
	bl	okchars
	ldm	r8, {r0, r1}
	stm	r5, {r0, r1}
	mov	r0, r5
	bl	ARRAY_SIZE
	mov	r6, r0
	mov	r0, r5
	bl	ARRAY_SIZE
	mov	r2, r5
	sub	r3, r0, #1
	sub	r1, r6, #1
	add	r0, r5, #1
	bl	p_memmove_s
	mov	r2, r0
	clz	r0, r0
	ldr	r1, .L4+12
	lsr	r0, r0, #5
	bl	ok
	mov	ip, #110
	mov	r3, #111
	mov	r2, #97
	mov	r1, #108
	str	ip, [sp, #16]
	ldr	r6, .L4+16
	ldr	fp, .L4+20
	str	r3, [sp, #12]
	str	r3, [sp, #4]
	str	r3, [sp]
	str	r1, [sp, #8]
	mov	r3, #116
	mov	r1, r2
	mov	r0, r5
	bl	okchars
	mov	r1, r4
	mov	r2, #8
	mov	r0, r5
	str	fp, [r6]
	bl	memset
	mov	r0, r5
	bl	ARRAY_SIZE
	mov	r10, r0
	mov	r0, r8
	bl	ARRAY_SIZE
	mov	r2, r8
	mov	r3, r0
	mov	r1, r10
	mov	r0, r5
	bl	p_memmove_s
	mov	r2, r0
	ldr	r10, .L4+24
	ldr	r1, .L4+28
	ldr	r0, [r10]
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	ldr	r2, [r6]
	ldr	r0, [r10]
	ldr	r1, .L4+32
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	mov	r3, r4
	mov	r2, r4
	mov	r1, r4
	mov	r0, r5
	str	r4, [sp, #16]
	str	r4, [sp, #12]
	str	r4, [sp, #8]
	str	r4, [sp, #4]
	str	r4, [sp]
	bl	okchars
	mov	r1, r4
	mov	r2, #8
	mov	r0, r5
	str	fp, [r6]
	bl	memset
	mov	r0, r5
	bl	ARRAY_SIZE
	mov	r8, r0
	mov	r0, r7
	bl	ARRAY_SIZE
	mov	r2, r9
	mov	r3, r0
	mov	r1, r8
	mov	r0, r5
	bl	p_memmove_s
	mov	r2, r0
	ldr	r8, .L4+36
	ldr	r1, .L4+40
	ldr	r0, [r8]
	ldr	fp, .L4+44
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	ldr	r2, [r6]
	ldr	r0, [r8]
	mov	r1, fp
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	mov	r3, r4
	mov	r2, r4
	mov	r1, r4
	mov	r0, r5
	str	r4, [sp, #16]
	str	r4, [sp, #12]
	str	r4, [sp, #8]
	str	r4, [sp, #4]
	str	r4, [sp]
	bl	okchars
	ldr	r3, .L4+20
	mov	r1, r4
	mov	r2, #8
	mov	r0, r5
	str	r3, [r6]
	bl	memset
	mov	r0, r7
	bl	ARRAY_SIZE
	mov	r2, r7
	mov	r3, r0
	mov	r1, r9
	mov	r0, r5
	bl	p_memmove_s
	mov	r2, r0
	ldr	r0, [r10]
	ldr	r1, .L4+48
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	ldr	r2, [r6]
	ldr	r0, [r10]
	ldr	r1, .L4+32
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	mov	r2, r4
	mov	r1, r4
	mov	r3, r4
	mov	r0, r5
	str	r4, [sp, #16]
	str	r4, [sp, #12]
	str	r4, [sp, #8]
	str	r4, [sp, #4]
	str	r4, [sp]
	bl	okchars
	ldr	r3, .L4+20
	mov	r0, r5
	str	r3, [r6]
	bl	ARRAY_SIZE
	mov	r10, r0
	mov	r0, r7
	bl	ARRAY_SIZE
	mov	r2, r7
	mov	r3, r0
	mov	r1, r10
	mov	r0, r9
	bl	p_memmove_s
	mov	r2, r0
	ldr	r0, [r8]
	ldr	r1, .L4+52
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	ldr	r2, [r6]
	ldr	r0, [r8]
	mov	r1, fp
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	ldr	r3, .L4+20
	mov	r1, r4
	mov	r2, #8
	mov	r0, r5
	str	r3, [r6]
	bl	memset
	mov	r0, r7
	bl	ARRAY_SIZE
	mov	r2, r9
	mov	r3, r0
	mov	r1, r9
	mov	r0, r5
	bl	p_memmove_s
	mov	r2, r0
	ldr	r0, [r8]
	ldr	r1, .L4+56
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	ldr	r2, [r6]
	ldr	r0, [r8]
	mov	r1, fp
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	mov	r0, r5
	mov	r3, r4
	mov	r2, r4
	mov	r1, r4
	str	r4, [sp, #16]
	str	r4, [sp, #12]
	str	r4, [sp, #8]
	str	r4, [sp, #4]
	str	r4, [sp]
	bl	okchars
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L5:
	.align	2
.L4:
	.word	.LANCHOR0
	.word	.LANCHOR1
	.word	.LC0
	.word	.LC1
	.word	errno
	.word	-559038737
	.word	ERANGE
	.word	.LC2
	.word	.LC3
	.word	EINVAL
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	test_memmove_s, .-test_memmove_s
	.comm	errno,4,4
	.comm	ERANGE,4,4
	.comm	EINVAL,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR1,. + 0
	.type	tiny.4238, %object
	.size	tiny.4238, 6
tiny.4238:
	.ascii	"T\000INY\000"
	.space	2
	.type	big.4239, %object
	.size	big.4239, 15
big.4239:
	.ascii	"atoolongstring\000"
	.bss
	.align	2
	.set	.LANCHOR0,. + 0
	.type	dest.4237, %object
	.size	dest.4237, 8
dest.4237:
	.space	8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
