	.file	"144573.c"
	.intel_syntax noprefix
	.text
	.type	comp_string, @function
comp_string:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	comp_string, .-comp_string
	.section	.rodata
.LC0:
	.string	"dir null"
.LC1:
	.string	"Error"
.LC2:
	.string	"."
.LC3:
	.string	".."
.LC4:
	.string	"hello"
.LC5:
	.string	"%s"
	.text
	.globl	cmd_ls
	.type	cmd_ls, @function
cmd_ls:
.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, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	DWORD PTR -60[rbp], esi
	mov	DWORD PTR -44[rbp], 0
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	opendir@PLT
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	jne	.L4
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC1[rip]
	call	perror@PLT
.L4:
	cmp	DWORD PTR -60[rbp], 1
	jne	.L5
	jmp	.L6
.L7:
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 19
	mov	rdi, rax
	call	puts@PLT
.L6:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	readdir@PLT
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	jne	.L7
	jmp	.L8
.L5:
	cmp	DWORD PTR -60[rbp], 0
	jne	.L9
	jmp	.L10
.L11:
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 19
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L10
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L10
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 19
	mov	rdi, rax
	call	puts@PLT
.L10:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	readdir@PLT
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	jne	.L11
	jmp	.L8
.L9:
	cmp	DWORD PTR -60[rbp], 2
	jne	.L8
	lea	rdi, .LC4[rip]
	call	puts@PLT
	jmp	.L12
.L13:
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 19
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L12
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L12
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -44[rbp], 1
.L12:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	readdir@PLT
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	jne	.L13
.L8:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	closedir@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	cmd_ls, .-cmd_ls
	.section	.rodata
.LC6:
	.string	"-U"
.LC7:
	.string	"-A"
	.align 8
.LC8:
	.string	"Enter valid commmand!\n Try command --help"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 192
	mov	DWORD PTR -180[rbp], edi
	mov	QWORD PTR -192[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -176[rbp]
	mov	esi, 160
	mov	rdi, rax
	call	getcwd@PLT
	mov	rax, QWORD PTR -192[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L15
	lea	rax, -176[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	cmd_ls
	jmp	.L16
.L15:
	mov	rax, QWORD PTR -192[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L17
	lea	rax, -176[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	cmd_ls
	jmp	.L16
.L17:
	mov	rax, QWORD PTR -192[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	test	eax, eax
	jne	.L18
	lea	rax, -176[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	cmd_ls
	jmp	.L16
.L18:
	lea	rdi, .LC8[rip]
	call	puts@PLT
.L16:
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"144573.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	comp_string, %function
comp_string:
	@ 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]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	strcmp
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	comp_string, .-comp_string
	.section	.rodata
	.align	2
.LC0:
	.ascii	"dir null\000"
	.align	2
.LC1:
	.ascii	"Error\000"
	.align	2
.LC2:
	.ascii	".\000"
	.align	2
.LC3:
	.ascii	"..\000"
	.align	2
.LC4:
	.ascii	"hello\000"
	.align	2
.LC5:
	.ascii	"%s\000"
	.text
	.align	2
	.global	cmd_ls
	.syntax unified
	.arm
	.fpu softvfp
	.type	cmd_ls, %function
cmd_ls:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-28]
	ldr	r0, [fp, #-32]
	bl	opendir
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L4
	ldr	r0, .L14
	bl	printf
	ldr	r0, .L14+4
	bl	perror
.L4:
	ldr	r3, [fp, #-36]
	cmp	r3, #1
	bne	.L5
	b	.L6
.L7:
	ldr	r3, [fp, #-20]
	add	r3, r3, #11
	mov	r0, r3
	bl	puts
.L6:
	ldr	r0, [fp, #-24]
	bl	readdir
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L7
	b	.L8
.L5:
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L9
	b	.L10
.L11:
	ldr	r3, [fp, #-20]
	add	r3, r3, #11
	str	r3, [fp, #-8]
	ldr	r1, .L14+8
	ldr	r0, [fp, #-8]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L10
	ldr	r1, .L14+12
	ldr	r0, [fp, #-8]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L10
	ldr	r3, [fp, #-20]
	add	r3, r3, #11
	mov	r0, r3
	bl	puts
.L10:
	ldr	r0, [fp, #-24]
	bl	readdir
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L11
	b	.L8
.L9:
	ldr	r3, [fp, #-36]
	cmp	r3, #2
	bne	.L8
	ldr	r0, .L14+16
	bl	puts
	b	.L12
.L13:
	ldr	r3, [fp, #-20]
	add	r3, r3, #11
	str	r3, [fp, #-16]
	ldr	r1, .L14+8
	ldr	r0, [fp, #-16]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L12
	ldr	r1, .L14+12
	ldr	r0, [fp, #-16]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L12
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L14+20
	bl	printf
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L12:
	ldr	r0, [fp, #-24]
	bl	readdir
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L13
.L8:
	ldr	r0, [fp, #-24]
	bl	closedir
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	cmd_ls, .-cmd_ls
	.section	.rodata
	.align	2
.LC6:
	.ascii	"-U\000"
	.align	2
.LC7:
	.ascii	"-A\000"
	.align	2
.LC8:
	.ascii	"Enter valid commmand!\012 Try command --help\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 176
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #176
	str	r0, [fp, #-176]
	str	r1, [fp, #-180]
	ldr	r3, .L23
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #168
	mov	r1, #160
	mov	r0, r3
	bl	getcwd
	ldr	r3, [fp, #-180]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L23+4
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L17
	sub	r3, fp, #168
	mov	r1, #1
	mov	r0, r3
	bl	cmd_ls
	b	.L18
.L17:
	ldr	r3, [fp, #-180]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L23+8
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L19
	sub	r3, fp, #168
	mov	r1, #0
	mov	r0, r3
	bl	cmd_ls
	b	.L18
.L19:
	ldr	r3, [fp, #-180]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L20
	sub	r3, fp, #168
	mov	r1, #0
	mov	r0, r3
	bl	cmd_ls
	b	.L18
.L20:
	ldr	r0, .L23+12
	bl	puts
.L18:
	mov	r3, #0
	ldr	r2, .L23
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L22
	bl	__stack_chk_fail
.L22:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC9
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
