	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pg_utf8_islegal                ## -- Begin function pg_utf8_islegal
	.p2align	4, 0x90
_pg_utf8_islegal:                       ## @pg_utf8_islegal
	.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
	decl	%esi
	cmpl	$3, %esi
	ja	LBB0_14
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rsi,4), %rdx
	addq	%rcx, %rdx
	jmpq	*%rdx
LBB0_11:
	movb	(%rdi), %cl
LBB0_12:
	cmpb	$-62, %cl
	jge	LBB0_13
LBB0_14:
	popq	%rbp
	retq
LBB0_2:
	cmpb	$-65, 3(%rdi)
	jg	LBB0_14
LBB0_3:
	cmpb	$-65, 2(%rdi)
	jg	LBB0_14
LBB0_4:
	movb	(%rdi), %cl
	movb	1(%rdi), %dl
	leal	32(%rcx), %esi
	cmpb	$20, %sil
	ja	LBB0_10
## %bb.5:
	movzbl	%sil, %esi
	leaq	LJTI0_1(%rip), %rdi
	movslq	(%rdi,%rsi,4), %rsi
	addq	%rdi, %rsi
	jmpq	*%rsi
LBB0_6:
	addb	$64, %dl
	movb	$-32, %cl
	cmpb	$-32, %dl
	jb	LBB0_14
	jmp	LBB0_13
LBB0_10:
	cmpb	$-65, %dl
	jle	LBB0_12
	jmp	LBB0_14
LBB0_7:
	movb	$-19, %cl
	cmpb	$-97, %dl
	jg	LBB0_14
	jmp	LBB0_13
LBB0_8:
	addb	$64, %dl
	movb	$-16, %cl
	cmpb	$-48, %dl
	jb	LBB0_14
	jmp	LBB0_13
LBB0_9:
	movb	$-12, %cl
	cmpb	$-113, %dl
	jg	LBB0_14
LBB0_13:
	xorl	%eax, %eax
	cmpb	$-11, %cl
	setb	%al
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
LJTI0_0:
	.long	L0_0_set_11
	.long	L0_0_set_4
	.long	L0_0_set_3
	.long	L0_0_set_2
.set L0_1_set_6, LBB0_6-LJTI0_1
.set L0_1_set_10, LBB0_10-LJTI0_1
.set L0_1_set_7, LBB0_7-LJTI0_1
.set L0_1_set_8, LBB0_8-LJTI0_1
.set L0_1_set_9, LBB0_9-LJTI0_1
LJTI0_1:
	.long	L0_1_set_6
	.long	L0_1_set_10
	.long	L0_1_set_10
	.long	L0_1_set_10
	.long	L0_1_set_10
	.long	L0_1_set_10
	.long	L0_1_set_10
	.long	L0_1_set_10
	.long	L0_1_set_10
	.long	L0_1_set_10
	.long	L0_1_set_10
	.long	L0_1_set_10
	.long	L0_1_set_10
	.long	L0_1_set_7
	.long	L0_1_set_10
	.long	L0_1_set_10
	.long	L0_1_set_8
	.long	L0_1_set_10
	.long	L0_1_set_10
	.long	L0_1_set_10
	.long	L0_1_set_9
	.end_data_region
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pg_utf8_islegal                ; -- Begin function pg_utf8_islegal
	.p2align	2
_pg_utf8_islegal:                       ; @pg_utf8_islegal
	.cfi_startproc
; %bb.0:
	sub	w8, w1, #1
	cmp	w8, #3
	b.hi	LBB0_16
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldrb	w8, [x0]
LBB0_3:
	mov	w9, #-62
	cmp	w9, w8, sxtb
	b.gt	LBB0_16
	b	LBB0_18
LBB0_4:
	ldrsb	w8, [x0, #3]
	cmn	w8, #65
	b.gt	LBB0_16
LBB0_5:
	ldrsb	w8, [x0, #2]
	cmn	w8, #65
	b.gt	LBB0_16
LBB0_6:
	ldrsb	w9, [x0, #1]
	ldrb	w8, [x0]
	sub	w10, w8, #224
	cmp	w10, #20
	b.hi	LBB0_14
; %bb.7:
Lloh2:
	adrp	x11, lJTI0_1@PAGE
Lloh3:
	add	x11, x11, lJTI0_1@PAGEOFF
	adr	x12, LBB0_8
	ldrb	w13, [x11, x10]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_8:
	add	w8, w9, #64
	and	w8, w8, #0xff
	cmp	w8, #224
	b.lo	LBB0_16
; %bb.9:
	mov	w8, #224
	b	LBB0_18
LBB0_10:
	cmn	w9, #97
	b.gt	LBB0_16
; %bb.11:
	mov	w8, #237
	b	LBB0_18
LBB0_12:
	add	w8, w9, #64
	and	w8, w8, #0xff
	cmp	w8, #208
	b.lo	LBB0_16
; %bb.13:
	mov	w8, #240
	b	LBB0_18
LBB0_14:
	cmn	w9, #65
	b.le	LBB0_3
	b	LBB0_16
LBB0_15:
	cmn	w9, #113
	b.le	LBB0_17
LBB0_16:
	mov	w0, #0
	ret
LBB0_17:
	mov	w8, #244
LBB0_18:
	cmp	w8, #245
	cset	w0, lo
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
lJTI0_1:
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_14-LBB0_8)>>2
	.byte	(LBB0_14-LBB0_8)>>2
	.byte	(LBB0_14-LBB0_8)>>2
	.byte	(LBB0_14-LBB0_8)>>2
	.byte	(LBB0_14-LBB0_8)>>2
	.byte	(LBB0_14-LBB0_8)>>2
	.byte	(LBB0_14-LBB0_8)>>2
	.byte	(LBB0_14-LBB0_8)>>2
	.byte	(LBB0_14-LBB0_8)>>2
	.byte	(LBB0_14-LBB0_8)>>2
	.byte	(LBB0_14-LBB0_8)>>2
	.byte	(LBB0_14-LBB0_8)>>2
	.byte	(LBB0_10-LBB0_8)>>2
	.byte	(LBB0_14-LBB0_8)>>2
	.byte	(LBB0_14-LBB0_8)>>2
	.byte	(LBB0_12-LBB0_8)>>2
	.byte	(LBB0_14-LBB0_8)>>2
	.byte	(LBB0_14-LBB0_8)>>2
	.byte	(LBB0_14-LBB0_8)>>2
	.byte	(LBB0_15-LBB0_8)>>2
                                        ; -- End function
.subsections_via_symbols
