	.file	"extr_lj_strfmt_num.c_nd_add_m10e.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	nd_add_m10e, @function
nd_add_m10e:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	ebx, edx
	mov	rdx, QWORD PTR ndigits_dec_threshold[rip]
	test	ecx, ecx
	js	.L2
	movsx	rbp, ecx
	mov	eax, ecx
	imul	rbp, rbp, 954437177
	sar	eax, 31
	sar	rbp, 33
	sub	ebp, eax
	lea	eax, 0[rbp+rbp*8]
.L9:
	sub	ecx, eax
	movsx	rcx, ecx
	mov	edx, DWORD PTR [rdx+rcx*4]
	add	edx, 1
	imul	ebx, edx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L12:
	sub	ebx, 1000000000
	xor	edi, edi
	cmp	ebp, r12d
	mov	DWORD PTR [r14], ebx
	sete	dil
	call	LJ_UNLIKELY@PLT
	test	rax, rax
	jne	.L11
	add	ebp, 1
	mov	ebx, 1
	and	ebp, 63
.L3:
	movsx	rax, ebp
	xor	edi, edi
	lea	r14, 0[r13+rax*4]
	add	ebx, DWORD PTR [r14]
	cmp	ebx, 999999999
	setg	dil
	call	LJ_UNLIKELY@PLT
	test	rax, rax
	jne	.L12
	mov	DWORD PTR [r14], ebx
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	add	r12d, 1
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	and	r12d, 63
	mov	DWORD PTR 0[r13+r12*4], 1
	and	eax, 63
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	lea	esi, -8[rcx]
	movsx	rax, esi
	sar	esi, 31
	imul	rax, rax, 954437177
	sar	rax, 33
	sub	eax, esi
	lea	ebp, 64[rax]
	lea	eax, [rax+rax*8]
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	nd_add_m10e, .-nd_add_m10e
	.comm	ndigits_dec_threshold,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_lj_strfmt_num.c_nd_add_m10e.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	nd_add_m10e, %function
nd_add_m10e:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	ip, .L12
	cmp	r3, #0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r6, r0
	mov	r7, r1
	ldr	r0, [ip]
	blt	.L2
	ldr	r1, .L12+4
	asr	r4, r3, #31
	smull	ip, r1, r3, r1
	rsb	r4, r4, r1, asr #1
	rsb	r1, r4, r4, lsl #29
	rsb	r1, r4, r1, lsl #3
	add	r3, r1, r3
	ldr	r5, [r0, r3, lsl #2]
	add	r5, r5, #1
	mul	r5, r2, r5
.L4:
	ldr	r9, .L12+8
	ldr	r8, .L12+12
	b	.L3
.L11:
	sub	r0, r4, r7
	clz	r0, r0
	str	r3, [r6, r4, lsl #2]
	lsr	r0, r0, #5
	bl	LJ_UNLIKELY
	cmp	r0, #0
	add	r4, r4, #1
	bne	.L10
	mov	r5, #1
	and	r4, r4, #63
.L3:
	ldr	r2, [r6, r4, lsl #2]
	add	r10, r6, r4, lsl #2
	add	r5, r5, r2
	cmp	r5, r9
	movle	r0, #0
	movgt	r0, #1
	bl	LJ_UNLIKELY
	cmp	r0, #0
	add	r3, r5, r8
	bne	.L11
	mov	r0, r7
	str	r5, [r10]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L10:
	mov	r3, #1
	add	r7, r7, r3
	and	r0, r7, #63
	str	r3, [r6, r0, lsl #2]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	ldr	r4, .L12+4
	sub	r1, r3, #8
	smull	lr, ip, r4, r1
	asr	r4, r1, #31
	rsb	r4, r4, ip, asr #1
	rsb	r1, r4, r4, lsl #29
	rsb	r1, r4, r1, lsl #3
	add	r3, r1, r3
	ldr	r5, [r0, r3, lsl #2]
	add	r4, r4, #64
	add	r5, r5, #1
	mul	r5, r2, r5
	b	.L4
.L13:
	.align	2
.L12:
	.word	ndigits_dec_threshold
	.word	954437177
	.word	999999999
	.word	-1000000000
	.size	nd_add_m10e, .-nd_add_m10e
	.comm	ndigits_dec_threshold,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
