	.file	"extr_ppevvmath.h_uGetScaledDecimal.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	uGetScaledDecimal, @function
uGetScaledDecimal:
.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
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 24
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR PRECISION[rip]
	mov	rcx, rsp
	mov	rsi, rax
	lea	rax, 15[0+rax*4]
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L15:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L15
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L16
.L4:
	mov	r14, rsp
	mov	ebx, edi
	test	esi, esi
	jle	.L8
	xor	r15d, r15d
	xor	r12d, r12d
	.p2align 4,,10
	.p2align 3
.L6:
	mov	ecx, DWORD PTR SHIFT_AMOUNT[rip]
	mov	eax, ebx
	mov	edi, 1
	sub	esi, 1
	cdq
	sub	esi, r15d
	sal	edi, cl
	idiv	edi
	mov	edi, 10
	mov	DWORD PTR [r14+r15*4], eax
	mov	r13d, eax
	sal	eax, cl
	add	r15, 1
	sub	ebx, eax
	call	uPow@PLT
	mov	esi, DWORD PTR PRECISION[rip]
	lea	ebx, [rbx+rbx*4]
	imul	eax, r13d
	add	ebx, ebx
	add	r12d, eax
	cmp	esi, r15d
	jg	.L6
.L1:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L17
	lea	rsp, -40[rbp]
	mov	eax, r12d
	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
.L16:
	.cfi_restore_state
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L8:
	xor	r12d, r12d
	jmp	.L1
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	uGetScaledDecimal, .-uGetScaledDecimal
	.comm	SHIFT_AMOUNT,4,4
	.comm	PRECISION,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_ppevvmath.h_uGetScaledDecimal.c"
	.text
	.global	__aeabi_idiv
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	uGetScaledDecimal, %function
uGetScaledDecimal:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #12
	ldr	r3, .L10
	ldr	r6, [r3]
	ldr	r3, .L10+4
	cmp	r6, #0
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	lsl	r3, r6, #2
	add	r3, r3, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	ble	.L5
	mov	r9, #0
	mov	r8, sp
	mov	r7, r0
	mov	r10, r9
	sub	r8, r8, #4
.L3:
	ldr	r3, .L10+8
	mov	r0, r7
	ldr	r4, [r3]
	mov	r3, #1
	lsl	r1, r3, r4
	bl	__aeabi_idiv
	mov	r5, r0
	sub	r1, r6, #1
	sub	r7, r7, r0, lsl r4
	sub	r1, r1, r9
	mov	r0, #10
	str	r5, [r8, #4]!
	bl	uPow
	ldr	r3, .L10
	add	r9, r9, #1
	ldr	r6, [r3]
	add	r7, r7, r7, lsl #2
	cmp	r6, r9
	mla	r10, r0, r5, r10
	lsl	r7, r7, #1
	bgt	.L3
.L1:
	ldr	r3, .L10+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	mov	r0, r10
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L5:
	mov	r10, #0
	b	.L1
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	PRECISION
	.word	.LC0
	.word	SHIFT_AMOUNT
	.size	uGetScaledDecimal, .-uGetScaledDecimal
	.comm	SHIFT_AMOUNT,4,4
	.comm	PRECISION,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
