	.file	"397154.c"
	.intel_syntax noprefix
	.text
	.globl	cmdbuf
	.bss
	.align 32
	.type	cmdbuf, @object
	.size	cmdbuf, 3072
cmdbuf:
	.zero	3072
	.globl	cmdlen
	.align 4
	.type	cmdlen, @object
	.size	cmdlen, 4
cmdlen:
	.zero	4
	.text
	.globl	shutdownSocket
	.type	shutdownSocket, @function
shutdownSocket:
.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	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	close@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	shutdownSocket, .-shutdownSocket
	.type	set_socket_nonblocking, @function
set_socket_nonblocking:
.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	DWORD PTR -20[rbp], edi
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, 3
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], -1
	jne	.L3
	mov	eax, -1
	jmp	.L4
.L3:
	mov	eax, DWORD PTR -8[rbp]
	or	ah, 8
	mov	edx, eax
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, 4
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L5
	mov	eax, -1
	jmp	.L4
.L5:
	mov	eax, 0
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	set_socket_nonblocking, .-set_socket_nonblocking
	.globl	socket_error
	.type	socket_error, @function
socket_error:
.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
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	perror@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	socket_error, .-socket_error
	.globl	timeval_subtract
	.type	timeval_subtract, @function
timeval_subtract:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -8[rbp]
	cmp	rdx, rax
	jge	.L8
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rcx, rdx
	sub	rcx, rax
	movabs	rdx, 4835703278458516699
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 18
	sar	rcx, 63
	mov	rdx, rcx
	sub	rax, rdx
	add	eax, 1
	mov	DWORD PTR -24[rbp], eax
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -24[rbp]
	imul	edx, edx, 1000000
	movsx	rdx, edx
	sub	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	rdx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	add	rax, rdx
	mov	QWORD PTR -16[rbp], rax
.L8:
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR -8[rbp]
	sub	rax, rdx
	cmp	rax, 1000000
	jle	.L9
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR -8[rbp]
	sub	rax, rdx
	mov	rcx, rax
	movabs	rdx, 4835703278458516699
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 18
	sar	rcx, 63
	mov	rdx, rcx
	sub	rax, rdx
	mov	DWORD PTR -20[rbp], eax
	mov	rdx, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR -20[rbp]
	imul	eax, eax, 1000000
	cdqe
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR -20[rbp]
	movsx	rdx, edx
	sub	rax, rdx
	mov	QWORD PTR -16[rbp], rax
.L9:
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rcx, QWORD PTR -16[rbp]
	sub	rax, rcx
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rax, rcx
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	cmp	rdx, rax
	setl	al
	movzx	eax, al
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	timeval_subtract, .-timeval_subtract
	.globl	timeval_add
	.type	timeval_add, @function
timeval_add:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	add	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	add	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	cmp	rax, 1000000
	jle	.L13
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, QWORD PTR 8[rax]
	movabs	rdx, 4835703278458516699
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 18
	sar	rcx, 63
	mov	rdx, rcx
	sub	rax, rdx
	lea	rdx, [rsi+rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, QWORD PTR 8[rax]
	movabs	rdx, 4835703278458516699
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 18
	mov	rdx, rcx
	sar	rdx, 63
	sub	rax, rdx
	imul	rdx, rax, 1000000
	mov	rax, rcx
	sub	rax, rdx
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rdx], rax
.L13:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	timeval_add, .-timeval_add
	.section	.rodata
.LC0:
	.string	"pinging switch"
.LC1:
	.string	"create send socket"
.LC2:
	.string	"create receive socket"
.LC3:
	.string	"bind receive socket"
.LC4:
	.string	"sendto"
.LC5:
	.string	"bootnx"
	.text
	.type	findSwitch, @function
