	.file	"33736.c"
	.intel_syntax noprefix
	.text
	.globl	N
	.bss
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	inc
	.align 32
	.type	inc, @object
	.size	inc, 8004
inc:
	.zero	8004
	.globl	dec
	.align 32
	.type	dec, @object
	.size	dec, 8004
dec:
	.zero	8004
	.globl	num
	.align 32
	.type	num, @object
	.size	num, 8004
num:
	.zero	8004
	.globl	next
	.align 4
	.type	next, @object
	.size	next, 4
next:
	.zero	4
	.globl	valid
	.align 32
	.type	valid, @object
	.size	valid, 8004
valid:
	.zero	8004
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"c.in"
.LC2:
	.string	"w"
.LC3:
	.string	"c.out"
.LC4:
	.string	"%d "
.LC5:
	.string	"Case #%d: "
	.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, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR stdin[rip]
	mov	rdx, rax
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	freopen@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdx, rax
	lea	rsi, .LC2[rip]
	lea	rdi, .LC3[rip]
	call	freopen@PLT
	lea	rax, -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -12[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -12[rbp]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	handlecase
	add	DWORD PTR -12[rbp], 1
.L2:
	mov	eax, DWORD PTR -16[rbp]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L3
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	mark
	.type	mark, @function
mark:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	DWORD PTR -28[rbp], edx
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -8[rbp], eax
	jmp	.L7
.L9:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, dec[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	DWORD PTR -28[rbp], eax
	jne	.L8
	mov	eax, DWORD PTR next[rip]
	mov	edx, DWORD PTR -8[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, num[rip]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR next[rip]
	add	eax, 1
	mov	DWORD PTR next[rip], eax
	mov	eax, DWORD PTR -28[rbp]
	lea	edx, 1[rax]
	mov	ecx, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	mark
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR -4[rbp], eax
.L8:
	add	DWORD PTR -8[rbp], 1
.L7:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jl	.L9
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	mark, .-mark
	.section	.rodata
.LC6:
	.string	"%d"
	.text
	.globl	handlecase
	.type	handlecase, @function
handlecase:
.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, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rsi, N[rip]
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -12[rbp], 0
	jmp	.L11
.L12:
	lea	rax, -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -12[rbp], 1
.L11:
	mov	eax, DWORD PTR N[rip]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L12
	mov	DWORD PTR -12[rbp], 0
	jmp	.L13
.L14:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, dec[rip]
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, valid[rip]
	mov	DWORD PTR [rdx+rax], 1
	add	DWORD PTR -12[rbp], 1
.L13:
	mov	eax, DWORD PTR N[rip]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L14
	mov	DWORD PTR next[rip], 1
	mov	eax, DWORD PTR N[rip]
	mov	edx, 1
	mov	esi, eax
	mov	edi, 0
	call	mark
	mov	DWORD PTR -12[rbp], 0
	jmp	.L15
.L17:
	cmp	DWORD PTR -12[rbp], 0
	je	.L16
	mov	edi, 32
	call	putchar@PLT
.L16:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, num[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -12[rbp], 1
.L15:
	mov	eax, DWORD PTR N[rip]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L17
	mov	edi, 10
	call	putchar@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	handlecase, .-handlecase
	.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	"33736.c"
	.text
	.comm	N,4,4
	.comm	inc,8004,4
	.comm	dec,8004,4
	.comm	num,8004,4
	.comm	next,4,4
	.comm	valid,8004,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"c.in\000"
	.align	2
.LC2:
	.ascii	"w\000"
	.align	2
.LC3:
	.ascii	"c.out\000"
	.align	2
.LC4:
	.ascii	"%d \000"
	.align	2
.LC5:
	.ascii	"Case #%d: \000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L6
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L6+4
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L6+8
	ldr	r0, .L6+12
	bl	freopen
	ldr	r3, .L6+16
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L6+20
	ldr	r0, .L6+24
	bl	freopen
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, .L6+28
	bl	__isoc99_scanf
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L2
.L3:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L6+32
	bl	printf
	bl	handlecase
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L2:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L3
	mov	r3, #0
	ldr	r2, .L6
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L5
	bl	__stack_chk_fail
.L5:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC6
	.word	stdin
	.word	.LC0
	.word	.LC1
	.word	stdout
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.align	2
	.global	mark
	.syntax unified
	.arm
	.fpu softvfp
	.type	mark, %function
mark:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-12]
	b	.L9
.L11:
	ldr	r2, .L12
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bne	.L10
	ldr	r3, .L12+4
	ldr	r2, [r3]
	ldr	r1, .L12+8
	ldr	r3, [fp, #-12]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, .L12+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L12+4
	str	r3, [r2]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	mov	r2, r3
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	mark
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-8]
.L10:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L9:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L11
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	dec
	.word	next
	.word	num
	.size	mark, .-mark
	.section	.rodata
	.align	2
.LC7:
	.ascii	"%d\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	handlecase
	.syntax unified
	.arm
	.fpu softvfp
	.type	handlecase, %function
handlecase:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L23
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L23+4
	ldr	r0, .L23+8
	bl	__isoc99_scanf
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L15
.L16:
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, .L23+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L15:
	ldr	r3, .L23+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L16
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L17
.L18:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, .L23+12
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, .L23+8
	bl	__isoc99_scanf
	ldr	r2, .L23+16
	ldr	r3, [fp, #-12]
	mov	r1, #1
	str	r1, [r2, r3, lsl #2]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L17:
	ldr	r3, .L23+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L18
	ldr	r3, .L23+20
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, .L23+4
	ldr	r3, [r3]
	mov	r2, #1
	mov	r1, r3
	mov	r0, #0
	bl	mark
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L19
.L21:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L20
	mov	r0, #32
	bl	putchar
.L20:
	ldr	r2, .L23+24
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L23+28
	bl	printf
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L19:
	ldr	r3, .L23+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L21
	mov	r0, #10
	bl	putchar
	nop
	ldr	r3, .L23
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L22
	bl	__stack_chk_fail
.L22:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC8
	.word	N
	.word	.LC4
	.word	dec
	.word	valid
	.word	next
	.word	num
	.word	.LC7
	.size	handlecase, .-handlecase
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
