	.file	"42747.c"
	.intel_syntax noprefix
	.text
	.globl	possivel
	.bss
	.align 32
	.type	possivel, @object
	.size	possivel, 10500
possivel:
	.zero	10500
	.globl	x
	.align 4
	.type	x, @object
	.size	x, 4
x:
	.zero	4
	.globl	y
	.align 4
	.type	y, @object
	.size	y, 4
y:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	valores
	.align 32
	.type	valores, @object
	.size	valores, 400
valores:
	.zero	400
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"Teste %d\n"
.LC2:
	.string	"N\n"
.LC3:
	.string	"%c\n\n"
.LC4:
	.string	"%d %d %d"
	.text
	.globl	main
	.type	main, @function
main:
.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, 32
	mov	DWORD PTR -16[rbp], 1
	jmp	.L2
.L15:
	mov	DWORD PTR -20[rbp], 0
	mov	DWORD PTR -12[rbp], 0
	jmp	.L3
.L4:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, valores[rip]
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, valores[rip]
	mov	eax, DWORD PTR [rdx+rax]
	add	DWORD PTR -20[rbp], eax
	add	DWORD PTR -12[rbp], 1
.L3:
	mov	eax, DWORD PTR n[rip]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L4
	mov	eax, DWORD PTR -16[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -16[rbp], edx
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, DWORD PTR x[rip]
	mov	eax, DWORD PTR -20[rbp]
	add	edx, eax
	mov	eax, DWORD PTR y[rip]
	add	eax, edx
	and	eax, 1
	test	eax, eax
	je	.L5
	lea	rdi, .LC2[rip]
	call	puts@PLT
	jmp	.L2
.L5:
	mov	edx, DWORD PTR x[rip]
	mov	eax, DWORD PTR -20[rbp]
	add	edx, eax
	mov	eax, DWORD PTR y[rip]
	add	eax, edx
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	edx, DWORD PTR x[rip]
	sub	eax, edx
	mov	DWORD PTR -4[rbp], eax
	mov	edx, 10500
	mov	esi, 0
	lea	rdi, possivel[rip]
	call	memset@PLT
	mov	BYTE PTR possivel[rip], 1
	mov	DWORD PTR -24[rbp], 0
	mov	DWORD PTR -12[rbp], 0
	jmp	.L6
.L11:
	mov	eax, DWORD PTR -24[rbp]
	mov	DWORD PTR -8[rbp], eax
	jmp	.L7
.L9:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, possivel[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	test	al, al
	je	.L8
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, valores[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -8[rbp]
	add	eax, edx
	cdqe
	lea	rdx, possivel[rip]
	mov	BYTE PTR [rax+rdx], 1
.L8:
	sub	DWORD PTR -8[rbp], 1
.L7:
	cmp	DWORD PTR -8[rbp], 0
	jns	.L9
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, valores[rip]
	mov	eax, DWORD PTR [rdx+rax]
	add	DWORD PTR -24[rbp], eax
	add	DWORD PTR -12[rbp], 1
.L6:
	mov	eax, DWORD PTR n[rip]
	cmp	DWORD PTR -12[rbp], eax
	jge	.L10
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, possivel[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	test	al, al
	je	.L11
.L10:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, possivel[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	test	al, al
	je	.L12
	mov	eax, 83
	jmp	.L13
.L12:
	mov	eax, 78
.L13:
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
.L2:
	lea	rcx, n[rip]
	lea	rdx, y[rip]
	lea	rsi, x[rip]
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	cmp	eax, 3
	jne	.L14
	mov	eax, DWORD PTR x[rip]
	test	eax, eax
	jg	.L15
.L14:
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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	"42747.c"
	.text
	.comm	possivel,10500,4
	.comm	x,4,4
	.comm	y,4,4
	.comm	n,4,4
	.comm	valores,400,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\000"
	.align	2
.LC1:
	.ascii	"Teste %d\012\000"
	.align	2
.LC2:
	.ascii	"N\012\000"
	.align	2
.LC3:
	.ascii	"%c\012\012\000"
	.align	2
.LC4:
	.ascii	"%d %d %d\000"
	.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
	mov	r3, #1
	str	r3, [fp, #-20]
	b	.L2
.L15:
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L3
.L4:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, .L17
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, .L17+4
	bl	__isoc99_scanf
	ldr	r2, .L17
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L3:
	ldr	r3, .L17+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L4
	ldr	r3, [fp, #-20]
	add	r2, r3, #1
	str	r2, [fp, #-20]
	mov	r1, r3
	ldr	r0, .L17+12
	bl	printf
	ldr	r3, .L17+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r2, r2, r3
	ldr	r3, .L17+20
	ldr	r3, [r3]
	add	r3, r2, r3
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L5
	ldr	r0, .L17+24
	bl	puts
	b	.L2
.L5:
	ldr	r3, .L17+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r2, r2, r3
	ldr	r3, .L17+20
	ldr	r3, [r3]
	add	r3, r2, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, .L17+16
	ldr	r3, [r3]
	sub	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r2, .L17+28
	mov	r1, #0
	ldr	r0, .L17+32
	bl	memset
	ldr	r3, .L17+32
	mov	r2, #1
	strb	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L6
.L11:
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-12]
	b	.L7
.L9:
	ldr	r2, .L17+32
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L8
	ldr	r2, .L17
	ldr	r3, [fp, #-16]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldr	r2, .L17+32
	mov	r1, #1
	strb	r1, [r2, r3]
.L8:
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
.L7:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bge	.L9
	ldr	r2, .L17
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L6:
	ldr	r3, .L17+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bge	.L10
	ldr	r2, .L17+32
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L11
.L10:
	ldr	r2, .L17+32
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L12
	mov	r3, #83
	b	.L13
.L12:
	mov	r3, #78
.L13:
	mov	r1, r3
	ldr	r0, .L17+36
	bl	printf
.L2:
	ldr	r3, .L17+8
	ldr	r2, .L17+20
	ldr	r1, .L17+16
	ldr	r0, .L17+40
	bl	__isoc99_scanf
	mov	r3, r0
	cmp	r3, #3
	bne	.L14
	ldr	r3, .L17+16
	ldr	r3, [r3]
	cmp	r3, #0
	bgt	.L15
.L14:
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	valores
	.word	.LC0
	.word	n
	.word	.LC1
	.word	x
	.word	y
	.word	.LC2
	.word	10500
	.word	possivel
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
