	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function len_utf8
LCPI0_0:
	.long	4294967104                      ## 0xffffff40
	.long	4294967104                      ## 0xffffff40
	.long	4294967104                      ## 0xffffff40
	.long	4294967104                      ## 0xffffff40
LCPI0_1:
	.long	4294967231                      ## 0xffffffbf
	.long	4294967231                      ## 0xffffffbf
	.long	4294967231                      ## 0xffffffbf
	.long	4294967231                      ## 0xffffffbf
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_len_utf8
	.p2align	4, 0x90
_len_utf8:                              ## @len_utf8
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_SIZE
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	leal	-1(%rax), %edx
	cmpl	$7, %edx
	jae	LBB0_4
## %bb.3:
	xorl	%ecx, %ecx
	jmp	LBB0_12
LBB0_1:
	xorl	%ecx, %ecx
	jmp	LBB0_14
LBB0_4:
	incq	%rdx
	movq	%rdx, %r8
	andq	$-8, %r8
	leaq	-8(%r8), %rcx
	movq	%rcx, %rsi
	shrq	$3, %rsi
	incq	%rsi
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.6:
	movq	%rsi, %rcx
	andq	$-2, %rcx
	pxor	%xmm0, %xmm0
	xorl	%edi, %edi
	movdqa	LCPI0_0(%rip), %xmm8            ## xmm8 = [4294967104,4294967104,4294967104,4294967104]
	movdqa	LCPI0_1(%rip), %xmm3            ## xmm3 = [4294967231,4294967231,4294967231,4294967231]
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rbx,%rdi,4), %xmm2
	movdqu	16(%rbx,%rdi,4), %xmm5
	movdqu	32(%rbx,%rdi,4), %xmm6
	movdqu	48(%rbx,%rdi,4), %xmm7
	paddd	%xmm8, %xmm2
	paddd	%xmm8, %xmm5
	movdqa	%xmm2, %xmm4
	pminud	%xmm3, %xmm4
	pcmpeqd	%xmm2, %xmm4
	psubd	%xmm4, %xmm0
	movdqa	%xmm5, %xmm2
	pminud	%xmm3, %xmm2
	pcmpeqd	%xmm5, %xmm2
	psubd	%xmm2, %xmm1
	paddd	%xmm8, %xmm6
	paddd	%xmm8, %xmm7
	movdqa	%xmm6, %xmm2
	pminud	%xmm3, %xmm2
	pcmpeqd	%xmm6, %xmm2
	psubd	%xmm2, %xmm0
	movdqa	%xmm7, %xmm2
	pminud	%xmm3, %xmm2
	pcmpeqd	%xmm7, %xmm2
	psubd	%xmm2, %xmm1
	addq	$16, %rdi
	addq	$-2, %rcx
	jne	LBB0_7
## %bb.8:
	testb	$1, %sil
	je	LBB0_10
LBB0_9:
	movdqu	(%rbx,%rdi,4), %xmm2
	movdqu	16(%rbx,%rdi,4), %xmm3
	movdqa	LCPI0_0(%rip), %xmm4            ## xmm4 = [4294967104,4294967104,4294967104,4294967104]
	paddd	%xmm4, %xmm2
	paddd	%xmm4, %xmm3
	movdqa	LCPI0_1(%rip), %xmm4            ## xmm4 = [4294967231,4294967231,4294967231,4294967231]
	movdqa	%xmm2, %xmm5
	pminud	%xmm4, %xmm5
	pcmpeqd	%xmm2, %xmm5
	psubd	%xmm5, %xmm0
	pminud	%xmm3, %xmm4
	pcmpeqd	%xmm3, %xmm4
	psubd	%xmm4, %xmm1
LBB0_10:
	paddd	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddd	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	paddd	%xmm1, %xmm0
	movd	%xmm0, %ecx
	cmpq	%r8, %rdx
	je	LBB0_14
## %bb.11:
	leaq	(%rbx,%r8,4), %rbx
	subl	%r8d, %eax
LBB0_12:
	movl	%eax, %eax
	xorl	%edx, %edx
	movl	$-192, %esi
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rbx,%rdx,4), %edi
	addl	%esi, %edi
	cmpl	$-64, %edi
	adcl	$0, %ecx
	incq	%rdx
	cmpl	%edx, %eax
	jne	LBB0_13
LBB0_14:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_5:
	pxor	%xmm0, %xmm0
	xorl	%edi, %edi
	pxor	%xmm1, %xmm1
	testb	$1, %sil
	jne	LBB0_9
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_len_utf8                       ; -- Begin function len_utf8
	.p2align	2
_len_utf8:                              ; @len_utf8
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_SIZE
	cbz	w0, LBB0_3
; %bb.1:
	sub	w8, w0, #1
	cmp	w8, #15
	b.hs	LBB0_4
; %bb.2:
	mov	w8, #0
	mov	x9, x19
	b	LBB0_7
LBB0_3:
	mov	w8, #0
	b	LBB0_8
LBB0_4:
	add	x10, x8, #1
	and	x11, x10, #0x1fffffff0
	add	x9, x19, x11, lsl #2
	sub	w0, w0, w11
	add	x8, x19, #32
	movi.2d	v0, #0000000000000000
	mvni.4s	v1, #191
	mvni.4s	v2, #63
	mov	x12, x11
	movi.2d	v3, #0000000000000000
	movi.2d	v4, #0000000000000000
	movi.2d	v5, #0000000000000000
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q6, q7, [x8, #-32]
	ldp	q16, q17, [x8], #64
	add.4s	v6, v6, v1
	add.4s	v7, v7, v1
	add.4s	v16, v16, v1
	add.4s	v17, v17, v1
	cmhi.4s	v6, v2, v6
	cmhi.4s	v7, v2, v7
	cmhi.4s	v16, v2, v16
	cmhi.4s	v17, v2, v17
	sub.4s	v0, v0, v6
	sub.4s	v3, v3, v7
	sub.4s	v4, v4, v16
	sub.4s	v5, v5, v17
	subs	x12, x12, #16
	b.ne	LBB0_5
; %bb.6:
	add.4s	v0, v3, v0
	add.4s	v0, v4, v0
	add.4s	v0, v5, v0
	addv.4s	s0, v0
	fmov	w8, s0
	cmp	x10, x11
	b.eq	LBB0_8
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9], #4
	sub	w10, w10, #192
	cmn	w10, #64
	cinc	w8, w8, lo
	sub	w0, w0, #1
	cbnz	w0, LBB0_7
LBB0_8:
	mov	x0, x8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
