	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_IToA                      ## -- Begin function HPDF_IToA
	.p2align	4, 0x90
_HPDF_IToA:                             ## @HPDF_IToA
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_HPDF_INT_LEN@GOTPCREL(%rip), %r12
	movslq	(%r12), %r13
	leal	1(%r13), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rax
	movq	%rax, %rcx
	testl	%ebx, %ebx
	js	LBB0_1
## %bb.4:
	movq	_HPDF_LIMIT_MAX_INT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmpl	%ebx, %edx
	jl	LBB0_2
## %bb.5:
	testl	%ebx, %ebx
	je	LBB0_9
## %bb.6:
	addq	%r13, %rax
	movb	$0, (%rcx,%r13)
	jmp	LBB0_7
LBB0_1:
	movq	_HPDF_LIMIT_MIN_INT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmpl	%ebx, %edx
	cmovgl	%edx, %ebx
	movb	$45, (%r15)
	incq	%r15
	negl	%ebx
	movl	%ebx, %edx
LBB0_2:
	movslq	(%r12), %rsi
	addq	%rsi, %rax
	movb	$0, (%rcx,%rsi)
	testl	%edx, %edx
	jle	LBB0_10
## %bb.3:
	movl	%edx, %ebx
LBB0_7:
	movl	$3435973837, %edx               ## imm = 0xCCCCCCCD
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %esi
	imulq	%rdx, %rsi
	shrq	$35, %rsi
	leal	(%rsi,%rsi), %ecx
	leal	(%rcx,%rcx,4), %edi
	movl	%ebx, %ecx
	subl	%edi, %ecx
	orb	$48, %cl
	movb	%cl, -1(%rax)
	decq	%rax
	cmpl	$10, %ebx
	movl	%esi, %ebx
	jae	LBB0_8
## %bb.11:
	cmpq	%r14, %r15
	jb	LBB0_12
	jmp	LBB0_18
LBB0_9:
	movb	$48, (%r15)
	incq	%r15
	movslq	(%r12), %rdx
	addq	%rdx, %rax
	movb	$0, (%rcx,%rdx)
LBB0_10:
	xorl	%ecx, %ecx
	cmpq	%r14, %r15
	jae	LBB0_18
LBB0_12:
	testb	%cl, %cl
	je	LBB0_18
## %bb.13:
	movq	%r14, %rdx
	subq	%r15, %rdx
	addq	%r15, %rdx
	movq	%r15, %rsi
	notq	%rsi
	addq	%r14, %rsi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movb	%cl, (%r15,%rdi)
	cmpq	%rdi, %rsi
	je	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	movzbl	1(%rax,%rdi), %ecx
	incq	%rdi
	testb	%cl, %cl
	jne	LBB0_14
## %bb.17:
	addq	%rdi, %r15
	jmp	LBB0_18
LBB0_15:
	movq	%rdx, %r15
LBB0_18:
	movb	$0, (%r15)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.19:
	movq	%r15, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_HPDF_INT_LEN,4,2               ## @HPDF_INT_LEN
	.comm	_HPDF_LIMIT_MIN_INT,4,2         ## @HPDF_LIMIT_MIN_INT
	.comm	_HPDF_LIMIT_MAX_INT,4,2         ## @HPDF_LIMIT_MAX_INT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_IToA                      ; -- Begin function HPDF_IToA
	.p2align	2
_HPDF_IToA:                             ; @HPDF_IToA
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	sub	sp, sp, #16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-8]
Lloh3:
	adrp	x12, _HPDF_INT_LEN@GOTPAGE
Lloh4:
	ldr	x12, [x12, _HPDF_INT_LEN@GOTPAGEOFF]
	ldrsw	x13, [x12]
	add	w8, w13, #1
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x8, x9, x8
	mov	sp, x8
	tbnz	w1, #31, LBB0_4
; %bb.1:
Lloh7:
	adrp	x9, _HPDF_LIMIT_MAX_INT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _HPDF_LIMIT_MAX_INT@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	cmp	w9, w1
	b.lt	LBB0_5
; %bb.2:
	cbz	w1, LBB0_11
; %bb.3:
	add	x8, x8, x13
	strb	wzr, [x8]
	b	LBB0_7
LBB0_4:
Lloh10:
	adrp	x9, _HPDF_LIMIT_MIN_INT@GOTPAGE
Lloh11:
	ldr	x9, [x9, _HPDF_LIMIT_MIN_INT@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	cmp	w9, w1
	csel	w9, w9, w1, gt
	mov	w10, #45
	strb	w10, [x0], #1
	neg	w9, w9
LBB0_5:
	ldrsw	x10, [x12]
	add	x8, x8, x10
	strb	wzr, [x8]
	cmp	w9, #1
	b.lt	LBB0_10
; %bb.6:
	mov	x1, x9
LBB0_7:
	mov	w9, #52429
	movk	w9, #52428, lsl #16
	mov	w10, #10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	umull	x11, w1, w9
	lsr	x12, x11, #35
	msub	w11, w12, w10, w1
	orr	w11, w11, #0x30
	strb	w11, [x8, #-1]!
	cmp	w1, #10
	mov	x1, x12
	b.hs	LBB0_8
; %bb.9:
	and	w9, w11, #0xff
	cmp	x0, x2
	b.lo	LBB0_12
	b	LBB0_17
LBB0_10:
	mov	w9, #0
	cmp	x0, x2
	b.lo	LBB0_12
	b	LBB0_17
LBB0_11:
	mov	w9, #0
	mov	w10, #48
	strb	w10, [x0], #1
	ldrsw	x10, [x12]
	add	x8, x8, x10
	strb	wzr, [x8]
	cmp	x0, x2
	b.hs	LBB0_17
LBB0_12:
	cbz	w9, LBB0_17
; %bb.13:
	sub	x10, x2, x0
	add	x10, x0, x10
	mvn	x11, x0
	add	x11, x11, x2
	add	x8, x8, #1
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	strb	w9, [x0], #1
	cbz	x11, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldrb	w9, [x8], #1
	sub	x11, x11, #1
	cbnz	w9, LBB0_14
	b	LBB0_17
LBB0_16:
	mov	x0, x10
LBB0_17:
	strb	wzr, [x0]
	ldur	x8, [x29, #-8]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.18:
	mov	sp, x29
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_HPDF_INT_LEN,4,2               ; @HPDF_INT_LEN
	.comm	_HPDF_LIMIT_MIN_INT,4,2         ; @HPDF_LIMIT_MIN_INT
	.comm	_HPDF_LIMIT_MAX_INT,4,2         ; @HPDF_LIMIT_MAX_INT
.subsections_via_symbols
