	.file	"118718.c"
	.intel_syntax noprefix
	.text
	.globl	mapped_path
	.data
	.align 8
	.type	mapped_path, @object
	.size	mapped_path, 10
mapped_path:
	.string	"/"
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
	.section	.rodata
	.align 8
.LC0:
	.string	"Copying at most %d chars into buffer path[] whose size = %d\n"
	.text
	.globl	mapping_getcwd
	.type	mapping_getcwd, @function
mapping_getcwd:
.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, 80
	mov	QWORD PTR -72[rbp], rdi
	mov	QWORD PTR -80[rbp], rsi
	lea	rax, .LC0[rip]
	mov	QWORD PTR -64[rbp], rax
	mov	rcx, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, 11
	mov	rsi, rcx
	mov	rdi, rax
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -72[rbp]
	mov	QWORD PTR -56[rbp], rax
	mov	QWORD PTR -48[rbp], 0
	lea	rdx, mapped_path[rip]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	rdx, QWORD PTR -80[rbp]
	mov	rcx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	mov	rax, QWORD PTR -80[rbp]
	sub	rax, 1
	mov	QWORD PTR -16[rbp], rax
	mov	rdx, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -72[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	mapping_getcwd, .-mapping_getcwd
	.globl	pathspace
	.bss
	.align 8
	.type	pathspace, @object
	.size	pathspace, 10
pathspace:
	.zero	10
	.globl	old_mapped_path
	.align 8
	.type	old_mapped_path, @object
	.size	old_mapped_path, 10
old_mapped_path:
	.zero	10
	.section	.rodata
.LC1:
	.string	"/"
	.text
	.globl	do_elem
	.type	do_elem, @function
do_elem:
.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, 448
	mov	QWORD PTR -440[rbp], rdi
	mov	rax, QWORD PTR -440[rbp]
	mov	QWORD PTR -376[rbp], rax
	mov	rax, QWORD PTR -376[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -419[rbp], al
	movsx	eax, BYTE PTR -419[rbp]
	mov	DWORD PTR -412[rbp], eax
	cmp	DWORD PTR -412[rbp], 46
	jne	.L4
	mov	rax, QWORD PTR -440[rbp]
	add	rax, 1
	mov	QWORD PTR -368[rbp], rax
	mov	rax, QWORD PTR -368[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -418[rbp], al
	movsx	eax, BYTE PTR -418[rbp]
	mov	DWORD PTR -408[rbp], eax
	cmp	DWORD PTR -408[rbp], 0
	je	.L12
.L4:
	mov	rax, QWORD PTR -440[rbp]
	mov	QWORD PTR -360[rbp], rax
	mov	rax, QWORD PTR -360[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -417[rbp], al
	movsx	eax, BYTE PTR -417[rbp]
	mov	DWORD PTR -404[rbp], eax
	cmp	DWORD PTR -404[rbp], 46
	jne	.L6
	mov	rax, QWORD PTR -440[rbp]
	add	rax, 1
	mov	QWORD PTR -352[rbp], rax
	mov	rax, QWORD PTR -352[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -416[rbp], al
	movsx	eax, BYTE PTR -416[rbp]
	mov	DWORD PTR -400[rbp], eax
	cmp	DWORD PTR -400[rbp], 46
	jne	.L6
	mov	rax, QWORD PTR -440[rbp]
	add	rax, 2
	mov	QWORD PTR -344[rbp], rax
	mov	rax, QWORD PTR -344[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -415[rbp], al
	movsx	eax, BYTE PTR -415[rbp]
	mov	DWORD PTR -396[rbp], eax
	cmp	DWORD PTR -396[rbp], 0
	jne	.L6
	mov	QWORD PTR -336[rbp], 0
	lea	rdx, mapped_path[rip]
	mov	rax, QWORD PTR -336[rbp]
	add	rax, rdx
	mov	QWORD PTR -328[rbp], rax
	mov	rax, QWORD PTR -328[rbp]
	mov	QWORD PTR -320[rbp], rax
	mov	rax, QWORD PTR -320[rbp]
	mov	QWORD PTR -312[rbp], rax
	mov	rax, QWORD PTR -312[rbp]
	mov	esi, 47
	mov	rdi, rax
	call	strrchr@PLT
	mov	QWORD PTR -384[rbp], rax
	cmp	QWORD PTR -384[rbp], 0
	je	.L13
	mov	QWORD PTR -304[rbp], 0
	lea	rdx, mapped_path[rip]
	mov	rax, QWORD PTR -304[rbp]
	add	rax, rdx
	mov	QWORD PTR -296[rbp], rax
	mov	rax, QWORD PTR -296[rbp]
	mov	QWORD PTR -288[rbp], rax
	mov	rax, QWORD PTR -288[rbp]
	mov	QWORD PTR -280[rbp], rax
	mov	rax, QWORD PTR -384[rbp]
	mov	QWORD PTR -272[rbp], rax
	mov	rax, QWORD PTR -272[rbp]
	cmp	rax, QWORD PTR -280[rbp]
	jne	.L8
	add	QWORD PTR -384[rbp], 1
.L8:
	mov	rax, QWORD PTR -384[rbp]
	mov	BYTE PTR [rax], 0
	jmp	.L13
.L6:
	mov	QWORD PTR -264[rbp], 0
	lea	rdx, mapped_path[rip]
	mov	rax, QWORD PTR -264[rbp]
	add	rax, rdx
	mov	QWORD PTR -256[rbp], rax
	mov	rax, QWORD PTR -256[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -414[rbp], al
	movsx	eax, BYTE PTR -414[rbp]
	mov	DWORD PTR -392[rbp], eax
	cmp	DWORD PTR -392[rbp], 47
	jne	.L14
	mov	QWORD PTR -248[rbp], 1
	lea	rdx, mapped_path[rip]
	mov	rax, QWORD PTR -248[rbp]
	add	rax, rdx
	mov	QWORD PTR -240[rbp], rax
	mov	rax, QWORD PTR -240[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -413[rbp], al
	movsx	eax, BYTE PTR -413[rbp]
	mov	DWORD PTR -388[rbp], eax
	cmp	DWORD PTR -388[rbp], 0
	je	.L10
	jmp	.L9
.L14:
	nop
.L9:
	mov	QWORD PTR -232[rbp], 0
	lea	rdx, mapped_path[rip]
	mov	rax, QWORD PTR -232[rbp]
	add	rax, rdx
	mov	QWORD PTR -224[rbp], rax
	mov	rax, QWORD PTR -224[rbp]
	mov	QWORD PTR -216[rbp], rax
	mov	rax, QWORD PTR -216[rbp]
	mov	QWORD PTR -208[rbp], rax
	mov	rax, QWORD PTR -208[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -200[rbp], rax
	mov	QWORD PTR -192[rbp], 9
	mov	rax, QWORD PTR -200[rbp]
	cmp	rax, QWORD PTR -192[rbp]
	jnb	.L10
	mov	QWORD PTR -184[rbp], 0
	lea	rdx, mapped_path[rip]
	mov	rax, QWORD PTR -184[rbp]
	add	rax, rdx
	mov	QWORD PTR -176[rbp], rax
	mov	rax, QWORD PTR -176[rbp]
	mov	QWORD PTR -168[rbp], rax
	mov	rax, QWORD PTR -168[rbp]
	mov	QWORD PTR -160[rbp], rax
	lea	rax, .LC1[rip]
	mov	QWORD PTR -152[rbp], rax
	mov	rdx, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR -160[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
.L10:
	mov	QWORD PTR -144[rbp], 0
	lea	rdx, mapped_path[rip]
	mov	rax, QWORD PTR -144[rbp]
	add	rax, rdx
	mov	QWORD PTR -136[rbp], rax
	mov	rax, QWORD PTR -136[rbp]
	mov	QWORD PTR -128[rbp], rax
	mov	rax, QWORD PTR -128[rbp]
	mov	QWORD PTR -120[rbp], rax
	mov	rax, QWORD PTR -120[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -112[rbp], rax
	mov	eax, 10
	sub	rax, QWORD PTR -112[rbp]
	mov	QWORD PTR -104[rbp], rax
	cmp	QWORD PTR -104[rbp], 1
	jbe	.L15
	mov	QWORD PTR -96[rbp], 0
	lea	rdx, mapped_path[rip]
	mov	rax, QWORD PTR -96[rbp]
	add	rax, rdx
	mov	QWORD PTR -88[rbp], rax
	mov	rax, QWORD PTR -88[rbp]
	mov	QWORD PTR -80[rbp], rax
	mov	rax, QWORD PTR -80[rbp]
	mov	QWORD PTR -72[rbp], rax
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -64[rbp], rax
	mov	QWORD PTR -56[rbp], 0
	lea	rdx, mapped_path[rip]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -440[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	eax, 10
	sub	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	sub	rax, 1
	mov	QWORD PTR -8[rbp], rax
	mov	rdx, QWORD PTR -8[rbp]
	mov	rcx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncat@PLT
	jmp	.L15
.L12:
	nop
	jmp	.L3
.L13:
	nop
	jmp	.L3
.L15:
	nop
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	do_elem, .-do_elem
	.section	.rodata
.LC2:
	.string	"strlen(path) = %d \t path=%s\n"
	.align 8
.LC3:
	.string	"strlen(orig_path) = %d \t orig_path=%s\n"
.LC4:
	.string	"path = %s.. calling do_elem\n"
.LC5:
	.string	"mapped_path = %s\n"
	.align 8
.LC6:
	.string	"ALERT: mapped_path[MAXPATHLEN] has been overflowed!\n"
.LC7:
	.string	"couldn't chdir to %s !\n"
.LC8:
	.string	"mapped_path changed to %s\n"
	.text
	.globl	mapping_chdir
	.type	mapping_chdir, @function
mapping_chdir:
.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, 512
	mov	QWORD PTR -504[rbp], rdi
	mov	QWORD PTR -472[rbp], 0
	lea	rdx, old_mapped_path[rip]
	mov	rax, QWORD PTR -472[rbp]
	add	rax, rdx
	mov	QWORD PTR -464[rbp], rax
	mov	rax, QWORD PTR -464[rbp]
	mov	QWORD PTR -456[rbp], rax
	mov	rax, QWORD PTR -456[rbp]
	mov	QWORD PTR -448[rbp], rax
	mov	QWORD PTR -440[rbp], 0
	lea	rdx, mapped_path[rip]
	mov	rax, QWORD PTR -440[rbp]
	add	rax, rdx
	mov	QWORD PTR -432[rbp], rax
	mov	rax, QWORD PTR -432[rbp]
	mov	QWORD PTR -424[rbp], rax
	mov	rax, QWORD PTR -424[rbp]
	mov	QWORD PTR -416[rbp], rax
	mov	rdx, QWORD PTR -416[rbp]
	mov	rax, QWORD PTR -448[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	QWORD PTR -408[rbp], 0
	lea	rdx, pathspace[rip]
	mov	rax, QWORD PTR -408[rbp]
	add	rax, rdx
	mov	QWORD PTR -400[rbp], rax
	mov	rax, QWORD PTR -400[rbp]
	mov	QWORD PTR -480[rbp], rax
	mov	rax, QWORD PTR -480[rbp]
	mov	QWORD PTR -392[rbp], rax
	mov	rax, QWORD PTR -392[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -384[rbp], rax
	lea	rax, .LC2[rip]
	mov	QWORD PTR -376[rbp], rax
	mov	rdx, QWORD PTR -480[rbp]
	mov	rcx, QWORD PTR -384[rbp]
	mov	rax, QWORD PTR -376[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -504[rbp]
	mov	QWORD PTR -368[rbp], rax
	mov	rax, QWORD PTR -368[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -360[rbp], rax
	lea	rax, .LC3[rip]
	mov	QWORD PTR -352[rbp], rax
	mov	rdx, QWORD PTR -504[rbp]
	mov	rcx, QWORD PTR -360[rbp]
	mov	rax, QWORD PTR -352[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -480[rbp]
	mov	QWORD PTR -344[rbp], rax
	mov	rax, QWORD PTR -344[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -336[rbp], rax
	cmp	QWORD PTR -336[rbp], 0
	je	.L17
	mov	rax, QWORD PTR -480[rbp]
	mov	QWORD PTR -328[rbp], rax
	mov	rax, QWORD PTR -504[rbp]
	mov	QWORD PTR -320[rbp], rax
	mov	rdx, QWORD PTR -320[rbp]
	mov	rax, QWORD PTR -328[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
.L17:
	mov	rax, QWORD PTR -480[rbp]
	mov	QWORD PTR -312[rbp], rax
	mov	rax, QWORD PTR -312[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -494[rbp], al
	movsx	eax, BYTE PTR -494[rbp]
	mov	DWORD PTR -492[rbp], eax
	cmp	DWORD PTR -492[rbp], 47
	jne	.L28
	mov	QWORD PTR -304[rbp], 0
	lea	rdx, mapped_path[rip]
	mov	rax, QWORD PTR -304[rbp]
	add	rax, rdx
	mov	QWORD PTR -296[rbp], rax
	mov	rax, QWORD PTR -296[rbp]
	mov	BYTE PTR [rax], 47
	mov	QWORD PTR -288[rbp], 1
	lea	rdx, mapped_path[rip]
	mov	rax, QWORD PTR -288[rbp]
	add	rax, rdx
	mov	QWORD PTR -280[rbp], rax
	mov	rax, QWORD PTR -280[rbp]
	mov	BYTE PTR [rax], 0
	add	QWORD PTR -480[rbp], 1
	jmp	.L23
.L28:
	nop
.L18:
.L23:
	mov	rax, QWORD PTR -480[rbp]
	mov	QWORD PTR -272[rbp], rax
	mov	rax, QWORD PTR -272[rbp]
	mov	esi, 47
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -264[rbp], rax
	cmp	QWORD PTR -264[rbp], 0
	je	.L29
	mov	rax, QWORD PTR -480[rbp]
	mov	QWORD PTR -256[rbp], rax
	mov	rax, QWORD PTR -264[rbp]
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -264[rbp]
	add	rax, 1
	mov	QWORD PTR -480[rbp], rax
	mov	rax, QWORD PTR -256[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L21
	mov	rax, QWORD PTR -256[rbp]
	mov	rdi, rax
	call	do_elem
.L21:
	mov	rax, QWORD PTR -480[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -493[rbp], al
	movsx	eax, BYTE PTR -493[rbp]
	mov	DWORD PTR -488[rbp], eax
	cmp	DWORD PTR -488[rbp], 0
	je	.L30
	jmp	.L23
.L29:
	nop
	jmp	.L20
.L30:
	nop
.L20:
	mov	rax, QWORD PTR -480[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L24
	lea	rax, .LC4[rip]
	mov	QWORD PTR -248[rbp], rax
	mov	rdx, QWORD PTR -480[rbp]
	mov	rax, QWORD PTR -248[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -480[rbp]
	mov	rdi, rax
	call	do_elem
.L24:
	lea	rax, .LC5[rip]
	mov	QWORD PTR -240[rbp], rax
	mov	QWORD PTR -232[rbp], 0
	lea	rdx, mapped_path[rip]
	mov	rax, QWORD PTR -232[rbp]
	add	rax, rdx
	mov	QWORD PTR -224[rbp], rax
	mov	rax, QWORD PTR -224[rbp]
	mov	QWORD PTR -216[rbp], rax
	mov	rdx, QWORD PTR -216[rbp]
	mov	rax, QWORD PTR -240[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	mov	eax, 0
	call	printf@PLT
	mov	QWORD PTR -208[rbp], 0
	lea	rdx, mapped_path[rip]
	mov	rax, QWORD PTR -208[rbp]
	add	rax, rdx
	mov	QWORD PTR -200[rbp], rax
	mov	rax, QWORD PTR -200[rbp]
	mov	QWORD PTR -192[rbp], rax
	mov	rax, QWORD PTR -192[rbp]
	mov	QWORD PTR -184[rbp], rax
	mov	rax, QWORD PTR -184[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -176[rbp], rax
	cmp	QWORD PTR -176[rbp], 9
	jbe	.L25
	lea	rax, .LC6[rip]
	mov	QWORD PTR -168[rbp], rax
	mov	rax, QWORD PTR -168[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	printf@PLT
.L25:
	mov	QWORD PTR -160[rbp], 0
	lea	rdx, mapped_path[rip]
	mov	rax, QWORD PTR -160[rbp]
	add	rax, rdx
	mov	QWORD PTR -152[rbp], rax
	mov	rax, QWORD PTR -152[rbp]
	mov	QWORD PTR -144[rbp], rax
	mov	rax, QWORD PTR -144[rbp]
	mov	QWORD PTR -136[rbp], rax
	mov	rax, QWORD PTR -136[rbp]
	mov	rdi, rax
	call	chdir@PLT
	mov	DWORD PTR -484[rbp], eax
	cmp	DWORD PTR -484[rbp], 0
	jns	.L26
	lea	rax, .LC7[rip]
	mov	QWORD PTR -128[rbp], rax
	mov	QWORD PTR -120[rbp], 0
	lea	rdx, mapped_path[rip]
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rdx
	mov	QWORD PTR -112[rbp], rax
	mov	rax, QWORD PTR -112[rbp]
	mov	QWORD PTR -104[rbp], rax
	mov	rdx, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR -128[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	mov	eax, 0
	call	printf@PLT
	mov	QWORD PTR -96[rbp], 0
	lea	rdx, mapped_path[rip]
	mov	rax, QWORD PTR -96[rbp]
	add	rax, rdx
	mov	QWORD PTR -88[rbp], rax
	mov	rax, QWORD PTR -88[rbp]
	mov	QWORD PTR -80[rbp], rax
	mov	rax, QWORD PTR -80[rbp]
	mov	QWORD PTR -72[rbp], rax
	mov	QWORD PTR -64[rbp], 0
	lea	rdx, old_mapped_path[rip]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR -40[rbp], rax
	mov	rdx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	lea	rax, .LC8[rip]
	mov	QWORD PTR -32[rbp], rax
	mov	QWORD PTR -24[rbp], 0
	lea	rdx, mapped_path[rip]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	mov	eax, 0
	call	printf@PLT
.L26:
	mov	eax, DWORD PTR -484[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	mapping_chdir, .-mapping_chdir
	.section	.rodata
	.align 8
.LC9:
	.string	"wu-ftpd: Illegal path supplied!\n"
.LC10:
	.string	"path = %s\n"
.LC11:
	.string	"Current directory = %s\n"
	.align 8
.LC12:
	.string	"max len of path is %d, strlen(path) = %d\n"
	.align 8
.LC13:
	.string	"Canary should be 7.  Canary = %d\n"
	.align 8
.LC14:
	.string	"ALERT: path[MAXPATHLEN + 1] has been overflowed!\n"
	.text
	.globl	pwd
	.type	pwd, @function
pwd:
.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, 240
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -236[rbp], 7
	mov	QWORD PTR -232[rbp], 0
	lea	rdx, -19[rbp]
	mov	rax, QWORD PTR -232[rbp]
	add	rax, rdx
	mov	QWORD PTR -224[rbp], rax
	mov	rax, QWORD PTR -224[rbp]
	mov	QWORD PTR -216[rbp], rax
	mov	QWORD PTR -208[rbp], 10
	mov	rdx, QWORD PTR -208[rbp]
	mov	rax, QWORD PTR -216[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	mapping_getcwd
	mov	QWORD PTR -200[rbp], rax
	mov	QWORD PTR -192[rbp], 0
	mov	rax, QWORD PTR -192[rbp]
	mov	QWORD PTR -184[rbp], rax
	mov	rax, QWORD PTR -184[rbp]
	mov	QWORD PTR -176[rbp], rax
	mov	rax, QWORD PTR -200[rbp]
	mov	QWORD PTR -168[rbp], rax
	mov	rax, QWORD PTR -168[rbp]
	cmp	rax, QWORD PTR -176[rbp]
	jne	.L32
	lea	rax, .LC9[rip]
	mov	QWORD PTR -160[rbp], rax
	mov	rax, QWORD PTR -160[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	printf@PLT
.L32:
	lea	rax, .LC10[rip]
	mov	QWORD PTR -152[rbp], rax
	mov	QWORD PTR -144[rbp], 0
	lea	rdx, -19[rbp]
	mov	rax, QWORD PTR -144[rbp]
	add	rax, rdx
	mov	QWORD PTR -136[rbp], rax
	mov	rax, QWORD PTR -136[rbp]
	mov	QWORD PTR -128[rbp], rax
	mov	rdx, QWORD PTR -128[rbp]
	mov	rax, QWORD PTR -152[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	mov	eax, 0
	call	printf@PLT
	lea	rax, .LC11[rip]
	mov	QWORD PTR -120[rbp], rax
	mov	QWORD PTR -112[rbp], 0
	lea	rdx, -19[rbp]
	mov	rax, QWORD PTR -112[rbp]
	add	rax, rdx
	mov	QWORD PTR -104[rbp], rax
	mov	rax, QWORD PTR -104[rbp]
	mov	QWORD PTR -96[rbp], rax
	mov	rdx, QWORD PTR -96[rbp]
	mov	rax, QWORD PTR -120[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	mov	eax, 0
	call	printf@PLT
	mov	QWORD PTR -88[rbp], 0
	lea	rdx, -19[rbp]
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	QWORD PTR -80[rbp], rax
	mov	rax, QWORD PTR -80[rbp]
	mov	QWORD PTR -72[rbp], rax
	mov	rax, QWORD PTR -72[rbp]
	mov	QWORD PTR -64[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -56[rbp], rax
	lea	rax, .LC12[rip]
	mov	QWORD PTR -48[rbp], rax
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	esi, 10
	mov	rdi, rax
	mov	eax, 0
	call	printf@PLT
	lea	rax, .LC13[rip]
	mov	QWORD PTR -40[rbp], rax
	mov	edx, DWORD PTR -236[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, edx
	mov	rdi, rax
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -236[rbp], 7
	je	.L36
	lea	rax, .LC14[rip]
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	printf@PLT
	nop
.L36:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L35
	call	__stack_chk_fail@PLT
.L35:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	pwd, .-pwd
	.section	.rodata
.LC15:
	.string	"pathfile"
.LC16:
	.string	"r"
.LC17:
	.string	"orig_path = %s\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB4:
	.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, .LC15[rip]
	mov	QWORD PTR -168[rbp], rax
	lea	rax, .LC16[rip]
	mov	QWORD PTR -160[rbp], rax
	mov	rdx, QWORD PTR -160[rbp]
	mov	rax, QWORD PTR -168[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -152[rbp], rax
	mov	QWORD PTR -144[rbp], 0
	lea	rdx, -48[rbp]
	mov	rax, QWORD PTR -144[rbp]
	add	rax, rdx
	mov	QWORD PTR -136[rbp], rax
	mov	rax, QWORD PTR -136[rbp]
	mov	QWORD PTR -128[rbp], rax
	mov	rax, QWORD PTR -128[rbp]
	mov	QWORD PTR -120[rbp], rax
	mov	rax, QWORD PTR -152[rbp]
	mov	QWORD PTR -112[rbp], rax
	mov	rdx, QWORD PTR -112[rbp]
	mov	rax, QWORD PTR -120[rbp]
	mov	esi, 30
	mov	rdi, rax
	call	fgets@PLT
	mov	rax, QWORD PTR -152[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rax, .LC17[rip]
	mov	QWORD PTR -104[rbp], rax
	mov	QWORD PTR -96[rbp], 0
	lea	rdx, -48[rbp]
	mov	rax, QWORD PTR -96[rbp]
	add	rax, rdx
	mov	QWORD PTR -88[rbp], rax
	mov	rax, QWORD PTR -88[rbp]
	mov	QWORD PTR -80[rbp], rax
	mov	rdx, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR -104[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	mov	eax, 0
	call	printf@PLT
	mov	QWORD PTR -72[rbp], 0
	lea	rdx, -48[rbp]
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	mov	QWORD PTR -64[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	mapping_chdir
	call	pwd
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L39
	call	__stack_chk_fail@PLT
.L39:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.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	"118718.c"
	.text
	.global	mapped_path
	.data
	.align	2
	.type	mapped_path, %object
	.size	mapped_path, 10
mapped_path:
	.ascii	"/\000\000\000\000\000\000\000\000\000"
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Copying at most %d chars into buffer path[] whose s"
	.ascii	"ize = %d\012\000"
	.text
	.align	2
	.global	mapping_getcwd
	.syntax unified
	.arm
	.fpu softvfp
	.type	mapping_getcwd, %function
mapping_getcwd:
	@ 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]
	str	r1, [fp, #-44]
	ldr	r3, .L3
	str	r3, [fp, #-36]
	mov	r2, #11
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-36]
	bl	printf
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-28]
	ldr	r2, .L3+4
	ldr	r3, [fp, #-28]
	add	r3, r3, r2
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-16]
	ldr	r2, [fp, #-44]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-32]
	bl	strncpy
	ldr	r3, [fp, #-44]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-40]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	.LC0
	.word	mapped_path
	.size	mapping_getcwd, .-mapping_getcwd
	.comm	pathspace,10,4
	.comm	old_mapped_path,10,4
	.section	.rodata
	.align	2
.LC1:
	.ascii	"/\000"
	.text
	.align	2
	.global	do_elem
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_elem, %function
do_elem:
	@ args = 0, pretend = 0, frame = 240
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #240
	str	r0, [fp, #-240]
	ldr	r3, [fp, #-240]
	str	r3, [fp, #-220]
	ldr	r3, [fp, #-220]
	ldrb	r3, [r3]
	strb	r3, [fp, #-231]
	ldrb	r3, [fp, #-231]	@ zero_extendqisi2
	str	r3, [fp, #-216]
	ldr	r3, [fp, #-216]
	cmp	r3, #46
	bne	.L6
	ldr	r3, [fp, #-240]
	add	r3, r3, #1
	str	r3, [fp, #-212]
	ldr	r3, [fp, #-212]
	ldrb	r3, [r3]
	strb	r3, [fp, #-230]
	ldrb	r3, [fp, #-230]	@ zero_extendqisi2
	str	r3, [fp, #-208]
	ldr	r3, [fp, #-208]
	cmp	r3, #0
	beq	.L14
.L6:
	ldr	r3, [fp, #-240]
	str	r3, [fp, #-204]
	ldr	r3, [fp, #-204]
	ldrb	r3, [r3]
	strb	r3, [fp, #-229]
	ldrb	r3, [fp, #-229]	@ zero_extendqisi2
	str	r3, [fp, #-200]
	ldr	r3, [fp, #-200]
	cmp	r3, #46
	bne	.L8
	ldr	r3, [fp, #-240]
	add	r3, r3, #1
	str	r3, [fp, #-196]
	ldr	r3, [fp, #-196]
	ldrb	r3, [r3]
	strb	r3, [fp, #-228]
	ldrb	r3, [fp, #-228]	@ zero_extendqisi2
	str	r3, [fp, #-192]
	ldr	r3, [fp, #-192]
	cmp	r3, #46
	bne	.L8
	ldr	r3, [fp, #-240]
	add	r3, r3, #2
	str	r3, [fp, #-188]
	ldr	r3, [fp, #-188]
	ldrb	r3, [r3]
	strb	r3, [fp, #-227]
	ldrb	r3, [fp, #-227]	@ zero_extendqisi2
	str	r3, [fp, #-184]
	ldr	r3, [fp, #-184]
	cmp	r3, #0
	bne	.L8
	mov	r3, #0
	str	r3, [fp, #-180]
	ldr	r2, .L18
	ldr	r3, [fp, #-180]
	add	r3, r3, r2
	str	r3, [fp, #-176]
	ldr	r3, [fp, #-176]
	str	r3, [fp, #-172]
	ldr	r3, [fp, #-172]
	str	r3, [fp, #-168]
	mov	r1, #47
	ldr	r0, [fp, #-168]
	bl	strrchr
	str	r0, [fp, #-224]
	ldr	r3, [fp, #-224]
	cmp	r3, #0
	beq	.L15
	mov	r3, #0
	str	r3, [fp, #-164]
	ldr	r2, .L18
	ldr	r3, [fp, #-164]
	add	r3, r3, r2
	str	r3, [fp, #-160]
	ldr	r3, [fp, #-160]
	str	r3, [fp, #-156]
	ldr	r3, [fp, #-156]
	str	r3, [fp, #-152]
	ldr	r3, [fp, #-224]
	str	r3, [fp, #-148]
	ldr	r2, [fp, #-148]
	ldr	r3, [fp, #-152]
	cmp	r2, r3
	bne	.L10
	ldr	r3, [fp, #-224]
	add	r3, r3, #1
	str	r3, [fp, #-224]
.L10:
	ldr	r3, [fp, #-224]
	mov	r2, #0
	strb	r2, [r3]
	b	.L15
.L8:
	mov	r3, #0
	str	r3, [fp, #-144]
	ldr	r2, .L18
	ldr	r3, [fp, #-144]
	add	r3, r3, r2
	str	r3, [fp, #-140]
	ldr	r3, [fp, #-140]
	ldrb	r3, [r3]
	strb	r3, [fp, #-226]
	ldrb	r3, [fp, #-226]	@ zero_extendqisi2
	str	r3, [fp, #-136]
	ldr	r3, [fp, #-136]
	cmp	r3, #47
	bne	.L16
	mov	r3, #1
	str	r3, [fp, #-132]
	ldr	r2, .L18
	ldr	r3, [fp, #-132]
	add	r3, r3, r2
	str	r3, [fp, #-128]
	ldr	r3, [fp, #-128]
	ldrb	r3, [r3]
	strb	r3, [fp, #-225]
	ldrb	r3, [fp, #-225]	@ zero_extendqisi2
	str	r3, [fp, #-124]
	ldr	r3, [fp, #-124]
	cmp	r3, #0
	beq	.L12
	b	.L11
.L16:
	nop
.L11:
	mov	r3, #0
	str	r3, [fp, #-120]
	ldr	r2, .L18
	ldr	r3, [fp, #-120]
	add	r3, r3, r2
	str	r3, [fp, #-116]
	ldr	r3, [fp, #-116]
	str	r3, [fp, #-112]
	ldr	r3, [fp, #-112]
	str	r3, [fp, #-108]
	ldr	r0, [fp, #-108]
	bl	strlen
	str	r0, [fp, #-104]
	mov	r3, #9
	str	r3, [fp, #-100]
	ldr	r2, [fp, #-104]
	ldr	r3, [fp, #-100]
	cmp	r2, r3
	bcs	.L12
	mov	r3, #0
	str	r3, [fp, #-96]
	ldr	r2, .L18
	ldr	r3, [fp, #-96]
	add	r3, r3, r2
	str	r3, [fp, #-92]
	ldr	r3, [fp, #-92]
	str	r3, [fp, #-88]
	ldr	r3, [fp, #-88]
	str	r3, [fp, #-84]
	ldr	r3, .L18+4
	str	r3, [fp, #-80]
	ldr	r1, [fp, #-80]
	ldr	r0, [fp, #-84]
	bl	strcat
.L12:
	mov	r3, #0
	str	r3, [fp, #-76]
	ldr	r2, .L18
	ldr	r3, [fp, #-76]
	add	r3, r3, r2
	str	r3, [fp, #-72]
	ldr	r3, [fp, #-72]
	str	r3, [fp, #-68]
	ldr	r3, [fp, #-68]
	str	r3, [fp, #-64]
	ldr	r0, [fp, #-64]
	bl	strlen
	str	r0, [fp, #-60]
	ldr	r3, [fp, #-60]
	rsb	r3, r3, #10
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-56]
	cmp	r3, #1
	bls	.L17
	mov	r3, #0
	str	r3, [fp, #-52]
	ldr	r2, .L18
	ldr	r3, [fp, #-52]
	add	r3, r3, r2
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-40]
	ldr	r0, [fp, #-40]
	bl	strlen
	str	r0, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-32]
	ldr	r2, .L18
	ldr	r3, [fp, #-32]
	add	r3, r3, r2
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-240]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-36]
	rsb	r3, r3, #10
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-20]
	bl	strncat
	b	.L17
.L14:
	nop
	b	.L5
.L15:
	nop
	b	.L5
.L17:
	nop
.L5:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	mapped_path
	.word	.LC1
	.size	do_elem, .-do_elem
	.section	.rodata
	.align	2
.LC2:
	.ascii	"strlen(path) = %d \011 path=%s\012\000"
	.align	2
.LC3:
	.ascii	"strlen(orig_path) = %d \011 orig_path=%s\012\000"
	.align	2
.LC4:
	.ascii	"path = %s.. calling do_elem\012\000"
	.align	2
.LC5:
	.ascii	"mapped_path = %s\012\000"
	.align	2
.LC6:
	.ascii	"ALERT: mapped_path[MAXPATHLEN] has been overflowed!"
	.ascii	"\012\000"
	.align	2
.LC7:
	.ascii	"couldn't chdir to %s !\012\000"
	.align	2
.LC8:
	.ascii	"mapped_path changed to %s\012\000"
	.text
	.align	2
	.global	mapping_chdir
	.syntax unified
	.arm
	.fpu softvfp
	.type	mapping_chdir, %function
mapping_chdir:
	@ args = 0, pretend = 0, frame = 264
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #264
	str	r0, [fp, #-264]
	mov	r3, #0
	str	r3, [fp, #-252]
	ldr	r2, .L35
	ldr	r3, [fp, #-252]
	add	r3, r3, r2
	str	r3, [fp, #-248]
	ldr	r3, [fp, #-248]
	str	r3, [fp, #-244]
	ldr	r3, [fp, #-244]
	str	r3, [fp, #-240]
	mov	r3, #0
	str	r3, [fp, #-236]
	ldr	r2, .L35+4
	ldr	r3, [fp, #-236]
	add	r3, r3, r2
	str	r3, [fp, #-232]
	ldr	r3, [fp, #-232]
	str	r3, [fp, #-228]
	ldr	r3, [fp, #-228]
	str	r3, [fp, #-224]
	ldr	r1, [fp, #-224]
	ldr	r0, [fp, #-240]
	bl	strcpy
	mov	r3, #0
	str	r3, [fp, #-220]
	ldr	r2, .L35+8
	ldr	r3, [fp, #-220]
	add	r3, r3, r2
	str	r3, [fp, #-216]
	ldr	r3, [fp, #-216]
	str	r3, [fp, #-256]
	ldr	r3, [fp, #-256]
	str	r3, [fp, #-212]
	ldr	r0, [fp, #-212]
	bl	strlen
	str	r0, [fp, #-208]
	ldr	r3, .L35+12
	str	r3, [fp, #-204]
	ldr	r2, [fp, #-256]
	ldr	r1, [fp, #-208]
	ldr	r0, [fp, #-204]
	bl	printf
	ldr	r3, [fp, #-264]
	str	r3, [fp, #-200]
	ldr	r0, [fp, #-200]
	bl	strlen
	str	r0, [fp, #-196]
	ldr	r3, .L35+16
	str	r3, [fp, #-192]
	ldr	r2, [fp, #-264]
	ldr	r1, [fp, #-196]
	ldr	r0, [fp, #-192]
	bl	printf
	ldr	r3, [fp, #-256]
	str	r3, [fp, #-188]
	ldr	r0, [fp, #-188]
	bl	strlen
	str	r0, [fp, #-184]
	ldr	r3, [fp, #-184]
	cmp	r3, #0
	beq	.L21
	ldr	r3, [fp, #-256]
	str	r3, [fp, #-180]
	ldr	r3, [fp, #-264]
	str	r3, [fp, #-176]
	ldr	r1, [fp, #-176]
	ldr	r0, [fp, #-180]
	bl	strcpy
.L21:
	ldr	r3, [fp, #-256]
	str	r3, [fp, #-172]
	ldr	r3, [fp, #-172]
	ldrb	r3, [r3]
	strb	r3, [fp, #-258]
	ldrb	r3, [fp, #-258]	@ zero_extendqisi2
	str	r3, [fp, #-168]
	ldr	r3, [fp, #-168]
	cmp	r3, #47
	bne	.L32
	mov	r3, #0
	str	r3, [fp, #-164]
	ldr	r2, .L35+4
	ldr	r3, [fp, #-164]
	add	r3, r3, r2
	str	r3, [fp, #-160]
	ldr	r3, [fp, #-160]
	mov	r2, #47
	strb	r2, [r3]
	mov	r3, #1
	str	r3, [fp, #-156]
	ldr	r2, .L35+4
	ldr	r3, [fp, #-156]
	add	r3, r3, r2
	str	r3, [fp, #-152]
	ldr	r3, [fp, #-152]
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-256]
	add	r3, r3, #1
	str	r3, [fp, #-256]
	b	.L27
.L32:
	nop
.L22:
.L27:
	ldr	r3, [fp, #-256]
	str	r3, [fp, #-148]
	mov	r1, #47
	ldr	r0, [fp, #-148]
	bl	strchr
	str	r0, [fp, #-144]
	ldr	r3, [fp, #-144]
	cmp	r3, #0
	beq	.L33
	ldr	r3, [fp, #-256]
	str	r3, [fp, #-140]
	ldr	r3, [fp, #-144]
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-144]
	add	r3, r3, #1
	str	r3, [fp, #-256]
	ldr	r3, [fp, #-140]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L25
	ldr	r0, [fp, #-140]
	bl	do_elem
.L25:
	ldr	r3, [fp, #-256]
	ldrb	r3, [r3]
	strb	r3, [fp, #-257]
	ldrb	r3, [fp, #-257]	@ zero_extendqisi2
	str	r3, [fp, #-136]
	ldr	r3, [fp, #-136]
	cmp	r3, #0
	beq	.L34
	b	.L27
.L33:
	nop
	b	.L24
.L34:
	nop
.L24:
	ldr	r3, [fp, #-256]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L28
	ldr	r3, .L35+20
	str	r3, [fp, #-132]
	ldr	r1, [fp, #-256]
	ldr	r0, [fp, #-132]
	bl	printf
	ldr	r0, [fp, #-256]
	bl	do_elem
.L28:
	ldr	r3, .L35+24
	str	r3, [fp, #-128]
	mov	r3, #0
	str	r3, [fp, #-124]
	ldr	r2, .L35+4
	ldr	r3, [fp, #-124]
	add	r3, r3, r2
	str	r3, [fp, #-120]
	ldr	r3, [fp, #-120]
	str	r3, [fp, #-116]
	ldr	r1, [fp, #-116]
	ldr	r0, [fp, #-128]
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-112]
	ldr	r2, .L35+4
	ldr	r3, [fp, #-112]
	add	r3, r3, r2
	str	r3, [fp, #-108]
	ldr	r3, [fp, #-108]
	str	r3, [fp, #-104]
	ldr	r3, [fp, #-104]
	str	r3, [fp, #-100]
	ldr	r0, [fp, #-100]
	bl	strlen
	str	r0, [fp, #-96]
	ldr	r3, [fp, #-96]
	cmp	r3, #9
	bls	.L29
	ldr	r3, .L35+28
	str	r3, [fp, #-92]
	ldr	r0, [fp, #-92]
	bl	printf
.L29:
	mov	r3, #0
	str	r3, [fp, #-88]
	ldr	r2, .L35+4
	ldr	r3, [fp, #-88]
	add	r3, r3, r2
	str	r3, [fp, #-84]
	ldr	r3, [fp, #-84]
	str	r3, [fp, #-80]
	ldr	r3, [fp, #-80]
	str	r3, [fp, #-76]
	ldr	r0, [fp, #-76]
	bl	chdir
	str	r0, [fp, #-72]
	ldr	r3, [fp, #-72]
	cmp	r3, #0
	bge	.L30
	ldr	r3, .L35+32
	str	r3, [fp, #-68]
	mov	r3, #0
	str	r3, [fp, #-64]
	ldr	r2, .L35+4
	ldr	r3, [fp, #-64]
	add	r3, r3, r2
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-60]
	str	r3, [fp, #-56]
	ldr	r1, [fp, #-56]
	ldr	r0, [fp, #-68]
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-52]
	ldr	r2, .L35+4
	ldr	r3, [fp, #-52]
	add	r3, r3, r2
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-36]
	ldr	r2, .L35
	ldr	r3, [fp, #-36]
	add	r3, r3, r2
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-40]
	bl	strcpy
	ldr	r3, .L35+36
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r2, .L35+4
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-8]
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-20]
	bl	printf
.L30:
	ldr	r3, [fp, #-72]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L36:
	.align	2
.L35:
	.word	old_mapped_path
	.word	mapped_path
	.word	pathspace
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	mapping_chdir, .-mapping_chdir
	.section	.rodata
	.align	2
.LC9:
	.ascii	"wu-ftpd: Illegal path supplied!\012\000"
	.align	2
.LC10:
	.ascii	"path = %s\012\000"
	.align	2
.LC11:
	.ascii	"Current directory = %s\012\000"
	.align	2
.LC12:
	.ascii	"max len of path is %d, strlen(path) = %d\012\000"
	.align	2
.LC13:
	.ascii	"Canary should be 7.  Canary = %d\012\000"
	.align	2
.LC14:
	.ascii	"ALERT: path[MAXPATHLEN + 1] has been overflowed!\012"
	.ascii	"\000"
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	pwd
	.syntax unified
	.arm
	.fpu softvfp
	.type	pwd, %function
pwd:
	@ args = 0, pretend = 0, frame = 128
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #128
	ldr	r3, .L43
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #7
	str	r3, [fp, #-128]
	mov	r3, #0
	str	r3, [fp, #-124]
	sub	r3, fp, #20
	ldr	r2, [fp, #-124]
	add	r3, r2, r3
	str	r3, [fp, #-120]
	ldr	r3, [fp, #-120]
	str	r3, [fp, #-116]
	mov	r3, #10
	str	r3, [fp, #-112]
	ldr	r1, [fp, #-112]
	ldr	r0, [fp, #-116]
	bl	mapping_getcwd
	str	r0, [fp, #-108]
	mov	r3, #0
	str	r3, [fp, #-104]
	ldr	r3, [fp, #-104]
	str	r3, [fp, #-100]
	ldr	r3, [fp, #-100]
	str	r3, [fp, #-96]
	ldr	r3, [fp, #-108]
	str	r3, [fp, #-92]
	ldr	r2, [fp, #-92]
	ldr	r3, [fp, #-96]
	cmp	r2, r3
	bne	.L38
	ldr	r3, .L43+4
	str	r3, [fp, #-88]
	ldr	r0, [fp, #-88]
	bl	printf
.L38:
	ldr	r3, .L43+8
	str	r3, [fp, #-84]
	mov	r3, #0
	str	r3, [fp, #-80]
	sub	r3, fp, #20
	ldr	r2, [fp, #-80]
	add	r3, r2, r3
	str	r3, [fp, #-76]
	ldr	r3, [fp, #-76]
	str	r3, [fp, #-72]
	ldr	r1, [fp, #-72]
	ldr	r0, [fp, #-84]
	bl	printf
	ldr	r3, .L43+12
	str	r3, [fp, #-68]
	mov	r3, #0
	str	r3, [fp, #-64]
	sub	r3, fp, #20
	ldr	r2, [fp, #-64]
	add	r3, r2, r3
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-60]
	str	r3, [fp, #-56]
	ldr	r1, [fp, #-56]
	ldr	r0, [fp, #-68]
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-52]
	sub	r3, fp, #20
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-40]
	ldr	r0, [fp, #-40]
	bl	strlen
	str	r0, [fp, #-36]
	ldr	r3, .L43+16
	str	r3, [fp, #-32]
	ldr	r2, [fp, #-36]
	mov	r1, #10
	ldr	r0, [fp, #-32]
	bl	printf
	ldr	r3, .L43+20
	str	r3, [fp, #-28]
	ldr	r1, [fp, #-128]
	ldr	r0, [fp, #-28]
	bl	printf
	ldr	r3, [fp, #-128]
	cmp	r3, #7
	beq	.L42
	ldr	r3, .L43+24
	str	r3, [fp, #-24]
	ldr	r0, [fp, #-24]
	bl	printf
	nop
.L42:
	nop
	ldr	r3, .L43
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L41
	bl	__stack_chk_fail
.L41:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L44:
	.align	2
.L43:
	.word	.LC15
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.size	pwd, .-pwd
	.section	.rodata
	.align	2
.LC16:
	.ascii	"pathfile\000"
	.align	2
.LC17:
	.ascii	"r\000"
	.align	2
.LC18:
	.ascii	"orig_path = %s\012\000"
	.align	2
.LC19:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 104
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #104
	str	r0, [fp, #-104]
	str	r1, [fp, #-108]
	ldr	r3, .L48
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L48+4
	str	r3, [fp, #-100]
	ldr	r3, .L48+8
	str	r3, [fp, #-96]
	ldr	r1, [fp, #-96]
	ldr	r0, [fp, #-100]
	bl	fopen
	str	r0, [fp, #-92]
	mov	r3, #0
	str	r3, [fp, #-88]
	sub	r3, fp, #40
	ldr	r2, [fp, #-88]
	add	r3, r2, r3
	str	r3, [fp, #-84]
	ldr	r3, [fp, #-84]
	str	r3, [fp, #-80]
	ldr	r3, [fp, #-80]
	str	r3, [fp, #-76]
	ldr	r3, [fp, #-92]
	str	r3, [fp, #-72]
	ldr	r2, [fp, #-72]
	mov	r1, #30
	ldr	r0, [fp, #-76]
	bl	fgets
	ldr	r0, [fp, #-92]
	bl	fclose
	ldr	r3, .L48+12
	str	r3, [fp, #-68]
	mov	r3, #0
	str	r3, [fp, #-64]
	sub	r3, fp, #40
	ldr	r2, [fp, #-64]
	add	r3, r2, r3
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-60]
	str	r3, [fp, #-56]
	ldr	r1, [fp, #-56]
	ldr	r0, [fp, #-68]
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-52]
	sub	r3, fp, #40
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-44]
	ldr	r0, [fp, #-44]
	bl	mapping_chdir
	bl	pwd
	mov	r3, #0
	ldr	r2, .L48
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L47
	bl	__stack_chk_fail
.L47:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L49:
	.align	2
.L48:
	.word	.LC19
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
