	.file	"111482.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Usage: %s <direccion host> <puerto> <comando>\n"
.LC1:
	.string	"Error en getaddrinfo()\n"
.LC2:
	.string	"Error en socket()\n"
.LC3:
	.string	"Error en connect()\n"
.LC4:
	.string	"Error en sendto()\n"
.LC5:
	.string	"%s"
	.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
	sub	rsp, 352
	mov	DWORD PTR -340[rbp], edi
	mov	QWORD PTR -352[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -340[rbp], 4
	je	.L2
	mov	rax, QWORD PTR -352[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L8
.L2:
	lea	rax, -304[rbp]
	mov	edx, 48
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -300[rbp], 0
	mov	DWORD PTR -296[rbp], 2
	mov	rax, QWORD PTR -352[rbp]
	add	rax, 16
	mov	rsi, QWORD PTR [rax]
	mov	rax, QWORD PTR -352[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rcx, -312[rbp]
	lea	rdx, -304[rbp]
	mov	rdi, rax
	call	getaddrinfo@PLT
	mov	DWORD PTR -324[rbp], eax
	cmp	DWORD PTR -324[rbp], -1
	jne	.L4
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L8
.L4:
	mov	rax, QWORD PTR -312[rbp]
	mov	ecx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -312[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	edx, 0
	mov	esi, ecx
	mov	edi, eax
	call	socket@PLT
	mov	DWORD PTR -320[rbp], eax
	cmp	DWORD PTR -320[rbp], -1
	jne	.L5
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L8
.L5:
	mov	rax, QWORD PTR -312[rbp]
	mov	edx, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -312[rbp]
	mov	rcx, QWORD PTR 24[rax]
	mov	eax, DWORD PTR -320[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	mov	DWORD PTR -324[rbp], eax
	cmp	DWORD PTR -324[rbp], -1
	jne	.L6
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L8
.L6:
	mov	rax, QWORD PTR -352[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -114[rbp], al
	mov	BYTE PTR -113[rbp], 10
	mov	rax, QWORD PTR -312[rbp]
	mov	ecx, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -312[rbp]
	mov	rdx, QWORD PTR 24[rax]
	lea	rsi, -114[rbp]
	mov	eax, DWORD PTR -320[rbp]
	mov	r9d, ecx
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 2
	mov	edi, eax
	call	sendto@PLT
	mov	DWORD PTR -324[rbp], eax
	cmp	DWORD PTR -324[rbp], -1
	jne	.L7
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L8
.L7:
	mov	DWORD PTR -328[rbp], 128
	lea	rcx, -328[rbp]
	lea	rdx, -256[rbp]
	lea	rsi, -112[rbp]
	mov	eax, DWORD PTR -320[rbp]
	mov	r9, rcx
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 100
	mov	edi, eax
	call	recvfrom@PLT
	mov	DWORD PTR -316[rbp], eax
	mov	eax, DWORD PTR -316[rbp]
	cdqe
	mov	BYTE PTR -112[rbp+rax], 0
	lea	rax, -112[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -312[rbp]
	mov	rdi, rax
	call	freeaddrinfo@PLT
	mov	eax, 0
.L8:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	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	"111482.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Usage: %s <direccion host> <puerto> <comando>\012\000"
	.align	2
.LC1:
	.ascii	"Error en getaddrinfo()\012\000"
	.align	2
.LC2:
	.ascii	"Error en socket()\012\000"
	.align	2
.LC3:
	.ascii	"Error en connect()\012\000"
	.align	2
.LC4:
	.ascii	"Error en sendto()\012\000"
	.align	2
.LC5:
	.ascii	"%s\000"
	.align	2
.LC6:
	.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	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #304
	str	r0, [fp, #-296]
	str	r1, [fp, #-300]
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-296]
	cmp	r3, #4
	beq	.L2
	ldr	r3, [fp, #-300]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L10+4
	bl	printf
	mvn	r3, #0
	b	.L8
.L2:
	sub	r3, fp, #272
	mov	r2, #32
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-268]
	mov	r3, #2
	str	r3, [fp, #-264]
	ldr	r3, [fp, #-300]
	add	r3, r3, #4
	ldr	r0, [r3]
	ldr	r3, [fp, #-300]
	add	r3, r3, #8
	ldr	r1, [r3]
	sub	r3, fp, #292
	sub	r2, fp, #272
	bl	getaddrinfo
	str	r0, [fp, #-284]
	ldr	r3, [fp, #-284]
	cmn	r3, #1
	bne	.L4
	ldr	r0, .L10+8
	bl	perror
	mvn	r3, #0
	b	.L8
.L4:
	ldr	r3, [fp, #-292]
	ldr	r0, [r3, #4]
	ldr	r3, [fp, #-292]
	ldr	r3, [r3, #8]
	mov	r2, #0
	mov	r1, r3
	bl	socket
	str	r0, [fp, #-280]
	ldr	r3, [fp, #-280]
	cmn	r3, #1
	bne	.L5
	ldr	r0, .L10+12
	bl	perror
	mvn	r3, #0
	b	.L8
.L5:
	ldr	r3, [fp, #-292]
	ldr	r1, [r3, #20]
	ldr	r3, [fp, #-292]
	ldr	r3, [r3, #16]
	mov	r2, r3
	ldr	r0, [fp, #-280]
	bl	connect
	str	r0, [fp, #-284]
	ldr	r3, [fp, #-284]
	cmn	r3, #1
	bne	.L6
	ldr	r0, .L10+16
	bl	perror
	mvn	r3, #0
	b	.L8
.L6:
	ldr	r3, [fp, #-300]
	add	r3, r3, #12
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	strb	r3, [fp, #-112]
	mov	r3, #10
	strb	r3, [fp, #-111]
	ldr	r3, [fp, #-292]
	ldr	r3, [r3, #20]
	ldr	r2, [fp, #-292]
	ldr	r2, [r2, #16]
	sub	r1, fp, #112
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #2
	ldr	r0, [fp, #-280]
	bl	sendto
	str	r0, [fp, #-284]
	ldr	r3, [fp, #-284]
	cmn	r3, #1
	bne	.L7
	ldr	r0, .L10+20
	bl	perror
	mvn	r3, #0
	b	.L8
.L7:
	mov	r3, #128
	str	r3, [fp, #-288]
	sub	r1, fp, #108
	sub	r3, fp, #288
	str	r3, [sp, #4]
	sub	r3, fp, #240
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #100
	ldr	r0, [fp, #-280]
	bl	recvfrom
	str	r0, [fp, #-276]
	sub	r2, fp, #108
	ldr	r3, [fp, #-276]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #108
	mov	r1, r3
	ldr	r0, .L10+24
	bl	printf
	ldr	r3, [fp, #-292]
	mov	r0, r3
	bl	freeaddrinfo
	mov	r3, #0
.L8:
	ldr	r2, .L10
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC6
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
