	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function verify_utf8_sequence
LCPI0_0:
	.byte	15                              ## 0xf
	.byte	63                              ## 0x3f
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
LCPI0_1:
	.byte	7                               ## 0x7
	.byte	63                              ## 0x3f
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_verify_utf8_sequence:                  ## @verify_utf8_sequence
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movzbl	(%rdi), %edi
	callq	_num_bytes_in_utf8_sequence
	movl	%eax, (%r14)
	cmpl	$2, %eax
	je	LBB0_3
## %bb.1:
	cmpl	$1, %eax
	jne	LBB0_6
## %bb.2:
	movzbl	(%r15), %eax
	jmp	LBB0_16
LBB0_3:
	movzbl	1(%r15), %edi
	callq	_IS_CONT
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movzbl	(%r15), %ecx
	andl	$31, %ecx
	shll	$6, %ecx
	movzbl	1(%r15), %eax
	jmp	LBB0_15
LBB0_5:
	movl	(%r14), %eax
LBB0_6:
	cmpl	$3, %eax
	jne	LBB0_10
## %bb.7:
	movzbl	1(%r15), %edi
	callq	_IS_CONT
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movzbl	2(%r15), %edi
	callq	_IS_CONT
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movzwl	(%r15), %eax
	movd	%eax, %xmm0
	pand	LCPI0_0(%rip), %xmm0
	pmovzxbd	%xmm0, %xmm0                    ## xmm0 = xmm0[0],zero,zero,zero,xmm0[1],zero,zero,zero,xmm0[2],zero,zero,zero,xmm0[3],zero,zero,zero
	movdqa	%xmm0, %xmm1
	pslld	$12, %xmm1
	pslld	$6, %xmm0
	pshufd	$85, %xmm0, %xmm0               ## xmm0 = xmm0[1,1,1,1]
	por	%xmm1, %xmm0
	movd	%xmm0, %ecx
	movzbl	2(%r15), %eax
	jmp	LBB0_15
LBB0_10:
	xorl	%ebx, %ebx
	cmpl	$4, (%r14)
	jne	LBB0_24
## %bb.11:
	movzbl	1(%r15), %edi
	callq	_IS_CONT
	testq	%rax, %rax
	je	LBB0_24
## %bb.12:
	movzbl	2(%r15), %edi
	callq	_IS_CONT
	testq	%rax, %rax
	je	LBB0_24
## %bb.13:
	movzbl	3(%r15), %edi
	callq	_IS_CONT
	testq	%rax, %rax
	je	LBB0_24
## %bb.14:
	movzwl	(%r15), %eax
	movd	%eax, %xmm0
	pand	LCPI0_1(%rip), %xmm0
	pmovzxbd	%xmm0, %xmm0                    ## xmm0 = xmm0[0],zero,zero,zero,xmm0[1],zero,zero,zero,xmm0[2],zero,zero,zero,xmm0[3],zero,zero,zero
	movdqa	%xmm0, %xmm1
	pslld	$12, %xmm1
	pslld	$6, %xmm0
	pshufd	$85, %xmm0, %xmm0               ## xmm0 = xmm0[1,1,1,1]
	por	%xmm1, %xmm0
	movd	%xmm0, %eax
	movzbl	2(%r15), %ecx
	andl	$63, %ecx
	orl	%eax, %ecx
	shll	$6, %ecx
	movzbl	3(%r15), %eax
LBB0_15:
	andl	$63, %eax
	orl	%ecx, %eax
LBB0_16:
	xorl	%ebx, %ebx
	cmpl	$127, %eax
	ja	LBB0_18
## %bb.17:
	cmpl	$1, (%r14)
	jg	LBB0_24
LBB0_23:
	andl	$-2048, %eax                    ## imm = 0xF800
	xorl	%ebx, %ebx
	cmpl	$55296, %eax                    ## imm = 0xD800
	setne	%bl
LBB0_24:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	cmpl	$2047, %eax                     ## imm = 0x7FF
	ja	LBB0_20
## %bb.19:
	cmpl	$2, (%r14)
	jle	LBB0_23
	jmp	LBB0_24
