	.file	"72152.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Introduce los par\303\241metros correctamente"
.LC1:
	.string	"Uso: %s <direccion> <puerto>\n"
	.align 8
.LC2:
	.string	"argv[0]: %s, argv[1]: %s, argv[2]: %s\n"
.LC3:
	.string	"Error getaddrinfo() %d: %s\n"
.LC4:
	.string	"Error socket() %d: %s\n"
.LC5:
	.string	"Error bind() %d: %s\n"
.LC6:
	.string	"Error recvfrom() %d: %s\n"
.LC7:
	.string	"Error getnameinfo() %d: %s\n"
	.align 8
.LC8:
	.string	"Conexi\303\263n desde Host: %s, Puerto: %s\n"
.LC9:
	.string	"%H:%M:%S\n"
.LC10:
	.string	"Error strftime() %d: %s\n"
.LC11:
	.string	"Error sendto() %d: %s\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.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, 1576
	.cfi_offset 3, -24
	mov	DWORD PTR -1572[rbp], edi
	mov	QWORD PTR -1584[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -1572[rbp], 3
	je	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -1584[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L12
.L2:
	mov	rax, QWORD PTR -1584[rbp]
	add	rax, 16
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -1584[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -1584[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -1520[rbp]
	mov	edx, 48
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -1516[rbp], 0
	mov	DWORD PTR -1512[rbp], 2
	mov	DWORD PTR -1520[rbp], 1
	mov	DWORD PTR -1508[rbp], 0
	mov	QWORD PTR -1488[rbp], 0
	mov	QWORD PTR -1496[rbp], 0
	mov	QWORD PTR -1480[rbp], 0
	mov	rax, QWORD PTR -1584[rbp]
	add	rax, 16
	mov	rsi, QWORD PTR [rax]
	mov	rax, QWORD PTR -1584[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rcx, -1536[rbp]
	lea	rdx, -1520[rbp]
	mov	rdi, rax
	call	getaddrinfo@PLT
	test	eax, eax
	je	.L4
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rbx, rax
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	rdx, rbx
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L12
.L4:
	mov	rax, QWORD PTR -1536[rbp]
	mov	edx, DWORD PTR 12[rax]
	mov	rax, QWORD PTR -1536[rbp]
	mov	ecx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -1536[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	esi, ecx
	mov	edi, eax
	call	socket@PLT
	mov	DWORD PTR -1556[rbp], eax
	cmp	DWORD PTR -1556[rbp], -1
	jne	.L5
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rbx, rax
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	rdx, rbx
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L12
.L5:
	mov	rax, QWORD PTR -1536[rbp]
	mov	edx, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -1536[rbp]
	mov	rcx, QWORD PTR 24[rax]
	mov	eax, DWORD PTR -1556[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	cmp	eax, -1
	jne	.L6
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rbx, rax
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	rdx, rbx
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L12
.L6:
	mov	DWORD PTR -1560[rbp], 128
	lea	rcx, -1560[rbp]
	lea	rdx, -1408[rbp]
	lea	rsi, -1248[rbp]
	mov	eax, DWORD PTR -1556[rbp]
	mov	r9, rcx
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 80
	mov	edi, eax
	call	recvfrom@PLT
	mov	DWORD PTR -1552[rbp], eax
	cmp	DWORD PTR -1552[rbp], -1
	jne	.L7
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rbx, rax
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	rdx, rbx
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L12
.L7:
	mov	esi, DWORD PTR -1560[rbp]
	lea	rcx, -1280[rbp]
	lea	rdx, -1056[rbp]
	lea	rax, -1408[rbp]
	sub	rsp, 8
	push	3
	mov	r9d, 32
	mov	r8, rcx
	mov	ecx, 1025
	mov	rdi, rax
	call	getnameinfo@PLT
	add	rsp, 16
	mov	DWORD PTR -1548[rbp], eax
	cmp	DWORD PTR -1548[rbp], -1
	jne	.L9
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rbx, rax
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	rdx, rbx
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L12
.L9:
	lea	rdx, -1280[rbp]
	lea	rax, -1056[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -1528[rbp]
	mov	rdi, rax
	call	time@PLT
	lea	rax, -1528[rbp]
	mov	rdi, rax
	call	localtime@PLT
	mov	rcx, QWORD PTR [rax]
	mov	rbx, QWORD PTR 8[rax]
	mov	QWORD PTR -1472[rbp], rcx
	mov	QWORD PTR -1464[rbp], rbx
	mov	rcx, QWORD PTR 16[rax]
	mov	rbx, QWORD PTR 24[rax]
	mov	QWORD PTR -1456[rbp], rcx
	mov	QWORD PTR -1448[rbp], rbx
	mov	rcx, QWORD PTR 32[rax]
	mov	rbx, QWORD PTR 40[rax]
	mov	QWORD PTR -1440[rbp], rcx
	mov	QWORD PTR -1432[rbp], rbx
	mov	rax, QWORD PTR 48[rax]
	mov	QWORD PTR -1424[rbp], rax
	lea	rdx, -1472[rbp]
	lea	rax, -1168[rbp]
	mov	rcx, rdx
	lea	rdx, .LC9[rip]
	mov	esi, 100
	mov	rdi, rax
	call	strftime@PLT
	mov	DWORD PTR -1544[rbp], eax
	cmp	DWORD PTR -1544[rbp], -1
	jne	.L10
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rbx, rax
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	rdx, rbx
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L12
.L10:
	mov	edi, DWORD PTR -1560[rbp]
	mov	eax, DWORD PTR -1544[rbp]
	movsx	rdx, eax
	lea	rcx, -1408[rbp]
	lea	rsi, -1168[rbp]
	mov	eax, DWORD PTR -1556[rbp]
	mov	r9d, edi
	mov	r8, rcx
	mov	ecx, 0
	mov	edi, eax
	call	sendto@PLT
	mov	DWORD PTR -1540[rbp], eax
	cmp	DWORD PTR -1540[rbp], -1
	jne	.L6
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rbx, rax
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	rdx, rbx
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
.L12:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"72152.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Introduce los par\303\241metros correctamente\000"
	.align	2
.LC1:
	.ascii	"Uso: %s <direccion> <puerto>\012\000"
	.align	2
.LC2:
	.ascii	"argv[0]: %s, argv[1]: %s, argv[2]: %s\012\000"
	.align	2
.LC3:
	.ascii	"Error getaddrinfo() %d: %s\012\000"
	.align	2
.LC4:
	.ascii	"Error socket() %d: %s\012\000"
	.align	2
.LC5:
	.ascii	"Error bind() %d: %s\012\000"
	.align	2
.LC6:
	.ascii	"Error recvfrom() %d: %s\012\000"
	.align	2
.LC7:
	.ascii	"Error getnameinfo() %d: %s\012\000"
	.align	2
.LC8:
	.ascii	"Conexi\303\263n desde Host: %s, Puerto: %s\012\000"
	.align	2
.LC9:
	.ascii	"%H:%M:%S\012\000"
	.align	2
.LC10:
	.ascii	"Error strftime() %d: %s\012\000"
	.align	2
.LC11:
	.ascii	"Error sendto() %d: %s\012\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1488
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #1504
	sub	sp, sp, #4
	str	r0, [fp, #-1496]
	str	r1, [fp, #-1500]
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-1496]
	cmp	r3, #3
	beq	.L2
	ldr	r0, .L14+4
	bl	puts
	ldr	r3, [fp, #-1500]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L14+8
	bl	printf
	mvn	r3, #0
	b	.L12
.L2:
	ldr	r3, [fp, #-1500]
	ldr	r1, [r3]
	ldr	r3, [fp, #-1500]
	add	r3, r3, #4
	ldr	r2, [r3]
	ldr	r3, [fp, #-1500]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r0, .L14+12
	bl	printf
	sub	r3, fp, #1440
	sub	r3, r3, #12
	sub	r3, r3, #8
	mov	r2, #32
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-1456]
	mov	r3, #2
	str	r3, [fp, #-1452]
	mov	r3, #1
	str	r3, [fp, #-1460]
	mov	r3, #0
	str	r3, [fp, #-1448]
	mov	r3, #0
	str	r3, [fp, #-1436]
	mov	r3, #0
	str	r3, [fp, #-1440]
	mov	r3, #0
	str	r3, [fp, #-1432]
	ldr	r3, [fp, #-1500]
	add	r3, r3, #4
	ldr	r0, [r3]
	ldr	r3, [fp, #-1500]
	add	r3, r3, #8
	ldr	r1, [r3]
	sub	r3, fp, #1472
	sub	r3, r3, #12
	sub	r3, r3, #8
	sub	r2, fp, #1440
	sub	r2, r2, #12
	sub	r2, r2, #8
	bl	getaddrinfo
	mov	r3, r0
	cmp	r3, #0
	beq	.L4
	bl	__errno_location
	mov	r3, r0
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L14+16
	bl	printf
	mvn	r3, #0
	b	.L12
.L4:
	ldr	r3, [fp, #-1492]
	ldr	r0, [r3, #4]
	ldr	r3, [fp, #-1492]
	ldr	r1, [r3, #8]
	ldr	r3, [fp, #-1492]
	ldr	r3, [r3, #12]
	mov	r2, r3
	bl	socket
	str	r0, [fp, #-1480]
	ldr	r3, [fp, #-1480]
	cmn	r3, #1
	bne	.L5
	bl	__errno_location
	mov	r3, r0
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L14+20
	bl	printf
	mvn	r3, #0
	b	.L12
.L5:
	ldr	r3, [fp, #-1492]
	ldr	r1, [r3, #20]
	ldr	r3, [fp, #-1492]
	ldr	r3, [r3, #16]
	mov	r2, r3
	ldr	r0, [fp, #-1480]
	bl	bind
	mov	r3, r0
	cmn	r3, #1
	bne	.L6
	bl	__errno_location
	mov	r3, r0
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L14+24
	bl	printf
	mvn	r3, #0
	b	.L12
.L6:
	mov	r3, #128
	str	r3, [fp, #-1488]
	sub	r1, fp, #1200
	sub	r1, r1, #12
	sub	r1, r1, #12
	sub	r3, fp, #1472
	sub	r3, r3, #12
	sub	r3, r3, #4
	str	r3, [sp, #4]
	sub	r3, fp, #1360
	sub	r3, r3, #12
	sub	r3, r3, #12
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #80
	ldr	r0, [fp, #-1480]
	bl	recvfrom
	str	r0, [fp, #-1476]
	ldr	r3, [fp, #-1476]
	cmn	r3, #1
	bne	.L7
	bl	__errno_location
	mov	r3, r0
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L14+28
	bl	printf
	mvn	r3, #0
	b	.L12
.L7:
	ldr	r1, [fp, #-1488]
	sub	r2, fp, #1024
	sub	r2, r2, #12
	sub	r2, r2, #8
	sub	r0, fp, #1360
	sub	r0, r0, #12
	sub	r0, r0, #12
	mov	r3, #3
	str	r3, [sp, #8]
	mov	r3, #32
	str	r3, [sp, #4]
	sub	r3, fp, #1232
	sub	r3, r3, #12
	sub	r3, r3, #12
	str	r3, [sp]
	ldr	r3, .L14+32
	bl	getnameinfo
	str	r0, [fp, #-1472]
	ldr	r3, [fp, #-1472]
	cmn	r3, #1
	bne	.L9
	bl	__errno_location
	mov	r3, r0
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L14+36
	bl	printf
	mvn	r3, #0
	b	.L12
.L9:
	sub	r2, fp, #1232
	sub	r2, r2, #12
	sub	r2, r2, #12
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #8
	mov	r1, r3
	ldr	r0, .L14+40
	bl	printf
	sub	r3, fp, #1472
	sub	r3, r3, #12
	mov	r0, r3
	bl	time
	sub	r3, fp, #1472
	sub	r3, r3, #12
	mov	r0, r3
	bl	localtime
	mov	r3, r0
	sub	ip, fp, #1408
	sub	ip, ip, #12
	sub	ip, ip, #8
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2}
	stm	ip, {r0, r1, r2}
	sub	r3, fp, #1408
	sub	r3, r3, #12
	sub	r3, r3, #8
	sub	r0, fp, #1120
	sub	r0, r0, #12
	sub	r0, r0, #12
	ldr	r2, .L14+44
	mov	r1, #100
	bl	strftime
	mov	r3, r0
	str	r3, [fp, #-1468]
	ldr	r3, [fp, #-1468]
	cmn	r3, #1
	bne	.L10
	bl	__errno_location
	mov	r3, r0
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L14+48
	bl	printf
	mvn	r3, #0
	b	.L12
.L10:
	ldr	r2, [fp, #-1468]
	ldr	r3, [fp, #-1488]
	sub	r1, fp, #1120
	sub	r1, r1, #12
	sub	r1, r1, #12
	str	r3, [sp, #4]
	sub	r3, fp, #1360
	sub	r3, r3, #12
	sub	r3, r3, #12
	str	r3, [sp]
	mov	r3, #0
	ldr	r0, [fp, #-1480]
	bl	sendto
	str	r0, [fp, #-1464]
	ldr	r3, [fp, #-1464]
	cmn	r3, #1
	bne	.L6
	bl	__errno_location
	mov	r3, r0
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L14+52
	bl	printf
	mvn	r3, #0
.L12:
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC12
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	1025
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
