	.file	"412027.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Introduce correctamente los par\303\241metros"
	.align 8
.LC1:
	.string	"Uso: %s <direcci\303\263n> <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 listen() %d: %s\n"
.LC5:
	.string	"Error accept() %d: %s\n"
.LC6:
	.string	"Error getnameinfo() %d: %s\n"
	.align 8
.LC7:
	.string	"Conexi\303\263n desde Host: %s, Puerto: %s\n"
.LC8:
	.string	"Error recv() %d: %s\n"
.LC9:
	.string	"Error send() %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, 1400
	.cfi_offset 3, -24
	mov	DWORD PTR -1396[rbp], edi
	mov	QWORD PTR -1408[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -1396[rbp], 3
	je	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -1408[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L19
.L2:
	mov	rax, QWORD PTR -1408[rbp]
	add	rax, 16
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -1408[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -1408[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -1344[rbp]
	mov	edx, 48
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -1340[rbp], 0
	mov	DWORD PTR -1336[rbp], 1
	mov	DWORD PTR -1344[rbp], 1
	mov	DWORD PTR -1332[rbp], 0
	mov	QWORD PTR -1312[rbp], 0
	mov	QWORD PTR -1320[rbp], 0
	mov	QWORD PTR -1304[rbp], 0
	mov	rax, QWORD PTR -1408[rbp]
	add	rax, 16
	mov	rsi, QWORD PTR [rax]
	mov	rax, QWORD PTR -1408[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rcx, -1360[rbp]
	lea	rdx, -1344[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	.L19
.L4:
	mov	rax, QWORD PTR -1360[rbp]
	mov	QWORD PTR -1352[rbp], rax
	jmp	.L5
.L10:
	mov	rax, QWORD PTR -1352[rbp]
	mov	edx, DWORD PTR 12[rax]
	mov	rax, QWORD PTR -1352[rbp]
	mov	ecx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -1352[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	esi, ecx
	mov	edi, eax
	call	socket@PLT
	mov	DWORD PTR -1380[rbp], eax
	cmp	DWORD PTR -1380[rbp], -1
	je	.L21
	mov	rax, QWORD PTR -1352[rbp]
	mov	edx, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -1352[rbp]
	mov	rcx, QWORD PTR 24[rax]
	mov	eax, DWORD PTR -1380[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	je	.L22
	mov	eax, DWORD PTR -1380[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	jmp	.L7
.L21:
	nop
.L7:
	mov	rax, QWORD PTR -1352[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	QWORD PTR -1352[rbp], rax
.L5:
	cmp	QWORD PTR -1352[rbp], 0
	jne	.L10
	jmp	.L9
.L22:
	nop
.L9:
	mov	eax, DWORD PTR -1380[rbp]
	mov	esi, 16
	mov	edi, eax
	call	listen@PLT
	cmp	eax, -1
	jne	.L11
	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	.L19
.L11:
	mov	rax, QWORD PTR -1360[rbp]
	mov	rdi, rax
	call	freeaddrinfo@PLT
.L18:
	mov	DWORD PTR -1384[rbp], 8
	lea	rdx, -1384[rbp]
	lea	rcx, -1296[rbp]
	mov	eax, DWORD PTR -1380[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -1376[rbp], eax
	cmp	DWORD PTR -1376[rbp], -1
	jne	.L12
	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, DWORD PTR -1376[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	mov	eax, -1
	jmp	.L19
.L12:
	mov	esi, DWORD PTR -1384[rbp]
	lea	rcx, -1168[rbp]
	lea	rdx, -1056[rbp]
	lea	rax, -1296[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 -1372[rbp], eax
	cmp	DWORD PTR -1372[rbp], -1
	jne	.L14
	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, DWORD PTR -1376[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	mov	eax, -1
	jmp	.L19
.L14:
	lea	rdx, -1168[rbp]
	lea	rax, -1056[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L15
.L17:
	cmp	DWORD PTR -1368[rbp], -1
	jne	.L16
	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, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -1376[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	mov	eax, -1
	jmp	.L19
.L16:
	lea	rax, -1056[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rsi, -1056[rbp]
	mov	eax, DWORD PTR -1376[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	mov	DWORD PTR -1364[rbp], eax
	cmp	DWORD PTR -1364[rbp], -1
	jne	.L15
	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, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -1376[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	mov	eax, -1
	jmp	.L19
.L15:
	lea	rsi, -1136[rbp]
	mov	eax, DWORD PTR -1376[rbp]
	mov	ecx, 0
	mov	edx, 80
	mov	edi, eax
	call	recv@PLT
	mov	DWORD PTR -1368[rbp], eax
	cmp	DWORD PTR -1368[rbp], 0
	jne	.L17
	mov	eax, DWORD PTR -1376[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	jmp	.L18
.L19:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	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	"412027.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Introduce correctamente los par\303\241metros\000"
	.align	2
.LC1:
	.ascii	"Uso: %s <direcci\303\263n> <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 listen() %d: %s\012\000"
	.align	2
.LC5:
	.ascii	"Error accept() %d: %s\012\000"
	.align	2
.LC6:
	.ascii	"Error getnameinfo() %d: %s\012\000"
	.align	2
.LC7:
	.ascii	"Conexi\303\263n desde Host: %s, Puerto: %s\012\000"
	.align	2
.LC8:
	.ascii	"Error recv() %d: %s\012\000"
	.align	2
.LC9:
	.ascii	"Error send() %d: %s\012\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1344
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #1360
	sub	sp, sp, #4
	str	r0, [fp, #-1352]
	str	r1, [fp, #-1356]
	ldr	r3, .L23
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-1352]
	cmp	r3, #3
	beq	.L2
	ldr	r0, .L23+4
	bl	puts
	ldr	r3, [fp, #-1356]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L23+8
	bl	printf
	mvn	r3, #0
	b	.L19
.L2:
	ldr	r3, [fp, #-1356]
	ldr	r1, [r3]
	ldr	r3, [fp, #-1356]
	add	r3, r3, #4
	ldr	r2, [r3]
	ldr	r3, [fp, #-1356]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r0, .L23+12
	bl	printf
	sub	r3, fp, #1296
	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, #-1312]
	mov	r3, #1
	str	r3, [fp, #-1308]
	mov	r3, #1
	str	r3, [fp, #-1316]
	mov	r3, #0
	str	r3, [fp, #-1304]
	mov	r3, #0
	str	r3, [fp, #-1292]
	mov	r3, #0
	str	r3, [fp, #-1296]
	mov	r3, #0
	str	r3, [fp, #-1288]
	ldr	r3, [fp, #-1356]
	add	r3, r3, #4
	ldr	r0, [r3]
	ldr	r3, [fp, #-1356]
	add	r3, r3, #8
	ldr	r1, [r3]
	sub	r3, fp, #1328
	sub	r3, r3, #12
	sub	r3, r3, #8
	sub	r2, fp, #1296
	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, .L23+16
	bl	printf
	mvn	r3, #0
	b	.L19
.L4:
	ldr	r3, [fp, #-1348]
	str	r3, [fp, #-1340]
	b	.L5
.L10:
	ldr	r3, [fp, #-1340]
	ldr	r0, [r3, #4]
	ldr	r3, [fp, #-1340]
	ldr	r1, [r3, #8]
	ldr	r3, [fp, #-1340]
	ldr	r3, [r3, #12]
	mov	r2, r3
	bl	socket
	str	r0, [fp, #-1336]
	ldr	r3, [fp, #-1336]
	cmn	r3, #1
	beq	.L21
	ldr	r3, [fp, #-1340]
	ldr	r1, [r3, #20]
	ldr	r3, [fp, #-1340]
	ldr	r3, [r3, #16]
	mov	r2, r3
	ldr	r0, [fp, #-1336]
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	beq	.L22
	ldr	r0, [fp, #-1336]
	bl	close
	b	.L7
.L21:
	nop
.L7:
	ldr	r3, [fp, #-1340]
	ldr	r3, [r3, #28]
	str	r3, [fp, #-1340]
.L5:
	ldr	r3, [fp, #-1340]
	cmp	r3, #0
	bne	.L10
	b	.L9
.L22:
	nop
.L9:
	mov	r1, #16
	ldr	r0, [fp, #-1336]
	bl	listen
	mov	r3, r0
	cmn	r3, #1
	bne	.L11
	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, .L23+20
	bl	printf
	mvn	r3, #0
	b	.L19
.L11:
	ldr	r3, [fp, #-1348]
	mov	r0, r3
	bl	freeaddrinfo
.L18:
	mov	r3, #4
	str	r3, [fp, #-1344]
	sub	r2, fp, #1328
	sub	r2, r2, #12
	sub	r2, r2, #4
	sub	r3, fp, #1264
	sub	r3, r3, #12
	sub	r3, r3, #8
	mov	r1, r3
	ldr	r0, [fp, #-1336]
	bl	accept
	str	r0, [fp, #-1332]
	ldr	r3, [fp, #-1332]
	cmn	r3, #1
	bne	.L12
	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, .L23+24
	bl	printf
	ldr	r0, [fp, #-1332]
	bl	close
	mvn	r3, #0
	b	.L19
.L12:
	ldr	r1, [fp, #-1344]
	sub	r2, fp, #1024
	sub	r2, r2, #12
	sub	r2, r2, #8
	sub	r0, fp, #1264
	sub	r0, r0, #12
	sub	r0, r0, #8
	mov	r3, #3
	str	r3, [sp, #8]
	mov	r3, #32
	str	r3, [sp, #4]
	sub	r3, fp, #1136
	sub	r3, r3, #12
	sub	r3, r3, #8
	str	r3, [sp]
	ldr	r3, .L23+28
	bl	getnameinfo
	str	r0, [fp, #-1328]
	ldr	r3, [fp, #-1328]
	cmn	r3, #1
	bne	.L14
	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, .L23+32
	bl	printf
	ldr	r0, [fp, #-1332]
	bl	close
	mvn	r3, #0
	b	.L19
.L14:
	sub	r2, fp, #1136
	sub	r2, r2, #12
	sub	r2, r2, #8
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #8
	mov	r1, r3
	ldr	r0, .L23+36
	bl	printf
	b	.L15
.L17:
	ldr	r3, [fp, #-1324]
	cmn	r3, #1
	bne	.L16
	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, .L23+40
	bl	printf
	ldr	r0, [fp, #-1332]
	bl	close
	mvn	r3, #0
	b	.L19
.L16:
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #8
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r1, fp, #1024
	sub	r1, r1, #12
	sub	r1, r1, #8
	mov	r3, #0
	ldr	r0, [fp, #-1332]
	bl	send
	str	r0, [fp, #-1320]
	ldr	r3, [fp, #-1320]
	cmn	r3, #1
	bne	.L15
	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, .L23+44
	bl	printf
	ldr	r0, [fp, #-1332]
	bl	close
	mvn	r3, #0
	b	.L19
.L15:
	sub	r1, fp, #1104
	sub	r1, r1, #12
	sub	r1, r1, #8
	mov	r3, #0
	mov	r2, #80
	ldr	r0, [fp, #-1332]
	bl	recv
	str	r0, [fp, #-1324]
	ldr	r3, [fp, #-1324]
	cmp	r3, #0
	bne	.L17
	ldr	r0, [fp, #-1332]
	bl	close
	b	.L18
.L19:
	ldr	r2, .L23
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L20
	bl	__stack_chk_fail
.L20:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC10
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	1025
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
