	.file	"610800.c"
	.intel_syntax noprefix
	.text
	.globl	queue
	.bss
	.align 32
	.type	queue, @object
	.size	queue, 64
queue:
	.zero	64
	.globl	stop
	.align 4
	.type	stop, @object
	.size	stop, 4
stop:
	.zero	4
	.section	.rodata
.LC0:
	.string	"--- Test 1 ---"
.LC1:
	.string	"\n--- Test 2a ---"
.LC2:
	.string	"\n--- Test 2b ---"
.LC3:
	.string	"\n--- Test 3 ---"
.LC4:
	.string	"\n--- Test 4 ---"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.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 -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, queue[rip]
	call	queue_create
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rax, -48[rbp]
	lea	rdx, test1[rip]
	mov	esi, 2
	mov	rdi, rax
	call	launch_test
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rax, -48[rbp]
	lea	rdx, test2a[rip]
	mov	esi, 4
	mov	rdi, rax
	call	launch_test
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rax, -48[rbp]
	lea	rdx, test2b[rip]
	mov	esi, 4
	mov	rdi, rax
	call	launch_test
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rax, -48[rbp]
	lea	rdx, test3[rip]
	mov	esi, 1
	mov	rdi, rax
	call	launch_test
	lea	rdi, .LC4[rip]
	call	puts@PLT
	lea	rax, -48[rbp]
	lea	rdx, test4[rip]
	mov	esi, 2
	mov	rdi, rax
	call	launch_test
	lea	rdi, queue[rip]
	call	queue_destroy
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	launch_test
	.type	launch_test, @function
