	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_utf8
_get_utf8:                              ## @get_utf8
	.cfi_startproc
## %bb.0:
                                        ## kill: def $esi killed $esi def $rsi
	xorl	%eax, %eax
	cmpl	%edx, %esi
	jge	LBB0_11
## %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movslq	%esi, %rax
	movl	(%rdi,%rax,4), %r8d
	movl	$1, %eax
	cmpl	$192, %r8d
	jl	LBB0_10
## %bb.2:
	leal	1(%rsi), %r9d
	cmpl	%edx, %r9d
	je	LBB0_10
## %bb.3:
	movslq	%r9d, %rax
	movl	(%rdi,%rax,4), %r10d
	andl	$63, %r10d
	cmpl	$224, %r8d
	jb	LBB0_5
## %bb.4:
	leal	2(%rsi), %r9d
	cmpl	%edx, %r9d
	je	LBB0_5
## %bb.6:
	movslq	%r9d, %rax
	movl	(%rdi,%rax,4), %r9d
	andl	$63, %r9d
	cmpl	$240, %r8d
	jb	LBB0_8
## %bb.7:
	addl	$3, %esi
	cmpl	%edx, %esi
	je	LBB0_8
## %bb.9:
	andl	$14, %r8d
	shll	$18, %r8d
	shll	$12, %r10d
	orl	%r8d, %r10d
	shll	$6, %r9d
	orl	%r10d, %r9d
	movslq	%esi, %rax
	movl	(%rdi,%rax,4), %r8d
	andl	$63, %r8d
	orl	%r9d, %r8d
	movl	$4, %eax
	jmp	LBB0_10
LBB0_5:
	andl	$31, %r8d
	shll	$6, %r8d
	orl	%r10d, %r8d
	movl	$2, %eax
	jmp	LBB0_10
LBB0_8:
	shll	$12, %r8d
	movzwl	%r8w, %eax
	shll	$6, %r10d
	orl	%eax, %r10d
	orl	%r10d, %r9d
	movl	$3, %eax
	movl	%r9d, %r8d
LBB0_10:
	movl	%r8d, (%rcx)
	popq	%rbp
LBB0_11:
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_get_utf8
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_utf8
_get_utf8:                              ; @get_utf8
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w1 killed $w1 def $x1
	cmp	w1, w2
	b.ge	LBB0_3
; %bb.1:
	sxtw	x10, w1
	add	x9, x10, #1
	ldr	w8, [x0, w1, sxtw #2]
	cmp	w8, #192
	ccmp	w9, w2, #4, ge
	b.ne	LBB0_4
; %bb.2:
	mov	w0, #1
	str	w8, [x3]
	ret
LBB0_3:
	mov	w0, #0
	ret
LBB0_4:
	add	x11, x10, #2
	ldr	w9, [x0, x9, lsl #2]
	and	w9, w9, #0x3f
	cmp	w8, #224
	ccmp	w11, w2, #4, hs
	b.ne	LBB0_6
; %bb.5:
	bfi	w9, w8, #6, #5
	mov	w0, #2
	str	w9, [x3]
	ret
LBB0_6:
	ldr	w11, [x0, x11, lsl #2]
	and	w11, w11, #0x3f
	cmp	w8, #240
	b.lo	LBB0_9
; %bb.7:
	add	x10, x10, #3
	cmp	w10, w2
	b.eq	LBB0_9
; %bb.8:
	lsl	w8, w8, #18
	and	w8, w8, #0x380000
	bfi	w8, w9, #12, #6
	bfi	w8, w11, #6, #6
	ldr	w9, [x0, x10, lsl #2]
	bfxil	w8, w9, #0, #6
	mov	w0, #4
	str	w8, [x3]
	ret
LBB0_9:
	ubfiz	w8, w8, #12, #4
	bfi	w8, w9, #6, #6
	orr	w8, w11, w8
	mov	w0, #3
	str	w8, [x3]
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_get_utf8
.subsections_via_symbols
