	.file	"127763.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
	call	file
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"Lorem.txt"
.LC2:
	.string	"Char cout : %d\n"
.LC3:
	.string	"Space cout : %d\n"
.LC4:
	.string	"Line cout : %d\n"
.LC5:
	.string	"Word Count : %d\n"
	.text
	.globl	file
	.type	file, @function
file:
.LFB1:
	.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 -12[rbp], 0
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	jmp	.L4
.L9:
	movsx	eax, BYTE PTR -29[rbp]
	mov	edi, eax
	call	charcount
	movsx	eax, BYTE PTR -29[rbp]
	mov	edi, eax
	call	charcount
	cmp	eax, 1
	jne	.L5
	add	DWORD PTR -28[rbp], 1
.L5:
	movsx	eax, BYTE PTR -29[rbp]
	mov	edi, eax
	call	linecount
	movsx	eax, BYTE PTR -29[rbp]
	mov	edi, eax
	call	linecount
	cmp	eax, 1
	jne	.L6
	add	DWORD PTR -24[rbp], 1
.L6:
	movsx	eax, BYTE PTR -29[rbp]
	mov	edi, eax
	call	spacecount
	movsx	eax, BYTE PTR -29[rbp]
	mov	edi, eax
	call	spacecount
	cmp	eax, 1
	jne	.L7
	add	DWORD PTR -20[rbp], 1
.L7:
	movsx	eax, BYTE PTR -29[rbp]
	mov	edx, DWORD PTR -12[rbp]
	mov	esi, edx
	mov	edi, eax
	call	wordcount
	movsx	eax, BYTE PTR -29[rbp]
	mov	edx, DWORD PTR -12[rbp]
	mov	esi, edx
	mov	edi, eax
	call	wordcount
	test	eax, eax
	jne	.L8
	mov	DWORD PTR -12[rbp], 0
	jmp	.L4
.L8:
	movsx	eax, BYTE PTR -29[rbp]
	mov	edx, DWORD PTR -12[rbp]
	mov	esi, edx
	mov	edi, eax
	call	wordcount
	cmp	eax, 1
	jne	.L4
	mov	DWORD PTR -12[rbp], 1
	add	DWORD PTR -16[rbp], 1
.L4:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	BYTE PTR -29[rbp], al
	cmp	BYTE PTR -29[rbp], -1
	jne	.L9
	mov	eax, DWORD PTR -28[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	file, .-file
	.globl	charcount
	.type	charcount, @function
charcount:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, edi
	mov	BYTE PTR -4[rbp], al
	cmp	BYTE PTR -4[rbp], 32
	je	.L11
	cmp	BYTE PTR -4[rbp], 10
	je	.L11
	cmp	BYTE PTR -4[rbp], 46
	je	.L11
	cmp	BYTE PTR -4[rbp], 9
	je	.L11
	cmp	BYTE PTR -4[rbp], 44
	je	.L11
	mov	eax, 1
	jmp	.L10
.L11:
.L10:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	charcount, .-charcount
	.globl	spacecount
	.type	spacecount, @function
spacecount:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, edi
	mov	BYTE PTR -4[rbp], al
	cmp	BYTE PTR -4[rbp], 32
	jne	.L14
	mov	eax, 1
	jmp	.L13
.L14:
.L13:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	spacecount, .-spacecount
	.globl	linecount
	.type	linecount, @function
linecount:
.LFB4:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, edi
	mov	BYTE PTR -4[rbp], al
	cmp	BYTE PTR -4[rbp], 10
	jne	.L17
	mov	eax, 1
	jmp	.L16
.L17:
.L16:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	linecount, .-linecount
	.globl	wordcount
	.type	wordcount, @function
wordcount:
.LFB5:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, edi
	mov	DWORD PTR -8[rbp], esi
	mov	BYTE PTR -4[rbp], al
	cmp	BYTE PTR -4[rbp], 32
	je	.L20
	cmp	BYTE PTR -4[rbp], 10
	je	.L20
	cmp	BYTE PTR -4[rbp], 9
	je	.L20
	cmp	BYTE PTR -4[rbp], 46
	jne	.L21
.L20:
	mov	eax, 0
	jmp	.L19
.L21:
	cmp	DWORD PTR -8[rbp], 0
	jne	.L23
	mov	eax, 1
	jmp	.L19
.L23:
.L19:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	wordcount, .-wordcount
	.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	"127763.c"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	file
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
	.size	main, .-main
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"Lorem.txt\000"
	.text
	.align	2
	.global	file
	.syntax unified
	.arm
	.fpu softvfp
	.type	file, %function
file:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r1, .L11
	ldr	r0, .L11+4
	bl	fopen
	str	r0, [fp, #-8]
	b	.L4
.L10:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L5:
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	mov	r0, r3
	bl	linecount
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	mov	r0, r3
	bl	linecount
	mov	r3, r0
	cmp	r3, #1
	bne	.L6
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L6:
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	mov	r0, r3
	bl	spacecount
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	mov	r0, r3
	bl	spacecount
	mov	r3, r0
	cmp	r3, #1
	bne	.L7
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L7:
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	wordcount
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	wordcount
	mov	r3, r0
	cmp	r3, #0
	bne	.L8
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L4
.L8:
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	wordcount
	mov	r3, r0
	cmp	r3, #1
	bne	.L4
	mov	r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L4:
	ldr	r0, [fp, #-8]
	bl	fgetc
	mov	r3, r0
	strb	r3, [fp, #-29]
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	mov	r0, r3
	bl	charcount
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	mov	r0, r3
	bl	charcount
	mov	r3, r0
	cmp	r3, #1
	bne	.L5
	b	.L10
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	.LC1
	.size	file, .-file
	.align	2
	.global	charcount
	.syntax unified
	.arm
	.fpu softvfp
	.type	charcount, %function
charcount:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	mov	r3, r0
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L14
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L14
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #46
	beq	.L14
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #9
	beq	.L14
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #44
	beq	.L14
	mov	r3, #1
	b	.L13
.L14:
.L13:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	charcount, .-charcount
	.align	2
	.global	spacecount
	.syntax unified
	.arm
	.fpu softvfp
	.type	spacecount, %function
spacecount:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	mov	r3, r0
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L17
	mov	r3, #1
	b	.L16
.L17:
.L16:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	spacecount, .-spacecount
	.align	2
	.global	linecount
	.syntax unified
	.arm
	.fpu softvfp
	.type	linecount, %function
linecount:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	mov	r3, r0
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L20
	mov	r3, #1
	b	.L19
.L20:
.L19:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	linecount, .-linecount
	.align	2
	.global	wordcount
	.syntax unified
	.arm
	.fpu softvfp
	.type	wordcount, %function
wordcount:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	mov	r3, r0
	str	r1, [fp, #-12]
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L23
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L23
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #9
	beq	.L23
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #46
	bne	.L24
.L23:
	mov	r3, #0
	b	.L22
.L24:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L26
	mov	r3, #1
	b	.L22
.L26:
.L22:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	wordcount, .-wordcount
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
