	.file	"784308.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Tcp"
.LC1:
	.string	"Udp"
.LC2:
	.string	"Icmp"
.LC3:
	.string	"IP"
.LC4:
	.string	"Unspecified"
	.text
	.globl	ProcessPacket
	.type	ProcessPacket, @function
ProcessPacket:
.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	QWORD PTR -72[rbp], rdi
	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 -72[rbp]
	add	rax, 14
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, BYTE PTR 9[rax]
	movzx	eax, al
	cmp	eax, 17
	je	.L2
	cmp	eax, 17
	jg	.L3
	cmp	eax, 6
	je	.L4
	cmp	eax, 6
	jg	.L3
	test	eax, eax
	je	.L5
	cmp	eax, 1
	je	.L6
	jmp	.L3
.L4:
	mov	rax, QWORD PTR -80[rbp]
	lea	rdx, .LC0[rip]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, BYTE PTR [rax]
	and	eax, 15
	movzx	eax, al
	sal	eax, 2
	movsx	rdx, eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	movzx	eax, ax
	mov	DWORD PTR -64[rbp], eax
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, WORD PTR 2[rax]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	movzx	eax, ax
	mov	DWORD PTR -60[rbp], eax
	mov	edx, DWORD PTR -64[rbp]
	mov	rax, QWORD PTR -80[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	edx, DWORD PTR -60[rbp]
	mov	rax, QWORD PTR -80[rbp]
	mov	DWORD PTR 8[rax], edx
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, 12[rax]
	lea	rax, -32[rbp]
	mov	ecx, 16
	mov	rdx, rax
	mov	edi, 2
	call	inet_ntop@PLT
	mov	rdi, rax
	call	strdup@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -80[rbp]
	mov	QWORD PTR 24[rax], rdx
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, 16[rax]
	lea	rax, -32[rbp]
	mov	ecx, 16
	mov	rdx, rax
	mov	edi, 2
	call	inet_ntop@PLT
	mov	rdi, rax
	call	strdup@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -80[rbp]
	mov	QWORD PTR 32[rax], rdx
	jmp	.L7
.L2:
	mov	rax, QWORD PTR -80[rbp]
	lea	rdx, .LC1[rip]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, BYTE PTR [rax]
	and	eax, 15
	movzx	eax, al
	sal	eax, 2
	movsx	rdx, eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	movzx	eax, ax
	mov	DWORD PTR -64[rbp], eax
	mov	rax, QWORD PTR -48[rbp]
	movzx	eax, WORD PTR 2[rax]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	movzx	eax, ax
	mov	DWORD PTR -60[rbp], eax
	mov	edx, DWORD PTR -64[rbp]
	mov	rax, QWORD PTR -80[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	edx, DWORD PTR -60[rbp]
	mov	rax, QWORD PTR -80[rbp]
	mov	DWORD PTR 8[rax], edx
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, 12[rax]
	lea	rax, -32[rbp]
	mov	ecx, 16
	mov	rdx, rax
	mov	edi, 2
	call	inet_ntop@PLT
	mov	rdi, rax
	call	strdup@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -80[rbp]
	mov	QWORD PTR 24[rax], rdx
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, 16[rax]
	lea	rax, -32[rbp]
	mov	ecx, 16
	mov	rdx, rax
	mov	edi, 2
	call	inet_ntop@PLT
	mov	rdi, rax
	call	strdup@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -80[rbp]
	mov	QWORD PTR 32[rax], rdx
	jmp	.L7
.L6:
	mov	rax, QWORD PTR -80[rbp]
	lea	rdx, .LC2[rip]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, 12[rax]
	lea	rax, -32[rbp]
	mov	ecx, 16
	mov	rdx, rax
	mov	edi, 2
	call	inet_ntop@PLT
	mov	rdi, rax
	call	strdup@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -80[rbp]
	mov	QWORD PTR 24[rax], rdx
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, 16[rax]
	lea	rax, -32[rbp]
	mov	ecx, 16
	mov	rdx, rax
	mov	edi, 2
	call	inet_ntop@PLT
	mov	rdi, rax
	call	strdup@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -80[rbp]
	mov	QWORD PTR 32[rax], rdx
	jmp	.L7
.L5:
	mov	rax, QWORD PTR -80[rbp]
	lea	rdx, .LC3[rip]
	mov	QWORD PTR 16[rax], rdx
	jmp	.L7
.L3:
	mov	rax, QWORD PTR -80[rbp]
	lea	rdx, .LC4[rip]
	mov	QWORD PTR 16[rax], rdx
	nop
.L7:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	ProcessPacket, .-ProcessPacket
	.section	.rodata
.LC5:
	.string	""
.LC6:
	.string	"Starting..."
.LC7:
	.string	"Socket Error"
	.align 8
.LC8:
	.string	"Recvfrom error , failed to get packets"
	.text
	.globl	capture
	.type	capture, @function
capture:
.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, 80
	mov	QWORD PTR -72[rbp], rdi
	mov	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edi, 40
	call	malloc@PLT
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR 4[rax], 0
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -48[rbp]
	lea	rdx, .LC5[rip]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -48[rbp]
	lea	rdx, .LC5[rip]
	mov	QWORD PTR 24[rax], rdx
	mov	rax, QWORD PTR -48[rbp]
	lea	rdx, .LC5[rip]
	mov	QWORD PTR 32[rax], rdx
	mov	edi, 65536
	call	malloc@PLT
	mov	QWORD PTR -40[rbp], rax
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	edi, 3
	call	htons@PLT
	movzx	eax, ax
	mov	edx, eax
	mov	esi, 3
	mov	edi, 17
	call	socket@PLT
	mov	DWORD PTR -56[rbp], eax
	cmp	DWORD PTR -56[rbp], 0
	jns	.L10
	lea	rdi, .LC7[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L13
.L10:
	mov	DWORD PTR -60[rbp], 16
	lea	rcx, -60[rbp]
	lea	rdx, -32[rbp]
	mov	rsi, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR -56[rbp]
	mov	r9, rcx
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 65536
	mov	edi, eax
	call	recvfrom@PLT
	mov	DWORD PTR -52[rbp], eax
	cmp	DWORD PTR -52[rbp], 0
	jns	.L12
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L13
.L12:
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, DWORD PTR -52[rbp]
	mov	DWORD PTR [rax], edx
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	ProcessPacket
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	rdx
	jmp	.L10
.L13:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	capture, .-capture
	.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	"784308.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Tcp\000"
	.align	2
.LC1:
	.ascii	"Udp\000"
	.align	2
.LC2:
	.ascii	"Icmp\000"
	.align	2
.LC3:
	.ascii	"IP\000"
	.align	2
.LC4:
	.ascii	"Unspecified\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ProcessPacket
	.syntax unified
	.arm
	.fpu softvfp
	.type	ProcessPacket, %function
ProcessPacket:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-48]
	add	r3, r3, #14
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-44]
	ldrb	r3, [r3, #9]	@ zero_extendqisi2
	cmp	r3, #17
	ldrls	pc, [pc, r3, asl #2]
	b	.L2
.L4:
	.word	.L7
	.word	.L6
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L5
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L3
.L5:
	ldr	r3, [fp, #-52]
	ldr	r2, .L10+4
	str	r2, [r3, #12]
	ldr	r3, [fp, #-44]
	ldrb	r3, [r3]
	and	r3, r3, #15
	and	r3, r3, #255
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-44]
	add	r3, r3, r2
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	ldrh	r3, [r3]
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-28]
	ldrh	r3, [r3, #2]
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	str	r3, [fp, #-32]
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-52]
	str	r2, [r3, #4]
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-52]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-44]
	add	r1, r3, #12
	sub	r2, fp, #24
	mov	r3, #16
	mov	r0, #2
	bl	inet_ntop
	mov	r3, r0
	mov	r0, r3
	bl	strdup
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-52]
	str	r2, [r3, #16]
	ldr	r3, [fp, #-44]
	add	r1, r3, #16
	sub	r2, fp, #24
	mov	r3, #16
	mov	r0, #2
	bl	inet_ntop
	mov	r3, r0
	mov	r0, r3
	bl	strdup
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-52]
	str	r2, [r3, #20]
	b	.L8
.L3:
	ldr	r3, [fp, #-52]
	ldr	r2, .L10+8
	str	r2, [r3, #12]
	ldr	r3, [fp, #-44]
	ldrb	r3, [r3]
	and	r3, r3, #15
	and	r3, r3, #255
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-44]
	add	r3, r3, r2
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-40]
	ldrh	r3, [r3]
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-40]
	ldrh	r3, [r3, #2]
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	str	r3, [fp, #-32]
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-52]
	str	r2, [r3, #4]
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-52]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-44]
	add	r1, r3, #12
	sub	r2, fp, #24
	mov	r3, #16
	mov	r0, #2
	bl	inet_ntop
	mov	r3, r0
	mov	r0, r3
	bl	strdup
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-52]
	str	r2, [r3, #16]
	ldr	r3, [fp, #-44]
	add	r1, r3, #16
	sub	r2, fp, #24
	mov	r3, #16
	mov	r0, #2
	bl	inet_ntop
	mov	r3, r0
	mov	r0, r3
	bl	strdup
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-52]
	str	r2, [r3, #20]
	b	.L8
.L6:
	ldr	r3, [fp, #-52]
	ldr	r2, .L10+12
	str	r2, [r3, #12]
	ldr	r3, [fp, #-44]
	add	r1, r3, #12
	sub	r2, fp, #24
	mov	r3, #16
	mov	r0, #2
	bl	inet_ntop
	mov	r3, r0
	mov	r0, r3
	bl	strdup
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-52]
	str	r2, [r3, #16]
	ldr	r3, [fp, #-44]
	add	r1, r3, #16
	sub	r2, fp, #24
	mov	r3, #16
	mov	r0, #2
	bl	inet_ntop
	mov	r3, r0
	mov	r0, r3
	bl	strdup
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-52]
	str	r2, [r3, #20]
	b	.L8
.L7:
	ldr	r3, [fp, #-52]
	ldr	r2, .L10+16
	str	r2, [r3, #12]
	b	.L8
.L2:
	ldr	r3, [fp, #-52]
	ldr	r2, .L10+20
	str	r2, [r3, #12]
	nop
.L8:
	nop
	ldr	r3, .L10
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC5
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	ProcessPacket, .-ProcessPacket
	.section	.rodata
	.align	2
.LC6:
	.ascii	"\000"
	.align	2
.LC7:
	.ascii	"Starting...\000"
	.align	2
.LC8:
	.ascii	"Socket Error\000"
	.align	2
.LC9:
	.ascii	"Recvfrom error , failed to get packets\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	capture
	.syntax unified
	.arm
	.fpu softvfp
	.type	capture, %function
capture:
	@ 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, #-48]
	str	r1, [fp, #-52]
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r0, #24
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-40]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-40]
	mov	r2, #0
	str	r2, [r3, #8]
	ldr	r3, [fp, #-40]
	ldr	r2, .L18+4
	str	r2, [r3, #12]
	ldr	r3, [fp, #-40]
	ldr	r2, .L18+4
	str	r2, [r3, #16]
	ldr	r3, [fp, #-40]
	ldr	r2, .L18+4
	str	r2, [r3, #20]
	mov	r0, #65536
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-36]
	ldr	r0, .L18+8
	bl	puts
	mov	r0, #3
	bl	htons
	mov	r3, r0
	mov	r2, r3
	mov	r1, #3
	mov	r0, #17
	bl	socket
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bge	.L13
	ldr	r0, .L18+12
	bl	perror
	mov	r3, #1
	b	.L16
.L13:
	mov	r3, #16
	str	r3, [fp, #-44]
	sub	r3, fp, #44
	str	r3, [sp, #4]
	sub	r3, fp, #24
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #65536
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-32]
	bl	recvfrom
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bge	.L15
	ldr	r0, .L18+16
	bl	puts
	mov	r3, #1
	b	.L16
.L15:
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-28]
	str	r2, [r3]
	ldr	r1, [fp, #-40]
	ldr	r0, [fp, #-36]
	bl	ProcessPacket
	ldr	r3, [fp, #-52]
	ldr	r0, [fp, #-40]
	blx	r3
	b	.L13
.L16:
	ldr	r2, .L18
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC10
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	capture, .-capture
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
