	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function u2s
_u2s:                                   ## @u2s
	.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	%rcx, %r15
	movq	%rdi, %rbx
	movq	_U2S_BUFSIZE@GOTPCREL(%rip), %r9
	movl	(%r9), %r13d
	decl	%r13d
	movb	$0, (%rcx,%r13)
	cmpl	$16, %esi
	je	LBB0_4
## %bb.1:
	movl	%esi, %r12d
	cmpl	$10, %esi
	jne	LBB0_6
## %bb.2:
	leaq	L_.str(%rip), %rcx
	movabsq	$-3689348814741910323, %rsi     ## imm = 0xCCCCCCCCCCCCCCCD
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rax
	mulq	%rsi
	decl	%r13d
	shrq	$3, %rdx
	leaq	(%rdx,%rdx), %rax
	leaq	(%rax,%rax,4), %rax
	movq	%rbx, %rdi
	subq	%rax, %rdi
	movzbl	(%rcx,%rdi), %eax
	movb	%al, (%r15,%r13)
	cmpq	$10, %rbx
	movq	%rdx, %rbx
	jae	LBB0_3
	jmp	LBB0_11
LBB0_4:
	testl	%edx, %edx
	leaq	L_.str.2(%rip), %rcx
	leaq	L_.str.1(%rip), %rax
	cmoveq	%rcx, %rax
	movq	%rbx, %rcx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	decl	%r13d
	movl	%ebx, %edx
	andl	$15, %edx
	movzbl	(%rax,%rdx), %edx
	movb	%dl, (%r15,%r13)
	shrq	$4, %rcx
	cmpq	$16, %rbx
	movq	%rcx, %rbx
	jae	LBB0_5
LBB0_11:
	movl	%r13d, %eax
	notl	%r13d
	addl	(%r9), %r13d
	movq	%r13, (%r8)
	addq	%rax, %r15
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	testl	%edx, %edx
	leaq	L_.str.4(%rip), %rax
	leaq	L_.str.3(%rip), %r14
	cmoveq	%rax, %r14
	leal	-2(%r12), %eax
	xorl	%edi, %edi
	cmpl	$35, %eax
	setb	%dil
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	callq	_assert
	movq	_U2S_BUFSIZE@GOTPCREL(%rip), %r9
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	movl	%r12d, %ecx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	%rbx, %rax
	xorl	%edx, %edx
	divq	%rcx
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	movzbl	(%r14,%rdx), %edx
	movl	%r13d, %esi
	movb	%dl, (%r15,%rsi)
	cmpq	%rcx, %rbx
	movq	%rax, %rbx
	jb	LBB0_11
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	decl	%r13d
	movq	%rbx, %rax
	shrq	$32, %rax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
                                        ## kill: def $eax killed $eax def $rax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_U2S_BUFSIZE,4,2                ## @U2S_BUFSIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"0123456789"

L_.str.1:                               ## @.str.1
	.asciz	"0123456789ABCDEF"

L_.str.2:                               ## @.str.2
	.asciz	"0123456789abcdef"

L_.str.3:                               ## @.str.3
	.asciz	"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"

L_.str.4:                               ## @.str.4
	.asciz	"0123456789abcdefghijklmnopqrstuvwxyz"

	.no_dead_strip	_u2s
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function u2s
_u2s:                                   ; @u2s
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x4
	mov	x19, x3
	mov	x21, x0
Lloh0:
	adrp	x24, _U2S_BUFSIZE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _U2S_BUFSIZE@GOTPAGEOFF]
	ldr	w8, [x24]
	sub	w23, w8, #1
	strb	wzr, [x3, w23, uxtw]
	cmp	w1, #16
	b.eq	LBB0_4
; %bb.1:
	mov	x22, x1
	cmp	w1, #10
	b.ne	LBB0_6
; %bb.2:
	mov	x8, #-3689348814741910324
	movk	x8, #52429
	mov	w9, #10
Lloh2:
	adrp	x10, l_.str@PAGE
Lloh3:
	add	x10, x10, l_.str@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	sub	w23, w23, #1
	umulh	x11, x21, x8
	lsr	x11, x11, #3
	msub	x12, x11, x9, x21
	ldrb	w12, [x10, x12]
	strb	w12, [x19, w23, uxtw]
	cmp	x21, #10
	mov	x21, x11
	b.hs	LBB0_3
	b	LBB0_8
LBB0_4:
Lloh4:
	adrp	x8, l_.str.1@PAGE
Lloh5:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh6:
	adrp	x9, l_.str.2@PAGE
Lloh7:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w2, #0
	csel	x8, x9, x8, eq
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	and	x9, x21, #0xf
	ldrb	w9, [x8, x9]
	sub	w23, w23, #1
	strb	w9, [x19, w23, uxtw]
	lsr	x9, x21, #4
	cmp	x21, #16
	mov	x21, x9
	b.hs	LBB0_5
	b	LBB0_8
LBB0_6:
Lloh8:
	adrp	x8, l_.str.3@PAGE
Lloh9:
	add	x8, x8, l_.str.3@PAGEOFF
Lloh10:
	adrp	x9, l_.str.4@PAGE
Lloh11:
	add	x9, x9, l_.str.4@PAGEOFF
	cmp	w2, #0
	csel	x25, x9, x8, eq
	sub	w8, w22, #2
	cmp	w8, #35
	cset	w0, lo
	bl	_assert
	mov	w8, w22
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	sub	w23, w23, #1
	udiv	x9, x21, x8
	msub	x10, x9, x8, x21
	ldrb	w10, [x25, x10]
	strb	w10, [x19, w23, uxtw]
	cmp	x21, x8
	mov	x21, x9
	b.hs	LBB0_7
LBB0_8:
	ldr	w8, [x24]
	mvn	w9, w23
	add	w8, w8, w9
	str	x8, [x20]
	add	x0, x19, w23, uxtw
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_U2S_BUFSIZE,4,2                ; @U2S_BUFSIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"0123456789"

l_.str.1:                               ; @.str.1
	.asciz	"0123456789ABCDEF"

l_.str.2:                               ; @.str.2
	.asciz	"0123456789abcdef"

l_.str.3:                               ; @.str.3
	.asciz	"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"

l_.str.4:                               ; @.str.4
	.asciz	"0123456789abcdefghijklmnopqrstuvwxyz"

	.no_dead_strip	_u2s
.subsections_via_symbols
