	.file	"extr_bn_conv.c_BN_dec2bn.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	BN_dec2bn
	.type	BN_dec2bn, @function
BN_dec2bn:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	test	rsi, rsi
	je	.L42
	movzx	eax, BYTE PTR [rsi]
	mov	rbx, rsi
	test	al, al
	je	.L42
	mov	DWORD PTR 12[rsp], 0
	mov	r12, rdi
	cmp	al, 45
	je	.L44
.L5:
	xor	r13d, r13d
	cmp	DWORD PTR INT_MAX[rip], -3
	jl	.L7
.L6:
	movsx	edi, BYTE PTR [rbx+r13]
	mov	ebp, r13d
	call	ossl_isdigit@PLT
	test	rax, rax
	jne	.L9
	test	r13d, r13d
	je	.L7
	mov	edx, DWORD PTR INT_MAX[rip]
	test	edx, edx
	lea	eax, 3[rdx]
	cmovns	eax, edx
	sar	eax, 2
.L8:
	cmp	eax, ebp
	jl	.L7
	mov	eax, DWORD PTR 12[rsp]
	lea	r13d, [rax+rbp]
	test	r12, r12
	je	.L1
	mov	r14, QWORD PTR [r12]
	test	r14, r14
	je	.L45
	mov	rdi, r14
	call	BN_zero@PLT
.L11:
	lea	esi, 0[0+rbp*4]
	mov	rdi, r14
	call	bn_expand@PLT
	test	rax, rax
	je	.L12
	mov	ecx, DWORD PTR BN_DEC_NUM[rip]
	mov	eax, ebp
	cdq
	idiv	ecx
	mov	eax, ecx
	sub	eax, edx
	mov	edx, 0
	cmp	ecx, eax
	cmove	eax, edx
	lea	edx, -1[rbp]
	xor	ebp, ebp
	lea	r15, 1[rbx+rdx]
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L14:
	cmp	r15, rbx
	je	.L15
.L46:
	mov	ecx, DWORD PTR BN_DEC_NUM[rip]
.L16:
	movsx	edx, BYTE PTR [rbx]
	lea	esi, 0[rbp+rbp*4]
	add	eax, 1
	add	rbx, 1
	lea	ebp, -48[rdx+rsi*2]
	cmp	eax, ecx
	jne	.L14
	mov	esi, DWORD PTR BN_DEC_CONV[rip]
	mov	rdi, r14
	call	BN_mul_word@PLT
	test	eax, eax
	je	.L12
	mov	esi, ebp
	mov	rdi, r14
	call	BN_add_word@PLT
	test	eax, eax
	je	.L12
	xor	eax, eax
	xor	ebp, ebp
	cmp	r15, rbx
	jne	.L46
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rdi, r14
	call	bn_correct_top@PLT
	mov	QWORD PTR [r12], r14
	mov	rdi, r14
	call	bn_check_top@PLT
	cmp	QWORD PTR [r14], 0
	je	.L1
	mov	eax, DWORD PTR 12[rsp]
	mov	DWORD PTR 8[r14], eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	xor	r14d, r14d
.L12:
	cmp	QWORD PTR [r12], 0
	jne	.L42
	mov	rdi, r14
	call	BN_free@PLT
	.p2align 4,,10
	.p2align 3
.L42:
	xor	r13d, r13d
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r13d
	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
.L9:
	.cfi_restore_state
	mov	edx, DWORD PTR INT_MAX[rip]
	lea	ebp, 1[r13]
	test	edx, edx
	lea	eax, 3[rdx]
	cmovns	eax, edx
	add	r13, 1
	sar	eax, 2
	cmp	eax, r13d
	jge	.L6
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L44:
	mov	DWORD PTR 12[rsp], 1
	add	rbx, 1
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L45:
	xor	eax, eax
	call	BN_new@PLT
	mov	r14, rax
	test	rax, rax
	jne	.L11
	jmp	.L42
	.cfi_endproc
