	.file	"60205.c"
	.intel_syntax noprefix
	.text
	.globl	djedbozicnjak
	.bss
	.align 32
	.type	djedbozicnjak, @object
	.size	djedbozicnjak, 40
djedbozicnjak:
	.zero	40
	.globl	K
	.align 32
	.type	K, @object
	.size	K, 40
K:
	.zero	40
	.globl	godisnji
	.align 32
	.type	godisnji, @object
	.size	godisnji, 40
godisnji:
	.zero	40
	.globl	br_sobova
	.align 4
	.type	br_sobova, @object
	.size	br_sobova, 4
br_sobova:
	.zero	4
	.globl	br_patuljaka
	.align 4
	.type	br_patuljaka, @object
	.size	br_patuljaka, 4
br_patuljaka:
	.zero	4
	.globl	semId
	.align 4
	.type	semId, @object
	.size	semId, 4
semId:
	.zero	4
	.section	.rodata
.LC0:
	.string	"Raznosenje poklona..."
.LC1:
	.string	"Djed hrani sobove..."
.LC2:
	.string	"Konzultacije kod Djeda..."
	.text
	.globl	Djed_Bozicnjak
	.type	Djed_Bozicnjak, @function
Djed_Bozicnjak:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
.L6:
	lea	rdi, djedbozicnjak[rip]
	call	pthread_mutex_lock@PLT
	lea	rdi, K[rip]
	call	pthread_mutex_lock@PLT
	mov	eax, DWORD PTR br_sobova[rip]
	cmp	eax, 10
	jne	.L2
	mov	eax, DWORD PTR br_patuljaka[rip]
	test	eax, eax
	jle	.L2
	lea	rdi, K[rip]
	call	pthread_mutex_unlock@PLT
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	edi, 2
	call	sleep@PLT
	lea	rdi, K[rip]
	call	pthread_mutex_lock@PLT
	mov	esi, 10
	mov	edi, 2
	mov	eax, 0
	call	SemSetVal
	mov	esi, 10
	mov	edi, 0
	mov	eax, 0
	call	SemSetVal
	mov	DWORD PTR br_sobova[rip], 0
.L2:
	mov	eax, DWORD PTR br_sobova[rip]
	cmp	eax, 10
	jne	.L4
	lea	rdi, K[rip]
	call	pthread_mutex_unlock@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	edi, 2
	call	sleep@PLT
	lea	rdi, K[rip]
	call	pthread_mutex_lock@PLT
	jmp	.L4
.L5:
	lea	rdi, K[rip]
	call	pthread_mutex_unlock@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	edi, 2
	call	sleep@PLT
	lea	rdi, K[rip]
	call	pthread_mutex_lock@PLT
	mov	esi, 3
	mov	edi, 1
	mov	eax, 0
	call	SemSetVal
	mov	eax, DWORD PTR br_patuljaka[rip]
	sub	eax, 3
	mov	DWORD PTR br_patuljaka[rip], eax
.L4:
	mov	eax, DWORD PTR br_patuljaka[rip]
	cmp	eax, 2
	jg	.L5
	lea	rdi, K[rip]
	call	pthread_mutex_unlock@PLT
	jmp	.L6
	.cfi_endproc
.LFE6:
	.size	Djed_Bozicnjak, .-Djed_Bozicnjak
	.section	.rodata
.LC3:
	.string	"Stvoren patuljak br. %d\n"
	.text
	.globl	patuljak
	.type	patuljak, @function
patuljak:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, K[rip]
	call	pthread_mutex_lock@PLT
	mov	eax, DWORD PTR br_patuljaka[rip]
	add	eax, 1
	mov	DWORD PTR br_patuljaka[rip], eax
	mov	eax, DWORD PTR br_patuljaka[rip]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR br_patuljaka[rip]
	cmp	eax, 3
	jne	.L8
	lea	rdi, djedbozicnjak[rip]
	call	pthread_mutex_unlock@PLT