LBB0_20:
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	ja	LBB0_22
## %bb.21:
	cmpl	$3, (%r14)
	jle	LBB0_23
	jmp	LBB0_24
LBB0_22:
	cmpl	$1114111, %eax                  ## imm = 0x10FFFF
	jbe	LBB0_23
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_verify_utf8_sequence
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function verify_utf8_sequence
_verify_utf8_sequence:                  ; @verify_utf8_sequence
	.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, x1
	mov	x20, x0
	ldrb	w0, [x0]
	bl	_num_bytes_in_utf8_sequence
	str	w0, [x19]
	cmp	w0, #2
	b.eq	LBB0_4
; %bb.1:
	cmp	w0, #1
	b.ne	LBB0_11
; %bb.2:
	ldrb	w8, [x20]
	cmp	w8, #127
	b.hi	LBB0_6
LBB0_3:
	ldr	w9, [x19]
	cmp	w9, #1
	b.gt	LBB0_21
	b	LBB0_22
LBB0_4:
	ldrb	w0, [x20, #1]
	bl	_IS_CONT
	cbz	x0, LBB0_10
; %bb.5:
	ldrb	w8, [x20]
	and	w9, w8, #0x1f
	ldrb	w8, [x20, #1]
	and	w8, w8, #0x3f
	bfi	w8, w9, #6, #5
	cmp	w8, #127
	b.ls	LBB0_3
LBB0_6:
	cmp	w8, #2047
	b.hi	LBB0_8
; %bb.7:
	ldr	w9, [x19]
	cmp	w9, #2
	b.le	LBB0_22
	b	LBB0_21
LBB0_8:
	lsr	w9, w8, #16
	cbnz	w9, LBB0_20
; %bb.9:
	ldr	w9, [x19]
	cmp	w9, #3
	b.gt	LBB0_21
	b	LBB0_22
LBB0_10:
	ldr	w0, [x19]
LBB0_11:
	cmp	w0, #3
	b.ne	LBB0_15
; %bb.12:
	ldrb	w0, [x20, #1]
	bl	_IS_CONT
	cbz	x0, LBB0_15
; %bb.13:
	ldrb	w0, [x20, #2]
	bl	_IS_CONT
	cbz	x0, LBB0_15
; %bb.14:
	ldrb	w8, [x20]
	and	w8, w8, #0xf
	ldrb	w9, [x20, #1]
	and	w9, w9, #0x3f
	lsl	w8, w8, #12
	bfi	w8, w9, #6, #6
	ldrb	w9, [x20, #2]
	bfxil	w8, w9, #0, #6
	cmp	w8, #127
	b.hi	LBB0_6
	b	LBB0_3
LBB0_15:
	ldr	w8, [x19]
	cmp	w8, #4
	b.ne	LBB0_21
; %bb.16:
	ldrb	w0, [x20, #1]
	bl	_IS_CONT
	cbz	x0, LBB0_23
; %bb.17:
	ldrb	w0, [x20, #2]
	bl	_IS_CONT
	cbz	x0, LBB0_23
; %bb.18:
	ldrb	w0, [x20, #3]
	bl	_IS_CONT
	cbz	x0, LBB0_23
; %bb.19:
	ldrb	w8, [x20]
	and	w8, w8, #0x7
	ldrb	w9, [x20, #1]
	and	w9, w9, #0x3f
	lsl	w10, w8, #12
	bfi	w10, w9, #6, #6
	ldrb	w8, [x20, #2]
	bfxil	w10, w8, #0, #6
	ldrb	w8, [x20, #3]
	and	w8, w8, #0x3f
	bfi	w8, w10, #6, #15
	cmp	w8, #127
	b.ls	LBB0_3
	b	LBB0_6
LBB0_20:
	cmp	w9, #16
	b.ls	LBB0_22
LBB0_21:
	mov	w0, #0
	b	LBB0_23
LBB0_22:
	lsr	w8, w8, #11
	cmp	w8, #27
	cset	w0, ne
LBB0_23:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_verify_utf8_sequence
.subsections_via_symbols
