	.file	"190767399.c"
	.intel_syntax noprefix
	.text
	.globl	hash
	.type	hash, @function
hash:
.LFB6:
	.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 -20[rbp], al
	mov	DWORD PTR -4[rbp], -1
	cmp	BYTE PTR -20[rbp], 90
	jg	.L2
	cmp	BYTE PTR -20[rbp], 64
	jle	.L2
	movsx	eax, BYTE PTR -20[rbp]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 65
	jmp	.L3
.L2:
	cmp	BYTE PTR -20[rbp], 122
	jg	.L4
	cmp	BYTE PTR -20[rbp], 96
	jle	.L4
	movsx	eax, BYTE PTR -20[rbp]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 71
	jmp	.L3
.L4:
	mov	eax, DWORD PTR -4[rbp]
.L3:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	hash, .-hash
	.globl	decoder
	.type	decoder, @function
decoder:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 40
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	eax, ecx
	mov	BYTE PTR -36[rbp], dl
	mov	BYTE PTR -40[rbp], al
	movsx	eax, BYTE PTR -36[rbp]
	mov	edi, eax
	call	hash
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -16[rbp], eax
	movsx	eax, BYTE PTR -40[rbp]
	mov	edi, eax
	call	hash
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -16[rbp], 0
	sete	al
	movzx	eax, al
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	sete	al
	movzx	eax, al
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -8[rbp], 0
	je	.L6
	cmp	DWORD PTR -4[rbp], 0
	je	.L6
	mov	edx, 1
	jmp	.L7
.L6:
	mov	edx, 0
.L7:
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], edx
	cmp	DWORD PTR -8[rbp], 0
	je	.L8
	cmp	DWORD PTR -12[rbp], 0
	je	.L8
	mov	edx, 1
	jmp	.L9
.L8:
	mov	edx, 0
.L9:
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 4
	mov	DWORD PTR [rax], edx
	cmp	DWORD PTR -16[rbp], 0
	je	.L10
	cmp	DWORD PTR -12[rbp], 0
	je	.L10
	mov	edx, 1
	jmp	.L11
.L10:
	mov	edx, 0
.L11:
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 8
	mov	DWORD PTR [rax], edx
	cmp	DWORD PTR -16[rbp], 0
	je	.L12
	cmp	DWORD PTR -4[rbp], 0
	je	.L12
	mov	edx, 1
	jmp	.L13
.L12:
	mov	edx, 0
.L13:
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 12
	mov	DWORD PTR [rax], edx
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	decoder, .-decoder
	.globl	decode
	.type	decode, @function
decode:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 40
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -36[rbp], edx
	mov	eax, ecx
	mov	BYTE PTR -40[rbp], al
	mov	DWORD PTR -16[rbp], 0
	jmp	.L15
.L16:
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	sub	eax, 1
	sub	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -16[rbp], 1
.L15:
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	cmp	DWORD PTR -16[rbp], eax
	jl	.L16
	movsx	eax, BYTE PTR -40[rbp]
	mov	edi, eax
	call	hash
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	sete	al
	movzx	eax, al
	mov	DWORD PTR -8[rbp], eax
	mov	DWORD PTR -16[rbp], 0
	jmp	.L17
.L20:
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -8[rbp], 0
	je	.L18
	cmp	DWORD PTR -4[rbp], 0
	je	.L18
	mov	edx, 1
	jmp	.L19
.L18:
	mov	edx, 0
.L19:
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	mov	DWORD PTR [rax], edx
	add	DWORD PTR -16[rbp], 1
.L17:
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	cmp	DWORD PTR -16[rbp], eax
	jl	.L20
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	DWORD PTR -16[rbp], eax
	jmp	.L21
.L24:
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	je	.L22
	cmp	DWORD PTR -4[rbp], 0
	je	.L22
	mov	edx, 1
	jmp	.L23
.L22:
	mov	edx, 0
.L23:
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	mov	DWORD PTR [rax], edx
	add	DWORD PTR -16[rbp], 1
.L21:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jl	.L24
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	decode, .-decode
	.globl	creategrey
	.type	creategrey, @function
creategrey:
.LFB9:
	.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
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], 0
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 4
	mov	DWORD PTR [rax], 1
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	creategrey, .-creategrey
	.globl	makegrey
	.type	makegrey, @function
makegrey:
.LFB10:
	.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	DWORD PTR -28[rbp], esi
	mov	eax, DWORD PTR -28[rbp]
	add	eax, eax
	mov	DWORD PTR -4[rbp], eax
	mov	DWORD PTR -8[rbp], 0
	jmp	.L27
.L28:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	ecx, DWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 1
	sub	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -28[rbp]
	add	edx, ecx
	mov	DWORD PTR [rax], edx
	add	DWORD PTR -8[rbp], 1
.L27:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L28
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	makegrey, .-makegrey
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	" %c %c %c\n"
.LC2:
	.string	" %c %c\n"
.LC3:
	.string	" %d "
.LC4:
	.string	" %c"
.LC6:
	.string	"\n"
.LC7:
	.string	" %d"
.LC8:
	.string	" %c\n"
	.text
	.globl	operate
	.type	operate, @function
