	.file	"517949.c"
	.intel_syntax noprefix
	.text
	.globl	total_lines
	.bss
	.align 4
	.type	total_lines, @object
	.size	total_lines, 4
total_lines:
	.zero	4
	.globl	total_chars
	.align 4
	.type	total_chars, @object
	.size	total_chars, 4
total_chars:
	.zero	4
	.globl	count_chars
	.align 4
	.type	count_chars, @object
	.size	count_chars, 4
count_chars:
	.zero	4
	.globl	count_lines
	.align 4
	.type	count_lines, @object
	.size	count_lines, 4
count_lines:
	.zero	4
	.globl	count
	.section	.rodata
	.align 4
	.type	count, @object
	.size	count, 4
count:
	.long	200
.LC0:
	.string	"inside process"
	.text
	.globl	process
	.type	process, @function
process:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	lea	rdi, .LC0[rip]
	call	puts@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	process, .-process
	.globl	charCount
	.type	charCount, @function
charCount:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	eax, 8
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	charCount, .-charCount
	.globl	lineCount
	.type	lineCount, @function
lineCount:
.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, 1
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	lineCount, .-lineCount
	.section	.rodata
	.align 8
.LC1:
	.string	"Please specify count line and chars"
.LC2:
	.string	"-c"
.LC3:
	.string	"-l"
.LC4:
	.string	"You should see this message "
	.align 8
.LC5:
	.string	"You should NOT see this message "
.LC6:
	.string	"Count chars is:: %d\n"