launch_test:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	QWORD PTR -40[rbp], rdx
	mov	DWORD PTR -4[rbp], 0
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	mov	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	lea	rdi, [rcx+rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, rdx
	mov	rdx, rax
	mov	esi, 0
	call	pthread_create@PLT
	add	DWORD PTR -4[rbp], 1
.L5:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L6
	mov	DWORD PTR -4[rbp], 0
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	add	DWORD PTR -4[rbp], 1
.L7:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L8
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	launch_test, .-launch_test
	.section	.rodata
.LC5:
	.string	"To jest wiadomosc!"
.LC6:
	.string	"Wyslano wiadomosc: %s\n"
	.align 8
.LC7:
	.string	"Odebrano wiadomosc o dlugosci %d i priorytecie %d: %s\n"
	.text
	.globl	test1
	.type	test1, @function
test1:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 192
	mov	QWORD PTR -184[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -184[rbp]
	mov	DWORD PTR -156[rbp], eax
	mov	DWORD PTR -164[rbp], 128
	cmp	DWORD PTR -156[rbp], 0
	je	.L11
	cmp	DWORD PTR -156[rbp], 1
	je	.L12
	jmp	.L13
.L11:
	lea	rax, -144[rbp]
	mov	edx, 128
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	strncpy@PLT
	lea	rax, -144[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -152[rbp], rax
	mov	rax, QWORD PTR -152[rbp]
	lea	rdx, 1[rax]
	lea	rax, -144[rbp]
	mov	r9d, 0
	mov	r8d, 0
	mov	ecx, 1
	mov	rsi, rax
	lea	rdi, queue[rip]
	call	queue_send
	lea	rax, -144[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L13
.L12:
	lea	rcx, -160[rbp]
	lea	rdx, -164[rbp]
	lea	rax, -144[rbp]
	mov	r9d, 0
	mov	r8d, 0
	mov	rsi, rax
	lea	rdi, queue[rip]
	call	queue_recv
	mov	edx, DWORD PTR -160[rbp]
	mov	eax, DWORD PTR -164[rbp]
	lea	rcx, -144[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	nop
.L13:
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	test1, .-test1
	.section	.rodata
.LC8:
	.string	"Wiadomosc od watku %d"
	.align 8
.LC9:
	.string	"Odebrano wiadomosc o dlugosci %d i priorytecie %d: \"%s\"\n"
	.text
	.globl	test2a
	.type	test2a, @function
test2a:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 208
	mov	QWORD PTR -200[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -200[rbp]
	mov	DWORD PTR -172[rbp], eax
	mov	DWORD PTR -184[rbp], 128
	cmp	DWORD PTR -172[rbp], 2
	jg	.L17
	cmp	DWORD PTR -172[rbp], 0
	jns	.L18
	jmp	.L19
.L17:
	cmp	DWORD PTR -172[rbp], 3
	je	.L20
	jmp	.L19
.L18:
	mov	eax, 2
	sub	eax, DWORD PTR -172[rbp]
	mov	DWORD PTR -180[rbp], eax
	mov	ecx, DWORD PTR -180[rbp]
	mov	edx, DWORD PTR -172[rbp]
	lea	rax, -144[rbp]
	mov	r8d, ecx
	mov	ecx, edx
	lea	rdx, .LC8[rip]
	mov	esi, 128
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rax, -144[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -152[rbp], rax
	mov	edx, DWORD PTR -180[rbp]
	mov	rax, QWORD PTR -152[rbp]
	lea	rsi, 1[rax]
	lea	rax, -144[rbp]
	mov	r9d, 0
	mov	r8d, 0
	mov	ecx, edx
	mov	rdx, rsi
	mov	rsi, rax
	lea	rdi, queue[rip]
	call	queue_send
	jmp	.L19
.L20:
	mov	edi, 0
	call	time@PLT
	mov	QWORD PTR -168[rbp], rax
.L23:
	mov	edi, 0
	call	time@PLT
	mov	QWORD PTR -160[rbp], rax
	mov	rax, QWORD PTR -160[rbp]
	cmp	rax, QWORD PTR -168[rbp]
	jne	.L29
	jmp	.L23
.L29:
	nop
	mov	DWORD PTR -176[rbp], 0
	jmp	.L24
.L25:
	lea	rcx, -180[rbp]
	lea	rdx, -184[rbp]
	lea	rax, -144[rbp]
	mov	r9d, 0
	mov	r8d, 0
	mov	rsi, rax
	lea	rdi, queue[rip]
	call	queue_recv
	mov	edx, DWORD PTR -180[rbp]
	mov	eax, DWORD PTR -184[rbp]
	lea	rcx, -144[rbp]
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -176[rbp], 1
.L24:
	cmp	DWORD PTR -176[rbp], 2
	jle	.L25
	nop
.L19:
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L27
	call	__stack_chk_fail@PLT
.L27:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	test2a, .-test2a
	.section	.rodata
	.align 8
.LC10:
	.string	"Watek %d otrzymal wiadomosc o priorytecie %d: \"%s\"\n"
	.text
	.globl	test2b
	.type	test2b, @function
test2b:
.LFB4:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 208
	mov	QWORD PTR -200[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -200[rbp]
	mov	DWORD PTR -172[rbp], eax
	mov	DWORD PTR -184[rbp], 128
	cmp	DWORD PTR -172[rbp], 2
	jg	.L31
	cmp	DWORD PTR -172[rbp], 0
	jns	.L32
	jmp	.L33
.L31:
	cmp	DWORD PTR -172[rbp], 3
	je	.L34
	jmp	.L33
.L32:
	lea	rcx, -180[rbp]
	lea	rdx, -184[rbp]
	lea	rax, -144[rbp]
	mov	r9d, 0
	mov	r8d, 0
	mov	rsi, rax
	lea	rdi, queue[rip]
	call	queue_recv
	mov	edx, DWORD PTR -180[rbp]
	lea	rcx, -144[rbp]
	mov	eax, DWORD PTR -172[rbp]
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L33
.L34:
	lea	rax, -144[rbp]
	movabs	rsi, 7957694989808398415
	movabs	rdi, 7885631842093047905
	mov	QWORD PTR [rax], rsi
	mov	QWORD PTR 8[rax], rdi
	mov	DWORD PTR 16[rax], 6517615
	lea	rax, -144[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -168[rbp], rax
	mov	rax, QWORD PTR -168[rbp]
	add	eax, 1
	mov	DWORD PTR -184[rbp], eax
	mov	DWORD PTR -176[rbp], 0
	jmp	.L35
.L39:
	mov	edi, 0
	call	time@PLT
	mov	QWORD PTR -160[rbp], rax
.L38:
	mov	edi, 0
	call	time@PLT
	mov	QWORD PTR -152[rbp], rax
	mov	rax, QWORD PTR -152[rbp]
	cmp	rax, QWORD PTR -160[rbp]
	jne	.L43
	jmp	.L38
.L43:
	nop
	mov	eax, DWORD PTR -184[rbp]
	movsx	rdx, eax
	mov	ecx, DWORD PTR -176[rbp]
	lea	rax, -144[rbp]
	mov	r9d, 0
	mov	r8d, 0
	mov	rsi, rax
	lea	rdi, queue[rip]
	call	queue_send
	add	DWORD PTR -176[rbp], 1
.L35:
	cmp	DWORD PTR -176[rbp], 2
	jle	.L39
	nop
.L33:
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L41
	call	__stack_chk_fail@PLT
.L41:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	test2b, .-test2b
	.section	.rodata
.LC11:
	.string	"Proba wyslania wiadomosci..."
.LC12:
	.string	"Nastapil timeout."
	.text
	.globl	test3
	.type	test3, @function
test3:
.LFB5:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 192
	mov	QWORD PTR -184[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -184[rbp]
	mov	DWORD PTR -164[rbp], eax
	mov	DWORD PTR -160[rbp], 128
	cmp	DWORD PTR -164[rbp], 0
	jne	.L45
	lea	rdi, .LC11[rip]
	call	puts@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	lea	rax, -144[rbp]
	mov	edx, 128
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	strncpy@PLT
	lea	rax, -144[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -152[rbp], rax
	mov	rax, QWORD PTR -152[rbp]
	lea	rdx, 1[rax]
	lea	rax, -144[rbp]
	mov	r9d, 0
	mov	r8d, 3
	mov	ecx, 1
	mov	rsi, rax
	lea	rdi, queue[rip]
	call	queue_send
	mov	DWORD PTR -156[rbp], eax
	cmp	DWORD PTR -156[rbp], 1
	jne	.L49
	lea	rdi, .LC12[rip]
	call	puts@PLT
.L49:
	nop
.L45:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L48
	call	__stack_chk_fail@PLT
.L48:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	test3, .-test3
	.section	.rodata
	.align 8
.LC13:
	.string	"Nastapilo zatrzymanie przez zmienna stop."
	.text
	.globl	test4
	.type	test4, @function
test4:
.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, 208
	mov	QWORD PTR -200[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -200[rbp]
	mov	DWORD PTR -180[rbp], eax
	mov	DWORD PTR -176[rbp], 128
	cmp	DWORD PTR -180[rbp], 0
	je	.L51
	cmp	DWORD PTR -180[rbp], 1
	je	.L52
	jmp	.L53
.L51:
	mov	DWORD PTR stop[rip], 0
	lea	rdi, .LC11[rip]
	call	puts@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	lea	rax, -144[rbp]
	mov	edx, 128
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	strncpy@PLT
	lea	rax, -144[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -152[rbp], rax
	mov	rax, QWORD PTR -152[rbp]
	lea	rdx, 1[rax]
	lea	rax, -144[rbp]
	lea	r9, stop[rip]
	mov	r8d, 0
	mov	ecx, 1
	mov	rsi, rax
	lea	rdi, queue[rip]
	call	queue_send
	mov	DWORD PTR -172[rbp], eax
	cmp	DWORD PTR -172[rbp], 2
	jne	.L61
	lea	rdi, .LC13[rip]
	call	puts@PLT
	jmp	.L61
.L52:
	mov	edi, 0
	call	time@PLT
	mov	QWORD PTR -168[rbp], rax
.L57:
	mov	edi, 0
	call	time@PLT
	mov	QWORD PTR -160[rbp], rax
	mov	rax, QWORD PTR -160[rbp]
	cmp	rax, QWORD PTR -168[rbp]
	jne	.L62
	jmp	.L57
.L62:
	nop
	mov	DWORD PTR stop[rip], 1
	jmp	.L53
.L61:
	nop
.L53:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L59
	call	__stack_chk_fail@PLT
.L59:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	test4, .-test4
	.globl	_add
	.type	_add, @function
_add:
.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	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	DWORD PTR -52[rbp], edx
	mov	DWORD PTR -56[rbp], ecx
	mov	QWORD PTR -64[rbp], r8
	mov	QWORD PTR -24[rbp], 0
	mov	edi, 40
	call	malloc@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L64
	mov	eax, 0
	jmp	.L65
.L64:
	cmp	QWORD PTR -64[rbp], 0
	je	.L66
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
.L66:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	eax, DWORD PTR -52[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rcx, QWORD PTR -48[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	eax, DWORD PTR -52[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -56[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 24[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 32[rax], 0
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -32[rbp], rax
	jmp	.L67
.L71:
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -56[rbp], eax
	jge	.L68
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR 24[rax], rdx
	cmp	QWORD PTR -24[rbp], 0
	je	.L69
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 24[rax], rdx
	jmp	.L70
.L69:
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -40[rbp], rax
.L70:
	mov	rax, QWORD PTR -40[rbp]
	jmp	.L65
.L68:
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -32[rbp], rax
.L67:
	cmp	QWORD PTR -32[rbp], 0
	jne	.L71
	cmp	QWORD PTR -24[rbp], 0
	je	.L72
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 24[rax], rdx
	jmp	.L73
.L72:
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -40[rbp], rax
.L73:
	mov	rax, QWORD PTR -40[rbp]
.L65:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	_add, .-_add
	.globl	_copy_to_buf
	.type	_copy_to_buf, @function
_copy_to_buf:
.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, 32
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	cmp	rdx, rax
	jbe	.L75
	mov	eax, 4
	jmp	.L76
.L75:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], rdx
	mov	eax, 0
.L76:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	_copy_to_buf, .-_copy_to_buf
	.globl	_get_first
	.type	_get_first, @function
_get_first:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L78
.L81:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 32[rax]
	test	eax, eax
	jne	.L79
	mov	rax, QWORD PTR -8[rbp]
	jmp	.L80
.L79:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -8[rbp], rax
.L78:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L81
	mov	eax, 0
.L80:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	_get_first, .-_get_first
	.globl	_delete
	.type	_delete, @function
_delete:
.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	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -8[rbp], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L83
.L88:
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -32[rbp]
	cmp	rdx, rax
	jne	.L84
	cmp	QWORD PTR -8[rbp], 0
	je	.L85
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR 24[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 24[rax], rdx
	jmp	.L86
.L85:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -24[rbp], rax
.L86:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -24[rbp]
	jmp	.L87
.L84:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -16[rbp], rax
.L83:
	cmp	QWORD PTR -16[rbp], 0
	jne	.L88
	mov	rax, QWORD PTR -24[rbp]
.L87:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	_delete, .-_delete
	.globl	queue_create
	.type	queue_create, @function
queue_create:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 4[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 24
	mov	esi, 0
	mov	rdi, rax
	call	pthread_mutex_init@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	queue_create, .-queue_create
	.globl	queue_send
	.type	queue_send, @function
queue_send:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 96
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	QWORD PTR -72[rbp], rdx
	mov	DWORD PTR -76[rbp], ecx
	mov	DWORD PTR -80[rbp], r8d
	mov	QWORD PTR -88[rbp], r9
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -48[rbp], -1
	mov	DWORD PTR -44[rbp], 0
	call	clock@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	imul	rdx, rax, 1000000
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 8[rax]
	test	eax, eax
	je	.L92
	mov	eax, 5
	jmp	.L103
.L92:
	mov	rax, QWORD PTR -56[rbp]
	add	rax, 24
	mov	rdi, rax
	call	pthread_mutex_lock@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 8[rax]
	test	eax, eax
	je	.L94
	mov	rax, QWORD PTR -56[rbp]
	add	rax, 24
	mov	rdi, rax
	call	pthread_mutex_unlock@PLT
	mov	eax, 5
	jmp	.L103
.L94:
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -72[rbp]
	mov	edi, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 16[rax]
	lea	rcx, -40[rbp]
	mov	edx, DWORD PTR -76[rbp]
	mov	rsi, QWORD PTR -64[rbp]
	mov	r8, rcx
	mov	ecx, edx
	mov	edx, edi
	mov	rdi, rax
	call	_add
	mov	rdx, QWORD PTR -56[rbp]
	mov	QWORD PTR 16[rdx], rax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, 24
	mov	rdi, rax
	call	pthread_mutex_unlock@PLT
.L101:
	mov	rax, QWORD PTR -56[rbp]
	add	rax, 24
	mov	rdi, rax
	call	pthread_mutex_lock@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 32[rax]
	test	eax, eax
	je	.L95
	mov	DWORD PTR -48[rbp], 0
	jmp	.L96
.L95:
	cmp	DWORD PTR -80[rbp], 0
	je	.L106
	call	clock@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	cmp	rax, QWORD PTR -24[rbp]
	jl	.L107
	mov	DWORD PTR -48[rbp], 1
	jmp	.L96
.L106:
	nop
	jmp	.L97
.L107:
	nop
.L97:
	cmp	QWORD PTR -88[rbp], 0
	je	.L96
	mov	rax, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L96
	mov	DWORD PTR -48[rbp], 2
.L96:
	mov	rax, QWORD PTR -56[rbp]
	add	rax, 24
	mov	rdi, rax
	call	pthread_mutex_unlock@PLT
	cmp	DWORD PTR -48[rbp], -1
	jne	.L108
	jmp	.L101
.L108:
	nop
	mov	rax, QWORD PTR -56[rbp]
	add	rax, 24
	mov	rdi, rax
	call	pthread_mutex_lock@PLT
	cmp	DWORD PTR -48[rbp], 0
	je	.L102
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR [rax], edx
.L102:
	mov	rdx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	_delete
	mov	rdx, QWORD PTR -56[rbp]
	mov	QWORD PTR 16[rdx], rax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, 24
	mov	rdi, rax
	call	pthread_mutex_unlock@PLT
	mov	eax, DWORD PTR -48[rbp]
.L103:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L104
	call	__stack_chk_fail@PLT
.L104:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	queue_send, .-queue_send
	.globl	queue_recv
	.type	queue_recv, @function
queue_recv:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 96
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	QWORD PTR -72[rbp], rdx
	mov	QWORD PTR -80[rbp], rcx
	mov	DWORD PTR -84[rbp], r8d
	mov	QWORD PTR -96[rbp], r9
	mov	DWORD PTR -36[rbp], -1
	call	clock@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	imul	rdx, rax, 1000000
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 8[rax]
	test	eax, eax
	je	.L110
	mov	eax, 5
	jmp	.L111
.L110:
	mov	rax, QWORD PTR -56[rbp]
	add	rax, 24
	mov	rdi, rax
	call	pthread_mutex_lock@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 8[rax]
	test	eax, eax
	je	.L112
	mov	rax, QWORD PTR -56[rbp]
	add	rax, 24
	mov	rdi, rax
	call	pthread_mutex_unlock@PLT
	mov	eax, 5
	jmp	.L111
.L112:
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 4[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	rax, QWORD PTR -56[rbp]
	add	rax, 24
	mov	rdi, rax
	call	pthread_mutex_unlock@PLT
.L119:
	mov	rax, QWORD PTR -56[rbp]
	add	rax, 24
	mov	rdi, rax
	call	pthread_mutex_lock@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jle	.L113
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	_get_first
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 32[rax], 1
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR [rax], edx
	mov	rdx, QWORD PTR -72[rbp]
	mov	rcx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	_copy_to_buf
	mov	DWORD PTR -36[rbp], eax
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -80[rbp]
	mov	DWORD PTR [rax], edx
	jmp	.L114
.L113:
	cmp	DWORD PTR -84[rbp], 0
	je	.L121
	call	clock@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	cmp	rax, QWORD PTR -24[rbp]
	jl	.L122
	mov	DWORD PTR -36[rbp], 1
	jmp	.L114
.L121:
	nop
	jmp	.L115
.L122:
	nop
.L115:
	cmp	QWORD PTR -96[rbp], 0
	je	.L114
	mov	rax, QWORD PTR -96[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L114
	mov	DWORD PTR -36[rbp], 2
.L114:
	mov	rax, QWORD PTR -56[rbp]
	add	rax, 24
	mov	rdi, rax
	call	pthread_mutex_unlock@PLT
	cmp	DWORD PTR -36[rbp], -1
	jne	.L123
	jmp	.L119
.L123:
	nop
	mov	rax, QWORD PTR -56[rbp]
	add	rax, 24
	mov	rdi, rax
	call	pthread_mutex_lock@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 4[rax]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	rax, QWORD PTR -56[rbp]
	add	rax, 24
	mov	rdi, rax
	call	pthread_mutex_unlock@PLT
	mov	eax, DWORD PTR -36[rbp]
.L111:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	queue_recv, .-queue_recv
	.globl	queue_destroy
	.type	queue_destroy, @function
queue_destroy:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -16[rbp], rax
	mov	DWORD PTR -20[rbp], 0
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 24
	mov	rdi, rax
	call	pthread_mutex_lock@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 4[rax]
	test	eax, eax
	je	.L125
	mov	DWORD PTR -24[rbp], 1
	jmp	.L126
.L125:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L127
	mov	DWORD PTR -24[rbp], 1
	jmp	.L126
.L127:
	mov	DWORD PTR -24[rbp], 0
.L126:
	mov	eax, DWORD PTR -24[rbp]
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	jne	.L128
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR 8[rax], 1
.L128:
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 24
	mov	rdi, rax
	call	pthread_mutex_unlock@PLT
	cmp	DWORD PTR -20[rbp], 0
	je	.L129
	mov	eax, 3
	jmp	.L130
.L129:
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 24
	mov	rdi, rax
	call	pthread_mutex_destroy@PLT
	jmp	.L131
.L132:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -16[rbp], rax
.L131:
	cmp	QWORD PTR -16[rbp], 0
	jne	.L132
	mov	eax, 0
.L130:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	queue_destroy, .-queue_destroy
	.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	"610800.c"
	.text
	.comm	queue,56,4
	.comm	stop,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"--- Test 1 ---\000"
	.align	2
.LC1:
	.ascii	"\012--- Test 2a ---\000"
	.align	2
.LC2:
	.ascii	"\012--- Test 2b ---\000"
	.align	2
.LC3:
	.ascii	"\012--- Test 3 ---\000"
	.align	2
.LC4:
	.ascii	"\012--- Test 4 ---\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 = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L4
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L4+4
	bl	queue_create
	ldr	r0, .L4+8
	bl	puts
	sub	r3, fp, #24
	ldr	r2, .L4+12
	mov	r1, #2
	mov	r0, r3
	bl	launch_test
	ldr	r0, .L4+16
	bl	puts
	sub	r3, fp, #24
	ldr	r2, .L4+20
	mov	r1, #4
	mov	r0, r3
	bl	launch_test
	ldr	r0, .L4+24
	bl	puts
	sub	r3, fp, #24
	ldr	r2, .L4+28
	mov	r1, #4
	mov	r0, r3
	bl	launch_test
	ldr	r0, .L4+32
	bl	puts
	sub	r3, fp, #24
	ldr	r2, .L4+36
	mov	r1, #1
	mov	r0, r3
	bl	launch_test
	ldr	r0, .L4+40
	bl	puts
	sub	r3, fp, #24
	ldr	r2, .L4+44
	mov	r1, #2
	mov	r0, r3
	bl	launch_test
	ldr	r0, .L4+4
	bl	queue_destroy
	mov	r3, #0
	ldr	r2, .L4
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L3
	bl	__stack_chk_fail
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC5
	.word	queue
	.word	.LC0
	.word	test1
	.word	.LC1
	.word	test2a
	.word	.LC2
	.word	test2b
	.word	.LC3
	.word	test3
	.word	.LC4
	.word	test4
	.size	main, .-main
	.align	2
	.global	launch_test
	.syntax unified
	.arm
	.fpu softvfp
	.type	launch_test, %function
launch_test:
	@ 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, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L7
.L8:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r0, r2, r3
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-24]
	mov	r1, #0
	bl	pthread_create
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L7:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L8
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L9
.L10:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L9:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L10
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	launch_test, .-launch_test
	.section	.rodata
	.align	2
.LC6:
	.ascii	"To jest wiadomosc!\000"
	.align	2
.LC7:
	.ascii	"Wyslano wiadomosc: %s\012\000"
	.align	2
.LC8:
	.ascii	"Odebrano wiadomosc o dlugosci %d i priorytecie %d: "
	.ascii	"%s\012\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	test1
	.syntax unified
	.arm
	.fpu softvfp
	.type	test1, %function
test1:
	@ args = 0, pretend = 0, frame = 160
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #168
	str	r0, [fp, #-160]
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-160]
	str	r3, [fp, #-144]
	mov	r3, #128
	str	r3, [fp, #-152]
	ldr	r3, [fp, #-144]
	cmp	r3, #0
	beq	.L13
	ldr	r3, [fp, #-144]
	cmp	r3, #1
	beq	.L14
	b	.L15
.L13:
	sub	r3, fp, #136
	mov	r2, #128
	ldr	r1, .L18+4
	mov	r0, r3
	bl	strncpy
	sub	r3, fp, #136
	mov	r0, r3
	bl	strlen
	str	r0, [fp, #-140]
	ldr	r3, [fp, #-140]
	add	r2, r3, #1
	sub	r1, fp, #136
	mov	r3, #0
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #1
	ldr	r0, .L18+8
	bl	queue_send
	sub	r3, fp, #136
	mov	r1, r3
	ldr	r0, .L18+12
	bl	printf
	b	.L15
.L14:
	sub	r3, fp, #148
	sub	r2, fp, #152
	sub	r1, fp, #136
	mov	r0, #0
	str	r0, [sp, #4]
	mov	r0, #0
	str	r0, [sp]
	ldr	r0, .L18+8
	bl	queue_recv
	ldr	r1, [fp, #-152]
	ldr	r2, [fp, #-148]
	sub	r3, fp, #136
	ldr	r0, .L18+16
	bl	printf
	nop
.L15:
	mov	r3, #0
	ldr	r2, .L18
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC9
	.word	.LC6
	.word	queue
	.word	.LC7
	.word	.LC8
	.size	test1, .-test1
	.section	.rodata
	.align	2
.LC10:
	.ascii	"Wiadomosc od watku %d\000"
	.align	2
.LC11:
	.ascii	"Odebrano wiadomosc o dlugosci %d i priorytecie %d: "
	.ascii	"\"%s\"\012\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	test2a
	.syntax unified
	.arm
	.fpu softvfp
	.type	test2a, %function
test2a:
	@ args = 0, pretend = 0, frame = 168
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #176
	str	r0, [fp, #-168]
	ldr	r3, .L34
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-168]
	str	r3, [fp, #-152]
	mov	r3, #128
	str	r3, [fp, #-164]
	ldr	r3, [fp, #-152]
	cmp	r3, #2
	bgt	.L21
	ldr	r3, [fp, #-152]
	cmp	r3, #0
	bge	.L22
	b	.L23
.L21:
	ldr	r3, [fp, #-152]
	cmp	r3, #3
	beq	.L24
	b	.L23
.L22:
	ldr	r3, [fp, #-152]
	rsb	r3, r3, #2
	str	r3, [fp, #-160]
	ldr	r3, [fp, #-160]
	sub	r0, fp, #136
	str	r3, [sp]
	ldr	r3, [fp, #-152]
	ldr	r2, .L34+4
	mov	r1, #128
	bl	snprintf
	sub	r3, fp, #136
	mov	r0, r3
	bl	strlen
	str	r0, [fp, #-140]
	ldr	r3, [fp, #-140]
	add	r2, r3, #1
	ldr	r3, [fp, #-160]
	sub	r1, fp, #136
	mov	r0, #0
	str	r0, [sp, #4]
	mov	r0, #0
	str	r0, [sp]
	ldr	r0, .L34+8
	bl	queue_send
	b	.L23
.L24:
	mov	r0, #0
	bl	time
	str	r0, [fp, #-148]
.L27:
	mov	r0, #0
	bl	time
	str	r0, [fp, #-144]
	ldr	r2, [fp, #-144]
	ldr	r3, [fp, #-148]
	cmp	r2, r3
	bne	.L33
	b	.L27
.L33:
	nop
	mov	r3, #0
	str	r3, [fp, #-156]
	b	.L28
.L29:
	sub	r3, fp, #160
	sub	r2, fp, #164
	sub	r1, fp, #136
	mov	r0, #0
	str	r0, [sp, #4]
	mov	r0, #0
	str	r0, [sp]
	ldr	r0, .L34+8
	bl	queue_recv
	ldr	r1, [fp, #-164]
	ldr	r2, [fp, #-160]
	sub	r3, fp, #136
	ldr	r0, .L34+12
	bl	printf
	ldr	r3, [fp, #-156]
	add	r3, r3, #1
	str	r3, [fp, #-156]
.L28:
	ldr	r3, [fp, #-156]
	cmp	r3, #2
	ble	.L29
	nop
.L23:
	mov	r3, #0
	ldr	r2, .L34
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L31
	bl	__stack_chk_fail
.L31:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L35:
	.align	2
.L34:
	.word	.LC12
	.word	.LC10
	.word	queue
	.word	.LC11
	.size	test2a, .-test2a
	.section	.rodata
	.align	2
.LC13:
	.ascii	"Watek %d otrzymal wiadomosc o priorytecie %d: \"%s\""
	.ascii	"\012\000"
	.align	2
.LC14:
	.ascii	"Opozniona wiadomosc\000"
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	test2b
	.syntax unified
	.arm
	.fpu softvfp
	.type	test2b, %function
test2b:
	@ args = 0, pretend = 0, frame = 168
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #176
	str	r0, [fp, #-168]
	ldr	r3, .L50
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-168]
	str	r3, [fp, #-152]
	mov	r3, #128
	str	r3, [fp, #-164]
	ldr	r3, [fp, #-152]
	cmp	r3, #2
	bgt	.L37
	ldr	r3, [fp, #-152]
	cmp	r3, #0
	bge	.L38
	b	.L39
.L37:
	ldr	r3, [fp, #-152]
	cmp	r3, #3
	beq	.L40
	b	.L39
.L38:
	sub	r3, fp, #160
	sub	r2, fp, #164
	sub	r1, fp, #136
	mov	r0, #0
	str	r0, [sp, #4]
	mov	r0, #0
	str	r0, [sp]
	ldr	r0, .L50+4
	bl	queue_recv
	ldr	r2, [fp, #-160]
	sub	r3, fp, #136
	ldr	r1, [fp, #-152]
	ldr	r0, .L50+8
	bl	printf
	b	.L39
.L40:
	sub	r3, fp, #136
	ldr	r2, .L50+12
	mov	ip, r3
	mov	lr, r2
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r3, [lr]
	str	r3, [ip]
	sub	r3, fp, #136
	mov	r0, r3
	bl	strlen
	str	r0, [fp, #-148]
	ldr	r3, [fp, #-148]
	add	r3, r3, #1
	str	r3, [fp, #-164]
	mov	r3, #0
	str	r3, [fp, #-156]
	b	.L41
.L45:
	mov	r0, #0
	bl	time
	str	r0, [fp, #-144]
.L44:
	mov	r0, #0
	bl	time
	str	r0, [fp, #-140]
	ldr	r2, [fp, #-140]
	ldr	r3, [fp, #-144]
	cmp	r2, r3
	bne	.L49
	b	.L44
.L49:
	nop
	ldr	r3, [fp, #-164]
	mov	r2, r3
	sub	r1, fp, #136
	mov	r3, #0
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	ldr	r3, [fp, #-156]
	ldr	r0, .L50+4
	bl	queue_send
	ldr	r3, [fp, #-156]
	add	r3, r3, #1
	str	r3, [fp, #-156]
.L41:
	ldr	r3, [fp, #-156]
	cmp	r3, #2
	ble	.L45
	nop
.L39:
	mov	r3, #0
	ldr	r2, .L50
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L47
	bl	__stack_chk_fail
.L47:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L51:
	.align	2
.L50:
	.word	.LC15
	.word	queue
	.word	.LC13
	.word	.LC14
	.size	test2b, .-test2b
	.section	.rodata
	.align	2
.LC16:
	.ascii	"Proba wyslania wiadomosci...\000"
	.align	2
.LC17:
	.ascii	"Nastapil timeout.\000"
	.align	2
.LC18:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	test3
	.syntax unified
	.arm
	.fpu softvfp
	.type	test3, %function
test3:
	@ args = 0, pretend = 0, frame = 160
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #168
	str	r0, [fp, #-160]
	ldr	r3, .L58
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-160]
	str	r3, [fp, #-152]
	mov	r3, #128
	str	r3, [fp, #-148]
	ldr	r3, [fp, #-152]
	cmp	r3, #0
	bne	.L53
	ldr	r0, .L58+4
	bl	puts
	ldr	r3, .L58+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	sub	r3, fp, #136
	mov	r2, #128
	ldr	r1, .L58+12
	mov	r0, r3
	bl	strncpy
	sub	r3, fp, #136
	mov	r0, r3
	bl	strlen
	str	r0, [fp, #-144]
	ldr	r3, [fp, #-144]
	add	r2, r3, #1
	sub	r1, fp, #136
	mov	r3, #0
	str	r3, [sp, #4]
	mov	r3, #3
	str	r3, [sp]
	mov	r3, #1
	ldr	r0, .L58+16
	bl	queue_send
	str	r0, [fp, #-140]
	ldr	r3, [fp, #-140]
	cmp	r3, #1
	bne	.L57
	ldr	r0, .L58+20
	bl	puts
.L57:
	nop
.L53:
	mov	r3, #0
	ldr	r2, .L58
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L56
	bl	__stack_chk_fail
.L56:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L59:
	.align	2
.L58:
	.word	.LC18
	.word	.LC16
	.word	stdout
	.word	.LC6
	.word	queue
	.word	.LC17
	.size	test3, .-test3
	.section	.rodata
	.align	2
.LC19:
	.ascii	"Nastapilo zatrzymanie przez zmienna stop.\000"
	.align	2
.LC20:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	test4
	.syntax unified
	.arm
	.fpu softvfp
	.type	test4, %function
test4:
	@ args = 0, pretend = 0, frame = 168
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #176
	str	r0, [fp, #-168]
	ldr	r3, .L73
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-168]
	str	r3, [fp, #-160]
	mov	r3, #128
	str	r3, [fp, #-156]
	ldr	r3, [fp, #-160]
	cmp	r3, #0
	beq	.L61
	ldr	r3, [fp, #-160]
	cmp	r3, #1
	beq	.L62
	b	.L63
.L61:
	ldr	r3, .L73+4
	mov	r2, #0
	str	r2, [r3]
	ldr	r0, .L73+8
	bl	puts
	ldr	r3, .L73+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	sub	r3, fp, #136
	mov	r2, #128
	ldr	r1, .L73+16
	mov	r0, r3
	bl	strncpy
	sub	r3, fp, #136
	mov	r0, r3
	bl	strlen
	str	r0, [fp, #-144]
	ldr	r3, [fp, #-144]
	add	r2, r3, #1
	sub	r1, fp, #136
	ldr	r3, .L73+4
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #1
	ldr	r0, .L73+20
	bl	queue_send
	str	r0, [fp, #-140]
	ldr	r3, [fp, #-140]
	cmp	r3, #2
	bne	.L71
	ldr	r0, .L73+24
	bl	puts
	b	.L71
.L62:
	mov	r0, #0
	bl	time
	str	r0, [fp, #-152]
.L67:
	mov	r0, #0
	bl	time
	str	r0, [fp, #-148]
	ldr	r2, [fp, #-148]
	ldr	r3, [fp, #-152]
	cmp	r2, r3
	bne	.L72
	b	.L67
.L72:
	nop
	ldr	r3, .L73+4
	mov	r2, #1
	str	r2, [r3]
	b	.L63
.L71:
	nop
.L63:
	mov	r3, #0
	ldr	r2, .L73
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L69
	bl	__stack_chk_fail
.L69:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L74:
	.align	2
.L73:
	.word	.LC20
	.word	stop
	.word	.LC16
	.word	stdout
	.word	.LC6
	.word	queue
	.word	.LC19
	.size	test4, .-test4
	.align	2
	.global	_add
	.syntax unified
	.arm
	.fpu softvfp
	.type	_add, %function
_add:
	@ args = 4, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r0, #20
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L76
	mov	r3, #0
	b	.L77
.L76:
	ldr	r3, [fp, #4]
	cmp	r3, #0
	beq	.L78
	ldr	r3, [fp, #4]
	ldr	r2, [fp, #-8]
	str	r2, [r3]
.L78:
	ldr	r3, [fp, #-32]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-8]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-32]
	ldr	r1, [fp, #-28]
	mov	r0, r3
	bl	memcpy
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-8]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-36]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #12]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #16]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-20]
	b	.L79
.L83:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r2, [fp, #-36]
	cmp	r2, r3
	bge	.L80
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L81
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #12]
	b	.L82
.L81:
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-24]
.L82:
	ldr	r3, [fp, #-24]
	b	.L77
.L80:
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-20]
.L79:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L83
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L84
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #12]
	b	.L85
.L84:
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-24]
.L85:
	ldr	r3, [fp, #-24]
.L77:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	_add, .-_add
	.align	2
	.global	_copy_to_buf
	.syntax unified
	.arm
	.fpu softvfp
	.type	_copy_to_buf, %function
_copy_to_buf:
	@ 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r2, r3
	bls	.L87
	mov	r3, #4
	b	.L88
.L87:
	ldr	r3, [fp, #-8]
	ldr	r1, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	mov	r2, r3
	ldr	r0, [fp, #-12]
	bl	memcpy
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	mov	r3, #0
.L88:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	_copy_to_buf, .-_copy_to_buf
	.align	2
	.global	_get_first
	.syntax unified
	.arm
	.fpu softvfp
	.type	_get_first, %function
_get_first:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	b	.L90
.L93:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #16]
	cmp	r3, #0
	bne	.L91
	ldr	r3, [fp, #-8]
	b	.L92
.L91:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-8]
.L90:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L93
	mov	r3, #0
.L92:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	_get_first, .-_get_first
	.align	2
	.global	_delete
	.syntax unified
	.arm
	.fpu softvfp
	.type	_delete, %function
_delete:
	@ 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]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-12]
	b	.L95
.L100:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	bne	.L96
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L97
	ldr	r3, [fp, #-12]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-8]
	str	r2, [r3, #12]
	b	.L98
.L97:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-16]
.L98:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	free
	ldr	r0, [fp, #-12]
	bl	free
	ldr	r3, [fp, #-16]
	b	.L99
.L96:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-12]
.L95:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L100
	ldr	r3, [fp, #-16]
.L99:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	_delete, .-_delete
	.align	2
	.global	queue_create
	.syntax unified
	.arm
	.fpu softvfp
	.type	queue_create, %function
queue_create:
	@ 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	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #12]
	ldr	r3, [fp, #-8]
	add	r3, r3, #16
	mov	r1, #0
	mov	r0, r3
	bl	pthread_mutex_init
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	queue_create, .-queue_create
	.section	.rodata
	.align	2
.LC21:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	queue_send
	.syntax unified
	.arm
	.fpu softvfp
	.type	queue_send, %function
queue_send:
	@ args = 8, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	str	r3, [fp, #-52]
	ldr	r3, [fp, #8]
	str	r3, [fp, #-56]
	ldr	r3, .L121
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mvn	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-24]
	bl	clock
	str	r0, [fp, #-20]
	ldr	r1, [fp, #4]
	mov	r2, r1
	lsl	r2, r2, #5
	sub	r2, r2, r1
	lsl	r3, r2, #6
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r1
	lsl	r3, r3, #6
	mov	r2, r3
	ldr	r3, [fp, #-20]
	add	r3, r3, r2
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L104
	mov	r3, #5
	b	.L115
.L104:
	ldr	r3, [fp, #-40]
	add	r3, r3, #16
	mov	r0, r3
	bl	pthread_mutex_lock
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L106
	ldr	r3, [fp, #-40]
	add	r3, r3, #16
	mov	r0, r3
	bl	pthread_mutex_unlock
	mov	r3, #5
	b	.L115
.L106:
	ldr	r3, [fp, #-40]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-40]
	str	r2, [r3]
	ldr	r3, [fp, #-40]
	ldr	r0, [r3, #12]
	ldr	r2, [fp, #-48]
	sub	r3, fp, #32
	str	r3, [sp]
	ldr	r3, [fp, #-52]
	ldr	r1, [fp, #-44]
	bl	_add
	mov	r2, r0
	ldr	r3, [fp, #-40]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-40]
	add	r3, r3, #16
	mov	r0, r3
	bl	pthread_mutex_unlock
.L113:
	ldr	r3, [fp, #-40]
	add	r3, r3, #16
	mov	r0, r3
	bl	pthread_mutex_lock
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #16]
	cmp	r3, #0
	beq	.L107
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L108
.L107:
	ldr	r3, [fp, #4]
	cmp	r3, #0
	beq	.L118
	bl	clock
	str	r0, [fp, #-12]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	blt	.L119
	mov	r3, #1
	str	r3, [fp, #-28]
	b	.L108
.L118:
	nop
	b	.L109
.L119:
	nop
.L109:
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	beq	.L108
	ldr	r3, [fp, #-56]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L108
	mov	r3, #2
	str	r3, [fp, #-28]
.L108:
	ldr	r3, [fp, #-40]
	add	r3, r3, #16
	mov	r0, r3
	bl	pthread_mutex_unlock
	ldr	r3, [fp, #-28]
	cmn	r3, #1
	bne	.L120
	b	.L113
.L120:
	nop
	ldr	r3, [fp, #-40]
	add	r3, r3, #16
	mov	r0, r3
	bl	pthread_mutex_lock
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L114
	ldr	r3, [fp, #-40]
	ldr	r3, [r3]
	sub	r2, r3, #1
	ldr	r3, [fp, #-40]
	str	r2, [r3]
.L114:
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #12]
	ldr	r2, [fp, #-32]
	mov	r1, r2
	mov	r0, r3
	bl	_delete
	mov	r2, r0
	ldr	r3, [fp, #-40]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-40]
	add	r3, r3, #16
	mov	r0, r3
	bl	pthread_mutex_unlock
	ldr	r3, [fp, #-28]
.L115:
	ldr	r2, .L121
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L116
	bl	__stack_chk_fail
.L116:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L122:
	.align	2
.L121:
	.word	.LC21
	.size	queue_send, .-queue_send
	.align	2
	.global	queue_recv
	.syntax unified
	.arm
	.fpu softvfp
	.type	queue_recv, %function
queue_recv:
	@ args = 8, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	str	r3, [fp, #-44]
	mvn	r3, #0
	str	r3, [fp, #-24]
	bl	clock
	str	r0, [fp, #-20]
	ldr	r1, [fp, #4]
	mov	r2, r1
	lsl	r2, r2, #5
	sub	r2, r2, r1
	lsl	r3, r2, #6
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r1
	lsl	r3, r3, #6
	mov	r2, r3
	ldr	r3, [fp, #-20]
	add	r3, r3, r2
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L124
	mov	r3, #5
	b	.L125
.L124:
	ldr	r3, [fp, #-32]
	add	r3, r3, #16
	mov	r0, r3
	bl	pthread_mutex_lock
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L126
	ldr	r3, [fp, #-32]
	add	r3, r3, #16
	mov	r0, r3
	bl	pthread_mutex_unlock
	mov	r3, #5
	b	.L125
.L126:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #4]
	add	r2, r3, #1
	ldr	r3, [fp, #-32]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-32]
	add	r3, r3, #16
	mov	r0, r3
	bl	pthread_mutex_unlock
.L133:
	ldr	r3, [fp, #-32]
	add	r3, r3, #16
	mov	r0, r3
	bl	pthread_mutex_lock
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L127
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #12]
	mov	r0, r3
	bl	_get_first
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r2, #1
	str	r2, [r3, #16]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	sub	r2, r3, #1
	ldr	r3, [fp, #-32]
	str	r2, [r3]
	ldr	r2, [fp, #-40]
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-8]
	bl	_copy_to_buf
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-44]
	str	r2, [r3]
	b	.L128
.L127:
	ldr	r3, [fp, #4]
	cmp	r3, #0
	beq	.L135
	bl	clock
	str	r0, [fp, #-12]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	blt	.L136
	mov	r3, #1
	str	r3, [fp, #-24]
	b	.L128
.L135:
	nop
	b	.L129
.L136:
	nop
.L129:
	ldr	r3, [fp, #8]
	cmp	r3, #0
	beq	.L128
	ldr	r3, [fp, #8]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L128
	mov	r3, #2
	str	r3, [fp, #-24]
.L128:
	ldr	r3, [fp, #-32]
	add	r3, r3, #16
	mov	r0, r3
	bl	pthread_mutex_unlock
	ldr	r3, [fp, #-24]
	cmn	r3, #1
	bne	.L137
	b	.L133
.L137:
	nop
	ldr	r3, [fp, #-32]
	add	r3, r3, #16
	mov	r0, r3
	bl	pthread_mutex_lock
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #4]
	sub	r2, r3, #1
	ldr	r3, [fp, #-32]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-32]
	add	r3, r3, #16
	mov	r0, r3
	bl	pthread_mutex_unlock
	ldr	r3, [fp, #-24]
.L125:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	queue_recv, .-queue_recv
	.align	2
	.global	queue_destroy
	.syntax unified
	.arm
	.fpu softvfp
	.type	queue_destroy, %function
queue_destroy:
	@ 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]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	add	r3, r3, #16
	mov	r0, r3
	bl	pthread_mutex_lock
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L139
	mov	r3, #1
	str	r3, [fp, #-16]
	b	.L140
.L139:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L141
	mov	r3, #1
	str	r3, [fp, #-16]
	b	.L140
.L141:
	mov	r3, #0
	str	r3, [fp, #-16]
.L140:
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L142
	ldr	r3, [fp, #-24]
	mov	r2, #1
	str	r2, [r3, #8]
.L142:
	ldr	r3, [fp, #-24]
	add	r3, r3, #16
	mov	r0, r3
	bl	pthread_mutex_unlock
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L143
	mov	r3, #3
	b	.L144
.L143:
	ldr	r3, [fp, #-24]
	add	r3, r3, #16
	mov	r0, r3
	bl	pthread_mutex_destroy
	b	.L145
.L146:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	free
	ldr	r0, [fp, #-20]
	bl	free
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-20]
.L145:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L146
	mov	r3, #0
.L144:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	queue_destroy, .-queue_destroy
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
