	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function uni_to_str
LCPI0_0:
	.byte	0                               ## 0x0
	.byte	8                               ## 0x8
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_uni_to_str:                            ## @uni_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
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_lstrlen
	testl	%eax, %eax
	jle	LBB0_16
## %bb.1:
	movl	%eax, %r9d
	cmpl	$4, %eax
	jb	LBB0_2
## %bb.3:
	leaq	(%rbx,%r9,8), %rdx
	cmpq	%r14, %rdx
	jbe	LBB0_6
## %bb.4:
	leaq	(%r14,%r9), %rdx
	cmpq	%rbx, %rdx
	jbe	LBB0_6
LBB0_2:
	xorl	%edx, %edx
LBB0_12:
	movq	%rdx, %rsi
	notq	%rsi
	addq	%r9, %rsi
	movq	%r9, %rdi
	andq	$3, %rdi
	je	LBB0_14
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx,%rdx,8), %ecx
	movb	%cl, (%r14,%rdx)
	incq	%rdx
	decq	%rdi
	jne	LBB0_13
LBB0_14:
	cmpq	$3, %rsi
	jb	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx,%rdx,8), %ecx
	movb	%cl, (%r14,%rdx)
	movzbl	8(%rbx,%rdx,8), %ecx
	movb	%cl, 1(%r14,%rdx)
	movzbl	16(%rbx,%rdx,8), %ecx
	movb	%cl, 2(%r14,%rdx)
	movzbl	24(%rbx,%rdx,8), %ecx
	movb	%cl, 3(%r14,%rdx)
	addq	$4, %rdx
	cmpq	%rdx, %r9
	jne	LBB0_15
	jmp	LBB0_16
LBB0_6:
	movl	%r9d, %edx
	andl	$-4, %edx
	leaq	-4(%rdx), %rsi
	movq	%rsi, %r8
	shrq	$2, %r8
	incq	%r8
	testq	%rsi, %rsi
	je	LBB0_17
## %bb.7:
	movq	%r8, %rdi
	andq	$-2, %rdi
	xorl	%esi, %esi
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = <0,8,u,u,u,u,u,u,u,u,u,u,u,u,u,u>
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rbx,%rsi,8), %xmm1
	movdqu	16(%rbx,%rsi,8), %xmm2
	pshufb	%xmm0, %xmm1
	pextrw	$0, %xmm1, (%r14,%rsi)
	pshufb	%xmm0, %xmm2
	pextrw	$0, %xmm2, 2(%r14,%rsi)
	movdqu	32(%rbx,%rsi,8), %xmm1
	movdqu	48(%rbx,%rsi,8), %xmm2
	pshufb	%xmm0, %xmm1
	pextrw	$0, %xmm1, 4(%r14,%rsi)
	pshufb	%xmm0, %xmm2
	pextrw	$0, %xmm2, 6(%r14,%rsi)
	addq	$8, %rsi
	addq	$-2, %rdi
	jne	LBB0_8
## %bb.9:
	testb	$1, %r8b
	je	LBB0_11
LBB0_10:
	movdqu	(%rbx,%rsi,8), %xmm0
	movdqu	16(%rbx,%rsi,8), %xmm1
	movdqa	LCPI0_0(%rip), %xmm2            ## xmm2 = <0,8,u,u,u,u,u,u,u,u,u,u,u,u,u,u>
	pshufb	%xmm2, %xmm0
	pextrw	$0, %xmm0, (%r14,%rsi)
	pshufb	%xmm2, %xmm1
	pextrw	$0, %xmm1, 2(%r14,%rsi)
LBB0_11:
	cmpq	%r9, %rdx
	jne	LBB0_12
LBB0_16:
	cltq
	movb	$0, (%r14,%rax)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_17:
	xorl	%esi, %esi
	testb	$1, %r8b
	jne	LBB0_10
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_uni_to_str
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uni_to_str
_uni_to_str:                            ; @uni_to_str
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_lstrlen
	cmp	w0, #1
	b.lt	LBB0_8
; %bb.1:
	mov	w8, w0
	cmp	w0, #8
	b.lo	LBB0_5
; %bb.2:
	add	x9, x19, x8
	add	x10, x20, x8, lsl #3
	cmp	x10, x19
	ccmp	x9, x20, #0, hi
	b.hi	LBB0_5
; %bb.3:
	cmp	w0, #32
	b.hs	LBB0_9
; %bb.4:
	mov	x9, #0
	b	LBB0_13
LBB0_5:
	mov	x9, #0
LBB0_6:
	add	x10, x19, x9
	add	x11, x20, x9, lsl #3
	sub	x8, x8, x9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x11], #8
	strb	w9, [x10], #1
	subs	x8, x8, #1
	b.ne	LBB0_7
LBB0_8:
	strb	wzr, [x19, w0, sxtw]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
	and	x9, x8, #0xffffffe0
	add	x10, x20, #128
	add	x11, x19, #16
	mov	x12, x9
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldp	q1, q0, [x10, #-128]
	ldp	q3, q2, [x10, #-96]
	ldp	q5, q4, [x10, #-64]
	ldp	q7, q6, [x10, #-32]
	ldp	q17, q16, [x10]
	ldp	q19, q18, [x10, #32]
	ldp	q21, q20, [x10, #64]
	ldp	q23, q22, [x10, #96]
	uzp1.4s	v6, v7, v6
	uzp1.4s	v4, v5, v4
	uzp1.8h	v4, v4, v6
	uzp1.4s	v2, v3, v2
	uzp1.4s	v0, v1, v0
	uzp1.8h	v0, v0, v2
	uzp1.16b	v0, v0, v4
	uzp1.4s	v1, v23, v22
	uzp1.4s	v2, v21, v20
	uzp1.8h	v1, v2, v1
	uzp1.4s	v2, v19, v18
	uzp1.4s	v3, v17, v16
	uzp1.8h	v2, v3, v2
	uzp1.16b	v1, v2, v1
	stp	q0, q1, [x11, #-16]
	add	x10, x10, #256
	add	x11, x11, #32
	subs	x12, x12, #32
	b.ne	LBB0_10
; %bb.11:
	cmp	x9, x8
	b.eq	LBB0_8
; %bb.12:
	tst	x8, #0x18
	b.eq	LBB0_6
LBB0_13:
	mov	x12, x9
	and	x9, x8, #0xfffffff8
	add	x10, x20, x12, lsl #3
	add	x11, x19, x12
	sub	x12, x12, x9
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldp	q1, q0, [x10]
	ldp	q3, q2, [x10, #32]
	uzp1.4s	v2, v3, v2
	uzp1.4s	v0, v1, v0
	uzp1.8h	v0, v0, v2
	xtn.8b	v0, v0
	str	d0, [x11], #8
	add	x10, x10, #64
	adds	x12, x12, #8
	b.ne	LBB0_14
; %bb.15:
	cmp	x9, x8
	b.eq	LBB0_8
	b	LBB0_6
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_uni_to_str
.subsections_via_symbols
