	.file	"710660.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Sender hardware address: "
.LC1:
	.string	"%02hhx::"
.LC2:
	.string	"%02hhx\n"
	.text
	.globl	print_address
	.type	print_address, @function
print_address:
.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, 208
	mov	QWORD PTR -200[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edi, 4
	call	malloc@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, 4
	mov	esi, 1
	mov	rdi, rax
	call	memset@PLT
	lea	rax, -176[rbp]
	add	rax, 1
	mov	edx, 128
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR -200[rbp]
	add	rax, 4
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -176[rbp], al
	movzx	eax, BYTE PTR -176[rbp]
	movzx	eax, al
	mov	rdx, QWORD PTR -200[rbp]
	lea	rsi, 8[rdx]
	lea	rdx, -176[rbp]
	lea	rcx, 1[rdx]
	mov	rdx, rax
	mov	rdi, rcx
	call	memcpy@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR -200[rbp]
	mov	edx, DWORD PTR [rdx]
	mov	DWORD PTR [rax], edx
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -180[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -180[rbp]
	cdqe
	movzx	eax, BYTE PTR -175[rbp+rax]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -180[rbp], 1
.L2:
	movzx	eax, BYTE PTR -176[rbp]
	movzx	eax, al
	sub	eax, 1
	cmp	DWORD PTR -180[rbp], eax
	jl	.L3
	movzx	eax, BYTE PTR -176[rbp]
	movzx	eax, al
	sub	eax, 1
	cdqe
	movzx	eax, BYTE PTR -175[rbp+rax]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	print_address, .-print_address
	.section	.rodata
.LC3:
	.string	"Usage: %s <packet file>\n"
.LC4:
	.string	"Error opening packet file"
.LC5:
	.string	"Error allocating memory"
	.align 8
.LC6:
	.string	"Error reading packet from file"
	.text
	.globl	main
	.type	main, @function
main:
.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, 192
	mov	DWORD PTR -180[rbp], edi
	mov	QWORD PTR -192[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -180[rbp], 2
	je	.L7
	mov	rax, QWORD PTR -192[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L13
.L7:
	mov	rax, QWORD PTR -192[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rdx, -160[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	test	eax, eax
	jns	.L9
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L13
.L9:
	mov	rax, QWORD PTR -192[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -172[rbp], eax
	cmp	DWORD PTR -172[rbp], 0
	jns	.L10
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L13
.L10:
	mov	rax, QWORD PTR -112[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -168[rbp], rax
	cmp	QWORD PTR -168[rbp], 0
	jne	.L11
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L13
.L11:
	mov	rdx, QWORD PTR -112[rbp]
	mov	rcx, QWORD PTR -168[rbp]
	mov	eax, DWORD PTR -172[rbp]
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	read@PLT
	test	eax, eax
	jns	.L12
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L13
.L12:
	mov	eax, DWORD PTR -172[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	mov	rax, QWORD PTR -168[rbp]
	mov	rdi, rax
	call	print_address
	mov	rax, QWORD PTR -168[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
.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	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	"710660.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Sender hardware address: \000"
	.align	2
.LC1:
	.ascii	"%02hhx::\000"
	.align	2
.LC2:
	.ascii	"%02hhx\012\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	print_address
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_address, %function
print_address:
	@ args = 0, pretend = 0, frame = 168
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #168
	str	r0, [fp, #-168]
	ldr	r3, .L6
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r0, #4
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	mov	r2, #4
	mov	r1, #1
	mov	r0, r3
	bl	memset
	sub	r3, fp, #156
	add	r3, r3, #1
	mov	r2, #128
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-168]
	add	r3, r3, #4
	ldrb	r3, [r3]	@ zero_extendqisi2
	strb	r3, [fp, #-156]
	ldr	r3, [fp, #-168]
	add	r1, r3, #8
	ldrb	r3, [fp, #-156]	@ zero_extendqisi2
	mov	r2, r3
	sub	r3, fp, #156
	add	r3, r3, #1
	mov	r0, r3
	bl	memcpy
	ldr	r3, [fp, #-24]
	mov	r2, #4
	ldr	r1, [fp, #-168]
	mov	r0, r3
	bl	memcpy
	ldr	r0, .L6+4
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-160]
	b	.L2
.L3:
	sub	r2, fp, #155
	ldr	r3, [fp, #-160]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L6+8
	bl	printf
	ldr	r3, [fp, #-160]
	add	r3, r3, #1
	str	r3, [fp, #-160]
.L2:
	ldrb	r3, [fp, #-156]	@ zero_extendqisi2
	sub	r3, r3, #1
	ldr	r2, [fp, #-160]
	cmp	r2, r3
	blt	.L3
	ldrb	r3, [fp, #-156]	@ zero_extendqisi2
	sub	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-151]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L6+12
	bl	printf
	nop
	ldr	r3, .L6
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L5
	bl	__stack_chk_fail
.L5:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	print_address, .-print_address
	.section	.rodata
	.align	2
.LC4:
	.ascii	"Usage: %s <packet file>\012\000"
	.align	2
.LC5:
	.ascii	"Error opening packet file\000"
	.align	2
.LC6:
	.ascii	"Error allocating memory\000"
	.align	2
.LC7:
	.ascii	"Error reading packet from file\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 = 112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #112
	str	r0, [fp, #-112]
	str	r1, [fp, #-116]
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-112]
	cmp	r3, #2
	beq	.L9
	ldr	r3, [fp, #-116]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L17+4
	bl	printf
	mov	r3, #1
	b	.L15
.L9:
	ldr	r3, [fp, #-116]
	add	r3, r3, #4
	ldr	r3, [r3]
	sub	r2, fp, #100
	mov	r1, r2
	mov	r0, r3
	bl	stat
	mov	r3, r0
	cmp	r3, #0
	bge	.L11
	ldr	r0, .L17+8
	bl	puts
	mov	r3, #1
	b	.L15
.L11:
	ldr	r3, [fp, #-116]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	open
	str	r0, [fp, #-108]
	ldr	r3, [fp, #-108]
	cmp	r3, #0
	bge	.L12
	ldr	r0, .L17+8
	bl	puts
	mov	r3, #1
	b	.L15
.L12:
	ldr	r3, [fp, #-56]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-104]
	ldr	r3, [fp, #-104]
	cmp	r3, #0
	bne	.L13
	ldr	r0, .L17+12
	bl	puts
	mov	r3, #1
	b	.L15
.L13:
	ldr	r3, [fp, #-56]
	mov	r2, r3
	ldr	r1, [fp, #-104]
	ldr	r0, [fp, #-108]
	bl	read
	mov	r3, r0
	cmp	r3, #0
	bge	.L14
	ldr	r0, .L17+16
	bl	puts
	mov	r3, #1
	b	.L15
.L14:
	ldr	r0, [fp, #-108]
	bl	close
	ldr	r0, [fp, #-104]
	bl	print_address
	ldr	r0, [fp, #-104]
	bl	free
	mov	r3, #0
.L15:
	ldr	r2, .L17
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC8
	.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