.L8:
	lea	rdi, K[rip]
	call	pthread_mutex_unlock@PLT
	mov	esi, -1
	mov	edi, 1
	mov	eax, 0
	call	SemOp
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	patuljak, .-patuljak
	.section	.rodata
.LC4:
	.string	"Stvoren sob br. %d\n"
	.text
	.globl	sob
	.type	sob, @function
sob:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, K[rip]
	call	pthread_mutex_lock@PLT
	mov	eax, DWORD PTR br_sobova[rip]
	add	eax, 1
	mov	DWORD PTR br_sobova[rip], eax
	mov	eax, DWORD PTR br_sobova[rip]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR br_sobova[rip]
	cmp	eax, 10
	jne	.L10
	lea	rdi, djedbozicnjak[rip]
	call	pthread_mutex_unlock@PLT
	lea	rdi, K[rip]
	call	pthread_mutex_unlock@PLT
	mov	esi, -1
	mov	edi, 2
	mov	eax, 0
	call	SemOp
	mov	edi, 0
	call	pthread_exit@PLT
.L10:
	lea	rdi, K[rip]
	call	pthread_mutex_unlock@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	sob, .-sob
	.globl	SemSetVal
	.type	SemSetVal, @function
SemSetVal:
.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
	mov	DWORD PTR -8[rbp], esi
	mov	eax, DWORD PTR semId[rip]
	mov	edx, DWORD PTR -8[rbp]
	mov	esi, DWORD PTR -4[rbp]
	mov	ecx, edx
	mov	edx, 16
	mov	edi, eax
	mov	eax, 0
	call	semctl@PLT
	test	eax, eax
	sete	al
	movzx	eax, al
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	SemSetVal, .-SemSetVal
	.globl	SemOp
	.type	SemOp, @function
