	.file	"17198.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 16
	.type	GCR_encode, @object
	.size	GCR_encode, 16
GCR_encode:
	.ascii	"\n\013\022\023\016\017\026\027\t\031\032\033\r\035\036\025"
	.align 32
	.type	GCR_decode, @object
	.size	GCR_decode, 32
GCR_decode:
	.string	"\377\377\377\377\377\377\377\377\377\b"
	.ascii	"\001\377\f\004\005\377\377\002\003\377\017\006\007\377\t\n\013"
	.ascii	"\377\r\016\377"
	.local	gcr_bits
	.comm	gcr_bits,1,1
	.local	gcr_val
	.comm	gcr_val,2,2
	.text
	.globl	gcr_init
	.type	gcr_init, @function
gcr_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	WORD PTR gcr_val[rip], 0
	mov	BYTE PTR gcr_bits[rip], 0
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	gcr_init, .-gcr_init
	.globl	gcr_finished
	.type	gcr_finished, @function
gcr_finished:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	movzx	eax, BYTE PTR gcr_bits[rip]
	test	al, al
	sete	al
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	gcr_finished, .-gcr_finished
	.globl	gcr_encode
	.type	gcr_encode, @function
gcr_encode:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, edi
	mov	BYTE PTR -4[rbp], al
	movzx	eax, BYTE PTR -4[rbp]
	shr	al, 4
	movzx	eax, al
	cdqe
	lea	rdx, GCR_encode[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movzx	eax, al
	sal	eax, 5
	mov	ecx, eax
	movzx	eax, BYTE PTR -4[rbp]
	and	eax, 15
	cdqe
	lea	rdx, GCR_encode[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movzx	eax, al
	or	ecx, eax
	mov	edx, ecx
	movzx	eax, BYTE PTR gcr_bits[rip]
	movzx	eax, al
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	mov	edx, eax
	movzx	eax, WORD PTR gcr_val[rip]
	or	eax, edx
	mov	WORD PTR gcr_val[rip], ax
	movzx	eax, BYTE PTR gcr_bits[rip]
	add	eax, 10
	mov	BYTE PTR gcr_bits[rip], al
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	gcr_encode, .-gcr_encode
	.globl	gcr_get_encoded
	.type	gcr_get_encoded, @function
gcr_get_encoded:
.LFB3:
	.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 -8[rbp], rdi
	movzx	eax, BYTE PTR gcr_bits[rip]
	cmp	al, 7
	jbe	.L6
	movzx	eax, WORD PTR gcr_val[rip]
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR [rax], dl
	movzx	eax, WORD PTR gcr_val[rip]
	shr	ax, 8
	mov	WORD PTR gcr_val[rip], ax
	movzx	eax, BYTE PTR gcr_bits[rip]
	sub	eax, 8
	mov	BYTE PTR gcr_bits[rip], al
	mov	eax, 1
	jmp	.L7
.L6:
	mov	eax, 0
.L7:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	gcr_get_encoded, .-gcr_get_encoded
	.globl	gcr_decode
	.type	gcr_decode, @function
gcr_decode:
.LFB4:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, edi
	mov	BYTE PTR -4[rbp], al
	movzx	edx, BYTE PTR -4[rbp]
	movzx	eax, BYTE PTR gcr_bits[rip]
	movzx	eax, al
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	mov	edx, eax
	movzx	eax, WORD PTR gcr_val[rip]
	or	eax, edx
	mov	WORD PTR gcr_val[rip], ax
	movzx	eax, BYTE PTR gcr_bits[rip]
	add	eax, 8
	mov	BYTE PTR gcr_bits[rip], al
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	gcr_decode, .-gcr_decode
	.globl	gcr_valid
	.type	gcr_valid, @function
gcr_valid:
.LFB5:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	movzx	eax, BYTE PTR gcr_bits[rip]
	cmp	al, 9
	jbe	.L10
	movzx	eax, WORD PTR gcr_val[rip]
	and	ax, 1023
	mov	WORD PTR -2[rbp], ax
	movzx	eax, WORD PTR -2[rbp]
	shr	ax, 5
	movzx	eax, ax
	cdqe
	lea	rdx, GCR_decode[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movzx	eax, al
	sal	eax, 4
	cmp	eax, 255
	je	.L11
	movzx	eax, WORD PTR -2[rbp]
	and	eax, 31
	cdqe
	lea	rdx, GCR_decode[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, -1
	jne	.L10
.L11:
	mov	eax, 0
	jmp	.L12
.L10:
	mov	eax, 1
.L12:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	gcr_valid, .-gcr_valid
	.globl	gcr_get_decoded
	.type	gcr_get_decoded, @function
gcr_get_decoded:
.LFB6:
	.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
	movzx	eax, BYTE PTR gcr_bits[rip]
	cmp	al, 9
	jbe	.L14
	movzx	eax, WORD PTR gcr_val[rip]
	and	ax, 1023
	mov	WORD PTR -2[rbp], ax
	movzx	eax, WORD PTR -2[rbp]
	shr	ax, 5
	movzx	eax, ax
	cdqe
	lea	rdx, GCR_decode[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movzx	eax, al
	sal	eax, 4
	mov	ecx, eax
	movzx	eax, WORD PTR -2[rbp]
	and	eax, 31
	cdqe
	lea	rdx, GCR_decode[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	or	eax, ecx
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	BYTE PTR [rax], dl
	movzx	eax, WORD PTR gcr_val[rip]
	shr	ax, 10
	mov	WORD PTR gcr_val[rip], ax
	movzx	eax, BYTE PTR gcr_bits[rip]
	sub	eax, 10
	mov	BYTE PTR gcr_bits[rip], al
	mov	eax, 1
	jmp	.L15
.L14:
	mov	eax, 0
.L15:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	gcr_get_decoded, .-gcr_get_decoded
	.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	"17198.c"
	.text
	.section	.rodata
	.align	2
	.type	GCR_encode, %object
	.size	GCR_encode, 16
GCR_encode:
	.ascii	"\012\013\022\023\016\017\026\027\011\031\032\033\015"
	.ascii	"\035\036\025"
	.align	2
	.type	GCR_decode, %object
	.size	GCR_decode, 32
GCR_decode:
	.ascii	"\377\377\377\377\377\377\377\377\377\010\000\001\377"
	.ascii	"\014\004\005\377\377\002\003\377\017\006\007\377\011"
	.ascii	"\012\013\377\015\016\377"
	.local	gcr_bits
	.comm	gcr_bits,1,1
	.local	gcr_val
	.comm	gcr_val,2,2
	.text
	.align	2
	.global	gcr_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	gcr_init, %function
gcr_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	ldr	r3, .L2
	mov	r2, #0
	strh	r2, [r3]	@ movhi
	ldr	r3, .L2+4
	mov	r2, #0
	strb	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L3:
	.align	2
.L2:
	.word	gcr_val
	.word	gcr_bits
	.size	gcr_init, .-gcr_init
	.align	2
	.global	gcr_finished
	.syntax unified
	.arm
	.fpu softvfp
	.type	gcr_finished, %function
gcr_finished:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	ldr	r3, .L6
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L7:
	.align	2
.L6:
	.word	gcr_bits
	.size	gcr_finished, .-gcr_finished
	.align	2
	.global	gcr_encode
	.syntax unified
	.arm
	.fpu softvfp
	.type	gcr_encode, %function
gcr_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
	mov	r3, r0
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	lsr	r3, r3, #4
	and	r3, r3, #255
	mov	r2, r3
	ldr	r3, .L9
	ldrb	r3, [r3, r2]	@ zero_extendqisi2
	lsl	r3, r3, #5
	ldrb	r2, [fp, #-5]	@ zero_extendqisi2
	and	r2, r2, #15
	ldr	r1, .L9
	ldrb	r2, [r1, r2]	@ zero_extendqisi2
	orr	r3, r3, r2
	ldr	r2, .L9+4
	ldrb	r2, [r2]	@ zero_extendqisi2
	lsl	r3, r3, r2
	lsl	r3, r3, #16
	asr	r2, r3, #16
	ldr	r3, .L9+8
	ldrh	r3, [r3]
	lsl	r3, r3, #16
	asr	r3, r3, #16
	orr	r3, r2, r3
	lsl	r3, r3, #16
	asr	r3, r3, #16
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	ldr	r2, .L9+8
	strh	r3, [r2]	@ movhi
	ldr	r3, .L9+4
	ldrb	r3, [r3]	@ zero_extendqisi2
	add	r3, r3, #10
	and	r2, r3, #255
	ldr	r3, .L9+4
	strb	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L10:
	.align	2
.L9:
	.word	GCR_encode
	.word	gcr_bits
	.word	gcr_val
	.size	gcr_encode, .-gcr_encode
	.align	2
	.global	gcr_get_encoded
	.syntax unified
	.arm
	.fpu softvfp
	.type	gcr_get_encoded, %function
gcr_get_encoded:
	@ 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]
	ldr	r3, .L14
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #7
	bls	.L12
	ldr	r3, .L14+4
	ldrh	r3, [r3]
	and	r2, r3, #255
	ldr	r3, [fp, #-8]
	strb	r2, [r3]
	ldr	r3, .L14+4
	ldrh	r3, [r3]
	lsr	r3, r3, #8
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	ldr	r2, .L14+4
	strh	r3, [r2]	@ movhi
	ldr	r3, .L14
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #8
	and	r2, r3, #255
	ldr	r3, .L14
	strb	r2, [r3]
	mov	r3, #1
	b	.L13
.L12:
	mov	r3, #0
.L13:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L15:
	.align	2
.L14:
	.word	gcr_bits
	.word	gcr_val
	.size	gcr_get_encoded, .-gcr_get_encoded
	.align	2
	.global	gcr_decode
	.syntax unified
	.arm
	.fpu softvfp
	.type	gcr_decode, %function
gcr_decode:
	@ 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
	mov	r3, r0
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	ldr	r2, .L17
	ldrb	r2, [r2]	@ zero_extendqisi2
	lsl	r3, r3, r2
	lsl	r3, r3, #16
	asr	r2, r3, #16
	ldr	r3, .L17+4
	ldrh	r3, [r3]
	lsl	r3, r3, #16
	asr	r3, r3, #16
	orr	r3, r2, r3
	lsl	r3, r3, #16
	asr	r3, r3, #16
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	ldr	r2, .L17+4
	strh	r3, [r2]	@ movhi
	ldr	r3, .L17
	ldrb	r3, [r3]	@ zero_extendqisi2
	add	r3, r3, #8
	and	r2, r3, #255
	ldr	r3, .L17
	strb	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L18:
	.align	2
.L17:
	.word	gcr_bits
	.word	gcr_val
	.size	gcr_decode, .-gcr_decode
	.align	2
	.global	gcr_valid
	.syntax unified
	.arm
	.fpu softvfp
	.type	gcr_valid, %function
gcr_valid:
	@ 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
	ldr	r3, .L23
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #9
	bls	.L20
	ldr	r3, .L23+4
	ldrh	r3, [r3]
	lsl	r3, r3, #22
	lsr	r3, r3, #22
	strh	r3, [fp, #-6]	@ movhi
	ldrh	r3, [fp, #-6]
	lsr	r3, r3, #5
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r2, r3
	ldr	r3, .L23+8
	ldrb	r3, [r3, r2]	@ zero_extendqisi2
	lsl	r3, r3, #4
	cmp	r3, #255
	beq	.L21
	ldrh	r3, [fp, #-6]
	and	r3, r3, #31
	ldr	r2, .L23+8
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #255
	bne	.L20
.L21:
	mov	r3, #0
	b	.L22
.L20:
	mov	r3, #1
.L22:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L24:
	.align	2
.L23:
	.word	gcr_bits
	.word	gcr_val
	.word	GCR_decode
	.size	gcr_valid, .-gcr_valid
	.align	2
	.global	gcr_get_decoded
	.syntax unified
	.arm
	.fpu softvfp
	.type	gcr_get_decoded, %function
gcr_get_decoded:
	@ 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]
	ldr	r3, .L28
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #9
	bls	.L26
	ldr	r3, .L28+4
	ldrh	r3, [r3]
	lsl	r3, r3, #22
	lsr	r3, r3, #22
	strh	r3, [fp, #-6]	@ movhi
	ldrh	r3, [fp, #-6]
	lsr	r3, r3, #5
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r2, r3
	ldr	r3, .L28+8
	ldrb	r3, [r3, r2]	@ zero_extendqisi2
	lsl	r3, r3, #4
	lsl	r3, r3, #24
	asr	r2, r3, #24
	ldrh	r3, [fp, #-6]
	and	r3, r3, #31
	ldr	r1, .L28+8
	ldrb	r3, [r1, r3]	@ zero_extendqisi2
	lsl	r3, r3, #24
	asr	r3, r3, #24
	orr	r3, r2, r3
	lsl	r3, r3, #24
	asr	r3, r3, #24
	and	r2, r3, #255
	ldr	r3, [fp, #-16]
	strb	r2, [r3]
	ldr	r3, .L28+4
	ldrh	r3, [r3]
	lsr	r3, r3, #10
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	ldr	r2, .L28+4
	strh	r3, [r2]	@ movhi
	ldr	r3, .L28
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #10
	and	r2, r3, #255
	ldr	r3, .L28
	strb	r2, [r3]
	mov	r3, #1
	b	.L27
.L26:
	mov	r3, #0
.L27:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L29:
	.align	2
.L28:
	.word	gcr_bits
	.word	gcr_val
	.word	GCR_decode
	.size	gcr_get_decoded, .-gcr_get_decoded
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
