	.file	"484976.c"
	.intel_syntax noprefix
	.text
	.globl	tot
	.bss
	.align 4
	.type	tot, @object
	.size	tot, 4
tot:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	vis
	.align 32
	.type	vis, @object
	.size	vis, 2400
vis:
	.zero	2400
	.globl	c
	.align 32
	.type	c, @object
	.size	c, 80
c:
	.zero	80
	.section	.rodata
.LC0:
	.string	"%d "
.LC1:
	.string	"%d\n"
	.text
	.globl	search
	.type	search, @function
search:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	eax, DWORD PTR n[rip]
	cmp	DWORD PTR -20[rbp], eax
	jne	.L2
	mov	eax, DWORD PTR tot[rip]
	add	eax, 1
	mov	DWORD PTR tot[rip], eax
	mov	eax, DWORD PTR tot[rip]
	cmp	eax, 3
	jg	.L9
	mov	DWORD PTR -4[rbp], 0
	jmp	.L4
.L5:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, c[rip]
	mov	eax, DWORD PTR [rdx+rax]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L4:
	mov	eax, DWORD PTR n[rip]
	sub	eax, 1
	cmp	DWORD PTR -4[rbp], eax
	jl	.L5
	mov	eax, DWORD PTR n[rip]
	sub	eax, 1
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, c[rip]
	mov	eax, DWORD PTR [rdx+rax]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L9
