	.file	"107953721.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"127.0.0.1"
.LC1:
	.string	"socket call failed"
.LC2:
	.string	"bind call failed"
.LC3:
	.string	"listen call failed"
.LC4:
	.string	"Listening for Clients:\n"
.LC5:
	.string	"accept call failed"
.LC6:
	.string	"Client: Input %lf\n"
	.align 8
.LC7:
	.string	" Sin: %lf \n Cos: %lf \n Tan: %lf \n Log: %lf \n exp: %lf\n"
	.align 8
.LC8:
	.string	" Sin: %lf \n Cos: %lf \n Tan: %lf \n Log: %lf \n exp: %lf\n\n"
.LC9:
	.string	"Send call failed"
	.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
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 1088
	.cfi_offset 14, -24
	.cfi_offset 13, -32
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	inet_addr@PLT
	mov	DWORD PTR -1108[rbp], eax
	mov	edi, 6789
	call	htons@PLT
	mov	WORD PTR -1110[rbp], ax
	mov	QWORD PTR -1088[rbp], 0
	mov	QWORD PTR -1080[rbp], 0
	mov	WORD PTR -1088[rbp], 2
	movzx	eax, WORD PTR -1110[rbp]
	mov	WORD PTR -1086[rbp], ax
	mov	eax, DWORD PTR -1108[rbp]
	mov	DWORD PTR -1084[rbp], eax
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -1104[rbp], eax
	cmp	DWORD PTR -1104[rbp], -1
	jne	.L2
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	lea	rcx, -1088[rbp]
	mov	eax, DWORD PTR -1104[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	cmp	eax, -1
	jne	.L3
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	eax, DWORD PTR -1104[rbp]
	mov	esi, 5
	mov	edi, eax
	call	listen@PLT
	cmp	eax, -1
	jne	.L4
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	lea	rdi, .LC4[rip]
	call	puts@PLT
.L10:
	mov	eax, DWORD PTR -1104[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -1100[rbp], eax
	cmp	DWORD PTR -1100[rbp], -1
	jne	.L5
	lea	rdi, .LC5[rip]
	call	perror@PLT
	jmp	.L6
.L5:
	call	fork@PLT
	test	eax, eax
	jne	.L7
	jmp	.L8
.L9:
	lea	rax, -1072[rbp]
	mov	rdi, rax
	call	atof@PLT
	movq	rax, xmm0
	mov	QWORD PTR -1096[rbp], rax
	mov	rax, QWORD PTR -1096[rbp]
	movq	xmm0, rax
	lea	rdi, .LC6[rip]
	mov	eax, 1
	call	printf@PLT
	mov	rax, QWORD PTR -1096[rbp]
	movq	xmm0, rax
	call	exp@PLT
	movq	r14, xmm0
	mov	rax, QWORD PTR -1096[rbp]
	movq	xmm0, rax
	call	log@PLT
	movq	r13, xmm0
	mov	rax, QWORD PTR -1096[rbp]
	movq	xmm0, rax
	call	tan@PLT
	movq	r12, xmm0
	mov	rax, QWORD PTR -1096[rbp]
	movq	xmm0, rax
	call	cos@PLT
	movq	rbx, xmm0
	mov	rax, QWORD PTR -1096[rbp]
	movq	xmm0, rax
	call	sin@PLT
	movq	rax, xmm0
	lea	rdx, -1072[rbp]
	movq	xmm4, r14
	movq	xmm3, r13
	movq	xmm2, r12
	movq	xmm1, rbx
	movq	xmm0, rax
	lea	rsi, .LC7[rip]
	mov	rdi, rdx
	mov	eax, 5
	call	sprintf@PLT
	mov	rax, QWORD PTR -1096[rbp]
	movq	xmm0, rax
	call	exp@PLT
	movq	r14, xmm0
	mov	rax, QWORD PTR -1096[rbp]
	movq	xmm0, rax
	call	log@PLT
	movq	r13, xmm0
	mov	rax, QWORD PTR -1096[rbp]
	movq	xmm0, rax
	call	tan@PLT
	movq	r12, xmm0
	mov	rax, QWORD PTR -1096[rbp]
	movq	xmm0, rax
	call	cos@PLT
	movq	rbx, xmm0
	mov	rax, QWORD PTR -1096[rbp]
	movq	xmm0, rax
	call	sin@PLT
	movq	rax, xmm0
	movq	xmm4, r14
	movq	xmm3, r13
	movq	xmm2, r12
	movq	xmm1, rbx
	movq	xmm0, rax
	lea	rdi, .LC8[rip]
	mov	eax, 5
	call	printf@PLT
	lea	rsi, -1072[rbp]
	mov	eax, DWORD PTR -1100[rbp]
	mov	ecx, 0
	mov	edx, 1024
	mov	edi, eax
	call	send@PLT
	cmp	rax, -1
	jne	.L8
	lea	rdi, .LC9[rip]
	call	perror@PLT
	nop
.L8:
	lea	rsi, -1072[rbp]
	mov	eax, DWORD PTR -1100[rbp]
	mov	ecx, 0
	mov	edx, 1024
	mov	edi, eax
	call	recv@PLT
	test	rax, rax
	jg	.L9
	mov	eax, DWORD PTR -1100[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	mov	edi, 0
	call	exit@PLT
.L7:
	mov	eax, DWORD PTR -1100[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
.L6:
	jmp	.L10
	.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	"107953721.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"127.0.0.1\000"
	.align	2
.LC1:
	.ascii	"socket call failed\000"
	.align	2
.LC2:
	.ascii	"bind call failed\000"
	.align	2
.LC3:
	.ascii	"listen call failed\000"
	.align	2
.LC4:
	.ascii	"Listening for Clients:\012\000"
	.align	2
.LC5:
	.ascii	"accept call failed\000"
	.align	2
.LC6:
	.ascii	"Client: Input %lf\012\000"
	.align	2
.LC7:
	.ascii	" Sin: %lf \012 Cos: %lf \012 Tan: %lf \012 Log: %lf"
	.ascii	" \012 exp: %lf\012\000"
	.align	2
.LC8:
	.ascii	" Sin: %lf \012 Cos: %lf \012 Tan: %lf \012 Log: %lf"
	.ascii	" \012 exp: %lf\012\012\000"
	.align	2
.LC9:
	.ascii	"Send call failed\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1080
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #1104
	sub	sp, sp, #8
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	ldr	r0, .L12+4
	bl	inet_addr
	mov	r3, r0
	str	r3, [fp, #-1096]
	sub	r3, fp, #28
	sub	r4, r3, #1056
	sub	r4, r4, #14
	ldr	r0, .L12+8
	bl	htons
	mov	r3, r0
	strh	r3, [r4]	@ movhi
	sub	r3, fp, #1056
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	str	r2, [r3, #12]
	sub	r3, fp, #28
	sub	r3, r3, #1040
	sub	r3, r3, #4
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	sub	r3, fp, #28
	sub	r3, r3, #1040
	sub	r3, r3, #4
	sub	r2, fp, #28
	sub	r2, r2, #1056
	sub	r2, r2, #14
	ldrh	r2, [r2]	@ movhi
	strh	r2, [r3, #2]	@ movhi
	ldr	r3, [fp, #-1096]
	str	r3, [fp, #-1068]
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-1092]
	ldr	r3, [fp, #-1092]
	cmn	r3, #1
	bne	.L2
	ldr	r0, .L12+12
	bl	perror
	mov	r0, #1
	bl	exit
.L2:
	sub	r3, fp, #1056
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-1092]
	bl	bind
	mov	r3, r0
	cmn	r3, #1
	bne	.L3
	ldr	r0, .L12+16
	bl	perror
	mov	r0, #1
	bl	exit
.L3:
	mov	r1, #5
	ldr	r0, [fp, #-1092]
	bl	listen
	mov	r3, r0
	cmn	r3, #1
	bne	.L4
	ldr	r0, .L12+20
	bl	perror
	mov	r0, #1
	bl	exit
.L4:
	ldr	r0, .L12+24
	bl	puts
.L10:
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-1092]
	bl	accept
	str	r0, [fp, #-1088]
	ldr	r3, [fp, #-1088]
	cmn	r3, #1
	bne	.L5
	ldr	r0, .L12+28
	bl	perror
	b	.L6
.L5:
	bl	fork
	mov	r3, r0
	cmp	r3, #0
	bne	.L7
	b	.L8
.L9:
	sub	r3, fp, #1040
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	atof
	str	r0, [fp, #-1084]
	str	r1, [fp, #-1080]
	ldr	r2, [fp, #-1084]
	ldr	r3, [fp, #-1080]
	ldr	r0, .L12+32
	bl	printf
	ldr	r0, [fp, #-1084]
	ldr	r1, [fp, #-1080]
	bl	sin
	str	r0, [fp, #-1108]
	str	r1, [fp, #-1104]
	ldr	r0, [fp, #-1084]
	ldr	r1, [fp, #-1080]
	bl	cos
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-1084]
	ldr	r1, [fp, #-1080]
	bl	tan
	mov	r6, r0
	mov	r7, r1
	ldr	r0, [fp, #-1084]
	ldr	r1, [fp, #-1080]
	bl	log
	mov	r8, r0
	mov	r9, r1
	ldr	r0, [fp, #-1084]
	ldr	r1, [fp, #-1080]
	bl	exp
	mov	r2, r0
	mov	r3, r1
	sub	r0, fp, #1040
	sub	r0, r0, #12
	sub	r0, r0, #4
	str	r2, [sp, #24]
	str	r3, [sp, #28]
	str	r8, [sp, #16]
	str	r9, [sp, #20]
	str	r6, [sp, #8]
	str	r7, [sp, #12]
	stm	sp, {r4-r5}
	ldr	r2, [fp, #-1108]
	ldr	r3, [fp, #-1104]
	ldr	r1, .L12+36
	bl	sprintf
	ldr	r0, [fp, #-1084]
	ldr	r1, [fp, #-1080]
	bl	sin
	str	r0, [fp, #-1108]
	str	r1, [fp, #-1104]
	ldr	r0, [fp, #-1084]
	ldr	r1, [fp, #-1080]
	bl	cos
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-1084]
	ldr	r1, [fp, #-1080]
	bl	tan
	mov	r6, r0
	mov	r7, r1
	ldr	r0, [fp, #-1084]
	ldr	r1, [fp, #-1080]
	bl	log
	mov	r8, r0
	mov	r9, r1
	ldr	r0, [fp, #-1084]
	ldr	r1, [fp, #-1080]
	bl	exp
	mov	r2, r0
	mov	r3, r1
	str	r2, [sp, #24]
	str	r3, [sp, #28]
	str	r8, [sp, #16]
	str	r9, [sp, #20]
	str	r6, [sp, #8]
	str	r7, [sp, #12]
	stm	sp, {r4-r5}
	ldr	r2, [fp, #-1108]
	ldr	r3, [fp, #-1104]
	ldr	r0, .L12+40
	bl	printf
	sub	r1, fp, #1040
	sub	r1, r1, #12
	sub	r1, r1, #4
	mov	r3, #0
	mov	r2, #1024
	ldr	r0, [fp, #-1088]
	bl	send
	mov	r3, r0
	cmn	r3, #1
	bne	.L8
	ldr	r0, .L12+44
	bl	perror
	nop
.L8:
	sub	r1, fp, #1040
	sub	r1, r1, #12
	sub	r1, r1, #4
	mov	r3, #0
	mov	r2, #1024
	ldr	r0, [fp, #-1088]
	bl	recv
	mov	r3, r0
	cmp	r3, #0
	bgt	.L9
	ldr	r0, [fp, #-1088]
	bl	close
	mov	r0, #0
	bl	exit
.L7:
	ldr	r0, [fp, #-1088]
	bl	close
.L6:
	b	.L10
.L13:
	.align	2
.L12:
	.word	.LC10
	.word	.LC0
	.word	6789
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
