	.file	"71064.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Introduce correctamente los parametros"
	.align 8
.LC1:
	.string	"Uso: %s <direccion servidor> <puerto> <comando>\n"
.LC2:
	.string	"Error getaddrinfo() %d: %s\n"
.LC3:
	.string	"Error socket() %d: %s\n"
.LC4:
	.string	"Error connect() %d: %s\n"
.LC5:
	.string	"Error sendto() %d: %s\n"
.LC6:
	.string	"Error revcfrom() %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, 360
	.cfi_offset 3, -24
	mov	DWORD PTR -356[rbp], edi
	mov	QWORD PTR -368[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -356[rbp], 4
	je	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -368[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L9
.L2:
	lea	rax, -320[rbp]
	mov	edx, 48
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -316[rbp], 0
	mov	DWORD PTR -312[rbp], 2
	mov	DWORD PTR -320[rbp], 0
	mov	DWORD PTR -308[rbp], 0
	mov	rax, QWORD PTR -368[rbp]
	add	rax, 16
	mov	rsi, QWORD PTR [rax]
	mov	rax, QWORD PTR -368[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rcx, -328[rbp]
	lea	rdx, -320[rbp]
	mov	rdi, rax
	call	getaddrinfo@PLT
	cmp	eax, -1
	jne	.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, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L9
.L4:
	mov	rax, QWORD PTR -328[rbp]
	mov	edx, DWORD PTR 12[rax]
	mov	rax, QWORD PTR -328[rbp]
	mov	ecx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -328[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	esi, ecx
	mov	edi, eax
	call	socket@PLT
	mov	DWORD PTR -344[rbp], eax
	cmp	DWORD PTR -344[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, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -344[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	mov	eax, -1
	jmp	.L9
.L5:
	mov	rax, QWORD PTR -328[rbp]
	mov	edx, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -328[rbp]
	mov	rcx, QWORD PTR 24[rax]
	mov	eax, DWORD PTR -344[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	connect@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, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -344[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	mov	eax, -1
	jmp	.L9
.L6:
	mov	DWORD PTR -340[rbp], 128
	mov	rax, QWORD PTR -368[rbp]
	add	rax, 24
	mov	rdx, QWORD PTR [rax]
	lea	rax, -144[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	lea	rsi, -144[rbp]
	mov	eax, DWORD PTR -344[rbp]
	mov	ecx, 0
	mov	edx, 50
	mov	edi, eax
	call	send@PLT
	mov	DWORD PTR -336[rbp], eax
	cmp	DWORD PTR -336[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, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L9
.L7:
	lea	rsi, -80[rbp]
	mov	eax, DWORD PTR -344[rbp]
	mov	ecx, 0
	mov	edx, 50
	mov	edi, eax
	call	recv@PLT
	mov	DWORD PTR -332[rbp], eax
	cmp	DWORD PTR -332[rbp], -1
	jne	.L8
	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	.L9
.L8:
	lea	rax, -80[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -344[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	mov	rax, QWORD PTR -328[rbp]
	mov	rdi, rax
	call	freeaddrinfo@PLT
	mov	eax, 0
.L9:
	mov	rcx, QWORD PTR -24[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	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	"71064.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Introduce correctamente los parametros\000"
	.align	2
.LC1:
	.ascii	"Uso: %s <direccion servidor> <puerto> <comando>\012"
	.ascii	"\000"
	.align	2
.LC2:
	.ascii	"Error getaddrinfo() %d: %s\012\000"
	.align	2
.LC3:
	.ascii	"Error socket() %d: %s\012\000"
	.align	2
.LC4:
	.ascii	"Error connect() %d: %s\012\000"
	.align	2
.LC5:
	.ascii	"Error sendto() %d: %s\012\000"
	.align	2
.LC6:
	.ascii	"Error revcfrom() %d: %s\012\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 296
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #300
	str	r0, [fp, #-304]
	str	r1, [fp, #-308]
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-304]
	cmp	r3, #4
	beq	.L2
	ldr	r0, .L11+4
	bl	puts
	ldr	r3, [fp, #-308]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L11+8
	bl	printf
	mvn	r3, #0
	b	.L9
.L2:
	sub	r3, fp, #280
	mov	r2, #32
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-276]
	mov	r3, #2
	str	r3, [fp, #-272]
	mov	r3, #0
	str	r3, [fp, #-280]
	mov	r3, #0
	str	r3, [fp, #-268]
	ldr	r3, [fp, #-308]
	add	r3, r3, #4
	ldr	r0, [r3]
	ldr	r3, [fp, #-308]
	add	r3, r3, #8
	ldr	r1, [r3]
	sub	r3, fp, #300
	sub	r2, fp, #280
	bl	getaddrinfo
	mov	r3, r0
	cmn	r3, #1
	bne	.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, .L11+12
	bl	printf
	mvn	r3, #0
	b	.L9
.L4:
	ldr	r3, [fp, #-300]
	ldr	r0, [r3, #4]
	ldr	r3, [fp, #-300]
	ldr	r1, [r3, #8]
	ldr	r3, [fp, #-300]
	ldr	r3, [r3, #12]
	mov	r2, r3
	bl	socket
	str	r0, [fp, #-296]
	ldr	r3, [fp, #-296]
	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, .L11+16
	bl	printf
	ldr	r0, [fp, #-296]
	bl	close
	mvn	r3, #0
	b	.L9
.L5:
	ldr	r3, [fp, #-300]
	ldr	r1, [r3, #20]
	ldr	r3, [fp, #-300]
	ldr	r3, [r3, #16]
	mov	r2, r3
	ldr	r0, [fp, #-296]
	bl	connect
	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, .L11+20
	bl	printf
	ldr	r0, [fp, #-296]
	bl	close
	mvn	r3, #0
	b	.L9
.L6:
	mov	r3, #128
	str	r3, [fp, #-292]
	ldr	r3, [fp, #-308]
	add	r3, r3, #12
	ldr	r2, [r3]
	sub	r3, fp, #120
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	sub	r1, fp, #120
	mov	r3, #0
	mov	r2, #50
	ldr	r0, [fp, #-296]
	bl	send
	str	r0, [fp, #-288]
	ldr	r3, [fp, #-288]
	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, .L11+24
	bl	printf
	mvn	r3, #0
	b	.L9
.L7:
	sub	r1, fp, #68
	mov	r3, #0
	mov	r2, #50
	ldr	r0, [fp, #-296]
	bl	recv
	str	r0, [fp, #-284]
	ldr	r3, [fp, #-284]
	cmn	r3, #1
	bne	.L8
	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, .L11+28
	bl	printf
	mvn	r3, #0
	b	.L9
.L8:
	sub	r3, fp, #68
	mov	r0, r3
	bl	printf
	ldr	r0, [fp, #-296]
	bl	close
	ldr	r3, [fp, #-300]
	mov	r0, r3
	bl	freeaddrinfo
	mov	r3, #0
.L9:
	ldr	r2, .L11
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC7
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
