	.file	"55880.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Enter Server Name: "
.LC1:
	.string	"%s"
.LC2:
	.string	"Enter Port: "
.LC3:
	.string	"%d"
.LC4:
	.string	"Enter Block Size: "
.LC5:
	.string	"Enter Client Num: "
.LC6:
	.string	"Enter Request Num: "
.LC7:
	.string	"[client] socket"
.LC8:
	.string	"[client] connect"
.LC10:
	.string	"[client] pthread_create"
	.align 8
.LC12:
	.string	"[client] client_num: %d, block_size: %d, request_num: %d, send_size: %d MB, duration: %f s (avg_time: %f s), throughput: %f MB/s (avg_throughput: %f MB/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
	sub	rsp, 448
	mov	DWORD PTR -436[rbp], edi
	mov	QWORD PTR -448[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -272[rbp], 0
	mov	QWORD PTR -264[rbp], 0
	mov	QWORD PTR -256[rbp], 0
	mov	QWORD PTR -248[rbp], 0
	mov	QWORD PTR -240[rbp], 0
	mov	QWORD PTR -232[rbp], 0
	mov	QWORD PTR -224[rbp], 0
	mov	QWORD PTR -216[rbp], 0
	mov	QWORD PTR -208[rbp], 0
	mov	QWORD PTR -200[rbp], 0
	mov	QWORD PTR -192[rbp], 0
	mov	QWORD PTR -184[rbp], 0
	mov	QWORD PTR -176[rbp], 0
	mov	QWORD PTR -168[rbp], 0
	mov	QWORD PTR -160[rbp], 0
	mov	QWORD PTR -152[rbp], 0
	mov	QWORD PTR -144[rbp], 0
	mov	QWORD PTR -136[rbp], 0
	mov	QWORD PTR -128[rbp], 0
	mov	QWORD PTR -120[rbp], 0
	mov	QWORD PTR -112[rbp], 0
	mov	QWORD PTR -104[rbp], 0
	mov	QWORD PTR -96[rbp], 0
	mov	QWORD PTR -88[rbp], 0
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	cmp	DWORD PTR -436[rbp], 1
	jle	.L2
	mov	rax, QWORD PTR -448[rbp]
	add	rax, 8
	mov	rcx, QWORD PTR [rax]
	lea	rax, -272[rbp]
	mov	edx, 255
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	jmp	.L3
.L2:
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -272[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -404[rbp], eax
.L3:
	cmp	DWORD PTR -436[rbp], 2
	jle	.L4
	mov	rax, QWORD PTR -448[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	jmp	.L5
.L4:
	mov	eax, 0
.L5:
	mov	DWORD PTR -432[rbp], eax
	mov	eax, DWORD PTR -432[rbp]
	test	eax, eax
	jne	.L6
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -432[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -400[rbp], eax
.L6:
	cmp	DWORD PTR -436[rbp], 3
	jle	.L7
	mov	rax, QWORD PTR -448[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	jmp	.L8
.L7:
	mov	eax, 0
.L8:
	mov	DWORD PTR -428[rbp], eax
	mov	eax, DWORD PTR -428[rbp]
	test	eax, eax
	jne	.L9
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -428[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -396[rbp], eax
.L9:
	cmp	DWORD PTR -436[rbp], 4
	jle	.L10
	mov	rax, QWORD PTR -448[rbp]
	add	rax, 32
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	jmp	.L11
.L10:
	mov	eax, 0
.L11:
	mov	DWORD PTR -424[rbp], eax
	mov	eax, DWORD PTR -424[rbp]
	test	eax, eax
	jne	.L12
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -424[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -392[rbp], eax
.L12:
	cmp	DWORD PTR -436[rbp], 5
	jle	.L13
	mov	rax, QWORD PTR -448[rbp]
	add	rax, 40
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	jmp	.L14
.L13:
	mov	eax, 0
.L14:
	mov	DWORD PTR -420[rbp], eax
	mov	eax, DWORD PTR -420[rbp]
	test	eax, eax
	jne	.L15
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -420[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -388[rbp], eax
.L15:
	mov	eax, DWORD PTR -424[rbp]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -368[rbp], rax
	mov	eax, DWORD PTR -424[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -360[rbp], rax
	mov	DWORD PTR -416[rbp], 0
	jmp	.L16
.L19:
	lea	rax, -272[rbp]
	mov	rdi, rax
	call	gethostbyname@PLT
	mov	QWORD PTR -328[rbp], rax
	lea	rax, -288[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -288[rbp], 2
	mov	eax, DWORD PTR -432[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -286[rbp], ax
	mov	rax, QWORD PTR -328[rbp]
	mov	eax, DWORD PTR 20[rax]
	movsx	rdx, eax
	mov	rax, QWORD PTR -328[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rax, QWORD PTR [rax]
	lea	rcx, -288[rbp]
	add	rcx, 4
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -380[rbp], eax
	cmp	DWORD PTR -380[rbp], -1
	jne	.L17
	lea	rdi, .LC7[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L17:
	lea	rcx, -288[rbp]
	mov	eax, DWORD PTR -380[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	cmp	eax, -1
	jne	.L18
	lea	rdi, .LC8[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L18:
	mov	eax, DWORD PTR -416[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -360[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -428[rbp]
	mov	DWORD PTR 4[rdx], eax
	mov	ecx, DWORD PTR -420[rbp]
	mov	eax, DWORD PTR -416[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -360[rbp]
	add	rdx, rax
	movsx	rax, ecx
	mov	QWORD PTR 8[rdx], rax
	mov	eax, DWORD PTR -416[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -360[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -380[rbp]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR -416[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -360[rbp]
	add	rax, rdx
	pxor	xmm0, xmm0
	movsd	QWORD PTR 16[rax], xmm0
	add	DWORD PTR -416[rbp], 1
.L16:
	mov	eax, DWORD PTR -424[rbp]
	cmp	DWORD PTR -416[rbp], eax
	jl	.L19
	lea	rax, -320[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	DWORD PTR -412[rbp], 0
	jmp	.L20
.L22:
	mov	eax, DWORD PTR -412[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -360[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -412[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -368[rbp]
	add	rax, rcx
	mov	rcx, rdx
	lea	rdx, pthread_routine[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	test	eax, eax
	je	.L21
	lea	rdi, .LC10[rip]
	call	perror@PLT
	nop
.L21:
	add	DWORD PTR -412[rbp], 1
.L20:
	mov	eax, DWORD PTR -424[rbp]
	cmp	DWORD PTR -412[rbp], eax
	jl	.L22
	pxor	xmm0, xmm0
	movsd	QWORD PTR -376[rbp], xmm0
	mov	DWORD PTR -408[rbp], 0
	jmp	.L23
.L24:
	mov	eax, DWORD PTR -408[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -368[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	eax, DWORD PTR -408[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -360[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR 16[rax]
	movsd	xmm1, QWORD PTR -376[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -376[rbp], xmm0
	add	DWORD PTR -408[rbp], 1
.L23:
	mov	eax, DWORD PTR -424[rbp]
	cmp	DWORD PTR -408[rbp], eax
	jl	.L24
	mov	eax, DWORD PTR -424[rbp]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, eax
	movsd	xmm0, QWORD PTR -376[rbp]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -376[rbp], xmm0
	lea	rax, -304[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	rax, QWORD PTR -296[rbp]
	mov	rdx, QWORD PTR -312[rbp]
	sub	rax, rdx
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	movsd	xmm2, QWORD PTR .LC11[rip]
	movapd	xmm1, xmm0
	divsd	xmm1, xmm2
	mov	rax, QWORD PTR -304[rbp]
	mov	rdx, QWORD PTR -320[rbp]
	sub	rax, rdx
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	addsd	xmm0, xmm1
	movsd	QWORD PTR -352[rbp], xmm0
	mov	eax, DWORD PTR -428[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -420[rbp]
	cdqe
	imul	rdx, rax
	mov	eax, DWORD PTR -424[rbp]
	cdqe
	imul	rax, rdx
	lea	rdx, 1048575[rax]
	test	rax, rax
	cmovs	rax, rdx
	sar	rax, 20
	mov	DWORD PTR -384[rbp], eax
	mov	eax, DWORD PTR -384[rbp]
	add	eax, eax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	divsd	xmm0, QWORD PTR -352[rbp]
	movsd	QWORD PTR -344[rbp], xmm0
	mov	eax, DWORD PTR -384[rbp]
	add	eax, eax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	divsd	xmm0, QWORD PTR -376[rbp]
	movsd	QWORD PTR -336[rbp], xmm0
	mov	ecx, DWORD PTR -420[rbp]
	mov	edx, DWORD PTR -428[rbp]
	mov	eax, DWORD PTR -424[rbp]
	movsd	xmm2, QWORD PTR -336[rbp]
	movsd	xmm1, QWORD PTR -344[rbp]
	movsd	xmm0, QWORD PTR -376[rbp]
	mov	rsi, QWORD PTR -352[rbp]
	mov	edi, DWORD PTR -384[rbp]
	movapd	xmm3, xmm2
	movapd	xmm2, xmm1
	movapd	xmm1, xmm0
	movq	xmm0, rsi
	mov	r8d, edi
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 4
	call	printf@PLT
	mov	rax, QWORD PTR -368[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -360[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC13:
	.string	"[client] bytes_write != block_size, %d, %d\n"
.LC14:
	.string	"[client] read"
	.align 8
.LC15:
	.string	"[client] bytes_read != block_size, %d, %d, %d\n"
.LC16:
	.string	"retry read number: %d\n"
	.text
	.globl	pthread_routine
	.type	pthread_routine, @function
pthread_routine:
.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, 112
	mov	QWORD PTR -104[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -48[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	rax, QWORD PTR -104[rbp]
	mov	QWORD PTR -64[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -88[rbp], eax
	mov	rax, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	DWORD PTR -84[rbp], eax
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	DWORD PTR -80[rbp], eax
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -56[rbp], rax
	mov	DWORD PTR -96[rbp], 0
	mov	DWORD PTR -92[rbp], 0
.L34:
	mov	eax, DWORD PTR -84[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR -88[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -76[rbp], eax
	mov	eax, DWORD PTR -76[rbp]
	cmp	eax, DWORD PTR -84[rbp]
	je	.L28
	mov	edx, DWORD PTR -84[rbp]
	mov	eax, DWORD PTR -76[rbp]
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L29
.L28:
	mov	eax, DWORD PTR -84[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR -88[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -72[rbp], eax
	cmp	DWORD PTR -72[rbp], 0
	jns	.L30
	lea	rdi, .LC14[rip]
	call	perror@PLT
	jmp	.L29
.L30:
	mov	eax, DWORD PTR -72[rbp]
	cmp	eax, DWORD PTR -84[rbp]
	jge	.L31
	mov	eax, DWORD PTR -84[rbp]
	sub	eax, DWORD PTR -72[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -72[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -56[rbp]
	add	rcx, rax
	mov	eax, DWORD PTR -88[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -68[rbp], eax
	mov	edx, DWORD PTR -68[rbp]
	mov	eax, DWORD PTR -72[rbp]
	add	eax, edx
	cmp	DWORD PTR -84[rbp], eax
	je	.L32
	mov	ecx, DWORD PTR -84[rbp]
	mov	edx, DWORD PTR -68[rbp]
	mov	eax, DWORD PTR -72[rbp]
	mov	esi, eax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L29
.L32:
	add	DWORD PTR -92[rbp], 1
.L31:
	add	DWORD PTR -96[rbp], 1
	mov	eax, DWORD PTR -96[rbp]
	cmp	eax, DWORD PTR -80[rbp]
	je	.L37
	jmp	.L34
.L37:
	nop
.L29:
	mov	eax, DWORD PTR -80[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1717986919
	shr	rdx, 32
	sar	edx, 2
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	cmp	DWORD PTR -92[rbp], eax
	jle	.L35
	mov	eax, DWORD PTR -92[rbp]
	mov	esi, eax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
.L35:
	mov	eax, DWORD PTR -88[rbp]
	mov	edi, eax
	call	close@PLT
	lea	rax, -32[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	sub	rax, rdx
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	movsd	xmm2, QWORD PTR .LC11[rip]
	movapd	xmm1, xmm0
	divsd	xmm1, xmm2
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -48[rbp]
	sub	rax, rdx
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	addsd	xmm0, xmm1
	mov	rax, QWORD PTR -64[rbp]
	movsd	QWORD PTR 16[rax], xmm0
	nop
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L36
	call	__stack_chk_fail@PLT
.L36:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	pthread_routine, .-pthread_routine
	.section	.rodata
	.align 8
.LC11:
	.long	0
	.long	1093567616
	.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	"55880.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Enter Server Name: \000"
	.align	2
.LC1:
	.ascii	"%s\000"
	.align	2
.LC2:
	.ascii	"Enter Port: \000"
	.align	2
.LC3:
	.ascii	"%d\000"
	.align	2
.LC4:
	.ascii	"Enter Block Size: \000"
	.align	2
.LC5:
	.ascii	"Enter Client Num: \000"
	.align	2
.LC6:
	.ascii	"Enter Request Num: \000"
	.align	2
.LC7:
	.ascii	"[client] socket\000"
	.align	2
.LC8:
	.ascii	"[client] connect\000"
	.align	2
.LC9:
	.ascii	"[client] pthread_create\000"
	.global	__aeabi_dadd
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.align	2
.LC10:
	.ascii	"[client] client_num: %d, block_size: %d, request_nu"
	.ascii	"m: %d, send_size: %d MB, duration: %f s (avg_time: "
	.ascii	"%f s), throughput: %f MB/s (avg_throughput: %f MB/s"
	.ascii	")\012\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 408
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #448
	str	r0, [fp, #-416]
	str	r1, [fp, #-420]
	ldr	r3, .L27
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-272]
	sub	r3, fp, #268
	mov	r2, #252
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-416]
	cmp	r3, #1
	ble	.L2
	ldr	r3, [fp, #-420]
	add	r3, r3, #4
	ldr	r1, [r3]
	sub	r3, fp, #272
	mov	r2, #255
	mov	r0, r3
	bl	strncpy
	b	.L3
.L2:
	ldr	r0, .L27+4
	bl	printf
	sub	r3, fp, #272
	mov	r1, r3
	ldr	r0, .L27+8
	bl	__isoc99_scanf
	str	r0, [fp, #-380]
.L3:
	ldr	r3, [fp, #-416]
	cmp	r3, #2
	ble	.L4
	ldr	r3, [fp, #-420]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	b	.L5
.L4:
	mov	r3, #0
.L5:
	str	r3, [fp, #-408]
	ldr	r3, [fp, #-408]
	cmp	r3, #0
	bne	.L6
	ldr	r0, .L27+12
	bl	printf
	sub	r3, fp, #408
	mov	r1, r3
	ldr	r0, .L27+16
	bl	__isoc99_scanf
	str	r0, [fp, #-376]
.L6:
	ldr	r3, [fp, #-416]
	cmp	r3, #3
	ble	.L7
	ldr	r3, [fp, #-420]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	b	.L8
.L7:
	mov	r3, #0
.L8:
	str	r3, [fp, #-404]
	ldr	r3, [fp, #-404]
	cmp	r3, #0
	bne	.L9
	ldr	r0, .L27+20
	bl	printf
	sub	r3, fp, #404
	mov	r1, r3
	ldr	r0, .L27+16
	bl	__isoc99_scanf
	str	r0, [fp, #-372]
.L9:
	ldr	r3, [fp, #-416]
	cmp	r3, #4
	ble	.L10
	ldr	r3, [fp, #-420]
	add	r3, r3, #16
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	b	.L11
.L10:
	mov	r3, #0
.L11:
	str	r3, [fp, #-400]
	ldr	r3, [fp, #-400]
	cmp	r3, #0
	bne	.L12
	ldr	r0, .L27+24
	bl	printf
	sub	r3, fp, #400
	mov	r1, r3
	ldr	r0, .L27+16
	bl	__isoc99_scanf
	str	r0, [fp, #-368]
.L12:
	ldr	r3, [fp, #-416]
	cmp	r3, #5
	ble	.L13
	ldr	r3, [fp, #-420]
	add	r3, r3, #20
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	b	.L14
.L13:
	mov	r3, #0
.L14:
	str	r3, [fp, #-396]
	ldr	r3, [fp, #-396]
	cmp	r3, #0
	bne	.L15
	ldr	r0, .L27+28
	bl	printf
	sub	r3, fp, #396
	mov	r1, r3
	ldr	r0, .L27+16
	bl	__isoc99_scanf
	str	r0, [fp, #-364]
.L15:
	ldr	r3, [fp, #-400]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-360]
	ldr	r3, [fp, #-400]
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-356]
	mov	r3, #0
	str	r3, [fp, #-392]
	b	.L16
.L19:
	sub	r3, fp, #272
	mov	r0, r3
	bl	gethostbyname
	str	r0, [fp, #-348]
	sub	r3, fp, #288
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #12
	sub	r3, r3, #276
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-408]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #12
	sub	r3, r3, #276
	strh	r2, [r3, #2]	@ movhi
	ldr	r3, [fp, #-348]
	ldr	r3, [r3, #16]
	ldr	r1, [r3]
	ldr	r3, [fp, #-348]
	ldr	r3, [r3, #12]
	mov	r2, r3
	sub	r3, fp, #288
	add	r3, r3, #4
	mov	r0, r3
	bl	memcpy
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-344]
	ldr	r3, [fp, #-344]
	cmn	r3, #1
	bne	.L17
	ldr	r0, .L27+32
	bl	perror
	mov	r0, #1
	bl	exit
.L17:
	sub	r3, fp, #288
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-344]
	bl	connect
	mov	r3, r0
	cmn	r3, #1
	bne	.L18
	ldr	r0, .L27+36
	bl	perror
	mov	r0, #1
	bl	exit
.L18:
	ldr	r2, [fp, #-392]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-356]
	add	r3, r3, r2
	ldr	r2, [fp, #-404]
	str	r2, [r3, #4]
	ldr	r2, [fp, #-392]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-356]
	add	r3, r3, r2
	ldr	r2, [fp, #-396]
	str	r2, [r3, #8]
	ldr	r2, [fp, #-392]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-356]
	add	r3, r3, r2
	ldr	r2, [fp, #-344]
	str	r2, [r3]
	ldr	r2, [fp, #-392]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-356]
	add	r1, r3, r2
	mov	r2, #0
	mov	r3, #0
	str	r2, [r1, #16]
	str	r3, [r1, #20]
	ldr	r3, [fp, #-392]
	add	r3, r3, #1
	str	r3, [fp, #-392]
.L16:
	ldr	r3, [fp, #-400]
	ldr	r2, [fp, #-392]
	cmp	r2, r3
	blt	.L19
	sub	r3, fp, #304
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	mov	r3, #0
	str	r3, [fp, #-388]
	b	.L20
.L22:
	ldr	r3, [fp, #-388]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-360]
	add	r0, r2, r3
	ldr	r2, [fp, #-388]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-356]
	add	r3, r3, r2
	ldr	r2, .L27+40
	mov	r1, #0
	bl	pthread_create
	mov	r3, r0
	cmp	r3, #0
	beq	.L21
	ldr	r0, .L27+44
	bl	perror
	nop
.L21:
	ldr	r3, [fp, #-388]
	add	r3, r3, #1
	str	r3, [fp, #-388]
.L20:
	ldr	r3, [fp, #-400]
	ldr	r2, [fp, #-388]
	cmp	r2, r3
	blt	.L22
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-340]
	str	r3, [fp, #-336]
	mov	r3, #0
	str	r3, [fp, #-384]
	b	.L23
.L24:
	ldr	r3, [fp, #-384]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-360]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r2, [fp, #-384]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-356]
	add	r3, r3, r2
	add	r3, r3, #16
	ldmia	r3, {r2-r3}
	sub	r1, fp, #340
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-340]
	str	r3, [fp, #-336]
	ldr	r3, [fp, #-384]
	add	r3, r3, #1
	str	r3, [fp, #-384]
.L23:
	ldr	r3, [fp, #-400]
	ldr	r2, [fp, #-384]
	cmp	r2, r3
	blt	.L24
	ldr	r3, [fp, #-400]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #340
	ldmia	r1, {r0-r1}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-340]
	str	r3, [fp, #-336]
	sub	r3, fp, #296
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	ldr	r2, [fp, #-292]
	ldr	r3, [fp, #-300]
	sub	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L27+48
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r2, [fp, #-296]
	ldr	r3, [fp, #-304]
	sub	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-332]
	str	r3, [fp, #-328]
	ldr	r3, [fp, #-404]
	ldr	r2, [fp, #-396]
	mul	r3, r2, r3
	ldr	r2, [fp, #-400]
	mul	r3, r2, r3
	sub	r2, r3, #-67108863
	sub	r2, r2, #66060288
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #20
	str	r3, [fp, #-352]
	ldr	r3, [fp, #-352]
	lsl	r3, r3, #1
	mov	r0, r3
	bl	__aeabi_i2d
	sub	r3, fp, #332
	ldmia	r3, {r2-r3}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-324]
	str	r3, [fp, #-320]
	ldr	r3, [fp, #-352]
	lsl	r3, r3, #1
	mov	r0, r3
	bl	__aeabi_i2d
	sub	r3, fp, #340
	ldmia	r3, {r2-r3}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-316]
	str	r3, [fp, #-312]
	ldr	r1, [fp, #-400]
	ldr	r0, [fp, #-404]
	ldr	ip, [fp, #-396]
	sub	r3, fp, #316
	ldmia	r3, {r2-r3}
	str	r2, [sp, #32]
	str	r3, [sp, #36]
	sub	r3, fp, #324
	ldmia	r3, {r2-r3}
	str	r2, [sp, #24]
	str	r3, [sp, #28]
	sub	r3, fp, #340
	ldmia	r3, {r2-r3}
	str	r2, [sp, #16]
	str	r3, [sp, #20]
	sub	r3, fp, #332
	ldmia	r3, {r2-r3}
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	ldr	r3, [fp, #-352]
	str	r3, [sp]
	mov	r3, ip
	mov	r2, r0
	ldr	r0, .L27+52
	bl	printf
	ldr	r0, [fp, #-360]
	bl	free
	ldr	r0, [fp, #-356]
	bl	free
	mov	r3, #0
	ldr	r2, .L27
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L26
	bl	__stack_chk_fail
.L26:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L28:
	.align	2
.L27:
	.word	.LC11
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	pthread_routine
	.word	.LC9
	.word	1093567616
	.word	.LC10
	.size	main, .-main
	.section	.rodata
	.align	2
.LC12:
	.ascii	"[client] bytes_write != block_size, %d, %d\012\000"
	.align	2
.LC13:
	.ascii	"[client] read\000"
	.align	2
.LC14:
	.ascii	"[client] bytes_read != block_size, %d, %d, %d\012\000"
	.align	2
.LC15:
	.ascii	"retry read number: %d\012\000"
	.align	2
.LC16:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	pthread_routine
	.syntax unified
	.arm
	.fpu softvfp
	.type	pthread_routine, %function
pthread_routine:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #72
	str	r0, [fp, #-80]
	ldr	r3, .L40
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #32
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	ldr	r3, [fp, #-80]
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-64]
	ldr	r3, [r3]
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-64]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-64]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-56]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-72]
	mov	r3, #0
	str	r3, [fp, #-68]
.L36:
	ldr	r3, [fp, #-56]
	mov	r2, r3
	ldr	r1, [fp, #-48]
	ldr	r0, [fp, #-60]
	bl	write
	str	r0, [fp, #-44]
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-56]
	cmp	r2, r3
	beq	.L30
	ldr	r2, [fp, #-56]
	ldr	r1, [fp, #-44]
	ldr	r0, .L40+4
	bl	printf
	b	.L31
.L30:
	ldr	r3, [fp, #-56]
	mov	r2, r3
	ldr	r1, [fp, #-48]
	ldr	r0, [fp, #-60]
	bl	read
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	bge	.L32
	ldr	r0, .L40+8
	bl	perror
	b	.L31
.L32:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-56]
	cmp	r2, r3
	bge	.L33
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-48]
	add	r1, r2, r3
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-40]
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r0, [fp, #-60]
	bl	read
	str	r0, [fp, #-36]
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	ldr	r2, [fp, #-56]
	cmp	r2, r3
	beq	.L34
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-36]
	ldr	r1, [fp, #-40]
	ldr	r0, .L40+12
	bl	printf
	b	.L31
.L34:
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	str	r3, [fp, #-68]
.L33:
	ldr	r3, [fp, #-72]
	add	r3, r3, #1
	str	r3, [fp, #-72]
	ldr	r2, [fp, #-72]
	ldr	r3, [fp, #-52]
	cmp	r2, r3
	beq	.L39
	b	.L36
.L39:
	nop
.L31:
	ldr	r3, [fp, #-52]
	ldr	r2, .L40+16
	smull	r1, r2, r3, r2
	asr	r2, r2, #2
	asr	r3, r3, #31
	sub	r3, r2, r3
	ldr	r2, [fp, #-68]
	cmp	r2, r3
	ble	.L37
	ldr	r1, [fp, #-68]
	ldr	r0, .L40+20
	bl	printf
.L37:
	ldr	r0, [fp, #-60]
	bl	close
	sub	r3, fp, #24
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-28]
	sub	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L40+24
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-32]
	sub	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-64]
	str	r2, [r1, #16]
	str	r3, [r1, #20]
	nop
	ldr	r2, .L40
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L38
	bl	__stack_chk_fail
.L38:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L41:
	.align	2
.L40:
	.word	.LC16
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	1717986919
	.word	.LC15
	.word	1093567616
	.size	pthread_routine, .-pthread_routine
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
