	.file	"1091012.c"
	.intel_syntax noprefix
	.text
	.globl	die
	.type	die, @function
die:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	die, .-die
	.section	.rodata
.LC0:
	.string	"socket"
.LC1:
	.string	"bind"
.LC2:
	.string	"Waiting for data..."
.LC3:
	.string	"recvfrom()"
.LC4:
	.string	"Received packet from %s:%d\n"
.LC5:
	.string	"Data: %s\n"
.LC6:
	.string	"sendto()"
	.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
	push	rbx
	sub	rsp, 584
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -588[rbp], 0
	mov	DWORD PTR -584[rbp], 0
	mov	DWORD PTR -592[rbp], 16
	mov	DWORD PTR -580[rbp], 0
	mov	QWORD PTR -544[rbp], 0
	mov	QWORD PTR -536[rbp], 0
	lea	rdx, -528[rbp]
	mov	eax, 0
	mov	ecx, 62
	mov	rdi, rdx
	rep stosq
	mov	edx, 17
	mov	esi, 2
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -588[rbp], eax
	cmp	DWORD PTR -588[rbp], -1
	jne	.L3
	lea	rdi, .LC0[rip]
	call	die
.L3:
	lea	rax, -576[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -576[rbp], 2
	mov	edi, 8888
	call	htons@PLT
	mov	WORD PTR -574[rbp], ax
	mov	edi, 0
	call	htonl@PLT
	mov	DWORD PTR -572[rbp], eax
	lea	rcx, -576[rbp]
	mov	eax, DWORD PTR -588[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	cmp	eax, -1
	jne	.L7
	lea	rdi, .LC1[rip]
	call	die
.L7:
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	lea	rcx, -592[rbp]
	lea	rdx, -560[rbp]
	lea	rsi, -544[rbp]
	mov	eax, DWORD PTR -588[rbp]
	mov	r9, rcx
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 512
	mov	edi, eax
	call	recvfrom@PLT
	mov	DWORD PTR -580[rbp], eax
	cmp	DWORD PTR -580[rbp], -1
	jne	.L5
	lea	rdi, .LC3[rip]
	call	die
.L5:
	movzx	eax, WORD PTR -558[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	movzx	ebx, ax
	mov	eax, DWORD PTR -556[rbp]
	mov	edi, eax
	call	inet_ntoa@PLT
	mov	edx, ebx
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -544[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -592[rbp]
	mov	edi, eax
	mov	eax, DWORD PTR -580[rbp]
	movsx	rdx, eax
	lea	rcx, -560[rbp]
	lea	rsi, -544[rbp]
	mov	eax, DWORD PTR -588[rbp]
	mov	r9d, edi
	mov	r8, rcx
	mov	ecx, 0
	mov	edi, eax
	call	sendto@PLT
	cmp	rax, -1
	jne	.L7
	lea	rdi, .LC6[rip]
	call	die
	jmp	.L7
	.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	"1091012.c"
	.text
	.align	2
	.global	die
	.syntax unified
	.arm
	.fpu softvfp
	.type	die, %function
die:
	@ 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	r0, [fp, #-8]
	bl	perror
	mov	r0, #1
	bl	exit
	.size	die, .-die
	.section	.rodata
	.align	2
.LC0:
	.ascii	"socket\000"
	.align	2
.LC1:
	.ascii	"bind\000"
	.align	2
.LC2:
	.ascii	"Waiting for data...\000"
	.align	2
.LC3:
	.ascii	"recvfrom()\000"
	.align	2
.LC4:
	.ascii	"Received packet from %s:%d\012\000"
	.align	2
.LC5:
	.ascii	"Data: %s\012\000"
	.align	2
.LC6:
	.ascii	"sendto()\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 568
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #580
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-572]
	mov	r3, #0
	str	r3, [fp, #-568]
	mov	r3, #16
	str	r3, [fp, #-576]
	mov	r3, #0
	str	r3, [fp, #-564]
	mov	r3, #0
	str	r3, [fp, #-528]
	sub	r3, fp, #524
	mov	r2, #508
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r2, #17
	mov	r1, #2
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-572]
	ldr	r3, [fp, #-572]
	cmn	r3, #1
	bne	.L3
	ldr	r0, .L9+4
	bl	die
.L3:
	sub	r3, fp, #560
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #12
	sub	r3, r3, #548
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	ldr	r0, .L9+8
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #12
	sub	r3, r3, #548
	strh	r2, [r3, #2]	@ movhi
	mov	r0, #0
	bl	htonl
	mov	r3, r0
	str	r3, [fp, #-556]
	sub	r3, fp, #560
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-572]
	bl	bind
	mov	r3, r0
	cmn	r3, #1
	bne	.L7
	ldr	r0, .L9+12
	bl	die
.L7:
	ldr	r0, .L9+16
	bl	printf
	ldr	r3, .L9+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	sub	r1, fp, #528
	sub	r3, fp, #576
	str	r3, [sp, #4]
	sub	r3, fp, #544
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #512
	ldr	r0, [fp, #-572]
	bl	recvfrom
	str	r0, [fp, #-564]
	ldr	r3, [fp, #-564]
	cmn	r3, #1
	bne	.L5
	ldr	r0, .L9+24
	bl	die
.L5:
	ldr	r0, [fp, #-540]
	bl	inet_ntoa
	mov	r4, r0
	sub	r3, fp, #12
	sub	r3, r3, #532
	ldrh	r3, [r3, #2]
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L9+28
	bl	printf
	sub	r3, fp, #528
	mov	r1, r3
	ldr	r0, .L9+32
	bl	printf
	ldr	r2, [fp, #-564]
	ldr	r3, [fp, #-576]
	sub	r1, fp, #528
	str	r3, [sp, #4]
	sub	r3, fp, #544
	str	r3, [sp]
	mov	r3, #0
	ldr	r0, [fp, #-572]
	bl	sendto
	mov	r3, r0
	cmn	r3, #1
	bne	.L7
	ldr	r0, .L9+36
	bl	die
	b	.L7
.L10:
	.align	2
.L9:
	.word	.LC7
	.word	.LC0
	.word	8888
	.word	.LC1
	.word	.LC2
	.word	stdout
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
