	.file	"321790.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%c"
.LC2:
	.string	"%d\n"
	.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, 3072
	mov	DWORD PTR -3060[rbp], edi
	mov	QWORD PTR -3072[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -3040[rbp], 0
	mov	DWORD PTR -3044[rbp], 0
	mov	DWORD PTR -3032[rbp], 0
	mov	DWORD PTR -3036[rbp], -1
	lea	rax, -3052[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rax, -3053[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rax, -3024[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movzx	eax, BYTE PTR -3024[rbp]
	cmp	al, 46
	jne	.L2
	mov	DWORD PTR -3040[rbp], 1
.L2:
	mov	DWORD PTR -3048[rbp], 1
	jmp	.L3
.L12:
	lea	rdx, -3024[rbp]
	mov	eax, DWORD PTR -3048[rbp]
	cdqe
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -3048[rbp]
	cdqe
	movzx	eax, BYTE PTR -3024[rbp+rax]
	cmp	al, 46
	jne	.L4
	add	DWORD PTR -3040[rbp], 1
	add	DWORD PTR -3048[rbp], 1
	jmp	.L3
.L4:
	cmp	DWORD PTR -3036[rbp], -1
	jne	.L5
	mov	eax, DWORD PTR -3048[rbp]
	cdqe
	movzx	eax, BYTE PTR -3024[rbp+rax]
	cmp	al, 82
	jne	.L5
	mov	eax, DWORD PTR -3040[rbp]
	mov	DWORD PTR -3044[rbp], eax
	mov	eax, DWORD PTR -3048[rbp]
	mov	DWORD PTR -3036[rbp], eax
	mov	DWORD PTR -3040[rbp], 0
.L5:
	cmp	DWORD PTR -3036[rbp], -1
	jne	.L6
	mov	eax, DWORD PTR -3048[rbp]
	cdqe
	movzx	eax, BYTE PTR -3024[rbp+rax]
	cmp	al, 76
	jne	.L6
	mov	DWORD PTR -3040[rbp], 0
	mov	eax, DWORD PTR -3048[rbp]
	mov	DWORD PTR -3036[rbp], eax
.L6:
	mov	eax, DWORD PTR -3036[rbp]
	cdqe
	movzx	eax, BYTE PTR -3024[rbp+rax]
	cmp	al, 82
	jne	.L7
	mov	eax, DWORD PTR -3048[rbp]
	cdqe
	movzx	eax, BYTE PTR -3024[rbp+rax]
	cmp	al, 76
	jne	.L7
	mov	eax, DWORD PTR -3036[rbp]
	add	eax, 1
	cmp	DWORD PTR -3048[rbp], eax
	je	.L7
	mov	eax, DWORD PTR -3048[rbp]
	mov	DWORD PTR -3028[rbp], eax
	mov	eax, DWORD PTR -3040[rbp]
	and	eax, 1
	test	eax, eax
	je	.L8
	add	DWORD PTR -3044[rbp], 1
	mov	eax, DWORD PTR -3028[rbp]
	mov	DWORD PTR -3036[rbp], eax
.L8:
	mov	eax, DWORD PTR -3028[rbp]
	mov	DWORD PTR -3036[rbp], eax
	mov	DWORD PTR -3040[rbp], 0
.L7:
	mov	eax, DWORD PTR -3036[rbp]
	cdqe
	movzx	eax, BYTE PTR -3024[rbp+rax]
	cmp	al, 82
	jne	.L9
	mov	eax, DWORD PTR -3048[rbp]
	cdqe
	movzx	eax, BYTE PTR -3024[rbp+rax]
	cmp	al, 76
	jne	.L9
	mov	eax, DWORD PTR -3036[rbp]
	add	eax, 1
	cmp	DWORD PTR -3048[rbp], eax
	jne	.L9
	mov	eax, DWORD PTR -3048[rbp]
	mov	DWORD PTR -3036[rbp], eax
.L9:
	mov	eax, DWORD PTR -3036[rbp]
	cdqe
	movzx	eax, BYTE PTR -3024[rbp+rax]
	cmp	al, 76
	jne	.L10
	mov	eax, DWORD PTR -3048[rbp]
	cdqe
	movzx	eax, BYTE PTR -3024[rbp+rax]
	cmp	al, 82
	jne	.L10
	mov	eax, DWORD PTR -3036[rbp]
	add	eax, 1
	cmp	DWORD PTR -3048[rbp], eax
	je	.L10
	mov	eax, DWORD PTR -3048[rbp]
	mov	DWORD PTR -3028[rbp], eax
	mov	eax, DWORD PTR -3040[rbp]
	add	DWORD PTR -3044[rbp], eax
	mov	eax, DWORD PTR -3028[rbp]
	mov	DWORD PTR -3036[rbp], eax
	mov	DWORD PTR -3040[rbp], 0
.L10:
	mov	eax, DWORD PTR -3036[rbp]
	cdqe
	movzx	eax, BYTE PTR -3024[rbp+rax]
	cmp	al, 76
	jne	.L11
	mov	eax, DWORD PTR -3048[rbp]
	cdqe
	movzx	eax, BYTE PTR -3024[rbp+rax]
	cmp	al, 82
	jne	.L11
	mov	eax, DWORD PTR -3036[rbp]
	add	eax, 1
	cmp	DWORD PTR -3048[rbp], eax
	jne	.L11
	mov	eax, DWORD PTR -3048[rbp]
	mov	DWORD PTR -3036[rbp], eax
.L11:
	add	DWORD PTR -3048[rbp], 1
.L3:
	mov	eax, DWORD PTR -3052[rbp]
	cmp	DWORD PTR -3048[rbp], eax
	jne	.L12
	mov	eax, DWORD PTR -3036[rbp]
	cdqe
	movzx	eax, BYTE PTR -3024[rbp+rax]
	cmp	al, 76
	jne	.L13
	cmp	DWORD PTR -3040[rbp], 0
	je	.L13
	mov	eax, DWORD PTR -3040[rbp]
	add	DWORD PTR -3044[rbp], eax
.L13:
	mov	eax, DWORD PTR -3052[rbp]
	cmp	DWORD PTR -3040[rbp], eax
	jne	.L14
	mov	eax, DWORD PTR -3052[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L15
.L14:
	mov	eax, DWORD PTR -3044[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
.L15:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	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	"321790.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\000"
	.align	2
.LC1:
	.ascii	"%c\000"
	.align	2
.LC2:
	.ascii	"%d\012\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 3048
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #3040
	sub	sp, sp, #8
	str	r0, [fp, #-3048]
	str	r1, [fp, #-3052]
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-3028]
	mov	r3, #0
	str	r3, [fp, #-3032]
	mov	r3, #0
	str	r3, [fp, #-3020]
	mvn	r3, #0
	str	r3, [fp, #-3024]
	sub	r3, fp, #3024
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r1, r3
	ldr	r0, .L18+4
	bl	__isoc99_scanf
	sub	r3, fp, #3024
	sub	r3, r3, #4
	sub	r3, r3, #13
	mov	r1, r3
	ldr	r0, .L18+8
	bl	__isoc99_scanf
	sub	r3, fp, #3008
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L18+8
	bl	__isoc99_scanf
	ldrb	r3, [fp, #-3012]	@ zero_extendqisi2
	cmp	r3, #46
	bne	.L2
	mov	r3, #1
	str	r3, [fp, #-3028]
.L2:
	mov	r3, #1
	str	r3, [fp, #-3036]
	b	.L3
.L12:
	sub	r2, fp, #3008
	sub	r2, r2, #4
	ldr	r3, [fp, #-3036]
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L18+8
	bl	__isoc99_scanf
	sub	r2, fp, #3008
	sub	r2, r2, #4
	ldr	r3, [fp, #-3036]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #46
	bne	.L4
	ldr	r3, [fp, #-3028]
	add	r3, r3, #1
	str	r3, [fp, #-3028]
	ldr	r3, [fp, #-3036]
	add	r3, r3, #1
	str	r3, [fp, #-3036]
	b	.L3
.L4:
	ldr	r3, [fp, #-3024]
	cmn	r3, #1
	bne	.L5
	sub	r2, fp, #3008
	sub	r2, r2, #4
	ldr	r3, [fp, #-3036]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #82
	bne	.L5
	ldr	r3, [fp, #-3028]
	str	r3, [fp, #-3032]
	ldr	r3, [fp, #-3036]
	str	r3, [fp, #-3024]
	mov	r3, #0
	str	r3, [fp, #-3028]
.L5:
	ldr	r3, [fp, #-3024]
	cmn	r3, #1
	bne	.L6
	sub	r2, fp, #3008
	sub	r2, r2, #4
	ldr	r3, [fp, #-3036]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #76
	bne	.L6
	mov	r3, #0
	str	r3, [fp, #-3028]
	ldr	r3, [fp, #-3036]
	str	r3, [fp, #-3024]
.L6:
	sub	r2, fp, #3008
	sub	r2, r2, #4
	ldr	r3, [fp, #-3024]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #82
	bne	.L7
	sub	r2, fp, #3008
	sub	r2, r2, #4
	ldr	r3, [fp, #-3036]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #76
	bne	.L7
	ldr	r3, [fp, #-3024]
	add	r3, r3, #1
	ldr	r2, [fp, #-3036]
	cmp	r2, r3
	beq	.L7
	ldr	r3, [fp, #-3036]
	str	r3, [fp, #-3016]
	ldr	r3, [fp, #-3028]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L8
	ldr	r3, [fp, #-3032]
	add	r3, r3, #1
	str	r3, [fp, #-3032]
	ldr	r3, [fp, #-3016]
	str	r3, [fp, #-3024]
.L8:
	ldr	r3, [fp, #-3016]
	str	r3, [fp, #-3024]
	mov	r3, #0
	str	r3, [fp, #-3028]
.L7:
	sub	r2, fp, #3008
	sub	r2, r2, #4
	ldr	r3, [fp, #-3024]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #82
	bne	.L9
	sub	r2, fp, #3008
	sub	r2, r2, #4
	ldr	r3, [fp, #-3036]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #76
	bne	.L9
	ldr	r3, [fp, #-3024]
	add	r3, r3, #1
	ldr	r2, [fp, #-3036]
	cmp	r2, r3
	bne	.L9
	ldr	r3, [fp, #-3036]
	str	r3, [fp, #-3024]
.L9:
	sub	r2, fp, #3008
	sub	r2, r2, #4
	ldr	r3, [fp, #-3024]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #76
	bne	.L10
	sub	r2, fp, #3008
	sub	r2, r2, #4
	ldr	r3, [fp, #-3036]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #82
	bne	.L10
	ldr	r3, [fp, #-3024]
	add	r3, r3, #1
	ldr	r2, [fp, #-3036]
	cmp	r2, r3
	beq	.L10
	ldr	r3, [fp, #-3036]
	str	r3, [fp, #-3016]
	ldr	r2, [fp, #-3032]
	ldr	r3, [fp, #-3028]
	add	r3, r2, r3
	str	r3, [fp, #-3032]
	ldr	r3, [fp, #-3016]
	str	r3, [fp, #-3024]
	mov	r3, #0
	str	r3, [fp, #-3028]
.L10:
	sub	r2, fp, #3008
	sub	r2, r2, #4
	ldr	r3, [fp, #-3024]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #76
	bne	.L11
	sub	r2, fp, #3008
	sub	r2, r2, #4
	ldr	r3, [fp, #-3036]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #82
	bne	.L11
	ldr	r3, [fp, #-3024]
	add	r3, r3, #1
	ldr	r2, [fp, #-3036]
	cmp	r2, r3
	bne	.L11
	ldr	r3, [fp, #-3036]
	str	r3, [fp, #-3024]
.L11:
	ldr	r3, [fp, #-3036]
	add	r3, r3, #1
	str	r3, [fp, #-3036]
.L3:
	ldr	r3, [fp, #-3040]
	ldr	r2, [fp, #-3036]
	cmp	r2, r3
	bne	.L12
	sub	r2, fp, #3008
	sub	r2, r2, #4
	ldr	r3, [fp, #-3024]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #76
	bne	.L13
	ldr	r3, [fp, #-3028]
	cmp	r3, #0
	beq	.L13
	ldr	r2, [fp, #-3032]
	ldr	r3, [fp, #-3028]
	add	r3, r2, r3
	str	r3, [fp, #-3032]
.L13:
	ldr	r3, [fp, #-3040]
	ldr	r2, [fp, #-3028]
	cmp	r2, r3
	bne	.L14
	ldr	r3, [fp, #-3040]
	mov	r1, r3
	ldr	r0, .L18+12
	bl	printf
	b	.L15
.L14:
	ldr	r1, [fp, #-3032]
	ldr	r0, .L18+12
	bl	printf
.L15:
	mov	r3, #0
	ldr	r2, .L18
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC3
	.word	.LC0
	.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
