	.file	"extr_libtommath.h_fast_s_mp_mul_digs.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	fast_s_mp_mul_digs, @function
fast_s_mp_mul_digs:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	.cfi_offset 15, -24
	mov	r15, rsi
	push	r14
	push	r13
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	mov	r13d, ecx
	push	r12
	.cfi_offset 12, -48
	mov	r12, rdi
	push	rbx
	sub	rsp, 72
	.cfi_offset 3, -56
	mov	QWORD PTR -104[rbp], rdx
	mov	rdi, rsp
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR MP_WARRAY[rip]
	lea	rax, 15[0+rax*4]
	mov	rdx, rax
	and	rax, -4096
	sub	rdi, rax
	and	rdx, -16
	mov	rax, rdi
	cmp	rsp, rax
	je	.L3
.L32:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L32
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L33
.L4:
	lea	r9, 3[rsp]
	mov	rax, QWORD PTR -104[rbp]
	mov	rbx, r9
	and	r9, -4
	shr	rbx, 2
	mov	r8, r9
	cmp	DWORD PTR [rax], r13d
	jl	.L5
.L9:
	mov	esi, DWORD PTR 4[r15]
	mov	edi, r13d
	add	esi, DWORD PTR 4[r12]
	mov	QWORD PTR -72[rbp], r8
	call	MIN@PLT
	mov	r8, QWORD PTR -72[rbp]
	test	eax, eax
	mov	DWORD PTR -84[rbp], eax
	jle	.L34
	mov	eax, DWORD PTR -84[rbp]
	xor	r13d, r13d
	xor	r14d, r14d
	sub	eax, 1
	mov	QWORD PTR -96[rbp], rax
	.p2align 4,,10
	.p2align 3
.L12:
	mov	eax, DWORD PTR 4[r15]
	mov	esi, r13d
	mov	QWORD PTR -72[rbp], r8
	lea	edi, -1[rax]
	call	MIN@PLT
	mov	edi, r13d
	mov	rcx, QWORD PTR 8[r12]
	sub	edi, eax
	movsx	rsi, edi
	lea	rbx, [rcx+rsi*4]
	mov	rcx, QWORD PTR 8[r15]
	movsx	rsi, eax
	lea	rcx, [rcx+rsi*4]
	lea	esi, 1[rax]
	mov	eax, DWORD PTR 4[r12]
	mov	QWORD PTR -80[rbp], rcx
	sub	eax, edi
	mov	edi, eax
	call	MIN@PLT
	mov	r8, QWORD PTR -72[rbp]
	test	eax, eax
	jle	.L10
	sub	eax, 1
	mov	rcx, QWORD PTR -80[rbp]
	lea	rsi, 4[rbx+rax*4]
	.p2align 4,,10
	.p2align 3
.L11:
	sub	rcx, 4
	mov	eax, DWORD PTR [rbx]
	add	rbx, 4
	imul	eax, DWORD PTR 4[rcx]
	add	r14d, eax
	cmp	rbx, rsi
	jne	.L11
.L10:
	mov	eax, DWORD PTR MP_MASK[rip]
	mov	rcx, QWORD PTR DIGIT_BIT[rip]
	and	eax, r14d
	sar	r14d, cl
	mov	DWORD PTR [r8+r13*4], eax
	lea	rax, 1[r13]
	cmp	r13, QWORD PTR -96[rbp]
	je	.L35
	mov	r13, rax
	jmp	.L12
.L5:
	mov	rdi, QWORD PTR -104[rbp]
	mov	esi, r13d
	mov	QWORD PTR -72[rbp], r9
	call	mp_grow@PLT
	cmp	DWORD PTR MP_OKAY[rip], eax
	jne	.L1
	mov	r8, QWORD PTR -72[rbp]
	jmp	.L9
.L14:
	mov	edx, DWORD PTR 0[0+rbx*4]
	mov	DWORD PTR [rax], edx
	.p2align 4,,10
	.p2align 3
.L19:
	mov	edi, DWORD PTR -84[rbp]
	mov	edx, 0
	test	edi, edi
	cmovs	edi, edx
	movsx	r13, edi
	lea	edx, 1[r13]
	lea	rax, 4[rax+r13*4]
.L15:
	cmp	esi, edx
	jle	.L17
	sub	esi, 1
	sub	esi, edx
	lea	rdx, 4[rax+rsi*4]
	.p2align 4,,10
	.p2align 3
.L18:
	add	rax, 4
	mov	DWORD PTR -4[rax], 0
	cmp	rax, rdx
	jne	.L18
.L17:
	mov	rdi, QWORD PTR -104[rbp]
	call	mp_clamp@PLT
	mov	eax, DWORD PTR MP_OKAY[rip]
.L1:
	mov	rdx, QWORD PTR -56[rbp]
	xor	rdx, QWORD PTR fs:40
	jne	.L36
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L35:
	.cfi_restore_state
	mov	rax, QWORD PTR -104[rbp]
	mov	edx, DWORD PTR -84[rbp]
	mov	esi, DWORD PTR 4[rax]
	mov	DWORD PTR 4[rax], edx
	xor	edx, edx
	mov	rax, QWORD PTR 8[rax]
	.p2align 4,,10
	.p2align 3
