	.file	"14200704.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 32
	.type	utf8_table, @object
	.size	utf8_table, 32
utf8_table:
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
	.ascii	"\001\001\001\001\001\001\001\001\002\002\002\002\003\003\004"
	.ascii	"\377"
	.align 16
	.type	utf8_mask_table, @object
	.size	utf8_mask_table, 16
utf8_mask_table:
	.long	0
	.long	31
	.long	15
	.long	7
	.align 16
	.type	utf8_overlong_table, @object
	.size	utf8_overlong_table, 16
utf8_overlong_table:
	.long	0
	.long	128
	.long	2048
	.long	65536
	.text
	.globl	utf8_decode
	.type	utf8_decode, @function
utf8_decode:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	eax, esi
	mov	BYTE PTR -28[rbp], al
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], 0
	jne	.L2
	movzx	eax, BYTE PTR -28[rbp]
	test	al, al
	js	.L3
	movzx	eax, BYTE PTR -28[rbp]
	jmp	.L4
.L3:
	movzx	eax, BYTE PTR -28[rbp]
	shr	al, 3
	movzx	eax, al
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, utf8_table[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movsx	eax, al
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 1
	jg	.L5
	mov	eax, -2
	jmp	.L4
.L5:
	movzx	ecx, BYTE PTR -28[rbp]
	sub	DWORD PTR -4[rbp], 1
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, utf8_mask_table[rip]
	mov	eax, DWORD PTR [rdx+rax]
	and	eax, ecx
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	sal	eax, 4
	mov	edx, eax
	mov	eax, DWORD PTR -4[rbp]
	sal	eax, 2
	or	eax, edx
	or	eax, DWORD PTR -4[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], edx
	mov	eax, -1
	jmp	.L4
.L2:
	movzx	eax, BYTE PTR -28[rbp]
	shr	al, 3
	movzx	eax, al
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, utf8_table[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movsx	eax, al
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], 0
	cmp	DWORD PTR -4[rbp], 1
	je	.L6
	mov	eax, -3
	jmp	.L4
.L6:
	mov	eax, DWORD PTR -8[rbp]
	and	eax, 15
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	sal	eax, 2
	and	eax, 2097088
	mov	edx, eax
	movzx	eax, BYTE PTR -28[rbp]
	and	eax, 63
	or	eax, edx
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	and	eax, 2
	test	eax, eax
	je	.L7
	mov	eax, DWORD PTR -8[rbp]
	sal	eax, 4
	mov	edx, eax
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 1
	or	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], edx
	mov	eax, -1
	jmp	.L4
