	.file	"69026.c"
	.intel_syntax noprefix
	.text
	.type	diep, @function
diep:
.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
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	diep, .-diep
	.section	.rodata
.LC0:
	.string	"socket"
.LC1:
	.string	"recvfrom()"
.LC2:
	.string	"This is packet %d"
.LC3:
	.string	"send()"
	.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, 608
	mov	DWORD PTR -596[rbp], edi
	mov	QWORD PTR -608[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -584[rbp], 16
	mov	DWORD PTR -576[rbp], 9930
	mov	DWORD PTR -572[rbp], 0
	mov	edx, 17
	mov	esi, 2
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -568[rbp], eax
	cmp	DWORD PTR -568[rbp], -1
	jne	.L3
	lea	rdi, .LC0[rip]
	call	diep
.L3:
	cmp	DWORD PTR -596[rbp], 1
	jle	.L4
	mov	rax, QWORD PTR -608[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -576[rbp], eax
.L4:
	lea	rax, -560[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -560[rbp], 2
	mov	eax, DWORD PTR -576[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -558[rbp], ax
	mov	edi, 0
	call	htonl@PLT
	mov	DWORD PTR -556[rbp], eax
	lea	rcx, -560[rbp]
	mov	eax, DWORD PTR -568[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	cmp	eax, -1
	jne	.L5
	mov	eax, -1
	jmp	.L11
.L5:
	mov	DWORD PTR -564[rbp], 0
	jmp	.L7
.L10:
	mov	DWORD PTR -580[rbp], 0
	lea	rcx, -584[rbp]
	lea	rdx, -544[rbp]
	lea	rsi, -528[rbp]
	mov	eax, DWORD PTR -568[rbp]
	mov	r9, rcx
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 512
	mov	edi, eax
	call	recvfrom@PLT
	cmp	rax, -1
	jne	.L8
	lea	rdi, .LC1[rip]
	call	diep
.L8:
	lea	rdx, -580[rbp]
	lea	rax, -528[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	eax, DWORD PTR -584[rbp]
	mov	ecx, eax
	lea	rdx, -544[rbp]
	lea	rsi, -528[rbp]
	mov	eax, DWORD PTR -568[rbp]
	mov	r9d, ecx
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 512
	mov	edi, eax
	call	sendto@PLT
	cmp	rax, -1
	jne	.L9
	lea	rdi, .LC3[rip]
	call	diep
.L9:
	add	DWORD PTR -572[rbp], 1
.L7:
	cmp	DWORD PTR -564[rbp], 1048575
	jle	.L10
	mov	eax, DWORD PTR -568[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
.L11:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	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	"69026.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	diep, %function
diep:
	@ 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
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	diep, .-diep
	.section	.rodata
	.align	2
.LC0:
	.ascii	"socket\000"
	.align	2
.LC1:
	.ascii	"recvfrom()\000"
	.align	2
.LC2:
	.ascii	"This is packet %d\000"
	.align	2
.LC3:
	.ascii	"send()\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 584
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #592
	str	r0, [fp, #-584]
	str	r1, [fp, #-588]
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #16
	str	r3, [fp, #-576]
	ldr	r3, .L13+4
	str	r3, [fp, #-568]
	mov	r3, #0
	str	r3, [fp, #-564]
	mov	r2, #17
	mov	r1, #2
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-560]
	ldr	r3, [fp, #-560]
	cmn	r3, #1
	bne	.L3
	ldr	r0, .L13+8
	bl	diep
.L3:
	ldr	r3, [fp, #-584]
	cmp	r3, #1
	ble	.L4
	ldr	r3, [fp, #-588]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-568]
.L4:
	sub	r3, fp, #552
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #4
	sub	r3, r3, #548
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-568]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4
	sub	r3, r3, #548
	strh	r2, [r3, #2]	@ movhi
	mov	r0, #0
	bl	htonl
	mov	r3, r0
	str	r3, [fp, #-548]
	sub	r3, fp, #552
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-560]
	bl	bind
	mov	r3, r0
	cmn	r3, #1
	bne	.L5
	mvn	r3, #0
	b	.L11
.L5:
	mov	r3, #0
	str	r3, [fp, #-556]
	b	.L7
.L10:
	mov	r3, #0
	str	r3, [fp, #-572]
	sub	r1, fp, #520
	sub	r3, fp, #576
	str	r3, [sp, #4]
	sub	r3, fp, #536
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #512
	ldr	r0, [fp, #-560]
	bl	recvfrom
	mov	r3, r0
	cmn	r3, #1
	bne	.L8
	ldr	r0, .L13+12
	bl	diep
.L8:
	sub	r2, fp, #572
	sub	r3, fp, #520
	ldr	r1, .L13+16
	mov	r0, r3
	bl	__isoc99_sscanf
	ldr	r3, [fp, #-576]
	sub	r1, fp, #520
	str	r3, [sp, #4]
	sub	r3, fp, #536
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #512
	ldr	r0, [fp, #-560]
	bl	sendto
	mov	r3, r0
	cmn	r3, #1
	bne	.L9
	ldr	r0, .L13+20
	bl	diep
.L9:
	ldr	r3, [fp, #-564]
	add	r3, r3, #1
	str	r3, [fp, #-564]
.L7:
	ldr	r3, [fp, #-556]
	cmp	r3, #1048576
	blt	.L10
	ldr	r0, [fp, #-560]
	bl	close
	mov	r3, #0
.L11:
	ldr	r2, .L13
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC4
	.word	9930
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
