	.file	"302190.c"
	.intel_syntax noprefix
	.text
	.globl	error
	.type	error, @function
error:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	perror@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	error, .-error
	.section	.rodata
.LC0:
	.string	"usage %s hostname port\n"
.LC1:
	.string	"ERROR opening socket"
.LC2:
	.string	"ERROR, no such host\n"
.LC3:
	.string	"Trying to connect..."
.LC4:
	.string	"ERROR connecting"
.LC5:
	.string	"Connected."
	.align 8
.LC6:
	.string	"\n~~  MENU  ~~ \n Choose one of the following: "
.LC7:
	.string	"\t 1. Average price of array Y"
.LC8:
	.string	"\t 2. Min and Max of array Y"
.LC9:
	.string	"\t 3. Product of a*Y"
.LC10:
	.string	"\t 9. EXIT \n >"
.LC11:
	.string	" %d"
	.align 8
.LC12:
	.string	"Give the length of the array, n \n > "
.LC13:
	.string	"Give Y[%d] : \t"
	.align 8
.LC14:
	.string	"Average for array y is : \t %.2f \n"
	.align 8
.LC15:
	.string	"\t Min for array y is : %d \t Max for array y is : %d"
.LC16:
	.string	"Give float, a \n >"
.LC17:
	.string	"%f"
.LC18:
	.string	"\t Product of a*Y : "
.LC19:
	.string	"\t (a*y)[i]: %.2f"
