	.file	"117329261.c"
	.intel_syntax noprefix
	.text
	.globl	gv_semProducer
	.bss
	.align 32
	.type	gv_semProducer, @object
	.size	gv_semProducer, 32
gv_semProducer:
	.zero	32
	.globl	gv_semCustomer
	.align 32
	.type	gv_semCustomer, @object
	.size	gv_semCustomer, 32
gv_semCustomer:
	.zero	32
	.globl	gv_semmutexProducer
	.align 32
	.type	gv_semmutexProducer, @object
	.size	gv_semmutexProducer, 32
gv_semmutexProducer:
	.zero	32
	.globl	gv_semmutexCustomer
	.align 32
	.type	gv_semmutexCustomer, @object
	.size	gv_semmutexCustomer, 32
gv_semmutexCustomer:
	.zero	32
	.globl	gv_semMutex
	.align 32
	.type	gv_semMutex, @object
	.size	gv_semMutex, 32
gv_semMutex:
	.zero	32
	.globl	gv_ifileIn
	.align 4
	.type	gv_ifileIn, @object
	.size	gv_ifileIn, 4
gv_ifileIn:
	.zero	4
	.globl	gv_ifileOut
	.align 4
	.type	gv_ifileOut, @object
	.size	gv_ifileOut, 4
gv_ifileOut:
	.zero	4
	.globl	gv_cBuffer
	.align 32
	.type	gv_cBuffer, @object
	.size	gv_cBuffer, 10250
gv_cBuffer:
	.zero	10250
	.globl	gv_iptrIn
	.align 4
	.type	gv_iptrIn, @object
	.size	gv_iptrIn, 4
gv_iptrIn:
	.zero	4
	.globl	gv_iptrOut
	.align 4
	.type	gv_iptrOut, @object
	.size	gv_iptrOut, 4
gv_iptrOut:
	.zero	4
	.globl	gv_iproCount
	.align 4
	.type	gv_iproCount, @object
	.size	gv_iproCount, 4
gv_iproCount:
	.zero	4
	.globl	count
	.align 4
	.type	count, @object
	.size	count, 4
count:
	.zero	4
	.globl	gv_iproducerNum
	.align 4
	.type	gv_iproducerNum, @object
	.size	gv_iproducerNum, 4
gv_iproducerNum:
	.zero	4
	.globl	gv_icustomerNum
	.align 4
	.type	gv_icustomerNum, @object
	.size	gv_icustomerNum, 4
gv_icustomerNum:
	.zero	4
	.globl	gv_iprocessNum
	.align 4
	.type	gv_iprocessNum, @object
	.size	gv_iprocessNum, 4
gv_iprocessNum:
	.zero	4
	.globl	gv_ulOffset
	.align 8
	.type	gv_ulOffset, @object
	.size	gv_ulOffset, 8
gv_ulOffset:
	.zero	8
	.globl	MAXBYTES
	.align 8
	.type	MAXBYTES, @object
	.size	MAXBYTES, 8
MAXBYTES:
	.zero	8
	.globl	gv_stfileStat
	.align 32
	.type	gv_stfileStat, @object
	.size	gv_stfileStat, 144
gv_stfileStat:
	.zero	144
	.section	.rodata
.LC0:
	.string	"customer quit\n"
.LC1:
	.string	"offset: %u   empty: %d \n"
	.text
	.globl	thrCustomer
	.type	thrCustomer, @function
