	.file	"239211.c"
	.intel_syntax noprefix
	.text
	.globl	book
	.bss
	.align 32
	.type	book, @object
	.size	book, 256
book:
	.zero	256
	.globl	right
	.align 32
	.type	right, @object
	.size	right, 2944
right:
	.zero	2944
	.globl	count
	.align 4
	.type	count, @object
	.size	count, 4
count:
	.zero	4
	.text
	.globl	dfs
	.type	dfs, @function
dfs:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	DWORD PTR -36[rbp], edi
	cmp	DWORD PTR -36[rbp], 8
	jne	.L2
	mov	eax, DWORD PTR count[rip]
	add	eax, 1
	mov	DWORD PTR count[rip], eax
	jmp	.L1
.L2:
	mov	DWORD PTR -24[rbp], 0
	jmp	.L4
.L19:
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	lea	rax, book[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, -1
	jne	.L5
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	lea	rcx, 0[0+rax*4]
	lea	rdx, book[rip]
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR count[rip]
	mov	DWORD PTR -20[rbp], eax
	jmp	.L6
.L7:
	mov	eax, DWORD PTR -24[rbp]
	lea	ecx, 1[rax]
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	lea	rax, right[rip]
	mov	DWORD PTR [rdx+rax], ecx
	add	DWORD PTR -20[rbp], 1
.L6:
	cmp	DWORD PTR -20[rbp], 91
	jle	.L7
	mov	DWORD PTR -16[rbp], 0
	jmp	.L8
.L13:
	mov	DWORD PTR -12[rbp], 0
	jmp	.L9
.L12:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	je	.L10
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	je	.L10
	mov	eax, DWORD PTR -16[rbp]
	sub	eax, DWORD PTR -24[rbp]
	mov	ecx, eax
	sar	ecx, 31
	xor	eax, ecx
	mov	edx, eax
	sub	edx, ecx
	mov	eax, DWORD PTR -12[rbp]
	sub	eax, DWORD PTR -36[rbp]
	mov	ecx, eax
	sar	ecx, 31
	xor	eax, ecx
	sub	eax, ecx
	cmp	edx, eax
	jne	.L11
.L10:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	lea	rax, book[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, -1
	jne	.L11
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	lea	rcx, 0[0+rax*4]
	lea	rdx, book[rip]
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR [rcx+rdx], eax
.L11:
	add	DWORD PTR -12[rbp], 1
.L9:
	cmp	DWORD PTR -12[rbp], 7
	jle	.L12
	add	DWORD PTR -16[rbp], 1
.L8:
	cmp	DWORD PTR -16[rbp], 7
	jle	.L13
	mov	eax, DWORD PTR -36[rbp]
	add	eax, 1
	mov	edi, eax
	call	dfs
	mov	DWORD PTR -8[rbp], 0
	jmp	.L14
.L18:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L15
.L17:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	lea	rax, book[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	DWORD PTR -36[rbp], eax
	jne	.L16
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	lea	rax, book[rip]
	mov	DWORD PTR [rdx+rax], -1
.L16:
	add	DWORD PTR -4[rbp], 1
.L15:
	cmp	DWORD PTR -4[rbp], 7
	jle	.L17
	add	DWORD PTR -8[rbp], 1
.L14:
	cmp	DWORD PTR -8[rbp], 7
	jle	.L18
.L5:
	add	DWORD PTR -24[rbp], 1
.L4:
	cmp	DWORD PTR -24[rbp], 7
	jle	.L19
.L1:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	dfs, .-dfs
	.section	.rodata
.LC0:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	edx, 256
	mov	esi, -1
	lea	rdi, book[rip]
	call	memset@PLT
	mov	edx, 2944
	mov	esi, -1
	lea	rdi, right[rip]
	call	memset@PLT
	mov	edi, 0
	call	dfs
	mov	DWORD PTR -16[rbp], 0
	jmp	.L21
.L24:
	lea	rax, -20[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -12[rbp], 0
	jmp	.L22
.L23:
	mov	eax, DWORD PTR -20[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -12[rbp]
	movsx	rcx, eax
	movsx	rax, edx
	sal	rax, 3
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, right[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -12[rbp], 1
.L22:
	cmp	DWORD PTR -12[rbp], 7
	jle	.L23
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -16[rbp], 1
.L21:
	mov	eax, DWORD PTR -24[rbp]
	cmp	DWORD PTR -16[rbp], eax
	jl	.L24
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.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	"239211.c"
	.text
	.comm	book,256,4
	.comm	right,2944,4
	.global	count
	.bss
	.align	2
	.type	count, %object
	.size	count, 4
count:
	.space	4
	.text
	.align	2
	.global	dfs
	.syntax unified
	.arm
	.fpu softvfp
	.type	dfs, %function
dfs:
	@ 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, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #8
	bne	.L2
	ldr	r3, .L20
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L20
	str	r3, [r2]
	b	.L1
.L2:
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L4
.L19:
	ldr	r1, .L20+4
	ldr	r3, [fp, #-28]
	lsl	r2, r3, #3
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	ldr	r3, [r1, r3, lsl #2]
	cmn	r3, #1
	bne	.L5
	ldr	r1, .L20+4
	ldr	r3, [fp, #-28]
	lsl	r2, r3, #3
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	ldr	r2, [fp, #-32]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	b	.L6
.L7:
	ldr	r3, [fp, #-28]
	add	r2, r3, #1
	ldr	r0, .L20+8
	ldr	r3, [fp, #-24]
	lsl	r1, r3, #3
	ldr	r3, [fp, #-32]
	add	r3, r1, r3
	str	r2, [r0, r3, lsl #2]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L6:
	ldr	r3, [fp, #-24]
	cmp	r3, #91
	ble	.L7
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L8
.L13:
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L9
.L12:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	beq	.L10
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	beq	.L10
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-28]
	sub	r3, r2, r3
	eor	r2, r3, r3, asr #31
	sub	r2, r2, r3, asr #31
	ldr	r1, [fp, #-16]
	ldr	r3, [fp, #-32]
	sub	r3, r1, r3
	cmp	r3, #0
	rsblt	r3, r3, #0
	cmp	r2, r3
	bne	.L11
.L10:
	ldr	r1, .L20+4
	ldr	r3, [fp, #-20]
	lsl	r2, r3, #3
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r1, r3, lsl #2]
	cmn	r3, #1
	bne	.L11
	ldr	r1, .L20+4
	ldr	r3, [fp, #-20]
	lsl	r2, r3, #3
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [fp, #-32]
	str	r2, [r1, r3, lsl #2]
.L11:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L9:
	ldr	r3, [fp, #-16]
	cmp	r3, #7
	ble	.L12
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L8:
	ldr	r3, [fp, #-20]
	cmp	r3, #7
	ble	.L13
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	mov	r0, r3
	bl	dfs
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L14
.L18:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L15
.L17:
	ldr	r1, .L20+4
	ldr	r3, [fp, #-12]
	lsl	r2, r3, #3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldr	r3, [r1, r3, lsl #2]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	bne	.L16
	ldr	r1, .L20+4
	ldr	r3, [fp, #-12]
	lsl	r2, r3, #3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	mvn	r2, #0
	str	r2, [r1, r3, lsl #2]
.L16:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L15:
	ldr	r3, [fp, #-8]
	cmp	r3, #7
	ble	.L17
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L14:
	ldr	r3, [fp, #-12]
	cmp	r3, #7
	ble	.L18
.L5:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L4:
	ldr	r3, [fp, #-28]
	cmp	r3, #7
	ble	.L19
.L1:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	count
	.word	book
	.word	right
	.size	dfs, .-dfs
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L29
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, .L29+4
	bl	__isoc99_scanf
	mov	r2, #256
	mvn	r1, #0
	ldr	r0, .L29+8
	bl	memset
	mov	r2, #2944
	mvn	r1, #0
	ldr	r0, .L29+12
	bl	memset
	mov	r0, #0
	bl	dfs
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L23
.L26:
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L29+4
	bl	__isoc99_scanf
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L24
.L25:
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	ldr	r1, .L29+12
	lsl	r2, r3, #3
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldr	r3, [r1, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L29+4
	bl	printf
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L24:
	ldr	r3, [fp, #-12]
	cmp	r3, #7
	ble	.L25
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L23:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L26
	mov	r3, #0
	ldr	r2, .L29
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L28
	bl	__stack_chk_fail
.L28:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L30:
	.align	2
.L29:
	.word	.LC1
	.word	.LC0
	.word	book
	.word	right
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