.L2:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L6
.L8:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, vis[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	jne	.L7
	mov	edx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -4[rbp]
	add	eax, edx
	cdqe
	add	rax, 200
	lea	rdx, 0[0+rax*4]
	lea	rax, vis[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	jne	.L7
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, DWORD PTR -4[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR n[rip]
	add	eax, edx
	cdqe
	add	rax, 400
	lea	rdx, 0[0+rax*4]
	lea	rax, vis[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	jne	.L7
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, c[rip]
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, DWORD PTR -4[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR n[rip]
	add	edx, eax
	movsx	rax, edx
	add	rax, 400
	lea	rcx, 0[0+rax*4]
	lea	rax, vis[rip]
	mov	DWORD PTR [rcx+rax], 1
	mov	ecx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -4[rbp]
	add	eax, ecx
	movsx	rdx, edx
	add	rdx, 400
	lea	rcx, 0[0+rdx*4]
	lea	rdx, vis[rip]
	mov	edx, DWORD PTR [rcx+rdx]
	movsx	rcx, eax
	add	rcx, 200
	lea	rsi, 0[0+rcx*4]
	lea	rcx, vis[rip]
	mov	DWORD PTR [rsi+rcx], edx
	cdqe
	add	rax, 200
	lea	rdx, 0[0+rax*4]
	lea	rax, vis[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -4[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, vis[rip]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR -20[rbp]
	add	eax, 1
	mov	edi, eax
	call	search
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, DWORD PTR -4[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR n[rip]
	add	edx, eax
	movsx	rax, edx
	add	rax, 400
	lea	rcx, 0[0+rax*4]
	lea	rax, vis[rip]
	mov	DWORD PTR [rcx+rax], 0
	mov	ecx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -4[rbp]
	add	eax, ecx
	movsx	rdx, edx
	add	rdx, 400
	lea	rcx, 0[0+rdx*4]
	lea	rdx, vis[rip]
	mov	edx, DWORD PTR [rcx+rdx]
	movsx	rcx, eax
	add	rcx, 200
	lea	rsi, 0[0+rcx*4]
	lea	rcx, vis[rip]
	mov	DWORD PTR [rsi+rcx], edx
	cdqe
	add	rax, 200
	lea	rdx, 0[0+rax*4]
	lea	rax, vis[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -4[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, vis[rip]
	mov	DWORD PTR [rcx+rdx], eax
.L7:
	add	DWORD PTR -4[rbp], 1
.L6:
	mov	eax, DWORD PTR n[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L8
.L9:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	search, .-search
	.section	.rodata
.LC2:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	jmp	.L11
.L12:
	mov	DWORD PTR tot[rip], 0
	mov	edi, 0
	call	search
	mov	eax, DWORD PTR tot[rip]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
.L11:
	lea	rsi, n[rip]
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	cmp	eax, -1
	jne	.L12
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"484976.c"
	.text
	.global	tot
	.bss
	.align	2
	.type	tot, %object
	.size	tot, 4
tot:
	.space	4
	.comm	n,4,4
	.global	vis
	.align	2
	.type	vis, %object
	.size	vis, 2400
vis:
	.space	2400
	.comm	c,80,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d \000"
	.align	2
.LC1:
	.ascii	"%d\012\000"
	.text
	.align	2
	.global	search
	.syntax unified
	.arm
	.fpu softvfp
	.type	search, %function
search:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, .L10
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bne	.L2
	ldr	r3, .L10+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L10+4
	str	r3, [r2]
	ldr	r3, .L10+4
	ldr	r3, [r3]
	cmp	r3, #3
	bgt	.L9
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L4
.L5:
	ldr	r2, .L10+8
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L10+12
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L4:
	ldr	r3, .L10
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L5
	ldr	r3, .L10
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L10+8
	ldr	r3, [r2, r3, lsl #2]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L10+16
	bl	printf
	b	.L9
.L2:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L6
.L8:
	ldr	r2, .L10+20
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	bne	.L7
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldr	r2, .L10+20
	add	r3, r3, #200
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	bne	.L7
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	sub	r2, r2, r3
	ldr	r3, .L10
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L10+20
	add	r3, r3, #400
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	bne	.L7
	ldr	r1, .L10+8
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	str	r2, [r1, r3, lsl #2]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	sub	r2, r2, r3
	ldr	r3, .L10
	ldr	r3, [r3]
	add	r2, r2, r3
	ldr	r1, .L10+20
	add	r3, r2, #400
	mov	r0, #1
	str	r0, [r1, r3, lsl #2]
	ldr	r1, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r3, r1, r3
	ldr	r1, .L10+20
	add	r2, r2, #400
	ldr	r1, [r1, r2, lsl #2]
	ldr	r0, .L10+20
	add	r2, r3, #200
	str	r1, [r0, r2, lsl #2]
	ldr	r2, .L10+20
	add	r3, r3, #200
	ldr	r2, [r2, r3, lsl #2]
	ldr	r1, .L10+20
	ldr	r3, [fp, #-8]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	mov	r0, r3
	bl	search
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	sub	r2, r2, r3
	ldr	r3, .L10
	ldr	r3, [r3]
	add	r2, r2, r3
	ldr	r1, .L10+20
	add	r3, r2, #400
	mov	r0, #0
	str	r0, [r1, r3, lsl #2]
	ldr	r1, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r3, r1, r3
	ldr	r1, .L10+20
	add	r2, r2, #400
	ldr	r1, [r1, r2, lsl #2]
	ldr	r0, .L10+20
	add	r2, r3, #200
	str	r1, [r0, r2, lsl #2]
	ldr	r2, .L10+20
	add	r3, r3, #200
	ldr	r2, [r2, r3, lsl #2]
	ldr	r1, .L10+20
	ldr	r3, [fp, #-8]
	str	r2, [r1, r3, lsl #2]
.L7:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L6:
	ldr	r3, .L10
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L8
.L9:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	n
	.word	tot
	.word	c
	.word	.LC0
	.word	.LC1
	.word	vis
	.size	search, .-search
	.section	.rodata
	.align	2
.LC2:
	.ascii	"%d\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	b	.L13
.L14:
	ldr	r3, .L16
	mov	r2, #0
	str	r2, [r3]
	mov	r0, #0
	bl	search
	ldr	r3, .L16
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L16+4
	bl	printf
.L13:
	ldr	r1, .L16+8
	ldr	r0, .L16+12
	bl	__isoc99_scanf
	mov	r3, r0
	cmn	r3, #1
	bne	.L14
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	tot
	.word	.LC1
	.word	n
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
