	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_IToA2                     ## -- Begin function HPDF_IToA2
	.p2align	4, 0x90
_HPDF_IToA2:                            ## @HPDF_IToA2
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
                                        ## kill: def $esi killed $esi def $rsi
	movq	_HPDF_LIMIT_MAX_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%esi, %eax
	cmovll	%eax, %esi
	movslq	%edx, %r8
	movb	$0, -1(%rdi,%r8)
	leaq	(%rdi,%r8), %rdx
	addq	$-2, %rdx
	testl	%esi, %esi
	jle	LBB0_5
## %bb.1:
	cmpq	%rdi, %rdx
	jb	LBB0_5
## %bb.2:
	leaq	(%r8,%rdi), %rbx
	addq	$-3, %rbx
	movl	$3435973837, %r9d               ## imm = 0xCCCCCCCD
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%esi, %ecx
	movl	%esi, %esi
	imulq	%r9, %rsi
	shrq	$35, %rsi
	leal	(%rsi,%rsi), %edx
	leal	(%rdx,%rdx,4), %edx
	movl	%ecx, %eax
	subl	%edx, %eax
	orb	$48, %al
	movb	%al, 1(%rbx)
	leaq	-1(%rbx), %rdx
	cmpl	$10, %ecx
	jb	LBB0_4
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%rdi, %rbx
	movq	%rdx, %rbx
	jae	LBB0_3
LBB0_4:
	incq	%rdx
LBB0_5:
	leaq	(%rdi,%r8), %rbx
	decq	%rbx
	cmpq	%rdi, %rdx
	jb	LBB0_7
## %bb.6:
	leaq	-1(%rdx), %rax
	decq	%rdi
	cmpq	%rdi, %rax
	cmovbq	%rax, %rdi
	subq	%rdi, %rdx
	incq	%rdi
	movl	$48, %esi
	callq	_memset
LBB0_7:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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_IToA2                     ; -- Begin function HPDF_IToA2
	.p2align	2
_HPDF_IToA2:                            ; @HPDF_IToA2
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
                                        ; kill: def $w2 killed $w2 def $x2
Lloh0:
	adrp	x8, _HPDF_LIMIT_MAX_INT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HPDF_LIMIT_MAX_INT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	csel	w8, w8, w1, lt
	sxtw	x10, w2
	add	x19, x0, x10
	strb	wzr, [x19, #-1]!
	sub	x9, x19, #1
	cmp	w8, #1
	ccmp	x9, x0, #0, ge
	b.lo	LBB0_5
; %bb.1:
	add	x9, x10, x0
	sub	x9, x9, #3
	mov	w10, #52429
	movk	w10, #52428, lsl #16
	mov	w11, #10
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x13, x8
	umull	x8, w8, w10
	lsr	x8, x8, #35
	msub	w12, w8, w11, w13
	orr	w12, w12, #0x30
	strb	w12, [x9, #1]
	sub	x12, x9, #1
	cmp	w13, #10
	b.lo	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	x9, x0
	mov	x9, x12
	b.hs	LBB0_2
LBB0_4:
	add	x9, x12, #1
LBB0_5:
	cmp	x9, x0
	b.lo	LBB0_7
; %bb.6:
	sub	x8, x9, #1
	sub	x10, x0, #1
	cmp	x8, x10
	csel	x8, x8, x10, lo
	add	x0, x8, #1
	sub	x2, x9, x8
	mov	w1, #48
	bl	_memset
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HPDF_LIMIT_MAX_INT,4,2         ; @HPDF_LIMIT_MAX_INT
.subsections_via_symbols
