	.file	"14256.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Usage: %s [FILE]\n"
.LC1:
	.string	"r"
	.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	BYTE PTR -10[rbp], 1
	cmp	DWORD PTR -20[rbp], 2
	je	.L2
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L3
.L2:
	add	QWORD PTR -32[rbp], 8
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	jmp	.L4
.L8:
	cmp	BYTE PTR -9[rbp], 96
	jle	.L5
	cmp	BYTE PTR -9[rbp], 122
	jg	.L5
	movsx	eax, BYTE PTR -9[rbp]
	and	eax, 223
	mov	edi, eax
	call	putchar@PLT
	jmp	.L6
.L5:
	cmp	BYTE PTR -9[rbp], 64
	jle	.L7
	cmp	BYTE PTR -9[rbp], 90
	jg	.L7
	movzx	eax, BYTE PTR -9[rbp]
	or	eax, 32
	movsx	eax, al
	mov	edi, eax
	call	putchar@PLT
	jmp	.L6
.L7:
	movsx	eax, BYTE PTR -9[rbp]
	mov	edi, eax
	call	putchar@PLT
.L6:
	cmp	BYTE PTR -9[rbp], 10
	sete	al
	mov	BYTE PTR -10[rbp], al
.L4:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	getc@PLT
	mov	BYTE PTR -9[rbp], al
	cmp	BYTE PTR -9[rbp], -1
	jne	.L8
	movzx	eax, BYTE PTR -10[rbp]
	xor	eax, 1
	test	al, al
	je	.L9
	mov	edi, 10
	call	putchar@PLT
.L9:
	mov	eax, 0
.L3:
	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	"14256.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Usage: %s [FILE]\012\000"
	.align	2
.LC1:
	.ascii	"r\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #1
	strb	r3, [fp, #-10]
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	beq	.L2
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L11
	bl	printf
	mov	r3, #1
	b	.L9
.L2:
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r1, .L11+4
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-8]
	b	.L4
.L10:
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #122
	bhi	.L5
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	and	r3, r3, #223
	mov	r0, r3
	bl	putchar
	b	.L6
.L5:
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #64
	bls	.L7
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #90
	bhi	.L7
	ldrb	r3, [fp, #-9]
	orr	r3, r3, #32
	and	r3, r3, #255
	mov	r0, r3
	bl	putchar
	b	.L6
.L7:
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	mov	r0, r3
	bl	putchar
.L6:
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #10
	moveq	r3, #1
	movne	r3, #0
	strb	r3, [fp, #-10]
.L4:
	ldr	r0, [fp, #-8]
	bl	getc
	mov	r3, r0
	strb	r3, [fp, #-9]
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #96
	bls	.L5
	b	.L10
.L9:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.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