.LC7:
	.string	"Count Lines is:: %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 1072
	mov	DWORD PTR -1060[rbp], edi
	mov	QWORD PTR -1072[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -1060[rbp], 1
	jne	.L7
	lea	rdi, .LC1[rip]
	call	puts@PLT
	jmp	.L17
.L7:
	cmp	DWORD PTR -1060[rbp], 2
	jne	.L17
	mov	rax, QWORD PTR -1072[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L9
	mov	DWORD PTR count_chars[rip], 1
	jmp	.L17
.L9:
	mov	rax, QWORD PTR -1072[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L17
	mov	DWORD PTR count_lines[rip], 1
.L17:
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -1040[rbp]
	mov	esi, 1024
	mov	rdi, rax
	call	fgets@PLT
	mov	QWORD PTR -1048[rbp], rax
	cmp	QWORD PTR -1048[rbp], 0
	jne	.L10
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	jne	.L22
.L10:
	mov	eax, DWORD PTR count_chars[rip]
	test	eax, eax
	je	.L12
	lea	rdi, .LC4[rip]
	call	puts@PLT
	lea	rax, -1040[rbp]
	mov	QWORD PTR -1056[rbp], rax
	jmp	.L13
.L14:
	mov	eax, DWORD PTR total_chars[rip]
	add	eax, 1
	mov	DWORD PTR total_chars[rip], eax
	add	QWORD PTR -1056[rbp], 1
.L13:
	mov	rax, QWORD PTR -1056[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	jne	.L14
.L12:
	mov	eax, DWORD PTR count_lines[rip]
	test	eax, eax
	je	.L15
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	eax, 0
	call	lineCount
	mov	edx, DWORD PTR total_lines[rip]
	add	eax, edx
	mov	DWORD PTR total_lines[rip], eax
.L15:
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	jne	.L23
	jmp	.L17
.L22:
	nop
	jmp	.L11
.L23:
	nop
.L11:
	mov	eax, DWORD PTR count_chars[rip]
	test	eax, eax
	je	.L18
	mov	eax, DWORD PTR total_chars[rip]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
.L18:
	mov	eax, DWORD PTR count_lines[rip]
	test	eax, eax
	je	.L19
	mov	eax, DWORD PTR total_lines[rip]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
.L19:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.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	"517949.c"
	.text
	.global	total_lines
	.bss
	.align	2
	.type	total_lines, %object
	.size	total_lines, 4
total_lines:
	.space	4
	.global	total_chars
	.align	2
	.type	total_chars, %object
	.size	total_chars, 4
total_chars:
	.space	4
	.global	count_chars
	.align	2
	.type	count_chars, %object
	.size	count_chars, 4
count_chars:
	.space	4
	.global	count_lines
	.align	2
	.type	count_lines, %object
	.size	count_lines, 4
count_lines:
	.space	4
	.global	count
	.section	.rodata
	.align	2
	.type	count, %object
	.size	count, 4
count:
	.word	200
	.align	2
.LC0:
	.ascii	"inside process\000"
	.text
	.align	2
	.global	process
	.syntax unified
	.arm
	.fpu softvfp
	.type	process, %function
process:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r0, .L2
	bl	puts
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	.LC0
	.size	process, .-process
	.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
	str	r0, [fp, #-8]
	mov	r3, #4
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	charCount, .-charCount
	.align	2
	.global	lineCount
	.syntax unified
	.arm
	.fpu softvfp
	.type	lineCount, %function
lineCount:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	mov	r3, #1
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	lineCount, .-lineCount
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Please specify count line and chars\000"
	.align	2
.LC2:
	.ascii	"-c\000"
	.align	2
.LC3:
	.ascii	"-l\000"
	.align	2
.LC4:
	.ascii	"You should see this message \000"
	.align	2
.LC5:
	.ascii	"You should NOT see this message \000"
	.align	2
.LC6:
	.ascii	"Count chars is:: %d\012\000"
	.align	2
.LC7:
	.ascii	"Count Lines is:: %d\012\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1048
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1040
	sub	sp, sp, #8
	str	r0, [fp, #-1048]
	str	r1, [fp, #-1052]
	ldr	r3, .L26
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-1048]
	cmp	r3, #1
	bne	.L9
	ldr	r0, .L26+4
	bl	puts
	b	.L19
.L9:
	ldr	r3, [fp, #-1048]
	cmp	r3, #2
	bne	.L19
	ldr	r3, [fp, #-1052]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L26+8
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L11
	ldr	r3, .L26+12
	mov	r2, #1
	str	r2, [r3]
	b	.L19
.L11:
	ldr	r3, [fp, #-1052]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L26+16
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L19
	ldr	r3, .L26+20
	mov	r2, #1
	str	r2, [r3]
.L19:
	ldr	r3, .L26+24
	ldr	r2, [r3]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, #1024
	mov	r0, r3
	bl	fgets
	str	r0, [fp, #-1036]
	ldr	r3, [fp, #-1036]
	cmp	r3, #0
	bne	.L12
	ldr	r3, .L26+24
	ldr	r3, [r3]
	mov	r0, r3
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	bne	.L24
.L12:
	ldr	r3, .L26+12
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L14
	ldr	r0, .L26+28
	bl	puts
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	str	r3, [fp, #-1040]
	b	.L15
.L16:
	ldr	r3, .L26+32
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L26+32
	str	r3, [r2]
	ldr	r3, [fp, #-1040]
	add	r3, r3, #1
	str	r3, [fp, #-1040]
.L15:
	ldr	r3, [fp, #-1040]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L16
.L14:
	ldr	r3, .L26+20
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L17
	ldr	r0, .L26+36
	bl	puts
	bl	lineCount
	mov	r2, r0
	ldr	r3, .L26+40
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L26+40
	str	r3, [r2]
.L17:
	ldr	r3, .L26+24
	ldr	r3, [r3]
	mov	r0, r3
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	bne	.L25
	b	.L19
.L24:
	nop
	b	.L13
.L25:
	nop
.L13:
	ldr	r3, .L26+12
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L20
	ldr	r3, .L26+32
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L26+44
	bl	printf
.L20:
	ldr	r3, .L26+20
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L21
	ldr	r3, .L26+40
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L26+48
	bl	printf
.L21:
	mov	r3, #0
	ldr	r2, .L26
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L23
	bl	__stack_chk_fail
.L23:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	.LC8
	.word	.LC1
	.word	.LC2
	.word	count_chars
	.word	.LC3
	.word	count_lines
	.word	stdin
	.word	.LC4
	.word	total_chars
	.word	.LC5
	.word	total_lines
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
