	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isLegalUTF8
_isLegalUTF8:                           ## @isLegalUTF8
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $esi killed $esi def $rsi
	xorl	%eax, %eax
	leal	-1(%rsi), %edx
	cmpl	$3, %edx
	ja	LBB0_17
## %bb.1:
	movslq	%esi, %rcx
	leaq	(%rdi,%rcx,4), %rcx
	leaq	LJTI0_0(%rip), %rsi
	movslq	(%rsi,%rdx,4), %rdx
	addq	%rsi, %rdx
	jmpq	*%rdx
LBB0_14:
	movl	(%rdi), %ecx
LBB0_15:
	leal	-128(%rcx), %edx
	cmpl	$66, %edx
	jb	LBB0_17
LBB0_16:
	xorl	%eax, %eax
	cmpl	$245, %ecx
	setl	%al
	jmp	LBB0_17
LBB0_2:
	movl	$-192, %edx
	addl	-4(%rcx), %edx
	cmpl	$-64, %edx
	jb	LBB0_17
## %bb.3:
	addq	$-4, %rcx
LBB0_4:
	movl	$-192, %edx
	addl	-4(%rcx), %edx
	cmpl	$-64, %edx
	jb	LBB0_17
## %bb.5:
	addq	$-4, %rcx
LBB0_6:
	movl	-4(%rcx), %edx
	cmpl	$191, %edx
	jle	LBB0_7
LBB0_17:
	popq	%rbp
	retq
LBB0_7:
	movl	(%rdi), %ecx
	leal	-224(%rcx), %esi
	cmpl	$20, %esi
	ja	LBB0_13
## %bb.8:
	leaq	LJTI0_1(%rip), %rdi
	movslq	(%rdi,%rsi,4), %rsi
	addq	%rdi, %rsi
	jmpq	*%rsi
LBB0_9:
	movl	$224, %ecx
	cmpl	$160, %edx
	jge	LBB0_16
	jmp	LBB0_17
LBB0_13:
	cmpl	$128, %edx
	jge	LBB0_15
	jmp	LBB0_17
LBB0_10:
	movl	$237, %ecx
	cmpl	$159, %edx
	jle	LBB0_16
	jmp	LBB0_17
LBB0_11:
	movl	$240, %ecx
	cmpl	$144, %edx
	jge	LBB0_16
	jmp	LBB0_17
LBB0_12:
	movl	$244, %ecx
	cmpl	$143, %edx
	jle	LBB0_16
	jmp	LBB0_17
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
LJTI0_0:
	.long	L0_0_set_14
	.long	L0_0_set_6
	.long	L0_0_set_4
	.long	L0_0_set_2
.set L0_1_set_9, LBB0_9-LJTI0_1
.set L0_1_set_13, LBB0_13-LJTI0_1
.set L0_1_set_10, LBB0_10-LJTI0_1
.set L0_1_set_11, LBB0_11-LJTI0_1
.set L0_1_set_12, LBB0_12-LJTI0_1
LJTI0_1:
	.long	L0_1_set_9
	.long	L0_1_set_13
	.long	L0_1_set_13
	.long	L0_1_set_13
	.long	L0_1_set_13
	.long	L0_1_set_13
	.long	L0_1_set_13
	.long	L0_1_set_13
	.long	L0_1_set_13
	.long	L0_1_set_13
	.long	L0_1_set_13
	.long	L0_1_set_13
	.long	L0_1_set_13
	.long	L0_1_set_10
	.long	L0_1_set_13
	.long	L0_1_set_13
	.long	L0_1_set_11
	.long	L0_1_set_13
	.long	L0_1_set_13
	.long	L0_1_set_13
	.long	L0_1_set_12
	.end_data_region
                                        ## -- End function
	.no_dead_strip	_isLegalUTF8
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function isLegalUTF8
_isLegalUTF8:                           ; @isLegalUTF8
	.cfi_startproc
; %bb.0:
	sub	w9, w1, #1
	cmp	w9, #3
	b.hi	LBB0_8
; %bb.1:
	add	x8, x0, w1, sxtw #2
Lloh0:
	adrp	x10, lJTI0_0@PAGE
Lloh1:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
	ldr	w8, [x0]
LBB0_3:
	sub	w9, w8, #128
	cmp	w9, #66
	b.lo	LBB0_8
LBB0_4:
	cmp	w8, #245
	cset	w0, lt
	ret
LBB0_5:
	ldr	w9, [x8, #-4]!
	sub	w9, w9, #192
	cmn	w9, #64
	b.lo	LBB0_8
LBB0_6:
	ldr	w9, [x8, #-4]!
	sub	w9, w9, #192
	cmn	w9, #64
	b.lo	LBB0_8
LBB0_7:
	ldur	w9, [x8, #-4]
	cmp	w9, #191
	b.le	LBB0_9
LBB0_8:
	mov	w0, #0
	ret
LBB0_9:
	ldr	w8, [x0]
	sub	w10, w8, #224
	cmp	w10, #20
	b.hi	LBB0_19
; %bb.10:
Lloh2:
	adrp	x11, lJTI0_1@PAGE
Lloh3:
	add	x11, x11, lJTI0_1@PAGEOFF
	adr	x12, LBB0_11
	ldrb	w13, [x11, x10]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_11:
	cmp	w9, #160
	b.lt	LBB0_8
; %bb.12:
	mov	w8, #224
	b	LBB0_4
LBB0_13:
	cmp	w9, #159
	b.gt	LBB0_8
; %bb.14:
	mov	w8, #237
	b	LBB0_4
LBB0_15:
	cmp	w9, #144
	b.lt	LBB0_8
; %bb.16:
	mov	w8, #240
	b	LBB0_4
LBB0_17:
	cmp	w9, #143
	b.gt	LBB0_8
; %bb.18:
	mov	w8, #244
	b	LBB0_4
LBB0_19:
	cmp	w9, #128
	b.ge	LBB0_3
	b	LBB0_8
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
lJTI0_1:
	.byte	(LBB0_11-LBB0_11)>>2
	.byte	(LBB0_19-LBB0_11)>>2
	.byte	(LBB0_19-LBB0_11)>>2
	.byte	(LBB0_19-LBB0_11)>>2
	.byte	(LBB0_19-LBB0_11)>>2
	.byte	(LBB0_19-LBB0_11)>>2
	.byte	(LBB0_19-LBB0_11)>>2
	.byte	(LBB0_19-LBB0_11)>>2
	.byte	(LBB0_19-LBB0_11)>>2
	.byte	(LBB0_19-LBB0_11)>>2
	.byte	(LBB0_19-LBB0_11)>>2
	.byte	(LBB0_19-LBB0_11)>>2
	.byte	(LBB0_19-LBB0_11)>>2
	.byte	(LBB0_13-LBB0_11)>>2
	.byte	(LBB0_19-LBB0_11)>>2
	.byte	(LBB0_19-LBB0_11)>>2
	.byte	(LBB0_15-LBB0_11)>>2
	.byte	(LBB0_19-LBB0_11)>>2
	.byte	(LBB0_19-LBB0_11)>>2
	.byte	(LBB0_19-LBB0_11)>>2
	.byte	(LBB0_17-LBB0_11)>>2
                                        ; -- End function
	.no_dead_strip	_isLegalUTF8
.subsections_via_symbols
