	.file	"375837.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"./potrosac.c"
.LC1:
	.string	"Greska\n"
.LC2:
	.string	"p2:"
.LC3:
	.string	"%s %d %d\n"
.LC4:
	.string	"P1:"
	.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, 144
	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 -140[rbp], eax
	mov	eax, DWORD PTR -140[rbp]
	mov	esi, 950
	mov	edi, eax
	call	msgget@PLT
	mov	DWORD PTR -136[rbp], eax
	call	fork@PLT
	mov	DWORD PTR -132[rbp], eax
.L5:
	cmp	DWORD PTR -132[rbp], -1
	je	.L2
	cmp	DWORD PTR -132[rbp], 0
	je	.L3
	jmp	.L4
.L2:
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	edi, 0
	call	exit@PLT
.L3:
	lea	rsi, -128[rbp]
	mov	eax, DWORD PTR -136[rbp]
	mov	r8d, 0
	mov	ecx, 1
	mov	edx, 120
	mov	edi, eax
	call	msgrcv@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -120[rbp]
	lea	rcx, -128[rbp]
	lea	rsi, 12[rcx]
	mov	ecx, edx
	mov	edx, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
.L4:
	lea	rsi, -128[rbp]
	mov	eax, DWORD PTR -136[rbp]
	mov	r8d, 0
	mov	ecx, 1
	mov	edx, 120
	mov	edi, eax
	call	msgrcv@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -120[rbp]
	lea	rcx, -128[rbp]
	lea	rsi, 12[rcx]
	mov	ecx, edx
	mov	edx, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L5
	.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	"375837.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"./potrosac.c\000"
	.align	2
.LC1:
	.ascii	"Greska\012\000"
	.align	2
.LC2:
	.ascii	"p2:\000"
	.align	2
.LC3:
	.ascii	"%s %d %d\012\000"
	.align	2
.LC4:
	.ascii	"P1:\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 128
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #136
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r1, #34
	ldr	r0, .L7+4
	bl	ftok
	str	r0, [fp, #-132]
	ldr	r1, .L7+8
	ldr	r0, [fp, #-132]
	bl	msgget
	str	r0, [fp, #-128]
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-124]
.L5:
	ldr	r3, [fp, #-124]
	cmn	r3, #1
	beq	.L2
	ldr	r3, [fp, #-124]
	cmp	r3, #0
	beq	.L3
	b	.L4
.L2:
	ldr	r0, .L7+12
	bl	perror
	mov	r0, #0
	bl	exit
.L3:
	sub	r1, fp, #120
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #1
	mov	r2, #112
	ldr	r0, [fp, #-128]
	bl	msgrcv
	ldr	r0, .L7+16
	bl	puts
	ldr	r2, [fp, #-116]
	ldr	r0, [fp, #-12]
	sub	r3, fp, #120
	add	r1, r3, #8
	mov	r3, r0
	ldr	r0, .L7+20
	bl	printf
.L4:
	sub	r1, fp, #120
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #1
	mov	r2, #112
	ldr	r0, [fp, #-128]
	bl	msgrcv
	ldr	r0, .L7+24
	bl	puts
	ldr	r2, [fp, #-116]
	ldr	r0, [fp, #-12]
	sub	r3, fp, #120
	add	r1, r3, #8
	mov	r3, r0
	ldr	r0, .L7+20
	bl	printf
	b	.L5
.L8:
	.align	2
.L7:
	.word	.LC5
	.word	.LC0
	.word	950
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
