	.file	"36781.c"
	.intel_syntax noprefix
	.text
	.globl	Message
	.bss
	.align 32
	.type	Message, @object
	.size	Message, 100
Message:
	.zero	100
	.globl	key
	.align 4
	.type	key, @object
	.size	key, 4
key:
	.zero	4
	.globl	key1
	.align 4
	.type	key1, @object
	.size	key1, 4
key1:
	.zero	4
	.globl	mutex
	.align 32
	.type	mutex, @object
	.size	mutex, 40
mutex:
	.zero	40
	.section	.rodata
	.align 8
.LC0:
	.string	"\nyour Encrypted Message is: %s\n"
	.text
	.globl	client
	.type	client, @function
client:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	lea	rdi, mutex[rip]
	call	pthread_mutex_lock@PLT
	mov	DWORD PTR -4[rbp], 0
	jmp	.L2
.L4:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, Message[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	mov	edx, eax
	mov	eax, DWORD PTR key1[rip]
	add	eax, edx
	mov	ecx, eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, Message[rip]
	mov	BYTE PTR [rax+rdx], cl
	add	DWORD PTR -4[rbp], 1
.L2:
	cmp	DWORD PTR -4[rbp], 99
	jg	.L3
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, Message[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	test	al, al
	jne	.L4
.L3:
	lea	rsi, Message[rip]
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, mutex[rip]
	call	pthread_mutex_unlock@PLT
	mov	edi, 0
	call	pthread_exit@PLT
	.cfi_endproc
.LFE6:
	.size	client, .-client
	.section	.rodata
	.align 8
.LC1:
	.string	"\n Your decrypted Message is : %s \n"
	.text
	.globl	server
	.type	server, @function
server:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	lea	rdi, mutex[rip]
	call	pthread_mutex_lock@PLT
	mov	DWORD PTR -4[rbp], 0
	jmp	.L6
.L8:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, Message[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	mov	edx, eax
	mov	eax, DWORD PTR key1[rip]
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	ecx, eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, Message[rip]
	mov	BYTE PTR [rax+rdx], cl
	add	DWORD PTR -4[rbp], 1
.L6:
	cmp	DWORD PTR -4[rbp], 99
	jg	.L7
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, Message[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	test	al, al
	jne	.L8
.L7:
	lea	rsi, Message[rip]
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, mutex[rip]
	call	pthread_mutex_unlock@PLT
	mov	edi, 0
	call	pthread_exit@PLT
	.cfi_endproc
.LFE7:
	.size	server, .-server
	.section	.rodata
.LC2:
	.string	"\n Please enter your message"
.LC3:
	.string	"\nEnter the key"
.LC4:
	.string	"%d"
.LC5:
	.string	"The key is %d"
	.align 8
.LC6:
	.string	"\n Thanks for using our program "
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	rax, QWORD PTR stdin[rip]
	mov	rdx, rax
	mov	esi, 100
	lea	rdi, Message[rip]
	call	fgets@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rsi, key[rip]
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR key[rip]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, eax
	movq	rax, xmm1
	movq	xmm0, rax
	call	sqrt@PLT
	cvttsd2si	eax, xmm0
	mov	DWORD PTR key1[rip], eax
	mov	eax, DWORD PTR key1[rip]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -16[rbp]
	mov	ecx, 0
	lea	rdx, server[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	lea	rax, -24[rbp]
	mov	ecx, 0
	lea	rdx, client[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pthread_equal@PLT
	mov	edi, eax
	mov	eax, 0
	call	assert@PLT
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"36781.c"
	.text
	.comm	Message,100,4
	.comm	key,4,4
	.comm	key1,4,4
	.comm	mutex,24,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012your Encrypted Message is: %s\012\000"
	.text
	.align	2
	.global	client
	.syntax unified
	.arm
	.fpu softvfp
	.type	client, %function
client:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r0, .L5
	bl	pthread_mutex_lock
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L2
.L4:
	ldr	r2, .L5+4
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, .L5+8
	ldr	r3, [r3]
	and	r3, r3, #255
	add	r3, r2, r3
	and	r1, r3, #255
	ldr	r2, .L5+4
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r3, [fp, #-8]
	cmp	r3, #99
	bgt	.L3
	ldr	r2, .L5+4
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L4
.L3:
	ldr	r1, .L5+4
	ldr	r0, .L5+12
	bl	printf
	ldr	r0, .L5
	bl	pthread_mutex_unlock
	mov	r0, #0
	bl	pthread_exit
.L6:
	.align	2
.L5:
	.word	mutex
	.word	Message
	.word	key1
	.word	.LC0
	.size	client, .-client
	.section	.rodata
	.align	2
.LC1:
	.ascii	"\012 Your decrypted Message is : %s \012\000"
	.text
	.align	2
	.global	server
	.syntax unified
	.arm
	.fpu softvfp
	.type	server, %function
server:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r0, .L11
	bl	pthread_mutex_lock
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L8
.L10:
	ldr	r2, .L11+4
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, .L11+8
	ldr	r3, [r3]
	and	r3, r3, #255
	sub	r3, r2, r3
	and	r1, r3, #255
	ldr	r2, .L11+4
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L8:
	ldr	r3, [fp, #-8]
	cmp	r3, #99
	bgt	.L9
	ldr	r2, .L11+4
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L10
.L9:
	ldr	r1, .L11+4
	ldr	r0, .L11+12
	bl	printf
	ldr	r0, .L11
	bl	pthread_mutex_unlock
	mov	r0, #0
	bl	pthread_exit
.L12:
	.align	2
.L11:
	.word	mutex
	.word	Message
	.word	key1
	.word	.LC1
	.size	server, .-server
	.section	.rodata
	.align	2
.LC2:
	.ascii	"\012 Please enter your message\000"
	.align	2
.LC3:
	.ascii	"\012Enter the key\000"
	.align	2
.LC4:
	.ascii	"%d\000"
	.global	__aeabi_i2d
	.global	__aeabi_d2iz
	.align	2
.LC5:
	.ascii	"The key is %d\000"
	.align	2
.LC6:
	.ascii	"\012 Thanks for using our program \000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L16+4
	bl	puts
	ldr	r3, .L16+8
	ldr	r3, [r3]
	mov	r2, r3
	mov	r1, #100
	ldr	r0, .L16+12
	bl	fgets
	ldr	r0, .L16+16
	bl	puts
	ldr	r1, .L16+20
	ldr	r0, .L16+24
	bl	__isoc99_scanf
	ldr	r3, .L16+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	sqrt
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	ldr	r2, .L16+28
	str	r3, [r2]
	ldr	r3, .L16+28
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L16+32
	bl	printf
	sub	r0, fp, #12
	mov	r3, #0
	ldr	r2, .L16+36
	mov	r1, #0
	bl	pthread_create
	sub	r0, fp, #16
	mov	r3, #0
	ldr	r2, .L16+40
	mov	r1, #0
	bl	pthread_create
	ldr	r3, [fp, #-16]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-12]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	mov	r1, r2
	mov	r0, r3
	bl	pthread_equal
	mov	r3, r0
	mov	r0, r3
	bl	assert
	ldr	r0, .L16+44
	bl	puts
	mov	r3, #0
	ldr	r2, .L16
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC7
	.word	.LC2
	.word	stdin
	.word	Message
	.word	.LC3
	.word	key
	.word	.LC4
	.word	key1
	.word	.LC5
	.word	server
	.word	client
	.word	.LC6
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
