	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __ujtoa
___ujtoa:                               ## @__ujtoa
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -56(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r15
	movl	%edi, %r14d
	cmpl	$8, %edx
	je	LBB0_1
## %bb.3:
	cmpl	$10, %edx
	je	LBB0_6
## %bb.4:
	cmpl	$16, %edx
	jne	LBB0_18
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %eax
	andl	$15, %eax
	movzbl	(%rcx,%rax), %eax
	movb	%al, -1(%r15)
	decq	%r15
	movl	%r14d, %eax
	sarl	$4, %eax
	cmpl	$16, %r14d
	movl	%eax, %r14d
	jae	LBB0_5
	jmp	LBB0_17
LBB0_1:
	movl	%r14d, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edi
	andl	$7, %edi
	callq	_to_char
	movb	%al, -1(%r15)
	decq	%r15
	sarl	$3, %ebx
	cmpl	$8, %r14d
	movl	%ebx, %r14d
	jae	LBB0_2
	jmp	LBB0_17
LBB0_6:
	cmpl	$9, %r14d
	jg	LBB0_8
## %bb.7:
	movslq	%r14d, %rax
	imulq	$1717986919, %rax, %rax         ## imm = 0x66666667
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$34, %rax
	addl	%ecx, %eax
	addl	%eax, %eax
	leal	(%rax,%rax,4), %eax
	subl	%eax, %r14d
	movl	%r14d, %edi
	callq	_to_char
	movb	%al, -1(%r15)
	decq	%r15
LBB0_17:
	movq	%r15, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_INTMAX_MAX@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	cmpl	%r14d, (%rax)
	movl	%r9d, -52(%rbp)                 ## 4-byte Spill
	jge	LBB0_10
## %bb.9:
	movl	%r14d, %eax
	movl	$3435973837, %ebx               ## imm = 0xCCCCCCCD
	imulq	%rax, %rbx
	shrq	$35, %rbx
	leal	(%rbx,%rbx), %eax
	leal	(%rax,%rax,4), %eax
	subl	%eax, %r14d
	movl	%r14d, %edi
	callq	_to_char
	movb	%al, -1(%r15)
	decq	%r15
	movl	$1, %r13d
	movl	%ebx, %r14d
LBB0_10:
	movq	16(%rbp), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rbx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_11 Depth=1
	addl	$9, %r12d
	movq	%r15, %rbx
	cmpl	$19, %r12d
	jb	LBB0_17
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %r12d
	movslq	%r14d, %rdi
	imulq	$1717986919, %rdi, %r14         ## imm = 0x66666667
	movq	%r14, %rax
	shrq	$63, %rax
	sarq	$34, %r14
	addl	%eax, %r14d
	leal	(%r14,%r14), %eax
	leal	(%rax,%rax,4), %eax
	subl	%eax, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_to_char
	leaq	-1(%rbx), %r15
	incl	%r13d
	movb	%al, -1(%rbx)
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_16
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movsbl	(%rax), %eax
	movq	_CHAR_MAX@GOTPCREL(%rip), %rcx
	cmpb	(%rcx), %al
	je	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpl	%eax, %r13d
	jne	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpl	$10, %r12d
	jl	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movb	%al, -2(%rbx)
	addq	$-2, %rbx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpb	$0, 1(%rcx)
	leaq	1(%rcx), %rax
	cmovneq	%rax, %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	movq	%rbx, %r15
	jmp	LBB0_16
LBB0_18:
	xorl	%eax, %eax
	callq	_abort
	.cfi_endproc
                                        ## -- End function
	.comm	_INTMAX_MAX,4,2                 ## @INTMAX_MAX
	.comm	_CHAR_MAX,1,0                   ## @CHAR_MAX
	.no_dead_strip	___ujtoa
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __ujtoa
___ujtoa:                               ; @__ujtoa
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
	cmp	w2, #8
	b.eq	LBB0_4
; %bb.1:
	cmp	w2, #10
	b.eq	LBB0_5
; %bb.2:
	cmp	w2, #16
	b.ne	LBB0_16
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	and	x8, x20, #0xf
	ldrb	w8, [x3, x8]
	strb	w8, [x19, #-1]!
	asr	w8, w20, #4
	cmp	w20, #16
	mov	x20, x8
	b.hs	LBB0_3
	b	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	and	w0, w20, #0x7
	bl	_to_char
	strb	w0, [x19, #-1]!
	asr	w8, w20, #3
	cmp	w20, #8
	mov	x20, x8
	b.hs	LBB0_4
	b	LBB0_7
LBB0_5:
	cmp	w20, #9
	b.gt	LBB0_8
; %bb.6:
	mov	w8, #26215
	movk	w8, #26214, lsl #16
	smull	x8, w20, w8
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w8, w8, w9
	mov	w9, #10
	msub	w0, w8, w9, w20
	bl	_to_char
	strb	w0, [x19, #-1]!
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_8:
	mov	x21, x6
	mov	x23, x4
Lloh0:
	adrp	x8, _INTMAX_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INTMAX_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w20
	str	w5, [sp, #12]                   ; 4-byte Folded Spill
	b.ge	LBB0_10
; %bb.9:
	mov	w8, #52429
	movk	w8, #52428, lsl #16
	umull	x8, w20, w8
	lsr	x22, x8, #35
	mov	w8, #10
	msub	w0, w22, w8, w20
	bl	_to_char
	strb	w0, [x19, #-1]!
	mov	w24, #1
	mov	x20, x22
	b	LBB0_11
LBB0_10:
	mov	w24, #0
LBB0_11:
	mov	w25, #26215
	movk	w25, #26214, lsl #16
	mov	w26, #10
Lloh3:
	adrp	x27, _CHAR_MAX@GOTPAGE
Lloh4:
	ldr	x27, [x27, _CHAR_MAX@GOTPAGEOFF]
	mov	x22, x19
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	w8, w20, #9
	mov	x22, x19
	mov	x20, x28
	cmp	w8, #19
	b.lo	LBB0_7
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	smull	x8, w20, w25
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w28, w8, w9
	msub	w0, w28, w26, w20
	bl	_to_char
	strb	w0, [x19, #-1]!
	add	w24, w24, #1
	cbz	w23, LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldrb	w8, [x21]
	sxtb	w9, w8
	ldrb	w10, [x27]
	cmp	w8, w10
	ccmp	w24, w9, #0, ne
	ccmp	w20, #10, #8, eq
	b.lt	LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	w24, #0
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	strb	w8, [x22, #-2]!
	mov	x8, x21
	ldrb	w9, [x8, #1]!
	cmp	w9, #0
	csel	x21, x21, x8, eq
	mov	x19, x22
	b	LBB0_12
LBB0_16:
	bl	_abort
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_INTMAX_MAX,4,2                 ; @INTMAX_MAX
	.comm	_CHAR_MAX,1,0                   ; @CHAR_MAX
	.no_dead_strip	___ujtoa
.subsections_via_symbols
