	.file	"196696.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"./proizvodjac.c"
.LC1:
	.string	"GRESKA\n"
.LC2:
	.string	"[%d] Potrosac: %s\n"
.LC3:
	.string	"%d "
.LC4:
	.string	"%d"
	.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, 176
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	esi, 44
	lea	rdi, .LC0[rip]
	call	ftok@PLT
	mov	DWORD PTR -164[rbp], eax
	mov	eax, DWORD PTR -164[rbp]
	mov	esi, 950
	mov	edi, eax
	call	msgget@PLT
	mov	DWORD PTR -160[rbp], eax
	call	fork@PLT
	mov	DWORD PTR -156[rbp], eax
	cmp	DWORD PTR -156[rbp], -1
	jne	.L2
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L8
	jmp	.L9
.L2:
	cmp	DWORD PTR -156[rbp], 0
	jne	.L4
	call	fork@PLT
	mov	DWORD PTR -148[rbp], eax
	cmp	DWORD PTR -148[rbp], -1
	jne	.L5
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	edi, 0
	call	exit@PLT
.L5:
	lea	rsi, -144[rbp]
	mov	eax, DWORD PTR -160[rbp]
	mov	r8d, 0
	mov	ecx, 1
	mov	edx, 104
	mov	edi, eax
	call	msgrcv@PLT
	call	getpid@PLT
	mov	ecx, eax
	lea	rax, -144[rbp]
	add	rax, 8
	mov	rdx, rax
	mov	esi, ecx
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L5
.L4:
	mov	QWORD PTR -144[rbp], 1
	mov	DWORD PTR -168[rbp], 1
	call	getpid@PLT
	mov	DWORD PTR -152[rbp], eax
	mov	edx, DWORD PTR -152[rbp]
	lea	rax, -28[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
.L6:
	lea	rax, -144[rbp]
	add	rax, 8
	movabs	rcx, 7237133394334675536
	mov	QWORD PTR [rax], rcx
	mov	DWORD PTR 8[rax], 543383914
	mov	BYTE PTR 12[rax], 0
	lea	rax, -28[rbp]
	lea	rdx, -144[rbp]
	add	rdx, 8
	mov	rsi, rax
	mov	rdi, rdx
	call	strcat@PLT
	mov	eax, DWORD PTR -168[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -168[rbp], edx
	lea	rcx, -18[rbp]
	mov	edx, eax
	lea	rsi, .LC4[rip]
	mov	rdi, rcx
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -18[rbp]
	lea	rdx, -144[rbp]
	add	rdx, 8
	mov	rsi, rax
	mov	rdi, rdx
	call	strcat@PLT
	lea	rsi, -144[rbp]
	mov	eax, DWORD PTR -160[rbp]
	mov	ecx, 0
	mov	edx, 112
	mov	edi, eax
	call	msgsnd@PLT
	mov	edi, 5
	call	sleep@PLT
	jmp	.L6
.L9:
	call	__stack_chk_fail@PLT
.L8:
	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	"196696.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"./proizvodjac.c\000"
	.align	2
.LC1:
	.ascii	"GRESKA\012\000"
	.align	2
.LC2:
	.ascii	"[%d] Potrosac: %s\012\000"
	.align	2
.LC3:
	.ascii	"%d \000"
	.align	2
.LC4:
	.ascii	"Proizvodjac \000"
	.align	2
.LC5:
	.ascii	"%d\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 = 160
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #168
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r1, #44
	ldr	r0, .L10+4
	bl	ftok
	str	r0, [fp, #-156]
	ldr	r1, .L10+8
	ldr	r0, [fp, #-156]
	bl	msgget
	str	r0, [fp, #-152]
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-148]
	ldr	r3, [fp, #-148]
	cmn	r3, #1
	bne	.L2
	ldr	r0, .L10+12
	bl	perror
	mov	r3, #0
	ldr	r2, .L10
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L8
	b	.L9
.L2:
	ldr	r3, [fp, #-148]
	cmp	r3, #0
	bne	.L4
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-140]
	ldr	r3, [fp, #-140]
	cmn	r3, #1
	bne	.L5
	ldr	r0, .L10+12
	bl	perror
	mov	r0, #0
	bl	exit
.L5:
	sub	r1, fp, #136
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #1
	mov	r2, #100
	ldr	r0, [fp, #-152]
	bl	msgrcv
	bl	getpid
	mov	r1, r0
	sub	r3, fp, #136
	add	r3, r3, #4
	mov	r2, r3
	ldr	r0, .L10+16
	bl	printf
	b	.L5
.L4:
	mov	r3, #1
	str	r3, [fp, #-136]
	mov	r3, #1
	str	r3, [fp, #-160]
	bl	getpid
	str	r0, [fp, #-144]
	sub	r3, fp, #32
	ldr	r2, [fp, #-144]
	ldr	r1, .L10+20
	mov	r0, r3
	bl	sprintf
.L6:
	sub	r3, fp, #136
	add	r3, r3, #4
	ldr	r2, .L10+24
	mov	ip, r3
	mov	r3, r2
	ldm	r3, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2}
	strb	r3, [ip]
	sub	r2, fp, #32
	sub	r3, fp, #136
	add	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	strcat
	ldr	r3, [fp, #-160]
	add	r2, r3, #1
	str	r2, [fp, #-160]
	sub	r0, fp, #20
	mov	r2, r3
	ldr	r1, .L10+28
	bl	sprintf
	sub	r2, fp, #20
	sub	r3, fp, #136
	add	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	strcat
	sub	r1, fp, #136
	mov	r3, #0
	mov	r2, #104
	ldr	r0, [fp, #-152]
	bl	msgsnd
	mov	r0, #5
	bl	sleep
	b	.L6
.L9:
	bl	__stack_chk_fail
.L8:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC6
	.word	.LC0
	.word	950
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