.L16:
	mov	ecx, DWORD PTR [r8+rdx*4]
	mov	DWORD PTR [rax+rdx*4], ecx
	add	rdx, 1
	cmp	DWORD PTR -84[rbp], edx
	jge	.L16
	jmp	.L19
.L33:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L34:
	mov	rax, QWORD PTR -104[rbp]
	mov	edx, DWORD PTR -84[rbp]
	mov	esi, DWORD PTR 4[rax]
	mov	DWORD PTR 4[rax], edx
	mov	rax, QWORD PTR 8[rax]
	je	.L14
	xor	edx, edx
	jmp	.L15
.L36:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	fast_s_mp_mul_digs, .-fast_s_mp_mul_digs
	.comm	MP_WARRAY,4,4
	.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_fast_s_mp_mul_digs.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fast_s_mp_mul_digs, %function
fast_s_mp_mul_digs:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #28
	mov	ip, r2
	mov	r4, r3
	str	r2, [fp, #-52]
	ldr	r2, .L28
	ldr	r3, [ip]
	ldr	r2, [r2]
	cmp	r3, r4
	lsl	r2, r2, #2
	add	r2, r2, #7
	ldr	r3, .L28+4
	bic	r2, r2, #7
	sub	sp, sp, r2
	mov	r9, r0
	mov	r10, r1
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	mov	r6, sp
	blt	.L2
	ldr	r3, .L28+8
	str	r3, [fp, #-56]
.L6:
	ldr	r1, [r9, #4]
	ldr	r3, [r10, #4]
	mov	r0, r4
	add	r1, r1, r3
	bl	MIN
	subs	r7, r0, #0
	ble	.L26
	mov	r5, #0
	sub	r3, r6, #4
	str	r7, [fp, #-48]
	mov	r8, r5
	mov	r7, r10
	mov	r10, r9
	mov	r9, r3
	str	r3, [fp, #-60]
.L9:
	ldr	r0, [r7, #4]
	mov	r1, r8
	sub	r0, r0, #1
	bl	MIN
	mov	r6, r0
	ldr	r0, [r10, #4]
	sub	ip, r8, r6
	ldr	r4, [r10, #8]
	ldr	lr, [r7, #8]
	add	r1, r6, #1
	sub	r0, r0, ip
	add	r4, r4, ip, lsl #2
	add	r6, lr, r6, lsl #2
	bl	MIN
	cmp	r0, #0
	ldr	r2, .L28+12
	ble	.L7
	mov	r1, #0
.L8:
	ldr	r3, [r4], #4
	ldr	ip, [r6], #-4
	add	r1, r1, #1
	cmp	r0, r1
	mla	r5, ip, r3, r5
	bne	.L8
.L7:
	ldr	r3, .L28+16
	ldr	r1, [r2]
	ldr	r0, [r3]
	ldr	r3, [fp, #-48]
	add	r8, r8, #1
	and	r1, r1, r5
	cmp	r3, r8
	str	r1, [r9, #4]!
	asr	r5, r5, r0
	bne	.L9
	mov	r7, r3
	ldr	r3, [fp, #-52]
	ldr	r2, [r3, #8]
	ldr	lr, [r3, #4]
	str	r7, [r3, #4]
.L15:
	mov	r3, #0
	ldr	r0, [fp, #-60]
	sub	r1, r2, #4
.L12:
	ldr	ip, [r0, #4]!
	add	r3, r3, #1
	cmp	r7, r3
	str	ip, [r1, #4]!
	bge	.L12
	bic	r3, r7, r7, asr #31
	add	r3, r3, #1
	add	r2, r2, r3, lsl #2
.L11:
	cmp	lr, r3
	ble	.L13
	mov	r1, #0
.L14:
	add	r3, r3, #1
	cmp	lr, r3
	str	r1, [r2], #4
	bne	.L14
.L13:
	ldr	r0, [fp, #-52]
	bl	mp_clamp
	ldr	r3, [fp, #-56]
	ldr	r0, [r3]
.L1:
	ldr	r3, .L28+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L27
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	mov	r1, r4
	ldr	r0, [fp, #-52]
	bl	mp_grow
	ldr	r3, .L28+8
	str	r3, [fp, #-56]
	ldr	r3, [r3]
	cmp	r3, r0
	bne	.L1
	b	.L6
.L26:
	ldr	r3, [fp, #-52]
	ldr	lr, [r3, #4]
	ldr	r2, [r3, #8]
	str	r7, [r3, #4]
	movne	r3, #0
	bne	.L11
	sub	r3, r6, #4
	str	r3, [fp, #-60]
	b	.L15
.L27:
	bl	__stack_chk_fail
.L29:
	.align	2
.L28:
	.word	MP_WARRAY
	.word	.LC0
	.word	MP_OKAY
	.word	MP_MASK
	.word	DIGIT_BIT
	.size	fast_s_mp_mul_digs, .-fast_s_mp_mul_digs
	.comm	MP_WARRAY,4,4
	.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
