	.file	"18662.c"
	.intel_syntax noprefix
	.text
	.globl	totalLines
	.bss
	.align 4
	.type	totalLines, @object
	.size	totalLines, 4
totalLines:
	.zero	4
	.section	.rodata
	.align 8
.LC0:
	.string	"Make sure to enter in the executable, then the directory, then the file extension without the dot!:\n ./executable (directory) (filextension)"
.LC1:
	.string	"Directory scan of %s\n"
	.align 8
.LC2:
	.string	"You have written %d lines of %s code!\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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	cmp	DWORD PTR -20[rbp], 3
	je	.L2
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	jmp	.L3
.L2:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rcx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	DFS_lineCount
	mov	eax, DWORD PTR totalLines[rip]
	mov	rdx, QWORD PTR -8[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
.LC3:
	.string	""
	.text
	.globl	getFilenameExt
	.type	getFilenameExt, @function
getFilenameExt:
.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	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 46
	mov	rdi, rax
	call	strrchr@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L5
	mov	rax, QWORD PTR -8[rbp]
	cmp	rax, QWORD PTR -24[rbp]
	jne	.L6
.L5:
	lea	rax, .LC3[rip]
	jmp	.L7
.L6:
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 1
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	getFilenameExt, .-getFilenameExt
	.section	.rodata
.LC4:
	.string	"cannot open directory: %s\n"
.LC5:
	.string	"."
.LC6:
	.string	".."
.LC7:
	.string	"%*s%s/\n"
.LC8:
	.string	"%*s%s\n"
.LC9:
	.string	"r"
	.text
	.globl	DFS_lineCount
	.type	DFS_lineCount, @function
DFS_lineCount:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 240
	mov	QWORD PTR -216[rbp], rdi
	mov	QWORD PTR -224[rbp], rsi
	mov	DWORD PTR -228[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR -228[rbp]
	sal	eax, 2
	mov	DWORD PTR -200[rbp], eax
	mov	rax, QWORD PTR -216[rbp]
	mov	rdi, rax
	call	opendir@PLT
	mov	QWORD PTR -192[rbp], rax
	cmp	QWORD PTR -192[rbp], 0
	jne	.L9
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -216[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L8
.L9:
	mov	rax, QWORD PTR -216[rbp]
	mov	rdi, rax
	call	chdir@PLT
	jmp	.L11
.L17:
	mov	rax, QWORD PTR -184[rbp]
	lea	rdx, 19[rax]
	lea	rax, -160[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	lstat@PLT
	mov	eax, DWORD PTR -136[rbp]
	and	eax, 61440
	cmp	eax, 16384
	jne	.L12
	mov	rax, QWORD PTR -184[rbp]
	add	rax, 19
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	call	strcmp@PLT
	test	eax, eax
	je	.L11
	mov	rax, QWORD PTR -184[rbp]
	add	rax, 19
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L14
	jmp	.L11
.L14:
	mov	rax, QWORD PTR -184[rbp]
	lea	rdx, 19[rax]
	mov	eax, DWORD PTR -200[rbp]
	mov	rcx, rdx
	lea	rdx, .LC3[rip]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -228[rbp]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -184[rbp]
	lea	rcx, 19[rax]
	mov	rax, QWORD PTR -224[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	DFS_lineCount
	jmp	.L11
.L12:
	mov	rax, QWORD PTR -184[rbp]
	lea	rdx, 19[rax]
	mov	eax, DWORD PTR -200[rbp]
	mov	rcx, rdx
	lea	rdx, .LC3[rip]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -184[rbp]
	add	rax, 19
	mov	rdi, rax
	call	getFilenameExt
	mov	QWORD PTR -176[rbp], rax
	mov	rdx, QWORD PTR -224[rbp]
	mov	rax, QWORD PTR -176[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L11
	mov	rax, QWORD PTR -184[rbp]
	add	rax, 19
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -168[rbp], rax
	jmp	.L15
.L16:
	mov	rax, QWORD PTR -168[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	DWORD PTR -196[rbp], eax
	cmp	DWORD PTR -196[rbp], 10
	jne	.L15
	mov	eax, DWORD PTR totalLines[rip]
	add	eax, 1
	mov	DWORD PTR totalLines[rip], eax
.L15:
	mov	rax, QWORD PTR -168[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	je	.L16
	mov	rax, QWORD PTR -168[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	QWORD PTR -168[rbp], 0
.L11:
	mov	rax, QWORD PTR -192[rbp]
	mov	rdi, rax
	call	readdir@PLT
	mov	QWORD PTR -184[rbp], rax
	cmp	QWORD PTR -184[rbp], 0
	jne	.L17
	lea	rdi, .LC6[rip]
	call	chdir@PLT
	mov	rax, QWORD PTR -192[rbp]
	mov	rdi, rax
	call	closedir@PLT
.L8:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	DFS_lineCount, .-DFS_lineCount
	.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	"18662.c"
	.text
	.global	totalLines
	.bss
	.align	2
	.type	totalLines, %object
	.size	totalLines, 4
totalLines:
	.space	4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Make sure to enter in the executable, then the dire"
	.ascii	"ctory, then the file extension without the dot!:\012"
	.ascii	" ./executable (directory) (filextension)\000"
	.align	2
.LC1:
	.ascii	"Directory scan of %s\012\000"
	.align	2
.LC2:
	.ascii	"You have written %d lines of %s code!\012\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]
	ldr	r3, [fp, #-16]
	cmp	r3, #3
	beq	.L2
	ldr	r0, .L4
	bl	printf
	mov	r3, #0
	b	.L3
.L2:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-8]
	ldr	r1, [fp, #-12]
	ldr	r0, .L4+4
	bl	printf
	mov	r2, #0
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	DFS_lineCount
	ldr	r3, .L4+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	mov	r1, r3
	ldr	r0, .L4+12
	bl	printf
	mov	r3, #0
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC0
	.word	.LC1
	.word	totalLines
	.word	.LC2
	.size	main, .-main
	.section	.rodata
	.align	2
.LC3:
	.ascii	"\000"
	.text
	.align	2
	.global	getFilenameExt
	.syntax unified
	.arm
	.fpu softvfp
	.type	getFilenameExt, %function
getFilenameExt:
	@ 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]
	mov	r1, #46
	ldr	r0, [fp, #-16]
	bl	strrchr
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L7
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	bne	.L8
.L7:
	ldr	r3, .L10
	b	.L9
.L8:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
.L9:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC3
	.size	getFilenameExt, .-getFilenameExt
	.section	.rodata
	.align	2
.LC4:
	.ascii	"cannot open directory: %s\012\000"
	.align	2
.LC5:
	.ascii	".\000"
	.align	2
.LC6:
	.ascii	"..\000"
	.align	2
.LC7:
	.ascii	"%*s%s/\012\000"
	.align	2
.LC8:
	.ascii	"%*s%s\012\000"
	.align	2
.LC9:
	.ascii	"r\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	DFS_lineCount
	.syntax unified
	.arm
	.fpu softvfp
	.type	DFS_lineCount, %function
DFS_lineCount:
	@ args = 0, pretend = 0, frame = 136
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #136
	str	r0, [fp, #-128]
	str	r1, [fp, #-132]
	str	r2, [fp, #-136]
	ldr	r3, .L23
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-136]
	lsl	r3, r3, #2
	str	r3, [fp, #-124]
	ldr	r0, [fp, #-128]
	bl	opendir
	str	r0, [fp, #-120]
	ldr	r3, [fp, #-120]
	cmp	r3, #0
	bne	.L13
	ldr	r3, .L23+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-128]
	ldr	r1, .L23+8
	mov	r0, r3
	bl	fprintf
	b	.L12
.L13:
	ldr	r0, [fp, #-128]
	bl	chdir
	b	.L15
.L21:
	ldr	r3, [fp, #-116]
	add	r3, r3, #11
	sub	r2, fp, #100
	mov	r1, r2
	mov	r0, r3
	bl	lstat
	ldr	r3, [fp, #-84]
	and	r3, r3, #61440
	cmp	r3, #16384
	bne	.L16
	ldr	r3, [fp, #-116]
	add	r3, r3, #11
	mov	r1, r3
	ldr	r0, .L23+12
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L15
	ldr	r3, [fp, #-116]
	add	r3, r3, #11
	mov	r1, r3
	ldr	r0, .L23+16
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L18
	b	.L15
.L18:
	ldr	r3, [fp, #-116]
	add	r3, r3, #11
	ldr	r2, .L23+20
	ldr	r1, [fp, #-124]
	ldr	r0, .L23+24
	bl	printf
	ldr	r3, [fp, #-116]
	add	r0, r3, #11
	ldr	r3, [fp, #-136]
	add	r3, r3, #1
	mov	r2, r3
	ldr	r1, [fp, #-132]
	bl	DFS_lineCount
	b	.L15
.L16:
	ldr	r3, [fp, #-116]
	add	r3, r3, #11
	ldr	r2, .L23+20
	ldr	r1, [fp, #-124]
	ldr	r0, .L23+28
	bl	printf
	ldr	r3, [fp, #-116]
	add	r3, r3, #11
	mov	r0, r3
	bl	getFilenameExt
	str	r0, [fp, #-112]
	ldr	r1, [fp, #-132]
	ldr	r0, [fp, #-112]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L15
	ldr	r3, [fp, #-116]
	add	r3, r3, #11
	ldr	r1, .L23+32
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-108]
	b	.L19
.L20:
	ldr	r0, [fp, #-108]
	bl	fgetc
	str	r0, [fp, #-104]
	ldr	r3, [fp, #-104]
	cmp	r3, #10
	bne	.L19
	ldr	r3, .L23+36
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L23+36
	str	r3, [r2]
.L19:
	ldr	r0, [fp, #-108]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L20
	ldr	r0, [fp, #-108]
	bl	fclose
	mov	r3, #0
	str	r3, [fp, #-108]
.L15:
	ldr	r0, [fp, #-120]
	bl	readdir
	str	r0, [fp, #-116]
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	bne	.L21
	ldr	r0, .L23+16
	bl	chdir
	ldr	r0, [fp, #-120]
	bl	closedir
.L12:
	ldr	r3, .L23
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L22
	bl	__stack_chk_fail
.L22:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC10
	.word	stderr
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC3
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	totalLines
	.size	DFS_lineCount, .-DFS_lineCount
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
