	.file	"182471.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Error de uso"
.LC1:
	.string	"Error al obtener direcciones"
.LC2:
	.string	"Socket caca"
.LC3:
	.string	"Fallo al enviar el mensaje"
.LC4:
	.string	"Fallo al recibir el mensaje"
.LC5:
	.string	"Saliendo del socket"
	.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	r12
	push	rbx
	sub	rsp, 512
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	DWORD PTR -516[rbp], edi
	mov	QWORD PTR -528[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -516[rbp], 4
	je	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L10
.L2:
	mov	DWORD PTR -464[rbp], 1
	mov	DWORD PTR -460[rbp], 0
	mov	DWORD PTR -456[rbp], 2
	mov	DWORD PTR -452[rbp], 0
	mov	QWORD PTR -440[rbp], 0
	mov	QWORD PTR -432[rbp], 0
	mov	QWORD PTR -424[rbp], 0
	mov	rax, QWORD PTR -528[rbp]
	add	rax, 16
	mov	rsi, QWORD PTR [rax]
	mov	rax, QWORD PTR -528[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rcx, -488[rbp]
	lea	rdx, -464[rbp]
	mov	rdi, rax
	call	getaddrinfo@PLT
	test	eax, eax
	je	.L4
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L10
.L4:
	mov	rax, QWORD PTR -488[rbp]
	mov	edx, DWORD PTR 12[rax]
	mov	rax, QWORD PTR -488[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	esi, 2
	mov	edi, eax
	call	socket@PLT
	mov	DWORD PTR -496[rbp], eax
	cmp	DWORD PTR -496[rbp], -1
	jne	.L5
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L10
.L5:
	mov	DWORD PTR -504[rbp], 1
	mov	DWORD PTR -500[rbp], 0
	lea	rdx, -504[rbp]
	mov	eax, DWORD PTR -496[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 2
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	lea	rdx, -500[rbp]
	mov	eax, DWORD PTR -496[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 26
	mov	esi, 41
	mov	edi, eax
	call	setsockopt@PLT
	mov	DWORD PTR -492[rbp], 128
	mov	rax, QWORD PTR -488[rbp]
	mov	rdi, rax
	call	freeaddrinfo@PLT
	mov	QWORD PTR -288[rbp], 0
	mov	QWORD PTR -280[rbp], 0
	mov	QWORD PTR -272[rbp], 0
	mov	QWORD PTR -264[rbp], 0
	mov	QWORD PTR -256[rbp], 0
	mov	QWORD PTR -248[rbp], 0
	mov	QWORD PTR -240[rbp], 0
	mov	QWORD PTR -232[rbp], 0
	mov	QWORD PTR -224[rbp], 0
	mov	QWORD PTR -216[rbp], 0
	mov	QWORD PTR -208[rbp], 0
	mov	QWORD PTR -200[rbp], 0
	mov	QWORD PTR -192[rbp], 0
	mov	QWORD PTR -184[rbp], 0
	mov	QWORD PTR -176[rbp], 0
	mov	QWORD PTR -168[rbp], 0
	mov	QWORD PTR -160[rbp], 0
	mov	QWORD PTR -152[rbp], 0
	mov	QWORD PTR -144[rbp], 0
	mov	QWORD PTR -136[rbp], 0
	mov	QWORD PTR -128[rbp], 0
	mov	QWORD PTR -120[rbp], 0
	mov	QWORD PTR -112[rbp], 0
	mov	QWORD PTR -104[rbp], 0
	mov	QWORD PTR -96[rbp], 0
	mov	QWORD PTR -88[rbp], 0
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	rax, QWORD PTR -488[rbp]
	mov	r12d, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -488[rbp]
	mov	rbx, QWORD PTR 24[rax]
	mov	rax, QWORD PTR -528[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -528[rbp]
	add	rax, 24
	mov	rsi, QWORD PTR [rax]
	mov	eax, DWORD PTR -496[rbp]
	mov	r9d, r12d
	mov	r8, rbx
	mov	ecx, 0
	mov	edi, eax
	call	sendto@PLT
	mov	QWORD PTR -480[rbp], rax
	cmp	QWORD PTR -480[rbp], -1
	jne	.L6
	lea	rdi, .LC3[rip]
	call	puts@PLT
.L6:
	mov	rax, QWORD PTR -488[rbp]
	lea	rcx, 16[rax]
	mov	rax, QWORD PTR -488[rbp]
	mov	rdx, QWORD PTR 24[rax]
	lea	rsi, -288[rbp]
	mov	eax, DWORD PTR -496[rbp]
	mov	r9, rcx
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 256
	mov	edi, eax
	call	recvfrom@PLT
	mov	QWORD PTR -472[rbp], rax
	cmp	QWORD PTR -472[rbp], -1
	jne	.L7
	lea	rdi, .LC4[rip]
	call	puts@PLT
	jmp	.L8
.L7:
	lea	rdx, -288[rbp]
	mov	rax, QWORD PTR -472[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	lea	rax, -288[rbp]
	mov	rdi, rax
	call	puts@PLT
.L8:
	cmp	QWORD PTR -472[rbp], 0
	jne	.L9
	lea	rdi, .LC5[rip]
	call	puts@PLT
.L9:
	mov	eax, DWORD PTR -496[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
.L10:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	add	rsp, 512
	pop	rbx
	pop	r12
	pop	rbp
	.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	"182471.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Error de uso\000"
	.align	2
.LC1:
	.ascii	"Error al obtener direcciones\000"
	.align	2
.LC2:
	.ascii	"Socket caca\000"
	.align	2
.LC3:
	.ascii	"Fallo al enviar el mensaje\000"
	.align	2
.LC4:
	.ascii	"Fallo al recibir el mensaje\000"
	.align	2
.LC5:
	.ascii	"Saliendo del socket\000"
	.align	2
.LC6:
	.ascii	"q\012\000"
	.align	2
.LC7:
	.ascii	"Solicitando salida\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 456
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #468
	str	r0, [fp, #-464]
	str	r1, [fp, #-468]
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-464]
	cmp	r3, #4
	beq	.L2
	ldr	r0, .L13+4
	bl	puts
	mvn	r3, #0
	b	.L11
.L2:
	mov	r3, #1
	str	r3, [fp, #-432]
	mov	r3, #0
	str	r3, [fp, #-428]
	mov	r3, #2
	str	r3, [fp, #-424]
	mov	r3, #0
	str	r3, [fp, #-420]
	mov	r3, #0
	str	r3, [fp, #-412]
	mov	r3, #0
	str	r3, [fp, #-408]
	mov	r3, #0
	str	r3, [fp, #-404]
	ldr	r3, [fp, #-468]
	add	r3, r3, #4
	ldr	r0, [r3]
	ldr	r3, [fp, #-468]
	add	r3, r3, #8
	ldr	r1, [r3]
	sub	r3, fp, #460
	sub	r2, fp, #432
	bl	getaddrinfo
	mov	r3, r0
	cmp	r3, #0
	beq	.L4
	ldr	r0, .L13+8
	bl	puts
	mvn	r3, #0
	b	.L11
.L4:
	ldr	r3, [fp, #-460]
	ldr	r0, [r3, #4]
	ldr	r3, [fp, #-460]
	ldr	r3, [r3, #12]
	mov	r2, r3
	mov	r1, #2
	bl	socket
	str	r0, [fp, #-448]
	ldr	r3, [fp, #-448]
	cmn	r3, #1
	bne	.L5
	ldr	r0, .L13+12
	bl	puts
	mvn	r3, #0
	b	.L11
.L5:
	mov	r3, #1
	str	r3, [fp, #-456]
	mov	r3, #0
	str	r3, [fp, #-452]
	sub	r3, fp, #456
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, [fp, #-448]
	bl	setsockopt
	sub	r3, fp, #452
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #26
	mov	r1, #41
	ldr	r0, [fp, #-448]
	bl	setsockopt
	mov	r3, #128
	str	r3, [fp, #-444]
	ldr	r3, [fp, #-460]
	mov	r0, r3
	bl	freeaddrinfo
	mov	r3, #0
	str	r3, [fp, #-272]
	sub	r3, fp, #268
	mov	r2, #252
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-468]
	add	r3, r3, #12
	ldr	r4, [r3]
	ldr	r3, [fp, #-468]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r1, r3, #1
	ldr	r3, [fp, #-460]
	ldr	r3, [r3, #20]
	ldr	r2, [fp, #-460]
	ldr	r2, [r2, #16]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, #0
	mov	r2, r1
	mov	r1, r4
	ldr	r0, [fp, #-448]
	bl	sendto
	str	r0, [fp, #-440]
	ldr	r3, [fp, #-440]
	cmn	r3, #1
	bne	.L6
	ldr	r0, .L13+16
	bl	puts
.L6:
	ldr	r3, [fp, #-460]
	ldr	r3, [r3, #20]
	ldr	r2, [fp, #-460]
	add	r2, r2, #16
	sub	r1, fp, #272
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #256
	ldr	r0, [fp, #-448]
	bl	recvfrom
	str	r0, [fp, #-436]
	ldr	r3, [fp, #-436]
	cmn	r3, #1
	bne	.L7
	ldr	r0, .L13+20
	bl	puts
	b	.L8
.L7:
	sub	r2, fp, #272
	ldr	r3, [fp, #-436]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #272
	mov	r0, r3
	bl	puts
.L8:
	ldr	r3, [fp, #-436]
	cmp	r3, #0
	bne	.L9
	ldr	r0, .L13+24
	bl	puts
.L9:
	sub	r3, fp, #272
	ldr	r2, .L13+28
	cmp	r3, r2
	bne	.L10
	ldr	r0, .L13+32
	bl	puts
.L10:
	ldr	r0, [fp, #-448]
	bl	close
	mov	r3, #0
.L11:
	ldr	r2, .L13
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC8
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
