	.file	"57437.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"YES"
.LC1:
	.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
	sub	rsp, 80
	mov	DWORD PTR -68[rbp], edi
	mov	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -56[rbp], 0
	mov	DWORD PTR -52[rbp], 0
	mov	DWORD PTR -64[rbp], 0
	jmp	.L2
.L3:
	lea	rcx, -48[rbp]
	mov	eax, DWORD PTR -64[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rcx
	mov	rdi, rax
	mov	eax, 0
	call	gets@PLT
	add	DWORD PTR -64[rbp], 1
.L2:
	cmp	DWORD PTR -64[rbp], 3
	jle	.L3
	mov	DWORD PTR -64[rbp], 0
	jmp	.L4
.L18:
	mov	DWORD PTR -60[rbp], 0
	jmp	.L5
.L17:
	mov	eax, DWORD PTR -60[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -64[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rbp
	add	rax, rcx
	sub	rax, 48
	movzx	eax, BYTE PTR [rax]
	cmp	al, 46
	jne	.L6
	add	DWORD PTR -56[rbp], 1
	jmp	.L7
.L6:
	add	DWORD PTR -52[rbp], 1
.L7:
	mov	eax, DWORD PTR -60[rbp]
	add	eax, 1
	movsx	rcx, eax
	mov	eax, DWORD PTR -64[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rbp
	add	rax, rcx
	sub	rax, 48
	movzx	eax, BYTE PTR [rax]
	cmp	al, 46
	jne	.L8
	add	DWORD PTR -56[rbp], 1
	jmp	.L9
.L8:
	add	DWORD PTR -52[rbp], 1
.L9:
	mov	eax, DWORD PTR -64[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -60[rbp]
	movsx	rcx, eax
	movsx	rdx, edx
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rbp
	add	rax, rcx
	sub	rax, 48
	movzx	eax, BYTE PTR [rax]
	cmp	al, 46
	jne	.L10
	add	DWORD PTR -56[rbp], 1
	jmp	.L11
.L10:
	add	DWORD PTR -52[rbp], 1
.L11:
	mov	eax, DWORD PTR -64[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -60[rbp]
	add	eax, 1
	movsx	rcx, eax
	movsx	rdx, edx
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rbp
	add	rax, rcx
	sub	rax, 48
	movzx	eax, BYTE PTR [rax]
	cmp	al, 46
	jne	.L12
	add	DWORD PTR -56[rbp], 1
	jmp	.L13
.L12:
	add	DWORD PTR -52[rbp], 1
.L13:
	cmp	DWORD PTR -56[rbp], 2
	jg	.L14
	cmp	DWORD PTR -52[rbp], 2
	jle	.L15
.L14:
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	jmp	.L19
.L15:
	mov	DWORD PTR -56[rbp], 0
	mov	DWORD PTR -52[rbp], 0
	add	DWORD PTR -60[rbp], 1
.L5:
	cmp	DWORD PTR -60[rbp], 2
	jle	.L17
	add	DWORD PTR -64[rbp], 1
.L4:
	cmp	DWORD PTR -64[rbp], 2
	jle	.L18
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
.L19:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	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	"57437.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"YES\000"
	.align	2
.LC1:
	.ascii	"NO\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	ldr	r3, .L21
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-52]
	b	.L2
.L3:
	sub	r1, fp, #36
	ldr	r2, [fp, #-52]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	add	r3, r1, r3
	mov	r0, r3
	bl	gets
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L2:
	ldr	r3, [fp, #-52]
	cmp	r3, #3
	ble	.L3
	mov	r3, #0
	str	r3, [fp, #-52]
	b	.L4
.L18:
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L5
.L17:
	ldr	r2, [fp, #-52]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-48]
	add	r3, r2, r3
	sub	r3, r3, #32
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #46
	bne	.L6
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
	b	.L7
.L6:
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L7:
	ldr	r3, [fp, #-48]
	add	r1, r3, #1
	ldr	r2, [fp, #-52]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	sub	r2, fp, #4
	add	r3, r2, r3
	add	r3, r3, r1
	sub	r3, r3, #32
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #46
	bne	.L8
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
	b	.L9
.L8:
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L9:
	ldr	r3, [fp, #-52]
	add	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-48]
	add	r3, r2, r3
	sub	r3, r3, #32
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #46
	bne	.L10
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
	b	.L11
.L10:
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L11:
	ldr	r3, [fp, #-52]
	add	r2, r3, #1
	ldr	r3, [fp, #-48]
	add	r1, r3, #1
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	sub	r2, fp, #4
	add	r3, r2, r3
	add	r3, r3, r1
	sub	r3, r3, #32
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #46
	bne	.L12
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
	b	.L13
.L12:
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L13:
	ldr	r3, [fp, #-44]
	cmp	r3, #2
	bgt	.L14
	ldr	r3, [fp, #-40]
	cmp	r3, #2
	ble	.L15
.L14:
	ldr	r0, .L21+4
	bl	printf
	mov	r3, #0
	b	.L19
.L15:
	mov	r3, #0
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L5:
	ldr	r3, [fp, #-48]
	cmp	r3, #2
	ble	.L17
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L4:
	ldr	r3, [fp, #-52]
	cmp	r3, #2
	ble	.L18
	ldr	r0, .L21+8
	bl	printf
	mov	r3, #0
.L19:
	ldr	r2, .L21
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L20
	bl	__stack_chk_fail
.L20:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
