	.file	"481397.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"the_stack_data/481397.c"
.LC1:
	.string	"res == 0"
	.text
	.type	queue_init, @function
queue_init:
.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	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 168
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	eax, DWORD PTR -28[rbp]
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 136[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -28[rbp]
	mov	DWORD PTR 156[rax], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 152[rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 144[rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 148[rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 160[rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_mutex_init@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L2
	lea	rcx, __PRETTY_FUNCTION__.10[rip]
	mov	edx, 110
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L2:
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 40
	mov	esi, 0
	mov	rdi, rax
	call	pthread_cond_init@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L3
	lea	rcx, __PRETTY_FUNCTION__.10[rip]
	mov	edx, 113
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L3:
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 88
	mov	esi, 0
	mov	rdi, rax
	call	pthread_cond_init@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L5
	lea	rcx, __PRETTY_FUNCTION__.10[rip]
	mov	edx, 116
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L5:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	queue_init, .-queue_init
	.section	.rodata
.LC2:
	.string	"!q->closed"
	.text
	.type	queue_produce, @function
queue_produce:
.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	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	pthread_mutex_lock@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L8
	lea	rcx, __PRETTY_FUNCTION__.9[rip]
	mov	edx, 123
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L9:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	add	rdx, 88
	mov	rsi, rax
	mov	rdi, rdx
	call	pthread_cond_wait@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L8
	lea	rcx, __PRETTY_FUNCTION__.9[rip]
	mov	edx, 127
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L8:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 152[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 156[rax]
	cmp	edx, eax
	je	.L9
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 160[rax]
	test	eax, eax
	je	.L10
	lea	rcx, __PRETTY_FUNCTION__.9[rip]
	mov	edx, 130
	lea	rsi, .LC0[rip]
	lea	rdi, .LC2[rip]
	call	__assert_fail@PLT
.L10:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 136[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 148[rax]
	mov	eax, eax
	sal	rax, 2
	add	rdx, rax
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR [rdx], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 148[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	ecx, DWORD PTR 156[rax]
	mov	eax, edx
	mov	edx, 0
	div	ecx
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 148[rax], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 152[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 152[rax], edx
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 40
	mov	rdi, rax
	call	pthread_cond_broadcast@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L11
	lea	rcx, __PRETTY_FUNCTION__.9[rip]
	mov	edx, 137
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L11:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	pthread_mutex_unlock@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L13
	lea	rcx, __PRETTY_FUNCTION__.9[rip]
	mov	edx, 140
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L13:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	queue_produce, .-queue_produce
	.type	queue_consume, @function
queue_consume:
.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 -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	pthread_mutex_lock@PLT
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], 0
	je	.L16
	lea	rcx, __PRETTY_FUNCTION__.8[rip]
	mov	edx, 147
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L20:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 160[rax]
	test	eax, eax
	je	.L17
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	pthread_mutex_unlock@PLT
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], 0
	je	.L18
	lea	rcx, __PRETTY_FUNCTION__.8[rip]
	mov	edx, 152
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L18:
	mov	eax, -1
	jmp	.L19
.L17:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	add	rdx, 40
	mov	rsi, rax
	mov	rdi, rdx
	call	pthread_cond_wait@PLT
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], 0
	je	.L16
	lea	rcx, __PRETTY_FUNCTION__.8[rip]
	mov	edx, 157
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L16:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 152[rax]
	test	eax, eax
	je	.L20
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 136[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 144[rax]
	mov	eax, eax
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 144[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	ecx, DWORD PTR 156[rax]
	mov	eax, edx
	mov	edx, 0
	div	ecx
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 144[rax], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 152[rax]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 152[rax], edx
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 88
	mov	rdi, rax
	call	pthread_cond_broadcast@PLT
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], 0
	je	.L21
	lea	rcx, __PRETTY_FUNCTION__.8[rip]
	mov	edx, 165
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L21:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	pthread_mutex_unlock@PLT
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], 0
	je	.L22
	lea	rcx, __PRETTY_FUNCTION__.8[rip]
	mov	edx, 168
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L22:
	mov	eax, DWORD PTR -4[rbp]
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	queue_consume, .-queue_consume
	.type	queue_close, @function
queue_close:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	pthread_mutex_lock@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L24
	lea	rcx, __PRETTY_FUNCTION__.7[rip]
	mov	edx, 177
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L24:
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 160[rax], 1
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 40
	mov	rdi, rax
	call	pthread_cond_broadcast@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L25
	lea	rcx, __PRETTY_FUNCTION__.7[rip]
	mov	edx, 182
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L25:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	pthread_mutex_unlock@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L27
	lea	rcx, __PRETTY_FUNCTION__.7[rip]
	mov	edx, 185
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L27:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	queue_close, .-queue_close
	.type	queue_deinit, @function
queue_deinit:
.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	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	pthread_mutex_destroy@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L29
	lea	rcx, __PRETTY_FUNCTION__.6[rip]
	mov	edx, 192
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L29:
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 40
	mov	rdi, rax
	call	pthread_cond_destroy@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L30
	lea	rcx, __PRETTY_FUNCTION__.6[rip]
	mov	edx, 195
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L30:
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 88
	mov	rdi, rax
	call	pthread_cond_destroy@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L31
	lea	rcx, __PRETTY_FUNCTION__.6[rip]
	mov	edx, 198
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L31:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 136[rax]
	mov	rdi, rax
	call	free@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	queue_deinit, .-queue_deinit
	.section	.rodata
.LC3:
	.string	"Consumed data: %d\n"
.LC4:
	.string	"Consumer thread terminated"
	.text
	.globl	consumer_thread
	.type	consumer_thread, @function
consumer_thread:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L33
.L34:
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
.L33:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	queue_consume
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jns	.L34
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	consumer_thread, .-consumer_thread
	.section	.rodata
.LC5:
	.string	"res == sizeof(c)"
	.text
	.globl	producer_thread
	.type	producer_thread, @function
producer_thread:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 8[rax]
	lea	rcx, -28[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 4
	je	.L37
	lea	rcx, __PRETTY_FUNCTION__.5[rip]
	mov	edx, 223
	lea	rsi, .LC0[rip]
	lea	rdi, .LC5[rip]
	call	__assert_fail@PLT
.L37:
	mov	eax, DWORD PTR -28[rbp]
	mov	edi, eax
	call	ntohl@PLT
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	test	eax, eax
	jns	.L38
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	queue_close
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 12[rax]
	mov	edi, eax
	call	close@PLT
	jmp	.L39
.L38:
	mov	edx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	esi, edx
	mov	rdi, rax
	call	queue_produce
.L39:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 8[rax]
	mov	edi, eax
	call	close@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L41
	call	__stack_chk_fail@PLT
.L41:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	producer_thread, .-producer_thread
	.section	.rodata
.LC6:
	.string	"res > 0"
.LC7:
	.string	"New connection accepted"
	.text
	.globl	serve
	.type	serve, @function
serve:
.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, 208
	mov	QWORD PTR -200[rbp], rdi
	mov	DWORD PTR -204[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -152[rbp]
	mov	rdi, rax
	call	pipe@PLT
	mov	DWORD PTR -176[rbp], eax
	cmp	DWORD PTR -176[rbp], 0
	je	.L43
	lea	rcx, __PRETTY_FUNCTION__.4[rip]
	mov	edx, 246
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L43:
	mov	eax, DWORD PTR -204[rbp]
	mov	DWORD PTR -180[rbp], eax
	mov	eax, DWORD PTR -152[rbp]
	cmp	DWORD PTR -180[rbp], eax
	jge	.L44
	mov	eax, DWORD PTR -152[rbp]
	mov	DWORD PTR -180[rbp], eax
.L44:
	add	DWORD PTR -180[rbp], 1
.L53:
	lea	rax, -144[rbp]
	mov	edx, 128
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	eax, DWORD PTR -204[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -144[rbp+rax*8]
	mov	eax, DWORD PTR -204[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	cdqe
	or	rdi, rax
	mov	rdx, rdi
	movsx	rax, esi
	mov	QWORD PTR -144[rbp+rax*8], rdx
	mov	eax, DWORD PTR -152[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -144[rbp+rax*8]
	mov	eax, DWORD PTR -152[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	cdqe
	or	rdi, rax
	mov	rdx, rdi
	movsx	rax, esi
	mov	QWORD PTR -144[rbp+rax*8], rdx
	lea	rsi, -144[rbp]
	mov	eax, DWORD PTR -180[rbp]
	mov	r8d, 0
	mov	ecx, 0
	mov	edx, 0
	mov	edi, eax
	call	select@PLT
	mov	DWORD PTR -176[rbp], eax
	cmp	DWORD PTR -176[rbp], 0
	jg	.L45
	lea	rcx, __PRETTY_FUNCTION__.4[rip]
	mov	edx, 261
	lea	rsi, .LC0[rip]
	lea	rdi, .LC6[rip]
	call	__assert_fail@PLT
.L45:
	mov	eax, DWORD PTR -152[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	cdqe
	mov	rsi, QWORD PTR -144[rbp+rax*8]
	mov	eax, DWORD PTR -152[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	cdqe
	and	rax, rsi
	test	rax, rax
	je	.L46
	mov	eax, DWORD PTR -152[rbp]
	lea	rcx, -168[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -176[rbp], eax
	cmp	DWORD PTR -176[rbp], 0
	je	.L47
	lea	rcx, __PRETTY_FUNCTION__.4[rip]
	mov	edx, 266
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L47:
	mov	eax, DWORD PTR -152[rbp]
	mov	edi, eax
	call	close@PLT
	nop
	mov	eax, DWORD PTR -204[rbp]
	mov	edi, eax
	call	close@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L54
	jmp	.L55
.L46:
	mov	eax, DWORD PTR -204[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	cdqe
	mov	rsi, QWORD PTR -144[rbp+rax*8]
	mov	eax, DWORD PTR -204[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	cdqe
	and	rax, rsi
	test	rax, rax
	je	.L53
.L52:
	mov	eax, DWORD PTR -204[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -172[rbp], eax
	cmp	DWORD PTR -172[rbp], -1
	jne	.L49
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 11
	jmp	.L53
.L49:
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -160[rbp], rax
	mov	rax, QWORD PTR -160[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR -160[rbp]
	mov	rdx, QWORD PTR -200[rbp]
	mov	QWORD PTR [rax], rdx
	mov	edx, DWORD PTR -148[rbp]
	mov	rax, QWORD PTR -160[rbp]
	mov	DWORD PTR 12[rax], edx
	mov	rax, QWORD PTR -160[rbp]
	mov	edx, DWORD PTR -172[rbp]
	mov	DWORD PTR 8[rax], edx
	mov	rdx, QWORD PTR -160[rbp]
	lea	rax, -168[rbp]
	mov	rcx, rdx
	lea	rdx, producer_thread[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	DWORD PTR -176[rbp], eax
	cmp	DWORD PTR -176[rbp], 0
	je	.L50
	lea	rcx, __PRETTY_FUNCTION__.4[rip]
	mov	edx, 291
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L50:
	mov	rax, QWORD PTR -168[rbp]
	mov	rdi, rax
	call	pthread_detach@PLT
	mov	DWORD PTR -176[rbp], eax
	cmp	DWORD PTR -176[rbp], 0
	je	.L52
	lea	rcx, __PRETTY_FUNCTION__.4[rip]
	mov	edx, 293
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L55:
	call	__stack_chk_fail@PLT
.L54:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	serve, .-serve
	.section	.rodata
.LC8:
	.string	"accsock >= 0"
.LC9:
	.string	"Server initialized\n"
	.text
	.globl	server
	.type	server, @function
server:
.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, 272
	mov	DWORD PTR -260[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -176[rbp]
	mov	esi, 3
	mov	rdi, rax
	call	queue_init
	mov	DWORD PTR -252[rbp], 0
	jmp	.L57
.L59:
	lea	rdx, -224[rbp]
	mov	eax, DWORD PTR -252[rbp]
	sal	rax, 3
	lea	rdi, [rdx+rax]
	lea	rax, -176[rbp]
	mov	rcx, rax
	lea	rdx, consumer_thread[rip]
	mov	esi, 0
	call	pthread_create@PLT
	mov	DWORD PTR -244[rbp], eax
	cmp	DWORD PTR -244[rbp], 0
	je	.L58
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 315
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L58:
	add	DWORD PTR -252[rbp], 1
.L57:
	cmp	DWORD PTR -252[rbp], 4
	jbe	.L59
	mov	edx, 0
	mov	esi, 2049
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -248[rbp], eax
	cmp	DWORD PTR -248[rbp], 0
	jns	.L60
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 320
	lea	rsi, .LC0[rip]
	lea	rdi, .LC8[rip]
	call	__assert_fail@PLT
.L60:
	mov	DWORD PTR -256[rbp], 1
	lea	rdx, -256[rbp]
	mov	eax, DWORD PTR -248[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 2
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	mov	DWORD PTR -244[rbp], eax
	cmp	DWORD PTR -244[rbp], 0
	je	.L61
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 324
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L61:
	lea	rax, -240[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -240[rbp], 2
	mov	edi, 2130706433
	call	htonl@PLT
	mov	DWORD PTR -236[rbp], eax
	mov	edi, 41788
	call	htons@PLT
	mov	WORD PTR -238[rbp], ax
	lea	rcx, -240[rbp]
	mov	eax, DWORD PTR -248[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	mov	DWORD PTR -244[rbp], eax
	cmp	DWORD PTR -244[rbp], 0
	je	.L62
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 333
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L62:
	mov	eax, DWORD PTR -248[rbp]
	mov	esi, 10
	mov	edi, eax
	call	listen@PLT
	mov	DWORD PTR -244[rbp], eax
	cmp	DWORD PTR -244[rbp], 0
	je	.L63
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 336
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L63:
	mov	eax, DWORD PTR -260[rbp]
	mov	edi, eax
	call	close@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 19
	mov	esi, 1
	lea	rdi, .LC9[rip]
	call	fwrite@PLT
	mov	edx, DWORD PTR -248[rbp]
	lea	rax, -176[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	serve
	mov	DWORD PTR -252[rbp], 0
	jmp	.L64
.L66:
	mov	eax, DWORD PTR -252[rbp]
	mov	rax, QWORD PTR -224[rbp+rax*8]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	DWORD PTR -244[rbp], eax
	cmp	DWORD PTR -244[rbp], 0
	je	.L65
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 346
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L65:
	add	DWORD PTR -252[rbp], 1
.L64:
	cmp	DWORD PTR -252[rbp], 4
	jbe	.L66
	lea	rax, -176[rbp]
	mov	rdi, rax
	call	queue_deinit
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L68
	call	__stack_chk_fail@PLT
.L68:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	server, .-server
	.section	.rodata
.LC10:
	.string	"sock >= 0"
.LC11:
	.string	"count == sizeof(value)"
.LC12:
	.string	"count == 0"
	.text
	.globl	send_unit
	.type	send_unit, @function
send_unit:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	DWORD PTR -68[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -48[rbp], eax
	cmp	DWORD PTR -48[rbp], 0
	jns	.L70
	lea	rcx, __PRETTY_FUNCTION__.2[rip]
	mov	edx, 358
	lea	rsi, .LC0[rip]
	lea	rdi, .LC10[rip]
	call	__assert_fail@PLT
.L70:
	lea	rax, -32[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -32[rbp], 2
	mov	edi, 2130706433
	call	htonl@PLT
	mov	DWORD PTR -28[rbp], eax
	mov	edi, 41788
	call	htons@PLT
	mov	WORD PTR -30[rbp], ax
	lea	rcx, -32[rbp]
	mov	eax, DWORD PTR -48[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	mov	DWORD PTR -44[rbp], eax
	cmp	DWORD PTR -44[rbp], 0
	je	.L71
	lea	rcx, __PRETTY_FUNCTION__.2[rip]
	mov	edx, 367
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L71:
	mov	eax, DWORD PTR -68[rbp]
	mov	edi, eax
	call	htonl@PLT
	mov	DWORD PTR -68[rbp], eax
	lea	rcx, -68[rbp]
	mov	eax, DWORD PTR -48[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 4
	je	.L72
	lea	rcx, __PRETTY_FUNCTION__.2[rip]
	mov	edx, 371
	lea	rsi, .LC0[rip]
	lea	rdi, .LC11[rip]
	call	__assert_fail@PLT
.L72:
	mov	eax, DWORD PTR -48[rbp]
	mov	esi, 1
	mov	edi, eax
	call	shutdown@PLT
	lea	rcx, -52[rbp]
	mov	eax, DWORD PTR -48[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	je	.L73
	lea	rcx, __PRETTY_FUNCTION__.2[rip]
	mov	edx, 377
	lea	rsi, .LC0[rip]
	lea	rdi, .LC12[rip]
	call	__assert_fail@PLT
.L73:
	mov	eax, DWORD PTR -48[rbp]
	mov	edi, eax
	call	close@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L74
	call	__stack_chk_fail@PLT
.L74:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	send_unit, .-send_unit
	.globl	send_units
	.type	send_units, @function
send_units:
.LFB16:
	.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	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -4[rbp], eax
	jmp	.L76
.L77:
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	send_unit
	add	DWORD PTR -4[rbp], 1
.L76:
	mov	edx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -24[rbp]
	add	eax, edx
	cmp	DWORD PTR -4[rbp], eax
	jl	.L77
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	send_units, .-send_units
	.section	.rodata
.LC13:
	.string	"pid >= 0"
.LC14:
	.string	"res != -1"
	.text
	.globl	client
	.type	client, @function
client:
.LFB17:
	.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 -16[rbp], 0
	mov	DWORD PTR -12[rbp], 0
	jmp	.L79
.L83:
	call	fork@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jns	.L80
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 395
	lea	rsi, .LC0[rip]
	lea	rdi, .LC13[rip]
	call	__assert_fail@PLT
.L80:
	cmp	DWORD PTR -4[rbp], 0
	jne	.L81
	mov	eax, DWORD PTR -12[rbp]
	add	eax, eax
	mov	esi, 2
	mov	edi, eax
	call	send_units
	mov	eax, 0
	jmp	.L82
.L81:
	add	DWORD PTR -16[rbp], 1
	add	DWORD PTR -12[rbp], 1
.L79:
	cmp	DWORD PTR -12[rbp], 4
	jbe	.L83
	jmp	.L84
.L86:
	mov	edi, 0
	call	wait@PLT
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], -1
	jne	.L85
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 407
	lea	rsi, .LC0[rip]
	lea	rdi, .LC14[rip]
	call	__assert_fail@PLT
.L85:
	sub	DWORD PTR -16[rbp], 1
.L84:
	cmp	DWORD PTR -16[rbp], 0
	jg	.L86
	mov	edi, -1
	call	send_unit
	mov	eax, 0
.L82:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	client, .-client
	.section	.rodata
.LC15:
	.string	"wpid = pid"
	.text
	.globl	main
	.type	main, @function
main:
.LFB18:
	.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	rax, -16[rbp]
	mov	rdi, rax
	call	pipe@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	je	.L88
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 421
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L88:
	call	fork@PLT
	mov	DWORD PTR -32[rbp], eax
	cmp	DWORD PTR -32[rbp], 0
	jns	.L89
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 424
	lea	rsi, .LC0[rip]
	lea	rdi, .LC13[rip]
	call	__assert_fail@PLT
.L89:
	cmp	DWORD PTR -32[rbp], 0
	jne	.L90
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -16[rbp]
	lea	rcx, -40[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	je	.L91
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 431
	lea	rsi, .LC0[rip]
	lea	rdi, .LC12[rip]
	call	__assert_fail@PLT
.L91:
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	close@PLT
	call	client
	jmp	.L94
.L90:
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	server
	mov	DWORD PTR -36[rbp], eax
	mov	edi, 0
	call	wait@PLT
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR -32[rbp]
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 0
	jne	.L93
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 441
	lea	rsi, .LC0[rip]
	lea	rdi, .LC15[rip]
	call	__assert_fail@PLT
.L93:
	mov	eax, DWORD PTR -36[rbp]
.L94:
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L95
	call	__stack_chk_fail@PLT
.L95:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	main, .-main
	.section	.rodata
	.align 8
	.type	__PRETTY_FUNCTION__.10, @object
	.size	__PRETTY_FUNCTION__.10, 11
__PRETTY_FUNCTION__.10:
	.string	"queue_init"
	.align 8
	.type	__PRETTY_FUNCTION__.9, @object
	.size	__PRETTY_FUNCTION__.9, 14
__PRETTY_FUNCTION__.9:
	.string	"queue_produce"
	.align 8
	.type	__PRETTY_FUNCTION__.8, @object
	.size	__PRETTY_FUNCTION__.8, 14
__PRETTY_FUNCTION__.8:
	.string	"queue_consume"
	.align 8
	.type	__PRETTY_FUNCTION__.7, @object
	.size	__PRETTY_FUNCTION__.7, 12
__PRETTY_FUNCTION__.7:
	.string	"queue_close"
	.align 8
	.type	__PRETTY_FUNCTION__.6, @object
	.size	__PRETTY_FUNCTION__.6, 13
__PRETTY_FUNCTION__.6:
	.string	"queue_deinit"
	.align 16
	.type	__PRETTY_FUNCTION__.5, @object
	.size	__PRETTY_FUNCTION__.5, 16
__PRETTY_FUNCTION__.5:
	.string	"producer_thread"
	.type	__PRETTY_FUNCTION__.4, @object
	.size	__PRETTY_FUNCTION__.4, 6
__PRETTY_FUNCTION__.4:
	.string	"serve"
	.type	__PRETTY_FUNCTION__.3, @object
	.size	__PRETTY_FUNCTION__.3, 7
__PRETTY_FUNCTION__.3:
	.string	"server"
	.align 8
	.type	__PRETTY_FUNCTION__.2, @object
	.size	__PRETTY_FUNCTION__.2, 10
__PRETTY_FUNCTION__.2:
	.string	"send_unit"
	.type	__PRETTY_FUNCTION__.1, @object
	.size	__PRETTY_FUNCTION__.1, 7
__PRETTY_FUNCTION__.1:
	.string	"client"
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 5
__PRETTY_FUNCTION__.0:
	.string	"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	"481397.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"the_stack_data/481397.c\000"
	.align	2
.LC1:
	.ascii	"res == 0\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	queue_init, %function
queue_init:
	@ 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	r2, #144
	mov	r1, #0
	ldr	r0, [fp, #-16]
	bl	memset
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-16]
	str	r2, [r3, #120]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-20]
	str	r2, [r3, #136]
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3, #132]
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3, #124]
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3, #128]
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3, #140]
	ldr	r3, [fp, #-16]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_mutex_init
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L2
	ldr	r3, .L6
	mov	r2, #110
	ldr	r1, .L6+4
	ldr	r0, .L6+8
	bl	__assert_fail
.L2:
	ldr	r3, [fp, #-16]
	add	r3, r3, #24
	mov	r1, #0
	mov	r0, r3
	bl	pthread_cond_init
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L3
	ldr	r3, .L6
	mov	r2, #113
	ldr	r1, .L6+4
	ldr	r0, .L6+8
	bl	__assert_fail
.L3:
	ldr	r3, [fp, #-16]
	add	r3, r3, #72
	mov	r1, #0
	mov	r0, r3
	bl	pthread_cond_init
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L5
	ldr	r3, .L6
	mov	r2, #116
	ldr	r1, .L6+4
	ldr	r0, .L6+8
	bl	__assert_fail
.L5:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	__PRETTY_FUNCTION__.7174
	.word	.LC0
	.word	.LC1
	.size	queue_init, .-queue_init
	.section	.rodata
	.align	2
.LC2:
	.ascii	"!q->closed\000"
	.global	__aeabi_uidivmod
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	queue_produce, %function
queue_produce:
	@ 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]
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	pthread_mutex_lock
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L10
	ldr	r3, .L16
	mov	r2, #123
	ldr	r1, .L16+4
	ldr	r0, .L16+8
	bl	__assert_fail
.L11:
	ldr	r3, [fp, #-16]
	add	r3, r3, #72
	ldr	r2, [fp, #-16]
	mov	r1, r2
	mov	r0, r3
	bl	pthread_cond_wait
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L10
	ldr	r3, .L16
	mov	r2, #127
	ldr	r1, .L16+4
	ldr	r0, .L16+8
	bl	__assert_fail
.L10:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #132]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #136]
	cmp	r2, r3
	beq	.L11
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #140]
	cmp	r3, #0
	beq	.L12
	ldr	r3, .L16
	mov	r2, #130
	ldr	r1, .L16+4
	ldr	r0, .L16+12
	bl	__assert_fail
.L12:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #120]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #128]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-20]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #128]
	add	r2, r3, #1
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #136]
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_uidivmod
	mov	r3, r1
	mov	r2, r3
	ldr	r3, [fp, #-16]
	str	r2, [r3, #128]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #132]
	add	r2, r3, #1
	ldr	r3, [fp, #-16]
	str	r2, [r3, #132]
	ldr	r3, [fp, #-16]
	add	r3, r3, #24
	mov	r0, r3
	bl	pthread_cond_broadcast
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L13
	ldr	r3, .L16
	mov	r2, #137
	ldr	r1, .L16+4
	ldr	r0, .L16+8
	bl	__assert_fail
.L13:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	pthread_mutex_unlock
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L15
	ldr	r3, .L16
	mov	r2, #140
	ldr	r1, .L16+4
	ldr	r0, .L16+8
	bl	__assert_fail
.L15:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	__PRETTY_FUNCTION__.7180
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	queue_produce, .-queue_produce
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	queue_consume, %function
queue_consume:
	@ 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]
	mov	r0, r3
	bl	pthread_mutex_lock
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L20
	ldr	r3, .L27
	mov	r2, #147
	ldr	r1, .L27+4
	ldr	r0, .L27+8
	bl	__assert_fail
.L24:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #140]
	cmp	r3, #0
	beq	.L21
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	pthread_mutex_unlock
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L22
	ldr	r3, .L27
	mov	r2, #152
	ldr	r1, .L27+4
	ldr	r0, .L27+8
	bl	__assert_fail
.L22:
	mvn	r3, #0
	b	.L23
.L21:
	ldr	r3, [fp, #-16]
	add	r3, r3, #24
	ldr	r2, [fp, #-16]
	mov	r1, r2
	mov	r0, r3
	bl	pthread_cond_wait
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L20
	ldr	r3, .L27
	mov	r2, #157
	ldr	r1, .L27+4
	ldr	r0, .L27+8
	bl	__assert_fail
.L20:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #132]
	cmp	r3, #0
	beq	.L24
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #120]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #124]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #124]
	add	r2, r3, #1
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #136]
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_uidivmod
	mov	r3, r1
	mov	r2, r3
	ldr	r3, [fp, #-16]
	str	r2, [r3, #124]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #132]
	sub	r2, r3, #1
	ldr	r3, [fp, #-16]
	str	r2, [r3, #132]
	ldr	r3, [fp, #-16]
	add	r3, r3, #72
	mov	r0, r3
	bl	pthread_cond_broadcast
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L25
	ldr	r3, .L27
	mov	r2, #165
	ldr	r1, .L27+4
	ldr	r0, .L27+8
	bl	__assert_fail
.L25:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	pthread_mutex_unlock
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L26
	ldr	r3, .L27
	mov	r2, #168
	ldr	r1, .L27+4
	ldr	r0, .L27+8
	bl	__assert_fail
.L26:
	ldr	r3, [fp, #-8]
.L23:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	__PRETTY_FUNCTION__.7188
	.word	.LC0
	.word	.LC1
	.size	queue_consume, .-queue_consume
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	queue_close, %function
queue_close:
	@ 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]
	mov	r0, r3
	bl	pthread_mutex_lock
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L30
	ldr	r3, .L34
	mov	r2, #177
	ldr	r1, .L34+4
	ldr	r0, .L34+8
	bl	__assert_fail
.L30:
	ldr	r3, [fp, #-16]
	mov	r2, #1
	str	r2, [r3, #140]
	ldr	r3, [fp, #-16]
	add	r3, r3, #24
	mov	r0, r3
	bl	pthread_cond_broadcast
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L31
	ldr	r3, .L34
	mov	r2, #182
	ldr	r1, .L34+4
	ldr	r0, .L34+8
	bl	__assert_fail
.L31:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	pthread_mutex_unlock
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L33
	ldr	r3, .L34
	mov	r2, #185
	ldr	r1, .L34+4
	ldr	r0, .L34+8
	bl	__assert_fail
.L33:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L35:
	.align	2
.L34:
	.word	__PRETTY_FUNCTION__.7197
	.word	.LC0
	.word	.LC1
	.size	queue_close, .-queue_close
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	queue_deinit, %function
queue_deinit:
	@ 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]
	mov	r0, r3
	bl	pthread_mutex_destroy
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L37
	ldr	r3, .L40
	mov	r2, #192
	ldr	r1, .L40+4
	ldr	r0, .L40+8
	bl	__assert_fail
.L37:
	ldr	r3, [fp, #-16]
	add	r3, r3, #24
	mov	r0, r3
	bl	pthread_cond_destroy
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L38
	ldr	r3, .L40
	mov	r2, #195
	ldr	r1, .L40+4
	ldr	r0, .L40+8
	bl	__assert_fail
.L38:
	ldr	r3, [fp, #-16]
	add	r3, r3, #72
	mov	r0, r3
	bl	pthread_cond_destroy
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L39
	ldr	r3, .L40
	mov	r2, #198
	ldr	r1, .L40+4
	ldr	r0, .L40+8
	bl	__assert_fail
.L39:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #120]
	mov	r0, r3
	bl	free
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L41:
	.align	2
.L40:
	.word	__PRETTY_FUNCTION__.7202
	.word	.LC0
	.word	.LC1
	.size	queue_deinit, .-queue_deinit
	.section	.rodata
	.align	2
.LC3:
	.ascii	"Consumed data: %d\012\000"
	.align	2
.LC4:
	.ascii	"Consumer thread terminated\000"
	.text
	.align	2
	.global	consumer_thread
	.syntax unified
	.arm
	.fpu softvfp
	.type	consumer_thread, %function
consumer_thread:
	@ 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]
	str	r3, [fp, #-12]
	b	.L43
.L44:
	ldr	r1, [fp, #-8]
	ldr	r0, .L46
	bl	printf
.L43:
	ldr	r0, [fp, #-12]
	bl	queue_consume
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L44
	ldr	r0, .L46+4
	bl	puts
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L47:
	.align	2
.L46:
	.word	.LC3
	.word	.LC4
	.size	consumer_thread, .-consumer_thread
	.section	.rodata
	.align	2
.LC5:
	.ascii	"res == sizeof(c)\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	producer_thread
	.syntax unified
	.arm
	.fpu softvfp
	.type	producer_thread, %function
producer_thread:
	@ 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, .L54
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	sub	r1, fp, #20
	mov	r2, #4
	mov	r0, r3
	bl	read
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #4
	beq	.L49
	ldr	r3, .L54+4
	mov	r2, #223
	ldr	r1, .L54+8
	ldr	r0, .L54+12
	bl	__assert_fail
.L49:
	ldr	r3, [fp, #-20]
	mov	r0, r3
	bl	ntohl
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bge	.L50
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	mov	r0, r3
	bl	queue_close
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	close
	b	.L51
.L50:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	mov	r1, r2
	mov	r0, r3
	bl	queue_produce
.L51:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	close
	ldr	r0, [fp, #-16]
	bl	free
	mov	r3, #0
	ldr	r2, .L54
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L53
	bl	__stack_chk_fail
.L53:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L55:
	.align	2
.L54:
	.word	.LC6
	.word	__PRETTY_FUNCTION__.7217
	.word	.LC0
	.word	.LC5
	.size	producer_thread, .-producer_thread
	.section	.rodata
	.align	2
.LC7:
	.ascii	"res > 0\000"
	.align	2
.LC8:
	.ascii	"New connection accepted\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	serve
	.syntax unified
	.arm
	.fpu softvfp
	.type	serve, %function
serve:
	@ 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]
	str	r1, [fp, #-172]
	ldr	r3, .L70
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #144
	mov	r0, r3
	bl	pipe
	str	r0, [fp, #-156]
	ldr	r3, [fp, #-156]
	cmp	r3, #0
	beq	.L57
	ldr	r3, .L70+4
	mov	r2, #246
	ldr	r1, .L70+8
	ldr	r0, .L70+12
	bl	__assert_fail
.L57:
	ldr	r3, [fp, #-172]
	str	r3, [fp, #-160]
	ldr	r3, [fp, #-144]
	ldr	r2, [fp, #-160]
	cmp	r2, r3
	bge	.L58
	ldr	r3, [fp, #-144]
	str	r3, [fp, #-160]
.L58:
	ldr	r3, [fp, #-160]
	add	r3, r3, #1
	str	r3, [fp, #-160]
.L67:
	sub	r3, fp, #136
	mov	r2, #128
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-172]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	lsl	r3, r2, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r1, [r3, #-132]
	ldr	r3, [fp, #-172]
	rsbs	r0, r3, #0
	and	r3, r3, #31
	and	r0, r0, #31
	rsbpl	r3, r0, #0
	mov	r0, #1
	lsl	r3, r0, r3
	orr	r1, r1, r3
	lsl	r3, r2, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	str	r1, [r3, #-132]
	ldr	r3, [fp, #-144]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	lsl	r3, r2, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r1, [r3, #-132]
	ldr	r3, [fp, #-144]
	rsbs	r0, r3, #0
	and	r3, r3, #31
	and	r0, r0, #31
	rsbpl	r3, r0, #0
	mov	r0, #1
	lsl	r3, r0, r3
	orr	r1, r1, r3
	lsl	r3, r2, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	str	r1, [r3, #-132]
	sub	r1, fp, #136
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	ldr	r0, [fp, #-160]
	bl	select
	str	r0, [fp, #-156]
	ldr	r3, [fp, #-156]
	cmp	r3, #0
	bgt	.L59
	ldr	r3, .L70+4
	ldr	r2, .L70+16
	ldr	r1, .L70+8
	ldr	r0, .L70+20
	bl	__assert_fail
.L59:
	ldr	r3, [fp, #-144]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-132]
	ldr	r3, [fp, #-144]
	rsbs	r1, r3, #0
	and	r3, r3, #31
	and	r1, r1, #31
	rsbpl	r3, r1, #0
	mov	r1, #1
	lsl	r3, r1, r3
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L60
	ldr	r3, [fp, #-144]
	sub	r1, fp, #164
	mov	r2, #4
	mov	r0, r3
	bl	read
	str	r0, [fp, #-156]
	ldr	r3, [fp, #-156]
	cmp	r3, #0
	beq	.L61
	ldr	r3, .L70+4
	ldr	r2, .L70+24
	ldr	r1, .L70+8
	ldr	r0, .L70+12
	bl	__assert_fail
.L61:
	ldr	r3, [fp, #-144]
	mov	r0, r3
	bl	close
	nop
	ldr	r0, [fp, #-172]
	bl	close
	nop
	ldr	r3, .L70
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L68
	b	.L69
.L60:
	ldr	r3, [fp, #-172]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-132]
	ldr	r3, [fp, #-172]
	rsbs	r1, r3, #0
	and	r3, r3, #31
	and	r1, r1, #31
	rsbpl	r3, r1, #0
	mov	r1, #1
	lsl	r3, r1, r3
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L67
.L66:
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-172]
	bl	accept
	str	r0, [fp, #-152]
	ldr	r3, [fp, #-152]
	cmn	r3, #1
	bne	.L63
	bl	__errno_location
	mov	r3, r0
	mov	r2, #11
	str	r2, [r3]
	b	.L67
.L63:
	ldr	r0, .L70+28
	bl	puts
	mov	r0, #12
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-148]
	mov	r2, #12
	mov	r1, #0
	ldr	r0, [fp, #-148]
	bl	memset
	ldr	r3, [fp, #-148]
	ldr	r2, [fp, #-168]
	str	r2, [r3]
	ldr	r2, [fp, #-140]
	ldr	r3, [fp, #-148]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-148]
	ldr	r2, [fp, #-152]
	str	r2, [r3, #4]
	sub	r0, fp, #164
	ldr	r3, [fp, #-148]
	ldr	r2, .L70+32
	mov	r1, #0
	bl	pthread_create
	str	r0, [fp, #-156]
	ldr	r3, [fp, #-156]
	cmp	r3, #0
	beq	.L64
	ldr	r3, .L70+4
	ldr	r2, .L70+36
	ldr	r1, .L70+8
	ldr	r0, .L70+12
	bl	__assert_fail
.L64:
	ldr	r3, [fp, #-164]
	mov	r0, r3
	bl	pthread_detach
	str	r0, [fp, #-156]
	ldr	r3, [fp, #-156]
	cmp	r3, #0
	beq	.L66
	ldr	r3, .L70+4
	ldr	r2, .L70+40
	ldr	r1, .L70+8
	ldr	r0, .L70+12
	bl	__assert_fail
.L69:
	bl	__stack_chk_fail
.L68:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L71:
	.align	2
.L70:
	.word	.LC9
	.word	__PRETTY_FUNCTION__.7224
	.word	.LC0
	.word	.LC1
	.word	261
	.word	.LC7
	.word	266
	.word	.LC8
	.word	producer_thread
	.word	291
	.word	293
	.size	serve, .-serve
	.section	.rodata
	.align	2
.LC10:
	.ascii	"accsock >= 0\000"
	.align	2
.LC11:
	.ascii	"Server initialized\012\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	server
	.syntax unified
	.arm
	.fpu softvfp
	.type	server, %function
server:
	@ args = 0, pretend = 0, frame = 216
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #224
	str	r0, [fp, #-216]
	ldr	r3, .L85
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #156
	mov	r1, #3
	mov	r0, r3
	bl	queue_init
	mov	r3, #0
	str	r3, [fp, #-204]
	b	.L73
.L75:
	sub	r2, fp, #176
	ldr	r3, [fp, #-204]
	lsl	r3, r3, #2
	add	r0, r2, r3
	sub	r3, fp, #156
	ldr	r2, .L85+4
	mov	r1, #0
	bl	pthread_create
	str	r0, [fp, #-196]
	ldr	r3, [fp, #-196]
	cmp	r3, #0
	beq	.L74
	ldr	r3, .L85+8
	ldr	r2, .L85+12
	ldr	r1, .L85+16
	ldr	r0, .L85+20
	bl	__assert_fail
.L74:
	ldr	r3, [fp, #-204]
	add	r3, r3, #1
	str	r3, [fp, #-204]
.L73:
	ldr	r3, [fp, #-204]
	cmp	r3, #4
	bls	.L75
	mov	r2, #0
	ldr	r1, .L85+24
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-200]
	ldr	r3, [fp, #-200]
	cmp	r3, #0
	bge	.L76
	ldr	r3, .L85+8
	mov	r2, #320
	ldr	r1, .L85+16
	ldr	r0, .L85+28
	bl	__assert_fail
.L76:
	mov	r3, #1
	str	r3, [fp, #-208]
	sub	r3, fp, #208
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, [fp, #-200]
	bl	setsockopt
	str	r0, [fp, #-196]
	ldr	r3, [fp, #-196]
	cmp	r3, #0
	beq	.L77
	ldr	r3, .L85+8
	mov	r2, #324
	ldr	r1, .L85+16
	ldr	r0, .L85+20
	bl	__assert_fail
.L77:
	sub	r3, fp, #192
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #2
	strh	r3, [fp, #-192]	@ movhi
	ldr	r0, .L85+32
	bl	htonl
	mov	r3, r0
	str	r3, [fp, #-188]
	ldr	r0, .L85+36
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-190]	@ movhi
	sub	r3, fp, #192
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-200]
	bl	bind
	str	r0, [fp, #-196]
	ldr	r3, [fp, #-196]
	cmp	r3, #0
	beq	.L78
	ldr	r3, .L85+8
	ldr	r2, .L85+40
	ldr	r1, .L85+16
	ldr	r0, .L85+20
	bl	__assert_fail
.L78:
	mov	r1, #10
	ldr	r0, [fp, #-200]
	bl	listen
	str	r0, [fp, #-196]
	ldr	r3, [fp, #-196]
	cmp	r3, #0
	beq	.L79
	ldr	r3, .L85+8
	mov	r2, #336
	ldr	r1, .L85+16
	ldr	r0, .L85+20
	bl	__assert_fail
.L79:
	ldr	r0, [fp, #-216]
	bl	close
	ldr	r3, .L85+44
	ldr	r3, [r3]
	mov	r2, #19
	mov	r1, #1
	ldr	r0, .L85+48
	bl	fwrite
	sub	r3, fp, #156
	ldr	r1, [fp, #-200]
	mov	r0, r3
	bl	serve
	mov	r3, #0
	str	r3, [fp, #-204]
	b	.L80
.L82:
	ldr	r3, [fp, #-204]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-172]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	str	r0, [fp, #-196]
	ldr	r3, [fp, #-196]
	cmp	r3, #0
	beq	.L81
	ldr	r3, .L85+8
	ldr	r2, .L85+52
	ldr	r1, .L85+16
	ldr	r0, .L85+20
	bl	__assert_fail
.L81:
	ldr	r3, [fp, #-204]
	add	r3, r3, #1
	str	r3, [fp, #-204]
.L80:
	ldr	r3, [fp, #-204]
	cmp	r3, #4
	bls	.L82
	sub	r3, fp, #156
	mov	r0, r3
	bl	queue_deinit
	mov	r3, #0
	ldr	r2, .L85
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L84
	bl	__stack_chk_fail
.L84:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L86:
	.align	2
.L85:
	.word	.LC12
	.word	consumer_thread
	.word	__PRETTY_FUNCTION__.7242
	.word	315
	.word	.LC0
	.word	.LC1
	.word	2049
	.word	.LC10
	.word	2130706433
	.word	41788
	.word	333
	.word	stderr
	.word	.LC11
	.word	346
	.size	server, .-server
	.section	.rodata
	.align	2
.LC13:
	.ascii	"sock >= 0\000"
	.align	2
.LC14:
	.ascii	"count == sizeof(value)\000"
	.align	2
.LC15:
	.ascii	"count == 0\000"
	.align	2
.LC16:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	send_unit
	.syntax unified
	.arm
	.fpu softvfp
	.type	send_unit, %function
send_unit:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-48]
	ldr	r3, .L93
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bge	.L88
	ldr	r3, .L93+4
	ldr	r2, .L93+8
	ldr	r1, .L93+12
	ldr	r0, .L93+16
	bl	__assert_fail
.L88:
	sub	r3, fp, #24
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #2
	strh	r3, [fp, #-24]	@ movhi
	ldr	r0, .L93+20
	bl	htonl
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r0, .L93+24
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-22]	@ movhi
	sub	r3, fp, #24
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-36]
	bl	connect
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L89
	ldr	r3, .L93+4
	ldr	r2, .L93+28
	ldr	r1, .L93+12
	ldr	r0, .L93+32
	bl	__assert_fail
.L89:
	ldr	r3, [fp, #-48]
	mov	r0, r3
	bl	htonl
	mov	r3, r0
	str	r3, [fp, #-48]
	sub	r3, fp, #48
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-36]
	bl	write
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #4
	beq	.L90
	ldr	r3, .L93+4
	ldr	r2, .L93+36
	ldr	r1, .L93+12
	ldr	r0, .L93+40
	bl	__assert_fail
.L90:
	mov	r1, #1
	ldr	r0, [fp, #-36]
	bl	shutdown
	sub	r3, fp, #40
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-36]
	bl	read
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L91
	ldr	r3, .L93+4
	ldr	r2, .L93+44
	ldr	r1, .L93+12
	ldr	r0, .L93+48
	bl	__assert_fail
.L91:
	ldr	r0, [fp, #-36]
	bl	close
	nop
	ldr	r3, .L93
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L92
	bl	__stack_chk_fail
.L92:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L94:
	.align	2
.L93:
	.word	.LC16
	.word	__PRETTY_FUNCTION__.7256
	.word	358
	.word	.LC0
	.word	.LC13
	.word	2130706433
	.word	41788
	.word	367
	.word	.LC1
	.word	371
	.word	.LC14
	.word	377
	.word	.LC15
	.size	send_unit, .-send_unit
	.align	2
	.global	send_units
	.syntax unified
	.arm
	.fpu softvfp
	.type	send_units, %function
send_units:
	@ 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]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	b	.L96
.L97:
	ldr	r0, [fp, #-8]
	bl	send_unit
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L96:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L97
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	send_units, .-send_units
	.section	.rodata
	.align	2
.LC17:
	.ascii	"pid >= 0\000"
	.align	2
.LC18:
	.ascii	"res != -1\000"
	.text
	.align	2
	.global	client
	.syntax unified
	.arm
	.fpu softvfp
	.type	client, %function
client:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L99
.L103:
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L100
	ldr	r3, .L107
	ldr	r2, .L107+4
	ldr	r1, .L107+8
	ldr	r0, .L107+12
	bl	__assert_fail
.L100:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L101
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #1
	mov	r1, #2
	mov	r0, r3
	bl	send_units
	mov	r3, #0
	b	.L102
.L101:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L99:
	ldr	r3, [fp, #-16]
	cmp	r3, #4
	bls	.L103
	b	.L104
.L106:
	mov	r0, #0
	bl	wait
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L105
	ldr	r3, .L107
	ldr	r2, .L107+16
	ldr	r1, .L107+8
	ldr	r0, .L107+20
	bl	__assert_fail
.L105:
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	str	r3, [fp, #-20]
.L104:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bgt	.L106
	mvn	r0, #0
	bl	send_unit
	mov	r3, #0
.L102:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L108:
	.align	2
.L107:
	.word	__PRETTY_FUNCTION__.7275
	.word	395
	.word	.LC0
	.word	.LC17
	.word	407
	.word	.LC18
	.size	client, .-client
	.section	.rodata
	.align	2
.LC19:
	.ascii	"wpid = pid\000"
	.align	2
.LC20:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, 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, #-40]
	str	r1, [fp, #-44]
	ldr	r3, .L118
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #16
	mov	r0, r3
	bl	pipe
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L110
	ldr	r3, .L118+4
	ldr	r2, .L118+8
	ldr	r1, .L118+12
	ldr	r0, .L118+16
	bl	__assert_fail
.L110:
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bge	.L111
	ldr	r3, .L118+4
	mov	r2, #424
	ldr	r1, .L118+12
	ldr	r0, .L118+20
	bl	__assert_fail
.L111:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L112
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-16]
	sub	r1, fp, #36
	mov	r2, #4
	mov	r0, r3
	bl	read
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L113
	ldr	r3, .L118+4
	ldr	r2, .L118+24
	ldr	r1, .L118+12
	ldr	r0, .L118+28
	bl	__assert_fail
.L113:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	close
	bl	client
	mov	r3, r0
	b	.L116
.L112:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	server
	str	r0, [fp, #-32]
	mov	r0, #0
	bl	wait
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L115
	ldr	r3, .L118+4
	ldr	r2, .L118+32
	ldr	r1, .L118+12
	ldr	r0, .L118+36
	bl	__assert_fail
.L115:
	ldr	r3, [fp, #-32]
.L116:
	ldr	r2, .L118
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L117
	bl	__stack_chk_fail
.L117:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L119:
	.align	2
.L118:
	.word	.LC20
	.word	__PRETTY_FUNCTION__.7289
	.word	421
	.word	.LC0
	.word	.LC1
	.word	.LC17
	.word	431
	.word	.LC15
	.word	441
	.word	.LC19
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.7174, %object
	.size	__PRETTY_FUNCTION__.7174, 11
__PRETTY_FUNCTION__.7174:
	.ascii	"queue_init\000"
	.align	2
	.type	__PRETTY_FUNCTION__.7180, %object
	.size	__PRETTY_FUNCTION__.7180, 14
__PRETTY_FUNCTION__.7180:
	.ascii	"queue_produce\000"
	.align	2
	.type	__PRETTY_FUNCTION__.7188, %object
	.size	__PRETTY_FUNCTION__.7188, 14
__PRETTY_FUNCTION__.7188:
	.ascii	"queue_consume\000"
	.align	2
	.type	__PRETTY_FUNCTION__.7197, %object
	.size	__PRETTY_FUNCTION__.7197, 12
__PRETTY_FUNCTION__.7197:
	.ascii	"queue_close\000"
	.align	2
	.type	__PRETTY_FUNCTION__.7202, %object
	.size	__PRETTY_FUNCTION__.7202, 13
__PRETTY_FUNCTION__.7202:
	.ascii	"queue_deinit\000"
	.align	2
	.type	__PRETTY_FUNCTION__.7217, %object
	.size	__PRETTY_FUNCTION__.7217, 16
__PRETTY_FUNCTION__.7217:
	.ascii	"producer_thread\000"
	.align	2
	.type	__PRETTY_FUNCTION__.7224, %object
	.size	__PRETTY_FUNCTION__.7224, 6
__PRETTY_FUNCTION__.7224:
	.ascii	"serve\000"
	.align	2
	.type	__PRETTY_FUNCTION__.7242, %object
	.size	__PRETTY_FUNCTION__.7242, 7
__PRETTY_FUNCTION__.7242:
	.ascii	"server\000"
	.align	2
	.type	__PRETTY_FUNCTION__.7256, %object
	.size	__PRETTY_FUNCTION__.7256, 10
__PRETTY_FUNCTION__.7256:
	.ascii	"send_unit\000"
	.align	2
	.type	__PRETTY_FUNCTION__.7275, %object
	.size	__PRETTY_FUNCTION__.7275, 7
__PRETTY_FUNCTION__.7275:
	.ascii	"client\000"
	.align	2
	.type	__PRETTY_FUNCTION__.7289, %object
	.size	__PRETTY_FUNCTION__.7289, 5
__PRETTY_FUNCTION__.7289:
	.ascii	"main\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
