	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_number_to_base62               ## -- Begin function number_to_base62
	.p2align	4, 0x90
_number_to_base62:                      ## @number_to_base62
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	shrq	$63, %rdi
	xorl	$1, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_assert
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.4:
	xorl	%esi, %esi
	testl	%r14d, %r14d
	movl	$0, %r10d
	cmovgl	%r14d, %r10d
	leaq	L_.str(%rip), %r8
	movabsq	$-8925843906633654007, %r9      ## imm = 0x8421084210842109
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	$-1, %ecx
	cmpq	%rsi, %r10
	je	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rax
	imulq	%r9
	addq	%rbx, %rdx
	movq	%rdx, %rax
	shrq	$63, %rax
	sarq	$5, %rdx
	addq	%rax, %rdx
	movq	%rdx, %rax
	shlq	$6, %rax
	movq	%rdx, %rdi
	subq	%rax, %rdi
	addq	%rdx, %rdi
	addq	%rbx, %rdi
	movzbl	(%r8,%rdi), %eax
	movb	%al, (%r15,%rsi)
	incq	%rsi
	addq	$61, %rbx
	cmpq	$122, %rbx
	movq	%rdx, %rbx
	ja	LBB0_5
## %bb.7:
	cmpl	%r14d, %esi
	jge	LBB0_11
## %bb.8:
	movb	$0, (%r15,%rsi)
	xorl	%ecx, %ecx
	cmpl	$2, %esi
	jl	LBB0_11
## %bb.9:
	addq	$-2, %rsi
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%r15,%rax), %edx
	movzbl	1(%r15,%rsi), %ebx
	movb	%bl, (%r15,%rax)
	movb	%dl, 1(%r15,%rsi)
	incq	%rax
	leaq	-1(%rsi), %rdx
	cmpq	%rsi, %rax
	movq	%rdx, %rsi
	jl	LBB0_10
	jmp	LBB0_11
LBB0_1:
	movl	$-1, %ecx
	testl	%r14d, %r14d
	jle	LBB0_11
## %bb.2:
	movb	$48, (%r15)
	cmpl	$1, %r14d
	je	LBB0_11
## %bb.3:
	movb	$0, 1(%r15)
	xorl	%ecx, %ecx
LBB0_11:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_number_to_base62               ; -- Begin function number_to_base62
	.p2align	2
_number_to_base62:                      ; @number_to_base62
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	lsr	x8, x0, #63
	eor	w0, w8, #0x1
	bl	_assert
	cbz	x21, LBB0_9
; %bb.1:
	mov	x9, #0
	cmp	w20, #0
	csel	w8, w20, wzr, gt
	mov	x10, #8457
	movk	x10, #4228, lsl #16
	movk	x10, #2114, lsl #32
	movk	x10, #33825, lsl #48
	mov	w11, #62
Lloh0:
	adrp	x12, l_.str@PAGE
Lloh1:
	add	x12, x12, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x8, x9
	b.eq	LBB0_11
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	smulh	x13, x21, x10
	add	x13, x13, x21
	asr	x14, x13, #5
	add	x14, x14, x13, lsr #63
	msub	x13, x14, x11, x21
	ldrb	w15, [x12, x13]
	add	x13, x9, #1
	strb	w15, [x19, x9]
	add	x15, x21, #61
	mov	x9, x13
	mov	x21, x14
	cmp	x15, #122
	b.hi	LBB0_2
; %bb.4:
	cmp	w13, w20
	b.ge	LBB0_11
; %bb.5:
	mov	w0, #0
	strb	wzr, [x19, x13]
	cmp	w13, #2
	b.lt	LBB0_12
; %bb.6:
	mov	x8, #0
	sub	x9, x13, #1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x19, x8]
	ldrb	w11, [x19, x9]
	strb	w11, [x19, x8]
	strb	w10, [x19, x9]
	add	x8, x8, #1
	sub	x9, x9, #1
	cmp	x8, x9
	b.lt	LBB0_7
; %bb.8:
	mov	w0, #0
	b	LBB0_12
LBB0_9:
	cmp	w20, #1
	b.lt	LBB0_11
; %bb.10:
	mov	w8, #48
	strb	w8, [x19]
	cmp	w20, #1
	b.ne	LBB0_13
LBB0_11:
	mov	w0, #-1
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_13:
	mov	w0, #0
	strb	wzr, [x19, #1]
	b	LBB0_12
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"

.subsections_via_symbols
