	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_utf8cpy                        ## -- Begin function utf8cpy
	.p2align	4, 0x90
_utf8cpy:                               ## @utf8cpy
	.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
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	cmpl	$0, (%rdx)
	je	LBB0_3
## %bb.10:
	movq	%rdx, %rbx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
	subq	$1, %rcx
	jb	LBB0_4
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_12 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	4(%rbx), %eax
	addq	$4, %rbx
	movl	%eax, %edi
	andl	$192, %edi
	cmpl	$128, %edi
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_12 Depth=1
	testl	%eax, %eax
	jne	LBB0_12
	jmp	LBB0_4
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_3:
	movq	%rdx, %rbx
LBB0_4:
	subq	%rdx, %rbx
	sarq	$2, %rbx
	leaq	-1(%rsi), %rax
	cmpq	%rax, %rbx
	jbe	LBB0_8
## %bb.5:
	shlq	$2, %rsi
	movl	$192, %eax
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	-4(%rdx,%rsi), %ecx
	andl	%eax, %ecx
	addq	$-4, %rsi
	cmpl	$128, %ecx
	je	LBB0_6
## %bb.7:
	sarq	$2, %rsi
	movq	%rsi, %rbx
LBB0_8:
	movq	%r14, %rdi
	movq	%rdx, %rsi
	movl	%ebx, %edx
	callq	_memcpy
	movb	$0, (%r14,%rbx)
LBB0_9:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	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	_utf8cpy                        ; -- Begin function utf8cpy
	.p2align	2
_utf8cpy:                               ; @utf8cpy
	.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
	cbz	x2, LBB0_7
; %bb.1:
	mov	x19, x0
	ldr	w8, [x2]
	cbz	w8, LBB0_8
; %bb.2:
	mov	x8, x2
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	cbz	x3, LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	x3, x3, #1
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w9, [x8, #4]!
	and	w10, w9, #0xc0
	cmp	w10, #128
	b.eq	LBB0_5
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	cbnz	w9, LBB0_3
	b	LBB0_9
LBB0_7:
	mov	x20, #0
	b	LBB0_14
LBB0_8:
	mov	x8, x2
LBB0_9:
	sub	x8, x8, x2
	asr	x20, x8, #2
	sub	x8, x1, #1
	cmp	x20, x8
	b.ls	LBB0_13
; %bb.10:
	lsl	x8, x1, #2
	sub	x9, x2, #4
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9, x8]
	and	w10, w10, #0xc0
	sub	x8, x8, #4
	cmp	w10, #128
	b.eq	LBB0_11
; %bb.12:
	asr	x20, x8, #2
LBB0_13:
	mov	x0, x19
	mov	x1, x2
	mov	x2, x20
	bl	_memcpy
	strb	wzr, [x19, x20]
LBB0_14:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
