	.file	"extr_hpdf_utils.c_HPDF_IToA.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	HPDF_IToA
	.type	HPDF_IToA, @function
HPDF_IToA:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	movsx	r9, DWORD PTR HPDF_INT_LEN[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rcx, rsp
	lea	r8d, 1[r9]
	movsx	r8, r8d
	add	r8, 15
	mov	rax, r8
	and	r8, -4096
	sub	rcx, r8
	and	rax, -16
	cmp	rsp, rcx
	je	.L3
.L24:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rcx
	jne	.L24
.L3:
	and	eax, 4095
	sub	rsp, rax
	test	rax, rax
	jne	.L25
	mov	rax, rsp
	test	esi, esi
	js	.L26
.L5:
	mov	ecx, DWORD PTR HPDF_LIMIT_MAX_INT[rip]
	cmp	ecx, esi
	jl	.L22
	test	esi, esi
	jne	.L14
	mov	BYTE PTR [rdi], 48
	movsx	rcx, DWORD PTR HPDF_INT_LEN[rip]
	lea	r8, 1[rdi]
	mov	BYTE PTR [rsp+rcx], 0
	lea	rax, [rsp+rcx]
	.p2align 4,,10
	.p2align 3
.L7:
	cmp	r8, rdx
	jb	.L9
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L11:
	add	r8, 1
	add	rax, 1
	mov	BYTE PTR -1[r8], cl
	cmp	rdx, r8
	je	.L10
.L9:
	movzx	ecx, BYTE PTR [rax]
	test	cl, cl
	jne	.L11
.L10:
	mov	BYTE PTR [r8], 0
	mov	rax, QWORD PTR -8[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L27
	leave
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	mov	rax, r8
	ret
	.p2align 4,,10
	.p2align 3
.L26:
	.cfi_restore_state
	cmp	DWORD PTR HPDF_LIMIT_MIN_INT[rip], esi
	cmovge	esi, DWORD PTR HPDF_LIMIT_MIN_INT[rip]
	mov	BYTE PTR [rdi], 45
	lea	r8, 1[rdi]
	movsx	r9, DWORD PTR HPDF_INT_LEN[rip]
	mov	ecx, esi
	neg	ecx
.L6:
	add	rax, r9
	mov	BYTE PTR [rax], 0
	lea	rsi, -1[rax]
	test	ecx, ecx
	jle	.L7
	mov	r9d, 3435973837
	.p2align 4,,10
	.p2align 3
.L8:
	mov	eax, ecx
	mov	r10d, ecx
	imul	rax, r9
	shr	rax, 35
	lea	edi, [rax+rax*4]
	add	edi, edi
	sub	r10d, edi
	mov	edi, r10d
	add	edi, 48
	mov	BYTE PTR [rsi], dil
	mov	edi, ecx
	mov	ecx, eax
	mov	rax, rsi
	sub	rsi, 1
	cmp	edi, 9
	jg	.L8
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L14:
	mov	ecx, esi
.L22:
	mov	r8, rdi
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L25:
	or	QWORD PTR -8[rsp+rax], 0
	mov	rax, rsp
	test	esi, esi
	jns	.L5
	jmp	.L26
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	HPDF_IToA, .-HPDF_IToA
	.comm	HPDF_LIMIT_MIN_INT,4,4
	.comm	HPDF_LIMIT_MAX_INT,4,4
	.comm	HPDF_INT_LEN,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_hpdf_utils.c_HPDF_IToA.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	HPDF_IToA
	.syntax unified
	.arm
	.fpu softvfp
	.type	HPDF_IToA, %function
HPDF_IToA:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #8
	ldr	r5, .L20
	cmp	r1, #0
	ldr	lr, [r5]
	add	r3, lr, #8
	bic	r3, r3, #7
	sub	sp, sp, r3
	ldr	r3, .L20+4
	mov	r4, sp
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	blt	.L17
	ldr	r3, .L20+8
	ldr	ip, [r3]
	cmp	ip, r1
	bge	.L18
.L3:
	mov	r1, #0
	add	r3, r4, lr
	cmp	ip, r1
	strb	r1, [r4, lr]
	sub	lr, r3, #1
	ble	.L4
	ldr	r5, .L20+12
.L5:
	umull	r1, r3, r5, ip
	lsr	r3, r3, #3
	add	r1, r3, r3, lsl #2
	sub	r1, ip, r1, lsl #1
	add	r1, r1, #48
	cmp	ip, #9
	strb	r1, [lr]
	mov	ip, r3
	mov	r3, lr
	sub	lr, lr, #1
	bgt	.L5
.L4:
	cmp	r0, r2
	bcs	.L6
	sub	r3, r3, #1
	b	.L7
.L8:
	strb	r1, [r0], #1
	cmp	r2, r0
	beq	.L6
.L7:
	ldrb	r1, [r3, #1]!	@ zero_extendqisi2
	cmp	r1, #0
	bne	.L8
.L6:
	mov	r3, #0
	strb	r3, [r0]
	ldr	r3, .L20+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L19
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L18:
	cmp	r1, #0
	bne	.L11
	mov	r3, #48
	strb	r3, [r0], #1
	ldr	r3, [r5]
	strb	r1, [sp, r3]
	add	r3, sp, r3
	b	.L4
.L17:
	ldr	r3, .L20+16
	ldr	ip, [r3]
	mov	r3, #45
	cmp	r1, ip
	movlt	r1, ip
	strb	r3, [r0], #1
	ldr	lr, [r5]
	rsb	ip, r1, #0
	b	.L3
.L11:
	mov	ip, r1
	b	.L3
.L19:
	bl	__stack_chk_fail
.L21:
	.align	2
.L20:
	.word	HPDF_INT_LEN
	.word	.LC0
	.word	HPDF_LIMIT_MAX_INT
	.word	-858993459
	.word	HPDF_LIMIT_MIN_INT
	.size	HPDF_IToA, .-HPDF_IToA
	.comm	HPDF_LIMIT_MIN_INT,4,4
	.comm	HPDF_LIMIT_MAX_INT,4,4
	.comm	HPDF_INT_LEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
