	.file	"222269.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Alarma recibida "
	.text
	.globl	handler
	.type	handler, @function
handler:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC0[rip]
	call	puts@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	handler, .-handler
	.globl	f
	.bss
	.align 8
	.type	f, @object
	.size	f, 8
f:
	.zero	8
	.globl	fLog
	.align 8
	.type	fLog, @object
	.size	fLog, 8
fLog:
	.zero	8
	.globl	fLogName
	.align 8
	.type	fLogName, @object
	.size	fLogName, 8
fLogName:
	.zero	8
	.globl	mode
	.align 4
	.type	mode, @object
	.size	mode, 4
mode:
	.zero	4
	.section	.rodata
.LC1:
	.string	"r"
	.align 8
.LC2:
	.string	"Error abriendo fichero de ordenes"
	.align 8
.LC3:
	.string	"Usage:  %s <remote host> <TCP/UDP> <ficheroOrdenes.txt> (Si no se proporciona fichero de ordenes ser\303\241 modo manual)\n"
.LC4:
	.string	"TCP"
.LC5:
	.string	"UDP"
	.align 8
.LC6:
	.string	"Usage:  %s <remote host> <TCP/UDP> >ficheroOrdenes.txt>\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	cmp	DWORD PTR -4[rbp], 3
	jne	.L3
	mov	DWORD PTR mode[rip], 0
	jmp	.L4
.L3:
	cmp	DWORD PTR -4[rbp], 4
	jne	.L5
	mov	DWORD PTR mode[rip], 1
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR f[rip], rax
	mov	rax, QWORD PTR f[rip]
	test	rax, rax
	jne	.L4
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 33
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L6
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	clientTCP
	jmp	.L7
.L6:
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L8
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	mov	eax, 0
	call	clientUDP
	jmp	.L7
.L8:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L7:
	mov	eax, DWORD PTR mode[rip]
	cmp	eax, 1
	jne	.L9
	mov	rax, QWORD PTR fLog[rip]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR f[rip]
	mov	rdi, rax
	call	fclose@PLT
.L9:
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.section	.rodata
.LC7:
	.string	"Error creando socket TCP"
.LC8:
	.string	"unable to create socket\n"
	.align 8
.LC9:
	.string	"No es posible resolver la IP de %s\n"
.LC10:
	.string	"Error connect TCP: "
.LC11:
	.string	"unable to connect to remote\n"
.LC12:
	.string	"Error getsockname TCP: "
	.align 8
.LC13:
	.string	"unable to read socket address\n"
.LC14:
	.string	"%u.txt"
.LC15:
	.string	"w"
	.align 8
.LC16:
	.string	"\nError abriendo archivo de log"
	.align 8
.LC17:
	.string	"Connected to %s on port %u at %s"
.LC18:
	.string	"\n\nIntroduce comando: "
	.align 8
.LC19:
	.string	"Error leyendo archivo de ordenes"
.LC20:
	.string	"Connection aborted on error "
.LC21:
	.string	"on send number %d\n"
.LC22:
	.string	"POST\r\n"
.LC23:
	.string	"POST"
.LC24:
	.string	"QUIT\r\n"
.LC25:
	.string	"QUIT"
.LC26:
	.string	"Error recv TCP: "
.LC27:
	.string	"error reading result\n"
.LC28:
	.string	"\r\n"
.LC29:
	.string	"\nC: %s"
.LC30:
	.string	"\n%s"
.LC31:
	.string	"All done at %s"
	.text
	.globl	clientTCP
	.type	clientTCP, @function
