	.file	"extr_libtommath.h_s_mp_add.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	s_mp_add, @function
s_mp_add:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rsi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	ebx, DWORD PTR [rdi]
	mov	r12d, DWORD PTR [rsi]
	cmp	ebx, r12d
	jg	.L2
	mov	eax, r12d
	mov	r13, rsi
	mov	r12d, ebx
	mov	ebx, eax
.L2:
	lea	edx, 1[rbx]
	cmp	DWORD PTR 4[rbp], ebx
	jle	.L3
.L7:
	mov	r11d, DWORD PTR 0[rbp]
	mov	rdi, QWORD PTR 8[r14]
	mov	DWORD PTR 0[rbp], edx
	xor	eax, eax
	mov	r10, QWORD PTR 8[r15]
	mov	r8, QWORD PTR 8[rbp]
	xor	r9d, r9d
	test	r12d, r12d
	jle	.L5
	lea	edx, -1[r12]
	mov	ecx, DWORD PTR DIGIT_BIT[rip]
	xor	esi, esi
	xor	r9d, r9d
	lea	r14, 1[rdx]
	.p2align 4,,10
	.p2align 3
.L8:
	mov	eax, DWORD PTR [r10+rsi*4]
	add	eax, DWORD PTR [rdi+rsi*4]
	add	eax, r9d
	mov	DWORD PTR [r8+rsi*4], eax
	mov	r9d, eax
	and	eax, DWORD PTR MP_MASK[rip]
	mov	DWORD PTR [r8+rsi*4], eax
	mov	rax, rsi
	sar	r9d, cl
	add	rsi, 1
	cmp	rax, rdx
	jne	.L8
	lea	r8, [r8+r14*4]
	movsx	rax, r12d
.L5:
	cmp	r12d, ebx
	je	.L9
	cmp	ebx, eax
	jle	.L9
	mov	rdx, QWORD PTR 8[r13]
	sub	ebx, 1
	mov	ecx, DWORD PTR DIGIT_BIT[rip]
	sub	ebx, eax
	lea	rsi, [rdx+rax*4]
	lea	rdi, 4[0+rbx*4]
	xor	eax, eax
	.p2align 4,,10
	.p2align 3
.L10:
	mov	edx, DWORD PTR [rsi+rax]
	add	edx, r9d
	mov	DWORD PTR [r8+rax], edx
	mov	r9d, edx
	and	edx, DWORD PTR MP_MASK[rip]
	mov	DWORD PTR [r8+rax], edx
	add	rax, 4
	sar	r9d, cl
	cmp	rax, rdi
	jne	.L10
	add	r8, rax
.L9:
	mov	DWORD PTR [r8], r9d
	mov	edx, DWORD PTR 0[rbp]
	lea	rax, 4[r8]
	cmp	r11d, edx
	jle	.L13
	sub	r11d, 1
	sub	r11d, edx
	lea	rdx, 8[r8+r11*4]
	.p2align 4,,10
	.p2align 3
.L12:
	add	rax, 4
	mov	DWORD PTR -4[rax], 0
	cmp	rdx, rax
	jne	.L12
.L13:
	mov	rdi, rbp
	call	mp_clamp@PLT
	mov	eax, DWORD PTR MP_OKAY[rip]
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	esi, edx
	mov	rdi, rbp
	mov	DWORD PTR 12[rsp], edx
	call	mp_grow@PLT
	cmp	DWORD PTR MP_OKAY[rip], eax
	jne	.L1
	mov	edx, DWORD PTR 12[rsp]
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	s_mp_add, .-s_mp_add
	.comm	MP_OKAY,4,4
	.comm	MP_MASK,4,4
	.comm	DIGIT_BIT,8,8
	.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_s_mp_add.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	s_mp_add, %function
s_mp_add:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r4, [r0]
	ldr	r7, [r1]
	sub	sp, sp, #12
	cmp	r4, r7
	movle	r3, r7
	movle	r7, r4
	movle	r4, r3
	ldr	r3, [r2, #4]
	strle	r1, [sp, #4]
	strgt	r0, [sp, #4]
	cmp	r3, r4
	mov	r5, r0
	mov	r6, r1
	mov	r8, r2
	add	r9, r4, #1
	ble	.L3
	ldr	r3, .L23
	str	r3, [sp]
.L7:
	mov	r0, #0
	cmp	r7, #0
	ldr	r5, [r5, #8]
	ldr	r6, [r6, #8]
	ldr	r10, [r8]
	movle	r3, r0
	ldr	ip, [r8, #8]
	str	r9, [r8]
	ble	.L5
	mov	lr, ip
	mov	r3, r0
	ldr	r2, .L23+4
	ldr	r9, .L23+8
	ldr	fp, [r2]
.L8:
	ldr	r2, [r5], #4
	ldr	r1, [r6], #4
	add	r0, r0, #1
	add	r2, r2, r1
	add	r3, r2, r3
	str	r3, [lr]
	ldr	r2, [r9]
	cmp	r7, r0
	and	r2, r2, r3
	str	r2, [lr], #4
	asr	r3, r3, fp
	bne	.L8
	add	ip, ip, r7, lsl #2
.L5:
	cmp	r7, r4
	beq	.L15
	cmp	r4, r0
	ble	.L15
	ldr	r2, [sp, #4]
	ldr	r1, .L23+4
	ldr	r2, [r2, #8]
	sub	r4, r4, r0
	ldr	lr, [r1]
	sub	r0, r0, #-1073741823
	ldr	r9, .L23+8
	add	r4, ip, r4, lsl #2
	add	r0, r2, r0, lsl #2
.L10:
	ldr	r2, [r0, #4]!
	add	r2, r3, r2
	str	r2, [ip]
	ldr	r1, [r9]
	asr	r3, r2, lr
	and	r2, r2, r1
	str	r2, [ip], #4
	cmp	r4, ip
	bne	.L10
.L9:
	str	r3, [r4], #4
	ldr	r3, [r8]
	cmp	r10, r3
	ble	.L12
	mov	r2, #0
.L11:
	add	r3, r3, #1
	cmp	r10, r3
	str	r2, [r4], #4
	bne	.L11
.L12:
	mov	r0, r8
	bl	mp_clamp
	ldr	r3, [sp]
	ldr	r0, [r3]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L15:
	mov	r4, ip
	b	.L9
.L3:
	mov	r1, r9
	mov	r0, r2
	bl	mp_grow
	ldr	r3, .L23
	str	r3, [sp]
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L7
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L24:
	.align	2
.L23:
	.word	MP_OKAY
	.word	DIGIT_BIT
	.word	MP_MASK
	.size	s_mp_add, .-s_mp_add
	.comm	MP_OKAY,4,4
	.comm	MP_MASK,4,4
	.comm	DIGIT_BIT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
