	.file	"677439.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%3c"
.LC1:
	.string	"\347\231\275\346\243\213\345\215\240\344\274\230."
.LC2:
	.string	"\351\273\221\346\243\213\345\215\240\344\274\230."
.LC3:
	.string	"\345\271\263\345\261\200."
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	movabs	rax, 8172714245844259147
	mov	QWORD PTR -20[rbp], rax
	mov	DWORD PTR -12[rbp], 1886282354
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	mov	DWORD PTR -104[rbp], 0
	jmp	.L2
.L5:
	mov	DWORD PTR -100[rbp], 0
	jmp	.L3
.L4:
	call	rand@PLT
	movsx	rcx, eax
	movabs	rdx, -6148914691236517205
	mov	rax, rcx
	mul	rdx
	shr	rdx, 3
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	sub	rcx, rax
	mov	rdx, rcx
	movzx	eax, BYTE PTR -20[rbp+rdx]
	mov	edx, DWORD PTR -100[rbp]
	movsx	rcx, edx
	mov	edx, DWORD PTR -104[rbp]
	movsx	rdx, edx
	sal	rdx, 3
	add	rdx, rbp
	add	rdx, rcx
	sub	rdx, 96
	mov	BYTE PTR [rdx], al
	mov	eax, DWORD PTR -100[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -104[rbp]
	cdqe
	sal	rax, 3
	add	rax, rbp
	add	rax, rdx
	sub	rax, 96
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -100[rbp], 1
.L3:
	cmp	DWORD PTR -100[rbp], 7
	jle	.L4
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -104[rbp], 1
.L2:
	cmp	DWORD PTR -104[rbp], 7
	jle	.L5
	lea	rax, -96[rbp]
	mov	rdi, rax
	call	evaluate_position
	test	eax, eax
	jle	.L6
	lea	rdi, .LC1[rip]
	call	puts@PLT
	jmp	.L7
.L6:
	lea	rax, -96[rbp]
	mov	rdi, rax
	call	evaluate_position
	test	eax, eax
	jns	.L8
	lea	rdi, .LC2[rip]
	call	puts@PLT
	jmp	.L7
.L8:
	lea	rdi, .LC3[rip]
	call	puts@PLT
.L7:
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	evaluate_position
	.type	evaluate_position, @function
evaluate_position:
.LFB7:
	.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 -16[rbp], 0
	mov	DWORD PTR -12[rbp], 0
	mov	DWORD PTR -8[rbp], 0
	jmp	.L12
.L25:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L13
.L24:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	movsx	eax, al
	sub	eax, 66
	cmp	eax, 48
	ja	.L14
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L16[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L16[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L16:
	.long	.L23-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L23-.L16
	.long	.L14-.L16
	.long	.L22-.L16
	.long	.L21-.L16
	.long	.L20-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L19-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L19-.L16
	.long	.L14-.L16
	.long	.L18-.L16
	.long	.L17-.L16
	.long	.L15-.L16
	.text
.L21:
	add	DWORD PTR -16[rbp], 9
	jmp	.L14
.L20:
	add	DWORD PTR -16[rbp], 5
	jmp	.L14
.L23:
	add	DWORD PTR -16[rbp], 3
	jmp	.L14
.L22:
	add	DWORD PTR -16[rbp], 1
	jmp	.L14
.L17:
	add	DWORD PTR -12[rbp], 9
	jmp	.L14
.L15:
	add	DWORD PTR -12[rbp], 5
	jmp	.L14
.L19:
	add	DWORD PTR -12[rbp], 3
	jmp	.L14
.L18:
	add	DWORD PTR -12[rbp], 1
	nop
.L14:
	add	DWORD PTR -4[rbp], 1
.L13:
	cmp	DWORD PTR -4[rbp], 7
	jle	.L24
	add	DWORD PTR -8[rbp], 1
.L12:
	cmp	DWORD PTR -8[rbp], 7
	jle	.L25
	mov	eax, DWORD PTR -16[rbp]
	sub	eax, DWORD PTR -12[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	evaluate_position, .-evaluate_position
	.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	"677439.c"
	.text
	.section	.rodata
	.align	2
.LC1:
	.ascii	"%3c\000"
	.align	2
.LC2:
	.ascii	"\347\231\275\346\243\213\345\215\240\344\274\230.\000"
	.align	2
.LC3:
	.ascii	"\351\273\221\346\243\213\345\215\240\344\274\230.\000"
	.align	2
.LC4:
	.ascii	"\345\271\263\345\261\200.\000"
	.align	2
.LC0:
	.ascii	"KQRBNPkqrbnp"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 88
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #88
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r2, .L11+4
	sub	r3, fp, #20
	ldm	r2, {r0, r1, r2}
	stm	r3, {r0, r1, r2}
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	mov	r3, #0
	str	r3, [fp, #-92]
	b	.L2
.L5:
	mov	r3, #0
	str	r3, [fp, #-88]
	b	.L3
.L4:
	bl	rand
	mov	r3, r0
	mov	r1, r3
	ldr	r3, .L11+8
	umull	r2, r3, r1, r3
	lsr	r2, r3, #3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, r1, r3
	sub	r3, fp, #4
	add	r3, r3, r2
	ldrb	r1, [r3, #-16]	@ zero_extendqisi2
	ldr	r3, [fp, #-92]
	lsl	r3, r3, #3
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-88]
	add	r3, r2, r3
	sub	r3, r3, #80
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-92]
	lsl	r3, r3, #3
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-88]
	add	r3, r2, r3
	sub	r3, r3, #80
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L11+12
	bl	printf
	ldr	r3, [fp, #-88]
	add	r3, r3, #1
	str	r3, [fp, #-88]
.L3:
	ldr	r3, [fp, #-88]
	cmp	r3, #7
	ble	.L4
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-92]
	add	r3, r3, #1
	str	r3, [fp, #-92]
.L2:
	ldr	r3, [fp, #-92]
	cmp	r3, #7
	ble	.L5
	sub	r3, fp, #84
	mov	r0, r3
	bl	evaluate_position
	mov	r3, r0
	cmp	r3, #0
	ble	.L6
	ldr	r0, .L11+16
	bl	puts
	b	.L7
.L6:
	sub	r3, fp, #84
	mov	r0, r3
	bl	evaluate_position
	mov	r3, r0
	cmp	r3, #0
	bge	.L8
	ldr	r0, .L11+20
	bl	puts
	b	.L7
.L8:
	ldr	r0, .L11+24
	bl	puts
.L7:
	mov	r3, #0
	ldr	r2, .L11
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC5
	.word	.LC0
	.word	-1431655765
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.align	2
	.global	evaluate_position
	.syntax unified
	.arm
	.fpu softvfp
	.type	evaluate_position, %function
evaluate_position:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L14
.L27:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L15
.L26:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-24]
	add	r2, r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #66
	cmp	r3, #48
	ldrls	pc, [pc, r3, asl #2]
	b	.L16
.L18:
	.word	.L25
	.word	.L16
	.word	.L16
	.word	.L16
	.word	.L16
	.word	.L16
	.word	.L16
	.word	.L16
	.word	.L16
	.word	.L16
	.word	.L16
	.word	.L16
	.word	.L25
	.word	.L16
	.word	.L24
	.word	.L23
	.word	.L22
	.word	.L16
	.word	.L16
	.word	.L16
	.word	.L16
	.word	.L16
	.word	.L16
	.word	.L16
	.word	.L16
	.word	.L16
	.word	.L16
	.word	.L16
	.word	.L16
	.word	.L16
	.word	.L16
	.word	.L16
	.word	.L21
	.word	.L16
	.word	.L16
	.word	.L16
	.word	.L16
	.word	.L16
	.word	.L16
	.word	.L16
	.word	.L16
	.word	.L16
	.word	.L16
	.word	.L16
	.word	.L21
	.word	.L16
	.word	.L20
	.word	.L19
	.word	.L17
.L23:
	ldr	r3, [fp, #-20]
	add	r3, r3, #9
	str	r3, [fp, #-20]
	b	.L16
.L22:
	ldr	r3, [fp, #-20]
	add	r3, r3, #5
	str	r3, [fp, #-20]
	b	.L16
.L25:
	ldr	r3, [fp, #-20]
	add	r3, r3, #3
	str	r3, [fp, #-20]
	b	.L16
.L24:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	b	.L16
.L19:
	ldr	r3, [fp, #-16]
	add	r3, r3, #9
	str	r3, [fp, #-16]
	b	.L16
.L17:
	ldr	r3, [fp, #-16]
	add	r3, r3, #5
	str	r3, [fp, #-16]
	b	.L16
.L21:
	ldr	r3, [fp, #-16]
	add	r3, r3, #3
	str	r3, [fp, #-16]
	b	.L16
.L20:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	nop
.L16:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L15:
	ldr	r3, [fp, #-8]
	cmp	r3, #7
	ble	.L26
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L14:
	ldr	r3, [fp, #-12]
	cmp	r3, #7
	ble	.L27
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-16]
	sub	r3, r2, r3
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	evaluate_position, .-evaluate_position
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