SemOp:
.LFB10:
	.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	DWORD PTR -24[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR -20[rbp]
	mov	WORD PTR -14[rbp], ax
	mov	eax, DWORD PTR -24[rbp]
	mov	WORD PTR -12[rbp], ax
	mov	WORD PTR -10[rbp], 0
	mov	eax, DWORD PTR semId[rip]
	lea	rcx, -14[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	semop@PLT
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	SemOp, .-SemOp
	.section	.rodata
	.align 8
.LC5:
	.string	"Ne mogu inicijalizirati semafor!"
	.text
	.globl	main
	.type	main, @function
main:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 272
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -268[rbp], 1
	mov	edx, 384
	mov	esi, 3
	mov	edi, 0
	call	semget@PLT
	mov	DWORD PTR semId[rip], eax
	mov	esi, 3
	mov	edi, 1
	call	SemSetVal
	test	eax, eax
	je	.L17
	mov	esi, 10
	mov	edi, 0
	call	SemSetVal
	test	eax, eax
	je	.L17
	mov	esi, 0
	mov	edi, 2
	call	SemSetVal
	test	eax, eax
	jne	.L18
.L17:
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L18:
	mov	esi, 0
	lea	rdi, djedbozicnjak[rip]
	call	pthread_mutex_init@PLT
	mov	esi, 0
	lea	rdi, K[rip]
	call	pthread_mutex_init@PLT
	lea	rax, -256[rbp]
	mov	ecx, 0
	lea	rdx, Djed_Bozicnjak[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	rax, QWORD PTR -256[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
.L23:
	call	rand@PLT
	cdq
	shr	edx, 30
	add	eax, edx
	and	eax, 3
	sub	eax, edx
	mov	edi, eax
	call	sleep@PLT
	call	rand@PLT
	mov	edx, eax
	movsx	rax, edx
	imul	rax, rax, 715827883
	shr	rax, 32
	mov	esi, edx
	sar	esi, 31
	mov	ecx, eax
	sub	ecx, esi
	mov	eax, ecx
	add	eax, eax
	add	eax, ecx
	add	eax, eax
	mov	ecx, edx
	sub	ecx, eax
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, ecx
	movss	DWORD PTR -264[rbp], xmm0
	call	rand@PLT
	movsx	rdx, eax
	imul	rdx, rdx, -1840700269
	shr	rdx, 32
	add	edx, eax
	sar	edx, 2
	mov	esi, eax
	sar	esi, 31
	mov	ecx, edx
	sub	ecx, esi
	mov	edx, ecx
	sal	edx, 3
	sub	edx, ecx
	sub	eax, edx
	mov	ecx, eax
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, ecx
	movss	DWORD PTR -260[rbp], xmm0
	movss	xmm0, DWORD PTR -264[rbp]
	comiss	xmm0, DWORD PTR .LC6[rip]
	jbe	.L19
	mov	eax, DWORD PTR br_sobova[rip]
	cmp	eax, 9
	jg	.L19
	lea	rdx, -256[rbp]
	mov	eax, DWORD PTR -268[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	ecx, 0
	lea	rdx, sob[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	eax, DWORD PTR -268[rbp]
	cdqe
	mov	rax, QWORD PTR -256[rbp+rax*8]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	add	DWORD PTR -268[rbp], 1
.L19:
	movss	xmm0, DWORD PTR -260[rbp]
	comiss	xmm0, DWORD PTR .LC6[rip]
	jbe	.L21
	lea	rdx, -256[rbp]
	mov	eax, DWORD PTR -268[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	ecx, 0
	lea	rdx, patuljak[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	eax, DWORD PTR -268[rbp]
	cdqe
	mov	rax, QWORD PTR -256[rbp+rax*8]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	add	DWORD PTR -268[rbp], 1
.L21:
	jmp	.L23
	.cfi_endproc
.LFE11:
	.size	main, .-main
	.section	.rodata
	.align 4
.LC6:
	.long	1077936128
	.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	"60205.c"
	.text
	.comm	djedbozicnjak,24,4
	.comm	K,24,4
	.comm	godisnji,24,4
	.comm	br_sobova,4,4
	.comm	br_patuljaka,4,4
	.comm	semId,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Raznosenje poklona...\000"
	.align	2
.LC1:
	.ascii	"Djed hrani sobove...\000"
	.align	2
.LC2:
	.ascii	"Konzultacije kod Djeda...\000"
	.text
	.align	2
	.global	Djed_Bozicnjak
	.syntax unified
	.arm
	.fpu softvfp
	.type	Djed_Bozicnjak, %function
Djed_Bozicnjak:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
.L6:
	ldr	r0, .L7
	bl	pthread_mutex_lock
	ldr	r0, .L7+4
	bl	pthread_mutex_lock
	ldr	r3, .L7+8
	ldr	r3, [r3]
	cmp	r3, #10
	bne	.L2
	ldr	r3, .L7+12
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L2
	ldr	r0, .L7+4
	bl	pthread_mutex_unlock
	ldr	r0, .L7+16
	bl	puts
	mov	r0, #2
	bl	sleep
	ldr	r0, .L7+4
	bl	pthread_mutex_lock
	mov	r1, #10
	mov	r0, #2
	bl	SemSetVal
	mov	r1, #10
	mov	r0, #0
	bl	SemSetVal
	ldr	r3, .L7+8
	mov	r2, #0
	str	r2, [r3]
.L2:
	ldr	r3, .L7+8
	ldr	r3, [r3]
	cmp	r3, #10
	bne	.L4
	ldr	r0, .L7+4
	bl	pthread_mutex_unlock
	ldr	r0, .L7+20
	bl	puts
	mov	r0, #2
	bl	sleep
	ldr	r0, .L7+4
	bl	pthread_mutex_lock
	b	.L4
.L5:
	ldr	r0, .L7+4
	bl	pthread_mutex_unlock
	ldr	r0, .L7+24
	bl	puts
	mov	r0, #2
	bl	sleep
	ldr	r0, .L7+4
	bl	pthread_mutex_lock
	mov	r1, #3
	mov	r0, #1
	bl	SemSetVal
	ldr	r3, .L7+12
	ldr	r3, [r3]
	sub	r3, r3, #3
	ldr	r2, .L7+12
	str	r3, [r2]
.L4:
	ldr	r3, .L7+12
	ldr	r3, [r3]
	cmp	r3, #2
	bgt	.L5
	ldr	r0, .L7+4
	bl	pthread_mutex_unlock
	b	.L6
.L8:
	.align	2
.L7:
	.word	djedbozicnjak
	.word	K
	.word	br_sobova
	.word	br_patuljaka
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	Djed_Bozicnjak, .-Djed_Bozicnjak
	.section	.rodata
	.align	2
.LC3:
	.ascii	"Stvoren patuljak br. %d\012\000"
	.text
	.align	2
	.global	patuljak
	.syntax unified
	.arm
	.fpu softvfp
	.type	patuljak, %function
patuljak:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L11
	bl	pthread_mutex_lock
	ldr	r3, .L11+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L11+4
	str	r3, [r2]
	ldr	r3, .L11+4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L11+8
	bl	printf
	ldr	r3, .L11+4
	ldr	r3, [r3]
	cmp	r3, #3
	bne	.L10
	ldr	r0, .L11+12
	bl	pthread_mutex_unlock
.L10:
	ldr	r0, .L11
	bl	pthread_mutex_unlock
	mvn	r1, #0
	mov	r0, #1
	bl	SemOp
	nop
	mov	r0, r3
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	K
	.word	br_patuljaka
	.word	.LC3
	.word	djedbozicnjak
	.size	patuljak, .-patuljak
	.section	.rodata
	.align	2
.LC4:
	.ascii	"Stvoren sob br. %d\012\000"
	.text
	.align	2
	.global	sob
	.syntax unified
	.arm
	.fpu softvfp
	.type	sob, %function
sob:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L15
	bl	pthread_mutex_lock
	ldr	r3, .L15+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L15+4
	str	r3, [r2]
	ldr	r3, .L15+4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L15+8
	bl	printf
	ldr	r3, .L15+4
	ldr	r3, [r3]
	cmp	r3, #10
	bne	.L14
	ldr	r0, .L15+12
	bl	pthread_mutex_unlock
	ldr	r0, .L15
	bl	pthread_mutex_unlock
	mvn	r1, #0
	mov	r0, #2
	bl	SemOp
	mov	r0, #0
	bl	pthread_exit
.L14:
	ldr	r0, .L15
	bl	pthread_mutex_unlock
	nop
	mov	r0, r3
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	K
	.word	br_sobova
	.word	.LC4
	.word	djedbozicnjak
	.size	sob, .-sob
	.align	2
	.global	SemSetVal
	.syntax unified
	.arm
	.fpu softvfp
	.type	SemSetVal, %function
SemSetVal:
	@ 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]
	str	r1, [fp, #-12]
	ldr	r3, .L19
	ldr	r0, [r3]
	ldr	r3, [fp, #-12]
	mov	r2, #16
	ldr	r1, [fp, #-8]
	bl	semctl
	mov	r3, r0
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	semId
	.size	SemSetVal, .-SemSetVal
	.section	.rodata
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	SemOp
	.syntax unified
	.arm
	.fpu softvfp
	.type	SemOp, %function
SemOp:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, .L24
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-16]	@ movhi
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #16
	asr	r3, r3, #16
	strh	r3, [fp, #-14]	@ movhi
	mov	r3, #0
	strh	r3, [fp, #-12]	@ movhi
	ldr	r3, .L24+4
	ldr	r3, [r3]
	sub	r1, fp, #16
	mov	r2, #1
	mov	r0, r3
	bl	semop
	mov	r3, r0
	ldr	r2, .L24
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L23
	bl	__stack_chk_fail
.L23:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	.LC5
	.word	semId
	.size	SemOp, .-SemOp
	.section	.rodata
	.align	2
.LC6:
	.ascii	"Ne mogu inicijalizirati semafor!\000"
	.global	__aeabi_i2f
	.global	__aeabi_fcmpgt
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 136
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #136
	ldr	r3, .L37
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-140]
	mov	r2, #384
	mov	r1, #3
	mov	r0, #0
	bl	semget
	mov	r3, r0
	ldr	r2, .L37+4
	str	r3, [r2]
	mov	r1, #3
	mov	r0, #1
	bl	SemSetVal
	mov	r3, r0
	cmp	r3, #0
	beq	.L27
	mov	r1, #10
	mov	r0, #0
	bl	SemSetVal
	mov	r3, r0
	cmp	r3, #0
	beq	.L27
	mov	r1, #0
	mov	r0, #2
	bl	SemSetVal
	mov	r3, r0
	cmp	r3, #0
	bne	.L28
.L27:
	ldr	r0, .L37+8
	bl	puts
	mov	r0, #1
	bl	exit
.L28:
	mov	r1, #0
	ldr	r0, .L37+12
	bl	pthread_mutex_init
	mov	r1, #0
	ldr	r0, .L37+16
	bl	pthread_mutex_init
	sub	r0, fp, #128
	mov	r3, #0
	ldr	r2, .L37+20
	mov	r1, #0
	bl	pthread_create
	ldr	r3, [fp, #-128]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
.L33:
	bl	rand
	mov	r3, r0
	rsbs	r2, r3, #0
	and	r3, r3, #3
	and	r2, r2, #3
	rsbpl	r3, r2, #0
	mov	r0, r3
	bl	sleep
	bl	rand
	mov	r1, r0
	ldr	r3, .L37+24
	smull	r0, r2, r3, r1
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, r1, r3
	mov	r0, r2
	bl	__aeabi_i2f
	mov	r3, r0
	str	r3, [fp, #-136]	@ float
	bl	rand
	mov	r2, r0
	ldr	r3, .L37+28
	smull	r1, r3, r2, r3
	add	r3, r3, r2
	asr	r1, r3, #2
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #3
	sub	r3, r3, r1
	sub	r1, r2, r3
	mov	r0, r1
	bl	__aeabi_i2f
	mov	r3, r0
	str	r3, [fp, #-132]	@ float
	ldr	r1, .L37+32
	ldr	r0, [fp, #-136]	@ float
	bl	__aeabi_fcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L29
	ldr	r3, .L37+36
	ldr	r3, [r3]
	cmp	r3, #9
	bgt	.L29
	sub	r2, fp, #128
	ldr	r3, [fp, #-140]
	lsl	r3, r3, #2
	add	r0, r2, r3
	mov	r3, #0
	ldr	r2, .L37+40
	mov	r1, #0
	bl	pthread_create
	ldr	r3, [fp, #-140]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-124]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-140]
	add	r3, r3, #1
	str	r3, [fp, #-140]
.L29:
	ldr	r1, .L37+32
	ldr	r0, [fp, #-132]	@ float
	bl	__aeabi_fcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L31
	sub	r2, fp, #128
	ldr	r3, [fp, #-140]
	lsl	r3, r3, #2
	add	r0, r2, r3
	mov	r3, #0
	ldr	r2, .L37+44
	mov	r1, #0
	bl	pthread_create
	ldr	r3, [fp, #-140]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-124]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-140]
	add	r3, r3, #1
	str	r3, [fp, #-140]
.L31:
	b	.L33
.L38:
	.align	2
.L37:
	.word	.LC7
	.word	semId
	.word	.LC6
	.word	djedbozicnjak
	.word	K
	.word	Djed_Bozicnjak
	.word	715827883
	.word	-1840700269
	.word	1077936128
	.word	br_sobova
	.word	sob
	.word	patuljak
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
