	.file	"148578649.c"
	.intel_syntax noprefix
	.text
	.globl	usage_str
	.section	.rodata
.LC0:
	.string	"Usage: %s [filename]\n"
	.section	.data.rel.local,"aw"
	.align 8
	.type	usage_str, @object
	.size	usage_str, 8
usage_str:
	.quad	.LC0
	.globl	ansi_color_code_fmt
	.section	.rodata
.LC1:
	.string	"\033[%um"
	.section	.data.rel.local
	.align 8
	.type	ansi_color_code_fmt, @object
	.size	ansi_color_code_fmt, 8
ansi_color_code_fmt:
	.quad	.LC1
	.globl	ansi_color_reset_str
	.section	.rodata
.LC2:
	.string	"\033[m"
	.section	.data.rel.local
	.align 8
	.type	ansi_color_reset_str, @object
	.size	ansi_color_reset_str, 8
ansi_color_reset_str:
	.quad	.LC2
	.text
	.globl	nextANSIColorCode
	.type	nextANSIColorCode, @function
nextANSIColorCode:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -32[rbp], 31
	mov	DWORD PTR -28[rbp], 33
	mov	DWORD PTR -24[rbp], 32
	mov	DWORD PTR -20[rbp], 36
	mov	DWORD PTR -16[rbp], 34
	mov	DWORD PTR -12[rbp], 35
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR [rax]
	mov	eax, eax
	mov	eax, DWORD PTR -32[rbp+rax*4]
	mov	DWORD PTR -36[rbp], eax
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR [rax]
	lea	ecx, 1[rax]
	mov	edx, ecx
	mov	eax, 2863311531
	imul	rax, rdx
	shr	rax, 32
	mov	edx, eax
	shr	edx, 2
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	add	eax, eax
	sub	ecx, eax
	mov	edx, ecx
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR [rax], edx
	mov	eax, DWORD PTR -36[rbp]
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	nextANSIColorCode, .-nextANSIColorCode
	.section	.rodata
.LC3:
	.string	"r"
.LC4:
	.string	"%s"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.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
	cmp	DWORD PTR -20[rbp], 2
	jne	.L5
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L12
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	perror@PLT
	mov	eax, 1
	jmp	.L7
.L5:
	cmp	DWORD PTR -20[rbp], 1
	jne	.L8
	mov	rax, QWORD PTR stdin[rip]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L12
.L8:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR usage_str[rip]
	mov	rsi, rdx
	mov	rdi, rax
	mov	eax, 0
	call	printf@PLT
	mov	eax, 2
	jmp	.L7
.L12:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], -1
	je	.L15
	lea	rdi, color.0[rip]
	call	nextANSIColorCode
	mov	edx, eax
	mov	rax, QWORD PTR ansi_color_code_fmt[rip]
	mov	esi, edx
	mov	rdi, rax
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	putchar@PLT
	cmp	DWORD PTR -12[rbp], 10
	jne	.L12
	mov	rax, QWORD PTR ansi_color_reset_str[rip]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR color.0[rip], 0
	jmp	.L12
.L15:
	nop
	mov	rax, QWORD PTR ansi_color_reset_str[rip]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdin[rip]
	cmp	QWORD PTR -8[rbp], rax
	je	.L13
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L13:
	mov	eax, 0
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.local	color.0
	.comm	color.0,4,4
	.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	"148578649.c"
	.text
	.global	usage_str
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Usage: %s [filename]\012\000"
	.data
	.align	2
	.type	usage_str, %object
	.size	usage_str, 4
usage_str:
	.word	.LC1
	.global	ansi_color_code_fmt
	.section	.rodata
	.align	2
.LC2:
	.ascii	"\033[%um\000"
	.data
	.align	2
	.type	ansi_color_code_fmt, %object
	.size	ansi_color_code_fmt, 4
ansi_color_code_fmt:
	.word	.LC2
	.global	ansi_color_reset_str
	.section	.rodata
	.align	2
.LC3:
	.ascii	"\033[m\000"
	.data
	.align	2
	.type	ansi_color_reset_str, %object
	.size	ansi_color_reset_str, 4
ansi_color_reset_str:
	.word	.LC3
	.section	.rodata
	.align	2
.LC0:
	.word	31
	.word	33
	.word	32
	.word	36
	.word	34
	.word	35
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	nextANSIColorCode
	.syntax unified
	.arm
	.fpu softvfp
	.type	nextANSIColorCode, %function
nextANSIColorCode:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	ldr	r3, .L4
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L4+4
	sub	ip, fp, #32
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1}
	stm	ip, {r0, r1}
	ldr	r3, [fp, #-40]
	ldr	r3, [r3]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-28]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-40]
	ldr	r3, [r3]
	add	r1, r3, #1
	ldr	r3, .L4+8
	umull	r2, r3, r1, r3
	lsr	r2, r3, #2
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, r1, r3
	ldr	r3, [fp, #-40]
	str	r2, [r3]
	ldr	r3, [fp, #-36]
	ldr	r2, .L4
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L3
	bl	__stack_chk_fail
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC4
	.word	.LC0
	.word	-1431655765
	.size	nextANSIColorCode, .-nextANSIColorCode
	.section	.rodata
	.align	2
.LC5:
	.ascii	"r\000"
	.align	2
.LC6:
	.ascii	"%s\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	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-24]
	cmp	r3, #2
	bne	.L7
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L18
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L14
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	mov	r0, r3
	bl	perror
	mov	r3, #1
	b	.L9
.L7:
	ldr	r3, [fp, #-24]
	cmp	r3, #1
	bne	.L10
	ldr	r3, .L18+4
	ldr	r3, [r3]
	str	r3, [fp, #-20]
	b	.L14
.L10:
	ldr	r3, .L18+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	printf
	mov	r3, #2
	b	.L9
.L14:
	ldr	r0, [fp, #-20]
	bl	fgetc
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmn	r3, #1
	beq	.L17
	ldr	r3, .L18+12
	ldr	r4, [r3]
	ldr	r0, .L18+16
	bl	nextANSIColorCode
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	printf
	ldr	r0, [fp, #-16]
	bl	putchar
	ldr	r3, [fp, #-16]
	cmp	r3, #10
	bne	.L14
	ldr	r3, .L18+20
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L18+24
	bl	printf
	ldr	r3, .L18+16
	mov	r2, #0
	str	r2, [r3]
	b	.L14
.L17:
	nop
	ldr	r3, .L18+20
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L18+24
	bl	printf
	ldr	r3, .L18+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	beq	.L15
	ldr	r0, [fp, #-20]
	bl	fclose
.L15:
	mov	r3, #0
.L9:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC5
	.word	stdin
	.word	usage_str
	.word	ansi_color_code_fmt
	.word	color.5743
	.word	ansi_color_reset_str
	.word	.LC6
	.size	main, .-main
	.local	color.5743
	.comm	color.5743,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