clientTCP:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 760
	.cfi_offset 3, -24
	mov	QWORD PTR -760[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	rdx, QWORD PTR -760[rbp]
	lea	rax, -624[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -740[rbp], eax
	cmp	DWORD PTR -740[rbp], -1
	jne	.L12
	lea	rdi, .LC7[rip]
	call	perror@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 24
	mov	esi, 1
	lea	rdi, .LC8[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L12:
	lea	rax, -656[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, -640[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -640[rbp], 2
	lea	rax, -704[rbp]
	mov	edx, 48
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -700[rbp], 2
	lea	rcx, -728[rbp]
	lea	rdx, -704[rbp]
	lea	rax, -624[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	getaddrinfo@PLT
	mov	DWORD PTR -736[rbp], eax
	cmp	DWORD PTR -736[rbp], 0
	je	.L13
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, -624[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L13:
	mov	rax, QWORD PTR -728[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	eax, DWORD PTR 4[rax]
	mov	DWORD PTR -636[rbp], eax
	mov	rax, QWORD PTR -728[rbp]
	mov	rdi, rax
	call	freeaddrinfo@PLT
	mov	edi, 8438
	call	htons@PLT
	mov	WORD PTR -638[rbp], ax
	lea	rcx, -640[rbp]
	mov	eax, DWORD PTR -740[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	cmp	eax, -1
	jne	.L14
	lea	rdi, .LC10[rip]
	call	perror@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 28
	mov	esi, 1
	lea	rdi, .LC11[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L14:
	mov	DWORD PTR -752[rbp], 16
	lea	rdx, -752[rbp]
	lea	rcx, -656[rbp]
	mov	eax, DWORD PTR -740[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	getsockname@PLT
	cmp	eax, -1
	jne	.L15
	lea	rdi, .LC12[rip]
	call	perror@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 30
	mov	esi, 1
	lea	rdi, .LC13[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L15:
	lea	rax, -720[rbp]
	mov	rdi, rax
	call	time@PLT
	mov	DWORD PTR -744[rbp], 1
	mov	eax, DWORD PTR mode[rip]
	cmp	eax, 1
	jne	.L16
	mov	edi, 20
	call	malloc@PLT
	mov	QWORD PTR fLogName[rip], rax
	movzx	eax, WORD PTR -654[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	movzx	edx, ax
	mov	rax, QWORD PTR fLogName[rip]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	rax, QWORD PTR fLogName[rip]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR fLog[rip], rax
	mov	rax, QWORD PTR fLog[rip]
	test	rax, rax
	jne	.L17
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, -1
	call	exit@PLT
.L17:
	mov	rax, QWORD PTR fLogName[rip]
	mov	rdi, rax
	call	free@PLT
.L16:
	mov	eax, DWORD PTR mode[rip]
	test	eax, eax
	jne	.L18
	lea	rax, -720[rbp]
	mov	rdi, rax
	call	ctime@PLT
	mov	rbx, rax
	movzx	eax, WORD PTR -654[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	movzx	edx, ax
	lea	rax, -624[rbp]
	mov	rcx, rbx
	mov	rsi, rax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L20
.L18:
	lea	rax, -720[rbp]
	mov	rdi, rax
	call	ctime@PLT
	mov	rbx, rax
	movzx	eax, WORD PTR -654[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	movzx	ecx, ax
	mov	rax, QWORD PTR fLog[rip]
	lea	rdx, -624[rbp]
	mov	r8, rbx
	lea	rsi, .LC17[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L20
.L37:
	mov	eax, DWORD PTR mode[rip]
	test	eax, eax
	jne	.L21
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -544[rbp]
	mov	esi, 512
	mov	rdi, rax
	call	fgets@PLT
	lea	rax, -544[rbp]
	mov	esi, 10
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -712[rbp], rax
	cmp	QWORD PTR -712[rbp], 0
	je	.L22
	mov	rax, QWORD PTR -712[rbp]
	mov	BYTE PTR [rax], 0
	jmp	.L22
.L21:
	mov	rdx, QWORD PTR f[rip]
	lea	rax, -544[rbp]
	mov	esi, 512
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L22
	mov	rax, QWORD PTR f[rip]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	jne	.L22
	lea	rdi, .LC19[rip]
	call	perror@PLT
	jmp	.L11
.L22:
	lea	rsi, -544[rbp]
	mov	eax, DWORD PTR -740[rbp]
	mov	ecx, 0
	mov	edx, 512
	mov	edi, eax
	call	send@PLT
	cmp	rax, 512
	je	.L24
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 28
	mov	esi, 1
	lea	rdi, .LC20[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -748[rbp]
	lea	rsi, .LC21[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L24:
	lea	rax, -544[rbp]
	lea	rsi, .LC22[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L25
	lea	rax, -544[rbp]
	lea	rsi, .LC23[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L26
.L25:
	mov	eax, DWORD PTR -740[rbp]
	mov	edi, eax
	call	functionPostTCP
	jmp	.L36
.L26:
	lea	rax, -544[rbp]
	mov	rsi, rax
	lea	rdi, .LC24[rip]
	call	strcmp@PLT
	test	eax, eax
	je	.L28
	lea	rax, -544[rbp]
	mov	rsi, rax
	lea	rdi, .LC25[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L36
.L28:
	mov	DWORD PTR -744[rbp], 0
.L36:
	lea	rsi, -544[rbp]
	mov	eax, DWORD PTR -740[rbp]
	mov	ecx, 0
	mov	edx, 512
	mov	edi, eax
	call	recv@PLT
	mov	DWORD PTR -748[rbp], eax
	cmp	DWORD PTR -748[rbp], -1
	jne	.L29
	lea	rdi, .LC26[rip]
	call	perror@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 21
	mov	esi, 1
	lea	rdi, .LC27[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L29:
	cmp	DWORD PTR -748[rbp], 0
	jne	.L31
	mov	DWORD PTR -744[rbp], 0
	jmp	.L20
.L33:
	mov	eax, 512
	sub	eax, DWORD PTR -748[rbp]
	movsx	rdx, eax
	lea	rcx, -544[rbp]
	mov	eax, DWORD PTR -748[rbp]
	cdqe
	lea	rsi, [rcx+rax]
	mov	eax, DWORD PTR -740[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	recv@PLT
	mov	DWORD PTR -732[rbp], eax
	cmp	DWORD PTR -732[rbp], -1
	jne	.L32
	lea	rdi, .LC26[rip]
	call	perror@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 21
	mov	esi, 1
	lea	rdi, .LC27[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L32:
	mov	eax, DWORD PTR -732[rbp]
	add	DWORD PTR -748[rbp], eax
.L31:
	cmp	DWORD PTR -748[rbp], 511
	jle	.L33
	lea	rax, -544[rbp]
	lea	rsi, .LC28[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L34
	mov	eax, DWORD PTR mode[rip]
	test	eax, eax
	jne	.L35
	lea	rax, -544[rbp]
	mov	rsi, rax
	lea	rdi, .LC29[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L34
.L35:
	mov	rax, QWORD PTR fLog[rip]
	lea	rdx, -544[rbp]
	lea	rsi, .LC30[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L34:
	lea	rax, -544[rbp]
	lea	rsi, .LC28[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L36
.L20:
	cmp	DWORD PTR -744[rbp], 0
	jne	.L37
	mov	eax, DWORD PTR -740[rbp]
	mov	edi, eax
	call	close@PLT
	lea	rax, -720[rbp]
	mov	rdi, rax
	call	time@PLT
	mov	eax, DWORD PTR mode[rip]
	test	eax, eax
	jne	.L38
	lea	rax, -720[rbp]
	mov	rdi, rax
	call	ctime@PLT
	mov	rsi, rax
	lea	rdi, .LC31[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L11
.L38:
	lea	rax, -720[rbp]
	mov	rdi, rax
	call	ctime@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR fLog[rip]
	lea	rsi, .LC31[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L11:
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L40
	call	__stack_chk_fail@PLT
.L40:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	clientTCP, .-clientTCP
	.section	.rodata
.LC32:
	.string	".\r\n"
.LC33:
	.string	"."
	.text
	.globl	functionPostTCP
	.type	functionPostTCP, @function
functionPostTCP:
.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, 560
	mov	DWORD PTR -548[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rsi, -528[rbp]
	mov	eax, DWORD PTR -548[rbp]
	mov	ecx, 0
	mov	edx, 512
	mov	edi, eax
	call	recv@PLT
	mov	DWORD PTR -544[rbp], eax
	cmp	DWORD PTR -544[rbp], -1
	jne	.L43
	mov	edi, 1
	call	exit@PLT
.L45:
	mov	eax, 512
	sub	eax, DWORD PTR -544[rbp]
	movsx	rdx, eax
	lea	rcx, -528[rbp]
	mov	eax, DWORD PTR -544[rbp]
	cdqe
	lea	rsi, [rcx+rax]
	mov	eax, DWORD PTR -548[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	recv@PLT
	mov	DWORD PTR -540[rbp], eax
	cmp	DWORD PTR -540[rbp], -1
	jne	.L44
	mov	edi, 1
	call	exit@PLT
.L44:
	mov	eax, DWORD PTR -540[rbp]
	add	DWORD PTR -544[rbp], eax
.L43:
	cmp	DWORD PTR -544[rbp], 511
	jle	.L45
	mov	eax, DWORD PTR mode[rip]
	test	eax, eax
	jne	.L46
	lea	rax, -528[rbp]
	mov	rsi, rax
	lea	rdi, .LC29[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L53
.L46:
	mov	rax, QWORD PTR fLog[rip]
	lea	rdx, -528[rbp]
	lea	rsi, .LC30[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L53:
	mov	eax, DWORD PTR mode[rip]
	test	eax, eax
	jne	.L48
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -528[rbp]
	mov	esi, 512
	mov	rdi, rax
	call	fgets@PLT
	lea	rax, -528[rbp]
	mov	esi, 10
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -536[rbp], rax
	cmp	QWORD PTR -536[rbp], 0
	je	.L49
	mov	rax, QWORD PTR -536[rbp]
	mov	BYTE PTR [rax], 0
	jmp	.L49
.L48:
	mov	rdx, QWORD PTR f[rip]
	lea	rax, -528[rbp]
	mov	esi, 512
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L49
	mov	rax, QWORD PTR f[rip]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	jne	.L49
	lea	rdi, .LC19[rip]
	call	perror@PLT
	jmp	.L41
.L49:
	lea	rsi, -528[rbp]
	mov	eax, DWORD PTR -548[rbp]
	mov	ecx, 0
	mov	edx, 512
	mov	edi, eax
	call	send@PLT
	cmp	rax, 512
	je	.L51
	mov	edi, 1
	call	exit@PLT
.L51:
	lea	rax, -528[rbp]
	lea	rsi, .LC32[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L41
	lea	rax, -528[rbp]
	lea	rsi, .LC33[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L53
.L41:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L54
	call	__stack_chk_fail@PLT
.L54:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	functionPostTCP, .-functionPostTCP
	.section	.rodata
.LC34:
	.string	"Error creando socket: "
.LC35:
	.string	"Error getaddrinfo"
.LC36:
	.string	"Error bind: "
.LC37:
	.string	"Error sendto: "
.LC38:
	.string	"unable to send request\n"
	.text
	.globl	clientUDP
	.type	clientUDP, @function
clientUDP:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 672
	mov	QWORD PTR -664[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -664[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, 4
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -624[rbp], rax
	mov	rdx, QWORD PTR -664[rbp]
	mov	rax, QWORD PTR -624[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	lea	rax, -544[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, -560[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	edx, 0
	mov	esi, 2
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -640[rbp], eax
	cmp	DWORD PTR -640[rbp], 0
	jns	.L56
	lea	rdi, .LC34[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L56:
	lea	rax, -608[rbp]
	mov	edx, 48
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -604[rbp], 2
	lea	rcx, -632[rbp]
	lea	rdx, -608[rbp]
	mov	rax, QWORD PTR -624[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	getaddrinfo@PLT
	test	eax, eax
	je	.L57
	lea	rdi, .LC35[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L57:
	mov	rax, QWORD PTR -632[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	eax, DWORD PTR 4[rax]
	mov	DWORD PTR -656[rbp], eax
	lea	rax, -544[rbp]
	mov	QWORD PTR [rax], 0
	mov	QWORD PTR 8[rax], 0
	mov	DWORD PTR -652[rbp], 16
	mov	DWORD PTR -648[rbp], 16
	lea	rcx, -544[rbp]
	mov	eax, DWORD PTR -640[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	jns	.L58
	lea	rdi, .LC36[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -640[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, -1
	call	exit@PLT
.L58:
	lea	rdx, -652[rbp]
	lea	rcx, -544[rbp]
	mov	eax, DWORD PTR -640[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	getsockname@PLT
	cmp	eax, -1
	jne	.L59
	lea	rdi, .LC12[rip]
	call	perror@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 30
	mov	esi, 1
	lea	rdi, .LC13[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L59:
	lea	rax, -560[rbp]
	mov	QWORD PTR [rax], 0
	mov	QWORD PTR 8[rax], 0
	mov	WORD PTR -560[rbp], 2
	mov	rax, QWORD PTR -632[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	eax, DWORD PTR 4[rax]
	mov	DWORD PTR -556[rbp], eax
	mov	edi, 8438
	call	htons@PLT
	mov	WORD PTR -558[rbp], ax
	mov	rax, QWORD PTR -632[rbp]
	mov	rdi, rax
	call	freeaddrinfo@PLT
	mov	eax, DWORD PTR mode[rip]
	cmp	eax, 1
	jne	.L60
	mov	edi, 20
	call	malloc@PLT
	mov	QWORD PTR fLogName[rip], rax
	movzx	eax, WORD PTR -542[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	movzx	edx, ax
	mov	rax, QWORD PTR fLogName[rip]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	rax, QWORD PTR fLogName[rip]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR fLog[rip], rax
	mov	rax, QWORD PTR fLog[rip]
	test	rax, rax
	jne	.L61
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, -1
	call	exit@PLT
.L61:
	mov	rax, QWORD PTR fLogName[rip]
	mov	rdi, rax
	call	free@PLT
.L60:
	mov	DWORD PTR -644[rbp], 1
	jmp	.L62
.L74:
	mov	eax, DWORD PTR mode[rip]
	test	eax, eax
	jne	.L63
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -528[rbp]
	mov	esi, 512
	mov	rdi, rax
	call	fgets@PLT
	lea	rax, -528[rbp]
	mov	esi, 10
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -616[rbp], rax
	cmp	QWORD PTR -616[rbp], 0
	je	.L64
	mov	rax, QWORD PTR -616[rbp]
	mov	BYTE PTR [rax], 0
	jmp	.L64
.L63:
	mov	rdx, QWORD PTR f[rip]
	lea	rax, -528[rbp]
	mov	esi, 512
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L64
	mov	rax, QWORD PTR f[rip]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	jne	.L64
	lea	rdi, .LC19[rip]
	call	perror@PLT
	jmp	.L55
.L64:
	lea	rdx, -560[rbp]
	lea	rsi, -528[rbp]
	mov	eax, DWORD PTR -640[rbp]
	mov	r9d, 16
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 512
	mov	edi, eax
	call	sendto@PLT
	cmp	rax, -1
	jne	.L66
	lea	rdi, .LC37[rip]
	call	perror@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 23
	mov	esi, 1
	lea	rdi, .LC38[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L66:
	lea	rax, -528[rbp]
	lea	rsi, .LC22[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L67
	lea	rax, -528[rbp]
	lea	rsi, .LC23[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L68
.L67:
	mov	rcx, QWORD PTR -544[rbp]
	mov	rdi, QWORD PTR -536[rbp]
	mov	rsi, QWORD PTR -560[rbp]
	mov	rdx, QWORD PTR -552[rbp]
	mov	eax, DWORD PTR -640[rbp]
	mov	r8, rdi
	mov	edi, eax
	call	functionPostUDP
	jmp	.L73
.L68:
	lea	rax, -528[rbp]
	mov	rsi, rax
	lea	rdi, .LC24[rip]
	call	strcmp@PLT
	test	eax, eax
	je	.L70
	lea	rax, -528[rbp]
	mov	rsi, rax
	lea	rdi, .LC25[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L73
.L70:
	mov	DWORD PTR -644[rbp], 0
.L73:
	lea	rcx, -648[rbp]
	lea	rdx, -560[rbp]
	lea	rsi, -528[rbp]
	mov	eax, DWORD PTR -640[rbp]
	mov	r9, rcx
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 512
	mov	edi, eax
	call	recvfrom@PLT
	mov	DWORD PTR -636[rbp], eax
	mov	eax, DWORD PTR -636[rbp]
	cdqe
	mov	BYTE PTR -528[rbp+rax], 0
	lea	rax, -528[rbp]
	lea	rsi, .LC28[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L71
	mov	eax, DWORD PTR mode[rip]
	test	eax, eax
	jne	.L72
	lea	rax, -528[rbp]
	mov	rsi, rax
	lea	rdi, .LC29[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L71
.L72:
	mov	rax, QWORD PTR fLog[rip]
	lea	rdx, -528[rbp]
	lea	rsi, .LC30[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L71:
	lea	rax, -528[rbp]
	lea	rsi, .LC28[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L73
.L62:
	cmp	DWORD PTR -644[rbp], 0
	jne	.L74
	mov	eax, DWORD PTR -640[rbp]
	mov	edi, eax
	call	close@PLT
.L55:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L75
	call	__stack_chk_fail@PLT
.L75:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	clientUDP, .-clientUDP
	.section	.rodata
.LC39:
	.string	"Error recvfrom function post"
	.text
	.globl	functionPostUDP
	.type	functionPostUDP, @function
functionPostUDP:
.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, 624
	mov	DWORD PTR -580[rbp], edi
	mov	rax, rsi
	mov	rsi, rdx
	mov	rdx, rsi
	mov	QWORD PTR -608[rbp], rax
	mov	QWORD PTR -600[rbp], rdx
	mov	rax, rcx
	mov	rcx, r8
	mov	rdx, rcx
	mov	QWORD PTR -624[rbp], rax
	mov	QWORD PTR -616[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -608[rbp]
	mov	rdx, QWORD PTR -600[rbp]
	mov	QWORD PTR -560[rbp], rax
	mov	QWORD PTR -552[rbp], rdx
	mov	rax, QWORD PTR -624[rbp]
	mov	rdx, QWORD PTR -616[rbp]
	mov	QWORD PTR -544[rbp], rax
	mov	QWORD PTR -536[rbp], rdx
	mov	DWORD PTR -576[rbp], 16
	lea	rcx, -576[rbp]
	lea	rdx, -560[rbp]
	lea	rsi, -528[rbp]
	mov	eax, DWORD PTR -580[rbp]
	mov	r9, rcx
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 512
	mov	edi, eax
	call	recvfrom@PLT
	mov	DWORD PTR -572[rbp], eax
	cmp	DWORD PTR -572[rbp], -1
	jne	.L77
	lea	rdi, .LC39[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L77:
	mov	eax, DWORD PTR mode[rip]
	test	eax, eax
	jne	.L78
	lea	rax, -528[rbp]
	mov	rsi, rax
	lea	rdi, .LC29[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L85
.L78:
	mov	rax, QWORD PTR fLog[rip]
	lea	rdx, -528[rbp]
	lea	rsi, .LC30[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L85:
	mov	eax, DWORD PTR mode[rip]
	test	eax, eax
	jne	.L80
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -528[rbp]
	mov	esi, 512
	mov	rdi, rax
	call	fgets@PLT
	lea	rax, -528[rbp]
	mov	esi, 10
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -568[rbp], rax
	cmp	QWORD PTR -568[rbp], 0
	je	.L81
	mov	rax, QWORD PTR -568[rbp]
	mov	BYTE PTR [rax], 0
	jmp	.L81
.L80:
	mov	rdx, QWORD PTR f[rip]
	lea	rax, -528[rbp]
	mov	esi, 512
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L81
	mov	rax, QWORD PTR f[rip]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	jne	.L81
	lea	rdi, .LC19[rip]
	call	perror@PLT
	jmp	.L76
.L81:
	lea	rdx, -560[rbp]
	lea	rsi, -528[rbp]
	mov	eax, DWORD PTR -580[rbp]
	mov	r9d, 16
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 512
	mov	edi, eax
	call	sendto@PLT
	cmp	rax, -1
	jne	.L83
	lea	rdi, .LC37[rip]
	call	perror@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 23
	mov	esi, 1
	lea	rdi, .LC38[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L83:
	lea	rax, -528[rbp]
	lea	rsi, .LC32[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L76
	lea	rax, -528[rbp]
	lea	rsi, .LC33[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L85
.L76:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L86
	call	__stack_chk_fail@PLT
.L86:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	functionPostUDP, .-functionPostUDP
	.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	"222269.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Alarma recibida \000"
	.text
	.align	2
	.global	handler
	.syntax unified
	.arm
	.fpu softvfp
	.type	handler, %function
handler:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L2
	bl	puts
	nop
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	.LC0
	.size	handler, .-handler
	.comm	f,4,4
	.comm	fLog,4,4
	.comm	fLogName,4,4
	.comm	mode,4,4
	.section	.rodata
	.align	2
.LC1:
	.ascii	"r\000"
	.align	2
.LC2:
	.ascii	"Error abriendo fichero de ordenes\000"
	.align	2
.LC3:
	.ascii	"Usage:  %s <remote host> <TCP/UDP> <ficheroOrdenes."
	.ascii	"txt> (Si no se proporciona fichero de ordenes ser\303"
	.ascii	"\241 modo manual)\012\000"
	.align	2
.LC4:
	.ascii	"TCP\000"
	.align	2
.LC5:
	.ascii	"UDP\000"
	.align	2
.LC6:
	.ascii	"Usage:  %s <remote host> <TCP/UDP> >ficheroOrdenes."
	.ascii	"txt>\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r3, #3
	bne	.L5
	ldr	r3, .L13
	mov	r2, #0
	str	r2, [r3]
	b	.L6
.L5:
	ldr	r3, [fp, #-8]
	cmp	r3, #4
	bne	.L7
	ldr	r3, .L13
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #12
	ldr	r3, [r3]
	ldr	r1, .L13+4
	mov	r0, r3
	bl	fopen
	mov	r3, r0
	ldr	r2, .L13+8
	str	r3, [r2]
	ldr	r3, .L13+8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L6
	ldr	r3, .L13+12
	ldr	r3, [r3]
	mov	r2, #33
	mov	r1, #1
	ldr	r0, .L13+16
	bl	fwrite
	mov	r0, #1
	bl	exit
.L7:
	ldr	r3, .L13+12
	ldr	r0, [r3]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L13+20
	bl	fprintf
	mov	r0, #1
	bl	exit
.L6:
	ldr	r3, [fp, #-12]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L13+24
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L8
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	clientTCP
	b	.L9
.L8:
	ldr	r3, [fp, #-12]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L13+28
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L10
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	clientUDP
	b	.L9
.L10:
	ldr	r3, .L13+12
	ldr	r0, [r3]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L13+32
	bl	fprintf
	mov	r0, #1
	bl	exit
.L9:
	ldr	r3, .L13
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L11
	ldr	r3, .L13+36
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
	ldr	r3, .L13+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
.L11:
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	mode
	.word	.LC1
	.word	f
	.word	stderr
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	fLog
	.size	main, .-main
	.section	.rodata
	.align	2
.LC7:
	.ascii	"Error creando socket TCP\000"
	.align	2
.LC8:
	.ascii	"unable to create socket\012\000"
	.align	2
.LC9:
	.ascii	"No es posible resolver la IP de %s\012\000"
	.align	2
.LC10:
	.ascii	"Error connect TCP: \000"
	.align	2
.LC11:
	.ascii	"unable to connect to remote\012\000"
	.align	2
.LC12:
	.ascii	"Error getsockname TCP: \000"
	.align	2
.LC13:
	.ascii	"unable to read socket address\012\000"
	.align	2
.LC14:
	.ascii	"%u.txt\000"
	.align	2
.LC15:
	.ascii	"w\000"
	.align	2
.LC16:
	.ascii	"\012Error abriendo archivo de log\000"
	.align	2
.LC17:
	.ascii	"Connected to %s on port %u at %s\000"
	.align	2
.LC18:
	.ascii	"\012\012Introduce comando: \000"
	.align	2
.LC19:
	.ascii	"Error leyendo archivo de ordenes\000"
	.align	2
.LC20:
	.ascii	"Connection aborted on error \000"
	.align	2
.LC21:
	.ascii	"on send number %d\012\000"
	.align	2
.LC22:
	.ascii	"POST\015\012\000"
	.align	2
.LC23:
	.ascii	"POST\000"
	.align	2
.LC24:
	.ascii	"QUIT\015\012\000"
	.align	2
.LC25:
	.ascii	"QUIT\000"
	.align	2
.LC26:
	.ascii	"Error recv TCP: \000"
	.align	2
.LC27:
	.ascii	"error reading result\012\000"
	.align	2
.LC28:
	.ascii	"\015\012\000"
	.align	2
.LC29:
	.ascii	"\012C: %s\000"
	.align	2
.LC30:
	.ascii	"\012%s\000"
	.align	2
.LC31:
	.ascii	"All done at %s\000"
	.align	2
.LC32:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	clientTCP
	.syntax unified
	.arm
	.fpu softvfp
	.type	clientTCP, %function
clientTCP:
	@ args = 0, pretend = 0, frame = 704
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #712
	str	r0, [fp, #-712]
	ldr	r3, .L45
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #608
	ldr	r1, [fp, #-712]
	mov	r0, r3
	bl	strcpy
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-688]
	ldr	r3, [fp, #-688]
	cmn	r3, #1
	bne	.L16
	ldr	r0, .L45+4
	bl	perror
	ldr	r3, .L45+8
	ldr	r3, [r3]
	mov	r2, #24
	mov	r1, #1
	ldr	r0, .L45+12
	bl	fwrite
	mov	r0, #1
	bl	exit
.L16:
	sub	r3, fp, #640
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #624
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #12
	sub	r3, r3, #612
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	sub	r3, fp, #672
	mov	r2, #32
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #2
	str	r3, [fp, #-668]
	sub	r3, fp, #708
	sub	r2, fp, #672
	sub	r0, fp, #608
	mov	r1, #0
	bl	getaddrinfo
	str	r0, [fp, #-684]
	ldr	r3, [fp, #-684]
	cmp	r3, #0
	beq	.L17
	ldr	r3, .L45+8
	ldr	r3, [r3]
	sub	r2, fp, #608
	ldr	r1, .L45+16
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L17:
	ldr	r3, [fp, #-708]
	ldr	r3, [r3, #20]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-620]
	ldr	r3, [fp, #-708]
	mov	r0, r3
	bl	freeaddrinfo
	ldr	r0, .L45+20
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #12
	sub	r3, r3, #612
	strh	r2, [r3, #2]	@ movhi
	sub	r3, fp, #624
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-688]
	bl	connect
	mov	r3, r0
	cmn	r3, #1
	bne	.L18
	ldr	r0, .L45+24
	bl	perror
	ldr	r3, .L45+8
	ldr	r3, [r3]
	mov	r2, #28
	mov	r1, #1
	ldr	r0, .L45+28
	bl	fwrite
	mov	r0, #1
	bl	exit
.L18:
	mov	r3, #16
	str	r3, [fp, #-700]
	sub	r2, fp, #700
	sub	r3, fp, #640
	mov	r1, r3
	ldr	r0, [fp, #-688]
	bl	getsockname
	mov	r3, r0
	cmn	r3, #1
	bne	.L19
	ldr	r0, .L45+32
	bl	perror
	ldr	r3, .L45+8
	ldr	r3, [r3]
	mov	r2, #30
	mov	r1, #1
	ldr	r0, .L45+36
	bl	fwrite
	mov	r0, #1
	bl	exit
.L19:
	sub	r3, fp, #704
	mov	r0, r3
	bl	time
	mov	r3, #1
	str	r3, [fp, #-692]
	ldr	r3, .L45+40
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L20
	mov	r0, #20
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L45+44
	str	r2, [r3]
	ldr	r3, .L45+44
	ldr	r4, [r3]
	sub	r3, fp, #12
	sub	r3, r3, #628
	ldrh	r3, [r3, #2]
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L45+48
	mov	r0, r4
	bl	sprintf
	ldr	r3, .L45+44
	ldr	r3, [r3]
	ldr	r1, .L45+52
	mov	r0, r3
	bl	fopen
	mov	r3, r0
	ldr	r2, .L45+56
	str	r3, [r2]
	ldr	r3, .L45+56
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L21
	ldr	r0, .L45+60
	bl	printf
	mvn	r0, #0
	bl	exit
.L21:
	ldr	r3, .L45+44
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
.L20:
	ldr	r3, .L45+40
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L22
	sub	r3, fp, #12
	sub	r3, r3, #628
	ldrh	r3, [r3, #2]
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	mov	r4, r3
	sub	r3, fp, #704
	mov	r0, r3
	bl	ctime
	mov	r3, r0
	sub	r1, fp, #608
	mov	r2, r4
	ldr	r0, .L45+64
	bl	printf
	b	.L24
.L22:
	ldr	r3, .L45+56
	ldr	r4, [r3]
	sub	r3, fp, #12
	sub	r3, r3, #628
	ldrh	r3, [r3, #2]
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	mov	r5, r3
	sub	r3, fp, #704
	mov	r0, r3
	bl	ctime
	mov	r3, r0
	sub	r2, fp, #608
	str	r3, [sp]
	mov	r3, r5
	ldr	r1, .L45+64
	mov	r0, r4
	bl	fprintf
	b	.L24
.L41:
	ldr	r3, .L45+40
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L25
	ldr	r0, .L45+68
	bl	printf
	ldr	r3, .L45+72
	ldr	r2, [r3]
	sub	r3, fp, #528
	mov	r1, #512
	mov	r0, r3
	bl	fgets
	sub	r3, fp, #528
	mov	r1, #10
	mov	r0, r3
	bl	strchr
	str	r0, [fp, #-680]
	ldr	r3, [fp, #-680]
	cmp	r3, #0
	beq	.L26
	ldr	r3, [fp, #-680]
	mov	r2, #0
	strb	r2, [r3]
	b	.L26
.L25:
	ldr	r3, .L45+76
	ldr	r2, [r3]
	sub	r3, fp, #528
	mov	r1, #512
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L26
	ldr	r3, .L45+76
	ldr	r3, [r3]
	mov	r0, r3
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	bne	.L26
	ldr	r0, .L45+80
	bl	perror
	b	.L15
.L26:
	sub	r1, fp, #528
	mov	r3, #0
	mov	r2, #512
	ldr	r0, [fp, #-688]
	bl	send
	mov	r3, r0
	cmp	r3, #512
	beq	.L28
	ldr	r3, .L45+8
	ldr	r3, [r3]
	mov	r2, #28
	mov	r1, #1
	ldr	r0, .L45+84
	bl	fwrite
	ldr	r3, .L45+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-696]
	ldr	r1, .L45+88
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L28:
	sub	r3, fp, #528
	ldr	r1, .L45+92
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L29
	sub	r3, fp, #528
	ldr	r1, .L45+96
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L30
.L29:
	ldr	r0, [fp, #-688]
	bl	functionPostTCP
	b	.L40
.L30:
	sub	r3, fp, #528
	mov	r1, r3
	ldr	r0, .L45+100
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L32
	sub	r3, fp, #528
	mov	r1, r3
	ldr	r0, .L45+104
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L40
.L32:
	mov	r3, #0
	str	r3, [fp, #-692]
.L40:
	sub	r1, fp, #528
	mov	r3, #0
	mov	r2, #512
	ldr	r0, [fp, #-688]
	bl	recv
	str	r0, [fp, #-696]
	ldr	r3, [fp, #-696]
	cmn	r3, #1
	bne	.L33
	ldr	r0, .L45+108
	bl	perror
	ldr	r3, .L45+8
	ldr	r3, [r3]
	mov	r2, #21
	mov	r1, #1
	ldr	r0, .L45+112
	bl	fwrite
	mov	r0, #1
	bl	exit
.L33:
	ldr	r3, [fp, #-696]
	cmp	r3, #0
	bne	.L35
	mov	r3, #0
	str	r3, [fp, #-692]
	b	.L24
.L37:
	sub	r2, fp, #528
	ldr	r3, [fp, #-696]
	add	r1, r2, r3
	ldr	r3, [fp, #-696]
	rsb	r3, r3, #512
	mov	r2, r3
	mov	r3, #0
	ldr	r0, [fp, #-688]
	bl	recv
	str	r0, [fp, #-676]
	ldr	r3, [fp, #-676]
	cmn	r3, #1
	bne	.L36
	ldr	r0, .L45+108
	bl	perror
	ldr	r3, .L45+8
	ldr	r3, [r3]
	mov	r2, #21
	mov	r1, #1
	ldr	r0, .L45+112
	bl	fwrite
	mov	r0, #1
	bl	exit
.L36:
	ldr	r2, [fp, #-696]
	ldr	r3, [fp, #-676]
	add	r3, r2, r3
	str	r3, [fp, #-696]
.L35:
	ldr	r3, [fp, #-696]
	cmp	r3, #512
	blt	.L37
	sub	r3, fp, #528
	ldr	r1, .L45+116
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L38
	ldr	r3, .L45+40
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L39
	sub	r3, fp, #528
	mov	r1, r3
	ldr	r0, .L45+120
	bl	printf
	b	.L38
.L39:
	ldr	r3, .L45+56
	ldr	r3, [r3]
	sub	r2, fp, #528
	ldr	r1, .L45+124
	mov	r0, r3
	bl	fprintf
.L38:
	sub	r3, fp, #528
	ldr	r1, .L45+116
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L40
.L24:
	ldr	r3, [fp, #-692]
	cmp	r3, #0
	bne	.L41
	ldr	r0, [fp, #-688]
	bl	close
	sub	r3, fp, #704
	mov	r0, r3
	bl	time
	ldr	r3, .L45+40
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L42
	sub	r3, fp, #704
	mov	r0, r3
	bl	ctime
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L45+128
	bl	printf
	b	.L15
.L42:
	ldr	r3, .L45+56
	ldr	r4, [r3]
	sub	r3, fp, #704
	mov	r0, r3
	bl	ctime
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L45+128
	mov	r0, r4
	bl	fprintf
.L15:
	ldr	r3, .L45
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L44
	bl	__stack_chk_fail
.L44:
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L46:
	.align	2
.L45:
	.word	.LC32
	.word	.LC7
	.word	stderr
	.word	.LC8
	.word	.LC9
	.word	8438
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	mode
	.word	fLogName
	.word	.LC14
	.word	.LC15
	.word	fLog
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	stdin
	.word	f
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.word	.LC31
	.size	clientTCP, .-clientTCP
	.section	.rodata
	.align	2
.LC33:
	.ascii	".\015\012\000"
	.align	2
.LC34:
	.ascii	".\000"
	.align	2
.LC35:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	functionPostTCP
	.syntax unified
	.arm
	.fpu softvfp
	.type	functionPostTCP, %function
functionPostTCP:
	@ args = 0, pretend = 0, frame = 536
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #536
	str	r0, [fp, #-536]
	ldr	r3, .L61
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r1, fp, #520
	mov	r3, #0
	mov	r2, #512
	ldr	r0, [fp, #-536]
	bl	recv
	str	r0, [fp, #-532]
	ldr	r3, [fp, #-532]
	cmn	r3, #1
	bne	.L49
	mov	r0, #1
	bl	exit
.L51:
	sub	r2, fp, #520
	ldr	r3, [fp, #-532]
	add	r1, r2, r3
	ldr	r3, [fp, #-532]
	rsb	r3, r3, #512
	mov	r2, r3
	mov	r3, #0
	ldr	r0, [fp, #-536]
	bl	recv
	str	r0, [fp, #-524]
	ldr	r3, [fp, #-524]
	cmn	r3, #1
	bne	.L50
	mov	r0, #1
	bl	exit
.L50:
	ldr	r2, [fp, #-532]
	ldr	r3, [fp, #-524]
	add	r3, r2, r3
	str	r3, [fp, #-532]
.L49:
	ldr	r3, [fp, #-532]
	cmp	r3, #512
	blt	.L51
	ldr	r3, .L61+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L52
	sub	r3, fp, #520
	mov	r1, r3
	ldr	r0, .L61+8
	bl	printf
	b	.L59
.L52:
	ldr	r3, .L61+12
	ldr	r3, [r3]
	sub	r2, fp, #520
	ldr	r1, .L61+16
	mov	r0, r3
	bl	fprintf
.L59:
	ldr	r3, .L61+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L54
	ldr	r3, .L61+20
	ldr	r2, [r3]
	sub	r3, fp, #520
	mov	r1, #512
	mov	r0, r3
	bl	fgets
	sub	r3, fp, #520
	mov	r1, #10
	mov	r0, r3
	bl	strchr
	str	r0, [fp, #-528]
	ldr	r3, [fp, #-528]
	cmp	r3, #0
	beq	.L55
	ldr	r3, [fp, #-528]
	mov	r2, #0
	strb	r2, [r3]
	b	.L55
.L54:
	ldr	r3, .L61+24
	ldr	r2, [r3]
	sub	r3, fp, #520
	mov	r1, #512
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L55
	ldr	r3, .L61+24
	ldr	r3, [r3]
	mov	r0, r3
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	bne	.L55
	ldr	r0, .L61+28
	bl	perror
	b	.L47
.L55:
	sub	r1, fp, #520
	mov	r3, #0
	mov	r2, #512
	ldr	r0, [fp, #-536]
	bl	send
	mov	r3, r0
	cmp	r3, #512
	beq	.L57
	mov	r0, #1
	bl	exit
.L57:
	sub	r3, fp, #520
	ldr	r1, .L61+32
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L47
	sub	r3, fp, #520
	ldr	r1, .L61+36
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L59
.L47:
	ldr	r3, .L61
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L60
	bl	__stack_chk_fail
.L60:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L62:
	.align	2
.L61:
	.word	.LC35
	.word	mode
	.word	.LC29
	.word	fLog
	.word	.LC30
	.word	stdin
	.word	f
	.word	.LC19
	.word	.LC33
	.word	.LC34
	.size	functionPostTCP, .-functionPostTCP
	.section	.rodata
	.align	2
.LC36:
	.ascii	"Error creando socket: \000"
	.align	2
.LC37:
	.ascii	"Error getaddrinfo\000"
	.align	2
.LC38:
	.ascii	"Error bind: \000"
	.align	2
.LC39:
	.ascii	"Error sendto: \000"
	.align	2
.LC40:
	.ascii	"unable to send request\012\000"
	.align	2
.LC41:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	clientUDP
	.syntax unified
	.arm
	.fpu softvfp
	.type	clientUDP, %function
clientUDP:
	@ args = 0, pretend = 0, frame = 624
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #652
	str	r0, [fp, #-632]
	ldr	r3, .L84
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r0, [fp, #-632]
	bl	strlen
	mov	r3, r0
	add	r3, r3, #4
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-608]
	ldr	r1, [fp, #-632]
	ldr	r0, [fp, #-608]
	bl	strcpy
	sub	r3, fp, #544
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #560
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r2, #0
	mov	r1, #2
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-604]
	ldr	r3, [fp, #-604]
	cmp	r3, #0
	bge	.L64
	ldr	r0, .L84+4
	bl	perror
	mvn	r0, #0
	bl	exit
.L64:
	sub	r3, fp, #592
	mov	r2, #32
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #2
	str	r3, [fp, #-588]
	sub	r3, fp, #616
	sub	r2, fp, #592
	mov	r1, #0
	ldr	r0, [fp, #-608]
	bl	getaddrinfo
	mov	r3, r0
	cmp	r3, #0
	beq	.L65
	ldr	r0, .L84+8
	bl	perror
	mvn	r0, #0
	bl	exit
.L65:
	ldr	r3, [fp, #-616]
	ldr	r3, [r3, #20]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-628]
	sub	r3, fp, #544
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2]
	str	r3, [r2, #4]
	str	r3, [r2, #8]
	str	r3, [r2, #12]
	mov	r3, #16
	str	r3, [fp, #-624]
	mov	r3, #16
	str	r3, [fp, #-620]
	sub	r3, fp, #544
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-604]
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	bge	.L66
	ldr	r0, .L84+12
	bl	perror
	ldr	r0, [fp, #-604]
	bl	close
	mvn	r0, #0
	bl	exit
.L66:
	sub	r2, fp, #624
	sub	r3, fp, #544
	mov	r1, r3
	ldr	r0, [fp, #-604]
	bl	getsockname
	mov	r3, r0
	cmn	r3, #1
	bne	.L67
	ldr	r0, .L84+16
	bl	perror
	ldr	r3, .L84+20
	ldr	r3, [r3]
	mov	r2, #30
	mov	r1, #1
	ldr	r0, .L84+24
	bl	fwrite
	mov	r0, #1
	bl	exit
.L67:
	sub	r3, fp, #560
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2]
	str	r3, [r2, #4]
	str	r3, [r2, #8]
	str	r3, [r2, #12]
	sub	r3, fp, #12
	sub	r3, r3, #548
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-616]
	ldr	r3, [r3, #20]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-556]
	ldr	r0, .L84+28
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #12
	sub	r3, r3, #548
	strh	r2, [r3, #2]	@ movhi
	ldr	r3, [fp, #-616]
	mov	r0, r3
	bl	freeaddrinfo
	ldr	r3, .L84+32
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L68
	mov	r0, #20
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L84+36
	str	r2, [r3]
	ldr	r3, .L84+36
	ldr	r4, [r3]
	sub	r3, fp, #12
	sub	r3, r3, #532
	ldrh	r3, [r3, #2]
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L84+40
	mov	r0, r4
	bl	sprintf
	ldr	r3, .L84+36
	ldr	r3, [r3]
	ldr	r1, .L84+44
	mov	r0, r3
	bl	fopen
	mov	r3, r0
	ldr	r2, .L84+48
	str	r3, [r2]
	ldr	r3, .L84+48
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L69
	ldr	r0, .L84+52
	bl	printf
	mvn	r0, #0
	bl	exit
.L69:
	ldr	r3, .L84+36
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
.L68:
	mov	r3, #1
	str	r3, [fp, #-612]
	b	.L70
.L82:
	ldr	r3, .L84+32
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L71
	ldr	r0, .L84+56
	bl	printf
	ldr	r3, .L84+60
	ldr	r2, [r3]
	sub	r3, fp, #528
	mov	r1, #512
	mov	r0, r3
	bl	fgets
	sub	r3, fp, #528
	mov	r1, #10
	mov	r0, r3
	bl	strchr
	str	r0, [fp, #-600]
	ldr	r3, [fp, #-600]
	cmp	r3, #0
	beq	.L72
	ldr	r3, [fp, #-600]
	mov	r2, #0
	strb	r2, [r3]
	b	.L72
.L71:
	ldr	r3, .L84+64
	ldr	r2, [r3]
	sub	r3, fp, #528
	mov	r1, #512
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L72
	ldr	r3, .L84+64
	ldr	r3, [r3]
	mov	r0, r3
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	bne	.L72
	ldr	r0, .L84+68
	bl	perror
	b	.L63
.L72:
	sub	r1, fp, #528
	mov	r3, #16
	str	r3, [sp, #4]
	sub	r3, fp, #560
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #512
	ldr	r0, [fp, #-604]
	bl	sendto
	mov	r3, r0
	cmn	r3, #1
	bne	.L74
	ldr	r0, .L84+72
	bl	perror
	ldr	r3, .L84+20
	ldr	r3, [r3]
	mov	r2, #23
	mov	r1, #1
	ldr	r0, .L84+76
	bl	fwrite
	mov	r0, #1
	bl	exit
.L74:
	sub	r3, fp, #528
	ldr	r1, .L84+80
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L75
	sub	r3, fp, #528
	ldr	r1, .L84+84
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L76
.L75:
	add	ip, sp, #4
	sub	r3, fp, #544
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r3, [fp, #-548]
	str	r3, [sp]
	sub	r3, fp, #560
	ldm	r3, {r1, r2, r3}
	ldr	r0, [fp, #-604]
	bl	functionPostUDP
	b	.L81
.L76:
	sub	r3, fp, #528
	mov	r1, r3
	ldr	r0, .L84+88
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L78
	sub	r3, fp, #528
	mov	r1, r3
	ldr	r0, .L84+92
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L81
.L78:
	mov	r3, #0
	str	r3, [fp, #-612]
.L81:
	sub	r1, fp, #528
	sub	r3, fp, #620
	str	r3, [sp, #4]
	sub	r3, fp, #560
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #512
	ldr	r0, [fp, #-604]
	bl	recvfrom
	str	r0, [fp, #-596]
	sub	r2, fp, #528
	ldr	r3, [fp, #-596]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #528
	ldr	r1, .L84+96
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L79
	ldr	r3, .L84+32
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L80
	sub	r3, fp, #528
	mov	r1, r3
	ldr	r0, .L84+100
	bl	printf
	b	.L79
.L80:
	ldr	r3, .L84+48
	ldr	r3, [r3]
	sub	r2, fp, #528
	ldr	r1, .L84+104
	mov	r0, r3
	bl	fprintf
.L79:
	sub	r3, fp, #528
	ldr	r1, .L84+96
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L81
.L70:
	ldr	r3, [fp, #-612]
	cmp	r3, #0
	bne	.L82
	ldr	r0, [fp, #-604]
	bl	close
.L63:
	ldr	r3, .L84
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L83
	bl	__stack_chk_fail
.L83:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L85:
	.align	2
.L84:
	.word	.LC41
	.word	.LC36
	.word	.LC37
	.word	.LC38
	.word	.LC12
	.word	stderr
	.word	.LC13
	.word	8438
	.word	mode
	.word	fLogName
	.word	.LC14
	.word	.LC15
	.word	fLog
	.word	.LC16
	.word	.LC18
	.word	stdin
	.word	f
	.word	.LC19
	.word	.LC39
	.word	.LC40
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.size	clientUDP, .-clientUDP
	.section	.rodata
	.align	2
.LC42:
	.ascii	"Error recvfrom function post\000"
	.align	2
.LC43:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	functionPostUDP
	.syntax unified
	.arm
	.fpu softvfp
	.type	functionPostUDP, %function
functionPostUDP:
	@ args = 36, pretend = 16, frame = 568
	@ frame_needed = 1, uses_anonymous_args = 0
	sub	sp, sp, #16
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #576
	str	r0, [fp, #-568]
	add	r0, fp, #8
	stm	r0, {r1, r2, r3}
	ldr	r3, .L97
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	ip, fp, #552
	add	r3, fp, #8
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	sub	ip, fp, #536
	add	r3, fp, #24
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	mov	r3, #16
	str	r3, [fp, #-564]
	sub	r1, fp, #520
	sub	r3, fp, #564
	str	r3, [sp, #4]
	sub	r3, fp, #552
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #512
	ldr	r0, [fp, #-568]
	bl	recvfrom
	str	r0, [fp, #-560]
	ldr	r3, [fp, #-560]
	cmn	r3, #1
	bne	.L87
	ldr	r0, .L97+4
	bl	perror
	mov	r0, #1
	bl	exit
.L87:
	ldr	r3, .L97+8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L88
	sub	r3, fp, #520
	mov	r1, r3
	ldr	r0, .L97+12
	bl	printf
	b	.L95
.L88:
	ldr	r3, .L97+16
	ldr	r3, [r3]
	sub	r2, fp, #520
	ldr	r1, .L97+20
	mov	r0, r3
	bl	fprintf
.L95:
	ldr	r3, .L97+8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L90
	ldr	r3, .L97+24
	ldr	r2, [r3]
	sub	r3, fp, #520
	mov	r1, #512
	mov	r0, r3
	bl	fgets
	sub	r3, fp, #520
	mov	r1, #10
	mov	r0, r3
	bl	strchr
	str	r0, [fp, #-556]
	ldr	r3, [fp, #-556]
	cmp	r3, #0
	beq	.L91
	ldr	r3, [fp, #-556]
	mov	r2, #0
	strb	r2, [r3]
	b	.L91
.L90:
	ldr	r3, .L97+28
	ldr	r2, [r3]
	sub	r3, fp, #520
	mov	r1, #512
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L91
	ldr	r3, .L97+28
	ldr	r3, [r3]
	mov	r0, r3
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	bne	.L91
	ldr	r0, .L97+32
	bl	perror
	b	.L86
.L91:
	sub	r1, fp, #520
	mov	r3, #16
	str	r3, [sp, #4]
	sub	r3, fp, #552
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #512
	ldr	r0, [fp, #-568]
	bl	sendto
	mov	r3, r0
	cmn	r3, #1
	bne	.L93
	ldr	r0, .L97+36
	bl	perror
	ldr	r3, .L97+40
	ldr	r3, [r3]
	mov	r2, #23
	mov	r1, #1
	ldr	r0, .L97+44
	bl	fwrite
	mov	r0, #1
	bl	exit
.L93:
	sub	r3, fp, #520
	ldr	r1, .L97+48
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L86
	sub	r3, fp, #520
	ldr	r1, .L97+52
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L95
.L86:
	ldr	r3, .L97
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L96
	bl	__stack_chk_fail
.L96:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, lr}
	add	sp, sp, #16
	bx	lr
.L98:
	.align	2
.L97:
	.word	.LC43
	.word	.LC42
	.word	mode
	.word	.LC29
	.word	fLog
	.word	.LC30
	.word	stdin
	.word	f
	.word	.LC19
	.word	.LC39
	.word	stderr
	.word	.LC40
	.word	.LC33
	.word	.LC34
	.size	functionPostUDP, .-functionPostUDP
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
