	.file	"51700229.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Hello from server"
.LC1:
	.string	"socket failed"
.LC2:
	.string	"setsockopt"
.LC3:
	.string	"bind failed"
.LC4:
	.string	"listen"
.LC5:
	.string	"accept"
	.align 8
.LC7:
	.string	"The program took %f seconds to execute \n"
.LC8:
	.string	"Read GB %lu \n"
.LC10:
	.string	"Speed %f GB/s \n"
	.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
	lea	r11, -1048576[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 112
	mov	DWORD PTR -1048676[rbp], edi
	mov	QWORD PTR -1048688[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -1048640[rbp], 0
	mov	DWORD PTR -1048660[rbp], 1
	mov	DWORD PTR -1048656[rbp], 16
	mov	QWORD PTR -1048592[rbp], 0
	mov	QWORD PTR -1048584[rbp], 0
	lea	rax, -1048576[rbp]
	mov	edx, 1048560
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, .LC0[rip]
	mov	QWORD PTR -1048632[rbp], rax
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -1048652[rbp], eax
	cmp	DWORD PTR -1048652[rbp], 0
	jne	.L2
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	lea	rdx, -1048660[rbp]
	mov	eax, DWORD PTR -1048652[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 15
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	test	eax, eax
	je	.L3
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	WORD PTR -1048608[rbp], 2
	mov	DWORD PTR -1048604[rbp], 0
	mov	edi, 8080
	call	htons@PLT
	mov	WORD PTR -1048606[rbp], ax
	lea	rcx, -1048608[rbp]
	mov	eax, DWORD PTR -1048652[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	jns	.L4
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	mov	eax, DWORD PTR -1048652[rbp]
	mov	esi, 3
	mov	edi, eax
	call	listen@PLT
	test	eax, eax
	jns	.L5
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	lea	rdx, -1048656[rbp]
	lea	rcx, -1048608[rbp]
	mov	eax, DWORD PTR -1048652[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -1048648[rbp], eax
	cmp	DWORD PTR -1048648[rbp], 0
	jns	.L6
	lea	rdi, .LC5[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L6:
	mov	DWORD PTR -1048644[rbp], 0
	call	clock@PLT
	mov	QWORD PTR -1048624[rbp], rax
.L9:
	lea	rcx, -1048592[rbp]
	mov	eax, DWORD PTR -1048648[rbp]
	mov	edx, 1048576
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	add	QWORD PTR -1048640[rbp], rax
	movabs	rax, 53687091200
	cmp	QWORD PTR -1048640[rbp], rax
	je	.L15
	jmp	.L9
.L15:
	nop
	call	clock@PLT
	sub	rax, QWORD PTR -1048624[rbp]
	mov	QWORD PTR -1048624[rbp], rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, QWORD PTR -1048624[rbp]
	movsd	xmm1, QWORD PTR .LC6[rip]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -1048616[rbp], xmm0
	mov	rax, QWORD PTR -1048616[rbp]
	movq	xmm0, rax
	lea	rdi, .LC7[rip]
	mov	eax, 1
	call	printf@PLT
	mov	rax, QWORD PTR -1048640[rbp]
	shr	rax, 30
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -1048640[rbp]
	test	rax, rax
	js	.L10
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L11
.L10:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
.L11:
	movsd	xmm2, QWORD PTR -1048616[rbp]
	movsd	xmm1, QWORD PTR .LC9[rip]
	mulsd	xmm1, xmm2
	divsd	xmm0, xmm1
	movq	rax, xmm0
	movq	xmm0, rax
	lea	rdi, .LC10[rip]
	mov	eax, 1
	call	printf@PLT
	mov	rax, QWORD PTR -1048632[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rsi, QWORD PTR -1048632[rbp]
	mov	eax, DWORD PTR -1048648[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC6:
	.long	0
	.long	1093567616
	.align 8
.LC9:
	.long	0
	.long	1104150528
	.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	"51700229.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Hello from server\000"
	.align	2
.LC1:
	.ascii	"socket failed\000"
	.align	2
.LC2:
	.ascii	"setsockopt\000"
	.align	2
.LC3:
	.ascii	"bind failed\000"
	.align	2
.LC4:
	.ascii	"listen\000"
	.align	2
.LC5:
	.ascii	"accept\000"
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.align	2
.LC6:
	.ascii	"The program took %f seconds to execute \012\000"
	.align	2
.LC7:
	.ascii	"Read GB %lu \012\000"
	.global	__aeabi_ui2d
	.global	__aeabi_dmul
	.align	2
.LC8:
	.ascii	"Speed %f GB/s \012\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1048648
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #1048576
	sub	sp, sp, #80
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	str	r0, [r3, #-68]
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	str	r1, [r3, #-72]
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-56]
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-64]
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #16
	str	r3, [r2, #-60]
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-4]
	mov	r0, r2
	ldr	r3, .L14+4
	mov	r2, r3
	mov	r1, #0
	bl	memset
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L14+8
	str	r3, [r2, #-52]
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	mov	r4, r3
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [r4, #-48]
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	ldr	r3, [r3, #-48]
	cmp	r3, #0
	bne	.L2
	ldr	r0, .L14+12
	bl	perror
	mov	r0, #1
	bl	exit
.L2:
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	sub	r3, r3, #64
	sub	r2, fp, #1048576
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #15
	mov	r1, #1
	ldr	r0, [r0, #-48]
	bl	setsockopt
	mov	r3, r0
	cmp	r3, #0
	beq	.L3
	ldr	r0, .L14+16
	bl	perror
	mov	r0, #1
	bl	exit
.L3:
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	mov	r2, #2
	strh	r2, [r3, #-20]	@ movhi
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-16]
	ldr	r0, .L14+20
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	strh	r2, [r3, #-18]	@ movhi
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	sub	r3, r3, #20
	sub	r2, fp, #1048576
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [r0, #-48]
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	bge	.L4
	ldr	r0, .L14+24
	bl	perror
	mov	r0, #1
	bl	exit
.L4:
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	mov	r1, #3
	ldr	r0, [r3, #-48]
	bl	listen
	mov	r3, r0
	cmp	r3, #0
	bge	.L5
	ldr	r0, .L14+28
	bl	perror
	mov	r0, #1
	bl	exit
.L5:
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	mov	r4, r3
	sub	r2, fp, #1048576
	sub	r2, r2, #12
	sub	r2, r2, #60
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	sub	r3, r3, #20
	sub	r1, fp, #1048576
	sub	r1, r1, #12
	mov	r0, r1
	mov	r1, r3
	ldr	r0, [r0, #-48]
	bl	accept
	str	r0, [r4, #-44]
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	cmp	r3, #0
	bge	.L6
	ldr	r0, .L14+32
	bl	perror
	mov	r0, #1
	bl	exit
.L6:
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-40]
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	mov	r4, r3
	bl	clock
	str	r0, [r4, #-36]
.L9:
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #1048576
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #1048576
	mov	r1, r3
	ldr	r0, [r0, #-44]
	bl	read
	mov	r3, r0
	mov	r1, r3
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	ldr	r3, [r3, #-56]
	add	r3, r3, r1
	str	r3, [r2, #-56]
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	ldr	r3, [r3, #-56]
	cmp	r3, #-2147483648
	beq	.L13
	b	.L9
.L13:
	nop
	bl	clock
	mov	r2, r0
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	ldr	r3, [r3, #-36]
	sub	r3, r2, r3
	str	r3, [r1, #-36]
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	ldr	r0, [r3, #-36]
	bl	__aeabi_i2d
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	sub	r3, r3, #32
	mov	r4, r3
	mov	r2, #0
	ldr	r3, .L14+36
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	stm	r4, {r2-r3}
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	sub	r3, r3, #32
	ldmia	r3, {r2-r3}
	ldr	r0, .L14+40
	bl	printf
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	ldr	r3, [r3, #-56]
	lsr	r3, r3, #30
	mov	r1, r3
	ldr	r0, .L14+44
	bl	printf
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	ldr	r0, [r3, #-56]
	bl	__aeabi_ui2d
	mov	r4, r0
	mov	r5, r1
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	sub	r3, r3, #32
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L14+48
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L14+52
	bl	printf
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	ldr	r0, [r3, #-52]
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #1048576
	sub	r3, r3, #12
	mov	r0, r3
	mov	r3, #0
	ldr	r1, [r1, #-52]
	ldr	r0, [r0, #-44]
	bl	send
	mov	r3, #0
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC9
	.word	1048572
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	8080
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	1093567616
	.word	.LC6
	.word	.LC7
	.word	1104150528
	.word	.LC8
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
