	.file	"450760.c"
	.intel_syntax noprefix
	.text
	.globl	mq
	.bss
	.align 32
	.type	mq, @object
	.size	mq, 208
mq:
	.zero	208
	.section	.rodata
.LC0:
	.string	"Server not active"
.LC1:
	.string	"Client ready :"
.LC2:
	.string	"From Server: \"%s\"\n"
.LC3:
	.string	"Server Disconnected"
	.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, 16
	mov	DWORD PTR -12[rbp], 2013
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, 420
	mov	edi, eax
	call	msgget@PLT
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], -1
	jne	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	lea	rdi, .LC1[rip]
	call	puts@PLT
	jmp	.L3
.L5:
	lea	rsi, mq[rip+8]
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdin[rip]
	mov	rdx, rax
	mov	esi, 200
	lea	rdi, mq[rip+8]
	call	fgets@PLT
	lea	rdi, mq[rip+8]
	call	strlen@PLT
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 1
	cdqe
	lea	rdx, mq[rip+8]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 10
	jne	.L4
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 1
	cdqe
	lea	rdx, mq[rip+8]
	mov	BYTE PTR [rax+rdx], 0
.L4:
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 1
	movsx	rdx, eax
	mov	eax, DWORD PTR -8[rbp]
	mov	ecx, 0
	lea	rsi, mq[rip]
	mov	edi, eax
	call	msgsnd@PLT
.L3:
	mov	eax, DWORD PTR -8[rbp]
	mov	r8d, 0
	mov	ecx, 0
	mov	edx, 200
	lea	rsi, mq[rip]
	mov	edi, eax
	call	msgrcv@PLT
	cmp	rax, -1
	jne	.L5
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.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	"450760.c"
	.text
	.comm	mq,204,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Server not active\000"
	.align	2
.LC1:
	.ascii	"Client ready :\000"
	.align	2
.LC2:
	.ascii	"From Server: \"%s\"\012\000"
	.align	2
.LC3:
	.ascii	"Server Disconnected\000"
	.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, #24
	ldr	r3, .L7
	str	r3, [fp, #-16]
	mov	r1, #420
	ldr	r0, [fp, #-16]
	bl	msgget
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L2
	ldr	r0, .L7+4
	bl	puts
	mov	r0, #1
	bl	exit
.L2:
	ldr	r0, .L7+8
	bl	puts
	b	.L3
.L5:
	ldr	r1, .L7+12
	ldr	r0, .L7+16
	bl	printf
	ldr	r3, .L7+20
	ldr	r3, [r3]
	mov	r2, r3
	mov	r1, #200
	ldr	r0, .L7+12
	bl	fgets
	ldr	r0, .L7+12
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	ldr	r2, .L7+24
	add	r3, r2, r3
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L4
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	ldr	r2, .L7+24
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #4]
.L4:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	mov	r2, r3
	mov	r3, #0
	ldr	r1, .L7+24
	ldr	r0, [fp, #-12]
	bl	msgsnd
.L3:
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #200
	ldr	r1, .L7+24
	ldr	r0, [fp, #-12]
	bl	msgrcv
	mov	r3, r0
	cmn	r3, #1
	bne	.L5
	ldr	r0, .L7+28
	bl	puts
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	2013
	.word	.LC0
	.word	.LC1
	.word	mq+4
	.word	.LC2
	.word	stdin
	.word	mq
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
