	.file	"600104.c"
	.intel_syntax noprefix
	.text
	.globl	i
	.bss
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	c
	.align 4
	.type	c, @object
	.size	c, 4
c:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"YES"
.LC2:
	.string	"NO"
	.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
	push	rbx
	sub	rsp, 24
	.cfi_offset 3, -24
	mov	DWORD PTR -20[rbp], edi
	lea	rax, -20[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	gets@PLT
	jmp	.L2
.L9:
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR i[rip], eax
	jmp	.L3
.L6:
	mov	ebx, DWORD PTR i[rip]
	lea	eax, -1[rbx]
	mov	DWORD PTR i[rip], eax
	lea	rsi, n[rip]
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	scanf@PLT
	and	eax, ebx
	test	eax, eax
	je	.L4
	mov	eax, DWORD PTR n[rip]
	neg	eax
	jmp	.L5
.L4:
	mov	eax, DWORD PTR n[rip]
.L5:
	mov	edx, DWORD PTR c[rip]
	add	eax, edx
	mov	DWORD PTR c[rip], eax
.L3:
	mov	eax, DWORD PTR i[rip]
	test	eax, eax
	jne	.L6
	mov	eax, DWORD PTR -20[rbp]
	and	eax, 1
	mov	edx, DWORD PTR c[rip]
	add	edx, 1
	cmp	edx, 2
	setbe	dl
	or	eax, edx
	test	al, al
	je	.L7
	lea	rax, .LC1[rip]
	jmp	.L8
.L7:
	lea	rax, .LC2[rip]
.L8:
	mov	rdi, rax
	call	puts@PLT
	mov	DWORD PTR c[rip], eax
.L2:
	lea	rax, -20[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	scanf@PLT
	cmp	eax, -1
	jne	.L9
	mov	eax, 0
	mov	rbx, QWORD PTR -8[rbp]
	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	"600104.c"
	.text
	.comm	i,4,4
	.comm	c,4,4
	.comm	n,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\000"
	.align	2
.LC1:
	.ascii	"YES\000"
	.align	2
.LC2:
	.ascii	"NO\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #12
	str	r0, [fp, #-16]
	sub	r3, fp, #16
	mov	r0, r3
	bl	gets
	b	.L2
.L9:
	ldr	r3, [fp, #-16]
	ldr	r2, .L11
	str	r3, [r2]
	b	.L3
.L6:
	ldr	r3, .L11
	ldr	r4, [r3]
	sub	r3, r4, #1
	ldr	r2, .L11
	str	r3, [r2]
	ldr	r1, .L11+4
	ldr	r0, .L11+8
	bl	scanf
	mov	r3, r0
	and	r3, r3, r4
	cmp	r3, #0
	beq	.L4
	ldr	r3, .L11+4
	ldr	r3, [r3]
	rsb	r3, r3, #0
	b	.L5
.L4:
	ldr	r3, .L11+4
	ldr	r3, [r3]
.L5:
	ldr	r2, .L11+12
	ldr	r2, [r2]
	add	r3, r3, r2
	ldr	r2, .L11+12
	str	r3, [r2]
.L3:
	ldr	r3, .L11
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L6
	ldr	r3, [fp, #-16]
	and	r3, r3, #1
	and	r2, r3, #255
	ldr	r3, .L11+12
	ldr	r3, [r3]
	add	r3, r3, #1
	cmp	r3, #2
	movls	r3, #1
	movhi	r3, #0
	and	r3, r3, #255
	orr	r3, r2, r3
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L7
	ldr	r3, .L11+16
	b	.L8
.L7:
	ldr	r3, .L11+20
.L8:
	mov	r0, r3
	bl	puts
	mov	r3, r0
	ldr	r2, .L11+12
	str	r3, [r2]
.L2:
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, .L11+8
	bl	scanf
	mov	r3, r0
	cmn	r3, #1
	bne	.L9
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L12:
	.align	2
.L11:
	.word	i
	.word	n
	.word	.LC0
	.word	c
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
