	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_stem_string_to_utf8            ## -- Begin function stem_string_to_utf8
	.p2align	4, 0x90
_stem_string_to_utf8:                   ## @stem_string_to_utf8
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movb	(%rdi), %cl
	xorl	%eax, %eax
	jmp	LBB0_1
LBB0_13:                                ##   in Loop: Header=BB0_1 Depth=1
	addq	$3, %rdi
	shll	$12, %r8d
	movzwl	%r8w, %edx
	andl	$63, %ecx
	shll	$6, %ecx
	orl	%edx, %ecx
LBB0_14:                                ##   in Loop: Header=BB0_1 Depth=1
	andl	$63, %r9d
	orl	%ecx, %r9d
	movl	%r9d, %r8d
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rdi, %rdx
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	%r8d, (%rsi,%rax,4)
	incq	%rax
	movzbl	(%rdx), %ecx
	movq	%rdx, %rdi
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	testb	%cl, %cl
	je	LBB0_9
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	1(%rdi), %rdx
	movzbl	%cl, %r8d
	testb	$-128, %r8b
	je	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	testb	$64, %cl
	je	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	testb	$32, %cl
	jne	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movzbl	(%rdx), %ecx
	movl	%ecx, %edx
	andl	$-64, %edx
	cmpl	$128, %edx
	jne	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	addq	$2, %rdi
	andl	$31, %r8d
	shll	$6, %r8d
	andl	$63, %ecx
	orl	%ecx, %r8d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	testb	$16, %cl
	jne	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	movzbl	(%rdx), %ecx
	movl	%ecx, %edx
	andl	$-64, %edx
	cmpl	$128, %edx
	jne	LBB0_9
## %bb.12:                              ##   in Loop: Header=BB0_1 Depth=1
	movzbl	2(%rdi), %r9d
	movl	%r9d, %edx
	andl	$-64, %edx
	cmpl	$128, %edx
	je	LBB0_13
	jmp	LBB0_9
LBB0_15:                                ##   in Loop: Header=BB0_1 Depth=1
	testb	$8, %cl
	jne	LBB0_9
## %bb.16:                              ##   in Loop: Header=BB0_1 Depth=1
	movzbl	(%rdx), %r10d
	movl	%r10d, %edx
	andl	$-64, %edx
	cmpl	$128, %edx
	jne	LBB0_9
## %bb.17:                              ##   in Loop: Header=BB0_1 Depth=1
	movzbl	2(%rdi), %ecx
	movl	%ecx, %edx
	andl	$-64, %edx
	cmpl	$128, %edx
	jne	LBB0_9
## %bb.18:                              ##   in Loop: Header=BB0_1 Depth=1
	movzbl	3(%rdi), %r9d
	movl	%r9d, %edx
	andl	$-64, %edx
	cmpl	$128, %edx
	jne	LBB0_9
## %bb.19:                              ##   in Loop: Header=BB0_1 Depth=1
	addq	$4, %rdi
	andl	$7, %r8d
	shll	$18, %r8d
	andl	$63, %r10d
	shll	$12, %r10d
	orl	%r8d, %r10d
	andl	$63, %ecx
	shll	$6, %ecx
	orl	%r10d, %ecx
	jmp	LBB0_14
LBB0_9:
	movl	%eax, %ecx
	movl	$0, (%rsi,%rcx,4)
                                        ## kill: def $eax killed $eax killed $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	_stem_string_to_utf8            ; -- Begin function stem_string_to_utf8
	.p2align	2
_stem_string_to_utf8:                   ; @stem_string_to_utf8
	.cfi_startproc
; %bb.0:
	ldrb	w9, [x0]
	cbz	w9, LBB0_17
; %bb.1:
	mov	x8, x0
	mov	x0, #0
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x10, x8, #3
	ubfiz	w9, w9, #12, #4
	bfi	w9, w11, #6, #6
	bfxil	w9, w12, #0, #6
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	w9, [x1, x0, lsl #2]
	add	x0, x0, #1
	ldrb	w9, [x10]
	mov	x8, x10
	cbz	w9, LBB0_18
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x10, x8, #1
	tbz	w9, #7, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	tbz	w9, #6, LBB0_19
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	tbnz	w9, #5, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w11, [x10]
	and	w10, w11, #0xc0
	cmp	w10, #128
	b.ne	LBB0_19
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x10, x8, #2
	and	w8, w11, #0x3f
	bfi	w8, w9, #6, #5
	mov	x9, x8
	b	LBB0_3
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	tbnz	w9, #4, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w11, [x10]
	and	w10, w11, #0xc0
	cmp	w10, #128
	b.ne	LBB0_19
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w12, [x8, #2]
	and	w10, w12, #0xc0
	cmp	w10, #128
	b.eq	LBB0_2
	b	LBB0_19
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	tbnz	w9, #3, LBB0_19
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w11, [x10]
	and	w10, w11, #0xc0
	cmp	w10, #128
	b.ne	LBB0_19
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w12, [x8, #2]
	and	w10, w12, #0xc0
	cmp	w10, #128
	b.ne	LBB0_19
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w13, [x8, #3]
	and	w10, w13, #0xc0
	cmp	w10, #128
	b.ne	LBB0_19
; %bb.16:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x10, x8, #4
	ubfiz	w9, w9, #18, #3
	bfi	w9, w11, #12, #6
	bfi	w9, w12, #6, #6
	bfxil	w9, w13, #0, #6
	b	LBB0_3
LBB0_17:
	mov	w0, #0
LBB0_18:
	mov	w8, w0
	str	wzr, [x1, x8, lsl #2]
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
LBB0_19:
	and	x8, x0, #0xffffffff
	str	wzr, [x1, x8, lsl #2]
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
