	.file	"1003418.c"
	.intel_syntax noprefix
	.text
	.globl	mi_mac
	.bss
	.type	mi_mac, @object
	.size	mi_mac, 6
mi_mac:
	.zero	6
	.globl	mi_ip
	.type	mi_ip, @object
	.size	mi_ip, 4
mi_ip:
	.zero	4
	.globl	tramaenviada
	.align 32
	.type	tramaenviada, @object
	.size	tramaenviada, 60
tramaenviada:
	.zero	60
	.globl	tramarecivida
	.align 32
	.type	tramarecivida, @object
	.size	tramarecivida, 60
tramarecivida:
	.zero	60
	.globl	tu_mac
	.data
	.type	tu_mac, @object
	.size	tu_mac, 6
tu_mac:
	.ascii	"\2249\345n\341\321"
	.globl	tu_ip
	.bss
	.type	tu_ip, @object
	.size	tu_ip, 4
tu_ip:
	.zero	4
	.globl	tipoether
	.data
	.type	tipoether, @object
	.size	tipoether, 2
tipoether:
	.ascii	"\b\006"
	.globl	tipohardware
	.type	tipohardware, @object
	.size	tipohardware, 2
tipohardware:
	.string	""
	.ascii	"\001"
	.globl	tipoprotocolo
	.type	tipoprotocolo, @object
	.size	tipoprotocolo, 2
tipoprotocolo:
	.string	"\b"
	.globl	LDH
	.type	LDH, @object
	.size	LDH, 1
LDH:
	.byte	6
	.globl	LDP
	.type	LDP, @object
	.size	LDP, 1
LDP:
	.byte	4
	.globl	codigoenvio
	.type	codigoenvio, @object
	.size	codigoenvio, 2
codigoenvio:
	.string	""
	.ascii	"\001"
	.globl	codigorespuesta
	.type	codigorespuesta, @object
	.size	codigorespuesta, 2
codigorespuesta:
	.string	""
	.ascii	"\002"
	.globl	macpadre
	.bss
	.type	macpadre, @object
	.size	macpadre, 6
macpadre:
	.zero	6
	.globl	ipinfractor
	.type	ipinfractor, @object
	.size	ipinfractor, 4
ipinfractor:
	.zero	4
	.globl	macverdadera
	.type	macverdadera, @object
	.size	macverdadera, 6
macverdadera:
	.zero	6
	.globl	ipmac
	.align 8
	.type	ipmac, @object
	.size	ipmac, 8
ipmac:
	.zero	8
	.globl	cod
	.align 4
	.type	cod, @object
	.size	cod, 4
cod:
	.zero	4
	.globl	j
	.align 4
	.type	j, @object
	.size	j, 4
j:
	.zero	4
	.globl	aux
	.align 32
	.type	aux, @object
	.size	aux, 2032
aux:
	.zero	2032
	.section	.rodata
.LC0:
	.string	"\nError al obtener el indice"
	.align 8
.LC1:
	.string	"Error al obtener la direcci\303\263n MAC.\n"
.LC2:
	.string	"Tu direccion MAC es:\t\t"
.LC3:
	.string	"%.2x"
	.align 8
.LC4:
	.string	"Error al obtener la direcci\303\263n IP.\n"
.LC5:
	.string	"Tu direcci\303\263n IP es:\t\t"
.LC6:
	.string	"%d"
	.text
	.globl	obtenerDatos
	.type	obtenerDatos, @function