.LFE0:
	.size	BN_dec2bn, .-BN_dec2bn
	.comm	INT_MAX,4,4
	.comm	BN_DEC_NUM,4,4
	.comm	BN_DEC_CONV,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_bn_conv.c_BN_dec2bn.c"
	.text
	.global	__aeabi_idivmod
	.align	2
	.global	BN_dec2bn
	.syntax unified
	.arm
	.fpu softvfp
	.type	BN_dec2bn, %function
BN_dec2bn:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	subs	r5, r1, #0
	sub	sp, sp, #12
	beq	.L4
	ldrb	r3, [r5]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L4
	cmp	r3, #45
	moveq	r3, #1
	movne	r3, #0
	ldr	r6, .L46
	str	r3, [sp]
	ldr	r3, [r6]
	addeq	r5, r5, #1
	cmn	r3, #3
	mov	r8, r0
	blt	.L6
	sub	r3, r5, #1
	mov	r4, r3
	mov	r7, #0
	str	r3, [sp, #4]
.L7:
	ldrb	r0, [r4, #1]!	@ zero_extendqisi2
	bl	ossl_isdigit
	cmp	r0, #0
	bne	.L8
	cmp	r7, #0
	beq	.L6
	ldr	r3, [r6]
	cmp	r3, #0
	add	r2, r3, #3
	movlt	r3, r2
	cmp	r7, r3, asr #2
	bgt	.L6
	ldr	r3, [sp]
	cmp	r8, #0
	add	r9, r3, r7
	beq	.L1
	ldr	fp, [r8]
	cmp	fp, #0
	beq	.L43
	mov	r0, fp
	bl	BN_zero
.L10:
	mov	r0, fp
	lsl	r1, r7, #2
	bl	bn_expand
	cmp	r0, #0
	beq	.L11
	ldr	r10, .L46+4
	mov	r0, r7
	ldr	r6, [r10]
	mov	r4, #0
	mov	r1, r6
	bl	__aeabi_idivmod
	ldr	r3, [sp, #4]
	sub	r1, r6, r1
	cmp	r6, r1
	moveq	r1, #0
	add	r7, r3, r7
	b	.L15
.L13:
	sub	r0, r7, r5
	cmn	r0, #1
	beq	.L14
.L44:
	ldr	r6, [r10]
.L15:
	ldrb	r0, [r5], #1	@ zero_extendqisi2
	add	r1, r1, #1
	add	r4, r4, r4, lsl #2
	sub	r0, r0, #48
	cmp	r6, r1
	add	r4, r0, r4, lsl #1
	bne	.L13
	ldr	r3, .L46+8
	mov	r0, fp
	ldr	r1, [r3]
	bl	BN_mul_word
	cmp	r0, #0
	beq	.L11
	mov	r1, r4
	mov	r0, fp
	bl	BN_add_word
	cmp	r0, #0
	beq	.L11
	mov	r1, #0
	sub	r0, r7, r5
	cmn	r0, #1
	mov	r4, r1
	bne	.L44
.L14:
	mov	r0, fp
	bl	bn_correct_top
	mov	r0, fp
	str	fp, [r8]
	bl	bn_check_top
	ldr	r3, [fp]
	cmp	r3, #0
	ldrne	r3, [sp]
	strne	r3, [fp, #4]
	b	.L1
.L8:
	ldr	r3, [r6]
	add	r7, r7, #1
	cmp	r3, #0
	add	r2, r3, #3
	movlt	r3, r2
	cmp	r7, r3, asr #2
	ble	.L7
.L6:
	mov	fp, #0
.L11:
	ldr	r9, [r8]
	cmp	r9, #0
	beq	.L45
.L4:
	mov	r9, #0
.L1:
	mov	r0, r9
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L45:
	mov	r0, fp
	bl	BN_free
	b	.L1
.L43:
	bl	BN_new
	subs	fp, r0, #0
	bne	.L10
	b	.L4
.L47:
	.align	2
.L46:
	.word	INT_MAX
	.word	BN_DEC_NUM
	.word	BN_DEC_CONV
	.size	BN_dec2bn, .-BN_dec2bn
	.comm	INT_MAX,4,4
	.comm	BN_DEC_NUM,4,4
	.comm	BN_DEC_CONV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
