	.file	"818666.c"
	.intel_syntax noprefix
	.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, 144
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -128[rbp], 0
	mov	QWORD PTR -120[rbp], 0
	mov	QWORD PTR -112[rbp], 0
	mov	WORD PTR -104[rbp], 0
	mov	QWORD PTR -96[rbp], 0
	mov	QWORD PTR -88[rbp], 0
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	DWORD PTR -132[rbp], 0
	jmp	.L2
.L3:
	cmp	BYTE PTR -133[rbp], 64
	jle	.L2
	cmp	BYTE PTR -133[rbp], 90
	jg	.L2
	movsx	eax, BYTE PTR -133[rbp]
	sub	eax, 65
	cdqe
	movzx	eax, BYTE PTR -128[rbp+rax]
	test	al, al
	jne	.L2
	movsx	eax, BYTE PTR -133[rbp]
	sub	eax, 65
	cdqe
	mov	BYTE PTR -128[rbp+rax], 1
	mov	eax, DWORD PTR -132[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -132[rbp], edx
	cdqe
	movzx	edx, BYTE PTR -133[rbp]
	mov	BYTE PTR -96[rbp+rax], dl
.L2:
	call	getchar@PLT
	mov	BYTE PTR -133[rbp], al
	cmp	BYTE PTR -133[rbp], 10
	jne	.L3
	cmp	DWORD PTR -132[rbp], 0
	jle	.L4
	mov	eax, DWORD PTR -132[rbp]
	cdqe
	mov	BYTE PTR -96[rbp+rax], 0
	lea	rax, -96[rbp]
	mov	rdi, rax
	call	puts@PLT
.L4:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	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	"818666.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #120
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-116]
	sub	r3, fp, #112
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	str	r2, [r3, #12]
	str	r2, [r3, #16]
	strh	r2, [r3, #20]	@ movhi
	mov	r3, #0
	str	r3, [fp, #-88]
	sub	r3, fp, #84
	mov	r2, #76
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-120]
	b	.L2
.L3:
	ldrb	r3, [fp, #-121]	@ zero_extendqisi2
	cmp	r3, #64
	bls	.L2
	ldrb	r3, [fp, #-121]	@ zero_extendqisi2
	cmp	r3, #90
	bhi	.L2
	ldrb	r3, [fp, #-121]	@ zero_extendqisi2
	sub	r3, r3, #65
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-112]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L2
	ldrb	r3, [fp, #-121]	@ zero_extendqisi2
	sub	r3, r3, #65
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #1
	strb	r2, [r3, #-112]
	ldr	r3, [fp, #-120]
	add	r2, r3, #1
	str	r2, [fp, #-120]
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r2, [fp, #-121]
	strb	r2, [r3, #-84]
.L2:
	bl	getchar
	mov	r3, r0
	strb	r3, [fp, #-121]
	ldrb	r3, [fp, #-121]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L3
	ldr	r3, [fp, #-120]
	cmp	r3, #0
	ble	.L4
	sub	r2, fp, #88
	ldr	r3, [fp, #-120]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #88
	mov	r0, r3
	bl	puts
.L4:
	mov	r3, #0
	ldr	r2, .L7
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L6
	bl	__stack_chk_fail
.L6:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC0
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