findSwitch:
.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, 432
	mov	DWORD PTR -420[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	DWORD PTR -279[rbp], 1868724334
	mov	WORD PTR -275[rbp], 29807
	mov	BYTE PTR -273[rbp], 0
	mov	edx, 0
	mov	esi, 2
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -396[rbp], eax
	cmp	DWORD PTR -396[rbp], 0
	jns	.L15
	lea	rdi, .LC1[rip]
	call	socket_error
.L15:
	mov	DWORD PTR -408[rbp], 1
	lea	rdx, -408[rbp]
	mov	eax, DWORD PTR -396[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 6
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	lea	rax, -336[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -336[rbp], 2
	mov	edi, 28280
	call	htons@PLT
	mov	WORD PTR -334[rbp], ax
	mov	DWORD PTR -332[rbp], -1
	lea	rax, -304[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -304[rbp], 2
	mov	edi, 28771
	call	htons@PLT
	mov	WORD PTR -302[rbp], ax
	mov	DWORD PTR -300[rbp], 0
	mov	edx, 0
	mov	esi, 2
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -392[rbp], eax
	cmp	DWORD PTR -392[rbp], 0
	jns	.L16
	lea	rdi, .LC2[rip]
	call	socket_error
.L16:
	lea	rcx, -304[rbp]
	mov	eax, DWORD PTR -392[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	jns	.L17
	lea	rdi, .LC3[rip]
	call	socket_error
.L17:
	mov	eax, DWORD PTR -392[rbp]
	mov	edi, eax
	call	set_socket_nonblocking
	lea	rax, -384[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	eax, DWORD PTR -420[rbp]
	mov	DWORD PTR -400[rbp], eax
	jmp	.L18
.L23:
	lea	rax, -368[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	lea	rdx, -368[rbp]
	lea	rcx, -384[rbp]
	lea	rax, -352[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	timeval_subtract
	test	eax, eax
	je	.L19
	lea	rax, -279[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rcx, -336[rbp]
	lea	rsi, -279[rbp]
	mov	eax, DWORD PTR -396[rbp]
	mov	r9d, 16
	mov	r8, rcx
	mov	ecx, 0
	mov	edi, eax
	call	sendto@PLT
	test	rax, rax
	jns	.L20
	lea	rdi, .LC4[rip]
	call	socket_error
.L20:
	mov	QWORD PTR -352[rbp], 0
	mov	QWORD PTR -344[rbp], 150000
	lea	rdx, -352[rbp]
	lea	rcx, -368[rbp]
	lea	rax, -384[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	timeval_add
	sub	DWORD PTR -400[rbp], 1
.L19:
	mov	DWORD PTR -404[rbp], 16
	lea	rcx, -404[rbp]
	lea	rdx, -320[rbp]
	lea	rsi, -272[rbp]
	mov	eax, DWORD PTR -392[rbp]
	mov	r9, rcx
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 256
	mov	edi, eax
	call	recvfrom@PLT
	mov	DWORD PTR -388[rbp], eax
	cmp	DWORD PTR -388[rbp], -1
	je	.L18
	lea	rax, -272[rbp]
	mov	edx, 6
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	call	strncmp@PLT
	test	eax, eax
	je	.L27
.L18:
	cmp	DWORD PTR -400[rbp], 0
	jne	.L23
	jmp	.L22
.L27:
	nop
.L22:
	cmp	DWORD PTR -400[rbp], 0
	jne	.L24
	mov	DWORD PTR -316[rbp], -1
.L24:
	mov	eax, DWORD PTR -396[rbp]
	mov	edi, eax
	call	shutdownSocket
	mov	eax, DWORD PTR -392[rbp]
	mov	edi, eax
	call	shutdownSocket
	mov	eax, DWORD PTR -316[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	findSwitch, .-findSwitch
	.section	.rodata
.LC6:
	.string	"sendData"
	.text
	.globl	sendData
	.type	sendData, @function
sendData:
.LFB12:
	.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	DWORD PTR -24[rbp], esi
	mov	QWORD PTR -32[rbp], rdx
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L29
.L33:
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rsi, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	je	.L35
	cmp	DWORD PTR -12[rbp], -1
	je	.L32
	mov	eax, DWORD PTR -12[rbp]
	sub	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	add	QWORD PTR -8[rbp], rax
	jmp	.L29
.L32:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	je	.L29
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	je	.L29
	lea	rdi, .LC6[rip]
	call	socket_error
	jmp	.L31
.L29:
	cmp	DWORD PTR -24[rbp], 0
	jne	.L33
	jmp	.L31
.L35:
	nop
.L31:
	cmp	DWORD PTR -24[rbp], 0
	setne	al
	movzx	eax, al
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	sendData, .-sendData
	.section	.rodata
.LC7:
	.string	"recvdata"
	.text
	.globl	recvData
	.type	recvData, @function
recvData:
.LFB13:
	.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	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -24[rbp], edx
	mov	DWORD PTR -36[rbp], ecx
	mov	eax, DWORD PTR -24[rbp]
	mov	DWORD PTR -16[rbp], eax
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L37
.L41:
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	ecx, DWORD PTR -36[rbp]
	mov	rsi, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	recv@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jne	.L38
	mov	DWORD PTR -24[rbp], 0
	jmp	.L39
.L38:
	cmp	DWORD PTR -12[rbp], -1
	je	.L40
	mov	eax, DWORD PTR -12[rbp]
	sub	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	add	QWORD PTR -8[rbp], rax
	jmp	.L37
.L40:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	je	.L37
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	je	.L37
	lea	rdi, .LC7[rip]
	call	socket_error
	jmp	.L39
.L37:
	cmp	DWORD PTR -16[rbp], 0
	jne	.L41
.L39:
	mov	eax, DWORD PTR -24[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	recvData, .-recvData
	.globl	sendInt32LE
	.type	sendInt32LE, @function
sendInt32LE:
.LFB14:
	.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	DWORD PTR -24[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR -24[rbp]
	mov	BYTE PTR -12[rbp], al
	mov	eax, DWORD PTR -24[rbp]
	shr	eax, 8
	mov	BYTE PTR -11[rbp], al
	mov	eax, DWORD PTR -24[rbp]
	shr	eax, 16
	mov	BYTE PTR -10[rbp], al
	mov	eax, DWORD PTR -24[rbp]
	shr	eax, 24
	mov	BYTE PTR -9[rbp], al
	lea	rdx, -12[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, 4
	mov	edi, eax
	call	sendData
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L45
	call	__stack_chk_fail@PLT
.L45:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	sendInt32LE, .-sendInt32LE
	.globl	recvInt32LE
	.type	recvInt32LE, @function
recvInt32LE:
.LFB15:
	.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
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rsi, -12[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	ecx, 0
	mov	edx, 4
	mov	edi, eax
	call	recvData
	mov	DWORD PTR -16[rbp], eax
	cmp	DWORD PTR -16[rbp], 4
	jne	.L47
	movzx	eax, BYTE PTR -12[rbp]
	movzx	edx, al
	movzx	eax, BYTE PTR -11[rbp]
	movzx	eax, al
	sal	eax, 8
	lea	ecx, 255[rax]
	movzx	eax, BYTE PTR -10[rbp]
	movzx	eax, al
	sal	eax, 16
	add	ecx, eax
	movzx	eax, BYTE PTR -9[rbp]
	movzx	eax, al
	sal	eax, 24
	add	eax, ecx
	and	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR [rax], edx
	mov	eax, 0
	jmp	.L49
.L47:
	mov	eax, -1
.L49:
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L50
	call	__stack_chk_fail@PLT
.L50:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	recvInt32LE, .-recvInt32LE
	.globl	in
	.bss
	.align 32
	.type	in, @object
	.size	in, 16384
in:
	.zero	16384
	.globl	out
	.align 32
	.type	out, @object
	.size	out, 16384
out:
	.zero	16384
	.section	.rodata
.LC8:
	.string	"1.2.11"
.LC9:
	.string	"create connection socket"
.LC10:
	.string	"Connection to %s failed\n"
	.align 8
.LC11:
	.string	"Failed sending filename length\n"
.LC12:
	.string	"Failed sending filename\n"
.LC13:
	.string	"Failed sending file length\n"
.LC14:
	.string	"Invalid response\n"
.LC15:
	.string	"Failed to create file\n"
.LC16:
	.string	"Insufficient space\n"
.LC17:
	.string	"Insufficient memory\n"
.LC18:
	.string	"Sending %s, %zd bytes\n"
.LC19:
	.string	"the_stack_data/397154.c"
.LC20:
	.string	"ret != Z_STREAM_ERROR"
.LC21:
	.string	"Failed sending chunk size\n"
.LC22:
	.string	"Failed sending %s\n"
.LC23:
	.string	"strm.avail_in == 0"
.LC24:
	.string	"ret == Z_STREAM_END"
	.align 8
.LC26:
	.string	"%zu sent (%.2f%%), %zd blocks\n"
.LC27:
	.string	"Failed sending command line\n"
	.text
	.globl	sendNROFile
	.type	sendNROFile, @function
sendNROFile:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 224
	mov	DWORD PTR -196[rbp], edi
	mov	QWORD PTR -208[rbp], rsi
	mov	QWORD PTR -216[rbp], rdx
	mov	QWORD PTR -224[rbp], rcx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -184[rbp], 0
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	lea	rax, -144[rbp]
	mov	ecx, 112
	lea	rdx, .LC8[rip]
	mov	esi, -1
	mov	rdi, rax
	call	deflateInit_@PLT
	mov	DWORD PTR -180[rbp], eax
	cmp	DWORD PTR -180[rbp], 0
	je	.L52
	mov	eax, DWORD PTR -180[rbp]
	jmp	.L82
.L52:
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -176[rbp], eax
	cmp	DWORD PTR -176[rbp], 0
	jns	.L54
	lea	rdi, .LC9[rip]
	call	socket_error
	mov	eax, -1
	jmp	.L82
.L54:
	lea	rax, -32[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -32[rbp], 2
	mov	edi, 28280
	call	htons@PLT
	mov	WORD PTR -30[rbp], ax
	mov	eax, DWORD PTR -196[rbp]
	mov	DWORD PTR -28[rbp], eax
	lea	rcx, -32[rbp]
	mov	eax, DWORD PTR -176[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	test	eax, eax
	jns	.L55
	mov	eax, DWORD PTR -196[rbp]
	mov	DWORD PTR -188[rbp], eax
	mov	eax, DWORD PTR -188[rbp]
	mov	edi, eax
	call	inet_ntoa@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L82
.L55:
	mov	rax, QWORD PTR -208[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -172[rbp], eax
	mov	edx, DWORD PTR -172[rbp]
	mov	eax, DWORD PTR -176[rbp]
	mov	esi, edx
	mov	edi, eax
	call	sendInt32LE
	test	eax, eax
	je	.L56
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 31
	mov	esi, 1
	lea	rdi, .LC11[rip]
	call	fwrite@PLT
	mov	DWORD PTR -184[rbp], -1
	jmp	.L57
.L56:
	mov	rdx, QWORD PTR -208[rbp]
	mov	ecx, DWORD PTR -172[rbp]
	mov	eax, DWORD PTR -176[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	sendData
	test	eax, eax
	je	.L58
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 24
	mov	esi, 1
	lea	rdi, .LC12[rip]
	call	fwrite@PLT
	mov	DWORD PTR -184[rbp], -1
	jmp	.L57
.L58:
	mov	rax, QWORD PTR -216[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -176[rbp]
	mov	esi, edx
	mov	edi, eax
	call	sendInt32LE
	test	eax, eax
	je	.L59
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 27
	mov	esi, 1
	lea	rdi, .LC13[rip]
	call	fwrite@PLT
	mov	DWORD PTR -184[rbp], -1
	jmp	.L57
.L59:
	lea	rdx, -188[rbp]
	mov	eax, DWORD PTR -176[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	recvInt32LE
	test	eax, eax
	je	.L60
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 17
	mov	esi, 1
	lea	rdi, .LC14[rip]
	call	fwrite@PLT
	mov	DWORD PTR -184[rbp], 1
	jmp	.L57
.L60:
	mov	eax, DWORD PTR -188[rbp]
	test	eax, eax
	je	.L61
	mov	eax, DWORD PTR -188[rbp]
	cmp	eax, -1
	je	.L62
	test	eax, eax
	jns	.L63
	cmp	eax, -3
	je	.L64
	cmp	eax, -2
	je	.L65
	jmp	.L63
.L62:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 22
	mov	esi, 1
	lea	rdi, .LC15[rip]
	call	fwrite@PLT
	jmp	.L63
.L65:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 19
	mov	esi, 1
	lea	rdi, .LC16[rip]
	call	fwrite@PLT
	jmp	.L63
.L64:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 20
	mov	esi, 1
	lea	rdi, .LC17[rip]
	call	fwrite@PLT
	nop
.L63:
	mov	DWORD PTR -184[rbp], 1
	jmp	.L57
.L61:
	mov	rdx, QWORD PTR -216[rbp]
	mov	rax, QWORD PTR -208[rbp]
	mov	rsi, rax
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	mov	QWORD PTR -160[rbp], 0
	mov	QWORD PTR -152[rbp], 0
.L75:
	mov	rax, QWORD PTR -224[rbp]
	mov	rcx, rax
	mov	edx, 16384
	mov	esi, 1
	lea	rdi, in[rip]
	call	fread@PLT
	mov	DWORD PTR -136[rbp], eax
	mov	rax, QWORD PTR -224[rbp]
	mov	rdi, rax
	call	ferror@PLT
	test	eax, eax
	je	.L66
	lea	rax, -144[rbp]
	mov	rdi, rax
	call	deflateEnd@PLT
	mov	eax, -1
	jmp	.L82
.L66:
	mov	rax, QWORD PTR -224[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	je	.L67
	mov	eax, 4
	jmp	.L68
.L67:
	mov	eax, 0
.L68:
	mov	DWORD PTR -168[rbp], eax
	lea	rax, in[rip]
	mov	QWORD PTR -144[rbp], rax
.L73:
	mov	DWORD PTR -112[rbp], 16384
	lea	rax, out[rip]
	mov	QWORD PTR -120[rbp], rax
	mov	edx, DWORD PTR -168[rbp]
	lea	rax, -144[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	deflate@PLT
	mov	DWORD PTR -180[rbp], eax
	cmp	DWORD PTR -180[rbp], -2
	jne	.L69
	lea	rcx, __PRETTY_FUNCTION__.2[rip]
	mov	edx, 380
	lea	rsi, .LC19[rip]
	lea	rdi, .LC20[rip]
	call	__assert_fail@PLT
.L69:
	mov	edx, DWORD PTR -112[rbp]
	mov	eax, 16384
	sub	eax, edx
	mov	DWORD PTR -164[rbp], eax
	cmp	DWORD PTR -164[rbp], 0
	je	.L70
	mov	edx, DWORD PTR -164[rbp]
	mov	eax, DWORD PTR -176[rbp]
	mov	esi, edx
	mov	edi, eax
	call	sendInt32LE
	test	eax, eax
	je	.L71
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 26
	mov	esi, 1
	lea	rdi, .LC21[rip]
	call	fwrite@PLT
	mov	DWORD PTR -184[rbp], -1
	jmp	.L57
.L71:
	mov	ecx, DWORD PTR -164[rbp]
	mov	eax, DWORD PTR -176[rbp]
	lea	rdx, out[rip]
	mov	esi, ecx
	mov	edi, eax
	call	sendData
	test	eax, eax
	je	.L72
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -208[rbp]
	lea	rsi, .LC22[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -184[rbp], 1
	lea	rax, -144[rbp]
	mov	rdi, rax
	call	deflateEnd@PLT
	jmp	.L57
.L72:
	mov	eax, DWORD PTR -164[rbp]
	add	QWORD PTR -160[rbp], rax
	add	QWORD PTR -152[rbp], 1
.L70:
	mov	eax, DWORD PTR -112[rbp]
	test	eax, eax
	je	.L73
	mov	eax, DWORD PTR -136[rbp]
	test	eax, eax
	je	.L74
	lea	rcx, __PRETTY_FUNCTION__.2[rip]
	mov	edx, 401
	lea	rsi, .LC19[rip]
	lea	rdi, .LC23[rip]
	call	__assert_fail@PLT
.L74:
	cmp	DWORD PTR -168[rbp], 4
	jne	.L75
	cmp	DWORD PTR -180[rbp], 1
	je	.L76
	lea	rcx, __PRETTY_FUNCTION__.2[rip]
	mov	edx, 404
	lea	rsi, .LC19[rip]
	lea	rdi, .LC24[rip]
	call	__assert_fail@PLT
.L76:
	lea	rax, -144[rbp]
	mov	rdi, rax
	call	deflateEnd@PLT
	mov	rax, QWORD PTR -160[rbp]
	test	rax, rax
	js	.L77
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L78
.L77:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
.L78:
	movsd	xmm1, QWORD PTR .LC25[rip]
	mulsd	xmm0, xmm1
	pxor	xmm1, xmm1
	cvtsd2ss	xmm1, xmm0
	mov	rax, QWORD PTR -216[rbp]
	test	rax, rax
	js	.L79
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, rax
	jmp	.L80
.L79:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, rdx
	addss	xmm0, xmm0
.L80:
	divss	xmm1, xmm0
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, xmm1
	movq	rcx, xmm2
	mov	rdx, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR -160[rbp]
	movq	xmm0, rcx
	mov	rsi, rax
	lea	rdi, .LC26[rip]
	mov	eax, 1
	call	printf@PLT
	lea	rdx, -188[rbp]
	mov	eax, DWORD PTR -176[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	recvInt32LE
	test	eax, eax
	je	.L81
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -208[rbp]
	lea	rsi, .LC22[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -184[rbp], 1
	jmp	.L57
.L81:
	mov	eax, DWORD PTR cmdlen[rip]
	add	eax, 4
	mov	ecx, eax
	mov	eax, DWORD PTR -176[rbp]
	lea	rdx, cmdbuf[rip]
	mov	esi, ecx
	mov	edi, eax
	call	sendData
	test	eax, eax
	je	.L84
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 28
	mov	esi, 1
	lea	rdi, .LC27[rip]
	call	fwrite@PLT
	mov	DWORD PTR -184[rbp], 1
	jmp	.L57
.L84:
	nop
.L57:
	mov	eax, DWORD PTR -176[rbp]
	mov	edi, eax
	call	shutdownSocket
	mov	eax, DWORD PTR -184[rbp]
.L82:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L83
	call	__stack_chk_fail@PLT
.L83:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	sendNROFile, .-sendNROFile
	.section	.rodata
	.align 8
.LC28:
	.string	"Usage: nxlink [options] nrofile\n"
	.align 8
.LC29:
	.string	"--help,    -h   Display this information"
	.align 8
.LC30:
	.string	"--address, -a   Hostname or IPv4 address of Switch"
	.align 8
.LC31:
	.string	"--retries, -r   number of times to ping before giving up"
	.align 8
.LC32:
	.string	"--path   , -p   set upload path for file"
	.align 8
.LC33:
	.string	"--args          args to send to nro"
	.align 8
.LC34:
	.string	"--server , -s   start server after completed upload"
.LC35:
	.string	"\n"
	.text
	.globl	showHelp
	.type	showHelp, @function
showHelp:
.LFB17:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC28[rip]
	call	puts@PLT
	lea	rdi, .LC29[rip]
	call	puts@PLT
	lea	rdi, .LC30[rip]
	call	puts@PLT
	lea	rdi, .LC31[rip]
	call	puts@PLT
	lea	rdi, .LC32[rip]
	call	puts@PLT
	lea	rdi, .LC33[rip]
	call	puts@PLT
	lea	rdi, .LC34[rip]
	call	puts@PLT
	lea	rdi, .LC35[rip]
	call	puts@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	showHelp, .-showHelp
	.globl	add_extra_args
	.type	add_extra_args, @function
add_extra_args:
.LFB18:
	.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	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	cmp	QWORD PTR -56[rbp], 0
	jne	.L87
	mov	eax, DWORD PTR -36[rbp]
	jmp	.L88
.L87:
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -8[rbp], rax
.L90:
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -8[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	DWORD PTR -24[rbp], eax
	sub	DWORD PTR -28[rbp], 1
	cmp	DWORD PTR -24[rbp], 32
	jne	.L89
	cmp	DWORD PTR -28[rbp], 0
	jns	.L90
.L89:
	cmp	DWORD PTR -24[rbp], 34
	je	.L91
	cmp	DWORD PTR -24[rbp], 39
	jne	.L92
.L91:
	mov	eax, DWORD PTR -24[rbp]
	mov	DWORD PTR -20[rbp], eax
.L95:
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -8[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	je	.L93
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -16[rbp], rdx
	mov	edx, DWORD PTR -24[rbp]
	mov	BYTE PTR [rax], dl
.L93:
	sub	DWORD PTR -28[rbp], 1
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	je	.L94
	cmp	DWORD PTR -28[rbp], 0
	jns	.L95
.L94:
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -16[rbp], rdx
	mov	BYTE PTR [rax], 0
	jmp	.L96
.L92:
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -16[rbp], rdx
	mov	edx, DWORD PTR -24[rbp]
	mov	BYTE PTR [rax], dl
	sub	DWORD PTR -28[rbp], 1
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -8[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	DWORD PTR -24[rbp], eax
	cmp	DWORD PTR -24[rbp], 32
	je	.L97
	cmp	DWORD PTR -28[rbp], 0
	jns	.L92
.L97:
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -16[rbp], rdx
	mov	BYTE PTR [rax], 0
.L96:
	cmp	DWORD PTR -28[rbp], 0
	jns	.L90
	mov	rax, QWORD PTR -16[rbp]
	sub	rax, QWORD PTR -48[rbp]
.L88:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	add_extra_args, .-add_extra_args
	.section	.rodata
.LC36:
	.string	"a:r:hp:s"
.LC37:
	.string	"--retries"
.LC38:
	.string	"rb"
.LC39:
	.string	"Failed to open %s\n"
.LC40:
	.string	"%s%s"
.LC41:
	.string	"No response from Switch!"
.LC42:
	.string	"Invalid address\n"
.LC43:
	.string	"starting server"
.LC44:
	.string	"socket"
.LC45:
	.string	"bind listen socket"
.LC46:
	.string	"listen fcntl"
.LC47:
	.string	"listen"
.LC48:
	.string	"server active ..."
.LC49:
	.string	"accept"
.LC50:
	.string	"%s"
.LC51:
	.string	"exiting ... "
	.text
	.globl	main
	.type	main, @function
main:
.LFB19:
	.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	DWORD PTR -436[rbp], edi
	mov	QWORD PTR -448[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -376[rbp], 0
	mov	QWORD PTR -368[rbp], 0
	mov	QWORD PTR -360[rbp], 0
	mov	QWORD PTR -392[rbp], 0
	mov	QWORD PTR -352[rbp], 0
	mov	DWORD PTR -428[rbp], 10
	cmp	DWORD PTR -436[rbp], 1
	jg	.L99
	mov	eax, 0
	call	showHelp
	mov	eax, 1
	jmp	.L145
.L99:
	mov	DWORD PTR -384[rbp], 0
	lea	rdx, -384[rbp]
	mov	rsi, QWORD PTR -448[rbp]
	mov	eax, DWORD PTR -436[rbp]
	mov	r8, rdx
	lea	rcx, long_options.1[rip]
	lea	rdx, .LC36[rip]
	mov	edi, eax
	call	getopt_long@PLT
	mov	DWORD PTR -408[rbp], eax
	cmp	DWORD PTR -408[rbp], -1
	jne	.L101
	mov	eax, DWORD PTR optind[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR optind[rip], edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -448[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -336[rbp], rax
	cmp	QWORD PTR -336[rbp], 0
	je	.L102
	jmp	.L147
.L101:
	cmp	DWORD PTR -408[rbp], 115
	jg	.L104
	cmp	DWORD PTR -408[rbp], 97
	jl	.L99
	mov	eax, DWORD PTR -408[rbp]
	sub	eax, 97
	cmp	eax, 18
	ja	.L99
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L107[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L107[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L107:
	.long	.L111-.L107
	.long	.L99-.L107
	.long	.L99-.L107
	.long	.L99-.L107
	.long	.L99-.L107
	.long	.L99-.L107
	.long	.L99-.L107
	.long	.L110-.L107
	.long	.L99-.L107
	.long	.L99-.L107
	.long	.L99-.L107
	.long	.L99-.L107
	.long	.L99-.L107
	.long	.L99-.L107
	.long	.L99-.L107
	.long	.L109-.L107
	.long	.L99-.L107
	.long	.L108-.L107
	.long	.L106-.L107
	.text
.L104:
	cmp	DWORD PTR -408[rbp], 1000
	je	.L112
	jmp	.L105
.L111:
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR -376[rbp], rax
	jmp	.L105
.L108:
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 0
	mov	rax, QWORD PTR optarg[rip]
	lea	rcx, -392[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	strtoul@PLT
	mov	DWORD PTR -428[rbp], eax
	mov	rdx, QWORD PTR -392[rbp]
	mov	rax, QWORD PTR optarg[rip]
	cmp	rdx, rax
	jne	.L113
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 22
.L113:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L148
	lea	rdi, .LC37[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L109:
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR -368[rbp], rax
	jmp	.L105
.L106:
	mov	DWORD PTR server.0[rip], 1
	jmp	.L105
.L110:
	mov	eax, 0
	call	showHelp
	mov	eax, 1
	jmp	.L145
.L112:
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR -352[rbp], rax
	jmp	.L105
.L148:
	nop
.L105:
	jmp	.L99
.L102:
	mov	eax, 0
	call	showHelp
	mov	eax, 1
	jmp	.L145
.L147:
	mov	edx, 3072
	mov	esi, 0
	lea	rdi, cmdbuf[rip]
	call	memset@PLT
	mov	rax, QWORD PTR -336[rbp]
	lea	rsi, .LC38[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -328[rbp], rax
	cmp	QWORD PTR -328[rbp], 0
	jne	.L115
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -336[rbp]
	lea	rsi, .LC39[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L145
.L115:
	mov	rax, QWORD PTR -328[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -328[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	QWORD PTR -320[rbp], rax
	mov	rax, QWORD PTR -328[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	QWORD PTR -344[rbp], 0
	mov	rax, QWORD PTR -336[rbp]
	mov	esi, 47
	mov	rdi, rax
	call	strrchr@PLT
	mov	QWORD PTR -344[rbp], rax
	cmp	QWORD PTR -344[rbp], 0
	je	.L116
	add	QWORD PTR -344[rbp], 1
	jmp	.L117
.L116:
	mov	rax, QWORD PTR -336[rbp]
	mov	esi, 92
	mov	rdi, rax
	call	strrchr@PLT
	mov	QWORD PTR -344[rbp], rax
	cmp	QWORD PTR -344[rbp], 0
	je	.L118
	add	QWORD PTR -344[rbp], 1
	jmp	.L117
.L118:
	mov	rax, QWORD PTR -336[rbp]
	mov	QWORD PTR -344[rbp], rax
.L117:
	cmp	QWORD PTR -368[rbp], 0
	je	.L119
	mov	rax, QWORD PTR -368[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -312[rbp], rax
	mov	rdx, QWORD PTR -368[rbp]
	mov	rax, QWORD PTR -312[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 47
	jne	.L120
	mov	rax, QWORD PTR -344[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, QWORD PTR -312[rbp]
	add	rax, rdx
	add	rax, 1
	mov	QWORD PTR -312[rbp], rax
	mov	rax, QWORD PTR -312[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -360[rbp], rax
	mov	rcx, QWORD PTR -344[rbp]
	mov	rdx, QWORD PTR -368[rbp]
	mov	rax, QWORD PTR -360[rbp]
	lea	rsi, .LC40[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	jmp	.L121
.L120:
	mov	rax, QWORD PTR -368[rbp]
	mov	QWORD PTR -360[rbp], rax
	jmp	.L121
.L119:
	mov	rax, QWORD PTR -344[rbp]
	mov	QWORD PTR -360[rbp], rax
.L121:
	mov	DWORD PTR cmdlen[rip], 0
	mov	eax, DWORD PTR optind[rip]
	mov	DWORD PTR -424[rbp], eax
	jmp	.L122
.L125:
	mov	eax, DWORD PTR -424[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -448[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -404[rbp], eax
	mov	edx, DWORD PTR cmdlen[rip]
	mov	eax, DWORD PTR -404[rbp]
	add	eax, edx
	add	eax, 5
	cmp	eax, 3069
	ja	.L149
	mov	eax, DWORD PTR -424[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -448[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR cmdlen[rip]
	add	edx, 4
	mov	ecx, edx
	lea	rdx, cmdbuf[rip]
	add	rdx, rcx
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
	mov	edx, DWORD PTR -404[rbp]
	mov	eax, DWORD PTR cmdlen[rip]
	add	eax, edx
	add	eax, 1
	mov	DWORD PTR cmdlen[rip], eax
	add	DWORD PTR -424[rbp], 1
.L122:
	mov	eax, DWORD PTR -424[rbp]
	cmp	eax, DWORD PTR -436[rbp]
	jl	.L125
	jmp	.L124
.L149:
	nop
.L124:
	mov	eax, DWORD PTR cmdlen[rip]
	mov	ecx, eax
	mov	rax, QWORD PTR -352[rbp]
	mov	rdx, rax
	lea	rsi, cmdbuf[rip+4]
	mov	edi, ecx
	call	add_extra_args
	mov	DWORD PTR cmdlen[rip], eax
	mov	eax, DWORD PTR cmdlen[rip]
	mov	BYTE PTR cmdbuf[rip], al
	mov	eax, DWORD PTR cmdlen[rip]
	shr	eax, 8
	mov	BYTE PTR cmdbuf[rip+1], al
	mov	eax, DWORD PTR cmdlen[rip]
	shr	eax, 16
	mov	BYTE PTR cmdbuf[rip+2], al
	mov	eax, DWORD PTR cmdlen[rip]
	shr	eax, 24
	mov	BYTE PTR cmdbuf[rip+3], al
	mov	DWORD PTR -432[rbp], -1
	cmp	QWORD PTR -376[rbp], 0
	jne	.L126
	mov	eax, DWORD PTR -428[rbp]
	mov	edi, eax
	call	findSwitch
	mov	DWORD PTR -432[rbp], eax
	mov	eax, DWORD PTR -432[rbp]
	cmp	eax, -1
	jne	.L127
	lea	rdi, .LC41[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L145
.L126:
	lea	rdx, -384[rbp]
	mov	rax, QWORD PTR -376[rbp]
	mov	rcx, rdx
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	getaddrinfo@PLT
	test	eax, eax
	jne	.L127
	mov	rax, QWORD PTR -384[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	eax, DWORD PTR 4[rax]
	mov	DWORD PTR -432[rbp], eax
	mov	rax, QWORD PTR -384[rbp]
	mov	rdi, rax
	call	freeaddrinfo@PLT
.L127:
	mov	eax, DWORD PTR -432[rbp]
	cmp	eax, -1
	jne	.L129
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 16
	mov	esi, 1
	lea	rdi, .LC42[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L145
.L129:
	mov	eax, DWORD PTR -432[rbp]
	mov	rcx, QWORD PTR -328[rbp]
	mov	rdx, QWORD PTR -320[rbp]
	mov	rsi, QWORD PTR -360[rbp]
	mov	edi, eax
	call	sendNROFile
	mov	DWORD PTR -400[rbp], eax
	mov	rax, QWORD PTR -328[rbp]
	mov	rdi, rax
	call	fclose@PLT
	cmp	DWORD PTR -400[rbp], 0
	jne	.L130
	mov	eax, DWORD PTR server.0[rip]
	test	eax, eax
	je	.L130
	lea	rdi, .LC43[rip]
	call	puts@PLT
	lea	rax, -304[rbp]
	mov	edx, 16
	mov	esi, 48
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -304[rbp], 2
	mov	edi, 0
	call	htonl@PLT
	mov	DWORD PTR -300[rbp], eax
	mov	edi, 28771
	call	htons@PLT
	mov	WORD PTR -302[rbp], ax
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -420[rbp], eax
	cmp	DWORD PTR -420[rbp], 0
	jns	.L131
	lea	rdi, .LC44[rip]
	call	socket_error
	jmp	.L130
.L131:
	lea	rcx, -304[rbp]
	mov	eax, DWORD PTR -420[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	mov	DWORD PTR -396[rbp], eax
	cmp	DWORD PTR -396[rbp], 0
	je	.L133
	lea	rdi, .LC45[rip]
	call	socket_error
	jmp	.L130
.L133:
	mov	eax, DWORD PTR -420[rbp]
	mov	edi, eax
	call	set_socket_nonblocking
	cmp	eax, -1
	jne	.L134
	lea	rdi, .LC46[rip]
	call	socket_error
	jmp	.L130
.L134:
	mov	eax, DWORD PTR -420[rbp]
	mov	esi, 10
	mov	edi, eax
	call	listen@PLT
	mov	DWORD PTR -396[rbp], eax
	cmp	DWORD PTR -396[rbp], 0
	je	.L135
	lea	rdi, .LC47[rip]
	call	socket_error
	jmp	.L130
.L135:
	lea	rdi, .LC48[rip]
	call	puts@PLT
	mov	DWORD PTR -416[rbp], -1
	jmp	.L136
.L144:
	cmp	DWORD PTR -420[rbp], 0
	js	.L137
	cmp	DWORD PTR -416[rbp], 0
	jns	.L137
	mov	DWORD PTR -384[rbp], 16
	lea	rdx, -384[rbp]
	lea	rcx, -288[rbp]
	mov	eax, DWORD PTR -420[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -416[rbp], eax
	cmp	DWORD PTR -416[rbp], 0
	jns	.L138
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	je	.L137
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	je	.L137
	lea	rdi, .LC49[rip]
	call	socket_error
	mov	DWORD PTR -420[rbp], -1
	jmp	.L137
.L138:
	mov	eax, DWORD PTR -420[rbp]
	mov	edi, eax
	call	shutdownSocket
	mov	DWORD PTR -420[rbp], -1
.L137:
	cmp	DWORD PTR -416[rbp], 0
	js	.L136
	lea	rsi, -272[rbp]
	mov	eax, DWORD PTR -416[rbp]
	mov	ecx, 0
	mov	edx, 256
	mov	edi, eax
	call	recv@PLT
	mov	DWORD PTR -412[rbp], eax
	cmp	DWORD PTR -412[rbp], 0
	jle	.L141
	mov	eax, DWORD PTR -412[rbp]
	cdqe
	mov	BYTE PTR -272[rbp+rax], 0
	lea	rax, -272[rbp]
	mov	rsi, rax
	lea	rdi, .LC50[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L136
.L141:
	cmp	DWORD PTR -412[rbp], -1
	jne	.L143
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	je	.L143
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	je	.L143
	lea	rdi, .LC7[rip]
	call	perror@PLT
	mov	DWORD PTR -412[rbp], 0
.L143:
	cmp	DWORD PTR -412[rbp], 0
	jne	.L136
	mov	eax, DWORD PTR -416[rbp]
	mov	edi, eax
	call	shutdownSocket
	mov	DWORD PTR -416[rbp], -1
.L136:
	cmp	DWORD PTR -420[rbp], -1
	jne	.L144
	cmp	DWORD PTR -416[rbp], -1
	jne	.L144
	lea	rdi, .LC51[rip]
	call	puts@PLT
.L130:
	mov	eax, DWORD PTR -400[rbp]
.L145:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L146
	call	__stack_chk_fail@PLT
.L146:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	main, .-main
	.section	.rodata
	.align 8
	.type	__PRETTY_FUNCTION__.2, @object
	.size	__PRETTY_FUNCTION__.2, 12
__PRETTY_FUNCTION__.2:
	.string	"sendNROFile"
.LC52:
	.string	"address"
.LC53:
	.string	"retries"
.LC54:
	.string	"path"
.LC55:
	.string	"args"
.LC56:
	.string	"help"
.LC57:
	.string	"server"
	.section	.data.rel.local,"aw"
	.align 32
	.type	long_options.1, @object
	.size	long_options.1, 224
long_options.1:
	.quad	.LC52
	.long	1
	.zero	4
	.quad	0
	.long	97
	.zero	4
	.quad	.LC53
	.long	1
	.zero	4
	.quad	0
	.long	114
	.zero	4
	.quad	.LC54
	.long	1
	.zero	4
	.quad	0
	.long	112
	.zero	4
	.quad	.LC55
	.long	1
	.zero	4
	.quad	0
	.long	1000
	.zero	4
	.quad	.LC56
	.long	0
	.zero	4
	.quad	0
	.long	104
	.zero	4
	.quad	.LC57
	.long	0
	.zero	4
	.quad	server.0
	.long	1
	.zero	4
	.quad	0
	.long	0
	.zero	4
	.quad	0
	.long	0
	.zero	4
	.local	server.0
	.comm	server.0,4,4
	.section	.rodata
	.align 8
.LC25:
	.long	0
	.long	1079574528
	.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	"397154.c"
	.text
	.comm	cmdbuf,3072,4
	.global	cmdlen
	.bss
	.align	2
	.type	cmdlen, %object
	.size	cmdlen, 4
cmdlen:
	.space	4
	.text
	.align	2
	.global	shutdownSocket
	.syntax unified
	.arm
	.fpu softvfp
	.type	shutdownSocket, %function
shutdownSocket:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	close
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	shutdownSocket, .-shutdownSocket
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_socket_nonblocking, %function
set_socket_nonblocking:
	@ 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, #3
	ldr	r0, [fp, #-16]
	bl	fcntl
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L3
	mvn	r3, #0
	b	.L4
.L3:
	ldr	r3, [fp, #-12]
	orr	r3, r3, #2048
	mov	r2, r3
	mov	r1, #4
	ldr	r0, [fp, #-16]
	bl	fcntl
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L5
	mvn	r3, #0
	b	.L4
.L5:
	mov	r3, #0
.L4:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	set_socket_nonblocking, .-set_socket_nonblocking
	.align	2
	.global	socket_error
	.syntax unified
	.arm
	.fpu softvfp
	.type	socket_error, %function
socket_error:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	perror
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	socket_error, .-socket_error
	.align	2
	.global	timeval_subtract
	.syntax unified
	.arm
	.fpu softvfp
	.type	timeval_subtract, %function
timeval_subtract:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #36
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-28]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bge	.L8
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #4]
	sub	r3, r2, r3
	ldr	r2, .L11
	smull	r1, r2, r3, r2
	asr	r2, r2, #18
	asr	r3, r3, #31
	sub	r3, r2, r3
	add	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r0, [fp, #-8]
	ldr	r1, [fp, #-20]
	mov	r2, r1
	lsl	r2, r2, #5
	sub	r2, r2, r1
	lsl	r3, r2, #6
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r1
	lsl	r3, r3, #6
	rsb	r3, r3, #0
	add	r3, r0, r3
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	str	r3, [fp, #-12]
.L8:
	ldr	r3, [fp, #-28]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	sub	r3, r2, r3
	ldr	r2, .L11+4
	cmp	r3, r2
	ble	.L9
	ldr	r3, [fp, #-28]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	sub	r3, r2, r3
	ldr	r2, .L11
	smull	r1, r2, r3, r2
	asr	r2, r2, #18
	asr	r3, r3, #31
	sub	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r0, [fp, #-8]
	ldr	r1, [fp, #-16]
	mov	r2, r1
	lsl	r2, r2, #5
	sub	r2, r2, r1
	lsl	r3, r2, #6
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r1
	lsl	r3, r3, #6
	add	r3, r0, r3
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-16]
	sub	r3, r2, r3
	str	r3, [fp, #-12]
.L9:
	ldr	r3, [fp, #-28]
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	sub	r2, r2, r3
	ldr	r3, [fp, #-24]
	str	r2, [r3]
	ldr	r3, [fp, #-28]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	sub	r2, r2, r3
	ldr	r3, [fp, #-24]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-28]
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	movlt	r3, #1
	movge	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L12:
	.align	2
.L11:
	.word	1125899907
	.word	1000000
	.size	timeval_subtract, .-timeval_subtract
	.align	2
	.global	timeval_add
	.syntax unified
	.arm
	.fpu softvfp
	.type	timeval_add, %function
timeval_add:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	add	r2, r2, r3
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	add	r2, r2, r3
	ldr	r3, [fp, #-8]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	ldr	r2, .L16
	cmp	r3, r2
	ble	.L15
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	ldr	r1, .L16+4
	smull	r0, r1, r3, r1
	asr	r1, r1, #18
	asr	r3, r3, #31
	sub	r3, r1, r3
	add	r2, r2, r3
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r0, [r3, #4]
	ldr	r3, .L16+4
	smull	r2, r3, r0, r3
	asr	r2, r3, #18
	asr	r3, r0, #31
	sub	r1, r2, r3
	mov	r2, r1
	lsl	r2, r2, #5
	sub	r2, r2, r1
	lsl	r3, r2, #6
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r1
	lsl	r3, r3, #6
	sub	r1, r0, r3
	ldr	r3, [fp, #-8]
	str	r1, [r3, #4]
.L15:
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L17:
	.align	2
.L16:
	.word	1000000
	.word	1125899907
	.size	timeval_add, .-timeval_add
	.section	.rodata
	.align	2
.LC0:
	.ascii	"pinging switch\000"
	.align	2
.LC2:
	.ascii	"create send socket\000"
	.align	2
.LC3:
	.ascii	"create receive socket\000"
	.align	2
.LC4:
	.ascii	"bind receive socket\000"
	.align	2
.LC5:
	.ascii	"sendto\000"
	.align	2
.LC6:
	.ascii	"bootnx\000"
	.align	2
.LC1:
	.ascii	"nxboot\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	findSwitch, %function
findSwitch:
	@ args = 0, pretend = 0, frame = 376
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #384
	str	r0, [fp, #-376]
	ldr	r3, .L32
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L32+4
	bl	puts
	ldr	r2, .L32+8
	sub	r3, fp, #272
	ldm	r2, {r0, r1}
	str	r0, [r3]
	add	r3, r3, #4
	strh	r1, [r3]	@ movhi
	add	r3, r3, #2
	lsr	r2, r1, #16
	strb	r2, [r3]
	mov	r2, #0
	mov	r1, #2
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-356]
	ldr	r3, [fp, #-356]
	cmp	r3, #0
	bge	.L19
	ldr	r0, .L32+12
	bl	socket_error
.L19:
	mov	r3, #1
	str	r3, [fp, #-368]
	sub	r3, fp, #368
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #6
	mov	r1, #1
	ldr	r0, [fp, #-356]
	bl	setsockopt
	sub	r3, fp, #320
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #4
	sub	r3, r3, #316
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	ldr	r0, .L32+16
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4
	sub	r3, r3, #316
	strh	r2, [r3, #2]	@ movhi
	mvn	r3, #0
	str	r3, [fp, #-316]
	sub	r3, fp, #288
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #4
	sub	r3, r3, #284
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	ldr	r0, .L32+20
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4
	sub	r3, r3, #284
	strh	r2, [r3, #2]	@ movhi
	mov	r3, #0
	str	r3, [fp, #-284]
	mov	r2, #0
	mov	r1, #2
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-352]
	ldr	r3, [fp, #-352]
	cmp	r3, #0
	bge	.L20
	ldr	r0, .L32+24
	bl	socket_error
.L20:
	sub	r3, fp, #288
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-352]
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	bge	.L21
	ldr	r0, .L32+28
	bl	socket_error
.L21:
	ldr	r0, [fp, #-352]
	bl	set_socket_nonblocking
	sub	r3, fp, #344
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	ldr	r3, [fp, #-376]
	str	r3, [fp, #-360]
	b	.L22
.L27:
	sub	r3, fp, #336
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	sub	r2, fp, #336
	sub	r1, fp, #344
	sub	r3, fp, #328
	mov	r0, r3
	bl	timeval_subtract
	mov	r3, r0
	cmp	r3, #0
	beq	.L23
	sub	r3, fp, #272
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r1, fp, #272
	mov	r3, #16
	str	r3, [sp, #4]
	sub	r3, fp, #320
	str	r3, [sp]
	mov	r3, #0
	ldr	r0, [fp, #-356]
	bl	sendto
	mov	r3, r0
	cmp	r3, #0
	bge	.L24
	ldr	r0, .L32+32
	bl	socket_error
.L24:
	mov	r3, #0
	str	r3, [fp, #-328]
	ldr	r3, .L32+36
	str	r3, [fp, #-324]
	sub	r2, fp, #328
	sub	r1, fp, #336
	sub	r3, fp, #344
	mov	r0, r3
	bl	timeval_add
	ldr	r3, [fp, #-360]
	sub	r3, r3, #1
	str	r3, [fp, #-360]
.L23:
	mov	r3, #16
	str	r3, [fp, #-364]
	sub	r1, fp, #264
	sub	r3, fp, #364
	str	r3, [sp, #4]
	sub	r3, fp, #304
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #256
	ldr	r0, [fp, #-352]
	bl	recvfrom
	str	r0, [fp, #-348]
	ldr	r3, [fp, #-348]
	cmn	r3, #1
	beq	.L22
	sub	r3, fp, #264
	mov	r2, #6
	mov	r1, r3
	ldr	r0, .L32+40
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L31
.L22:
	ldr	r3, [fp, #-360]
	cmp	r3, #0
	bne	.L27
	b	.L26
.L31:
	nop
.L26:
	ldr	r3, [fp, #-360]
	cmp	r3, #0
	bne	.L28
	mvn	r3, #0
	str	r3, [fp, #-300]
.L28:
	ldr	r0, [fp, #-356]
	bl	shutdownSocket
	ldr	r0, [fp, #-352]
	bl	shutdownSocket
	ldr	r3, [fp, #-300]
	ldr	r2, .L32
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L30
	bl	__stack_chk_fail
.L30:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L33:
	.align	2
.L32:
	.word	.LC7
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	28280
	.word	28771
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	150000
	.word	.LC6
	.size	findSwitch, .-findSwitch
	.section	.rodata
	.align	2
.LC8:
	.ascii	"sendData\000"
	.text
	.align	2
	.global	sendData
	.syntax unified
	.arm
	.fpu softvfp
	.type	sendData, %function
sendData:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-12]
	b	.L35
.L39:
	ldr	r2, [fp, #-20]
	mov	r3, #0
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	send
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L41
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	beq	.L38
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-8]
	sub	r3, r2, r3
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	str	r3, [fp, #-12]
	b	.L35
.L38:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #11
	beq	.L35
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #11
	beq	.L35
	ldr	r0, .L42
	bl	socket_error
	b	.L37
.L35:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L39
	b	.L37
.L41:
	nop
.L37:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L43:
	.align	2
.L42:
	.word	.LC8
	.size	sendData, .-sendData
	.section	.rodata
	.align	2
.LC9:
	.ascii	"recvdata\000"
	.text
	.align	2
	.global	recvData
	.syntax unified
	.arm
	.fpu softvfp
	.type	recvData, %function
recvData:
	@ 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, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-12]
	b	.L45
.L49:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-36]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-24]
	bl	recv
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L46
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L47
.L46:
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	beq	.L48
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	sub	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	str	r3, [fp, #-12]
	b	.L45
.L48:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #11
	beq	.L45
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #11
	beq	.L45
	ldr	r0, .L51
	bl	socket_error
	b	.L47
.L45:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L49
.L47:
	ldr	r3, [fp, #-32]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L52:
	.align	2
.L51:
	.word	.LC9
	.size	recvData, .-recvData
	.section	.rodata
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	sendInt32LE
	.syntax unified
	.arm
	.fpu softvfp
	.type	sendInt32LE, %function
sendInt32LE:
	@ 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, .L56
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-20]
	and	r3, r3, #255
	strb	r3, [fp, #-12]
	ldr	r3, [fp, #-20]
	lsr	r3, r3, #8
	and	r3, r3, #255
	strb	r3, [fp, #-11]
	ldr	r3, [fp, #-20]
	lsr	r3, r3, #16
	and	r3, r3, #255
	strb	r3, [fp, #-10]
	ldr	r3, [fp, #-20]
	lsr	r3, r3, #24
	and	r3, r3, #255
	strb	r3, [fp, #-9]
	sub	r3, fp, #12
	mov	r2, r3
	mov	r1, #4
	ldr	r0, [fp, #-16]
	bl	sendData
	mov	r3, r0
	ldr	r2, .L56
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L55
	bl	__stack_chk_fail
.L55:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L57:
	.align	2
.L56:
	.word	.LC10
	.size	sendInt32LE, .-sendInt32LE
	.section	.rodata
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	recvInt32LE
	.syntax unified
	.arm
	.fpu softvfp
	.type	recvInt32LE, %function
recvInt32LE:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, .L63
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r1, fp, #12
	mov	r3, #0
	mov	r2, #4
	ldr	r0, [fp, #-24]
	bl	recvData
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #4
	bne	.L59
	ldrb	r3, [fp, #-12]	@ zero_extendqisi2
	mov	r1, r3
	ldrb	r3, [fp, #-11]	@ zero_extendqisi2
	lsl	r3, r3, #8
	add	r2, r3, #255
	ldrb	r3, [fp, #-10]	@ zero_extendqisi2
	lsl	r3, r3, #16
	add	r2, r2, r3
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	lsl	r3, r3, #24
	add	r3, r2, r3
	and	r2, r1, r3
	ldr	r3, [fp, #-28]
	str	r2, [r3]
	mov	r3, #0
	b	.L61
.L59:
	mvn	r3, #0
.L61:
	ldr	r2, .L63
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L62
	bl	__stack_chk_fail
.L62:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L64:
	.align	2
.L63:
	.word	.LC11
	.size	recvInt32LE, .-recvInt32LE
	.comm	in,16384,4
	.comm	out,16384,4
	.section	.rodata
	.align	2
.LC12:
	.ascii	"1.2.11\000"
	.align	2
.LC13:
	.ascii	"create connection socket\000"
	.align	2
.LC14:
	.ascii	"Connection to %s failed\012\000"
	.align	2
.LC15:
	.ascii	"Failed sending filename length\012\000"
	.align	2
.LC16:
	.ascii	"Failed sending filename\012\000"
	.align	2
.LC17:
	.ascii	"Failed sending file length\012\000"
	.align	2
.LC18:
	.ascii	"Invalid response\012\000"
	.align	2
.LC19:
	.ascii	"Failed to create file\012\000"
	.align	2
.LC20:
	.ascii	"Insufficient space\012\000"
	.align	2
.LC21:
	.ascii	"Insufficient memory\012\000"
	.align	2
.LC22:
	.ascii	"Sending %s, %zd bytes\012\000"
	.align	2
.LC23:
	.ascii	"the_stack_data/397154.c\000"
	.align	2
.LC24:
	.ascii	"ret != Z_STREAM_ERROR\000"
	.align	2
.LC25:
	.ascii	"Failed sending chunk size\012\000"
	.align	2
.LC26:
	.ascii	"Failed sending %s\012\000"
	.align	2
.LC27:
	.ascii	"strm.avail_in == 0\000"
	.align	2
.LC28:
	.ascii	"ret == Z_STREAM_END\000"
	.global	__aeabi_ui2d
	.global	__aeabi_dmul
	.global	__aeabi_d2f
	.global	__aeabi_ui2f
	.global	__aeabi_fdiv
	.global	__aeabi_f2d
	.align	2
.LC29:
	.ascii	"%zu sent (%.2f%%), %zd blocks\012\000"
	.align	2
.LC30:
	.ascii	"Failed sending command line\012\000"
	.align	2
.LC31:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	sendNROFile
	.syntax unified
	.arm
	.fpu softvfp
	.type	sendNROFile, %function
sendNROFile:
	@ args = 0, pretend = 0, frame = 128
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #140
	str	r0, [fp, #-128]
	str	r1, [fp, #-132]
	str	r2, [fp, #-136]
	str	r3, [fp, #-140]
	ldr	r3, .L95
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-120]
	mov	r3, #0
	str	r3, [fp, #-56]
	mov	r3, #0
	str	r3, [fp, #-52]
	mov	r3, #0
	str	r3, [fp, #-48]
	sub	r0, fp, #88
	mov	r3, #56
	ldr	r2, .L95+4
	mvn	r1, #0
	bl	deflateInit_
	str	r0, [fp, #-108]
	ldr	r3, [fp, #-108]
	cmp	r3, #0
	beq	.L66
	ldr	r3, [fp, #-108]
	b	.L92
.L66:
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-104]
	ldr	r3, [fp, #-104]
	cmp	r3, #0
	bge	.L68
	ldr	r0, .L95+8
	bl	socket_error
	mvn	r3, #0
	b	.L92
.L68:
	sub	r3, fp, #32
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #2
	strh	r3, [fp, #-32]	@ movhi
	ldr	r0, .L95+12
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-30]	@ movhi
	ldr	r3, [fp, #-128]
	str	r3, [fp, #-28]
	sub	r3, fp, #32
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-104]
	bl	connect
	mov	r3, r0
	cmp	r3, #0
	bge	.L69
	ldr	r3, [fp, #-128]
	str	r3, [fp, #-124]
	ldr	r3, .L95+16
	ldr	r4, [r3]
	ldr	r0, [fp, #-124]
	bl	inet_ntoa
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L95+20
	mov	r0, r4
	bl	fprintf
	mvn	r3, #0
	b	.L92
.L69:
	ldr	r0, [fp, #-132]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-100]
	ldr	r3, [fp, #-100]
	mov	r1, r3
	ldr	r0, [fp, #-104]
	bl	sendInt32LE
	mov	r3, r0
	cmp	r3, #0
	beq	.L70
	ldr	r3, .L95+16
	ldr	r3, [r3]
	mov	r2, #31
	mov	r1, #1
	ldr	r0, .L95+24
	bl	fwrite
	mvn	r3, #0
	str	r3, [fp, #-120]
	b	.L71
.L70:
	ldr	r2, [fp, #-132]
	ldr	r1, [fp, #-100]
	ldr	r0, [fp, #-104]
	bl	sendData
	mov	r3, r0
	cmp	r3, #0
	beq	.L72
	ldr	r3, .L95+16
	ldr	r3, [r3]
	mov	r2, #24
	mov	r1, #1
	ldr	r0, .L95+28
	bl	fwrite
	mvn	r3, #0
	str	r3, [fp, #-120]
	b	.L71
.L72:
	ldr	r1, [fp, #-136]
	ldr	r0, [fp, #-104]
	bl	sendInt32LE
	mov	r3, r0
	cmp	r3, #0
	beq	.L73
	ldr	r3, .L95+16
	ldr	r3, [r3]
	mov	r2, #27
	mov	r1, #1
	ldr	r0, .L95+32
	bl	fwrite
	mvn	r3, #0
	str	r3, [fp, #-120]
	b	.L71
.L73:
	sub	r3, fp, #124
	mov	r1, r3
	ldr	r0, [fp, #-104]
	bl	recvInt32LE
	mov	r3, r0
	cmp	r3, #0
	beq	.L74
	ldr	r3, .L95+16
	ldr	r3, [r3]
	mov	r2, #17
	mov	r1, #1
	ldr	r0, .L95+36
	bl	fwrite
	mov	r3, #1
	str	r3, [fp, #-120]
	b	.L71
.L74:
	ldr	r3, [fp, #-124]
	cmp	r3, #0
	beq	.L75
	ldr	r3, [fp, #-124]
	cmn	r3, #1
	beq	.L76
	cmp	r3, #0
	bge	.L77
	cmn	r3, #3
	beq	.L78
	cmn	r3, #2
	beq	.L79
	b	.L77
.L76:
	ldr	r3, .L95+16
	ldr	r3, [r3]
	mov	r2, #22
	mov	r1, #1
	ldr	r0, .L95+40
	bl	fwrite
	b	.L77
.L79:
	ldr	r3, .L95+16
	ldr	r3, [r3]
	mov	r2, #19
	mov	r1, #1
	ldr	r0, .L95+44
	bl	fwrite
	b	.L77
.L78:
	ldr	r3, .L95+16
	ldr	r3, [r3]
	mov	r2, #20
	mov	r1, #1
	ldr	r0, .L95+48
	bl	fwrite
	nop
.L77:
	mov	r3, #1
	str	r3, [fp, #-120]
	b	.L71
.L75:
	ldr	r2, [fp, #-136]
	ldr	r1, [fp, #-132]
	ldr	r0, .L95+52
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-116]
	mov	r3, #0
	str	r3, [fp, #-112]
.L89:
	ldr	r3, [fp, #-140]
	mov	r2, #16384
	mov	r1, #1
	ldr	r0, .L95+56
	bl	fread
	mov	r3, r0
	str	r3, [fp, #-84]
	ldr	r0, [fp, #-140]
	bl	ferror
	mov	r3, r0
	cmp	r3, #0
	beq	.L80
	sub	r3, fp, #88
	mov	r0, r3
	bl	deflateEnd
	mvn	r3, #0
	b	.L92
.L80:
	ldr	r0, [fp, #-140]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L81
	mov	r3, #4
	b	.L82
.L81:
	mov	r3, #0
.L82:
	str	r3, [fp, #-96]
	ldr	r3, .L95+56
	str	r3, [fp, #-88]
.L87:
	mov	r3, #16384
	str	r3, [fp, #-72]
	ldr	r3, .L95+60
	str	r3, [fp, #-76]
	sub	r3, fp, #88
	ldr	r1, [fp, #-96]
	mov	r0, r3
	bl	deflate
	str	r0, [fp, #-108]
	ldr	r3, [fp, #-108]
	cmn	r3, #2
	bne	.L83
	ldr	r3, .L95+64
	mov	r2, #380
	ldr	r1, .L95+68
	ldr	r0, .L95+72
	bl	__assert_fail
.L83:
	ldr	r3, [fp, #-72]
	rsb	r3, r3, #16384
	str	r3, [fp, #-92]
	ldr	r3, [fp, #-92]
	cmp	r3, #0
	beq	.L84
	ldr	r1, [fp, #-92]
	ldr	r0, [fp, #-104]
	bl	sendInt32LE
	mov	r3, r0
	cmp	r3, #0
	beq	.L85
	ldr	r3, .L95+16
	ldr	r3, [r3]
	mov	r2, #26
	mov	r1, #1
	ldr	r0, .L95+76
	bl	fwrite
	mvn	r3, #0
	str	r3, [fp, #-120]
	b	.L71
.L85:
	ldr	r3, [fp, #-92]
	ldr	r2, .L95+60
	mov	r1, r3
	ldr	r0, [fp, #-104]
	bl	sendData
	mov	r3, r0
	cmp	r3, #0
	beq	.L86
	ldr	r3, .L95+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-132]
	ldr	r1, .L95+80
	mov	r0, r3
	bl	fprintf
	mov	r3, #1
	str	r3, [fp, #-120]
	sub	r3, fp, #88
	mov	r0, r3
	bl	deflateEnd
	b	.L71
.L86:
	ldr	r2, [fp, #-116]
	ldr	r3, [fp, #-92]
	add	r3, r2, r3
	str	r3, [fp, #-116]
	ldr	r3, [fp, #-112]
	add	r3, r3, #1
	str	r3, [fp, #-112]
.L84:
	ldr	r3, [fp, #-72]
	cmp	r3, #0
	beq	.L87
	ldr	r3, [fp, #-84]
	cmp	r3, #0
	beq	.L88
	ldr	r3, .L95+64
	ldr	r2, .L95+84
	ldr	r1, .L95+68
	ldr	r0, .L95+88
	bl	__assert_fail
.L88:
	ldr	r3, [fp, #-96]
	cmp	r3, #4
	bne	.L89
	ldr	r3, [fp, #-108]
	cmp	r3, #1
	beq	.L90
	ldr	r3, .L95+64
	mov	r2, #404
	ldr	r1, .L95+68
	ldr	r0, .L95+92
	bl	__assert_fail
.L90:
	sub	r3, fp, #88
	mov	r0, r3
	bl	deflateEnd
	ldr	r0, [fp, #-116]
	bl	__aeabi_ui2d
	mov	r2, #0
	ldr	r3, .L95+96
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r4, r0
	ldr	r0, [fp, #-136]
	bl	__aeabi_ui2f
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fdiv
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-112]
	str	r1, [sp]
	ldr	r1, [fp, #-116]
	ldr	r0, .L95+100
	bl	printf
	sub	r3, fp, #124
	mov	r1, r3
	ldr	r0, [fp, #-104]
	bl	recvInt32LE
	mov	r3, r0
	cmp	r3, #0
	beq	.L91
	ldr	r3, .L95+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-132]
	ldr	r1, .L95+80
	mov	r0, r3
	bl	fprintf
	mov	r3, #1
	str	r3, [fp, #-120]
	b	.L71
.L91:
	ldr	r3, .L95+104
	ldr	r3, [r3]
	add	r3, r3, #4
	ldr	r2, .L95+108
	mov	r1, r3
	ldr	r0, [fp, #-104]
	bl	sendData
	mov	r3, r0
	cmp	r3, #0
	beq	.L94
	ldr	r3, .L95+16
	ldr	r3, [r3]
	mov	r2, #28
	mov	r1, #1
	ldr	r0, .L95+112
	bl	fwrite
	mov	r3, #1
	str	r3, [fp, #-120]
	b	.L71
.L94:
	nop
.L71:
	ldr	r0, [fp, #-104]
	bl	shutdownSocket
	ldr	r3, [fp, #-120]
.L92:
	ldr	r2, .L95
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L93
	bl	__stack_chk_fail
.L93:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L96:
	.align	2
.L95:
	.word	.LC31
	.word	.LC12
	.word	.LC13
	.word	28280
	.word	stderr
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	in
	.word	out
	.word	__PRETTY_FUNCTION__.7254
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	401
	.word	.LC27
	.word	.LC28
	.word	1079574528
	.word	.LC29
	.word	cmdlen
	.word	cmdbuf
	.word	.LC30
	.size	sendNROFile, .-sendNROFile
	.section	.rodata
	.align	2
.LC32:
	.ascii	"Usage: nxlink [options] nrofile\012\000"
	.align	2
.LC33:
	.ascii	"--help,    -h   Display this information\000"
	.align	2
.LC34:
	.ascii	"--address, -a   Hostname or IPv4 address of Switch\000"
	.align	2
.LC35:
	.ascii	"--retries, -r   number of times to ping before givi"
	.ascii	"ng up\000"
	.align	2
.LC36:
	.ascii	"--path   , -p   set upload path for file\000"
	.align	2
.LC37:
	.ascii	"--args          args to send to nro\000"
	.align	2
.LC38:
	.ascii	"--server , -s   start server after completed upload"
	.ascii	"\000"
	.align	2
.LC39:
	.ascii	"\012\000"
	.text
	.align	2
	.global	showHelp
	.syntax unified
	.arm
	.fpu softvfp
	.type	showHelp, %function
showHelp:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L98
	bl	puts
	ldr	r0, .L98+4
	bl	puts
	ldr	r0, .L98+8
	bl	puts
	ldr	r0, .L98+12
	bl	puts
	ldr	r0, .L98+16
	bl	puts
	ldr	r0, .L98+20
	bl	puts
	ldr	r0, .L98+24
	bl	puts
	ldr	r0, .L98+28
	bl	puts
	nop
	pop	{fp, pc}
.L99:
	.align	2
.L98:
	.word	.LC32
	.word	.LC33
	.word	.LC34
	.word	.LC35
	.word	.LC36
	.word	.LC37
	.word	.LC38
	.word	.LC39
	.size	showHelp, .-showHelp
	.align	2
	.global	add_extra_args
	.syntax unified
	.arm
	.fpu softvfp
	.type	add_extra_args, %function
add_extra_args:
	@ 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, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	bne	.L101
	ldr	r3, [fp, #-32]
	b	.L102
.L101:
	ldr	r0, [fp, #-40]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-16]
.L104:
	ldr	r3, [fp, #-16]
	add	r2, r3, #1
	str	r2, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-12]
	cmp	r3, #32
	bne	.L103
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bge	.L104
.L103:
	ldr	r3, [fp, #-12]
	cmp	r3, #34
	beq	.L105
	ldr	r3, [fp, #-12]
	cmp	r3, #39
	bne	.L106
.L105:
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-8]
.L109:
	ldr	r3, [fp, #-16]
	add	r2, r3, #1
	str	r2, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	beq	.L107
	ldr	r3, [fp, #-20]
	add	r2, r3, #1
	str	r2, [fp, #-20]
	ldr	r2, [fp, #-12]
	and	r2, r2, #255
	strb	r2, [r3]
.L107:
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	beq	.L108
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bge	.L109
.L108:
	ldr	r3, [fp, #-20]
	add	r2, r3, #1
	str	r2, [fp, #-20]
	mov	r2, #0
	strb	r2, [r3]
	b	.L110
.L106:
	ldr	r3, [fp, #-20]
	add	r2, r3, #1
	str	r2, [fp, #-20]
	ldr	r2, [fp, #-12]
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-16]
	add	r2, r3, #1
	str	r2, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #32
	beq	.L111
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bge	.L106
.L111:
	ldr	r3, [fp, #-20]
	add	r2, r3, #1
	str	r2, [fp, #-20]
	mov	r2, #0
	strb	r2, [r3]
.L110:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bge	.L104
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-36]
	sub	r3, r2, r3
.L102:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	add_extra_args, .-add_extra_args
	.section	.rodata
	.align	2
.LC40:
	.ascii	"a:r:hp:s\000"
	.align	2
.LC41:
	.ascii	"--retries\000"
	.align	2
.LC42:
	.ascii	"rb\000"
	.align	2
.LC43:
	.ascii	"Failed to open %s\012\000"
	.align	2
.LC44:
	.ascii	"%s%s\000"
	.align	2
.LC45:
	.ascii	"No response from Switch!\000"
	.align	2
.LC46:
	.ascii	"Invalid address\012\000"
	.align	2
.LC47:
	.ascii	"starting server\000"
	.align	2
.LC48:
	.ascii	"socket\000"
	.align	2
.LC49:
	.ascii	"bind listen socket\000"
	.align	2
.LC50:
	.ascii	"listen fcntl\000"
	.align	2
.LC51:
	.ascii	"listen\000"
	.align	2
.LC52:
	.ascii	"server active ...\000"
	.align	2
.LC53:
	.ascii	"accept\000"
	.align	2
.LC54:
	.ascii	"%s\000"
	.align	2
.LC55:
	.ascii	"exiting ... \000"
	.align	2
.LC56:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 384
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #392
	str	r0, [fp, #-384]
	str	r1, [fp, #-388]
	ldr	r3, .L164
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-368]
	mov	r3, #0
	str	r3, [fp, #-364]
	mov	r3, #0
	str	r3, [fp, #-360]
	mov	r3, #0
	str	r3, [fp, #-380]
	mov	r3, #0
	str	r3, [fp, #-356]
	mov	r3, #10
	str	r3, [fp, #-352]
	ldr	r3, [fp, #-384]
	cmp	r3, #1
	bgt	.L113
	bl	showHelp
	mov	r3, #1
	b	.L159
.L113:
	mov	r3, #0
	str	r3, [fp, #-372]
	sub	r3, fp, #372
	str	r3, [sp]
	ldr	r3, .L164+4
	ldr	r2, .L164+8
	ldr	r1, [fp, #-388]
	ldr	r0, [fp, #-384]
	bl	getopt_long
	str	r0, [fp, #-328]
	ldr	r3, [fp, #-328]
	cmn	r3, #1
	bne	.L115
	ldr	r3, .L164+12
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L164+12
	str	r2, [r1]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-388]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-324]
	ldr	r3, [fp, #-324]
	cmp	r3, #0
	beq	.L116
	b	.L161
.L115:
	ldr	r3, [fp, #-328]
	cmp	r3, #115
	bgt	.L118
	ldr	r3, [fp, #-328]
	cmp	r3, #97
	blt	.L113
	ldr	r3, [fp, #-328]
	sub	r3, r3, #97
	cmp	r3, #18
	ldrls	pc, [pc, r3, asl #2]
	b	.L113
.L121:
	.word	.L125
	.word	.L113
	.word	.L113
	.word	.L113
	.word	.L113
	.word	.L113
	.word	.L113
	.word	.L124
	.word	.L113
	.word	.L113
	.word	.L113
	.word	.L113
	.word	.L113
	.word	.L113
	.word	.L113
	.word	.L123
	.word	.L113
	.word	.L122
	.word	.L120
.L118:
	ldr	r3, [fp, #-328]
	cmp	r3, #1000
	beq	.L126
	b	.L119
.L125:
	ldr	r3, .L164+16
	ldr	r3, [r3]
	str	r3, [fp, #-368]
	b	.L119
.L122:
	bl	__errno_location
	mov	r3, r0
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L164+16
	ldr	r3, [r3]
	sub	r1, fp, #380
	mov	r2, #0
	mov	r0, r3
	bl	strtoul
	mov	r3, r0
	str	r3, [fp, #-352]
	ldr	r2, [fp, #-380]
	ldr	r3, .L164+16
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L127
	bl	__errno_location
	mov	r3, r0
	mov	r2, #22
	str	r2, [r3]
.L127:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L162
	ldr	r0, .L164+20
	bl	perror
	mov	r0, #1
	bl	exit
.L123:
	ldr	r3, .L164+16
	ldr	r3, [r3]
	str	r3, [fp, #-364]
	b	.L119
.L120:
	ldr	r3, .L164+24
	mov	r2, #1
	str	r2, [r3]
	b	.L119
.L124:
	bl	showHelp
	mov	r3, #1
	b	.L159
.L126:
	ldr	r3, .L164+16
	ldr	r3, [r3]
	str	r3, [fp, #-356]
	b	.L119
.L162:
	nop
.L119:
	b	.L113
.L116:
	bl	showHelp
	mov	r3, #1
	b	.L159
.L161:
	mov	r2, #3072
	mov	r1, #0
	ldr	r0, .L164+28
	bl	memset
	ldr	r1, .L164+32
	ldr	r0, [fp, #-324]
	bl	fopen
	str	r0, [fp, #-320]
	ldr	r3, [fp, #-320]
	cmp	r3, #0
	bne	.L129
	ldr	r3, .L164+36
	ldr	r3, [r3]
	ldr	r2, [fp, #-324]
	ldr	r1, .L164+40
	mov	r0, r3
	bl	fprintf
	mvn	r3, #0
	b	.L159
.L129:
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-320]
	bl	fseek
	ldr	r0, [fp, #-320]
	bl	ftell
	mov	r3, r0
	str	r3, [fp, #-316]
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-320]
	bl	fseek
	mov	r3, #0
	str	r3, [fp, #-348]
	mov	r1, #47
	ldr	r0, [fp, #-324]
	bl	strrchr
	str	r0, [fp, #-348]
	ldr	r3, [fp, #-348]
	cmp	r3, #0
	beq	.L130
	ldr	r3, [fp, #-348]
	add	r3, r3, #1
	str	r3, [fp, #-348]
	b	.L131
.L130:
	mov	r1, #92
	ldr	r0, [fp, #-324]
	bl	strrchr
	str	r0, [fp, #-348]
	ldr	r3, [fp, #-348]
	cmp	r3, #0
	beq	.L132
	ldr	r3, [fp, #-348]
	add	r3, r3, #1
	str	r3, [fp, #-348]
	b	.L131
.L132:
	ldr	r3, [fp, #-324]
	str	r3, [fp, #-348]
.L131:
	ldr	r3, [fp, #-364]
	cmp	r3, #0
	beq	.L133
	ldr	r0, [fp, #-364]
	bl	strlen
	str	r0, [fp, #-312]
	ldr	r2, [fp, #-364]
	ldr	r3, [fp, #-312]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	bne	.L134
	ldr	r0, [fp, #-348]
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-312]
	add	r3, r2, r3
	add	r3, r3, #1
	str	r3, [fp, #-312]
	ldr	r0, [fp, #-312]
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-360]
	ldr	r3, [fp, #-348]
	ldr	r2, [fp, #-364]
	ldr	r1, .L164+44
	ldr	r0, [fp, #-360]
	bl	sprintf
	b	.L135
.L134:
	ldr	r3, [fp, #-364]
	str	r3, [fp, #-360]
	b	.L135
.L133:
	ldr	r3, [fp, #-348]
	str	r3, [fp, #-360]
.L135:
	ldr	r3, .L164+48
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L164+12
	ldr	r3, [r3]
	str	r3, [fp, #-344]
	b	.L136
.L139:
	ldr	r3, [fp, #-344]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-388]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-308]
	ldr	r3, .L164+48
	ldr	r2, [r3]
	ldr	r3, [fp, #-308]
	add	r3, r2, r3
	add	r3, r3, #5
	ldr	r2, .L164+52
	cmp	r3, r2
	bhi	.L163
	ldr	r3, .L164+48
	ldr	r3, [r3]
	add	r3, r3, #4
	ldr	r2, .L164+28
	add	r0, r3, r2
	ldr	r3, [fp, #-344]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-388]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	bl	strcpy
	ldr	r2, [fp, #-308]
	ldr	r3, .L164+48
	ldr	r3, [r3]
	add	r3, r2, r3
	add	r3, r3, #1
	ldr	r2, .L164+48
	str	r3, [r2]
	ldr	r3, [fp, #-344]
	add	r3, r3, #1
	str	r3, [fp, #-344]
.L136:
	ldr	r2, [fp, #-344]
	ldr	r3, [fp, #-384]
	cmp	r2, r3
	blt	.L139
	b	.L138
.L163:
	nop
.L138:
	ldr	r3, .L164+48
	ldr	r3, [r3]
	ldr	r2, [fp, #-356]
	ldr	r1, .L164+56
	mov	r0, r3
	bl	add_extra_args
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L164+48
	str	r2, [r3]
	ldr	r3, .L164+48
	ldr	r3, [r3]
	and	r2, r3, #255
	ldr	r3, .L164+28
	strb	r2, [r3]
	ldr	r3, .L164+48
	ldr	r3, [r3]
	lsr	r3, r3, #8
	and	r2, r3, #255
	ldr	r3, .L164+28
	strb	r2, [r3, #1]
	ldr	r3, .L164+48
	ldr	r3, [r3]
	lsr	r3, r3, #16
	and	r2, r3, #255
	ldr	r3, .L164+28
	strb	r2, [r3, #2]
	ldr	r3, .L164+48
	ldr	r3, [r3]
	lsr	r3, r3, #24
	and	r2, r3, #255
	ldr	r3, .L164+28
	strb	r2, [r3, #3]
	mvn	r3, #0
	str	r3, [fp, #-376]
	ldr	r3, [fp, #-368]
	cmp	r3, #0
	bne	.L140
	ldr	r0, [fp, #-352]
	bl	findSwitch
	mov	r3, r0
	str	r3, [fp, #-376]
	ldr	r3, [fp, #-376]
	cmn	r3, #1
	bne	.L141
	ldr	r0, .L164+60
	bl	puts
	mov	r3, #1
	b	.L159
.L140:
	sub	r3, fp, #372
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-368]
	bl	getaddrinfo
	mov	r3, r0
	cmp	r3, #0
	bne	.L141
	ldr	r3, [fp, #-372]
	ldr	r3, [r3, #20]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-376]
	ldr	r3, [fp, #-372]
	mov	r0, r3
	bl	freeaddrinfo
.L141:
	ldr	r3, [fp, #-376]
	cmn	r3, #1
	bne	.L143
	ldr	r3, .L164+36
	ldr	r3, [r3]
	mov	r2, #16
	mov	r1, #1
	ldr	r0, .L164+64
	bl	fwrite
	mov	r3, #1
	b	.L159
.L143:
	ldr	r0, [fp, #-376]
	ldr	r3, [fp, #-320]
	ldr	r2, [fp, #-316]
	ldr	r1, [fp, #-360]
	bl	sendNROFile
	str	r0, [fp, #-304]
	ldr	r0, [fp, #-320]
	bl	fclose
	ldr	r3, [fp, #-304]
	cmp	r3, #0
	bne	.L144
	ldr	r3, .L164+24
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L144
	ldr	r0, .L164+68
	bl	puts
	sub	r3, fp, #296
	mov	r2, #16
	mov	r1, #48
	mov	r0, r3
	bl	memset
	sub	r3, fp, #4
	sub	r3, r3, #292
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	mov	r0, #0
	bl	htonl
	mov	r3, r0
	str	r3, [fp, #-292]
	ldr	r0, .L164+72
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4
	sub	r3, r3, #292
	strh	r2, [r3, #2]	@ movhi
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-340]
	ldr	r3, [fp, #-340]
	cmp	r3, #0
	bge	.L145
	ldr	r0, .L164+76
	bl	socket_error
	b	.L144
.L145:
	sub	r3, fp, #296
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-340]
	bl	bind
	str	r0, [fp, #-300]
	ldr	r3, [fp, #-300]
	cmp	r3, #0
	beq	.L147
	ldr	r0, .L164+80
	bl	socket_error
	b	.L144
.L147:
	ldr	r0, [fp, #-340]
	bl	set_socket_nonblocking
	mov	r3, r0
	cmn	r3, #1
	bne	.L148
	ldr	r0, .L164+84
	bl	socket_error
	b	.L144
.L148:
	mov	r1, #10
	ldr	r0, [fp, #-340]
	bl	listen
	str	r0, [fp, #-300]
	ldr	r3, [fp, #-300]
	cmp	r3, #0
	beq	.L149
	ldr	r0, .L164+88
	bl	socket_error
	b	.L144
.L149:
	ldr	r0, .L164+92
	bl	puts
	mvn	r3, #0
	str	r3, [fp, #-336]
	b	.L150
.L158:
	ldr	r3, [fp, #-340]
	cmp	r3, #0
	blt	.L151
	ldr	r3, [fp, #-336]
	cmp	r3, #0
	bge	.L151
	mov	r3, #16
	str	r3, [fp, #-372]
	sub	r2, fp, #372
	sub	r3, fp, #280
	mov	r1, r3
	ldr	r0, [fp, #-340]
	bl	accept
	str	r0, [fp, #-336]
	ldr	r3, [fp, #-336]
	cmp	r3, #0
	bge	.L152
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #11
	beq	.L151
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #11
	beq	.L151
	ldr	r0, .L164+96
	bl	socket_error
	mvn	r3, #0
	str	r3, [fp, #-340]
	b	.L151
.L152:
	ldr	r0, [fp, #-340]
	bl	shutdownSocket
	mvn	r3, #0
	str	r3, [fp, #-340]
.L151:
	ldr	r3, [fp, #-336]
	cmp	r3, #0
	blt	.L150
	sub	r1, fp, #264
	mov	r3, #0
	mov	r2, #256
	ldr	r0, [fp, #-336]
	bl	recv
	str	r0, [fp, #-332]
	ldr	r3, [fp, #-332]
	cmp	r3, #0
	ble	.L155
	sub	r2, fp, #264
	ldr	r3, [fp, #-332]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #264
	mov	r1, r3
	ldr	r0, .L164+100
	bl	printf
	b	.L150
.L155:
	ldr	r3, [fp, #-332]
	cmn	r3, #1
	bne	.L157
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #11
	beq	.L157
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #11
	beq	.L157
	ldr	r0, .L164+104
	bl	perror
	mov	r3, #0
	str	r3, [fp, #-332]
.L157:
	ldr	r3, [fp, #-332]
	cmp	r3, #0
	bne	.L150
	ldr	r0, [fp, #-336]
	bl	shutdownSocket
	mvn	r3, #0
	str	r3, [fp, #-336]
.L150:
	ldr	r3, [fp, #-340]
	cmn	r3, #1
	bne	.L158
	ldr	r3, [fp, #-336]
	cmn	r3, #1
	bne	.L158
	ldr	r0, .L164+108
	bl	puts
.L144:
	ldr	r3, [fp, #-304]
.L159:
	ldr	r2, .L164
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L160
	bl	__stack_chk_fail
.L160:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L165:
	.align	2
.L164:
	.word	.LC56
	.word	long_options.7291
	.word	.LC40
	.word	optind
	.word	optarg
	.word	.LC41
	.word	server.7290
	.word	cmdbuf
	.word	.LC42
	.word	stderr
	.word	.LC43
	.word	.LC44
	.word	cmdlen
	.word	3069
	.word	cmdbuf+4
	.word	.LC45
	.word	.LC46
	.word	.LC47
	.word	28771
	.word	.LC48
	.word	.LC49
	.word	.LC50
	.word	.LC51
	.word	.LC52
	.word	.LC53
	.word	.LC54
	.word	.LC9
	.word	.LC55
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.7254, %object
	.size	__PRETTY_FUNCTION__.7254, 12
__PRETTY_FUNCTION__.7254:
	.ascii	"sendNROFile\000"
	.align	2
.LC57:
	.ascii	"address\000"
	.align	2
.LC58:
	.ascii	"retries\000"
	.align	2
.LC59:
	.ascii	"path\000"
	.align	2
.LC60:
	.ascii	"args\000"
	.align	2
.LC61:
	.ascii	"help\000"
	.align	2
.LC62:
	.ascii	"server\000"
	.data
	.align	2
	.type	long_options.7291, %object
	.size	long_options.7291, 112
long_options.7291:
	.word	.LC57
	.word	1
	.word	0
	.word	97
	.word	.LC58
	.word	1
	.word	0
	.word	114
	.word	.LC59
	.word	1
	.word	0
	.word	112
	.word	.LC60
	.word	1
	.word	0
	.word	1000
	.word	.LC61
	.word	0
	.word	0
	.word	104
	.word	.LC62
	.word	0
	.word	server.7290
	.word	1
	.word	0
	.word	0
	.word	0
	.word	0
	.local	server.7290
	.comm	server.7290,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
