	.file	"190769329.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"[Fatal Error]: Socket Handle is invalid, aborting."
	.align 8
.LC1:
	.string	"[Fatal Error]: Socket Handle could not be bound to server, aborting."
	.align 8
.LC2:
	.string	"[Fatal Error]: Detected malformed client handle, aborting."
	.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
	sub	rsp, 96
	mov	DWORD PTR -84[rbp], edi
	mov	QWORD PTR -96[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edx, 6
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -72[rbp], eax
	cmp	DWORD PTR -72[rbp], 0
	jns	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L7
.L2:
	lea	rax, -48[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -48[rbp], 2
	mov	edi, 1414
	call	htons@PLT
	mov	WORD PTR -46[rbp], ax
	mov	DWORD PTR -44[rbp], 0
	lea	rcx, -48[rbp]
	mov	eax, DWORD PTR -72[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	jns	.L4
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L7
.L4:
	mov	eax, DWORD PTR -72[rbp]
	mov	esi, 3
	mov	edi, eax
	call	listen@PLT
.L6:
	mov	rax, QWORD PTR -64[rbp]
	movabs	rdx, 62125920000
	add	rax, rdx
	mov	QWORD PTR -64[rbp], rax
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	time@PLT
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	ctime@PLT
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 1414350637
	mov	WORD PTR 4[rax], 2573
	mov	BYTE PTR 6[rax], 0
	mov	DWORD PTR -76[rbp], 16
	lea	rdx, -76[rbp]
	lea	rcx, -32[rbp]
	mov	eax, DWORD PTR -72[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -68[rbp], eax
	cmp	DWORD PTR -68[rbp], 0
	jns	.L5
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -68[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -72[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
	jmp	.L7
.L5:
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rcx, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR -68[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR -68[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L6
.L7:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	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	"190769329.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"[Fatal Error]: Socket Handle is invalid, aborting.\000"
	.align	2
.LC1:
	.ascii	"[Fatal Error]: Socket Handle could not be bound to "
	.ascii	"server, aborting.\000"
	.align	2
.LC2:
	.ascii	"-GMT\015\012\000"
	.align	2
.LC3:
	.ascii	"[Fatal Error]: Detected malformed client handle, ab"
	.ascii	"orting.\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 = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	str	r0, [fp, #-64]
	str	r1, [fp, #-68]
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r2, #6
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	bge	.L2
	ldr	r0, .L9+4
	bl	puts
	mvn	r3, #0
	b	.L7
.L2:
	sub	r3, fp, #40
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #2
	strh	r3, [fp, #-40]	@ movhi
	ldr	r0, .L9+8
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-38]	@ movhi
	mov	r3, #0
	str	r3, [fp, #-36]
	sub	r3, fp, #40
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-52]
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	bge	.L4
	ldr	r0, .L9+12
	bl	puts
	mvn	r3, #0
	b	.L7
.L4:
	mov	r1, #3
	ldr	r0, [fp, #-52]
	bl	listen
.L6:
	ldr	r2, [fp, #-56]
	ldr	r3, .L9+16
	add	r3, r2, r3
	str	r3, [fp, #-56]
	sub	r3, fp, #56
	mov	r0, r3
	bl	time
	sub	r3, fp, #56
	mov	r0, r3
	bl	ctime
	str	r0, [fp, #-48]
	ldr	r0, [fp, #-48]
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r0, [fp, #-48]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-48]
	add	r3, r3, r2
	ldr	r2, .L9+20
	mov	r0, r3
	mov	r1, r2
	mov	r3, #7
	mov	r2, r3
	bl	memcpy
	mov	r3, #16
	str	r3, [fp, #-60]
	sub	r2, fp, #60
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, [fp, #-52]
	bl	accept
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bge	.L5
	ldr	r0, .L9+24
	bl	puts
	ldr	r0, [fp, #-44]
	bl	close
	ldr	r0, [fp, #-52]
	bl	close
	mov	r3, #0
	b	.L7
.L5:
	ldr	r0, [fp, #-48]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-48]
	ldr	r0, [fp, #-44]
	bl	write
	ldr	r0, [fp, #-44]
	bl	close
	b	.L6
.L7:
	ldr	r2, .L9
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L8
	bl	__stack_chk_fail
.L8:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC4
	.word	.LC0
	.word	1414
	.word	.LC1
	.word	1996377856
	.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
