	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __ultoa
___ultoa:                               ## @__ultoa
	.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	%rsi, %r14
	movl	%edi, %r12d
	cmpl	$8, %edx
	je	LBB0_10
## %bb.1:
	cmpl	$10, %edx
	je	LBB0_4
## %bb.2:
	cmpl	$16, %edx
	jne	LBB0_16
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %eax
	andl	$15, %eax
	movzbl	(%r8,%rax), %eax
	movb	%al, -1(%r14)
	decq	%r14
	movl	%r12d, %eax
	sarl	$4, %eax
	cmpl	$16, %r12d
	movl	%eax, %r12d
	jae	LBB0_3
	jmp	LBB0_15
LBB0_10:
	movl	%ecx, %r15d
	decq	%r14
	movq	%r14, %r13
	movl	%r12d, %ebx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %edi
	andl	$7, %edi
	callq	_to_char
	movb	%al, (%r13)
	sarl	$3, %ebx
	decq	%r13
	cmpl	$7, %r12d
	movl	%ebx, %r12d
	ja	LBB0_11
## %bb.12:
	leaq	1(%r13), %r14
	testl	%r15d, %r15d
	je	LBB0_15
## %bb.13:
	cmpb	$48, %al
	je	LBB0_15
## %bb.14:
	movb	$48, (%r13)
	movq	%r13, %r14
	jmp	LBB0_15
LBB0_4:
	cmpl	$9, %r12d
	jg	LBB0_6
## %bb.5:
	movl	%r12d, %edi
	callq	_to_char
	movb	%al, -1(%r14)
	decq	%r14
	jmp	LBB0_15
LBB0_6:
	movq	_LONG_MAX@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jge	LBB0_8
## %bb.7:
	movl	%r12d, %eax
	movl	$3435973837, %ebx               ## imm = 0xCCCCCCCD
	imulq	%rax, %rbx
	shrq	$35, %rbx
	leal	(%rbx,%rbx), %eax
	leal	(%rax,%rax,4), %eax
	subl	%eax, %r12d
	movl	%r12d, %edi
	callq	_to_char
	movb	%al, -1(%r14)
	decq	%r14
	movl	%ebx, %r12d
LBB0_8:
	movl	%r12d, %ebx
	movabsq	$7378697629483820647, %r12      ## imm = 0x6666666666666667
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rax
	imulq	%r12
	movq	%rdx, %r15
	movq	%rdx, %rax
	shrq	$63, %rax
	sarq	$2, %r15
	addq	%rax, %r15
	leal	(%r15,%r15), %eax
	leal	(%rax,%rax,4), %eax
	movl	%ebx, %edi
	subl	%eax, %edi
	callq	_to_char
	movb	%al, -1(%r14)
	decq	%r14
	addq	$9, %rbx
	cmpq	$19, %rbx
	movq	%r15, %rbx
	jae	LBB0_9
LBB0_15:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	xorl	%eax, %eax
	callq	_abort
	.cfi_endproc
                                        ## -- End function
	.comm	_LONG_MAX,4,2                   ## @LONG_MAX
	.no_dead_strip	___ultoa
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __ultoa
___ultoa:                               ; @__ultoa
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	cmp	w2, #8
	b.eq	LBB0_4
; %bb.1:
	cmp	w2, #10
	b.eq	LBB0_9
; %bb.2:
	cmp	w2, #16
	b.ne	LBB0_16
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	and	x8, x20, #0xf
	ldrb	w8, [x4, x8]
	strb	w8, [x19, #-1]!
	asr	w8, w20, #4
	cmp	w20, #16
	mov	x20, x8
	b.hs	LBB0_3
	b	LBB0_15
LBB0_4:
	mov	x21, x3
	sub	x22, x19, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	and	w0, w20, #0x7
	bl	_to_char
	strb	w0, [x22], #-1
	asr	w8, w20, #3
	cmp	w20, #7
	mov	x20, x8
	b.hi	LBB0_5
; %bb.6:
	add	x19, x22, #1
	cbz	w21, LBB0_15
; %bb.7:
	cmp	w0, #48
	b.eq	LBB0_15
; %bb.8:
	mov	w8, #48
	strb	w8, [x22]
	mov	x19, x22
	b	LBB0_15
LBB0_9:
	cmp	w20, #9
	b.gt	LBB0_11
; %bb.10:
	mov	x0, x20
	bl	_to_char
	strb	w0, [x19, #-1]!
	b	LBB0_15
LBB0_11:
Lloh0:
	adrp	x8, _LONG_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LONG_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ge	LBB0_13
; %bb.12:
	mov	w8, #52429
	movk	w8, #52428, lsl #16
	umull	x8, w20, w8
	lsr	x21, x8, #35
	mov	w8, #10
	msub	w0, w21, w8, w20
	bl	_to_char
	strb	w0, [x19, #-1]!
	mov	x20, x21
LBB0_13:
	mov	w22, w20
	mov	x20, #7378697629483820646
	movk	x20, #26215
	mov	w21, #10
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	smulh	x8, x22, x20
	asr	x9, x8, #2
	add	x23, x9, x8, lsr #63
	msub	w0, w23, w21, w22
	bl	_to_char
	strb	w0, [x19, #-1]!
	add	x8, x22, #9
	mov	x22, x23
	cmp	x8, #19
	b.hs	LBB0_14
LBB0_15:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_16:
	bl	_abort
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LONG_MAX,4,2                   ; @LONG_MAX
	.no_dead_strip	___ultoa
.subsections_via_symbols
