	.file	"414806.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"1 packet received."
.LC1:
	.string	"Target acquired."
.LC2:
	.string	"-> %s:%d\n"
.LC3:
	.string	"sendto()"
.LC4:
	.string	"OK: one packet is forwared."
	.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	rbx
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4088
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -8184[rbp], 0
	mov	DWORD PTR -8188[rbp], 16
	lea	rax, -8176[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, -8144[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, -8160[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	edx, 0
	mov	esi, 2
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -8180[rbp], eax
	mov	DWORD PTR -8140[rbp], 0
	mov	WORD PTR -8144[rbp], 2
	mov	edi, 81
	call	htons@PLT
	mov	WORD PTR -8142[rbp], ax
	lea	rcx, -8144[rbp]
	mov	eax, DWORD PTR -8180[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	jmp	.L2
.L7:
	lea	rdi, .LC0[rip]
	call	puts@PLT
	cmp	DWORD PTR -8184[rbp], 0
	jne	.L3
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -8172[rbp]
	mov	DWORD PTR -8156[rbp], eax
	mov	WORD PTR -8160[rbp], 2
	movzx	eax, WORD PTR -8174[rbp]
	mov	WORD PTR -8158[rbp], ax
	mov	DWORD PTR -8184[rbp], 1
.L3:
	cmp	DWORD PTR -8184[rbp], 0
	je	.L4
	movzx	edx, WORD PTR -8174[rbp]
	movzx	eax, WORD PTR -8158[rbp]
	cmp	dx, ax
	jne	.L5
	mov	edx, DWORD PTR -8172[rbp]
	mov	eax, DWORD PTR -8156[rbp]
	cmp	edx, eax
	je	.L4
.L5:
	movzx	eax, WORD PTR -8158[rbp]
	movzx	ebx, ax
	mov	eax, DWORD PTR -8156[rbp]
	mov	edi, eax
	call	inet_ntoa@PLT
	mov	edx, ebx
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -8128[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rcx, -8160[rbp]
	lea	rsi, -8128[rbp]
	mov	eax, DWORD PTR -8180[rbp]
	mov	r9d, 16
	mov	r8, rcx
	mov	ecx, 0
	mov	edi, eax
	call	sendto@PLT
	test	rax, rax
	jns	.L6
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	edi, 3
	call	exit@PLT
.L6:
	lea	rdi, .LC4[rip]
	call	puts@PLT
.L4:
	lea	rax, -8128[rbp]
	mov	edx, 8096
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
.L2:
	lea	rcx, -8188[rbp]
	lea	rdx, -8176[rbp]
	lea	rsi, -8128[rbp]
	mov	eax, DWORD PTR -8180[rbp]
	mov	r9, rcx
	mov	r8, rdx
	mov	ecx, 256
	mov	edx, 8096
	mov	edi, eax
	call	recvfrom@PLT
	cmp	rax, -1
	jne	.L7
	mov	eax, 0
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	mov	rbx, QWORD PTR -8[rbp]
	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	"414806.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"1 packet received.\000"
	.align	2
.LC1:
	.ascii	"Target acquired.\000"
	.align	2
.LC2:
	.ascii	"-> %s:%d\012\000"
	.align	2
.LC3:
	.ascii	"sendto()\000"
	.align	2
.LC4:
	.ascii	"OK: one packet is forwared.\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8160
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #8128
	sub	sp, sp, #44
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-4060]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #16
	str	r3, [r2, #-4064]
	sub	r3, fp, #8128
	sub	r3, r3, #12
	sub	r3, r3, #20
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #8064
	sub	r3, r3, #12
	sub	r3, r3, #52
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #8128
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	mov	r2, #0
	mov	r1, #2
	mov	r0, #2
	bl	socket
	str	r0, [r4, #-4056]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-4016]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4016
	sub	r3, r3, #4
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	mov	r0, #81
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4016
	sub	r3, r3, #4
	strh	r2, [r3, #2]	@ movhi
	sub	r3, fp, #8064
	sub	r3, r3, #12
	sub	r3, r3, #52
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [r0, #-4056]
	bl	bind
	b	.L2
.L7:
	ldr	r0, .L10+4
	bl	puts
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-4060]
	cmp	r3, #0
	bne	.L3
	ldr	r0, .L10+8
	bl	puts
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-4048]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	str	r3, [r2, #-4032]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4032
	sub	r3, r3, #4
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4048
	sub	r3, r3, #4
	ldrh	r2, [r3, #2]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4032
	sub	r3, r3, #4
	strh	r2, [r3, #2]	@ movhi
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-4060]
.L3:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-4060]
	cmp	r3, #0
	beq	.L4
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4048
	sub	r3, r3, #4
	ldrh	r2, [r3, #2]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4032
	sub	r3, r3, #4
	ldrh	r3, [r3, #2]
	cmp	r2, r3
	bne	.L5
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-4048]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-4032]
	cmp	r2, r3
	beq	.L4
.L5:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-4032]
	bl	inet_ntoa
	mov	r1, r0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4032
	sub	r3, r3, #4
	ldrh	r3, [r3, #2]
	mov	r2, r3
	ldr	r0, .L10+12
	bl	printf
	sub	r3, fp, #8064
	sub	r3, r3, #12
	sub	r3, r3, #36
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r1, fp, #8064
	sub	r1, r1, #12
	sub	r1, r1, #36
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r0, r3
	mov	r3, #16
	str	r3, [sp, #4]
	sub	r3, fp, #8128
	sub	r3, r3, #12
	sub	r3, r3, #4
	str	r3, [sp]
	mov	r3, #0
	ldr	r0, [r0, #-4056]
	bl	sendto
	mov	r3, r0
	cmp	r3, #0
	bge	.L6
	ldr	r0, .L10+16
	bl	perror
	mov	r0, #3
	bl	exit
.L6:
	ldr	r0, .L10+20
	bl	puts
.L4:
	sub	r3, fp, #8064
	sub	r3, r3, #12
	sub	r3, r3, #36
	ldr	r2, .L10+24
	mov	r1, #0
	mov	r0, r3
	bl	memset
.L2:
	sub	r1, fp, #8064
	sub	r1, r1, #12
	sub	r1, r1, #36
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r0, r3
	sub	r3, fp, #8128
	sub	r3, r3, #12
	sub	r3, r3, #32
	str	r3, [sp, #4]
	sub	r3, fp, #8128
	sub	r3, r3, #12
	sub	r3, r3, #20
	str	r3, [sp]
	mov	r3, #256
	ldr	r2, .L10+24
	ldr	r0, [r0, #-4056]
	bl	recvfrom
	mov	r3, r0
	cmn	r3, #1
	bne	.L7
	mov	r3, #0
	ldr	r2, .L10
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC5
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	8096
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