thrCustomer:
.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, 1088
	mov	QWORD PTR -1080[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
.L3:
	lea	rdi, gv_semCustomer[rip]
	call	sem_wait@PLT
	lea	rdi, gv_semmutexCustomer[rip]
	call	sem_wait@PLT
	mov	eax, DWORD PTR gv_iptrOut[rip]
	mov	DWORD PTR -1060[rbp], eax
	mov	rax, QWORD PTR gv_ulOffset[rip]
	mov	QWORD PTR -1048[rbp], rax
	mov	eax, DWORD PTR -1060[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 10
	add	rax, rdx
	lea	rdx, gv_cBuffer[rip]
	add	rax, rdx
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -1056[rbp], eax
	mov	eax, DWORD PTR -1056[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR gv_ulOffset[rip]
	add	rax, rdx
	mov	QWORD PTR gv_ulOffset[rip], rax
	mov	eax, DWORD PTR gv_iptrOut[rip]
	lea	ecx, 1[rax]
	movsx	rax, ecx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 2
	mov	esi, ecx
	sar	esi, 31
	sub	eax, esi
	mov	edx, eax
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	sub	ecx, eax
	mov	edx, ecx
	mov	DWORD PTR gv_iptrOut[rip], edx
	mov	eax, DWORD PTR -1060[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 10
	add	rax, rdx
	lea	rdx, gv_cBuffer[rip]
	add	rdx, rax
	lea	rax, -1040[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	eax, DWORD PTR -1060[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 10
	add	rax, rdx
	lea	rdx, gv_cBuffer[rip]
	add	rax, rdx
	mov	edx, 1025
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rdi, gv_semmutexCustomer[rip]
	call	sem_post@PLT
	lea	rax, -1064[rbp]
	mov	rsi, rax
	lea	rdi, gv_semProducer[rip]
	call	sem_getvalue@PLT
	lea	rdi, gv_semProducer[rip]
	call	sem_post@PLT
	mov	rcx, QWORD PTR -1048[rbp]
	mov	eax, DWORD PTR -1056[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR gv_ifileOut[rip]
	lea	rsi, -1040[rbp]
	mov	edi, eax
	call	pwrite@PLT
	mov	DWORD PTR -1052[rbp], eax
	cmp	DWORD PTR -1052[rbp], 0
	jg	.L3
	mov	edx, DWORD PTR gv_iproCount[rip]
	mov	eax, DWORD PTR gv_iproducerNum[rip]
	cmp	edx, eax
	jne	.L3
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 14
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	ecx, DWORD PTR -1064[rbp]
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -1048[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	lea	rdi, gv_semCustomer[rip]
	call	sem_post@PLT
	mov	edi, 0
	call	pthread_exit@PLT
	.cfi_endproc
.LFE6:
	.size	thrCustomer, .-thrCustomer
	.section	.rodata
.LC2:
	.string	"producer quit\n"
.LC3:
	.string	"num: %d\n"
	.text
	.globl	thrProducer
	.type	thrProducer, @function
thrProducer:
.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, 1072
	mov	QWORD PTR -1064[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
.L7:
	lea	rdi, gv_semProducer[rip]
	call	sem_wait@PLT
	lea	rdi, gv_semmutexProducer[rip]
	call	sem_wait@PLT
	mov	eax, DWORD PTR gv_ifileIn[rip]
	lea	rcx, -1040[rbp]
	mov	edx, 1024
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -1048[rbp], eax
	cmp	DWORD PTR -1048[rbp], 0
	jg	.L6
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 14
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	eax, DWORD PTR gv_iproCount[rip]
	add	eax, 1
	mov	DWORD PTR gv_iproCount[rip], eax
	lea	rdi, gv_semCustomer[rip]
	call	sem_post@PLT
	lea	rdi, gv_semmutexProducer[rip]
	call	sem_post@PLT
	mov	edi, 0
	call	pthread_exit@PLT
.L6:
	mov	eax, DWORD PTR -1048[rbp]
	cdqe
	mov	BYTE PTR -1040[rbp+rax], 0
	mov	eax, DWORD PTR gv_iptrIn[rip]
	mov	DWORD PTR -1044[rbp], eax
	mov	eax, DWORD PTR gv_iptrIn[rip]
	lea	ecx, 1[rax]
	movsx	rax, ecx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 2
	mov	esi, ecx
	sar	esi, 31
	sub	eax, esi
	mov	edx, eax
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	sub	ecx, eax
	mov	edx, ecx
	mov	DWORD PTR gv_iptrIn[rip], edx
	mov	eax, DWORD PTR count[rip]
	add	eax, 1
	mov	DWORD PTR count[rip], eax
	mov	eax, DWORD PTR -1044[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 10
	add	rax, rdx
	lea	rdx, gv_cBuffer[rip]
	add	rdx, rax
	lea	rax, -1040[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
	lea	rdi, gv_semmutexProducer[rip]
	call	sem_post@PLT
	mov	edx, DWORD PTR count[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	lea	rdi, gv_semCustomer[rip]
	call	sem_post@PLT
	jmp	.L7
	.cfi_endproc
.LFE7:
	.size	thrProducer, .-thrProducer
	.section	.rodata
.LC4:
	.string	"textin"
.LC5:
	.string	"textout"
.LC6:
	.string	"main stop\n"
.LC8:
	.string	"timeuse: %lf\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 864
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -848[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	esi, 2048
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR gv_ifileIn[rip], eax
	mov	esi, 1
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR gv_ifileOut[rip], eax
	mov	eax, DWORD PTR gv_ifileIn[rip]
	lea	rsi, gv_stfileStat[rip]
	mov	edi, eax
	call	fstat@PLT
	mov	rax, QWORD PTR gv_stfileStat[rip+48]
	mov	QWORD PTR MAXBYTES[rip], rax
	mov	edx, 10
	mov	esi, 0
	lea	rdi, gv_semProducer[rip]
	call	sem_init@PLT
	mov	edx, 0
	mov	esi, 0
	lea	rdi, gv_semCustomer[rip]
	call	sem_init@PLT
	mov	edx, 1
	mov	esi, 0
	lea	rdi, gv_semmutexProducer[rip]
	call	sem_init@PLT
	mov	edx, 1
	mov	esi, 0
	lea	rdi, gv_semmutexCustomer[rip]
	call	sem_init@PLT
	mov	DWORD PTR gv_iptrIn[rip], 0
	mov	DWORD PTR gv_iptrOut[rip], 0
	mov	QWORD PTR gv_ulOffset[rip], 0
	mov	DWORD PTR gv_iproCount[rip], 0
	mov	DWORD PTR count[rip], 0
	mov	DWORD PTR gv_iproducerNum[rip], 5
	mov	DWORD PTR gv_icustomerNum[rip], 10
	mov	DWORD PTR -860[rbp], 0
	jmp	.L10
.L11:
	lea	rdx, -816[rbp]
	mov	eax, DWORD PTR -860[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	ecx, 0
	lea	rdx, thrProducer[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	add	DWORD PTR -860[rbp], 1
.L10:
	mov	eax, DWORD PTR gv_iproducerNum[rip]
	cmp	DWORD PTR -860[rbp], eax
	jl	.L11
	mov	DWORD PTR -860[rbp], 0
	jmp	.L12
.L13:
	mov	edx, DWORD PTR gv_iproducerNum[rip]
	mov	eax, DWORD PTR -860[rbp]
	add	eax, edx
	lea	rdx, -816[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	ecx, 0
	lea	rdx, thrCustomer[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	add	DWORD PTR -860[rbp], 1
.L12:
	mov	eax, DWORD PTR gv_icustomerNum[rip]
	cmp	DWORD PTR -860[rbp], eax
	jl	.L13
	mov	edx, DWORD PTR gv_iproducerNum[rip]
	mov	eax, DWORD PTR gv_icustomerNum[rip]
	add	eax, edx
	mov	DWORD PTR gv_iprocessNum[rip], eax
	mov	DWORD PTR -860[rbp], 0
	jmp	.L14
.L15:
	mov	eax, DWORD PTR -860[rbp]
	cdqe
	mov	rax, QWORD PTR -816[rbp+rax*8]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	add	DWORD PTR -860[rbp], 1
.L14:
	mov	eax, DWORD PTR gv_iprocessNum[rip]
	cmp	DWORD PTR -860[rbp], eax
	jl	.L15
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 10
	mov	esi, 1
	lea	rdi, .LC6[rip]
	call	fwrite@PLT
	lea	rax, -832[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	rax, QWORD PTR -832[rbp]
	mov	rdx, QWORD PTR -848[rbp]
	sub	rax, rdx
	imul	rdx, rax, 100000
	mov	rax, QWORD PTR -824[rbp]
	mov	rcx, QWORD PTR -840[rbp]
	sub	rax, rcx
	add	rax, rdx
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	movsd	QWORD PTR -856[rbp], xmm0
	movsd	xmm0, QWORD PTR -856[rbp]
	movsd	xmm1, QWORD PTR .LC7[rip]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -856[rbp], xmm0
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -856[rbp]
	movq	xmm0, rdx
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 1
	call	fprintf@PLT
	lea	rdi, gv_semProducer[rip]
	call	sem_destroy@PLT
	lea	rdi, gv_semCustomer[rip]
	call	sem_destroy@PLT
	lea	rdi, gv_semmutexProducer[rip]
	call	sem_destroy@PLT
	lea	rdi, gv_semmutexCustomer[rip]
	call	sem_destroy@PLT
	mov	eax, DWORD PTR gv_ifileIn[rip]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR gv_ifileOut[rip]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC7:
	.long	0
	.long	1083129856
	.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	"117329261.c"
	.text
	.comm	gv_semProducer,16,4
	.comm	gv_semCustomer,16,4
	.comm	gv_semmutexProducer,16,4
	.comm	gv_semmutexCustomer,16,4
	.comm	gv_semMutex,16,4
	.comm	gv_ifileIn,4,4
	.comm	gv_ifileOut,4,4
	.comm	gv_cBuffer,10250,4
	.comm	gv_iptrIn,4,4
	.comm	gv_iptrOut,4,4
	.comm	gv_iproCount,4,4
	.comm	count,4,4
	.comm	gv_iproducerNum,4,4
	.comm	gv_icustomerNum,4,4
	.comm	gv_iprocessNum,4,4
	.comm	gv_ulOffset,4,4
	.comm	MAXBYTES,4,4
	.comm	gv_stfileStat,88,8
	.section	.rodata
	.align	2
.LC0:
	.ascii	"customer quit\012\000"
	.align	2
.LC1:
	.ascii	"offset: %u   empty: %d \012\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	thrCustomer
	.syntax unified
	.arm
	.fpu softvfp
	.type	thrCustomer, %function
thrCustomer:
	@ args = 0, pretend = 0, frame = 1064
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1056
	sub	sp, sp, #8
	str	r0, [fp, #-1064]
	ldr	r3, .L5
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
.L3:
	ldr	r0, .L5+4
	bl	sem_wait
	ldr	r0, .L5+8
	bl	sem_wait
	ldr	r3, .L5+12
	ldr	r3, [r3]
	str	r3, [fp, #-1052]
	ldr	r3, .L5+16
	ldr	r3, [r3]
	str	r3, [fp, #-1048]
	ldr	r2, [fp, #-1052]
	mov	r3, r2
	lsl	r3, r3, #10
	add	r3, r3, r2
	ldr	r2, .L5+20
	add	r3, r3, r2
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-1044]
	ldr	r3, .L5+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-1044]
	add	r3, r2, r3
	ldr	r2, .L5+16
	str	r3, [r2]
	ldr	r3, .L5+12
	ldr	r3, [r3]
	add	r1, r3, #1
	ldr	r3, .L5+24
	smull	r2, r3, r1, r3
	asr	r2, r3, #2
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, r1, r3
	ldr	r3, .L5+12
	str	r2, [r3]
	ldr	r2, [fp, #-1052]
	mov	r3, r2
	lsl	r3, r3, #10
	add	r3, r3, r2
	ldr	r2, .L5+20
	add	r2, r3, r2
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	ldr	r2, [fp, #-1052]
	mov	r3, r2
	lsl	r3, r3, #10
	add	r3, r3, r2
	ldr	r2, .L5+20
	add	r3, r3, r2
	ldr	r2, .L5+28
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r0, .L5+8
	bl	sem_post
	sub	r3, fp, #1040
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r1, r3
	ldr	r0, .L5+32
	bl	sem_getvalue
	ldr	r0, .L5+32
	bl	sem_post
	ldr	r3, .L5+36
	ldr	r0, [r3]
	ldr	r2, [fp, #-1044]
	ldr	r3, [fp, #-1048]
	sub	r1, fp, #1024
	sub	r1, r1, #4
	sub	r1, r1, #8
	bl	pwrite
	str	r0, [fp, #-1040]
	ldr	r3, [fp, #-1040]
	cmp	r3, #0
	bgt	.L3
	ldr	r3, .L5+40
	ldr	r2, [r3]
	ldr	r3, .L5+44
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L3
	ldr	r3, .L5+48
	ldr	r3, [r3]
	mov	r2, #14
	mov	r1, #1
	ldr	r0, .L5+52
	bl	fwrite
	ldr	r3, .L5+48
	ldr	r0, [r3]
	ldr	r3, [fp, #-1056]
	ldr	r2, [fp, #-1048]
	ldr	r1, .L5+56
	bl	fprintf
	ldr	r0, .L5+4
	bl	sem_post
	mov	r0, #0
	bl	pthread_exit
.L6:
	.align	2
.L5:
	.word	.LC2
	.word	gv_semCustomer
	.word	gv_semmutexCustomer
	.word	gv_iptrOut
	.word	gv_ulOffset
	.word	gv_cBuffer
	.word	1717986919
	.word	1025
	.word	gv_semProducer
	.word	gv_ifileOut
	.word	gv_iproCount
	.word	gv_iproducerNum
	.word	stderr
	.word	.LC0
	.word	.LC1
	.size	thrCustomer, .-thrCustomer
	.section	.rodata
	.align	2
.LC3:
	.ascii	"producer quit\012\000"
	.align	2
.LC4:
	.ascii	"num: %d\012\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	thrProducer
	.syntax unified
	.arm
	.fpu softvfp
	.type	thrProducer, %function
thrProducer:
	@ args = 0, pretend = 0, frame = 1048
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1040
	sub	sp, sp, #8
	str	r0, [fp, #-1048]
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
.L9:
	ldr	r0, .L11+4
	bl	sem_wait
	ldr	r0, .L11+8
	bl	sem_wait
	ldr	r3, .L11+12
	ldr	r0, [r3]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r2, #1024
	mov	r1, r3
	bl	read
	str	r0, [fp, #-1044]
	ldr	r3, [fp, #-1044]
	cmp	r3, #0
	bgt	.L8
	ldr	r3, .L11+16
	ldr	r3, [r3]
	mov	r2, #14
	mov	r1, #1
	ldr	r0, .L11+20
	bl	fwrite
	ldr	r3, .L11+24
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L11+24
	str	r3, [r2]
	ldr	r0, .L11+28
	bl	sem_post
	ldr	r0, .L11+8
	bl	sem_post
	mov	r0, #0
	bl	pthread_exit
.L8:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #8
	ldr	r2, [fp, #-1044]
	add	r3, r3, r2
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, .L11+32
	ldr	r3, [r3]
	str	r3, [fp, #-1040]
	ldr	r3, .L11+32
	ldr	r3, [r3]
	add	r1, r3, #1
	ldr	r3, .L11+36
	smull	r2, r3, r1, r3
	asr	r2, r3, #2
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, r1, r3
	ldr	r3, .L11+32
	str	r2, [r3]
	ldr	r3, .L11+40
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L11+40
	str	r3, [r2]
	ldr	r2, [fp, #-1040]
	mov	r3, r2
	lsl	r3, r3, #10
	add	r3, r3, r2
	ldr	r2, .L11+44
	add	r2, r3, r2
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r1, r3
	mov	r0, r2
	bl	strcpy
	ldr	r0, .L11+8
	bl	sem_post
	ldr	r3, .L11+16
	ldr	r3, [r3]
	ldr	r2, .L11+40
	ldr	r2, [r2]
	ldr	r1, .L11+48
	mov	r0, r3
	bl	fprintf
	ldr	r0, .L11+28
	bl	sem_post
	b	.L9
.L12:
	.align	2
.L11:
	.word	.LC5
	.word	gv_semProducer
	.word	gv_semmutexProducer
	.word	gv_ifileIn
	.word	stderr
	.word	.LC3
	.word	gv_iproCount
	.word	gv_semCustomer
	.word	gv_iptrIn
	.word	1717986919
	.word	count
	.word	gv_cBuffer
	.word	.LC4
	.size	thrProducer, .-thrProducer
	.section	.rodata
	.align	2
.LC6:
	.ascii	"textin\000"
	.align	2
.LC7:
	.ascii	"textout\000"
	.align	2
.LC8:
	.ascii	"main stop\012\000"
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.align	2
.LC9:
	.ascii	"timeuse: %lf\012\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 440
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #440
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #424
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	mov	r1, #2048
	ldr	r0, .L22+4
	bl	open
	mov	r3, r0
	ldr	r2, .L22+8
	str	r3, [r2]
	mov	r1, #1
	ldr	r0, .L22+12
	bl	open
	mov	r3, r0
	ldr	r2, .L22+16
	str	r3, [r2]
	ldr	r3, .L22+8
	ldr	r3, [r3]
	ldr	r1, .L22+20
	mov	r0, r3
	bl	fstat
	ldr	r3, .L22+20
	ldr	r3, [r3, #44]
	mov	r2, r3
	ldr	r3, .L22+24
	str	r2, [r3]
	mov	r2, #10
	mov	r1, #0
	ldr	r0, .L22+28
	bl	sem_init
	mov	r2, #0
	mov	r1, #0
	ldr	r0, .L22+32
	bl	sem_init
	mov	r2, #1
	mov	r1, #0
	ldr	r0, .L22+36
	bl	sem_init
	mov	r2, #1
	mov	r1, #0
	ldr	r0, .L22+40
	bl	sem_init
	ldr	r3, .L22+44
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L22+48
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L22+52
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L22+56
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L22+60
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L22+64
	mov	r2, #5
	str	r2, [r3]
	ldr	r3, .L22+68
	mov	r2, #10
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-440]
	b	.L14
.L15:
	sub	r2, fp, #408
	ldr	r3, [fp, #-440]
	lsl	r3, r3, #2
	add	r0, r2, r3
	mov	r3, #0
	ldr	r2, .L22+72
	mov	r1, #0
	bl	pthread_create
	ldr	r3, [fp, #-440]
	add	r3, r3, #1
	str	r3, [fp, #-440]
.L14:
	ldr	r3, .L22+64
	ldr	r3, [r3]
	ldr	r2, [fp, #-440]
	cmp	r2, r3
	blt	.L15
	mov	r3, #0
	str	r3, [fp, #-440]
	b	.L16
.L17:
	ldr	r3, .L22+64
	ldr	r2, [r3]
	ldr	r3, [fp, #-440]
	add	r3, r2, r3
	sub	r2, fp, #408
	lsl	r3, r3, #2
	add	r0, r2, r3
	mov	r3, #0
	ldr	r2, .L22+76
	mov	r1, #0
	bl	pthread_create
	ldr	r3, [fp, #-440]
	add	r3, r3, #1
	str	r3, [fp, #-440]
.L16:
	ldr	r3, .L22+68
	ldr	r3, [r3]
	ldr	r2, [fp, #-440]
	cmp	r2, r3
	blt	.L17
	ldr	r3, .L22+64
	ldr	r2, [r3]
	ldr	r3, .L22+68
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L22+80
	str	r3, [r2]
	mov	r3, #0
	str	r3, [fp, #-440]
	b	.L18
.L19:
	ldr	r3, [fp, #-440]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-404]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-440]
	add	r3, r3, #1
	str	r3, [fp, #-440]
.L18:
	ldr	r3, .L22+80
	ldr	r3, [r3]
	ldr	r2, [fp, #-440]
	cmp	r2, r3
	blt	.L19
	ldr	r3, .L22+84
	ldr	r3, [r3]
	mov	r2, #10
	mov	r1, #1
	ldr	r0, .L22+88
	bl	fwrite
	sub	r3, fp, #416
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	ldr	r2, [fp, #-416]
	ldr	r3, [fp, #-424]
	sub	r3, r2, r3
	ldr	r2, .L22+92
	mul	r2, r3, r2
	ldr	r1, [fp, #-412]
	ldr	r3, [fp, #-420]
	sub	r3, r1, r3
	add	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-436]
	str	r3, [fp, #-432]
	mov	r2, #0
	ldr	r3, .L22+96
	sub	r1, fp, #436
	ldmia	r1, {r0-r1}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-436]
	str	r3, [fp, #-432]
	ldr	r3, .L22+84
	ldr	r0, [r3]
	sub	r3, fp, #436
	ldmia	r3, {r2-r3}
	ldr	r1, .L22+100
	bl	fprintf
	ldr	r0, .L22+28
	bl	sem_destroy
	ldr	r0, .L22+32
	bl	sem_destroy
	ldr	r0, .L22+36
	bl	sem_destroy
	ldr	r0, .L22+40
	bl	sem_destroy
	ldr	r3, .L22+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	ldr	r3, .L22+16
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	mov	r3, #0
	ldr	r2, .L22
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L21
	bl	__stack_chk_fail
.L21:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC10
	.word	.LC6
	.word	gv_ifileIn
	.word	.LC7
	.word	gv_ifileOut
	.word	gv_stfileStat
	.word	MAXBYTES
	.word	gv_semProducer
	.word	gv_semCustomer
	.word	gv_semmutexProducer
	.word	gv_semmutexCustomer
	.word	gv_iptrIn
	.word	gv_iptrOut
	.word	gv_ulOffset
	.word	gv_iproCount
	.word	count
	.word	gv_iproducerNum
	.word	gv_icustomerNum
	.word	thrProducer
	.word	thrCustomer
	.word	gv_iprocessNum
	.word	stderr
	.word	.LC8
	.word	100000
	.word	1083129856
	.word	.LC9
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
