	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function to_str
_to_str:                                ## @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 $edx killed $edx def $rdx
	movq	_ESCAPE@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	%al, (%rdi)
	cmpl	$129, %edx
	je	LBB0_1
## %bb.2:
	cmpl	$128, %edx
	jne	LBB0_7
## %bb.3:
	movq	_UCS4_ESC@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_1:
	movq	_UCS2_ESC@GOTPCREL(%rip), %rax
LBB0_4:
	movb	(%rax), %al
	movb	%al, 1(%rdi)
	addl	$4, %edx
	movl	$2, %eax
	movq	_xdig@GOTPCREL(%rip), %r8
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	leal	-8(%rdx), %ecx
	movl	%esi, %r9d
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %r9d
	movq	(%r8), %rcx
	andl	$15, %r9d
	movzbl	(%rcx,%r9,4), %ecx
	movb	%cl, (%rdi,%rax)
	addl	$-4, %edx
	incq	%rax
	cmpl	$4, %edx
	ja	LBB0_5
## %bb.6:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_7:
	xorl	%eax, %eax
	callq	_abort
	.cfi_endproc
                                        ## -- End function
	.comm	_ESCAPE,4,2                     ## @ESCAPE
	.comm	_UCS2_ESC,4,2                   ## @UCS2_ESC
	.comm	_UCS4_ESC,4,2                   ## @UCS4_ESC
	.comm	_xdig,8,3                       ## @xdig
	.no_dead_strip	_to_str
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function to_str
_to_str:                                ; @to_str
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _ESCAPE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ESCAPE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	strb	w8, [x0]
	cmp	w2, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w2, #128
	b.ne	LBB0_7
; %bb.2:
Lloh3:
	adrp	x8, _UCS4_ESC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _UCS4_ESC@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x8, _UCS2_ESC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _UCS2_ESC@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	strb	w8, [x0, #1]
	add	w9, w2, #4
	mov	w8, #2
Lloh7:
	adrp	x10, _xdig@GOTPAGE
Lloh8:
	ldr	x10, [x10, _xdig@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10]
	sub	w12, w9, #8
	asr	w12, w1, w12
	and	w12, w12, #0xf
	ldr	w11, [x11, w12, uxtw #2]
	strb	w11, [x0, x8]
	sub	w9, w9, #4
	add	x8, x8, #1
	cmp	w9, #4
	b.hi	LBB0_5
; %bb.6:
	mov	x0, x8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_7:
	bl	_abort
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ESCAPE,4,2                     ; @ESCAPE
	.comm	_UCS2_ESC,4,2                   ; @UCS2_ESC
	.comm	_UCS4_ESC,4,2                   ; @UCS4_ESC
	.comm	_xdig,8,3                       ; @xdig
	.no_dead_strip	_to_str
.subsections_via_symbols
