	.file	"15763811.c"
	.intel_syntax noprefix
	.text
	.globl	RED
	.bss
	.align 32
	.type	RED, @object
	.size	RED, 40
RED:
	.zero	40
	.globl	t
	.align 4
	.type	t, @object
	.size	t, 4
t:
	.zero	4
	.globl	nove
	.data
	.align 32
	.type	nove, @object
	.size	nove, 120
nove:
	.long	1
	.long	3
	.long	5
	.long	3
	.long	1
	.long	3
	.long	5
	.long	6
	.long	5
	.long	1
	.long	7
	.long	2
	.long	3
	.long	5
	.long	0
	.long	12
	.long	1
	.long	5
	.long	3
	.long	0
	.long	20
	.long	6
	.long	3
	.long	6
	.long	1
	.long	20
	.long	7
	.long	4
	.long	7
	.long	1
	.section	.rodata
.LC0:
	.string	"  t    AKT"
.LC1:
	.string	"     PR%d"
.LC2:
	.string	"%3d "
.LC3:
	.string	"  %d/%d/%d "
.LC4:
	.string	"  -/-/- "
	.text
	.globl	ispis_stanja
	.type	ispis_stanja, @function
ispis_stanja:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	cmp	DWORD PTR -20[rbp], 0
	je	.L2
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -4[rbp], 1
	jmp	.L3
.L4:
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L3:
	cmp	DWORD PTR -4[rbp], 4
	jle	.L4
	mov	edi, 10
	call	putchar@PLT
.L2:
	mov	eax, DWORD PTR t[rip]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -4[rbp], 0
	jmp	.L5
