	.file	"extr_libtommath.h_mp_copy.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mp_copy, @function
mp_copy:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	rdi, rsi
	je	.L18
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	r8d, DWORD PTR 4[rdi]
	cmp	DWORD PTR [rsi], r8d
	jl	.L19
.L4:
	mov	rsi, QWORD PTR 16[rbp]
	mov	rdi, QWORD PTR 16[rbx]
	xor	eax, eax
	test	r8d, r8d
	jle	.L16
	.p2align 4,,10
	.p2align 3
.L6:
	movsd
	add	eax, 1
	cmp	DWORD PTR 4[rbp], eax
	jg	.L6
	cmp	DWORD PTR 4[rbx], eax
	jle	.L20
	.p2align 4,,10
	.p2align 3
.L7:
	mov	DWORD PTR [rdi], 0
	add	rdi, 4
	add	eax, 1
.L16:
	cmp	DWORD PTR 4[rbx], eax
	jg	.L7
.L20:
	mov	eax, DWORD PTR 4[rbp]
	mov	DWORD PTR 4[rbx], eax
	mov	eax, DWORD PTR 8[rbp]
	mov	DWORD PTR 8[rbx], eax
	mov	eax, DWORD PTR MP_OKAY[rip]
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	mov	esi, r8d
	mov	rdi, rbx
	call	mp_grow@PLT
	cmp	DWORD PTR MP_OKAY[rip], eax
	jne	.L1
	mov	r8d, DWORD PTR 4[rbp]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	mov	eax, DWORD PTR MP_OKAY[rip]
	ret
	.cfi_endproc
.LFE0:
	.size	mp_copy, .-mp_copy
	.comm	MP_OKAY,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_libtommath.h_mp_copy.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mp_copy, %function
mp_copy:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r0, r1
	beq	.L19
	push	{r4, r5, r6, lr}
	mov	r4, r1
	ldr	r1, [r0, #4]
	ldr	r3, [r4]
	mov	r5, r0
	cmp	r3, r1
	blt	.L14
	ldr	lr, .L20
.L4:
	cmp	r1, #0
	mov	r3, #0
	ldr	ip, [r5, #12]
	ldr	r2, [r4, #12]
	ble	.L5
	sub	ip, ip, #4
.L6:
	ldr	r1, [ip, #4]!
	add	r3, r3, #1
	str	r1, [r2], #4
	ldr	r1, [r5, #4]
	cmp	r1, r3
	bgt	.L6
.L5:
	ldr	r0, [r4, #4]
	cmp	r0, r3
	ble	.L8
	mov	r0, #0
.L7:
	str	r0, [r2], #4
	ldr	r1, [r4, #4]
	add	r3, r3, #1
	cmp	r1, r3
	bgt	.L7
	ldr	r1, [r5, #4]
.L8:
	ldr	r3, [r5, #8]
	ldr	r0, [lr]
	stmib	r4, {r1, r3}
	pop	{r4, r5, r6, pc}
.L14:
	mov	r0, r4
	bl	mp_grow
	ldr	lr, .L20
	ldr	r3, [lr]
	cmp	r3, r0
	popne	{r4, r5, r6, pc}
	ldr	r1, [r5, #4]
	b	.L4
.L19:
	ldr	r3, .L20
	ldr	r0, [r3]
	bx	lr
.L21:
	.align	2
.L20:
	.word	MP_OKAY
	.size	mp_copy, .-mp_copy
	.comm	MP_OKAY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
