	.file	"76699459.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"\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, 528
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -520[rbp], 0
	mov	BYTE PTR -526[rbp], 0
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -512[rbp]
	mov	esi, 500
	mov	rdi, rax
	call	fgets@PLT
	lea	rax, -512[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	strcspn@PLT
	mov	BYTE PTR -512[rbp+rax], 0
	jmp	.L2
.L17:
	lea	rax, -512[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -516[rbp], eax
	call	getchar@PLT
	mov	BYTE PTR -526[rbp], al
	movsx	eax, BYTE PTR -526[rbp]
	cmp	eax, 120
	je	.L3
	cmp	eax, 120
	jg	.L2
	cmp	eax, 117
	je	.L4
	cmp	eax, 117
	jg	.L2
	cmp	eax, 115
	je	.L5
	cmp	eax, 115
	jg	.L2
	cmp	eax, 105
	je	.L6
	cmp	eax, 105
	jg	.L2
	cmp	eax, 48
	je	.L7
	cmp	eax, 48
	jg	.L2
	cmp	eax, 45
	je	.L8
	cmp	eax, 45
	jg	.L2
	cmp	eax, 36
	je	.L9
	cmp	eax, 43
	je	.L10
	jmp	.L2
.L7:
	mov	DWORD PTR -520[rbp], 0
	jmp	.L2
.L9:
	mov	eax, DWORD PTR -516[rbp]
	mov	DWORD PTR -520[rbp], eax
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -520[rbp]
	mov	DWORD PTR -524[rbp], eax
	jmp	.L11
.L12:
	mov	eax, DWORD PTR -524[rbp]
	add	eax, 1
	cdqe
	movzx	edx, BYTE PTR -512[rbp+rax]
	mov	eax, DWORD PTR -524[rbp]
	cdqe
	mov	BYTE PTR -512[rbp+rax], dl
	add	DWORD PTR -524[rbp], 1
.L11:
	mov	eax, DWORD PTR -524[rbp]
	cmp	eax, DWORD PTR -516[rbp]
	jl	.L12
	jmp	.L2
.L5:
	mov	eax, DWORD PTR -516[rbp]
	sub	eax, 1
	cmp	DWORD PTR -520[rbp], eax
	jge	.L2
	mov	eax, DWORD PTR -520[rbp]
	cdqe
	movzx	eax, BYTE PTR -512[rbp+rax]
	mov	BYTE PTR -525[rbp], al
	mov	eax, DWORD PTR -520[rbp]
	add	eax, 1
	cdqe
	movzx	edx, BYTE PTR -512[rbp+rax]
	mov	eax, DWORD PTR -520[rbp]
	cdqe
	mov	BYTE PTR -512[rbp+rax], dl
	mov	eax, DWORD PTR -520[rbp]
	add	eax, 1
	cdqe
	movzx	edx, BYTE PTR -525[rbp]
	mov	BYTE PTR -512[rbp+rax], dl
	jmp	.L2
.L6:
	mov	eax, DWORD PTR -516[rbp]
	mov	DWORD PTR -524[rbp], eax
	jmp	.L14
.L15:
	mov	eax, DWORD PTR -524[rbp]
	sub	eax, 1
	cdqe
	movzx	edx, BYTE PTR -512[rbp+rax]
	mov	eax, DWORD PTR -524[rbp]
	cdqe
	mov	BYTE PTR -512[rbp+rax], dl
	sub	DWORD PTR -524[rbp], 1
.L14:
	mov	eax, DWORD PTR -524[rbp]
	cmp	eax, DWORD PTR -520[rbp]
	jg	.L15
	call	getchar@PLT
	mov	edx, eax
	mov	eax, DWORD PTR -520[rbp]
	cdqe
	mov	BYTE PTR -512[rbp+rax], dl
	mov	eax, DWORD PTR -516[rbp]
	add	eax, 1
	cdqe
	mov	BYTE PTR -512[rbp+rax], 0
	add	DWORD PTR -520[rbp], 1
	jmp	.L2
.L4:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -520[rbp]
	cdqe
	movzx	eax, BYTE PTR -512[rbp+rax]
	movsx	rax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 1024
	test	eax, eax
	je	.L16
	mov	eax, DWORD PTR -520[rbp]
	cdqe
	movzx	eax, BYTE PTR -512[rbp+rax]
	movsx	eax, al
	mov	edi, eax
	call	toupper@PLT
	mov	edx, eax
	mov	eax, DWORD PTR -520[rbp]
	cdqe
	mov	BYTE PTR -512[rbp+rax], dl
.L16:
	add	DWORD PTR -520[rbp], 1
	jmp	.L2
.L10:
	add	DWORD PTR -520[rbp], 1
	jmp	.L2
.L8:
	sub	DWORD PTR -520[rbp], 1
	nop
.L2:
	cmp	BYTE PTR -526[rbp], 10
	jne	.L17
	lea	rax, -512[rbp]
	mov	rdi, rax
	call	puts@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	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	"76699459.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 520
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #520
	ldr	r3, .L25
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-516]
	mov	r3, #0
	strb	r3, [fp, #-522]
	ldr	r3, .L25+4
	ldr	r2, [r3]
	sub	r3, fp, #508
	mov	r1, #500
	mov	r0, r3
	bl	fgets
	sub	r3, fp, #508
	ldr	r1, .L25+8
	mov	r0, r3
	bl	strcspn
	mov	r3, r0
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-504]
	b	.L2
.L22:
	sub	r3, fp, #508
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-512]
	bl	getchar
	mov	r3, r0
	strb	r3, [fp, #-522]
	ldrb	r3, [fp, #-522]	@ zero_extendqisi2
	cmp	r3, #48
	bgt	.L3
	cmp	r3, #36
	bge	.L4
	b	.L2
.L15:
	sub	r3, r3, #105
	cmp	r3, #15
	ldrls	pc, [pc, r3, asl #2]
	b	.L2
.L6:
	.word	.L9
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L8
	.word	.L2
	.word	.L7
	.word	.L2
	.word	.L2
	.word	.L5
.L4:
	sub	r3, r3, #36
	cmp	r3, #12
	ldrls	pc, [pc, r3, asl #2]
	b	.L2
.L11:
	.word	.L14
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L13
	.word	.L2
	.word	.L12
	.word	.L2
	.word	.L2
	.word	.L10
.L3:
	cmp	r3, #120
	bgt	.L2
	cmp	r3, #105
	bge	.L15
	b	.L2
.L10:
	mov	r3, #0
	str	r3, [fp, #-516]
	b	.L2
.L14:
	ldr	r3, [fp, #-512]
	str	r3, [fp, #-516]
	b	.L2
.L5:
	ldr	r3, [fp, #-516]
	str	r3, [fp, #-520]
	b	.L16
.L17:
	ldr	r3, [fp, #-520]
	add	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r1, [r3, #-504]	@ zero_extendqisi2
	sub	r2, fp, #508
	ldr	r3, [fp, #-520]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-520]
	add	r3, r3, #1
	str	r3, [fp, #-520]
.L16:
	ldr	r2, [fp, #-520]
	ldr	r3, [fp, #-512]
	cmp	r2, r3
	blt	.L17
	b	.L2
.L8:
	ldr	r3, [fp, #-512]
	sub	r3, r3, #1
	ldr	r2, [fp, #-516]
	cmp	r2, r3
	bge	.L2
	sub	r2, fp, #508
	ldr	r3, [fp, #-516]
	add	r3, r2, r3
	ldrb	r3, [r3]
	strb	r3, [fp, #-521]
	ldr	r3, [fp, #-516]
	add	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r1, [r3, #-504]	@ zero_extendqisi2
	sub	r2, fp, #508
	ldr	r3, [fp, #-516]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-516]
	add	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r2, [fp, #-521]
	strb	r2, [r3, #-504]
	b	.L2
.L9:
	ldr	r3, [fp, #-512]
	str	r3, [fp, #-520]
	b	.L19
.L20:
	ldr	r3, [fp, #-520]
	sub	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r1, [r3, #-504]	@ zero_extendqisi2
	sub	r2, fp, #508
	ldr	r3, [fp, #-520]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-520]
	sub	r3, r3, #1
	str	r3, [fp, #-520]
.L19:
	ldr	r2, [fp, #-520]
	ldr	r3, [fp, #-516]
	cmp	r2, r3
	bgt	.L20
	bl	getchar
	mov	r3, r0
	and	r1, r3, #255
	sub	r2, fp, #508
	ldr	r3, [fp, #-516]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-512]
	add	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-504]
	ldr	r3, [fp, #-516]
	add	r3, r3, #1
	str	r3, [fp, #-516]
	b	.L2
.L7:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	sub	r1, fp, #508
	ldr	r3, [fp, #-516]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #1024
	cmp	r3, #0
	beq	.L21
	sub	r2, fp, #508
	ldr	r3, [fp, #-516]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	toupper
	mov	r3, r0
	and	r1, r3, #255
	sub	r2, fp, #508
	ldr	r3, [fp, #-516]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
.L21:
	ldr	r3, [fp, #-516]
	add	r3, r3, #1
	str	r3, [fp, #-516]
	b	.L2
.L13:
	ldr	r3, [fp, #-516]
	add	r3, r3, #1
	str	r3, [fp, #-516]
	b	.L2
.L12:
	ldr	r3, [fp, #-516]
	sub	r3, r3, #1
	str	r3, [fp, #-516]
	nop
.L2:
	ldrb	r3, [fp, #-522]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L22
	sub	r3, fp, #508
	mov	r0, r3
	bl	puts
	mov	r3, #0
	ldr	r2, .L25
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L24
	bl	__stack_chk_fail
.L24:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L26:
	.align	2
.L25:
	.word	.LC1
	.word	stdin
	.word	.LC0
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
