	.file	"283844.c"
	.intel_syntax noprefix
	.text
	.globl	nije_kraj
	.data
	.align 4
	.type	nije_kraj, @object
	.size	nije_kraj, 4
nije_kraj:
	.long	1
	.section	.rodata
	.align 8
.LC0:
	.string	"Program s PID=%ld krenuo s radom\n"
.LC1:
	.string	"Program: iteracija %d\n"
	.align 8
.LC2:
	.string	"Program s PID=%ld zavrsio s radom\n"
	.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
	lea	rax, obradi_dogadjaj[rip]
	mov	QWORD PTR -160[rbp], rax
	lea	rax, -160[rbp]
	add	rax, 8
	mov	rdi, rax
	call	sigemptyset@PLT
	lea	rax, -160[rbp]
	add	rax, 8
	mov	esi, 15
	mov	rdi, rax
	call	sigaddset@PLT
	mov	DWORD PTR -24[rbp], 0
	lea	rax, -160[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 10
	call	sigaction@PLT
	lea	rax, obradi_sigterm[rip]
	mov	QWORD PTR -160[rbp], rax
	lea	rax, -160[rbp]
	add	rax, 8
	mov	rdi, rax
	call	sigemptyset@PLT
	lea	rax, -160[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 15
	call	sigaction@PLT
	lea	rax, obradi_sigint[rip]
	mov	QWORD PTR -160[rbp], rax
	lea	rax, -160[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 2
	call	sigaction@PLT
	call	getpid@PLT
	cdqe
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -164[rbp], 1
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -164[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -164[rbp], edx
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	sleep@PLT
.L2:
	mov	eax, DWORD PTR nije_kraj[rip]
	test	eax, eax
	jne	.L3
	call	getpid@PLT
	cdqe
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC3:
	.string	"Pocetak obrade signala %d\n"
.LC4:
	.string	"Obrada signala %d: %d/5\n"
.LC5:
	.string	"Kraj obrade signala %d\n"
	.text
	.globl	obradi_dogadjaj
	.type	obradi_dogadjaj, @function
obradi_dogadjaj:
.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	DWORD PTR -20[rbp], edi
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -4[rbp], 1
	jmp	.L7
.L8:
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	sleep@PLT
	add	DWORD PTR -4[rbp], 1
.L7:
	cmp	DWORD PTR -4[rbp], 5
	jle	.L8
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	obradi_dogadjaj, .-obradi_dogadjaj
	.section	.rodata
	.align 8
.LC6:
	.string	"Primio signal SIGTERM, pospremam prije izlazska iz programa"
	.text
	.globl	obradi_sigterm
	.type	obradi_sigterm, @function
obradi_sigterm:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	DWORD PTR nije_kraj[rip], 0
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	obradi_sigterm, .-obradi_sigterm
	.section	.rodata
	.align 8
.LC7:
	.string	"Primio signal SIGINT, prekidam rad"
	.text
	.globl	obradi_sigint
	.type	obradi_sigint, @function
obradi_sigint:
.LFB9:
	.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 -4[rbp], edi
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE9:
	.size	obradi_sigint, .-obradi_sigint
	.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	"283844.c"
	.text
	.global	nije_kraj
	.data
	.align	2
	.type	nije_kraj, %object
	.size	nije_kraj, 4
nije_kraj:
	.word	1
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Program s PID=%ld krenuo s radom\012\000"
	.align	2
.LC1:
	.ascii	"Program: iteracija %d\012\000"
	.align	2
.LC2:
	.ascii	"Program s PID=%ld zavrsio s radom\012\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 152
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #152
	ldr	r3, .L6
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L6+4
	str	r3, [fp, #-148]
	sub	r3, fp, #148
	add	r3, r3, #4
	mov	r0, r3
	bl	sigemptyset
	sub	r3, fp, #148
	add	r3, r3, #4
	mov	r1, #15
	mov	r0, r3
	bl	sigaddset
	mov	r3, #0
	str	r3, [fp, #-16]
	sub	r3, fp, #148
	mov	r2, #0
	mov	r1, r3
	mov	r0, #10
	bl	sigaction
	ldr	r3, .L6+8
	str	r3, [fp, #-148]
	sub	r3, fp, #148
	add	r3, r3, #4
	mov	r0, r3
	bl	sigemptyset
	sub	r3, fp, #148
	mov	r2, #0
	mov	r1, r3
	mov	r0, #15
	bl	sigaction
	ldr	r3, .L6+12
	str	r3, [fp, #-148]
	sub	r3, fp, #148
	mov	r2, #0
	mov	r1, r3
	mov	r0, #2
	bl	sigaction
	bl	getpid
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L6+16
	bl	printf
	mov	r3, #1
	str	r3, [fp, #-152]
	b	.L2
.L3:
	ldr	r3, [fp, #-152]
	add	r2, r3, #1
	str	r2, [fp, #-152]
	mov	r1, r3
	ldr	r0, .L6+20
	bl	printf
	mov	r0, #1
	bl	sleep
.L2:
	ldr	r3, .L6+24
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L3
	bl	getpid
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L6+28
	bl	printf
	mov	r3, #0
	ldr	r2, .L6
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L5
	bl	__stack_chk_fail
.L5:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC3
	.word	obradi_dogadjaj
	.word	obradi_sigterm
	.word	obradi_sigint
	.word	.LC0
	.word	.LC1
	.word	nije_kraj
	.word	.LC2
	.size	main, .-main
	.section	.rodata
	.align	2
.LC4:
	.ascii	"Pocetak obrade signala %d\012\000"
	.align	2
.LC5:
	.ascii	"Obrada signala %d: %d/5\012\000"
	.align	2
.LC6:
	.ascii	"Kraj obrade signala %d\012\000"
	.text
	.align	2
	.global	obradi_dogadjaj
	.syntax unified
	.arm
	.fpu softvfp
	.type	obradi_dogadjaj, %function
obradi_dogadjaj:
	@ 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	r1, [fp, #-16]
	ldr	r0, .L11
	bl	printf
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L9
.L10:
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-16]
	ldr	r0, .L11+4
	bl	printf
	mov	r0, #1
	bl	sleep
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L9:
	ldr	r3, [fp, #-8]
	cmp	r3, #5
	ble	.L10
	ldr	r1, [fp, #-16]
	ldr	r0, .L11+8
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	obradi_dogadjaj, .-obradi_dogadjaj
	.section	.rodata
	.align	2
.LC7:
	.ascii	"Primio signal SIGTERM, pospremam prije izlazska iz "
	.ascii	"programa\000"
	.text
	.align	2
	.global	obradi_sigterm
	.syntax unified
	.arm
	.fpu softvfp
	.type	obradi_sigterm, %function
obradi_sigterm:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r0, .L14
	bl	puts
	ldr	r3, .L14+4
	mov	r2, #0
	str	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC7
	.word	nije_kraj
	.size	obradi_sigterm, .-obradi_sigterm
	.section	.rodata
	.align	2
.LC8:
	.ascii	"Primio signal SIGINT, prekidam rad\000"
	.text
	.align	2
	.global	obradi_sigint
	.syntax unified
	.arm
	.fpu softvfp
	.type	obradi_sigint, %function
obradi_sigint:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r0, .L17
	bl	puts
	mov	r0, #1
	bl	exit
.L18:
	.align	2
.L17:
	.word	.LC8
	.size	obradi_sigint, .-obradi_sigint
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