operate:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 344
	.cfi_offset 3, -24
	mov	QWORD PTR -4440[rbp], rdi
	mov	QWORD PTR -4448[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	lea	rdx, -352[rbp]
	mov	rax, QWORD PTR -4448[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	movzx	eax, BYTE PTR -352[rbp]
	movsx	eax, al
	sub	eax, 65
	cmp	eax, 14
	ja	.L74
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L32[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L32[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L32:
	.long	.L36-.L32
	.long	.L74-.L32
	.long	.L74-.L32
	.long	.L35-.L32
	.long	.L74-.L32
	.long	.L74-.L32
	.long	.L74-.L32
	.long	.L74-.L32
	.long	.L74-.L32
	.long	.L74-.L32
	.long	.L74-.L32
	.long	.L74-.L32
	.long	.L34-.L32
	.long	.L33-.L32
	.long	.L31-.L32
	.text
.L36:
	lea	rsi, -4412[rbp]
	lea	rcx, -4417[rbp]
	lea	rdx, -4419[rbp]
	mov	rax, QWORD PTR -4448[rbp]
	mov	r8, rsi
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	movzx	eax, BYTE PTR -4419[rbp]
	movsx	eax, al
	mov	edi, eax
	call	hash
	mov	DWORD PTR -4364[rbp], eax
	movzx	eax, BYTE PTR -4417[rbp]
	movsx	eax, al
	mov	edi, eax
	call	hash
	mov	DWORD PTR -4360[rbp], eax
	movzx	eax, BYTE PTR -4412[rbp]
	movsx	eax, al
	mov	edi, eax
	call	hash
	mov	DWORD PTR -4356[rbp], eax
	mov	eax, DWORD PTR -4364[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -4440[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4408[rbp], eax
	mov	eax, DWORD PTR -4360[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -4440[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4404[rbp], eax
	cmp	DWORD PTR -4408[rbp], -1
	jne	.L37
	lea	rax, -4419[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -4408[rbp], eax
.L37:
	cmp	DWORD PTR -4404[rbp], -1
	jne	.L38
	lea	rax, -4417[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -4404[rbp], eax
.L38:
	cmp	DWORD PTR -4408[rbp], 0
	je	.L39
	cmp	DWORD PTR -4404[rbp], 0
	je	.L39
	mov	eax, 1
	jmp	.L40
.L39:
	mov	eax, 0
.L40:
	mov	DWORD PTR -4380[rbp], eax
	mov	eax, DWORD PTR -4356[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -4440[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -4380[rbp]
	mov	DWORD PTR [rdx], eax
	jmp	.L41
.L31:
	lea	rsi, -4412[rbp]
	lea	rcx, -4417[rbp]
	lea	rdx, -4419[rbp]
	mov	rax, QWORD PTR -4448[rbp]
	mov	r8, rsi
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	movzx	eax, BYTE PTR -4419[rbp]
	movsx	eax, al
	mov	edi, eax
	call	hash
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -4440[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4408[rbp], eax
	movzx	eax, BYTE PTR -4417[rbp]
	movsx	eax, al
	mov	edi, eax
	call	hash
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -4440[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4404[rbp], eax
	cmp	DWORD PTR -4408[rbp], -1
	jne	.L42
	lea	rax, -4419[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -4408[rbp], eax
.L42:
	cmp	DWORD PTR -4404[rbp], -1
	jne	.L43
	lea	rax, -4417[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -4404[rbp], eax
.L43:
	cmp	DWORD PTR -4408[rbp], 0
	jne	.L44
	cmp	DWORD PTR -4404[rbp], 0
	je	.L45
.L44:
	mov	eax, 1
	jmp	.L46
.L45:
	mov	eax, 0
.L46:
	mov	DWORD PTR -4380[rbp], eax
	movzx	eax, BYTE PTR -4412[rbp]
	movsx	eax, al
	mov	edi, eax
	call	hash
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -4440[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -4380[rbp]
	mov	DWORD PTR [rdx], eax
	jmp	.L41
.L33:
	lea	rcx, -4417[rbp]
	lea	rdx, -4419[rbp]
	mov	rax, QWORD PTR -4448[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	movzx	eax, BYTE PTR -4419[rbp]
	movsx	eax, al
	mov	edi, eax
	call	hash
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -4440[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4408[rbp], eax
	cmp	DWORD PTR -4408[rbp], -1
	jne	.L47
	lea	rax, -4419[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -4408[rbp], eax
.L47:
	cmp	DWORD PTR -4408[rbp], 0
	sete	al
	movzx	eax, al
	mov	DWORD PTR -4404[rbp], eax
	movzx	eax, BYTE PTR -4417[rbp]
	movsx	eax, al
	mov	edi, eax
	call	hash
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -4440[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -4404[rbp]
	mov	DWORD PTR [rdx], eax
	jmp	.L41
.L35:
	mov	DWORD PTR -4396[rbp], 0
	lea	rdx, -4412[rbp]
	mov	rax, QWORD PTR -4448[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	jmp	.L48
.L49:
	lea	rdx, -4419[rbp]
	mov	rax, QWORD PTR -4448[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	movzx	edx, BYTE PTR -4419[rbp]
	mov	eax, DWORD PTR -4396[rbp]
	cdqe
	mov	BYTE PTR -128[rbp+rax], dl
	add	DWORD PTR -4396[rbp], 1
.L48:
	mov	eax, DWORD PTR -4412[rbp]
	cmp	DWORD PTR -4396[rbp], eax
	jl	.L49
	mov	eax, DWORD PTR -4396[rbp]
	sub	eax, 2
	cdqe
	movzx	eax, BYTE PTR -128[rbp+rax]
	mov	BYTE PTR -4415[rbp], al
	mov	eax, DWORD PTR -4396[rbp]
	sub	eax, 1
	cdqe
	movzx	eax, BYTE PTR -128[rbp+rax]
	mov	BYTE PTR -4414[rbp], al
	movsx	ecx, BYTE PTR -4414[rbp]
	movsx	edx, BYTE PTR -4415[rbp]
	mov	rsi, QWORD PTR -4440[rbp]
	lea	rax, -4352[rbp]
	mov	rdi, rax
	call	decoder
	sub	DWORD PTR -4396[rbp], 2
	mov	DWORD PTR -4400[rbp], 4
	jmp	.L50
.L51:
	sal	DWORD PTR -4400[rbp]
	mov	eax, DWORD PTR -4396[rbp]
	sub	eax, 1
	cdqe
	movzx	eax, BYTE PTR -128[rbp+rax]
	movsx	ecx, al
	mov	edx, DWORD PTR -4400[rbp]
	mov	rsi, QWORD PTR -4440[rbp]
	lea	rax, -4352[rbp]
	mov	rdi, rax
	call	decode
	sub	DWORD PTR -4396[rbp], 1
.L50:
	cmp	DWORD PTR -4396[rbp], 0
	jg	.L51
	mov	eax, DWORD PTR -4412[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	mov	rax, QWORD PTR .LC5[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -4412[rbp], eax
	mov	DWORD PTR -4392[rbp], 0
	jmp	.L52
.L53:
	lea	rdx, -4419[rbp]
	mov	rax, QWORD PTR -4448[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	movzx	edx, BYTE PTR -4419[rbp]
	mov	eax, DWORD PTR -4392[rbp]
	cdqe
	mov	BYTE PTR -128[rbp+rax], dl
	add	DWORD PTR -4392[rbp], 1
.L52:
	mov	eax, DWORD PTR -4412[rbp]
	cmp	DWORD PTR -4392[rbp], eax
	jl	.L53
	mov	rax, QWORD PTR -4448[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	jmp	.L54
.L55:
	mov	eax, DWORD PTR -4392[rbp]
	cdqe
	movzx	eax, BYTE PTR -128[rbp+rax]
	mov	BYTE PTR -4413[rbp], al
	movsx	eax, BYTE PTR -4413[rbp]
	mov	edi, eax
	call	hash
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -4440[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -4392[rbp]
	cdqe
	mov	eax, DWORD PTR -4352[rbp+rax*4]
	mov	DWORD PTR [rdx], eax
	sub	DWORD PTR -4392[rbp], 1
.L54:
	cmp	DWORD PTR -4392[rbp], 0
	jns	.L55
	jmp	.L41
.L34:
	mov	DWORD PTR -4396[rbp], 0
	lea	rdx, -4412[rbp]
	mov	rax, QWORD PTR -4448[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	jmp	.L56
.L57:
	lea	rdx, -4419[rbp]
	mov	rax, QWORD PTR -4448[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	movzx	edx, BYTE PTR -4419[rbp]
	mov	eax, DWORD PTR -4396[rbp]
	cdqe
	mov	BYTE PTR -240[rbp+rax], dl
	add	DWORD PTR -4396[rbp], 1
.L56:
	mov	eax, DWORD PTR -4412[rbp]
	cmp	DWORD PTR -4396[rbp], eax
	jl	.L57
	mov	eax, DWORD PTR -4412[rbp]
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, eax
	movq	rax, xmm2
	movq	xmm0, rax
	call	log2@PLT
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -4388[rbp], eax
	mov	DWORD PTR -4396[rbp], 0
	jmp	.L58
.L59:
	lea	rdx, -4419[rbp]
	mov	rax, QWORD PTR -4448[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	movzx	edx, BYTE PTR -4419[rbp]
	mov	eax, DWORD PTR -4396[rbp]
	cdqe
	mov	BYTE PTR -128[rbp+rax], dl
	add	DWORD PTR -4396[rbp], 1
.L58:
	mov	eax, DWORD PTR -4396[rbp]
	cmp	eax, DWORD PTR -4388[rbp]
	jl	.L59
	lea	rdx, -4418[rbp]
	mov	rax, QWORD PTR -4448[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	lea	rax, -4352[rbp]
	mov	rdi, rax
	call	creategrey
	mov	DWORD PTR -4400[rbp], 2
	jmp	.L60
.L61:
	mov	edx, DWORD PTR -4400[rbp]
	lea	rax, -4352[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	makegrey
	sal	DWORD PTR -4400[rbp]
	sub	DWORD PTR -4388[rbp], 1
.L60:
	cmp	DWORD PTR -4388[rbp], 1
	jg	.L61
	mov	DWORD PTR -4384[rbp], 0
	mov	eax, DWORD PTR -4396[rbp]
	sub	eax, 1
	mov	DWORD PTR -4392[rbp], eax
	jmp	.L62
.L65:
	mov	eax, DWORD PTR -4392[rbp]
	cdqe
	movzx	eax, BYTE PTR -128[rbp+rax]
	movsx	eax, al
	mov	edi, eax
	call	hash
	cmp	eax, -1
	je	.L63
	mov	eax, DWORD PTR -4392[rbp]
	cdqe
	movzx	eax, BYTE PTR -128[rbp+rax]
	mov	BYTE PTR -4416[rbp], al
	movsx	eax, BYTE PTR -4416[rbp]
	mov	edi, eax
	call	hash
	mov	DWORD PTR -4368[rbp], eax
	mov	eax, DWORD PTR -4368[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -4440[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 1
	jne	.L64
	mov	eax, DWORD PTR -4396[rbp]
	sub	eax, DWORD PTR -4392[rbp]
	sub	eax, 1
	mov	DWORD PTR -4372[rbp], eax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -4372[rbp]
	mov	rax, QWORD PTR .LC5[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -4384[rbp]
	addsd	xmm0, xmm1
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -4384[rbp], eax
	jmp	.L64
.L63:
	mov	eax, DWORD PTR -4392[rbp]
	cdqe
	movzx	eax, BYTE PTR -128[rbp+rax]
	cmp	al, 49
	jne	.L64
	mov	eax, DWORD PTR -4396[rbp]
	sub	eax, DWORD PTR -4392[rbp]
	sub	eax, 1
	mov	DWORD PTR -4372[rbp], eax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -4372[rbp]
	mov	rax, QWORD PTR .LC5[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -4384[rbp]
	addsd	xmm0, xmm1
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -4384[rbp], eax
.L64:
	sub	DWORD PTR -4392[rbp], 1
.L62:
	cmp	DWORD PTR -4392[rbp], 0
	jns	.L65
	mov	DWORD PTR -4392[rbp], 0
	jmp	.L66
.L69:
	mov	eax, DWORD PTR -4392[rbp]
	cdqe
	mov	eax, DWORD PTR -4352[rbp+rax*4]
	cmp	DWORD PTR -4384[rbp], eax
	jne	.L67
	mov	eax, DWORD PTR -4392[rbp]
	mov	DWORD PTR -4384[rbp], eax
	jmp	.L68
.L67:
	add	DWORD PTR -4392[rbp], 1
.L66:
	mov	eax, DWORD PTR -4392[rbp]
	cmp	eax, DWORD PTR -4400[rbp]
	jl	.L69
.L68:
	movzx	eax, BYTE PTR -4418[rbp]
	movsx	eax, al
	mov	edi, eax
	call	hash
	mov	DWORD PTR -4376[rbp], eax
	mov	eax, DWORD PTR -4384[rbp]
	cdqe
	movzx	eax, BYTE PTR -240[rbp+rax]
	cmp	al, 49
	je	.L70
	mov	eax, DWORD PTR -4384[rbp]
	cdqe
	movzx	eax, BYTE PTR -240[rbp+rax]
	cmp	al, 48
	jne	.L71
.L70:
	mov	eax, DWORD PTR -4384[rbp]
	cdqe
	movzx	eax, BYTE PTR -240[rbp+rax]
	mov	BYTE PTR -4417[rbp], al
	mov	eax, DWORD PTR -4376[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -4440[rbp]
	lea	rbx, [rdx+rax]
	lea	rax, -4417[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR [rbx], eax
	nop
	jmp	.L41
.L71:
	mov	eax, DWORD PTR -4384[rbp]
	cdqe
	movzx	eax, BYTE PTR -240[rbp+rax]
	movsx	eax, al
	mov	edi, eax
	call	hash
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -4440[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -4376[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	mov	rdx, QWORD PTR -4440[rbp]
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	jmp	.L41
.L74:
	nop
.L41:
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L73
	call	__stack_chk_fail@PLT
.L73:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	operate, .-operate
	.section	.rodata
.LC9:
	.string	"bad input"
.LC10:
	.string	"r"
.LC11:
	.string	"bad file"
.LC12:
	.string	"%s %d"
.LC13:
	.string	"%d"
.LC14:
	.string	"%d "
	.text
	.globl	main
	.type	main, @function
main:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 496
	mov	DWORD PTR -484[rbp], edi
	mov	QWORD PTR -496[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -484[rbp], 3
	je	.L76
	lea	rdi, .LC9[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L96
.L76:
	mov	rax, QWORD PTR -496[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -448[rbp], rax
	mov	rax, QWORD PTR -496[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -440[rbp], rax
	cmp	QWORD PTR -448[rbp], 0
	je	.L78
	cmp	QWORD PTR -440[rbp], 0
	jne	.L79
.L78:
	lea	rdi, .LC11[rip]
	call	puts@PLT
.L79:
	mov	DWORD PTR -456[rbp], 0
.L95:
	mov	DWORD PTR -456[rbp], 0
	lea	rcx, -464[rbp]
	lea	rdx, -224[rbp]
	mov	rax, QWORD PTR -448[rbp]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	jmp	.L80
.L83:
	mov	rax, QWORD PTR -448[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	rax, QWORD PTR -448[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	BYTE PTR -470[rbp], al
	movzx	eax, BYTE PTR -470[rbp]
	mov	BYTE PTR -469[rbp], al
	lea	rdx, -468[rbp]
	mov	rax, QWORD PTR -440[rbp]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	cmp	eax, 1
	jne	.L99
	movsx	eax, BYTE PTR -470[rbp]
	mov	edi, eax
	call	hash
	mov	DWORD PTR -460[rbp], eax
	mov	edx, DWORD PTR -468[rbp]
	mov	eax, DWORD PTR -460[rbp]
	cdqe
	mov	DWORD PTR -432[rbp+rax*4], edx
	add	DWORD PTR -456[rbp], 1
.L80:
	mov	eax, DWORD PTR -464[rbp]
	cmp	DWORD PTR -456[rbp], eax
	jl	.L83
	jmp	.L82
.L99:
	nop
.L82:
	lea	rcx, -464[rbp]
	lea	rdx, -224[rbp]
	mov	rax, QWORD PTR -448[rbp]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	DWORD PTR -456[rbp], 0
	jmp	.L84
.L85:
	mov	rax, QWORD PTR -448[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	rax, QWORD PTR -448[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	BYTE PTR -470[rbp], al
	movzx	eax, BYTE PTR -470[rbp]
	mov	BYTE PTR -469[rbp], al
	mov	eax, DWORD PTR -456[rbp]
	cdqe
	movzx	edx, BYTE PTR -469[rbp]
	mov	BYTE PTR -112[rbp+rax], dl
	add	DWORD PTR -456[rbp], 1
.L84:
	mov	eax, DWORD PTR -464[rbp]
	cmp	DWORD PTR -456[rbp], eax
	jl	.L85
	mov	rax, QWORD PTR -440[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	jne	.L100
.L86:
	mov	rdx, QWORD PTR -448[rbp]
	lea	rax, -432[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	operate
	mov	rax, QWORD PTR -448[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	jne	.L101
	jmp	.L86
.L101:
	nop
	mov	DWORD PTR -460[rbp], 0
	jmp	.L90
.L93:
	mov	eax, DWORD PTR -460[rbp]
	cdqe
	movzx	eax, BYTE PTR -112[rbp+rax]
	movsx	eax, al
	mov	edi, eax
	call	hash
	mov	DWORD PTR -452[rbp], eax
	mov	eax, DWORD PTR -452[rbp]
	cdqe
	mov	eax, DWORD PTR -432[rbp+rax*4]
	cmp	eax, 1
	je	.L91
	mov	eax, DWORD PTR -452[rbp]
	cdqe
	mov	eax, DWORD PTR -432[rbp+rax*4]
	test	eax, eax
	jne	.L102
.L91:
	mov	eax, DWORD PTR -452[rbp]
	cdqe
	mov	eax, DWORD PTR -432[rbp+rax*4]
	mov	esi, eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -460[rbp], 1
.L90:
	mov	eax, DWORD PTR -460[rbp]
	cmp	eax, DWORD PTR -456[rbp]
	jl	.L93
	jmp	.L92
.L102:
	nop
.L92:
	mov	edi, 10
	call	putchar@PLT
	mov	rax, QWORD PTR -440[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	BYTE PTR -470[rbp], al
	cmp	BYTE PTR -470[rbp], -1
	je	.L103
	mov	rax, QWORD PTR -448[rbp]
	mov	rdi, rax
	call	rewind@PLT
	jmp	.L95
.L100:
	nop
	jmp	.L87
.L103:
	nop
.L87:
	mov	rax, QWORD PTR -440[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -448[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
.L96:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L97
	call	__stack_chk_fail@PLT
.L97:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC5:
	.long	0
	.long	1073741824
	.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	"190767399.c"
	.text
	.align	2
	.global	hash
	.syntax unified
	.arm
	.fpu softvfp
	.type	hash, %function
hash:
	@ 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
	mov	r3, r0
	strb	r3, [fp, #-13]
	mvn	r3, #0
	str	r3, [fp, #-8]
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	cmp	r3, #90
	bhi	.L2
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	cmp	r3, #64
	bls	.L2
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	sub	r3, r3, #65
	b	.L3
.L2:
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	cmp	r3, #122
	bhi	.L4
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	cmp	r3, #96
	bls	.L4
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	sub	r3, r3, #71
	b	.L3
.L4:
	ldr	r3, [fp, #-8]
.L3:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	hash, .-hash
	.align	2
	.global	decoder
	.syntax unified
	.arm
	.fpu softvfp
	.type	decoder, %function
decoder:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	mov	r1, r2
	mov	r2, r3
	mov	r3, r1
	strb	r3, [fp, #-29]
	mov	r3, r2
	strb	r3, [fp, #-30]
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	mov	r0, r3
	bl	hash
	mov	r3, r0
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-20]
	ldrb	r3, [fp, #-30]	@ zero_extendqisi2
	mov	r0, r3
	bl	hash
	mov	r3, r0
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L6
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L6
	mov	r2, #1
	b	.L7
.L6:
	mov	r2, #0
.L7:
	ldr	r3, [fp, #-24]
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L8
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L8
	mov	r2, #1
	b	.L9
.L8:
	mov	r2, #0
.L9:
	ldr	r3, [fp, #-24]
	add	r3, r3, #4
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L10
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L10
	mov	r2, #1
	b	.L11
.L10:
	mov	r2, #0
.L11:
	ldr	r3, [fp, #-24]
	add	r3, r3, #8
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L12
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L12
	mov	r2, #1
	b	.L13
.L12:
	mov	r2, #0
.L13:
	ldr	r3, [fp, #-24]
	add	r3, r3, #12
	str	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	decoder, .-decoder
	.align	2
	.global	decode
	.syntax unified
	.arm
	.fpu softvfp
	.type	decode, %function
decode:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	strb	r3, [fp, #-33]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L15
.L16:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-32]
	sub	r2, r3, #1
	ldr	r3, [fp, #-20]
	sub	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L15:
	ldr	r3, [fp, #-32]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-20]
	cmp	r3, r2
	blt	.L16
	ldrb	r3, [fp, #-33]	@ zero_extendqisi2
	mov	r0, r3
	bl	hash
	mov	r3, r0
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L17
.L20:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L18
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L18
	mov	r2, #1
	b	.L19
.L18:
	mov	r2, #0
.L19:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-24]
	add	r3, r1, r3
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L17:
	ldr	r3, [fp, #-32]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-20]
	cmp	r3, r2
	blt	.L20
	ldr	r3, [fp, #-32]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	str	r3, [fp, #-20]
	b	.L21
.L24:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L22
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L22
	mov	r2, #1
	b	.L23
.L22:
	mov	r2, #0
.L23:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-24]
	add	r3, r1, r3
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L21:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	blt	.L24
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	decode, .-decode
	.align	2
	.global	creategrey
	.syntax unified
	.arm
	.fpu softvfp
	.type	creategrey, %function
creategrey:
	@ 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, [fp, #-8]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #4
	mov	r2, #1
	str	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	creategrey, .-creategrey
	.align	2
	.global	makegrey
	.syntax unified
	.arm
	.fpu softvfp
	.type	makegrey, %function
makegrey:
	@ 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]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #1
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L27
.L28:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-8]
	sub	r2, r3, #1
	ldr	r3, [fp, #-12]
	sub	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [fp, #-20]
	add	r2, r1, r2
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L27:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L28
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	makegrey, .-makegrey
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%s\000"
	.align	2
.LC1:
	.ascii	" %c %c %c\012\000"
	.align	2
.LC2:
	.ascii	" %c %c\012\000"
	.align	2
.LC3:
	.ascii	" %d \000"
	.align	2
.LC4:
	.ascii	" %c\000"
	.global	__aeabi_i2d
	.global	__aeabi_d2iz
	.align	2
.LC5:
	.ascii	"\012\000"
	.align	2
.LC6:
	.ascii	" %d\000"
	.align	2
.LC7:
	.ascii	" %c\012\000"
	.global	__aeabi_dadd
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	operate
	.syntax unified
	.arm
	.fpu softvfp
	.type	operate, %function
operate:
	@ args = 0, pretend = 0, frame = 4384
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #4352
	sub	sp, sp, #40
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r0, [r3, #-284]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r1, [r3, #-288]
	ldr	r3, .L75+32
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #316
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	ldr	r1, .L75
	ldr	r0, [r0, #-288]
	bl	__isoc99_fscanf
	ldrb	r3, [fp, #-316]	@ zero_extendqisi2
	sub	r3, r3, #65
	cmp	r3, #14
	ldrls	pc, [pc, r3, asl #2]
	b	.L74
.L32:
	.word	.L36
	.word	.L74
	.word	.L74
	.word	.L35
	.word	.L74
	.word	.L74
	.word	.L74
	.word	.L74
	.word	.L74
	.word	.L74
	.word	.L74
	.word	.L74
	.word	.L34
	.word	.L33
	.word	.L31
.L36:
	sub	r1, fp, #4352
	sub	r1, r1, #12
	sub	r1, r1, #17
	sub	r2, fp, #4352
	sub	r2, r2, #12
	sub	r2, r2, #19
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r0, r3
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #12
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L75+4
	ldr	r0, [r0, #-288]
	bl	__isoc99_fscanf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldrb	r3, [r3, #-275]	@ zero_extendqisi2
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r4, r2
	mov	r0, r3
	bl	hash
	str	r0, [r4, #-220]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldrb	r3, [r3, #-273]	@ zero_extendqisi2
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r4, r2
	mov	r0, r3
	bl	hash
	str	r0, [r4, #-216]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldrb	r3, [r3, #-268]	@ zero_extendqisi2
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r4, r2
	mov	r0, r3
	bl	hash
	str	r0, [r4, #-212]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-220]
	lsl	r3, r3, #2
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-284]
	add	r3, r2, r3
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r3, [r3]
	str	r3, [r2, #-264]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-216]
	lsl	r3, r3, #2
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-284]
	add	r3, r2, r3
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r3, [r3]
	str	r3, [r2, #-260]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-264]
	cmn	r3, #1
	bne	.L37
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #19
	mov	r0, r3
	bl	atoi
	str	r0, [r4, #-264]
.L37:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-260]
	cmn	r3, #1
	bne	.L38
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #17
	mov	r0, r3
	bl	atoi
	str	r0, [r4, #-260]
.L38:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-264]
	cmp	r3, #0
	beq	.L39
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-260]
	cmp	r3, #0
	beq	.L39
	mov	r3, #1
	b	.L40
.L39:
	mov	r3, #0
.L40:
	sub	r2, fp, #4096
	sub	r2, r2, #12
	str	r3, [r2, #-236]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-212]
	lsl	r3, r3, #2
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-284]
	add	r3, r2, r3
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-236]
	str	r2, [r3]
	b	.L41
.L31:
	sub	r1, fp, #4352
	sub	r1, r1, #12
	sub	r1, r1, #17
	sub	r2, fp, #4352
	sub	r2, r2, #12
	sub	r2, r2, #19
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r0, r3
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #12
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L75+4
	ldr	r0, [r0, #-288]
	bl	__isoc99_fscanf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldrb	r3, [r3, #-275]	@ zero_extendqisi2
	mov	r0, r3
	bl	hash
	mov	r3, r0
	lsl	r3, r3, #2
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-284]
	add	r3, r2, r3
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r3, [r3]
	str	r3, [r2, #-264]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldrb	r3, [r3, #-273]	@ zero_extendqisi2
	mov	r0, r3
	bl	hash
	mov	r3, r0
	lsl	r3, r3, #2
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-284]
	add	r3, r2, r3
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r3, [r3]
	str	r3, [r2, #-260]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-264]
	cmn	r3, #1
	bne	.L42
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #19
	mov	r0, r3
	bl	atoi
	str	r0, [r4, #-264]
.L42:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-260]
	cmn	r3, #1
	bne	.L43
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #17
	mov	r0, r3
	bl	atoi
	str	r0, [r4, #-260]
.L43:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-264]
	cmp	r3, #0
	bne	.L44
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-260]
	cmp	r3, #0
	beq	.L45
.L44:
	mov	r3, #1
	b	.L46
.L45:
	mov	r3, #0
.L46:
	sub	r2, fp, #4096
	sub	r2, r2, #12
	str	r3, [r2, #-236]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldrb	r3, [r3, #-268]	@ zero_extendqisi2
	mov	r0, r3
	bl	hash
	mov	r3, r0
	lsl	r3, r3, #2
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-284]
	add	r3, r2, r3
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-236]
	str	r2, [r3]
	b	.L41
.L33:
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #17
	sub	r2, fp, #4352
	sub	r2, r2, #12
	sub	r2, r2, #19
	sub	r1, fp, #4096
	sub	r1, r1, #12
	mov	r0, r1
	ldr	r1, .L75+8
	ldr	r0, [r0, #-288]
	bl	__isoc99_fscanf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldrb	r3, [r3, #-275]	@ zero_extendqisi2
	mov	r0, r3
	bl	hash
	mov	r3, r0
	lsl	r3, r3, #2
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-284]
	add	r3, r2, r3
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r3, [r3]
	str	r3, [r2, #-264]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-264]
	cmn	r3, #1
	bne	.L47
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #19
	mov	r0, r3
	bl	atoi
	str	r0, [r4, #-264]
.L47:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-264]
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	sub	r2, fp, #4096
	sub	r2, r2, #12
	str	r3, [r2, #-260]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldrb	r3, [r3, #-273]	@ zero_extendqisi2
	mov	r0, r3
	bl	hash
	mov	r3, r0
	lsl	r3, r3, #2
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-284]
	add	r3, r2, r3
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-260]
	str	r2, [r3]
	b	.L41
.L35:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-252]
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #12
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	ldr	r1, .L75+12
	ldr	r0, [r0, #-288]
	bl	__isoc99_fscanf
	b	.L48
.L49:
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #19
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	ldr	r1, .L75+16
	ldr	r0, [r0, #-288]
	bl	__isoc99_fscanf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldrb	r1, [r3, #-275]	@ zero_extendqisi2
	sub	r2, fp, #116
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-252]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-252]
	add	r3, r3, #1
	str	r3, [r2, #-252]
.L48:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-268]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-252]
	cmp	r2, r3
	blt	.L49
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-252]
	sub	r3, r3, #2
	sub	r2, fp, #4096
	sub	r2, r2, #12
	sub	r1, fp, #12
	add	r3, r1, r3
	ldrb	r3, [r3, #-104]
	strb	r3, [r2, #-271]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-252]
	sub	r3, r3, #1
	sub	r2, fp, #4096
	sub	r2, r2, #12
	sub	r1, fp, #12
	add	r3, r1, r3
	ldrb	r3, [r3, #-104]
	strb	r3, [r2, #-270]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldrb	r3, [r3, #-270]	@ zero_extendqisi2
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldrb	r2, [r2, #-271]	@ zero_extendqisi2
	sub	r1, fp, #4096
	sub	r1, r1, #12
	sub	r0, fp, #4288
	sub	r0, r0, #12
	sub	r0, r0, #16
	ldr	r1, [r1, #-284]
	bl	decoder
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-252]
	sub	r3, r3, #2
	str	r3, [r2, #-252]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #4
	str	r3, [r2, #-256]
	b	.L50
.L51:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-256]
	lsl	r3, r3, #1
	str	r3, [r2, #-256]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-252]
	sub	r3, r3, #1
	sub	r2, fp, #12
	add	r3, r2, r3
	ldrb	r3, [r3, #-104]	@ zero_extendqisi2
	sub	r2, fp, #4096
	sub	r2, r2, #12
	sub	r1, fp, #4096
	sub	r1, r1, #12
	sub	r0, fp, #4288
	sub	r0, r0, #12
	sub	r0, r0, #16
	ldr	r2, [r2, #-256]
	ldr	r1, [r1, #-284]
	bl	decode
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-252]
	sub	r3, r3, #1
	str	r3, [r2, #-252]
.L50:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-252]
	cmp	r3, #0
	bgt	.L51
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-268]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	mov	r1, #1073741824
	bl	pow
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	sub	r2, fp, #4096
	sub	r2, r2, #12
	str	r3, [r2, #-268]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-248]
	b	.L52
.L53:
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #19
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	ldr	r1, .L75+16
	ldr	r0, [r0, #-288]
	bl	__isoc99_fscanf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldrb	r1, [r3, #-275]	@ zero_extendqisi2
	sub	r2, fp, #116
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-248]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-248]
	add	r3, r3, #1
	str	r3, [r2, #-248]
.L52:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-268]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-248]
	cmp	r2, r3
	blt	.L53
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, .L75+20
	ldr	r0, [r3, #-288]
	bl	__isoc99_fscanf
	b	.L54
.L55:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r2, fp, #116
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-248]
	add	r3, r2, r3
	ldrb	r3, [r3]
	strb	r3, [r1, #-269]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldrb	r3, [r3, #-269]	@ zero_extendqisi2
	mov	r0, r3
	bl	hash
	mov	r3, r0
	lsl	r3, r3, #2
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-284]
	add	r2, r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-248]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3, #-208]
	str	r3, [r2]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-248]
	sub	r3, r3, #1
	str	r3, [r2, #-248]
.L54:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-248]
	cmp	r3, #0
	bge	.L55
	b	.L41
.L34:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-252]
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #12
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	ldr	r1, .L75+24
	ldr	r0, [r0, #-288]
	bl	__isoc99_fscanf
	b	.L56
.L57:
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #19
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	ldr	r1, .L75+16
	ldr	r0, [r0, #-288]
	bl	__isoc99_fscanf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldrb	r1, [r3, #-275]	@ zero_extendqisi2
	sub	r2, fp, #216
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-252]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-252]
	add	r3, r3, #1
	str	r3, [r2, #-252]
.L56:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-268]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-252]
	cmp	r2, r3
	blt	.L57
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-268]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	log2
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #4096
	sub	r1, r1, #12
	mov	r4, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [r4, #-244]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-252]
	b	.L58
.L59:
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #19
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	ldr	r1, .L75+16
	ldr	r0, [r0, #-288]
	bl	__isoc99_fscanf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldrb	r1, [r3, #-275]	@ zero_extendqisi2
	sub	r2, fp, #116
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-252]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-252]
	add	r3, r3, #1
	str	r3, [r2, #-252]
.L58:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-252]
	ldr	r3, [r3, #-244]
	cmp	r2, r3
	blt	.L59
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #18
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	ldr	r1, .L75+28
	ldr	r0, [r0, #-288]
	bl	__isoc99_fscanf
	sub	r3, fp, #4288
	sub	r3, r3, #12
	sub	r3, r3, #16
	mov	r0, r3
	bl	creategrey
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #2
	str	r3, [r2, #-256]
	b	.L60
.L61:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4288
	sub	r3, r3, #12
	sub	r3, r3, #16
	ldr	r1, [r2, #-256]
	mov	r0, r3
	bl	makegrey
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-256]
	lsl	r3, r3, #1
	str	r3, [r2, #-256]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-244]
	sub	r3, r3, #1
	str	r3, [r2, #-244]
.L60:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-244]
	cmp	r3, #1
	bgt	.L61
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-240]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-252]
	sub	r3, r3, #1
	str	r3, [r2, #-248]
	b	.L62
.L65:
	sub	r2, fp, #116
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-248]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	hash
	mov	r3, r0
	cmn	r3, #1
	beq	.L63
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r2, fp, #116
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-248]
	add	r3, r2, r3
	ldrb	r3, [r3]
	strb	r3, [r1, #-272]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldrb	r3, [r3, #-272]	@ zero_extendqisi2
	mov	r0, r3
	bl	hash
	str	r0, [r4, #-224]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-224]
	lsl	r3, r3, #2
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-284]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L64
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-252]
	ldr	r3, [r3, #-248]
	sub	r3, r2, r3
	sub	r2, fp, #4096
	sub	r2, r2, #12
	sub	r3, r3, #1
	str	r3, [r2, #-228]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-228]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	mov	r1, #1073741824
	bl	pow
	mov	r4, r0
	mov	r5, r1
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-240]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #4096
	sub	r1, r1, #12
	mov	r4, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [r4, #-240]
	b	.L64
.L63:
	sub	r2, fp, #116
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-248]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #49
	bne	.L64
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-252]
	ldr	r3, [r3, #-248]
	sub	r3, r2, r3
	sub	r2, fp, #4096
	sub	r2, r2, #12
	sub	r3, r3, #1
	str	r3, [r2, #-228]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-228]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	mov	r1, #1073741824
	bl	pow
	mov	r4, r0
	mov	r5, r1
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-240]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #4096
	sub	r1, r1, #12
	mov	r4, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [r4, #-240]
.L64:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-248]
	sub	r3, r3, #1
	str	r3, [r2, #-248]
.L62:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-248]
	cmp	r3, #0
	bge	.L65
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-248]
	b	.L66
.L69:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-248]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-208]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-240]
	cmp	r2, r3
	bne	.L67
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-248]
	str	r3, [r2, #-240]
	b	.L68
.L67:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-248]
	add	r3, r3, #1
	str	r3, [r2, #-248]
.L66:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-248]
	ldr	r3, [r3, #-256]
	cmp	r2, r3
	blt	.L69
.L68:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldrb	r3, [r3, #-274]	@ zero_extendqisi2
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r4, r2
	mov	r0, r3
	bl	hash
	str	r0, [r4, #-232]
	sub	r2, fp, #216
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-240]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #49
	beq	.L70
	sub	r2, fp, #216
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-240]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #48
	bne	.L71
.L70:
	sub	r2, fp, #216
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-240]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	sub	r3, fp, #4096
	sub	r3, r3, #12
	strb	r2, [r3, #-273]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-232]
	lsl	r3, r3, #2
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-284]
	add	r4, r2, r3
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #17
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	str	r3, [r4]
	nop
	b	.L41
.L76:
	.align	2
.L75:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
.L71:
	sub	r2, fp, #216
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-240]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	hash
	mov	r3, r0
	lsl	r3, r3, #2
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-284]
	add	r2, r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-232]
	lsl	r3, r3, #2
	sub	r1, fp, #4096
	sub	r1, r1, #12
	ldr	r1, [r1, #-284]
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	b	.L41
.L74:
	nop
.L41:
	nop
	ldr	r3, .L75+32
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L73
	bl	__stack_chk_fail
.L73:
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
	.size	operate, .-operate
	.section	.rodata
	.align	2
.LC9:
	.ascii	"bad input\000"
	.align	2
.LC10:
	.ascii	"r\000"
	.align	2
.LC11:
	.ascii	"bad file\000"
	.align	2
.LC12:
	.ascii	"%s %d\000"
	.align	2
.LC13:
	.ascii	"%d\000"
	.align	2
.LC14:
	.ascii	"%d \000"
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 456
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #456
	str	r0, [fp, #-456]
	str	r1, [fp, #-460]
	ldr	r3, .L102
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-456]
	cmp	r3, #3
	beq	.L78
	ldr	r0, .L102+4
	bl	puts
	mov	r3, #0
	b	.L96
.L78:
	ldr	r3, [fp, #-460]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L102+8
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-428]
	ldr	r3, [fp, #-460]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r1, .L102+8
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-424]
	ldr	r3, [fp, #-428]
	cmp	r3, #0
	beq	.L80
	ldr	r3, [fp, #-424]
	cmp	r3, #0
	bne	.L81
.L80:
	ldr	r0, .L102+12
	bl	puts
.L81:
	mov	r3, #0
	str	r3, [fp, #-432]
.L95:
	mov	r3, #0
	str	r3, [fp, #-432]
	sub	r3, fp, #440
	sub	r2, fp, #208
	ldr	r1, .L102+16
	ldr	r0, [fp, #-428]
	bl	__isoc99_fscanf
	b	.L82
.L85:
	ldr	r0, [fp, #-428]
	bl	fgetc
	ldr	r0, [fp, #-428]
	bl	fgetc
	mov	r3, r0
	strb	r3, [fp, #-446]
	ldrb	r3, [fp, #-446]
	strb	r3, [fp, #-445]
	sub	r3, fp, #444
	mov	r2, r3
	ldr	r1, .L102+20
	ldr	r0, [fp, #-424]
	bl	__isoc99_fscanf
	mov	r3, r0
	cmp	r3, #1
	bne	.L99
	ldrb	r3, [fp, #-446]	@ zero_extendqisi2
	mov	r0, r3
	bl	hash
	str	r0, [fp, #-436]
	ldr	r2, [fp, #-444]
	ldr	r3, [fp, #-436]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-412]
	ldr	r3, [fp, #-432]
	add	r3, r3, #1
	str	r3, [fp, #-432]
.L82:
	ldr	r3, [fp, #-440]
	ldr	r2, [fp, #-432]
	cmp	r2, r3
	blt	.L85
	b	.L84
.L99:
	nop
.L84:
	sub	r3, fp, #440
	sub	r2, fp, #208
	ldr	r1, .L102+16
	ldr	r0, [fp, #-428]
	bl	__isoc99_fscanf
	mov	r3, #0
	str	r3, [fp, #-432]
	b	.L86
.L87:
	ldr	r0, [fp, #-428]
	bl	fgetc
	ldr	r0, [fp, #-428]
	bl	fgetc
	mov	r3, r0
	strb	r3, [fp, #-446]
	ldrb	r3, [fp, #-446]
	strb	r3, [fp, #-445]
	sub	r2, fp, #108
	ldr	r3, [fp, #-432]
	add	r3, r2, r3
	ldrb	r2, [fp, #-445]
	strb	r2, [r3]
	ldr	r3, [fp, #-432]
	add	r3, r3, #1
	str	r3, [fp, #-432]
.L86:
	ldr	r3, [fp, #-440]
	ldr	r2, [fp, #-432]
	cmp	r2, r3
	blt	.L87
	ldr	r0, [fp, #-424]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L88
	ldr	r0, [fp, #-424]
	bl	fclose
	ldr	r0, [fp, #-428]
	bl	fclose
	mov	r3, #0
	b	.L96
.L88:
	sub	r3, fp, #416
	ldr	r1, [fp, #-428]
	mov	r0, r3
	bl	operate
	ldr	r0, [fp, #-428]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	bne	.L100
	b	.L88
.L100:
	nop
	mov	r3, #0
	str	r3, [fp, #-436]
	b	.L91
.L94:
	sub	r2, fp, #108
	ldr	r3, [fp, #-436]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	hash
	str	r0, [fp, #-420]
	ldr	r3, [fp, #-420]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-412]
	cmp	r3, #1
	beq	.L92
	ldr	r3, [fp, #-420]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-412]
	cmp	r3, #0
	bne	.L101
.L92:
	ldr	r3, [fp, #-420]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-412]
	mov	r1, r3
	ldr	r0, .L102+24
	bl	printf
	ldr	r3, [fp, #-436]
	add	r3, r3, #1
	str	r3, [fp, #-436]
.L91:
	ldr	r2, [fp, #-436]
	ldr	r3, [fp, #-432]
	cmp	r2, r3
	blt	.L94
	b	.L93
.L101:
	nop
.L93:
	mov	r0, #10
	bl	putchar
	ldr	r0, [fp, #-424]
	bl	fgetc
	mov	r3, r0
	strb	r3, [fp, #-446]
	ldr	r0, [fp, #-428]
	bl	rewind
	b	.L95
.L96:
	ldr	r2, .L102
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L97
	bl	__stack_chk_fail
.L97:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L103:
	.align	2
.L102:
	.word	.LC15
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
