	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uint128_to_str                 ## -- Begin function uint128_to_str
	.p2align	4, 0x90
_uint128_to_str:                        ## @uint128_to_str
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $edi killed $edi def $rdi
	leaq	(%rsi,%rdx), %rcx
	addq	$-2, %rcx
	movb	$0, -1(%rsi,%rdx)
	testl	%edi, %edi
	je	LBB0_1
## %bb.2:
	movb	$1, %r8b
	cmpq	%rsi, %rcx
	jb	LBB0_7
## %bb.3:
	leaq	(%rdx,%rsi), %rax
	addq	$-3, %rax
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%edi, %rdx
	imulq	$1717986919, %rdx, %rdi         ## imm = 0x66666667
	movq	%rdi, %rcx
	shrq	$63, %rcx
	sarq	$34, %rdi
	addl	%ecx, %edi
	leal	(%rdi,%rdi), %ecx
	leal	(%rcx,%rcx,4), %r8d
	movl	%edx, %ecx
	subl	%r8d, %ecx
	addb	$48, %cl
	movb	%cl, 1(%rax)
	addl	$-10, %edx
	cmpl	$-19, %edx
	setb	%r8b
	leaq	-1(%rax), %rcx
	cmpl	$-20, %edx
	ja	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%rsi, %rax
	movq	%rcx, %rax
	jae	LBB0_4
LBB0_6:
	incq	%rcx
	jmp	LBB0_7
LBB0_1:
	movb	$48, (%rcx)
	decq	%rcx
	xorl	%r8d, %r8d
LBB0_7:
	incq	%rcx
	xorl	%eax, %eax
	testb	%r8b, %r8b
	cmoveq	%rcx, %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uint128_to_str                 ; -- Begin function uint128_to_str
	.p2align	2
_uint128_to_str:                        ; @uint128_to_str
	.cfi_startproc
; %bb.0:
	add	x8, x1, x2
	sub	x9, x8, #2
	sturb	wzr, [x8, #-1]
	cbz	w0, LBB0_3
; %bb.1:
	cmp	x9, x1
	b.hs	LBB0_4
; %bb.2:
	mov	w8, #1
	b	LBB0_8
LBB0_3:
	mov	w8, #0
	mov	w10, #48
	strb	w10, [x9], #-1
	b	LBB0_8
LBB0_4:
	add	x8, x2, x1
	sub	x9, x8, #3
	mov	w10, #26215
	movk	w10, #26214, lsl #16
	mov	w11, #10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	smull	x8, w0, w10
	lsr	x12, x8, #63
	asr	x8, x8, #34
	add	w12, w8, w12
	msub	w8, w12, w11, w0
	add	w8, w8, #48
	strb	w8, [x9, #1]
	sub	w14, w0, #10
	cmn	w14, #19
	cset	w8, lo
	sub	x13, x9, #1
	cmn	w14, #20
	b.hi	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x12
	cmp	x9, x1
	mov	x9, x13
	b.hs	LBB0_5
LBB0_7:
	add	x9, x13, #1
LBB0_8:
	cmp	w8, #0
	csinc	x0, xzr, x9, ne
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