.LC20:
	.string	"Wrong input!"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	add	rsp, -128
	mov	DWORD PTR -116[rbp], edi
	mov	QWORD PTR -128[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -116[rbp], 2
	jg	.L3
	mov	rax, QWORD PTR -128[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 0
	call	exit@PLT
.L3:
	mov	rax, QWORD PTR -128[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -76[rbp], eax
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -72[rbp], eax
	cmp	DWORD PTR -72[rbp], 0
	jns	.L4
	lea	rdi, .LC1[rip]
	call	error
.L4:
	mov	rax, QWORD PTR -128[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	gethostbyname@PLT
	mov	QWORD PTR -64[rbp], rax
	cmp	QWORD PTR -64[rbp], 0
	jne	.L5
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 20
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	edi, 0
	call	exit@PLT
.L5:
	lea	rax, -32[rbp]
	mov	QWORD PTR [rax], 0
	mov	QWORD PTR 8[rax], 0
	mov	WORD PTR -32[rbp], 2
	mov	rax, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR 20[rax]
	movsx	rdx, eax
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rax, QWORD PTR [rax]
	lea	rcx, -32[rbp]
	add	rcx, 4
	mov	rsi, rax
	mov	rdi, rcx
	call	memmove@PLT
	mov	eax, DWORD PTR -76[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -30[rbp], ax
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rcx, -32[rbp]
	mov	eax, DWORD PTR -72[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	test	eax, eax
	jns	.L6
	lea	rdi, .LC4[rip]
	call	error
.L6:
	lea	rdi, .LC5[rip]
	call	puts@PLT
.L17:
	lea	rdi, .LC6[rip]
	call	puts@PLT
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -100[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rsi, -100[rbp]
	mov	eax, DWORD PTR -72[rbp]
	mov	ecx, 0
	mov	edx, 4
	mov	edi, eax
	call	send@PLT
	mov	eax, DWORD PTR -100[rbp]
	cmp	eax, 9
	jne	.L7
	mov	edi, 0
	call	exit@PLT
.L7:
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -96[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rsi, -96[rbp]
	mov	eax, DWORD PTR -72[rbp]
	mov	ecx, 0
	mov	edx, 4
	mov	edi, eax
	call	send@PLT
	mov	eax, DWORD PTR -96[rbp]
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -56[rbp], rax
	mov	DWORD PTR -84[rbp], 0
	jmp	.L8
.L9:
	mov	eax, DWORD PTR -84[rbp]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -84[rbp], 1
.L8:
	mov	eax, DWORD PTR -96[rbp]
	cmp	DWORD PTR -84[rbp], eax
	jl	.L9
	mov	eax, DWORD PTR -96[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rsi, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR -72[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	mov	eax, DWORD PTR -100[rbp]
	cmp	eax, 3
	je	.L10
	cmp	eax, 3
	jg	.L11
	cmp	eax, 1
	je	.L12
	cmp	eax, 2
	je	.L13
	jmp	.L11
.L12:
	lea	rsi, -88[rbp]
	mov	eax, DWORD PTR -72[rbp]
	mov	ecx, 0
	mov	edx, 4
	mov	edi, eax
	call	recv@PLT
	mov	DWORD PTR -68[rbp], eax
	movss	xmm0, DWORD PTR -88[rbp]
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, xmm0
	movq	rax, xmm1
	movq	xmm0, rax
	lea	rdi, .LC14[rip]
	mov	eax, 1
	call	printf@PLT
	jmp	.L14
.L13:
	lea	rsi, -40[rbp]
	mov	eax, DWORD PTR -72[rbp]
	mov	ecx, 0
	mov	edx, 8
	mov	edi, eax
	call	recv@PLT
	mov	DWORD PTR -68[rbp], eax
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -40[rbp]
	mov	esi, eax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L14
.L10:
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -92[rbp]
	mov	rsi, rax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rsi, -92[rbp]
	mov	eax, DWORD PTR -72[rbp]
	mov	ecx, 0
	mov	edx, 4
	mov	edi, eax
	call	send@PLT
	mov	eax, DWORD PTR -96[rbp]
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -48[rbp], rax
	mov	eax, DWORD PTR -96[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rsi, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR -72[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	recv@PLT
	mov	DWORD PTR -68[rbp], eax
	lea	rdi, .LC18[rip]
	call	puts@PLT
	mov	DWORD PTR -80[rbp], 0
	jmp	.L15
.L16:
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, xmm0
	movq	rax, xmm2
	movq	xmm0, rax
	lea	rdi, .LC19[rip]
	mov	eax, 1
	call	printf@PLT
	add	DWORD PTR -80[rbp], 1
.L15:
	mov	eax, DWORD PTR -96[rbp]
	cmp	DWORD PTR -80[rbp], eax
	jl	.L16
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	free@PLT
	jmp	.L14
.L11:
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	nop
.L14:
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	free@PLT
	jmp	.L17
	.cfi_endproc
.LFE7:
	.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	"302190.c"
	.text
	.align	2
	.global	error
	.syntax unified
	.arm
	.fpu softvfp
	.type	error, %function
error:
	@ 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, #0
	bl	exit
	.size	error, .-error
	.section	.rodata
	.align	2
.LC0:
	.ascii	"usage %s hostname port\012\000"
	.align	2
.LC1:
	.ascii	"ERROR opening socket\000"
	.align	2
.LC2:
	.ascii	"ERROR, no such host\012\000"
	.align	2
.LC3:
	.ascii	"Trying to connect...\000"
	.align	2
.LC4:
	.ascii	"ERROR connecting\000"
	.align	2
.LC5:
	.ascii	"Connected.\000"
	.align	2
.LC6:
	.ascii	"\012~~  MENU  ~~ \012 Choose one of the following: "
	.ascii	"\000"
	.align	2
.LC7:
	.ascii	"\011 1. Average price of array Y\000"
	.align	2
.LC8:
	.ascii	"\011 2. Min and Max of array Y\000"
	.align	2
.LC9:
	.ascii	"\011 3. Product of a*Y\000"
	.align	2
.LC10:
	.ascii	"\011 9. EXIT \012 >\000"
	.align	2
.LC11:
	.ascii	" %d\000"
	.align	2
.LC12:
	.ascii	"Give the length of the array, n \012 > \000"
	.align	2
.LC13:
	.ascii	"Give Y[%d] : \011\000"
	.global	__aeabi_f2d
	.align	2
.LC14:
	.ascii	"Average for array y is : \011 %.2f \012\000"
	.align	2
.LC15:
	.ascii	"\011 Min for array y is : %d \011 Max for array y i"
	.ascii	"s : %d\000"
	.align	2
.LC16:
	.ascii	"Give float, a \012 >\000"
	.align	2
.LC17:
	.ascii	"%f\000"
	.align	2
.LC18:
	.ascii	"\011 Product of a*Y : \000"
	.align	2
.LC19:
	.ascii	"\011 (a*y)[i]: %.2f\000"
	.align	2
.LC20:
	.ascii	"Wrong input!\000"
	.align	2
.LC21:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 88
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #88
	str	r0, [fp, #-88]
	str	r1, [fp, #-92]
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-88]
	cmp	r3, #2
	bgt	.L3
	ldr	r3, .L19+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-92]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L19+8
	bl	fprintf
	mov	r0, #0
	bl	exit
.L3:
	ldr	r3, [fp, #-92]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-56]
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	bge	.L4
	ldr	r0, .L19+12
	bl	error
.L4:
	ldr	r3, [fp, #-92]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	gethostbyname
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bne	.L5
	ldr	r3, .L19+4
	ldr	r3, [r3]
	mov	r2, #20
	mov	r1, #1
	ldr	r0, .L19+16
	bl	fwrite
	mov	r0, #0
	bl	exit
.L5:
	sub	r3, fp, #24
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2]
	str	r3, [r2, #4]
	str	r3, [r2, #8]
	str	r3, [r2, #12]
	mov	r3, #2
	strh	r3, [fp, #-24]	@ movhi
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #16]
	ldr	r1, [r3]
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #12]
	mov	r2, r3
	sub	r3, fp, #24
	add	r3, r3, #4
	mov	r0, r3
	bl	memmove
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-22]	@ movhi
	ldr	r0, .L19+20
	bl	puts
	sub	r3, fp, #24
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-52]
	bl	connect
	mov	r3, r0
	cmp	r3, #0
	bge	.L6
	ldr	r0, .L19+24
	bl	error
.L6:
	ldr	r0, .L19+28
	bl	puts
.L17:
	ldr	r0, .L19+32
	bl	puts
	ldr	r0, .L19+36
	bl	printf
	ldr	r0, .L19+40
	bl	printf
	ldr	r0, .L19+44
	bl	printf
	ldr	r0, .L19+48
	bl	printf
	sub	r3, fp, #80
	mov	r1, r3
	ldr	r0, .L19+52
	bl	__isoc99_scanf
	sub	r1, fp, #80
	mov	r3, #0
	mov	r2, #4
	ldr	r0, [fp, #-52]
	bl	send
	ldr	r3, [fp, #-80]
	cmp	r3, #9
	bne	.L7
	mov	r0, #0
	bl	exit
.L7:
	ldr	r0, .L19+56
	bl	printf
	sub	r3, fp, #76
	mov	r1, r3
	ldr	r0, .L19+52
	bl	__isoc99_scanf
	sub	r1, fp, #76
	mov	r3, #0
	mov	r2, #4
	ldr	r0, [fp, #-52]
	bl	send
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-64]
	b	.L8
.L9:
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L19+60
	bl	printf
	ldr	r3, [fp, #-64]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L19+52
	bl	__isoc99_scanf
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L8:
	ldr	r3, [fp, #-76]
	ldr	r2, [fp, #-64]
	cmp	r2, r3
	blt	.L9
	ldr	r3, [fp, #-76]
	lsl	r2, r3, #2
	mov	r3, #0
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-52]
	bl	send
	ldr	r3, [fp, #-80]
	cmp	r3, #3
	beq	.L10
	cmp	r3, #3
	bgt	.L11
	cmp	r3, #1
	beq	.L12
	cmp	r3, #2
	beq	.L13
	b	.L11
.L12:
	sub	r1, fp, #68
	mov	r3, #0
	mov	r2, #4
	ldr	r0, [fp, #-52]
	bl	recv
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-68]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L19+64
	bl	printf
	b	.L14
.L13:
	sub	r1, fp, #32
	mov	r3, #0
	mov	r2, #8
	ldr	r0, [fp, #-52]
	bl	recv
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-28]
	mov	r1, r3
	ldr	r0, .L19+68
	bl	printf
	b	.L14
.L10:
	ldr	r0, .L19+72
	bl	printf
	sub	r3, fp, #72
	mov	r1, r3
	ldr	r0, .L19+76
	bl	__isoc99_scanf
	sub	r1, fp, #72
	mov	r3, #0
	mov	r2, #4
	ldr	r0, [fp, #-52]
	bl	send
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-76]
	lsl	r2, r3, #2
	mov	r3, #0
	ldr	r1, [fp, #-40]
	ldr	r0, [fp, #-52]
	bl	recv
	str	r0, [fp, #-36]
	ldr	r0, .L19+80
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L15
.L16:
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L19+84
	bl	printf
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L15:
	ldr	r3, [fp, #-76]
	ldr	r2, [fp, #-60]
	cmp	r2, r3
	blt	.L16
	ldr	r0, [fp, #-40]
	bl	free
	b	.L14
.L11:
	ldr	r0, .L19+88
	bl	printf
	nop
.L14:
	ldr	r0, [fp, #-44]
	bl	free
	b	.L17
.L20:
	.align	2
.L19:
	.word	.LC21
	.word	stderr
	.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
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
