	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_b_utf8
_get_b_utf8:                            ## @get_b_utf8
	.cfi_startproc
## %bb.0:
                                        ## kill: def $esi killed $esi def $rsi
	xorl	%eax, %eax
	cmpl	%edx, %esi
	jle	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, %r9
	movl	-4(%rdi,%r9,4), %r8d
	movl	$1, %eax
	cmpl	$128, %r8d
	jl	LBB0_10
## %bb.2:
	leal	-1(%rsi), %r10d
	cmpl	%edx, %r10d
	je	LBB0_10
## %bb.3:
	andl	$63, %r8d
	movl	-8(%rdi,%r9,4), %eax
	movl	%eax, %r10d
	shll	$6, %r10d
	cmpl	$191, %eax
	jg	LBB0_5
## %bb.4:
	leal	-2(%rsi), %eax
	cmpl	%edx, %eax
	je	LBB0_5
## %bb.6:
	andl	$4032, %r10d                    ## imm = 0xFC0
	orl	%r8d, %r10d
	movl	-12(%rdi,%r9,4), %r8d
	cmpl	$223, %r8d
	jg	LBB0_8
## %bb.7:
	addl	$-3, %esi
	cmpl	%edx, %esi
	je	LBB0_8
## %bb.9:
	movl	-16(%rdi,%r9,4), %eax
	andl	$14, %eax
	shll	$18, %eax
	andl	$63, %r8d
	shll	$12, %r8d
	orl	%r10d, %r8d
	orl	%eax, %r8d
	movl	$4, %eax
	jmp	LBB0_10
LBB0_5:
	andl	$1984, %r10d                    ## imm = 0x7C0
	orl	%r10d, %r8d
	movl	$2, %eax
	jmp	LBB0_10
LBB0_8:
	shll	$12, %r8d
	movzwl	%r8w, %r8d
	orl	%r10d, %r8d
	movl	$3, %eax
LBB0_10:
	movl	%r8d, (%rcx)
	popq	%rbp
LBB0_11:
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_get_b_utf8
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_b_utf8
_get_b_utf8:                            ; @get_b_utf8
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w1 killed $w1 def $x1
	cmp	w1, w2
	b.le	LBB0_3
; %bb.1:
	sxtw	x9, w1
	sub	x10, x9, #1
	ldr	w8, [x0, x10, lsl #2]
	cmp	w8, #128
	ccmp	w10, w2, #4, ge
	b.ne	LBB0_4
; %bb.2:
	mov	w0, #1
	str	w8, [x3]
	ret
LBB0_3:
	mov	w0, #0
	ret
LBB0_4:
	and	w8, w8, #0x3f
	sub	x11, x9, #2
	ldr	w12, [x0, x11, lsl #2]
	lsl	w10, w12, #6
	cmp	w12, #191
	ccmp	w11, w2, #4, le
	b.ne	LBB0_6
; %bb.5:
	and	w9, w10, #0x7c0
	orr	w8, w9, w8
	mov	w0, #2
	str	w8, [x3]
	ret
LBB0_6:
	and	w10, w10, #0xfc0
	orr	w8, w10, w8
	sub	x11, x9, #3
	ldr	w10, [x0, x11, lsl #2]
	cmp	w10, #223
	ccmp	w11, w2, #4, le
	b.ne	LBB0_8
; %bb.7:
	bfi	w8, w10, #12, #4
	mov	w0, #3
	str	w8, [x3]
	ret
LBB0_8:
	add	x9, x0, x9, lsl #2
	ldur	w9, [x9, #-16]
	lsr	w9, w9, #1
	bfi	w8, w10, #12, #6
	bfi	w8, w9, #19, #3
	mov	w0, #4
	str	w8, [x3]
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_get_b_utf8
.subsections_via_symbols
