	.file	"151893.c"
	.intel_syntax noprefix
	.text
	.globl	id_reda
	.bss
	.align 4
	.type	id_reda, @object
	.size	id_reda, 4
id_reda:
	.zero	4
	.text
	.globl	zavrsi
	.type	zavrsi, @function
zavrsi:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edi, 5
	call	sleep@PLT
	mov	eax, DWORD PTR id_reda[rip]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	msgctl@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	zavrsi, .-zavrsi
	.globl	signal_handler
	.type	signal_handler, @function
signal_handler:
.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, 64
	mov	DWORD PTR -52[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -48[rbp], 1
	lea	rax, -48[rbp]
	add	rax, 8
	mov	DWORD PTR [rax], 1245794891
	mov	BYTE PTR 4[rax], 0
	mov	eax, DWORD PTR id_reda[rip]
	lea	rsi, -48[rbp]
	mov	ecx, 0
	mov	edx, 32
	mov	edi, eax
	call	msgsnd@PLT
	mov	eax, 0
	call	zavrsi
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	signal_handler, .-signal_handler
	.section	.rodata
.LC0:
	.string	"./server.c"
.LC1:
	.string	"%d"
.LC2:
	.string	"Unesi novu poruku:"
.LC3:
	.string	"Izmenjena poruka je: %s\n"
.LC4:
	.string	"KRAJ"
	.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, 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	esi, 34
	lea	rdi, .LC0[rip]
	call	ftok@PLT
	mov	DWORD PTR -68[rbp], eax
	mov	eax, DWORD PTR -68[rbp]
	mov	esi, 950
	mov	edi, eax
	call	msgget@PLT
	mov	DWORD PTR id_reda[rip], eax
	lea	rax, -76[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	getc@PLT
	mov	DWORD PTR -72[rbp], 0
	jmp	.L5
.L6:
	mov	eax, DWORD PTR id_reda[rip]
	lea	rsi, -64[rbp]
	mov	r8d, 0
	mov	ecx, 1
	mov	edx, 16
	mov	edi, eax
	call	msgrcv@PLT
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	mov	QWORD PTR -64[rbp], rax
	mov	eax, DWORD PTR -72[rbp]
	add	eax, 1
	mov	DWORD PTR -56[rbp], eax
	mov	eax, DWORD PTR id_reda[rip]
	lea	rsi, -64[rbp]
	mov	ecx, 0
	mov	edx, 16
	mov	edi, eax
	call	msgsnd@PLT
	add	DWORD PTR -72[rbp], 1
.L5:
	mov	eax, DWORD PTR -76[rbp]
	cmp	DWORD PTR -72[rbp], eax
	jl	.L6
	lea	rsi, signal_handler[rip]
	mov	edi, 2
	call	signal@PLT
.L8:
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	rax, QWORD PTR stdin[rip]
	lea	rdx, -48[rbp]
	lea	rcx, 8[rdx]
	mov	rdx, rax
	mov	esi, 20
	mov	rdi, rcx
	call	fgets@PLT
	lea	rax, -48[rbp]
	add	rax, 8
	mov	rdi, rax
	call	strlen@PLT
	sub	rax, 1
	mov	BYTE PTR -40[rbp+rax], 0
	mov	QWORD PTR -48[rbp], 1
	mov	eax, DWORD PTR id_reda[rip]
	lea	rsi, -48[rbp]
	mov	ecx, 0
	mov	edx, 32
	mov	edi, eax
	call	msgsnd@PLT
	mov	eax, DWORD PTR -76[rbp]
	add	eax, 1
	movsx	rdx, eax
	mov	eax, DWORD PTR id_reda[rip]
	lea	rsi, -48[rbp]
	mov	r8d, 0
	mov	rcx, rdx
	mov	edx, 32
	mov	edi, eax
	call	msgrcv@PLT
	lea	rax, -48[rbp]
	add	rax, 8
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -48[rbp]
	add	rax, 8
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L8
	mov	eax, 0
	call	zavrsi
	jmp	.L8
	.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	"151893.c"
	.text
	.comm	id_reda,4,4
	.align	2
	.global	zavrsi
	.syntax unified
	.arm
	.fpu softvfp
	.type	zavrsi, %function
zavrsi:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r0, #5
	bl	sleep
	ldr	r3, .L2
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	msgctl
	mov	r0, #0
	bl	exit
.L3:
	.align	2
.L2:
	.word	id_reda
	.size	zavrsi, .-zavrsi
	.section	.rodata
	.align	2
.LC0:
	.ascii	"KRAJ\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	signal_handler
	.syntax unified
	.arm
	.fpu softvfp
	.type	signal_handler, %function
signal_handler:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	ldr	r3, .L6
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-32]
	sub	r3, fp, #32
	add	r3, r3, #4
	ldr	r2, .L6+4
	ldm	r2, {r0, r1}
	str	r0, [r3]
	add	r3, r3, #4
	strb	r1, [r3]
	ldr	r3, .L6+8
	ldr	r0, [r3]
	sub	r1, fp, #32
	mov	r3, #0
	mov	r2, #24
	bl	msgsnd
	bl	zavrsi
	nop
	ldr	r3, .L6
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L5
	bl	__stack_chk_fail
.L5:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC1
	.word	.LC0
	.word	id_reda
	.size	signal_handler, .-signal_handler
	.section	.rodata
	.align	2
.LC2:
	.ascii	"./server.c\000"
	.align	2
.LC3:
	.ascii	"%d\000"
	.align	2
.LC4:
	.ascii	"Unesi novu poruku:\000"
	.align	2
.LC5:
	.ascii	"Izmenjena poruka je: %s\012\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r1, #34
	ldr	r0, .L14+4
	bl	ftok
	str	r0, [fp, #-44]
	ldr	r1, .L14+8
	ldr	r0, [fp, #-44]
	bl	msgget
	mov	r3, r0
	ldr	r2, .L14+12
	str	r3, [r2]
	sub	r3, fp, #52
	mov	r1, r3
	ldr	r0, .L14+16
	bl	__isoc99_scanf
	ldr	r3, .L14+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	getc
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L9
.L10:
	ldr	r3, .L14+12
	ldr	r0, [r3]
	sub	r1, fp, #40
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #1
	mov	r2, #8
	bl	msgrcv
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-36]
	ldr	r3, .L14+12
	ldr	r0, [r3]
	sub	r1, fp, #40
	mov	r3, #0
	mov	r2, #8
	bl	msgsnd
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L9:
	ldr	r3, [fp, #-52]
	ldr	r2, [fp, #-48]
	cmp	r2, r3
	blt	.L10
	ldr	r1, .L14+24
	mov	r0, #2
	bl	signal
.L12:
	ldr	r0, .L14+28
	bl	puts
	ldr	r3, .L14+20
	ldr	r2, [r3]
	sub	r3, fp, #32
	add	r3, r3, #4
	mov	r1, #20
	mov	r0, r3
	bl	fgets
	sub	r3, fp, #32
	add	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-24]
	mov	r3, #1
	str	r3, [fp, #-32]
	ldr	r3, .L14+12
	ldr	r0, [r3]
	sub	r1, fp, #32
	mov	r3, #0
	mov	r2, #24
	bl	msgsnd
	ldr	r3, .L14+12
	ldr	r0, [r3]
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	sub	r1, fp, #32
	mov	r2, #0
	str	r2, [sp]
	mov	r2, #24
	bl	msgrcv
	sub	r3, fp, #32
	add	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L14+32
	bl	printf
	sub	r3, fp, #32
	add	r3, r3, #4
	ldr	r1, .L14+36
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L12
	bl	zavrsi
	b	.L12
.L15:
	.align	2
.L14:
	.word	.LC6
	.word	.LC2
	.word	950
	.word	id_reda
	.word	.LC3
	.word	stdin
	.word	signal_handler
	.word	.LC4
	.word	.LC5
	.word	.LC0
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