.L7:
	mov	eax, DWORD PTR -4[rbp]
	sar	eax, 2
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, utf8_overlong_table[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	DWORD PTR -8[rbp], eax
	jge	.L8
	mov	eax, -2
	jmp	.L4
.L8:
	cmp	DWORD PTR -8[rbp], 55295
	jle	.L9
	cmp	DWORD PTR -8[rbp], 57343
	jle	.L10
.L9:
	cmp	DWORD PTR -8[rbp], 1114111
	jle	.L11
.L10:
	mov	eax, -2
	jmp	.L4
.L11:
	mov	eax, DWORD PTR -8[rbp]
.L4:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	utf8_decode, .-utf8_decode
	.globl	utf8_encode
	.type	utf8_encode, @function
utf8_encode:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	cmp	DWORD PTR -4[rbp], 127
	ja	.L13
	mov	eax, DWORD PTR -4[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -16[rbp]
	mov	BYTE PTR [rax], dl
	mov	eax, 1
	jmp	.L14
.L13:
	cmp	DWORD PTR -4[rbp], 2047
	ja	.L15
	mov	eax, DWORD PTR -4[rbp]
	shr	eax, 6
	lea	edx, -64[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR -4[rbp]
	and	eax, 63
	mov	edx, eax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 1
	add	edx, -128
	mov	BYTE PTR [rax], dl
	mov	eax, 2
	jmp	.L14
.L15:
	cmp	DWORD PTR -4[rbp], 55295
	jbe	.L16
	cmp	DWORD PTR -4[rbp], 57343
	ja	.L16
	mov	eax, 0
	jmp	.L14
.L16:
	cmp	DWORD PTR -4[rbp], 65535
	ja	.L17
	mov	eax, DWORD PTR -4[rbp]
	shr	eax, 12
	lea	edx, -32[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR -4[rbp]
	shr	eax, 6
	and	eax, 63
	mov	edx, eax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 1
	add	edx, -128
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR -4[rbp]
	and	eax, 63
	mov	edx, eax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 2
	add	edx, -128
	mov	BYTE PTR [rax], dl
	mov	eax, 3
	jmp	.L14
.L17:
	cmp	DWORD PTR -4[rbp], 1114111
	ja	.L18
	mov	eax, DWORD PTR -4[rbp]
	shr	eax, 18
	lea	edx, -16[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR -4[rbp]
	shr	eax, 12
	and	eax, 63
	mov	edx, eax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 1
	add	edx, -128
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR -4[rbp]
	shr	eax, 6
	and	eax, 63
	mov	edx, eax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 2
	add	edx, -128
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR -4[rbp]
	and	eax, 63
	mov	edx, eax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 3
	add	edx, -128
	mov	BYTE PTR [rax], dl
	mov	eax, 4
	jmp	.L14
.L18:
	mov	eax, 0
.L14:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	utf8_encode, .-utf8_encode
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"14200704.c"
	.text
	.section	.rodata
	.align	2
	.type	utf8_table, %object
	.size	utf8_table, 32
utf8_table:
	.ascii	"\000\000\000\000\000\000\000\000\000\000\000\000\000"
	.ascii	"\000\000\000\001\001\001\001\001\001\001\001\002\002"
	.ascii	"\002\002\003\003\004\377"
	.align	2
	.type	utf8_mask_table, %object
	.size	utf8_mask_table, 16
utf8_mask_table:
	.word	0
	.word	31
	.word	15
	.word	7
	.align	2
	.type	utf8_overlong_table, %object
	.size	utf8_overlong_table, 16
utf8_overlong_table:
	.word	0
	.word	128
	.word	2048
	.word	65536
	.text
	.align	2
	.global	utf8_decode
	.syntax unified
	.arm
	.fpu softvfp
	.type	utf8_decode, %function
utf8_decode:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	mov	r3, r1
	strb	r3, [fp, #-17]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L2
	ldrsb	r3, [fp, #-17]
	cmp	r3, #0
	blt	.L3
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	b	.L4
.L3:
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	lsr	r3, r3, #3
	and	r3, r3, #255
	str	r3, [fp, #-8]
	ldr	r2, .L12
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrsb	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	bgt	.L5
	mvn	r3, #1
	b	.L4
.L5:
	ldrb	r2, [fp, #-17]	@ zero_extendqisi2
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r1, .L12+4
	ldr	r3, [fp, #-8]
	ldr	r3, [r1, r3, lsl #2]
	and	r3, r3, r2
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	lsl	r2, r3, #4
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	orr	r2, r2, r3
	ldr	r3, [fp, #-8]
	orr	r2, r2, r3
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	mvn	r3, #0
	b	.L4
.L2:
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	lsr	r3, r3, #3
	and	r3, r3, #255
	str	r3, [fp, #-8]
	ldr	r2, .L12
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrsb	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	beq	.L6
	mvn	r3, #2
	b	.L4
.L6:
	ldr	r3, [fp, #-12]
	and	r3, r3, #15
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	lsl	r2, r3, #2
	ldr	r3, .L12+8
	and	r3, r3, r2
	ldrb	r2, [fp, #-17]	@ zero_extendqisi2
	and	r2, r2, #63
	orr	r3, r3, r2
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	and	r3, r3, #2
	cmp	r3, #0
	beq	.L7
	ldr	r3, [fp, #-12]
	lsl	r2, r3, #4
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	orr	r2, r2, r3
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	mvn	r3, #0
	b	.L4
.L7:
	ldr	r3, [fp, #-8]
	asr	r3, r3, #2
	ldr	r2, .L12+12
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bge	.L8
	mvn	r3, #1
	b	.L4
.L8:
	ldr	r3, [fp, #-12]
	cmp	r3, #55296
	blt	.L9
	ldr	r3, [fp, #-12]
	cmp	r3, #57344
	blt	.L10
.L9:
	ldr	r3, [fp, #-12]
	cmp	r3, #1114112
	blt	.L11
.L10:
	mvn	r3, #1
	b	.L4
.L11:
	ldr	r3, [fp, #-12]
.L4:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L13:
	.align	2
.L12:
	.word	utf8_table
	.word	utf8_mask_table
	.word	2097088
	.word	utf8_overlong_table
	.size	utf8_decode, .-utf8_decode
	.align	2
	.global	utf8_encode
	.syntax unified
	.arm
	.fpu softvfp
	.type	utf8_encode, %function
utf8_encode:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r3, #127
	bhi	.L15
	ldr	r3, [fp, #-8]
	and	r2, r3, #255
	ldr	r3, [fp, #-12]
	strb	r2, [r3]
	mov	r3, #1
	b	.L16
.L15:
	ldr	r3, [fp, #-8]
	cmp	r3, #2048
	bcs	.L17
	ldr	r3, [fp, #-8]
	lsr	r3, r3, #6
	and	r3, r3, #255
	sub	r3, r3, #64
	and	r2, r3, #255
	ldr	r3, [fp, #-12]
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	and	r3, r3, #255
	and	r3, r3, #63
	and	r2, r3, #255
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	sub	r2, r2, #128
	and	r2, r2, #255
	strb	r2, [r3]
	mov	r3, #2
	b	.L16
.L17:
	ldr	r3, [fp, #-8]
	cmp	r3, #55296
	bcc	.L18
	ldr	r3, [fp, #-8]
	cmp	r3, #57344
	bcs	.L18
	mov	r3, #0
	b	.L16
.L18:
	ldr	r3, [fp, #-8]
	cmp	r3, #65536
	bcs	.L19
	ldr	r3, [fp, #-8]
	lsr	r3, r3, #12
	and	r3, r3, #255
	sub	r3, r3, #32
	and	r2, r3, #255
	ldr	r3, [fp, #-12]
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	lsr	r3, r3, #6
	and	r3, r3, #255
	and	r3, r3, #63
	and	r2, r3, #255
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	sub	r2, r2, #128
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	and	r3, r3, #255
	and	r3, r3, #63
	and	r2, r3, #255
	ldr	r3, [fp, #-12]
	add	r3, r3, #2
	sub	r2, r2, #128
	and	r2, r2, #255
	strb	r2, [r3]
	mov	r3, #3
	b	.L16
.L19:
	ldr	r3, [fp, #-8]
	cmp	r3, #1114112
	bcs	.L20
	ldr	r3, [fp, #-8]
	lsr	r3, r3, #18
	and	r3, r3, #255
	sub	r3, r3, #16
	and	r2, r3, #255
	ldr	r3, [fp, #-12]
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	lsr	r3, r3, #12
	and	r3, r3, #255
	and	r3, r3, #63
	and	r2, r3, #255
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	sub	r2, r2, #128
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	lsr	r3, r3, #6
	and	r3, r3, #255
	and	r3, r3, #63
	and	r2, r3, #255
	ldr	r3, [fp, #-12]
	add	r3, r3, #2
	sub	r2, r2, #128
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	and	r3, r3, #255
	and	r3, r3, #63
	and	r2, r3, #255
	ldr	r3, [fp, #-12]
	add	r3, r3, #3
	sub	r2, r2, #128
	and	r2, r2, #255
	strb	r2, [r3]
	mov	r3, #4
	b	.L16
.L20:
	mov	r3, #0
.L16:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	utf8_encode, .-utf8_encode
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
