	.file	"305917.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Please give host name and port number"
.LC1:
	.string	"socket"
.LC2:
	.string	"gethostbyname"
.LC3:
	.string	"connect"
.LC4:
	.string	"Connecting to %s port %d\n"
	.align 8
.LC5:
	.string	"Client failed to write on socket"
.LC6:
	.string	"read"
.LC7:
	.string	"#"
.LC8:
	.string	"Time = %s seconds |"
.LC9:
	.string	" Pages = %s |"
.LC10:
	.string	"!"
.LC11:
	.string	" Bytes = %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, 400
	mov	DWORD PTR -388[rbp], edi
	mov	QWORD PTR -400[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -336[rbp]
	mov	QWORD PTR -360[rbp], rax
	cmp	DWORD PTR -388[rbp], 3
	je	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -368[rbp], eax
	cmp	DWORD PTR -368[rbp], 0
	jns	.L3
	lea	rdi, .LC1[rip]
	call	perror_exit
.L3:
	mov	rax, QWORD PTR -400[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	gethostbyname@PLT
	mov	QWORD PTR -352[rbp], rax
	cmp	QWORD PTR -352[rbp], 0
	jne	.L4
	lea	rdi, .LC2[rip]
	call	herror@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	mov	rax, QWORD PTR -400[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -364[rbp], eax
	mov	WORD PTR -336[rbp], 2
	mov	rax, QWORD PTR -352[rbp]
	mov	eax, DWORD PTR 20[rax]
	movsx	rdx, eax
	mov	rax, QWORD PTR -352[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rax, QWORD PTR [rax]
	lea	rcx, -336[rbp]
	add	rcx, 4
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	mov	eax, DWORD PTR -364[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -334[rbp], ax
	mov	rcx, QWORD PTR -360[rbp]
	mov	eax, DWORD PTR -368[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	test	eax, eax
	jns	.L5
	lea	rdi, .LC3[rip]
	call	perror_exit
.L5:
	mov	rax, QWORD PTR -400[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR -364[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -320[rbp]
	mov	DWORD PTR [rax], 1413567571
	mov	WORD PTR 4[rax], 83
	lea	rax, -320[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rcx, -320[rbp]
	mov	eax, DWORD PTR -368[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	test	rax, rax
	jns	.L6
	lea	rdi, .LC5[rip]
	call	perror@PLT
.L6:
	mov	DWORD PTR -372[rbp], 0
.L10:
	mov	eax, DWORD PTR -372[rbp]
	cdqe
	lea	rdx, -320[rbp]
	lea	rcx, [rdx+rax]
	mov	eax, DWORD PTR -368[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	test	rax, rax
	jns	.L7
	lea	rdi, .LC6[rip]
	call	perror_exit
.L7:
	mov	eax, DWORD PTR -372[rbp]
	cdqe
	movzx	eax, BYTE PTR -320[rbp+rax]
	cmp	al, 33
	jne	.L8
	mov	eax, DWORD PTR -372[rbp]
	add	eax, 1
	cdqe
	mov	BYTE PTR -320[rbp+rax], 0
	nop
	lea	rax, -320[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -344[rbp], rax
	mov	rax, QWORD PTR -344[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, .LC7[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -344[rbp], rax
	mov	rax, QWORD PTR -344[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, .LC10[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -344[rbp], rax
	mov	rax, QWORD PTR -344[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -368[rbp]
	mov	edi, eax
	call	close@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L11
	jmp	.L12
.L8:
	add	DWORD PTR -372[rbp], 1
	jmp	.L10
.L12:
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	perror_exit
	.type	perror_exit, @function
perror_exit:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE7:
	.size	perror_exit, .-perror_exit
	.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	"305917.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Please give host name and port number\000"
	.align	2
.LC1:
	.ascii	"socket\000"
	.align	2
.LC2:
	.ascii	"gethostbyname\000"
	.align	2
.LC3:
	.ascii	"connect\000"
	.align	2
.LC4:
	.ascii	"Connecting to %s port %d\012\000"
	.align	2
.LC5:
	.ascii	"STATS\000"
	.align	2
.LC6:
	.ascii	"Client failed to write on socket\000"
	.align	2
.LC7:
	.ascii	"read\000"
	.align	2
.LC8:
	.ascii	"#\000"
	.align	2
.LC9:
	.ascii	"Time = %s seconds |\000"
	.align	2
.LC10:
	.ascii	" Pages = %s |\000"
	.align	2
.LC11:
	.ascii	"!\000"
	.align	2
.LC12:
	.ascii	" Bytes = %s\012\000"
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 352
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #352
	str	r0, [fp, #-352]
	str	r1, [fp, #-356]
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #324
	str	r3, [fp, #-344]
	ldr	r3, [fp, #-352]
	cmp	r3, #3
	beq	.L2
	ldr	r0, .L13+4
	bl	puts
	mov	r0, #1
	bl	exit
.L2:
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-340]
	ldr	r3, [fp, #-340]
	cmp	r3, #0
	bge	.L3
	ldr	r0, .L13+8
	bl	perror_exit
.L3:
	ldr	r3, [fp, #-356]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	gethostbyname
	str	r0, [fp, #-336]
	ldr	r3, [fp, #-336]
	cmp	r3, #0
	bne	.L4
	ldr	r0, .L13+12
	bl	herror
	mov	r0, #1
	bl	exit
.L4:
	ldr	r3, [fp, #-356]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-332]
	sub	r3, fp, #4
	sub	r3, r3, #320
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-336]
	ldr	r3, [r3, #16]
	ldr	r1, [r3]
	ldr	r3, [fp, #-336]
	ldr	r3, [r3, #12]
	mov	r2, r3
	sub	r3, fp, #324
	add	r3, r3, #4
	mov	r0, r3
	bl	memcpy
	ldr	r3, [fp, #-332]
	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, #320
	strh	r2, [r3, #2]	@ movhi
	mov	r2, #16
	ldr	r1, [fp, #-344]
	ldr	r0, [fp, #-340]
	bl	connect
	mov	r3, r0
	cmp	r3, #0
	bge	.L5
	ldr	r0, .L13+16
	bl	perror_exit
.L5:
	ldr	r3, [fp, #-356]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r2, [fp, #-332]
	mov	r1, r3
	ldr	r0, .L13+20
	bl	printf
	sub	r3, fp, #308
	ldr	r2, .L13+24
	ldm	r2, {r0, r1}
	str	r0, [r3]
	add	r3, r3, #4
	strh	r1, [r3]	@ movhi
	sub	r3, fp, #308
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #308
	mov	r1, r3
	ldr	r0, [fp, #-340]
	bl	write
	mov	r3, r0
	cmp	r3, #0
	bge	.L6
	ldr	r0, .L13+28
	bl	perror
.L6:
	mov	r3, #0
	str	r3, [fp, #-348]
.L10:
	ldr	r3, [fp, #-348]
	sub	r2, fp, #308
	add	r3, r2, r3
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-340]
	bl	read
	mov	r3, r0
	cmp	r3, #0
	bge	.L7
	ldr	r0, .L13+32
	bl	perror_exit
.L7:
	sub	r2, fp, #308
	ldr	r3, [fp, #-348]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #33
	bne	.L8
	ldr	r3, [fp, #-348]
	add	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-304]
	nop
	sub	r3, fp, #308
	ldr	r1, .L13+36
	mov	r0, r3
	bl	strtok
	str	r0, [fp, #-328]
	ldr	r1, [fp, #-328]
	ldr	r0, .L13+40
	bl	printf
	ldr	r1, .L13+36
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-328]
	ldr	r1, [fp, #-328]
	ldr	r0, .L13+44
	bl	printf
	ldr	r1, .L13+48
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-328]
	ldr	r1, [fp, #-328]
	ldr	r0, .L13+52
	bl	printf
	ldr	r0, [fp, #-340]
	bl	close
	nop
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L11
	b	.L12
.L8:
	ldr	r3, [fp, #-348]
	add	r3, r3, #1
	str	r3, [fp, #-348]
	b	.L10
.L12:
	bl	__stack_chk_fail
.L11:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC13
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.size	main, .-main
	.align	2
	.global	perror_exit
	.syntax unified
	.arm
	.fpu softvfp
	.type	perror_exit, %function
perror_exit:
	@ 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
	mov	r0, #1
	bl	exit
	.size	perror_exit, .-perror_exit
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
