	.file	"extr_parson.c_verify_utf8_sequence.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	verify_utf8_sequence, @function
verify_utf8_sequence:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	movzx	edi, BYTE PTR [rdi]
	call	num_bytes_in_utf8_sequence@PLT
	mov	DWORD PTR 0[rbp], eax
	cmp	eax, 1
	je	.L32
	cmp	eax, 2
	je	.L33
.L5:
	cmp	eax, 3
	je	.L34
	cmp	eax, 4
	je	.L13
.L15:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L32:
	.cfi_restore_state
	cmp	BYTE PTR [rbx], 0
	movzx	eax, BYTE PTR [rbx]
	jns	.L3
.L4:
	mov	edx, DWORD PTR 0[rbp]
.L8:
	cmp	edx, 2
	jg	.L15
.L3:
	sub	eax, 55296
	cmp	eax, 2047
	seta	al
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	movzx	eax, al
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	movzx	edi, BYTE PTR 1[rbx]
	call	IS_CONT@PLT
	test	rax, rax
	je	.L15
	movzx	edi, BYTE PTR 2[rbx]
	call	IS_CONT@PLT
	test	rax, rax
	je	.L15
	movzx	edi, BYTE PTR 3[rbx]
	call	IS_CONT@PLT
	test	rax, rax
	je	.L15
	movzx	edx, BYTE PTR [rbx]
	and	edx, 7
	mov	eax, edx
	movzx	edx, BYTE PTR 1[rbx]
	sal	eax, 6
	and	edx, 63
	or	edx, eax
	movzx	eax, BYTE PTR 2[rbx]
	sal	edx, 6
	and	eax, 63
	or	eax, edx
	sal	eax, 6
	mov	edx, eax
	movzx	eax, BYTE PTR 3[rbx]
	and	eax, 63
	or	eax, edx
.L12:
	cmp	eax, 127
	ja	.L16
	mov	edx, DWORD PTR 0[rbp]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L34:
	movzx	edi, BYTE PTR 1[rbx]
	call	IS_CONT@PLT
	test	rax, rax
	jne	.L10
.L30:
	mov	eax, DWORD PTR 0[rbp]
	cmp	eax, 4
	jne	.L15
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L33:
	movzx	edi, BYTE PTR 1[rbx]
	call	IS_CONT@PLT
	test	rax, rax
	jne	.L6
	mov	eax, DWORD PTR 0[rbp]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	movzx	eax, BYTE PTR [rbx]
	and	eax, 31
	sal	eax, 6
	mov	edx, eax
	movzx	eax, BYTE PTR 1[rbx]
	and	eax, 63
	or	eax, edx
	mov	edx, DWORD PTR 0[rbp]
	cmp	eax, 127
	ja	.L8
.L7:
	cmp	edx, 1
	jg	.L15
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L16:
	cmp	eax, 2047
	jbe	.L4
	cmp	eax, 65535
	jbe	.L35
	cmp	eax, 1114111
	ja	.L15
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L10:
	movzx	edi, BYTE PTR 2[rbx]
	call	IS_CONT@PLT
	test	rax, rax
	je	.L30
	movzx	edx, BYTE PTR [rbx]
	movzx	eax, BYTE PTR 1[rbx]
	and	edx, 15
	and	eax, 63
	sal	edx, 6
	or	eax, edx
	sal	eax, 6
	mov	edx, eax
	movzx	eax, BYTE PTR 2[rbx]
	and	eax, 63
	or	eax, edx
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L35:
	cmp	DWORD PTR 0[rbp], 3
	jg	.L15
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	verify_utf8_sequence, .-verify_utf8_sequence
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_parson.c_verify_utf8_sequence.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	verify_utf8_sequence, %function
verify_utf8_sequence:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldrb	r0, [r0]	@ zero_extendqisi2
	mov	r5, r1
	bl	num_bytes_in_utf8_sequence
	cmp	r0, #1
	str	r0, [r5]
	beq	.L32
	cmp	r0, #2
	beq	.L33
.L5:
	cmp	r0, #3
	beq	.L34
	cmp	r0, #4
	beq	.L13
.L15:
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L32:
	ldrb	r0, [r4]	@ zero_extendqisi2
	cmp	r0, #127
	bls	.L3
.L4:
	ldr	r3, [r5]
.L8:
	cmp	r3, #2
	bgt	.L15
.L3:
	sub	r0, r0, #55296
	cmp	r0, #2048
	movcc	r0, #0
	movcs	r0, #1
	pop	{r4, r5, r6, pc}
.L13:
	ldrb	r0, [r4, #1]	@ zero_extendqisi2
	bl	IS_CONT
	cmp	r0, #0
	beq	.L15
	ldrb	r0, [r4, #2]	@ zero_extendqisi2
	bl	IS_CONT
	cmp	r0, #0
	beq	.L15
	ldrb	r0, [r4, #3]	@ zero_extendqisi2
	bl	IS_CONT
	cmp	r0, #0
	beq	.L15
	ldrb	r1, [r4]	@ zero_extendqisi2
	ldrb	r2, [r4, #1]	@ zero_extendqisi2
	ldrb	r3, [r4, #2]	@ zero_extendqisi2
	ldrb	r0, [r4, #3]	@ zero_extendqisi2
	and	r1, r1, #7
	and	r2, r2, #63
	orr	r2, r2, r1, lsl #6
	and	r3, r3, #63
	orr	r3, r3, r2, lsl #6
	and	r0, r0, #63
	orr	r0, r0, r3, lsl #6
.L12:
	cmp	r0, #127
	bhi	.L16
	ldr	r3, [r5]
	b	.L7
.L34:
	ldrb	r0, [r4, #1]	@ zero_extendqisi2
	bl	IS_CONT
	cmp	r0, #0
	bne	.L10
.L30:
	ldr	r0, [r5]
	cmp	r0, #4
	bne	.L15
	b	.L13
.L33:
	ldrb	r0, [r4, #1]	@ zero_extendqisi2
	bl	IS_CONT
	cmp	r0, #0
	ldreq	r0, [r5]
	beq	.L5
.L6:
	ldrb	r3, [r4]	@ zero_extendqisi2
	ldrb	r0, [r4, #1]	@ zero_extendqisi2
	and	r3, r3, #31
	and	r0, r0, #63
	orr	r0, r0, r3, lsl #6
	cmp	r0, #127
	ldr	r3, [r5]
	bhi	.L8
.L7:
	cmp	r3, #1
	bgt	.L15
	b	.L3
.L16:
	cmp	r0, #2048
	bcc	.L4
	cmp	r0, #65536
	bcc	.L35
	cmp	r0, #1114112
	bcs	.L15
	b	.L3
.L10:
	ldrb	r0, [r4, #2]	@ zero_extendqisi2
	bl	IS_CONT
	cmp	r0, #0
	beq	.L30
	ldrb	r2, [r4]	@ zero_extendqisi2
	ldrb	r3, [r4, #1]	@ zero_extendqisi2
	ldrb	r0, [r4, #2]	@ zero_extendqisi2
	and	r2, r2, #15
	and	r3, r3, #63
	orr	r3, r3, r2, lsl #6
	and	r0, r0, #63
	orr	r0, r0, r3, lsl #6
	b	.L12
.L35:
	ldr	r3, [r5]
	cmp	r3, #3
	bgt	.L15
	b	.L3
	.size	verify_utf8_sequence, .-verify_utf8_sequence
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
