	.file	"269158.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Usage: %s PORT\n"
	.align 8
.LC1:
	.string	"Error in socket binding ... exit"
	.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, 1128
	.cfi_offset 3, -24
	mov	DWORD PTR -1124[rbp], edi
	mov	QWORD PTR -1136[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -1120[rbp], 16
	cmp	DWORD PTR -1124[rbp], 1
	jg	.L2
	mov	rax, QWORD PTR -1136[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	edx, 0
	mov	esi, 2
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -1112[rbp], eax
	lea	rax, -1088[rbp]
	mov	QWORD PTR [rax], 0
	mov	QWORD PTR 8[rax], 0
	mov	WORD PTR -1088[rbp], 2
	mov	DWORD PTR -1084[rbp], 0
	mov	rax, QWORD PTR -1136[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -1086[rbp], ax
	mov	edx, DWORD PTR -1120[rbp]
	lea	rcx, -1088[rbp]
	mov	eax, DWORD PTR -1112[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	mov	DWORD PTR -1108[rbp], eax
	cmp	DWORD PTR -1108[rbp], 0
	jns	.L3
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	lea	rax, -1056[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rdi, -1120[rbp]
	lea	rcx, -1072[rbp]
	lea	rsi, -1056[rbp]
	mov	eax, DWORD PTR -1112[rbp]
	mov	r9, rdi
	mov	r8, rcx
	mov	ecx, 0
	mov	edi, eax
	call	recvfrom@PLT
	call	fork@PLT
	test	eax, eax
	jne	.L3
	mov	DWORD PTR -1116[rbp], 0
	jmp	.L5
.L6:
	mov	edi, 0
	call	time@PLT
	mov	QWORD PTR -1104[rbp], rax
	lea	rax, -1104[rbp]
	mov	rdi, rax
	call	ctime@PLT
	mov	QWORD PTR -1096[rbp], rax
	mov	ebx, DWORD PTR -1120[rbp]
	mov	rax, QWORD PTR -1096[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, -1[rax]
	lea	rcx, -1072[rbp]
	mov	rsi, QWORD PTR -1096[rbp]
	mov	eax, DWORD PTR -1112[rbp]
	mov	r9d, ebx
	mov	r8, rcx
	mov	ecx, 0
	mov	edi, eax
	call	sendto@PLT
	mov	edi, 5
	call	sleep@PLT
	add	DWORD PTR -1116[rbp], 1
.L5:
	cmp	DWORD PTR -1116[rbp], 6
	jle	.L6
	jmp	.L3
	.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	"269158.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Usage: %s PORT\012\000"
	.align	2
.LC1:
	.ascii	"Error in socket binding ... exit\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1096
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1104
	str	r0, [fp, #-1096]
	str	r1, [fp, #-1100]
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #16
	str	r3, [fp, #-1088]
	ldr	r3, [fp, #-1096]
	cmp	r3, #1
	bgt	.L2
	ldr	r3, [fp, #-1100]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L8+4
	bl	printf
	mov	r0, #1
	bl	exit
.L2:
	mov	r2, #0
	mov	r1, #2
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-1076]
	sub	r3, fp, #1056
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2]
	str	r3, [r2, #4]
	str	r3, [r2, #8]
	str	r3, [r2, #12]
	sub	r3, fp, #4
	sub	r3, r3, #1056
	sub	r3, r3, #4
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	mov	r3, #0
	str	r3, [fp, #-1060]
	ldr	r3, [fp, #-1100]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	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, #1056
	sub	r3, r3, #4
	strh	r2, [r3, #2]	@ movhi
	ldr	r2, [fp, #-1088]
	sub	r3, fp, #1056
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, [fp, #-1076]
	bl	bind
	str	r0, [fp, #-1072]
	ldr	r3, [fp, #-1072]
	cmp	r3, #0
	bge	.L3
	ldr	r0, .L8+8
	bl	puts
	mov	r0, #1
	bl	exit
.L3:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r1, fp, #1024
	sub	r1, r1, #4
	sub	r1, r1, #4
	sub	r3, fp, #1072
	sub	r3, r3, #4
	sub	r3, r3, #12
	str	r3, [sp, #4]
	sub	r3, fp, #1040
	sub	r3, r3, #4
	sub	r3, r3, #4
	str	r3, [sp]
	mov	r3, #0
	ldr	r0, [fp, #-1076]
	bl	recvfrom
	bl	fork
	mov	r3, r0
	cmp	r3, #0
	bne	.L3
	mov	r3, #0
	str	r3, [fp, #-1080]
	b	.L5
.L6:
	mov	r0, #0
	bl	time
	mov	r3, r0
	str	r3, [fp, #-1084]
	sub	r3, fp, #1072
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r0, r3
	bl	ctime
	str	r0, [fp, #-1068]
	ldr	r0, [fp, #-1068]
	bl	strlen
	mov	r3, r0
	sub	r2, r3, #1
	ldr	r3, [fp, #-1088]
	str	r3, [sp, #4]
	sub	r3, fp, #1040
	sub	r3, r3, #4
	sub	r3, r3, #4
	str	r3, [sp]
	mov	r3, #0
	ldr	r1, [fp, #-1068]
	ldr	r0, [fp, #-1076]
	bl	sendto
	mov	r0, #5
	bl	sleep
	ldr	r3, [fp, #-1080]
	add	r3, r3, #1
	str	r3, [fp, #-1080]
.L5:
	ldr	r3, [fp, #-1080]
	cmp	r3, #6
	ble	.L6
	b	.L3
.L9:
	.align	2
.L8:
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
