	.file	"1212843.c"
	.intel_syntax noprefix
	.text
	.globl	g_path
	.bss
	.align 32
	.type	g_path, @object
	.size	g_path, 255
g_path:
	.zero	255
	.section	.rodata
.LC0:
	.string	"Error: Socket Create Failed"
.LC1:
	.string	"Created a socket successfully"
.LC2:
	.string	"Error: Socket Bind Failed"
.LC3:
	.string	"Binded socket successfully"
.LC4:
	.string	"Error: Listen Failed "
.LC5:
	.string	"Server Listening"
	.text
	.globl	initServer
	.type	initServer, @function
initServer:
.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, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	jns	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, -1
	jmp	.L6
.L2:
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rax, -32[rbp]
	mov	QWORD PTR [rax], 0
	mov	QWORD PTR 8[rax], 0
	mov	WORD PTR -32[rbp], 2
	mov	edi, 0
	call	htonl@PLT
	mov	DWORD PTR -28[rbp], eax
	mov	edi, 40714
	call	htons@PLT
	mov	WORD PTR -30[rbp], ax
	lea	rcx, -32[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	jns	.L4
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, -1
	jmp	.L6
.L4:
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, 5
	mov	edi, eax
	call	listen@PLT
	test	eax, eax
	jns	.L5
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L6
.L5:
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -36[rbp]
.L6:
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	initServer, .-initServer
	.section	.rodata
.LC6:
	.string	"a"
.LC7:
	.string	"log.txt"
.LC8:
	.string	"%s\n"
	.text
	.globl	logger
	.type	logger, @function
logger:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	lea	rsi, .LC6[rip]
	lea	rdi, .LC7[rip]
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L10
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L10:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	logger, .-logger
	.globl	claimZombies
	.type	claimZombies, @function
claimZombies:
.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, 16
	jmp	.L12
.L13:
	mov	edx, 1
	mov	esi, 0
	mov	edi, 0
	call	waitpid@PLT
	mov	DWORD PTR -4[rbp], eax
.L12:
	cmp	DWORD PTR -4[rbp], 0
	jg	.L13
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	claimZombies, .-claimZombies
	.globl	initDaemon
	.type	initDaemon, @function
initDaemon:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 176
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	call	fork@PLT
	mov	DWORD PTR -164[rbp], eax
	cmp	DWORD PTR -164[rbp], 0
	jns	.L15
	mov	edi, 1
	call	exit@PLT
.L15:
	cmp	DWORD PTR -164[rbp], 0
	je	.L16
	mov	edi, 0
	call	exit@PLT
.L16:
	call	setsid@PLT
	mov	edi, 0
	call	umask@PLT
	lea	rax, claimZombies[rip]
	mov	QWORD PTR -160[rbp], rax
	lea	rax, -160[rbp]
	add	rax, 8
	mov	rdi, rax
	call	sigemptyset@PLT
	mov	DWORD PTR -24[rbp], 1
	lea	rax, -160[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 17
	call	sigaction@PLT
	test	eax, eax
	je	.L19
	mov	edi, 1
	call	exit@PLT
.L19:
	nop
	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
.LFE9:
	.size	initDaemon, .-initDaemon
	.section	.rodata
	.align 8
.LC9:
	.string	"server[%d]: received command pwd\n"
.LC10:
	.string	"%li"
	.align 8
.LC11:
	.string	"server[%d]: completed. %d bytes sent out\n"
	.align 8
.LC12:
	.string	"server[%d]: received command dir\n"
.LC13:
	.string	"ls>temp.txt"
.LC14:
	.string	"temp.txt"
.LC15:
	.string	"reading dir"
	.align 8
.LC16:
	.string	"server[%d]: %d bytes sent out, %s\n"
	.align 8
.LC17:
	.string	"server[%d]: received command cd \n"
.LC18:
	.string	"dir error"
	.align 8
.LC19:
	.string	"server[%d]: received command get \n"
.LC20:
	.string	"get"
.LC21:
	.string	"%i"
	.align 8
.LC22:
	.string	"server[%d]: cannot open the file"
.LC23:
	.string	"%s"
.LC24:
	.string	"%lli"
.LC25:
	.string	"server[%d]: %d bytes sent"
.LC26:
	.string	"get finished"
.LC27:
	.string	"server[%d]: get completed\n"
	.align 8
.LC28:
	.string	"server[%d]: received command put \n"
	.align 8
.LC29:
	.string	"server[%d]: cannot create a file \n"
.LC30:
	.string	"server get"
.LC31:
	.string	"server[%d]: %d bytes received"
.LC32:
	.string	"put finished"
.LC33:
	.string	"server[%d]: put completed\n"
	.text
	.globl	serveClient
	.type	serveClient, @function
serveClient:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r12
	push	rbx
	lea	r11, -262144[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 2400
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	mov	DWORD PTR -264516[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -264496[rbp], 0
	mov	QWORD PTR -264456[rbp], 0
	mov	esi, 1
	mov	edi, 1024
	call	calloc@PLT
	mov	QWORD PTR -264448[rbp], rax
	mov	DWORD PTR -264488[rbp], 0
	jmp	.L21
.L48:
	mov	esi, 255
	lea	rdi, g_path[rip]
	call	getcwd@PLT
	lea	rcx, -264224[rbp]
	mov	eax, DWORD PTR -264516[rbp]
	mov	edx, 1024
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -264484[rbp], eax
	cmp	DWORD PTR -264484[rbp], 0
	jg	.L22
	mov	edi, 0
	call	exit@PLT
.L22:
	movzx	eax, BYTE PTR -264224[rbp]
	cmp	al, 48
	jne	.L23
	mov	edx, DWORD PTR -264496[rbp]
	lea	rax, -263472[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -263472[rbp]
	mov	rdi, rax
	call	logger
	lea	rax, -263696[rbp]
	mov	edx, 255
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rcx, -263696[rbp]
	mov	eax, DWORD PTR -264516[rbp]
	mov	edx, 100
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR -264516[rbp]
	mov	edx, 255
	lea	rsi, g_path[rip]
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -264492[rbp], eax
	mov	ecx, DWORD PTR -264492[rbp]
	mov	edx, DWORD PTR -264496[rbp]
	lea	rax, -263472[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -263472[rbp]
	mov	rdi, rax
	call	logger
	jmp	.L21
.L23:
	movzx	eax, BYTE PTR -264224[rbp]
	cmp	al, 50
	jne	.L24
	mov	rax, rsp
	mov	r12, rax
	mov	edx, DWORD PTR -264496[rbp]
	lea	rax, -263472[rbp]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -263472[rbp]
	mov	rdi, rax
	call	logger
	lea	rdi, .LC13[rip]
	call	system@PLT
	lea	rax, -264368[rbp]
	mov	rsi, rax
	lea	rdi, .LC14[rip]
	call	stat@PLT
	mov	rax, QWORD PTR -264320[rbp]
	mov	QWORD PTR -264456[rbp], rax
	mov	rbx, QWORD PTR -264456[rbp]
	lea	rax, -1[rbx]
	mov	QWORD PTR -264416[rbp], rax
	mov	rax, rbx
	mov	r14, rax
	mov	r15d, 0
	mov	rax, rbx
	mov	QWORD PTR -264544[rbp], rax
	mov	QWORD PTR -264536[rbp], 0
	mov	rdx, rbx
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L25:
	cmp	rsp, rdx
	je	.L26
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L25
.L26:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L27
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L27:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -264408[rbp], rax
	mov	esi, 0
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -264472[rbp], eax
	cmp	DWORD PTR -264472[rbp], 0
	jns	.L28
	lea	rdi, .LC15[rip]
	call	perror@PLT
	mov	BYTE PTR -264400[rbp], 50
	mov	DWORD PTR -264392[rbp], 1
	jmp	.L29
.L28:
	mov	rdx, QWORD PTR -264456[rbp]
	mov	rcx, QWORD PTR -264408[rbp]
	mov	eax, DWORD PTR -264472[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -264488[rbp], eax
	mov	rdx, QWORD PTR -264456[rbp]
	lea	rax, -263696[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rcx, -263696[rbp]
	mov	eax, DWORD PTR -264516[rbp]
	mov	edx, 100
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	rdx, rbx
	mov	rcx, QWORD PTR -264408[rbp]
	mov	eax, DWORD PTR -264516[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -264492[rbp], eax
	mov	rcx, QWORD PTR -264408[rbp]
	mov	edx, DWORD PTR -264492[rbp]
	mov	eax, DWORD PTR -264496[rbp]
	mov	esi, eax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
.L29:
	mov	ecx, DWORD PTR -264492[rbp]
	mov	edx, DWORD PTR -264496[rbp]
	lea	rax, -263472[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -263472[rbp]
	mov	rdi, rax
	call	logger
	mov	rsp, r12
	jmp	.L21
.L24:
	movzx	eax, BYTE PTR -264224[rbp]
	cmp	al, 52
	jne	.L30
	mov	edx, DWORD PTR -264496[rbp]
	lea	rax, -263472[rbp]
	lea	rsi, .LC17[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -263472[rbp]
	mov	rdi, rax
	call	logger
	lea	rax, -264224[rbp]
	add	rax, 8
	mov	rdi, rax
	call	chdir@PLT
	test	eax, eax
	js	.L31
	mov	esi, 100
	lea	rdi, g_path[rip]
	call	getcwd@PLT
	mov	rdi, rax
	call	puts@PLT
	lea	rax, -263216[rbp]
	lea	rsi, g_path[rip]
	mov	rdi, rax
	call	strcpy@PLT
	mov	BYTE PTR -264400[rbp], 52
	mov	DWORD PTR -264392[rbp], 0
	mov	DWORD PTR -264396[rbp], 0
	jmp	.L32
.L31:
	lea	rdi, .LC18[rip]
	call	perror@PLT
	mov	BYTE PTR -264400[rbp], 52
	mov	DWORD PTR -264392[rbp], 1
.L32:
	lea	rcx, -264400[rbp]
	mov	eax, DWORD PTR -264516[rbp]
	mov	edx, 24
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -264492[rbp], eax
	mov	ecx, DWORD PTR -264492[rbp]
	mov	edx, DWORD PTR -264496[rbp]
	lea	rax, -263472[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -263472[rbp]
	mov	rdi, rax
	call	logger
	jmp	.L21
.L30:
	movzx	eax, BYTE PTR -264224[rbp]
	cmp	al, 54
	jne	.L33
	mov	edx, DWORD PTR -264496[rbp]
	lea	rax, -263472[rbp]
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -263472[rbp]
	mov	rdi, rax
	call	logger
	lea	rdi, g_path[rip]
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, g_path[rip]
	add	rax, rdx
	mov	WORD PTR [rax], 47
	lea	rax, g_path[rip]
	mov	QWORD PTR -264440[rbp], rax
	lea	rax, -264224[rbp]
	lea	rdx, 8[rax]
	mov	rax, QWORD PTR -264440[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	mov	QWORD PTR -264440[rbp], rax
	lea	rdx, -264368[rbp]
	mov	rax, QWORD PTR -264440[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	test	eax, eax
	jne	.L34
	mov	rax, QWORD PTR -264440[rbp]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -264472[rbp], eax
	cmp	DWORD PTR -264472[rbp], 0
	jns	.L35
	lea	rdi, .LC20[rip]
	call	perror@PLT
	mov	BYTE PTR -264400[rbp], 54
	mov	DWORD PTR -264392[rbp], 1
	lea	rax, -263584[rbp]
	mov	edx, 1
	lea	rsi, .LC21[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rcx, -263584[rbp]
	mov	eax, DWORD PTR -264516[rbp]
	mov	edx, 100
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	edx, DWORD PTR -264496[rbp]
	lea	rax, -263472[rbp]
	lea	rsi, .LC22[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -263472[rbp]
	mov	rdi, rax
	call	logger
	lea	rax, -263472[rbp]
	mov	rsi, rax
	lea	rdi, .LC23[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L36
.L35:
	mov	rax, rsp
	mov	rbx, rax
	mov	rax, QWORD PTR -264320[rbp]
	mov	QWORD PTR -264456[rbp], rax
	mov	rax, QWORD PTR -264456[rbp]
	lea	rdx, -1[rax]
	mov	QWORD PTR -264432[rbp], rdx
	mov	rdx, rax
	mov	QWORD PTR -264560[rbp], rdx
	mov	QWORD PTR -264552[rbp], 0
	mov	rdx, rax
	mov	QWORD PTR -264576[rbp], rdx
	mov	QWORD PTR -264568[rbp], 0
	mov	rdx, rax
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L37:
	cmp	rsp, rdx
	je	.L38
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L37
.L38:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L39
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L39:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -264424[rbp], rax
	mov	rdx, QWORD PTR -264456[rbp]
	mov	rcx, QWORD PTR -264424[rbp]
	mov	eax, DWORD PTR -264472[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -264468[rbp], eax
	mov	BYTE PTR -264400[rbp], 54
	mov	DWORD PTR -264392[rbp], 0
	mov	DWORD PTR -264396[rbp], 8
	mov	rax, QWORD PTR -264456[rbp]
	mov	QWORD PTR -264464[rbp], rax
	mov	rdx, QWORD PTR -264456[rbp]
	lea	rax, -263584[rbp]
	lea	rsi, .LC24[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rcx, -263584[rbp]
	mov	eax, DWORD PTR -264516[rbp]
	mov	edx, 100
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	jmp	.L40
.L41:
	mov	rdx, QWORD PTR -264456[rbp]
	mov	rcx, QWORD PTR -264424[rbp]
	mov	eax, DWORD PTR -264516[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -264492[rbp], eax
	mov	eax, DWORD PTR -264492[rbp]
	cdqe
	sub	QWORD PTR -264464[rbp], rax
	mov	ecx, DWORD PTR -264492[rbp]
	mov	edx, DWORD PTR -264496[rbp]
	lea	rax, -263472[rbp]
	lea	rsi, .LC25[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -263472[rbp]
	mov	rdi, rax
	call	logger
.L40:
	cmp	QWORD PTR -264464[rbp], 0
	jg	.L41
	mov	rsp, rbx
.L36:
	lea	rdi, .LC26[rip]
	call	puts@PLT
	jmp	.L42
.L34:
	lea	rdi, .LC20[rip]
	call	perror@PLT
	mov	BYTE PTR -264400[rbp], 54
	mov	DWORD PTR -264392[rbp], 2
	lea	rax, -263584[rbp]
	mov	edx, 2
	lea	rsi, .LC21[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rcx, -263584[rbp]
	mov	eax, DWORD PTR -264516[rbp]
	mov	edx, 100
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
.L42:
	mov	edx, DWORD PTR -264496[rbp]
	lea	rax, -263472[rbp]
	lea	rsi, .LC27[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -263472[rbp]
	mov	rdi, rax
	call	logger
	jmp	.L21
.L33:
	movzx	eax, BYTE PTR -264224[rbp]
	cmp	al, 55
	jne	.L21
	mov	edx, DWORD PTR -264496[rbp]
	lea	rax, -263472[rbp]
	lea	rsi, .LC28[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -263472[rbp]
	mov	rdi, rax
	call	logger
	lea	rdi, g_path[rip]
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, g_path[rip]
	add	rax, rdx
	mov	WORD PTR [rax], 47
	lea	rax, g_path[rip]
	mov	QWORD PTR -264440[rbp], rax
	lea	rax, -264224[rbp]
	lea	rdx, 8[rax]
	mov	rax, QWORD PTR -264440[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	mov	QWORD PTR -264440[rbp], rax
	lea	rdx, -264368[rbp]
	mov	rax, QWORD PTR -264440[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	test	eax, eax
	je	.L43
	mov	BYTE PTR -264400[rbp], 55
	mov	DWORD PTR -264392[rbp], 0
	lea	rcx, -264400[rbp]
	mov	eax, DWORD PTR -264516[rbp]
	mov	edx, 24
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	rax, QWORD PTR -264440[rbp]
	mov	edx, 420
	mov	esi, 577
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -264480[rbp], eax
	cmp	DWORD PTR -264480[rbp], 0
	jns	.L44
	mov	BYTE PTR -264400[rbp], 55
	mov	DWORD PTR -264392[rbp], 2
	lea	rcx, -264400[rbp]
	mov	eax, DWORD PTR -264516[rbp]
	mov	edx, 24
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	edx, DWORD PTR -264496[rbp]
	lea	rax, -263472[rbp]
	lea	rsi, .LC29[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -263472[rbp]
	mov	rdi, rax
	call	logger
	lea	rdi, .LC30[rip]
	call	perror@PLT
	jmp	.L45
.L44:
	lea	rcx, -263584[rbp]
	mov	eax, DWORD PTR -264516[rbp]
	mov	edx, 100
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	lea	rax, -263584[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -264500[rbp], eax
	jmp	.L46
.L47:
	lea	rcx, -262192[rbp]
	mov	eax, DWORD PTR -264516[rbp]
	mov	edx, 262144
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -264484[rbp], eax
	mov	eax, DWORD PTR -264484[rbp]
	movsx	rdx, eax
	lea	rcx, -262192[rbp]
	mov	eax, DWORD PTR -264480[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -264476[rbp], eax
	mov	eax, DWORD PTR -264484[rbp]
	sub	DWORD PTR -264500[rbp], eax
	mov	ecx, DWORD PTR -264484[rbp]
	mov	edx, DWORD PTR -264496[rbp]
	lea	rax, -263472[rbp]
	lea	rsi, .LC31[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -263472[rbp]
	mov	rdi, rax
	call	logger
.L46:
	cmp	DWORD PTR -264500[rbp], 0
	jg	.L47
.L45:
	lea	rdi, .LC32[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -264480[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edx, DWORD PTR -264496[rbp]
	lea	rax, -263472[rbp]
	lea	rsi, .LC33[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -263472[rbp]
	mov	rdi, rax
	call	logger
	jmp	.L21
.L43:
	mov	BYTE PTR -264400[rbp], 55
	mov	DWORD PTR -264392[rbp], 1
	lea	rcx, -264400[rbp]
	mov	eax, DWORD PTR -264516[rbp]
	mov	edx, 24
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
.L21:
	add	DWORD PTR -264496[rbp], 1
	cmp	DWORD PTR -264496[rbp], 0
	jne	.L48
	mov	eax, DWORD PTR -264516[rbp]
	mov	edi, eax
	call	close@PLT
	nop
	mov	rax, QWORD PTR -40[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L49
	call	__stack_chk_fail@PLT
.L49:
	lea	rsp, -32[rbp]
	pop	rbx
	pop	r12
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	serveClient, .-serveClient
	.section	.rodata
.LC34:
	.string	"\nStarting Daemon Server\n"
.LC35:
	.string	"Strating myftpd"
.LC36:
	.string	"fork"
.LC37:
	.string	"server: Serving a new client\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 160
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -148[rbp], 1
	mov	DWORD PTR -144[rbp], 16
	lea	rdi, .LC34[rip]
	call	logger
	lea	rdi, .LC35[rip]
	call	puts@PLT
	mov	eax, 0
	call	initServer
	mov	DWORD PTR -140[rbp], eax
.L54:
	mov	DWORD PTR -152[rbp], 16
	lea	rdx, -152[rbp]
	lea	rcx, -128[rbp]
	mov	eax, DWORD PTR -140[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -136[rbp], eax
	call	fork@PLT
	mov	DWORD PTR -132[rbp], eax
	cmp	DWORD PTR -132[rbp], 0
	jns	.L51
	lea	rdi, .LC36[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L51:
	cmp	DWORD PTR -132[rbp], 0
	jle	.L52
	mov	eax, DWORD PTR -136[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L53
.L52:
	mov	eax, DWORD PTR -140[rbp]
	mov	edi, eax
	call	close@PLT
	lea	rdi, .LC37[rip]
	call	logger
	mov	eax, DWORD PTR -136[rbp]
	mov	edi, eax
	call	serveClient
.L53:
	jmp	.L54
	.cfi_endproc
.LFE11:
	.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	"1212843.c"
	.text
	.comm	g_path,255,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Error: Socket Create Failed\000"
	.align	2
.LC1:
	.ascii	"Created a socket successfully\000"
	.align	2
.LC2:
	.ascii	"Error: Socket Bind Failed\000"
	.align	2
.LC3:
	.ascii	"Binded socket successfully\000"
	.align	2
.LC4:
	.ascii	"Error: Listen Failed \000"
	.align	2
.LC5:
	.ascii	"Server Listening\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	initServer
	.syntax unified
	.arm
	.fpu softvfp
	.type	initServer, %function
initServer:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bge	.L2
	ldr	r0, .L8+4
	bl	puts
	ldr	r0, [fp, #-28]
	bl	close
	mvn	r3, #0
	b	.L6
.L2:
	ldr	r0, .L8+8
	bl	puts
	sub	r3, fp, #24
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2]
	str	r3, [r2, #4]
	str	r3, [r2, #8]
	str	r3, [r2, #12]
	mov	r3, #2
	strh	r3, [fp, #-24]	@ movhi
	mov	r0, #0
	bl	htonl
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r0, .L8+12
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-22]	@ movhi
	sub	r3, fp, #24
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-28]
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	bge	.L4
	ldr	r0, .L8+16
	bl	puts
	ldr	r0, [fp, #-28]
	bl	close
	mvn	r3, #0
	b	.L6
.L4:
	ldr	r0, .L8+20
	bl	puts
	mov	r1, #5
	ldr	r0, [fp, #-28]
	bl	listen
	mov	r3, r0
	cmp	r3, #0
	bge	.L5
	ldr	r0, .L8+24
	bl	puts
	mvn	r3, #0
	b	.L6
.L5:
	ldr	r0, .L8+28
	bl	puts
	ldr	r3, [fp, #-28]
.L6:
	ldr	r2, .L8
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L7
	bl	__stack_chk_fail
.L7:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC6
	.word	.LC0
	.word	.LC1
	.word	40714
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	initServer, .-initServer
	.section	.rodata
	.align	2
.LC7:
	.ascii	"a\000"
	.align	2
.LC8:
	.ascii	"log.txt\000"
	.align	2
.LC9:
	.ascii	"%s\012\000"
	.text
	.align	2
	.global	logger
	.syntax unified
	.arm
	.fpu softvfp
	.type	logger, %function
logger:
	@ 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]
	ldr	r1, .L13
	ldr	r0, .L13+4
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L12
	ldr	r2, [fp, #-16]
	ldr	r1, .L13+8
	ldr	r0, [fp, #-8]
	bl	fprintf
	ldr	r0, [fp, #-8]
	bl	fclose
.L12:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	logger, .-logger
	.align	2
	.global	claimZombies
	.syntax unified
	.arm
	.fpu softvfp
	.type	claimZombies, %function
claimZombies:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	b	.L16
.L17:
	mov	r2, #1
	mov	r1, #0
	mov	r0, #0
	bl	waitpid
	str	r0, [fp, #-8]
.L16:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bgt	.L17
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	claimZombies, .-claimZombies
	.section	.rodata
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	initDaemon
	.syntax unified
	.arm
	.fpu softvfp
	.type	initDaemon, %function
initDaemon:
	@ args = 0, pretend = 0, frame = 152
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #152
	ldr	r3, .L24
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-152]
	ldr	r3, [fp, #-152]
	cmp	r3, #0
	bge	.L19
	mov	r0, #1
	bl	exit
.L19:
	ldr	r3, [fp, #-152]
	cmp	r3, #0
	beq	.L20
	mov	r0, #0
	bl	exit
.L20:
	bl	setsid
	mov	r0, #0
	bl	umask
	ldr	r3, .L24+4
	str	r3, [fp, #-148]
	sub	r3, fp, #148
	add	r3, r3, #4
	mov	r0, r3
	bl	sigemptyset
	mov	r3, #1
	str	r3, [fp, #-16]
	sub	r3, fp, #148
	mov	r2, #0
	mov	r1, r3
	mov	r0, #17
	bl	sigaction
	mov	r3, r0
	cmp	r3, #0
	beq	.L23
	mov	r0, #1
	bl	exit
.L23:
	nop
	ldr	r3, .L24
	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}
.L25:
	.align	2
.L24:
	.word	.LC10
	.word	claimZombies
	.size	initDaemon, .-initDaemon
	.section	.rodata
	.align	2
.LC11:
	.ascii	"server[%d]: received command pwd\012\000"
	.align	2
.LC12:
	.ascii	"%li\000"
	.align	2
.LC13:
	.ascii	"server[%d]: completed. %d bytes sent out\012\000"
	.align	2
.LC14:
	.ascii	"server[%d]: received command dir\012\000"
	.align	2
.LC15:
	.ascii	"ls>temp.txt\000"
	.align	2
.LC16:
	.ascii	"temp.txt\000"
	.align	2
.LC17:
	.ascii	"reading dir\000"
	.align	2
.LC18:
	.ascii	"server[%d]: %d bytes sent out, %s\012\000"
	.align	2
.LC19:
	.ascii	"server[%d]: received command cd \012\000"
	.align	2
.LC20:
	.ascii	"dir error\000"
	.align	2
.LC21:
	.ascii	"server[%d]: received command get \012\000"
	.align	2
.LC22:
	.ascii	"/\000"
	.align	2
.LC23:
	.ascii	"get\000"
	.align	2
.LC24:
	.ascii	"%i\000"
	.align	2
.LC25:
	.ascii	"server[%d]: cannot open the file\000"
	.align	2
.LC26:
	.ascii	"%s\000"
	.align	2
.LC27:
	.ascii	"%lli\000"
	.align	2
.LC28:
	.ascii	"server[%d]: %d bytes sent\000"
	.align	2
.LC29:
	.ascii	"get finished\000"
	.align	2
.LC30:
	.ascii	"server[%d]: get completed\012\000"
	.align	2
.LC31:
	.ascii	"server[%d]: received command put \012\000"
	.align	2
.LC32:
	.ascii	"server[%d]: cannot create a file \012\000"
	.align	2
.LC33:
	.ascii	"server get\000"
	.align	2
.LC34:
	.ascii	"server[%d]: %d bytes received\000"
	.align	2
.LC35:
	.ascii	"put finished\000"
	.align	2
.LC36:
	.ascii	"server[%d]: put completed\012\000"
	.align	2
.LC37:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	serveClient
	.syntax unified
	.arm
	.fpu softvfp
	.type	serveClient, %function
serveClient:
	@ args = 0, pretend = 0, frame = 264336
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #262144
	sub	sp, sp, #2192
	sub	sp, sp, #4
	sub	r3, fp, #262144
	sub	r3, r3, #20
	str	r0, [r3, #-2188]
	ldr	r3, .L50
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	sub	r3, fp, #262144
	sub	r3, r3, #20
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2172]
	sub	r3, fp, #262144
	sub	r3, r3, #20
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2164]
	sub	r3, fp, #262144
	sub	r3, r3, #20
	mov	r4, r3
	mov	r1, #1
	mov	r0, #1024
	bl	calloc
	mov	r3, r0
	str	r3, [r4, #-2160]
	sub	r3, fp, #262144
	sub	r3, r3, #20
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2156]
	b	.L27
.L48:
	mov	r1, #255
	ldr	r0, .L50+4
	bl	getcwd
	sub	r3, fp, #262144
	sub	r3, r3, #20
	mov	r4, r3
	ldr	r3, .L50+8
	sub	r2, fp, #20
	add	r3, r2, r3
	sub	r2, fp, #262144
	sub	r2, r2, #20
	mov	r0, r2
	mov	r2, #1024
	mov	r1, r3
	ldr	r0, [r0, #-2188]
	bl	read
	str	r0, [r4, #-2152]
	sub	r3, fp, #262144
	sub	r3, r3, #20
	ldr	r3, [r3, #-2152]
	cmp	r3, #0
	bgt	.L28
	mov	r0, #0
	bl	exit
.L28:
	sub	r3, fp, #262144
	sub	r3, r3, #20
	ldrb	r3, [r3, #-2004]	@ zero_extendqisi2
	cmp	r3, #48
	bne	.L29
	sub	r3, fp, #262144
	sub	r3, r3, #20
	mov	r2, r3
	ldr	r3, .L50+12
	sub	r1, fp, #20
	add	r3, r1, r3
	ldr	r2, [r2, #-2172]
	ldr	r1, .L50+16
	mov	r0, r3
	bl	sprintf
	ldr	r3, .L50+12
	sub	r2, fp, #20
	add	r3, r2, r3
	mov	r0, r3
	bl	logger
	ldr	r3, .L50+20
	sub	r2, fp, #20
	add	r3, r2, r3
	mov	r2, #255
	ldr	r1, .L50+24
	mov	r0, r3
	bl	sprintf
	ldr	r3, .L50+20
	sub	r2, fp, #20
	add	r3, r2, r3
	sub	r2, fp, #262144
	sub	r2, r2, #20
	mov	r0, r2
	mov	r2, #100
	mov	r1, r3
	ldr	r0, [r0, #-2188]
	bl	write
	sub	r3, fp, #262144
	sub	r3, r3, #20
	mov	r4, r3
	sub	r3, fp, #262144
	sub	r3, r3, #20
	mov	r2, #255
	ldr	r1, .L50+4
	ldr	r0, [r3, #-2188]
	bl	write
	str	r0, [r4, #-2168]
	sub	r3, fp, #262144
	sub	r3, r3, #20
	sub	r2, fp, #262144
	sub	r2, r2, #20
	ldr	r0, .L50+12
	sub	r1, fp, #20
	add	r0, r1, r0
	ldr	r3, [r3, #-2168]
	ldr	r2, [r2, #-2172]
	ldr	r1, .L50+28
	bl	sprintf
	ldr	r3, .L50+12
	sub	r2, fp, #20
	add	r3, r2, r3
	mov	r0, r3
	bl	logger
	b	.L27
.L29:
	sub	r3, fp, #262144
	sub	r3, r3, #20
	ldrb	r3, [r3, #-2004]	@ zero_extendqisi2
	cmp	r3, #50
	bne	.L30
	mov	r3, sp
	mov	r6, r3
	sub	r3, fp, #262144
	sub	r3, r3, #20
	mov	r2, r3
	ldr	r3, .L50+12
	sub	r1, fp, #20
	add	r3, r1, r3
	ldr	r2, [r2, #-2172]
	ldr	r1, .L50+32
	mov	r0, r3
	bl	sprintf
	ldr	r3, .L50+12
	sub	r2, fp, #20
	add	r3, r2, r3
	mov	r0, r3
	bl	logger
	ldr	r0, .L50+36
	bl	system
	sub	r3, fp, #262144
	sub	r3, r3, #20
	sub	r3, r3, #2096
	mov	r1, r3
	ldr	r0, .L50+40
	bl	stat
	sub	r3, fp, #262144
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #262144
	sub	r3, r3, #20
	ldr	r3, [r3, #-2052]
	str	r3, [r2, #-2164]
	sub	r3, fp, #262144
	sub	r3, r3, #20
	ldr	r4, [r3, #-2164]
	sub	r3, r4, #1
	sub	r2, fp, #262144
	sub	r2, r2, #20
	str	r3, [r2, #-2120]
	mov	r3, r4
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r3, r4
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r3, r4
	sub	r2, fp, #262144
	sub	r2, r2, #20
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #0
	str	r3, [r2, #-2116]
	sub	r3, fp, #262144
	sub	r3, r3, #20
	mov	r5, r3
	mov	r1, #0
	ldr	r0, .L50+40
	bl	open
	str	r0, [r5, #-2136]
	sub	r3, fp, #262144
	sub	r3, r3, #20
	ldr	r3, [r3, #-2136]
	cmp	r3, #0
	bge	.L31
	ldr	r0, .L50+44
	bl	perror
	sub	r3, fp, #262144
	sub	r3, r3, #20
	mov	r2, #50
	strb	r2, [r3, #-2112]
	sub	r3, fp, #262144
	sub	r3, r3, #20
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-2104]
	b	.L32
.L31:
	sub	r3, fp, #262144
	sub	r3, r3, #20
	ldr	r3, [r3, #-2164]
	sub	r2, fp, #262144
	sub	r2, r2, #20
	mov	r5, r2
	sub	r2, fp, #262144
	sub	r2, r2, #20
	mov	r1, r2
	sub	r2, fp, #262144
	sub	r2, r2, #20
	mov	r0, r2
	mov	r2, r3
	ldr	r1, [r1, #-2116]
	ldr	r0, [r0, #-2136]
	bl	read
	str	r0, [r5, #-2156]
	sub	r3, fp, #262144
	sub	r3, r3, #20
	mov	r2, r3
	ldr	r3, .L50+20
	sub	r1, fp, #20
	add	r3, r1, r3
	ldr	r2, [r2, #-2164]
	ldr	r1, .L50+24
	mov	r0, r3
	bl	sprintf
	ldr	r3, .L50+20
	sub	r2, fp, #20
	add	r3, r2, r3
	sub	r2, fp, #262144
	sub	r2, r2, #20
	mov	r0, r2
	mov	r2, #100
	mov	r1, r3
	ldr	r0, [r0, #-2188]
	bl	write
	mov	r2, r4
	sub	r3, fp, #262144
	sub	r3, r3, #20
	mov	r4, r3
	sub	r3, fp, #262144
	sub	r3, r3, #20
	mov	r1, r3
	sub	r3, fp, #262144
	sub	r3, r3, #20
	ldr	r1, [r1, #-2116]
	ldr	r0, [r3, #-2188]
	bl	write
	str	r0, [r4, #-2168]
	sub	r3, fp, #262144
	sub	r3, r3, #20
	sub	r2, fp, #262144
	sub	r2, r2, #20
	sub	r1, fp, #262144
	sub	r1, r1, #20
	ldr	r3, [r3, #-2116]
	ldr	r2, [r2, #-2168]
	ldr	r1, [r1, #-2172]
	ldr	r0, .L50+48
	bl	printf
.L32:
	sub	r3, fp, #262144
	sub	r3, r3, #20
	sub	r2, fp, #262144
	sub	r2, r2, #20
	ldr	r0, .L50+12
	sub	r1, fp, #20
	add	r0, r1, r0
	ldr	r3, [r3, #-2168]
	ldr	r2, [r2, #-2172]
	ldr	r1, .L50+28
	bl	sprintf
	ldr	r3, .L50+12
	sub	r2, fp, #20
	add	r3, r2, r3
	mov	r0, r3
	bl	logger
	mov	sp, r6
	b	.L27
.L30:
	sub	r3, fp, #262144
	sub	r3, r3, #20
	ldrb	r3, [r3, #-2004]	@ zero_extendqisi2
	cmp	r3, #52
	bne	.L33
	sub	r3, fp, #262144
	sub	r3, r3, #20
	mov	r2, r3
	ldr	r3, .L50+12
	sub	r1, fp, #20
	add	r3, r1, r3
	ldr	r2, [r2, #-2172]
	ldr	r1, .L50+52
	mov	r0, r3
	bl	sprintf
	ldr	r3, .L50+12
	sub	r2, fp, #20
	add	r3, r2, r3
	mov	r0, r3
	bl	logger
	ldr	r3, .L50+8
	sub	r2, fp, #20
	add	r3, r2, r3
	add	r3, r3, #8
	mov	r0, r3
	bl	chdir
	mov	r3, r0
	cmp	r3, #0
	blt	.L34
	mov	r1, #100
	ldr	r0, .L50+4
	bl	getcwd
	mov	r3, r0
	mov	r0, r3
	bl	puts
	ldr	r3, .L50+56
	sub	r2, fp, #20
	add	r3, r2, r3
	ldr	r1, .L50+4
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #262144
	sub	r3, r3, #20
	mov	r2, #52
	strb	r2, [r3, #-2112]
	sub	r3, fp, #262144
	sub	r3, r3, #20
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2104]
	sub	r3, fp, #262144
	sub	r3, r3, #20
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2108]
	b	.L35
.L34:
	ldr	r0, .L50+60
	bl	perror
	sub	r3, fp, #262144
	sub	r3, r3, #20
	mov	r2, #52
	strb	r2, [r3, #-2112]
	sub	r3, fp, #262144
	sub	r3, r3, #20
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-2104]
.L35:
	sub	r3, fp, #262144
	sub	r3, r3, #20
	mov	r4, r3
	sub	r3, fp, #262144
	sub	r3, r3, #20
	sub	r3, r3, #2112
	sub	r2, fp, #262144
	sub	r2, r2, #20
	mov	r0, r2
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [r0, #-2188]
	bl	write
	str	r0, [r4, #-2168]
	sub	r3, fp, #262144
	sub	r3, r3, #20
	sub	r2, fp, #262144
	sub	r2, r2, #20
	ldr	r0, .L50+12
	sub	r1, fp, #20
	add	r0, r1, r0
	ldr	r3, [r3, #-2168]
	ldr	r2, [r2, #-2172]
	ldr	r1, .L50+28
	bl	sprintf
	ldr	r3, .L50+12
	sub	r2, fp, #20
	add	r3, r2, r3
	mov	r0, r3
	bl	logger
	b	.L27
.L33:
	sub	r3, fp, #262144
	sub	r3, r3, #20
	ldrb	r3, [r3, #-2004]	@ zero_extendqisi2
	cmp	r3, #54
	bne	.L36
	sub	r3, fp, #262144
	sub	r3, r3, #20
	mov	r2, r3
	ldr	r3, .L50+12
	sub	r1, fp, #20
	add	r3, r1, r3
	ldr	r2, [r2, #-2172]
	ldr	r1, .L50+64
	mov	r0, r3
	bl	sprintf
	ldr	r3, .L50+12
	sub	r2, fp, #20
	add	r3, r2, r3
	mov	r0, r3
	bl	logger
	ldr	r0, .L50+4
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L50+4
	add	r3, r2, r3
	ldr	r2, .L50+68
	mov	r0, r3
	mov	r1, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
	sub	r3, fp, #262144
	sub	r3, r3, #20
	mov	r2, r3
	ldr	r3, .L50+4
	str	r3, [r2, #-2148]
	sub	r3, fp, #262144
	sub	r3, r3, #20
	mov	r4, r3
	ldr	r3, .L50+8
	sub	r2, fp, #20
	add	r3, r2, r3
	add	r3, r3, #8
	sub	r2, fp, #262144
	sub	r2, r2, #20
	mov	r1, r3
	ldr	r0, [r2, #-2148]
	bl	strcat
	str	r0, [r4, #-2148]
	sub	r3, fp, #262144
	sub	r3, r3, #20
	sub	r3, r3, #2096
	sub	r2, fp, #262144
	sub	r2, r2, #20
	mov	r1, r3
	ldr	r0, [r2, #-2148]
	bl	stat
	mov	r3, r0
	cmp	r3, #0
	bne	.L37
	sub	r3, fp, #262144
	sub	r3, r3, #20
	mov	r4, r3
	sub	r3, fp, #262144
	sub	r3, r3, #20
	mov	r1, #0
	ldr	r0, [r3, #-2148]
	bl	open
	str	r0, [r4, #-2136]
	sub	r3, fp, #262144
	sub	r3, r3, #20
	ldr	r3, [r3, #-2136]
	cmp	r3, #0
	bge	.L38
	ldr	r0, .L50+72
	bl	perror
	sub	r3, fp, #262144
	sub	r3, r3, #20
	mov	r2, #54
	strb	r2, [r3, #-2112]
	sub	r3, fp, #262144
	sub	r3, r3, #20
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-2104]
	ldr	r3, .L50+76
	sub	r2, fp, #20
	add	r3, r2, r3
	mov	r2, #1
	ldr	r1, .L50+80
	mov	r0, r3
	bl	sprintf
	ldr	r3, .L50+76
	sub	r2, fp, #20
	add	r3, r2, r3
	sub	r2, fp, #262144
	sub	r2, r2, #20
	mov	r0, r2
	mov	r2, #100
	mov	r1, r3
	ldr	r0, [r0, #-2188]
	bl	write
	sub	r3, fp, #262144
	sub	r3, r3, #20
	mov	r2, r3
	ldr	r3, .L50+12
	sub	r1, fp, #20
	add	r3, r1, r3
	ldr	r2, [r2, #-2172]
	ldr	r1, .L50+84
	mov	r0, r3
	bl	sprintf
	ldr	r3, .L50+12
	sub	r2, fp, #20
	add	r3, r2, r3
	mov	r0, r3
	bl	logger
	ldr	r3, .L50+12
	sub	r2, fp, #20
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L50+88
	bl	printf
	b	.L39
.L38:
	mov	r3, sp
	mov	r5, r3
	sub	r3, fp, #262144
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #262144
	sub	r3, r3, #20
	ldr	r3, [r3, #-2052]
	str	r3, [r2, #-2164]
	sub	r3, fp, #262144
	sub	r3, r3, #20
	ldr	ip, [r3, #-2164]
	sub	r3, ip, #1
	sub	r2, fp, #262144
	sub	r2, r2, #20
	str	r3, [r2, #-2132]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r3, ip
	sub	r2, fp, #262144
	sub	r2, r2, #20
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #0
	str	r3, [r2, #-2128]
	sub	r3, fp, #262144
	sub	r3, r3, #20
	ldr	r3, [r3, #-2164]
	sub	r2, fp, #262144
	sub	r2, r2, #20
	mov	r4, r2
	sub	r2, fp, #262144
	sub	r2, r2, #20
	mov	r1, r2
	sub	r2, fp, #262144
	sub	r2, r2, #20
	mov	r0, r2
	mov	r2, r3
	ldr	r1, [r1, #-2128]
	ldr	r0, [r0, #-2136]
	bl	read
	str	r0, [r4, #-2124]
	sub	r3, fp, #262144
	sub	r3, r3, #20
	mov	r2, #54
	strb	r2, [r3, #-2112]
	sub	r3, fp, #262144
	sub	r3, r3, #20
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2104]
	sub	r3, fp, #262144
	sub	r3, r3, #20
	mov	r2, r3
	mov	r3, #4
	str	r3, [r2, #-2108]
	sub	r3, fp, #262144
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #262144
	sub	r3, r3, #20
	ldr	r3, [r3, #-2164]
	str	r3, [r2, #-2176]
	sub	r3, fp, #262144
	sub	r3, r3, #20
	mov	r2, r3
	ldr	r3, .L50+76
	sub	r1, fp, #20
	add	r3, r1, r3
	ldr	r2, [r2, #-2164]
	ldr	r1, .L50+92
	mov	r0, r3
	bl	sprintf
	ldr	r3, .L50+76
	sub	r2, fp, #20
	add	r3, r2, r3
	sub	r2, fp, #262144
	sub	r2, r2, #20
	mov	r0, r2
	mov	r2, #100
	mov	r1, r3
	ldr	r0, [r0, #-2188]
	bl	write
	b	.L40
.L41:
	sub	r3, fp, #262144
	sub	r3, r3, #20
	ldr	r3, [r3, #-2164]
	sub	r2, fp, #262144
	sub	r2, r2, #20
	mov	r4, r2
	sub	r2, fp, #262144
	sub	r2, r2, #20
	mov	r1, r2
	sub	r2, fp, #262144
	sub	r2, r2, #20
	mov	r0, r2
	mov	r2, r3
	ldr	r1, [r1, #-2128]
	ldr	r0, [r0, #-2188]
	bl	write
	str	r0, [r4, #-2168]
	sub	r3, fp, #262144
	sub	r3, r3, #20
	mov	r1, r3
	sub	r3, fp, #262144
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #262144
	sub	r3, r3, #20
	ldr	r2, [r2, #-2176]
	ldr	r3, [r3, #-2168]
	sub	r3, r2, r3
	str	r3, [r1, #-2176]
	sub	r3, fp, #262144
	sub	r3, r3, #20
	sub	r2, fp, #262144
	sub	r2, r2, #20
	ldr	r0, .L50+12
	sub	r1, fp, #20
	add	r0, r1, r0
	ldr	r3, [r3, #-2168]
	ldr	r2, [r2, #-2172]
	ldr	r1, .L50+96
	bl	sprintf
	ldr	r3, .L50+12
	sub	r2, fp, #20
	add	r3, r2, r3
	mov	r0, r3
	bl	logger
.L40:
	sub	r3, fp, #262144
	sub	r3, r3, #20
	ldr	r3, [r3, #-2176]
	cmp	r3, #0
	bgt	.L41
	mov	sp, r5
.L39:
	ldr	r0, .L50+100
	bl	puts
	b	.L42
.L37:
	ldr	r0, .L50+72
	bl	perror
	sub	r3, fp, #262144
	sub	r3, r3, #20
	mov	r2, #54
	strb	r2, [r3, #-2112]
	sub	r3, fp, #262144
	sub	r3, r3, #20
	mov	r2, r3
	mov	r3, #2
	str	r3, [r2, #-2104]
	ldr	r3, .L50+76
	sub	r2, fp, #20
	add	r3, r2, r3
	mov	r2, #2
	ldr	r1, .L50+80
	mov	r0, r3
	bl	sprintf
	ldr	r3, .L50+76
	sub	r2, fp, #20
	add	r3, r2, r3
	sub	r2, fp, #262144
	sub	r2, r2, #20
	mov	r0, r2
	mov	r2, #100
	mov	r1, r3
	ldr	r0, [r0, #-2188]
	bl	write
.L42:
	sub	r3, fp, #262144
	sub	r3, r3, #20
	mov	r2, r3
	ldr	r3, .L50+12
	sub	r1, fp, #20
	add	r3, r1, r3
	ldr	r2, [r2, #-2172]
	ldr	r1, .L50+104
	mov	r0, r3
	bl	sprintf
	ldr	r3, .L50+12
	sub	r2, fp, #20
	add	r3, r2, r3
	mov	r0, r3
	bl	logger
	b	.L27
.L36:
	sub	r3, fp, #262144
	sub	r3, r3, #20
	ldrb	r3, [r3, #-2004]	@ zero_extendqisi2
	sub	r2, fp, #262144
	sub	r2, r2, #20
	mov	r1, r2
	sub	r2, fp, #262144
	sub	r2, r2, #20
	ldr	r2, [r2, #-2168]
	str	r2, [r1, #-2168]
	cmp	r3, #55
	bne	.L27
	sub	r3, fp, #262144
	sub	r3, r3, #20
	mov	r2, r3
	ldr	r3, .L50+12
	sub	r1, fp, #20
	add	r3, r1, r3
	ldr	r2, [r2, #-2172]
	ldr	r1, .L50+108
	mov	r0, r3
	bl	sprintf
	ldr	r3, .L50+12
	sub	r2, fp, #20
	add	r3, r2, r3
	mov	r0, r3
	bl	logger
	ldr	r0, .L50+4
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L50+4
	add	r3, r2, r3
	ldr	r2, .L50+68
	mov	r0, r3
	mov	r1, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
	sub	r3, fp, #262144
	sub	r3, r3, #20
	mov	r2, r3
	ldr	r3, .L50+4
	str	r3, [r2, #-2148]
	sub	r3, fp, #262144
	sub	r3, r3, #20
	mov	r4, r3
	ldr	r3, .L50+8
	sub	r2, fp, #20
	add	r3, r2, r3
	add	r3, r3, #8
	sub	r2, fp, #262144
	sub	r2, r2, #20
	mov	r1, r3
	ldr	r0, [r2, #-2148]
	bl	strcat
	str	r0, [r4, #-2148]
	sub	r3, fp, #262144
	sub	r3, r3, #20
	sub	r3, r3, #2096
	sub	r2, fp, #262144
	sub	r2, r2, #20
	mov	r1, r3
	ldr	r0, [r2, #-2148]
	bl	stat
	mov	r3, r0
	cmp	r3, #0
	beq	.L43
	sub	r3, fp, #262144
	sub	r3, r3, #20
	mov	r2, #55
	strb	r2, [r3, #-2112]
	sub	r3, fp, #262144
	sub	r3, r3, #20
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2104]
	sub	r3, fp, #262144
	sub	r3, r3, #20
	sub	r3, r3, #2112
	sub	r2, fp, #262144
	sub	r2, r2, #20
	mov	r0, r2
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [r0, #-2188]
	bl	write
	sub	r3, fp, #262144
	sub	r3, r3, #20
	mov	r4, r3
	sub	r3, fp, #262144
	sub	r3, r3, #20
	mov	r2, #420
	ldr	r1, .L50+112
	ldr	r0, [r3, #-2148]
	bl	open
	str	r0, [r4, #-2144]
	sub	r3, fp, #262144
	sub	r3, r3, #20
	ldr	r3, [r3, #-2144]
	cmp	r3, #0
	bge	.L44
	sub	r3, fp, #262144
	sub	r3, r3, #20
	mov	r2, #55
	strb	r2, [r3, #-2112]
	sub	r3, fp, #262144
	sub	r3, r3, #20
	mov	r2, r3
	mov	r3, #2
	str	r3, [r2, #-2104]
	sub	r3, fp, #262144
	sub	r3, r3, #20
	sub	r3, r3, #2112
	sub	r2, fp, #262144
	sub	r2, r2, #20
	mov	r0, r2
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [r0, #-2188]
	bl	write
	sub	r3, fp, #262144
	sub	r3, r3, #20
	mov	r2, r3
	ldr	r3, .L50+12
	sub	r1, fp, #20
	add	r3, r1, r3
	ldr	r2, [r2, #-2172]
	ldr	r1, .L50+116
	mov	r0, r3
	bl	sprintf
	ldr	r3, .L50+12
	sub	r2, fp, #20
	add	r3, r2, r3
	mov	r0, r3
	bl	logger
	ldr	r0, .L50+120
	bl	perror
	b	.L45
.L44:
	ldr	r3, .L50+76
	sub	r2, fp, #20
	add	r3, r2, r3
	sub	r2, fp, #262144
	sub	r2, r2, #20
	mov	r0, r2
	mov	r2, #100
	mov	r1, r3
	ldr	r0, [r0, #-2188]
	bl	read
	sub	r3, fp, #262144
	sub	r3, r3, #20
	mov	r4, r3
	ldr	r3, .L50+76
	sub	r2, fp, #20
	add	r3, r2, r3
	mov	r0, r3
	bl	atoi
	str	r0, [r4, #-2180]
	b	.L46
.L47:
	sub	r3, fp, #262144
	sub	r3, r3, #20
	mov	r4, r3
	sub	r3, fp, #262144
	sub	r3, r3, #20
	sub	r3, r3, #4
	sub	r2, fp, #262144
	sub	r2, r2, #20
	mov	r0, r2
	mov	r2, #262144
	mov	r1, r3
	ldr	r0, [r0, #-2188]
	bl	read
	str	r0, [r4, #-2152]
	sub	r3, fp, #262144
	sub	r3, r3, #20
	ldr	r2, [r3, #-2152]
	sub	r3, fp, #262144
	sub	r3, r3, #20
	mov	r4, r3
	sub	r3, fp, #262144
	sub	r3, r3, #20
	sub	r3, r3, #4
	sub	r1, fp, #262144
	sub	r1, r1, #20
	mov	r0, r1
	mov	r1, r3
	ldr	r0, [r0, #-2144]
	bl	write
	str	r0, [r4, #-2140]
	sub	r3, fp, #262144
	sub	r3, r3, #20
	mov	r1, r3
	sub	r3, fp, #262144
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #262144
	sub	r3, r3, #20
	ldr	r2, [r2, #-2180]
	ldr	r3, [r3, #-2152]
	sub	r3, r2, r3
	str	r3, [r1, #-2180]
	sub	r3, fp, #262144
	sub	r3, r3, #20
	sub	r2, fp, #262144
	sub	r2, r2, #20
	ldr	r0, .L50+12
	sub	r1, fp, #20
	add	r0, r1, r0
	ldr	r3, [r3, #-2152]
	ldr	r2, [r2, #-2172]
	ldr	r1, .L50+124
	bl	sprintf
	ldr	r3, .L50+12
	sub	r2, fp, #20
	add	r3, r2, r3
	mov	r0, r3
	bl	logger
.L46:
	sub	r3, fp, #262144
	sub	r3, r3, #20
	ldr	r3, [r3, #-2180]
	cmp	r3, #0
	bgt	.L47
.L45:
	ldr	r0, .L50+128
	bl	puts
	sub	r3, fp, #262144
	sub	r3, r3, #20
	ldr	r0, [r3, #-2144]
	bl	close
	sub	r3, fp, #262144
	sub	r3, r3, #20
	mov	r2, r3
	ldr	r3, .L50+12
	sub	r1, fp, #20
	add	r3, r1, r3
	ldr	r2, [r2, #-2172]
	ldr	r1, .L50+132
	mov	r0, r3
	bl	sprintf
	ldr	r3, .L50+12
	sub	r2, fp, #20
	add	r3, r2, r3
	mov	r0, r3
	bl	logger
	b	.L27
.L43:
	sub	r3, fp, #262144
	sub	r3, r3, #20
	mov	r2, #55
	strb	r2, [r3, #-2112]
	sub	r3, fp, #262144
	sub	r3, r3, #20
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-2104]
	sub	r3, fp, #262144
	sub	r3, r3, #20
	sub	r3, r3, #2112
	sub	r2, fp, #262144
	sub	r2, r2, #20
	mov	r0, r2
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [r0, #-2188]
	bl	write
.L27:
	sub	r3, fp, #262144
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #262144
	sub	r3, r3, #20
	ldr	r3, [r3, #-2172]
	add	r3, r3, #1
	str	r3, [r2, #-2172]
	sub	r3, fp, #262144
	sub	r3, r3, #20
	ldr	r3, [r3, #-2172]
	cmp	r3, #0
	bne	.L48
	sub	r3, fp, #262144
	sub	r3, r3, #20
	ldr	r0, [r3, #-2188]
	bl	close
	nop
	ldr	r3, .L50
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L49
	bl	__stack_chk_fail
.L49:
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L51:
	.align	2
.L50:
	.word	.LC37
	.word	g_path
	.word	-264148
	.word	-263428
	.word	.LC11
	.word	-263628
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	-263172
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	-263528
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.word	.LC31
	.word	577
	.word	.LC32
	.word	.LC33
	.word	.LC34
	.word	.LC35
	.word	.LC36
	.size	serveClient, .-serveClient
	.section	.rodata
	.align	2
.LC38:
	.ascii	"\012Starting Daemon Server\012\000"
	.align	2
.LC39:
	.ascii	"Strating myftpd\000"
	.align	2
.LC40:
	.ascii	"fork\000"
	.align	2
.LC41:
	.ascii	"server: Serving a new client\012\000"
	.align	2
.LC42:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 144
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #144
	ldr	r3, .L58
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-144]
	mov	r3, #16
	str	r3, [fp, #-140]
	ldr	r0, .L58+4
	bl	logger
	ldr	r0, .L58+8
	bl	puts
	bl	initServer
	str	r0, [fp, #-136]
.L56:
	mov	r3, #16
	str	r3, [fp, #-148]
	sub	r2, fp, #148
	sub	r3, fp, #124
	mov	r1, r3
	ldr	r0, [fp, #-136]
	bl	accept
	str	r0, [fp, #-132]
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-128]
	ldr	r3, [fp, #-128]
	cmp	r3, #0
	bge	.L53
	ldr	r0, .L58+12
	bl	perror
	mov	r0, #1
	bl	exit
.L53:
	ldr	r3, [fp, #-128]
	cmp	r3, #0
	ble	.L54
	ldr	r0, [fp, #-132]
	bl	close
	b	.L55
.L54:
	ldr	r0, [fp, #-136]
	bl	close
	ldr	r0, .L58+16
	bl	logger
	ldr	r0, [fp, #-132]
	bl	serveClient
.L55:
	b	.L56
.L59:
	.align	2
.L58:
	.word	.LC42
	.word	.LC38
	.word	.LC39
	.word	.LC40
	.word	.LC41
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
