	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function utf8len
_utf8len:                               ## @utf8len
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_utf8len_codepage@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movzbl	(%rdi), %ecx
	movslq	(%rax,%rcx,4), %r8
	leaq	(%rdi,%r8), %rdx
	movl	$1, %eax
	cmpq	%rsi, %rdx
	ja	LBB0_6
## %bb.1:
	cmpl	$2, %r8d
	jl	LBB0_5
## %bb.2:
	movl	%r8d, %edx
	movl	$1, %esi
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rdi,%rsi), %ecx
	andb	$-64, %cl
	cmpb	$-128, %cl
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rsi
	cmpq	%rsi, %rdx
	jne	LBB0_3
LBB0_5:
	movl	%r8d, %eax
LBB0_6:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_utf8len_codepage,8,3           ## @utf8len_codepage
	.no_dead_strip	_utf8len
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function utf8len
_utf8len:                               ; @utf8len
	.cfi_startproc
; %bb.0:
	mov	x8, x0
Lloh0:
	adrp	x9, _utf8len_codepage@GOTPAGE
Lloh1:
	ldr	x9, [x9, _utf8len_codepage@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldrb	w10, [x0]
	ldrsw	x0, [x9, x10, lsl #2]
	add	x9, x8, x0
	cmp	x9, x1
	b.ls	LBB0_2
LBB0_1:
	mov	w0, #1
	b	LBB0_6
LBB0_2:
	cmp	w0, #2
	b.lt	LBB0_6
; %bb.3:
	and	x9, x0, #0xffffffff
	add	x8, x8, #1
	sub	x9, x9, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x8]
	and	w10, w10, #0xc0
	cmp	w10, #128
	b.ne	LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x8, #1
	subs	x9, x9, #1
	b.ne	LBB0_4
LBB0_6:
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_utf8len_codepage,8,3           ; @utf8len_codepage
	.no_dead_strip	_utf8len
.subsections_via_symbols