obtenerDatos:
.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, 80
	mov	DWORD PTR -68[rbp], edi
	mov	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	lea	rax, -48[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	lea	rdx, -48[rbp]
	mov	eax, DWORD PTR -68[rbp]
	mov	esi, 35123
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	cmp	eax, -1
	jne	.L2
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	eax, 0
	jmp	.L14
.L2:
	mov	eax, DWORD PTR -32[rbp]
	mov	DWORD PTR -52[rbp], eax
	lea	rdx, -48[rbp]
	mov	eax, DWORD PTR -68[rbp]
	mov	esi, 35111
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	cmp	eax, -1
	jne	.L4
	lea	rdi, .LC1[rip]
	call	perror@PLT
	jmp	.L5
.L4:
	mov	eax, DWORD PTR -30[rbp]
	mov	DWORD PTR mi_mac[rip], eax
	movzx	eax, WORD PTR -26[rbp]
	mov	WORD PTR mi_mac[rip+4], ax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -56[rbp], 0
	jmp	.L6
.L8:
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	lea	rdx, mi_mac[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -56[rbp], 4
	jg	.L7
	mov	edi, 58
	call	putchar@PLT
.L7:
	add	DWORD PTR -56[rbp], 1
.L6:
	cmp	DWORD PTR -56[rbp], 5
	jle	.L8
	mov	edi, 10
	call	putchar@PLT
.L5:
	lea	rdx, -48[rbp]
	mov	eax, DWORD PTR -68[rbp]
	mov	esi, 35093
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	cmp	eax, -1
	jne	.L9
	lea	rdi, .LC4[rip]
	call	perror@PLT
	jmp	.L10
.L9:
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -56[rbp], 2
	jmp	.L11
.L13:
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	movzx	edx, BYTE PTR -30[rbp+rax]
	mov	eax, DWORD PTR -56[rbp]
	sub	eax, 2
	mov	ecx, edx
	cdqe
	lea	rdx, mi_ip[rip]
	mov	BYTE PTR [rax+rdx], cl
	mov	eax, DWORD PTR -56[rbp]
	sub	eax, 2
	cdqe
	lea	rdx, mi_ip[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -56[rbp], 4
	jg	.L12
	mov	edi, 46
	call	putchar@PLT
.L12:
	add	DWORD PTR -56[rbp], 1
.L11:
	cmp	DWORD PTR -56[rbp], 5
	jle	.L13
	mov	edi, 10
	call	putchar@PLT
.L10:
	mov	eax, DWORD PTR -52[rbp]
.L14:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	obtenerDatos, .-obtenerDatos
	.section	.rodata
.LC7:
	.string	"\nError al enviar\n\n"
	.text
	.globl	enviatrama
	.type	enviatrama, @function
enviatrama:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	DWORD PTR -52[rbp], edi
	mov	DWORD PTR -56[rbp], esi
	mov	QWORD PTR -64[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -32[rbp]
	mov	edx, 20
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -32[rbp], 17
	mov	edi, 3
	mov	eax, 0
	call	htons@PLT
	mov	WORD PTR -30[rbp], ax
	mov	eax, DWORD PTR -56[rbp]
	mov	DWORD PTR -28[rbp], eax
	lea	rdx, -32[rbp]
	mov	rsi, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -52[rbp]
	mov	r9d, 20
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 60
	mov	edi, eax
	call	sendto@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], -1
	jne	.L19
	lea	rdi, .LC7[rip]
	call	perror@PLT
.L19:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	enviatrama, .-enviatrama
	.globl	estructuratramaenviar
	.type	estructuratramaenviar, @function
estructuratramaenviar:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 0
	jne	.L21
	mov	edx, 6
	mov	esi, 255
	lea	rdi, tu_mac[rip]
	call	memset@PLT
	movzx	eax, WORD PTR codigoenvio[rip]
	mov	WORD PTR codigorespuesta[rip], ax
	mov	edx, 6
	lea	rsi, tu_ip[rip]
	lea	rdi, mi_ip[rip]
	call	memcpy@PLT
.L21:
	mov	eax, DWORD PTR tu_mac[rip]
	mov	DWORD PTR tramaenviada[rip], eax
	movzx	eax, WORD PTR tu_mac[rip+4]
	mov	WORD PTR tramaenviada[rip+4], ax
	lea	rax, tramaenviada[rip+6]
	mov	edx, DWORD PTR mi_mac[rip]
	mov	DWORD PTR [rax], edx
	movzx	edx, WORD PTR mi_mac[rip+4]
	mov	WORD PTR 4[rax], dx
	lea	rdx, tramaenviada[rip+12]
	movzx	eax, WORD PTR tipoether[rip]
	mov	WORD PTR [rdx], ax
	lea	rdx, tramaenviada[rip+14]
	movzx	eax, WORD PTR tipohardware[rip]
	mov	WORD PTR [rdx], ax
	lea	rdx, tramaenviada[rip+16]
	movzx	eax, WORD PTR tipoprotocolo[rip]
	mov	WORD PTR [rdx], ax
	lea	rdx, tramaenviada[rip+18]
	movzx	eax, BYTE PTR LDH[rip]
	mov	BYTE PTR [rdx], al
	lea	rdx, tramaenviada[rip+19]
	movzx	eax, BYTE PTR LDP[rip]
	mov	BYTE PTR [rdx], al
	lea	rdx, tramaenviada[rip+20]
	movzx	eax, WORD PTR codigorespuesta[rip]
	mov	WORD PTR [rdx], ax
	lea	rax, tramaenviada[rip+22]
	mov	edx, DWORD PTR mi_mac[rip]
	mov	DWORD PTR [rax], edx
	movzx	edx, WORD PTR mi_mac[rip+4]
	mov	WORD PTR 4[rax], dx
	lea	rdx, tramaenviada[rip+28]
	mov	eax, DWORD PTR tu_ip[rip]
	mov	DWORD PTR [rdx], eax
	lea	rax, tramaenviada[rip+32]
	mov	edx, DWORD PTR tu_mac[rip]
	mov	DWORD PTR [rax], edx
	movzx	edx, WORD PTR tu_mac[rip+4]
	mov	WORD PTR 4[rax], dx
	lea	rdx, tramaenviada[rip+38]
	mov	eax, DWORD PTR tu_ip[rip]
	mov	DWORD PTR [rdx], eax
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	estructuratramaenviar, .-estructuratramaenviar
	.section	.rodata
.LC8:
	.string	"%.d."
.LC9:
	.string	""
.LC10:
	.string	"%.2x."
	.text
	.globl	imprimemacip
	.type	imprimemacip, @function
imprimemacip:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L23
.L24:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L23:
	cmp	DWORD PTR -4[rbp], 3
	jle	.L24
	lea	rdi, .LC9[rip]
	call	puts@PLT
	mov	DWORD PTR -4[rbp], 0
	jmp	.L25
.L26:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L25:
	cmp	DWORD PTR -4[rbp], 5
	jle	.L26
	lea	rdi, .LC9[rip]
	call	puts@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	imprimemacip, .-imprimemacip
	.section	.rodata
.LC11:
	.string	"\n"
.LC12:
	.string	"\nError al recibir trama"
.LC13:
	.string	"\ninfractor!!!\n"
	.text
	.globl	recibetrama
	.type	recibetrama, @function
recibetrama:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	QWORD PTR -32[rbp], rdx
	mov	DWORD PTR -36[rbp], ecx
	mov	edx, 6
	mov	esi, 255
	lea	rdi, macpadre[rip]
	call	memset@PLT
	lea	rdi, .LC11[rip]
	call	puts@PLT
.L30:
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rsi, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -24[rbp]
	mov	r9d, 0
	mov	r8d, 0
	mov	ecx, 0
	mov	edi, eax
	call	recvfrom@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], -1
	jne	.L28
	lea	rdi, .LC12[rip]
	call	perror@PLT
	jmp	.L30
.L28:
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, 6
	lea	rsi, macpadre[rip]
	mov	rdi, rax
	call	memcmp@PLT
	test	eax, eax
	jne	.L30
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 20
	mov	edx, 2
	lea	rsi, codigoenvio[rip]
	mov	rdi, rax
	call	memcmp@PLT
	test	eax, eax
	jne	.L30
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 12
	mov	edx, 2
	lea	rsi, tipoether[rip]
	mov	rdi, rax
	call	memcmp@PLT
	test	eax, eax
	jne	.L30
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 6
	mov	edx, 6
	lea	rsi, tu_mac[rip]
	mov	rdi, rax
	call	memcmp@PLT
	test	eax, eax
	jne	.L30
	mov	DWORD PTR cod[rip], 1
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 28
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR tu_ip[rip], eax
	lea	rsi, tu_mac[rip]
	lea	rdi, tu_ip[rip]
	call	imprimemacip
	lea	rdi, .LC13[rip]
	call	puts@PLT
	mov	edi, 1
	call	estructuratramaenviar
	mov	ecx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -24[rbp]
	lea	rdx, tramaenviada[rip]
	mov	esi, ecx
	mov	edi, eax
	call	enviatrama
	mov	edi, 0
	call	estructuratramaenviar
	mov	ecx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -24[rbp]
	lea	rdx, tramaenviada[rip]
	mov	esi, ecx
	mov	edi, eax
	call	enviatrama
	jmp	.L30
	.cfi_endproc
.LFE10:
	.size	recibetrama, .-recibetrama
	.section	.rodata
.LC14:
	.string	"indice=%d\npaquete=%d"
.LC15:
	.string	"ya esta"
	.text
	.globl	todo
	.type	todo, @function
todo:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -8[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	DWORD PTR -4[rbp], eax
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	mov	esi, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -8[rbp]
	mov	ecx, 60
	lea	rdx, tramarecivida[rip]
	mov	edi, eax
	call	recibetrama
	lea	rax, .LC15[rip]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	todo, .-todo
	.globl	espera
	.type	espera, @function
espera:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	nop
.L34:
	mov	eax, DWORD PTR cod[rip]
	test	eax, eax
	je	.L34
	mov	eax, DWORD PTR j[rip]
	add	eax, 1
	mov	DWORD PTR j[rip], eax
	mov	DWORD PTR cod[rip], 0
	mov	eax, DWORD PTR j[rip]
	cmp	eax, 253
	jg	.L35
	mov	eax, DWORD PTR j[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, aux[rip]
	lea	rdi, [rdx+rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rax
	lea	rdx, todo[rip]
	mov	esi, 0
	call	pthread_create@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	espera
.L35:
	mov	eax, DWORD PTR j[rip]
	cmp	eax, 254
	jne	.L37
	mov	DWORD PTR j[rip], 0
.L37:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	espera, .-espera
	.section	.rodata
.LC16:
	.string	"\nError al abrir socket..."
.LC17:
	.string	"\nExito al abrir el socket..."
.LC18:
	.string	"no se pudo crear el hilo"
.LC19:
	.string	"\n\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edi, 3
	mov	eax, 0
	call	htons@PLT
	mov	edx, eax
	mov	esi, 3
	mov	edi, 17
	call	socket@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], -1
	jne	.L39
	lea	rdi, .LC16[rip]
	call	perror@PLT
	jmp	.L40
.L39:
	lea	rdi, .LC17[rip]
	call	puts@PLT
	mov	rdx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	obtenerDatos
	mov	DWORD PTR -32[rbp], eax
	mov	eax, DWORD PTR -32[rbp]
	mov	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR -12[rbp], eax
	lea	rdx, -16[rbp]
	lea	rax, -24[rbp]
	mov	rcx, rdx
	lea	rdx, todo[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 0
	je	.L41
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
.L41:
	lea	rax, -16[rbp]
	mov	rdi, rax
	call	espera
	mov	rax, QWORD PTR aux[rip+2032]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	lea	rdi, .LC19[rip]
	call	puts@PLT
.L40:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L43
	call	__stack_chk_fail@PLT
.L43:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.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	"1003418.c"
	.text
	.comm	mi_mac,6,4
	.comm	mi_ip,4,4
	.comm	tramaenviada,60,4
	.comm	tramarecivida,60,4
	.global	tu_mac
	.data
	.align	2
	.type	tu_mac, %object
	.size	tu_mac, 6
tu_mac:
	.ascii	"\2249\345n\341\321"
	.comm	tu_ip,4,4
	.global	tipoether
	.align	2
	.type	tipoether, %object
	.size	tipoether, 2
tipoether:
	.ascii	"\010\006"
	.global	tipohardware
	.align	2
	.type	tipohardware, %object
	.size	tipohardware, 2
tipohardware:
	.ascii	"\000\001"
	.global	tipoprotocolo
	.align	2
	.type	tipoprotocolo, %object
	.size	tipoprotocolo, 2
tipoprotocolo:
	.ascii	"\010\000"
	.global	LDH
	.type	LDH, %object
	.size	LDH, 1
LDH:
	.byte	6
	.global	LDP
	.type	LDP, %object
	.size	LDP, 1
LDP:
	.byte	4
	.global	codigoenvio
	.align	2
	.type	codigoenvio, %object
	.size	codigoenvio, 2
codigoenvio:
	.ascii	"\000\001"
	.global	codigorespuesta
	.align	2
	.type	codigorespuesta, %object
	.size	codigorespuesta, 2
codigorespuesta:
	.ascii	"\000\002"
	.comm	macpadre,6,4
	.comm	ipinfractor,4,4
	.comm	macverdadera,6,4
	.comm	ipmac,4,4
	.global	cod
	.bss
	.align	2
	.type	cod, %object
	.size	cod, 4
cod:
	.space	4
	.global	j
	.align	2
	.type	j, %object
	.size	j, 4
j:
	.space	4
	.comm	aux,1016,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012Error al obtener el indice\000"
	.align	2
.LC1:
	.ascii	"Error al obtener la direcci\303\263n MAC.\012\000"
	.align	2
.LC2:
	.ascii	"Tu direccion MAC es:\011\011\000"
	.align	2
.LC3:
	.ascii	"%.2x\000"
	.align	2
.LC4:
	.ascii	"Error al obtener la direcci\303\263n IP.\012\000"
	.align	2
.LC5:
	.ascii	"Tu direcci\303\263n IP es:\011\011\000"
	.align	2
.LC6:
	.ascii	"%d\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	obtenerDatos
	.syntax unified
	.arm
	.fpu softvfp
	.type	obtenerDatos, %function
obtenerDatos:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-60]
	add	r3, r3, #4
	ldr	r2, [r3]
	sub	r3, fp, #40
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #40
	mov	r2, r3
	ldr	r1, .L16+4
	ldr	r0, [fp, #-56]
	bl	ioctl
	mov	r3, r0
	cmn	r3, #1
	bne	.L2
	ldr	r0, .L16+8
	bl	perror
	mov	r3, #0
	b	.L14
.L2:
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-44]
	sub	r3, fp, #40
	mov	r2, r3
	ldr	r1, .L16+12
	ldr	r0, [fp, #-56]
	bl	ioctl
	mov	r3, r0
	cmn	r3, #1
	bne	.L4
	ldr	r0, .L16+16
	bl	perror
	b	.L5
.L4:
	ldr	r3, .L16+20
	mov	r0, r3
	sub	r3, fp, #22
	mov	r2, #6
	mov	r1, r3
	bl	memcpy
	ldr	r0, .L16+24
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L6
.L8:
	ldr	r2, .L16+20
	ldr	r3, [fp, #-48]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L16+28
	bl	printf
	ldr	r3, [fp, #-48]
	cmp	r3, #4
	bgt	.L7
	mov	r0, #58
	bl	putchar
.L7:
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L6:
	ldr	r3, [fp, #-48]
	cmp	r3, #5
	ble	.L8
	mov	r0, #10
	bl	putchar
.L5:
	sub	r3, fp, #40
	mov	r2, r3
	ldr	r1, .L16+32
	ldr	r0, [fp, #-56]
	bl	ioctl
	mov	r3, r0
	cmn	r3, #1
	bne	.L9
	ldr	r0, .L16+36
	bl	perror
	b	.L10
.L9:
	ldr	r0, .L16+40
	bl	printf
	mov	r3, #2
	str	r3, [fp, #-48]
	b	.L11
.L13:
	ldr	r3, [fp, #-48]
	sub	r3, r3, #2
	sub	r1, fp, #22
	ldr	r2, [fp, #-48]
	add	r2, r1, r2
	ldrb	r1, [r2]	@ zero_extendqisi2
	ldr	r2, .L16+44
	strb	r1, [r2, r3]
	ldr	r3, [fp, #-48]
	sub	r3, r3, #2
	ldr	r2, .L16+44
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L16+48
	bl	printf
	ldr	r3, [fp, #-48]
	cmp	r3, #4
	bgt	.L12
	mov	r0, #46
	bl	putchar
.L12:
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L11:
	ldr	r3, [fp, #-48]
	cmp	r3, #5
	ble	.L13
	mov	r0, #10
	bl	putchar
.L10:
	ldr	r3, [fp, #-44]
.L14:
	ldr	r2, .L16
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC7
	.word	35123
	.word	.LC0
	.word	35111
	.word	.LC1
	.word	mi_mac
	.word	.LC2
	.word	.LC3
	.word	35093
	.word	.LC4
	.word	.LC5
	.word	mi_ip
	.word	.LC6
	.size	obtenerDatos, .-obtenerDatos
	.section	.rodata
	.align	2
.LC8:
	.ascii	"\012Error al enviar\012\012\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	enviatrama
	.syntax unified
	.arm
	.fpu softvfp
	.type	enviatrama, %function
enviatrama:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #28
	mov	r2, #20
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #17
	strh	r3, [fp, #-28]	@ movhi
	mov	r0, #3
	bl	htons
	mov	r3, r0
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-26]	@ movhi
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-24]
	mov	r3, #20
	str	r3, [sp, #4]
	sub	r3, fp, #28
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #60
	ldr	r1, [fp, #-48]
	ldr	r0, [fp, #-40]
	bl	sendto
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmn	r3, #1
	bne	.L21
	ldr	r0, .L22+4
	bl	perror
.L21:
	nop
	ldr	r3, .L22
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L20
	bl	__stack_chk_fail
.L20:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC9
	.word	.LC8
	.size	enviatrama, .-enviatrama
	.align	2
	.global	estructuratramaenviar
	.syntax unified
	.arm
	.fpu softvfp
	.type	estructuratramaenviar, %function
estructuratramaenviar:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L25
	mov	r2, #6
	mov	r1, #255
	ldr	r0, .L26
	bl	memset
	ldr	r3, .L26+4
	ldrh	r3, [r3]
	ldr	r2, .L26+8
	strh	r3, [r2]	@ movhi
	mov	r2, #6
	ldr	r1, .L26+12
	ldr	r0, .L26+16
	bl	memcpy
.L25:
	ldr	r2, .L26+20
	ldr	r3, .L26
	mov	r0, r2
	mov	r1, r3
	mov	r3, #6
	mov	r2, r3
	bl	memcpy
	ldr	r2, .L26+24
	ldr	r3, .L26+28
	mov	r0, r2
	mov	r1, r3
	mov	r3, #6
	mov	r2, r3
	bl	memcpy
	ldr	r2, .L26+32
	ldr	r3, .L26+36
	mov	r0, r2
	mov	r1, r3
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
	ldr	r2, .L26+40
	ldr	r3, .L26+44
	mov	r0, r2
	mov	r1, r3
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
	ldr	r2, .L26+48
	ldr	r3, .L26+52
	mov	r0, r2
	mov	r1, r3
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
	ldr	r3, .L26+56
	ldr	r2, .L26+60
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, .L26+64
	ldr	r2, .L26+68
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r2, .L26+72
	ldr	r3, .L26+8
	mov	r0, r2
	mov	r1, r3
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
	ldr	r2, .L26+76
	ldr	r3, .L26+28
	mov	r0, r2
	mov	r1, r3
	mov	r3, #6
	mov	r2, r3
	bl	memcpy
	ldr	r2, .L26+80
	ldr	r3, .L26+12
	mov	r0, r2
	mov	r1, r3
	mov	r3, #4
	mov	r2, r3
	bl	memcpy
	ldr	r2, .L26+84
	ldr	r3, .L26
	mov	r0, r2
	mov	r1, r3
	mov	r3, #6
	mov	r2, r3
	bl	memcpy
	ldr	r2, .L26+88
	ldr	r3, .L26+12
	mov	r0, r2
	mov	r1, r3
	mov	r3, #4
	mov	r2, r3
	bl	memcpy
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	tu_mac
	.word	codigoenvio
	.word	codigorespuesta
	.word	tu_ip
	.word	mi_ip
	.word	tramaenviada
	.word	tramaenviada+6
	.word	mi_mac
	.word	tramaenviada+12
	.word	tipoether
	.word	tramaenviada+14
	.word	tipohardware
	.word	tramaenviada+16
	.word	tipoprotocolo
	.word	tramaenviada+18
	.word	LDH
	.word	tramaenviada+19
	.word	LDP
	.word	tramaenviada+20
	.word	tramaenviada+22
	.word	tramaenviada+28
	.word	tramaenviada+32
	.word	tramaenviada+38
	.size	estructuratramaenviar, .-estructuratramaenviar
	.section	.rodata
	.align	2
.LC10:
	.ascii	"%.d.\000"
	.align	2
.LC11:
	.ascii	"\000"
	.align	2
.LC12:
	.ascii	"%.2x.\000"
	.text
	.align	2
	.global	imprimemacip
	.syntax unified
	.arm
	.fpu softvfp
	.type	imprimemacip, %function
imprimemacip:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L29
.L30:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L33
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L29:
	ldr	r3, [fp, #-8]
	cmp	r3, #3
	ble	.L30
	ldr	r0, .L33+4
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L31
.L32:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L33+8
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L31:
	ldr	r3, [fp, #-8]
	cmp	r3, #5
	ble	.L32
	ldr	r0, .L33+4
	bl	puts
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L34:
	.align	2
.L33:
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.size	imprimemacip, .-imprimemacip
	.section	.rodata
	.align	2
.LC13:
	.ascii	"\012\000"
	.align	2
.LC14:
	.ascii	"\012Error al recibir trama\000"
	.align	2
.LC15:
	.ascii	"\012infractor!!!\012\000"
	.text
	.align	2
	.global	recibetrama
	.syntax unified
	.arm
	.fpu softvfp
	.type	recibetrama, %function
recibetrama:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	mov	r2, #6
	mov	r1, #255
	ldr	r0, .L39
	bl	memset
	ldr	r0, .L39+4
	bl	puts
.L38:
	ldr	r2, [fp, #-28]
	mov	r3, #0
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-20]
	bl	recvfrom
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L36
	ldr	r0, .L39+8
	bl	perror
	b	.L38
.L36:
	mov	r2, #6
	ldr	r1, .L39
	ldr	r0, [fp, #-24]
	bl	memcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L38
	ldr	r3, [fp, #-24]
	add	r3, r3, #20
	mov	r2, #2
	ldr	r1, .L39+12
	mov	r0, r3
	bl	memcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L38
	ldr	r3, [fp, #-24]
	add	r3, r3, #12
	mov	r2, #2
	ldr	r1, .L39+16
	mov	r0, r3
	bl	memcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L38
	ldr	r3, [fp, #-24]
	add	r3, r3, #6
	mov	r2, #6
	ldr	r1, .L39+20
	mov	r0, r3
	bl	memcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L38
	ldr	r3, .L39+24
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #28
	ldr	r2, .L39+28
	mov	r0, r2
	mov	r1, r3
	mov	r3, #4
	mov	r2, r3
	bl	memcpy
	ldr	r1, .L39+20
	ldr	r0, .L39+28
	bl	imprimemacip
	ldr	r0, .L39+32
	bl	puts
	mov	r0, #1
	bl	estructuratramaenviar
	ldr	r2, .L39+36
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-20]
	bl	enviatrama
	mov	r0, #0
	bl	estructuratramaenviar
	ldr	r2, .L39+36
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-20]
	bl	enviatrama
	b	.L38
.L40:
	.align	2
.L39:
	.word	macpadre
	.word	.LC13
	.word	.LC14
	.word	codigoenvio
	.word	tipoether
	.word	tu_mac
	.word	cod
	.word	tu_ip
	.word	.LC15
	.word	tramaenviada
	.size	recibetrama, .-recibetrama
	.section	.rodata
	.align	2
.LC16:
	.ascii	"indice=%d\012paquete=%d\000"
	.align	2
.LC17:
	.ascii	"ya esta\000"
	.text
	.align	2
	.global	todo
	.syntax unified
	.arm
	.fpu softvfp
	.type	todo, %function
todo:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-12]
	ldr	r0, .L43
	bl	printf
	mov	r3, #60
	ldr	r2, .L43+4
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	recibetrama
	ldr	r3, .L43+8
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L44:
	.align	2
.L43:
	.word	.LC16
	.word	tramarecivida
	.word	.LC17
	.size	todo, .-todo
	.align	2
	.global	espera
	.syntax unified
	.arm
	.fpu softvfp
	.type	espera, %function
espera:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	nop
.L46:
	ldr	r3, .L50
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L46
	ldr	r3, .L50+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L50+4
	str	r3, [r2]
	ldr	r3, .L50
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L50+4
	ldr	r3, [r3]
	cmp	r3, #253
	bgt	.L47
	ldr	r3, .L50+4
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, .L50+8
	add	r0, r3, r2
	ldr	r3, [fp, #-8]
	ldr	r2, .L50+12
	mov	r1, #0
	bl	pthread_create
	ldr	r0, [fp, #-8]
	bl	espera
.L47:
	ldr	r3, .L50+4
	ldr	r3, [r3]
	cmp	r3, #254
	bne	.L49
	ldr	r3, .L50+4
	mov	r2, #0
	str	r2, [r3]
.L49:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L51:
	.align	2
.L50:
	.word	cod
	.word	j
	.word	aux
	.word	todo
	.size	espera, .-espera
	.section	.rodata
	.align	2
.LC18:
	.ascii	"\012Error al abrir socket...\000"
	.align	2
.LC19:
	.ascii	"\012Exito al abrir el socket...\000"
	.align	2
.LC20:
	.ascii	"no se pudo crear el hilo\000"
	.align	2
.LC21:
	.ascii	"\012\012\000"
	.align	2
.LC22:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, .L58
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r0, #3
	bl	htons
	mov	r3, r0
	mov	r2, r3
	mov	r1, #3
	mov	r0, #17
	bl	socket
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmn	r3, #1
	bne	.L53
	ldr	r0, .L58+4
	bl	perror
	b	.L54
.L53:
	ldr	r0, .L58+8
	bl	puts
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-28]
	bl	obtenerDatos
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-12]
	sub	r3, fp, #16
	sub	r0, fp, #32
	ldr	r2, .L58+12
	mov	r1, #0
	bl	pthread_create
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L55
	ldr	r0, .L58+16
	bl	printf
.L55:
	sub	r3, fp, #16
	mov	r0, r3
	bl	espera
	ldr	r3, .L58+20
	ldr	r3, [r3, #1016]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r0, .L58+24
	bl	puts
.L54:
	mov	r3, #0
	ldr	r2, .L58
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L57
	bl	__stack_chk_fail
.L57:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L59:
	.align	2
.L58:
	.word	.LC22
	.word	.LC18
	.word	.LC19
	.word	todo
	.word	.LC20
	.word	aux
	.word	.LC21
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
