	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function utf8_strlen
_utf8_strlen:                           ## @utf8_strlen
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	xorl	%eax, %eax
	testl	%esi, %esi
	jle	LBB0_8
## %bb.1:
	xorl	%ecx, %ecx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	addl	%r9d, %ecx
	incl	%eax
	cmpl	%esi, %ecx
	jge	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, %edx
	movzbl	(%rdi,%rdx), %r8d
	movl	$1, %r9d
	testb	$-128, %r8b
	je	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r8d, %edx
	andl	$-32, %edx
	movl	$2, %r9d
	cmpl	$192, %edx
	je	LBB0_2
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r8d, %edx
	andl	$-16, %edx
	movl	$3, %r9d
	cmpl	$224, %edx
	je	LBB0_2
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	andl	$-8, %r8d
	movl	$4, %r9d
	cmpl	$240, %r8d
	je	LBB0_2
## %bb.7:
	xorl	%eax, %eax
LBB0_8:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_utf8_strlen
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function utf8_strlen
_utf8_strlen:                           ; @utf8_strlen
	.cfi_startproc
; %bb.0:
	cmp	w1, #1
	b.lt	LBB0_12
; %bb.1:
	mov	w8, #0
	mov	w9, #0
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w10, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w8, w8, #1
	add	w9, w9, w10
	cmp	w9, w1
	b.ge	LBB0_11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x0, w9, uxtw]
	tbz	w10, #7, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	and	w11, w10, #0xe0
	cmp	w11, #192
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w10, #2
	b	LBB0_3
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	and	w11, w10, #0xf0
	cmp	w11, #224
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w10, #3
	b	LBB0_3
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	and	w10, w10, #0xf8
	cmp	w10, #240
	b.ne	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w10, #4
	b	LBB0_3
LBB0_11:
	mov	x0, x8
	ret
LBB0_12:
	mov	w0, #0
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_utf8_strlen
.subsections_via_symbols