.L8:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, RED[rip]
	mov	rax, QWORD PTR [rdx+rax]
	test	rax, rax
	je	.L6
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, RED[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	ecx, DWORD PTR 4[rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, RED[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	edx, DWORD PTR 8[rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rsi, 0[0+rax*8]
	lea	rax, RED[rip]
	mov	rax, QWORD PTR [rsi+rax]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L7
.L6:
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
.L7:
	add	DWORD PTR -4[rbp], 1
.L5:
	cmp	DWORD PTR -4[rbp], 4
	jle	.L8
	mov	edi, 10
	call	putchar@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	ispis_stanja, .-ispis_stanja
	.section	.rodata
.LC5:
	.string	"Dretva %d zavrsila\n"
	.align 8
.LC6:
	.string	"%3d -- nova dretva id=%d, p=%d, prio=%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.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 -60[rbp], 6
	mov	DWORD PTR t[rip], 0
	jmp	.L10
.L34:
	mov	rax, QWORD PTR RED[rip]
	test	rax, rax
	je	.L11
	mov	rax, QWORD PTR RED[rip]
	mov	edx, DWORD PTR 4[rax]
	sub	edx, 1
	mov	DWORD PTR 4[rax], edx
	mov	rax, QWORD PTR RED[rip]
	mov	eax, DWORD PTR 4[rax]
	test	eax, eax
	jg	.L12
	sub	DWORD PTR -60[rbp], 1
	mov	rax, QWORD PTR RED[rip]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -56[rbp], 0
	jmp	.L13
.L14:
	mov	eax, DWORD PTR -56[rbp]
	add	eax, 1
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, RED[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -56[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	lea	rdx, RED[rip]
	mov	QWORD PTR [rcx+rdx], rax
	add	DWORD PTR -56[rbp], 1
.L13:
	cmp	DWORD PTR -56[rbp], 3
	jle	.L14
	mov	QWORD PTR RED[rip+32], 0
	jmp	.L11
.L12:
	mov	rax, QWORD PTR RED[rip]
	mov	eax, DWORD PTR 12[rax]
	cmp	eax, 1
	jne	.L11
	mov	DWORD PTR -52[rbp], 0
	jmp	.L15
.L17:
	mov	eax, DWORD PTR -52[rbp]
	mov	DWORD PTR -48[rbp], eax
	add	DWORD PTR -52[rbp], 1
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, RED[rip]
	mov	rax, QWORD PTR [rdx+rax]
	test	rax, rax
	je	.L36
.L15:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, RED[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	edx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR RED[rip]
	mov	eax, DWORD PTR 8[rax]
	cmp	edx, eax
	je	.L17
	jmp	.L16
.L36:
	nop
.L16:
	mov	rax, QWORD PTR RED[rip]
	mov	QWORD PTR -24[rbp], rax
	mov	DWORD PTR -44[rbp], 0
	jmp	.L18
.L19:
	mov	eax, DWORD PTR -44[rbp]
	add	eax, 1
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, RED[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -44[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	lea	rdx, RED[rip]
	mov	QWORD PTR [rcx+rdx], rax
	add	DWORD PTR -44[rbp], 1
.L18:
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, DWORD PTR -48[rbp]
	jl	.L19
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rdx, RED[rip]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rcx+rdx], rax
.L11:
	mov	DWORD PTR -40[rbp], 0
	jmp	.L20
.L31:
	mov	eax, DWORD PTR -40[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, nove[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR t[rip]
	cmp	edx, eax
	jne	.L21
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	eax, DWORD PTR -40[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, nove[rip+4]
	mov	edx, DWORD PTR [rdx+rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR [rax], edx
	mov	eax, DWORD PTR -40[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, nove[rip+8]
	mov	edx, DWORD PTR [rdx+rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	eax, DWORD PTR -40[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, nove[rip+12]
	mov	edx, DWORD PTR [rdx+rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 8[rax], edx
	mov	eax, DWORD PTR -40[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, nove[rip+16]
	mov	edx, DWORD PTR [rdx+rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 12[rax], edx
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	ecx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR t[rip]
	mov	r8d, esi
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -36[rbp], 0
	jmp	.L22
.L25:
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, RED[rip]
	mov	rax, QWORD PTR [rdx+rax]
	test	rax, rax
	jne	.L23
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rdx, RED[rip]
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR [rcx+rdx], rax
	jmp	.L24
.L23:
	add	DWORD PTR -36[rbp], 1
.L22:
	cmp	DWORD PTR -36[rbp], 4
	jle	.L25
.L24:
	mov	DWORD PTR -32[rbp], 0
	jmp	.L26
.L30:
	mov	DWORD PTR -28[rbp], 0
	jmp	.L27
.L29:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, RED[rip]
	mov	rax, QWORD PTR [rdx+rax]
	test	rax, rax
	je	.L28
	mov	eax, DWORD PTR -28[rbp]
	add	eax, 1
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, RED[rip]
	mov	rax, QWORD PTR [rdx+rax]
	test	rax, rax
	je	.L28
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, RED[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	edx, DWORD PTR 8[rax]
	mov	eax, DWORD PTR -28[rbp]
	add	eax, 1
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rax, RED[rip]
	mov	rax, QWORD PTR [rcx+rax]
	mov	eax, DWORD PTR 8[rax]
	cmp	edx, eax
	jge	.L28
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, RED[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR -28[rbp]
	add	eax, 1
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, RED[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -28[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	lea	rdx, RED[rip]
	mov	QWORD PTR [rcx+rdx], rax
	mov	eax, DWORD PTR -28[rbp]
	add	eax, 1
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rdx, RED[rip]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rcx+rdx], rax
.L28:
	add	DWORD PTR -28[rbp], 1
.L27:
	mov	eax, 4
	sub	eax, DWORD PTR -32[rbp]
	cmp	DWORD PTR -28[rbp], eax
	jl	.L29
	add	DWORD PTR -32[rbp], 1
.L26:
	cmp	DWORD PTR -32[rbp], 3
	jle	.L30
.L21:
	add	DWORD PTR -40[rbp], 1
.L20:
	cmp	DWORD PTR -40[rbp], 5
	jle	.L31
	mov	eax, DWORD PTR t[rip]
	test	eax, eax
	jne	.L32
	mov	edi, 1
	call	ispis_stanja
	jmp	.L33
.L32:
	mov	edi, 0
	call	ispis_stanja
.L33:
	mov	eax, DWORD PTR t[rip]
	add	eax, 1
	mov	DWORD PTR t[rip], eax
	mov	edi, 1
	mov	eax, 0
	call	sleep@PLT
.L10:
	cmp	DWORD PTR -60[rbp], 0
	jg	.L34
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"15763811.c"
	.text
	.comm	RED,20,4
	.comm	t,4,4
	.global	nove
	.data
	.align	2
	.type	nove, %object
	.size	nove, 120
nove:
	.word	1
	.word	3
	.word	5
	.word	3
	.word	1
	.word	3
	.word	5
	.word	6
	.word	5
	.word	1
	.word	7
	.word	2
	.word	3
	.word	5
	.word	0
	.word	12
	.word	1
	.word	5
	.word	3
	.word	0
	.word	20
	.word	6
	.word	3
	.word	6
	.word	1
	.word	20
	.word	7
	.word	4
	.word	7
	.word	1
	.section	.rodata
	.align	2
.LC0:
	.ascii	"  t    AKT\000"
	.align	2
.LC1:
	.ascii	"     PR%d\000"
	.align	2
.LC2:
	.ascii	"%3d \000"
	.align	2
.LC3:
	.ascii	"  %d/%d/%d \000"
	.align	2
.LC4:
	.ascii	"  -/-/- \000"
	.text
	.align	2
	.global	ispis_stanja
	.syntax unified
	.arm
	.fpu softvfp
	.type	ispis_stanja, %function
ispis_stanja:
	@ 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	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L2
	ldr	r0, .L9
	bl	printf
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L3
.L4:
	ldr	r1, [fp, #-8]
	ldr	r0, .L9+4
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L3:
	ldr	r3, [fp, #-8]
	cmp	r3, #4
	ble	.L4
	mov	r0, #10
	bl	putchar
.L2:
	ldr	r3, .L9+8
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L9+12
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L5
.L8:
	ldr	r2, .L9+16
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	beq	.L6
	ldr	r2, .L9+16
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r1, [r3]
	ldr	r2, .L9+16
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [r3, #8]
	ldr	r0, .L9+16
	ldr	r3, [fp, #-8]
	ldr	r3, [r0, r3, lsl #2]
	ldr	r3, [r3, #4]
	ldr	r0, .L9+20
	bl	printf
	b	.L7
.L6:
	ldr	r0, .L9+24
	bl	printf
.L7:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L5:
	ldr	r3, [fp, #-8]
	cmp	r3, #4
	ble	.L8
	mov	r0, #10
	bl	putchar
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC0
	.word	.LC1
	.word	t
	.word	.LC2
	.word	RED
	.word	.LC3
	.word	.LC4
	.size	ispis_stanja, .-ispis_stanja
	.section	.rodata
	.align	2
.LC5:
	.ascii	"Dretva %d zavrsila\012\000"
	.align	2
.LC6:
	.ascii	"%3d -- nova dretva id=%d, p=%d, prio=%d\012\000"
	.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
	mov	r3, #6
	str	r3, [fp, #-52]
	ldr	r3, .L39
	mov	r2, #0
	str	r2, [r3]
	b	.L12
.L36:
	ldr	r3, .L39+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L13
	ldr	r3, .L39+4
	ldr	r3, [r3]
	ldr	r2, [r3, #4]
	sub	r2, r2, #1
	str	r2, [r3, #4]
	ldr	r3, .L39+4
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bgt	.L14
	ldr	r3, [fp, #-52]
	sub	r3, r3, #1
	str	r3, [fp, #-52]
	ldr	r3, .L39+4
	ldr	r3, [r3]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L39+8
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L15
.L16:
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	ldr	r2, .L39+4
	ldr	r2, [r2, r3, lsl #2]
	ldr	r1, .L39+4
	ldr	r3, [fp, #-48]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L15:
	ldr	r3, [fp, #-48]
	cmp	r3, #3
	ble	.L16
	ldr	r3, .L39+4
	mov	r2, #0
	str	r2, [r3, #16]
	b	.L13
.L14:
	ldr	r3, .L39+4
	ldr	r3, [r3]
	ldr	r3, [r3, #12]
	cmp	r3, #1
	bne	.L13
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L17
.L19:
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
	ldr	r2, .L39+4
	ldr	r3, [fp, #-44]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	beq	.L38
.L17:
	ldr	r2, .L39+4
	ldr	r3, [fp, #-44]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [r3, #8]
	ldr	r3, .L39+4
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	cmp	r2, r3
	beq	.L19
	b	.L18
.L38:
	nop
.L18:
	ldr	r3, .L39+4
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L20
.L21:
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	ldr	r2, .L39+4
	ldr	r2, [r2, r3, lsl #2]
	ldr	r1, .L39+4
	ldr	r3, [fp, #-36]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L20:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	blt	.L21
	ldr	r1, .L39+4
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-16]
	str	r2, [r1, r3, lsl #2]
.L13:
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L22
.L33:
	ldr	r1, .L39+12
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r2, [r3]
	ldr	r3, .L39
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L23
	mov	r0, #16
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r1, .L39+12
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #4
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	str	r2, [r3]
	ldr	r1, .L39+12
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #8
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	str	r2, [r3, #4]
	ldr	r1, .L39+12
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #12
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	str	r2, [r3, #8]
	ldr	r1, .L39+12
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #16
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	str	r2, [r3, #12]
	ldr	r3, .L39
	ldr	r1, [r3]
	ldr	r3, [fp, #-12]
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	ldr	r0, [r3, #4]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #8]
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, .L39+16
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L24
.L27:
	ldr	r2, .L39+4
	ldr	r3, [fp, #-28]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	bne	.L25
	ldr	r1, .L39+4
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-12]
	str	r2, [r1, r3, lsl #2]
	b	.L26
.L25:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L24:
	ldr	r3, [fp, #-28]
	cmp	r3, #4
	ble	.L27
.L26:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L28
.L32:
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L29
.L31:
	ldr	r2, .L39+4
	ldr	r3, [fp, #-20]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	beq	.L30
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	ldr	r2, .L39+4
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	beq	.L30
	ldr	r2, .L39+4
	ldr	r3, [fp, #-20]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	ldr	r1, .L39+4
	ldr	r3, [r1, r3, lsl #2]
	ldr	r3, [r3, #8]
	cmp	r2, r3
	bge	.L30
	ldr	r2, .L39+4
	ldr	r3, [fp, #-20]
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	ldr	r2, .L39+4
	ldr	r2, [r2, r3, lsl #2]
	ldr	r1, .L39+4
	ldr	r3, [fp, #-20]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	ldr	r1, .L39+4
	ldr	r2, [fp, #-8]
	str	r2, [r1, r3, lsl #2]
.L30:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L29:
	ldr	r3, [fp, #-24]
	rsb	r3, r3, #4
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	blt	.L31
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L28:
	ldr	r3, [fp, #-24]
	cmp	r3, #3
	ble	.L32
.L23:
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L22:
	ldr	r3, [fp, #-32]
	cmp	r3, #5
	ble	.L33
	ldr	r3, .L39
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L34
	mov	r0, #1
	bl	ispis_stanja
	b	.L35
.L34:
	mov	r0, #0
	bl	ispis_stanja
.L35:
	ldr	r3, .L39
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L39
	str	r3, [r2]
	mov	r0, #1
	bl	sleep
.L12:
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	bgt	.L36
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L40:
	.align	2
.L39:
	.word	t
	.word	RED
	.word	.LC5
	.word	nove
	.word	.LC6
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
