	.file	"703429.c"
	.intel_syntax noprefix
	.text
	.globl	lock
	.bss
	.align 32
	.type	lock, @object
	.size	lock, 40960
lock:
	.zero	40960
	.globl	cond
	.align 32
	.type	cond, @object
	.size	cond, 49152
cond:
	.zero	49152
	.globl	client_count
	.align 4
	.type	client_count, @object
	.size	client_count, 4
client_count:
	.zero	4
	.section	.rodata
	.align 8
.LC0:
	.string	"Read Data %s (%d) : %s and %d\n"
	.text
	.globl	producer_func
	.type	producer_func, @function
producer_func:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r13
	push	r12
	push	rbx
	sub	rsp, 104
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	.cfi_offset 3, -40
	mov	QWORD PTR -120[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -120[rbp]
	mov	QWORD PTR -80[rbp], rax
	mov	rax, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR 8[rax]
	mov	DWORD PTR -92[rbp], eax
	mov	rax, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -72[rbp], rax
	mov	rax, QWORD PTR -80[rbp]
	mov	rdx, QWORD PTR 20[rax]
	mov	rax, QWORD PTR 12[rax]
	mov	QWORD PTR -64[rbp], rax
	mov	QWORD PTR -56[rbp], rdx
	mov	rax, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR 28[rax]
	mov	DWORD PTR -88[rbp], eax
	mov	rcx, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR -92[rbp]
	mov	edx, 1028
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -84[rbp], eax
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 1024[rax]
	mov	edi, eax
	call	ntohl@PLT
	mov	edx, eax
	mov	rax, QWORD PTR -72[rbp]
	mov	DWORD PTR 1024[rax], edx
	mov	rax, QWORD PTR -72[rbp]
	mov	r13d, DWORD PTR 1024[rax]
	mov	r12, QWORD PTR -72[rbp]
	movzx	eax, WORD PTR -62[rbp]
	movzx	ebx, ax
	mov	eax, DWORD PTR -60[rbp]
	mov	edi, eax
	call	inet_ntoa@PLT
	mov	r8d, r13d
	mov	rcx, r12
	mov	edx, ebx
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
.L7:
	mov	eax, DWORD PTR -88[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	lea	rdx, lock[rip]
	add	rax, rdx
	mov	rdi, rax
	call	pthread_mutex_lock@PLT
	mov	DWORD PTR -96[rbp], 0
	jmp	.L2
.L6:
	cmp	DWORD PTR -96[rbp], 0
	jne	.L3
	mov	rax, QWORD PTR -72[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -97[rbp], al
.L3:
	mov	rdx, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR -96[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	test	al, al
	je	.L4
	mov	eax, DWORD PTR -96[rbp]
	lea	esi, -1[rax]
	mov	rdx, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR -96[rbp]
	cdqe
	movzx	ecx, BYTE PTR [rdx+rax]
	mov	rdx, QWORD PTR -72[rbp]
	movsx	rax, esi
	mov	BYTE PTR [rdx+rax], cl
	jmp	.L5
.L4:
	mov	eax, DWORD PTR -96[rbp]
	sub	eax, 1
	mov	rdx, QWORD PTR -72[rbp]
	cdqe
	movzx	ecx, BYTE PTR -97[rbp]
	mov	BYTE PTR [rdx+rax], cl
.L5:
	add	DWORD PTR -96[rbp], 1
.L2:
	mov	eax, DWORD PTR -96[rbp]
	movsx	rbx, eax
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rbx, rax
	jbe	.L6
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 1024[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	DWORD PTR 1024[rax], edx
	mov	eax, DWORD PTR -88[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	lea	rdx, lock[rip]
	add	rax, rdx
	mov	rdi, rax
	call	pthread_mutex_unlock@PLT
	mov	eax, DWORD PTR -88[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	lea	rdx, cond[rip]
	add	rax, rdx
	mov	rdi, rax
	call	pthread_cond_signal@PLT
	mov	edi, 1
	call	sleep@PLT
	jmp	.L7
	.cfi_endproc
.LFE6:
	.size	producer_func, .-producer_func
	.globl	consumer_func
	.type	consumer_func, @function
consumer_func:
.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, 80
	mov	QWORD PTR -72[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -72[rbp]
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR 8[rax]
	mov	DWORD PTR -56[rbp], eax
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR 20[rax]
	mov	rax, QWORD PTR 12[rax]
	mov	QWORD PTR -32[rbp], rax
	mov	QWORD PTR -24[rbp], rdx
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR 28[rax]
	mov	DWORD PTR -52[rbp], eax
.L10:
	mov	eax, DWORD PTR -52[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	lea	rdx, lock[rip]
	add	rax, rdx
	mov	rdi, rax
	call	pthread_mutex_lock@PLT
	mov	eax, DWORD PTR -52[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	lea	rdx, lock[rip]
	add	rdx, rax
	mov	eax, DWORD PTR -52[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 4
	lea	rcx, cond[rip]
	add	rax, rcx
	mov	rsi, rdx
	mov	rdi, rax
	call	pthread_cond_wait@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 1024[rax]
	mov	edi, eax
	call	htonl@PLT
	mov	edx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR 1024[rax], edx
	mov	rcx, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR -56[rbp]
	mov	edx, 1028
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 1024[rax]
	mov	edi, eax
	call	ntohl@PLT
	mov	edx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR 1024[rax], edx
	mov	eax, DWORD PTR -52[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	lea	rdx, lock[rip]
	add	rax, rdx
	mov	rdi, rax
	call	pthread_mutex_unlock@PLT
	jmp	.L10
	.cfi_endproc
.LFE7:
	.size	consumer_func, .-consumer_func
	.section	.rodata
.LC1:
	.string	"socket error"
.LC2:
	.string	"bind error"
.LC3:
	.string	"listen error"
	.align 8
.LC4:
	.string	"\354\265\234\353\214\200 \355\201\264\353\235\274\354\235\264\354\226\270\355\212\270 \354\210\230\353\245\274 \354\264\210\352\263\274\355\225\230\354\230\200\354\212\265\353\213\210\353\213\244. \353\215\224 \354\235\264\354\203\201 \355\201\264\353\235\274\354\235\264\354\226\270\355\212\270 \354\240\221\354\206\215\354\235\264 \353\266\210\352\260\200\355\225\251\353\213\210\353\213\244."
.LC5:
	.string	"accept error"
.LC6:
	.string	"Mutex Init failure"
.LC7:
	.string	"Cond Init failure"
.LC8:
	.string	"pthread_create failure"
.LC9:
	.string	"pthread_detach failure"
	.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
	push	rbx
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 120
	.cfi_offset 3, -24
	mov	DWORD PTR -8308[rbp], edi
	mov	QWORD PTR -8320[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -8288[rbp], eax
	cmp	DWORD PTR -8288[rbp], 0
	jns	.L13
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L28
.L13:
	lea	rax, -8256[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -8256[rbp], 2
	mov	edi, 0
	call	htonl@PLT
	mov	DWORD PTR -8252[rbp], eax
	mov	edi, 3600
	call	htons@PLT
	mov	WORD PTR -8254[rbp], ax
	lea	rcx, -8256[rbp]
	mov	eax, DWORD PTR -8288[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	cmp	eax, -1
	jne	.L15
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L28
.L15:
	mov	eax, DWORD PTR -8288[rbp]
	mov	esi, 5
	mov	edi, eax
	call	listen@PLT
	cmp	eax, -1
	jne	.L16
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L28
.L16:
	mov	esi, 1
	mov	edi, 13
	call	signal@PLT
.L27:
	mov	eax, DWORD PTR client_count[rip]
	cmp	eax, 1023
	jle	.L17
	lea	rdi, .LC4[rip]
	call	puts@PLT
.L18:
	jmp	.L18
.L17:
	mov	DWORD PTR -8292[rbp], 16
	lea	rdx, -8292[rbp]
	lea	rcx, -8272[rbp]
	mov	eax, DWORD PTR -8288[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -8284[rbp], eax
	cmp	DWORD PTR -8284[rbp], -1
	jne	.L19
	lea	rdi, .LC5[rip]
	call	puts@PLT
	nop
	mov	eax, 0
	jmp	.L28
.L19:
	mov	edi, 1028
	call	malloc@PLT
	mov	QWORD PTR -8280[rbp], rax
	mov	ebx, DWORD PTR client_count[rip]
	mov	edi, 32
	call	malloc@PLT
	mov	rdx, rax
	movsx	rax, ebx
	mov	QWORD PTR -8224[rbp+rax*8], rdx
	mov	eax, DWORD PTR client_count[rip]
	cdqe
	mov	rax, QWORD PTR -8224[rbp+rax*8]
	mov	rdx, QWORD PTR -8280[rbp]
	mov	QWORD PTR [rax], rdx
	mov	eax, DWORD PTR client_count[rip]
	cdqe
	mov	rax, QWORD PTR -8224[rbp+rax*8]
	mov	edx, DWORD PTR -8284[rbp]
	mov	DWORD PTR 8[rax], edx
	mov	eax, DWORD PTR client_count[rip]
	cdqe
	mov	rcx, QWORD PTR -8224[rbp+rax*8]
	mov	rax, QWORD PTR -8272[rbp]
	mov	rdx, QWORD PTR -8264[rbp]
	mov	QWORD PTR 12[rcx], rax
	mov	QWORD PTR 20[rcx], rdx
	mov	eax, DWORD PTR client_count[rip]
	cdqe
	mov	rax, QWORD PTR -8224[rbp+rax*8]
	mov	edx, DWORD PTR client_count[rip]
	mov	DWORD PTR 28[rax], edx
	mov	eax, DWORD PTR client_count[rip]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	lea	rdx, lock[rip]
	add	rax, rdx
	mov	esi, 0
	mov	rdi, rax
	call	pthread_mutex_init@PLT
	test	eax, eax
	je	.L21
	lea	rdi, .LC6[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L28
.L21:
	mov	eax, DWORD PTR client_count[rip]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	lea	rdx, cond[rip]
	add	rax, rdx
	mov	esi, 0
	mov	rdi, rax
	call	pthread_cond_init@PLT
	test	eax, eax
	je	.L22
	lea	rdi, .LC7[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L28
.L22:
	mov	eax, DWORD PTR client_count[rip]
	cdqe
	mov	rdx, QWORD PTR -8224[rbp+rax*8]
	lea	rax, -8240[rbp]
	mov	rcx, rdx
	lea	rdx, producer_func[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	test	eax, eax
	je	.L23
	lea	rdi, .LC8[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L28
.L23:
	mov	rax, QWORD PTR -8240[rbp]
	mov	rdi, rax
	call	pthread_detach@PLT
	test	eax, eax
	je	.L24
	lea	rdi, .LC9[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L28
.L24:
	mov	eax, DWORD PTR client_count[rip]
	cdqe
	mov	rax, QWORD PTR -8224[rbp+rax*8]
	lea	rdx, -8240[rbp]
	lea	rdi, 8[rdx]
	mov	rcx, rax
	lea	rdx, consumer_func[rip]
	mov	esi, 0
	call	pthread_create@PLT
	test	eax, eax
	je	.L25
	lea	rdi, .LC8[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L28
.L25:
	mov	rax, QWORD PTR -8232[rbp]
	mov	rdi, rax
	call	pthread_detach@PLT
	test	eax, eax
	je	.L26
	lea	rdi, .LC9[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L28
.L26:
	mov	eax, DWORD PTR client_count[rip]
	add	eax, 1
	mov	DWORD PTR client_count[rip], eax
	jmp	.L27
.L28:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"703429.c"
	.text
	.comm	lock,24576,4
	.comm	cond,49152,8
	.global	client_count
	.bss
	.align	2
	.type	client_count, %object
	.size	client_count, 4
client_count:
	.space	4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Read Data %s (%d) : %s and %d\012\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	producer_func
	.syntax unified
	.arm
	.fpu softvfp
	.type	producer_func, %function
producer_func:
	@ args = 0, 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, #-56]
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-56]
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-44]
	sub	ip, fp, #24
	add	r3, r3, #8
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #24]
	str	r3, [fp, #-32]
	ldr	r2, .L9+4
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-40]
	bl	read
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-36]
	ldr	r3, [r3, #1024]
	mov	r0, r3
	bl	ntohl
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-36]
	str	r2, [r3, #1024]
	ldr	r0, [fp, #-20]
	bl	inet_ntoa
	mov	r1, r0
	ldrh	r3, [fp, #-22]
	mov	r0, r3
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-36]
	ldr	r3, [r3, #1024]
	str	r3, [sp]
	mov	r3, r2
	mov	r2, r0
	ldr	r0, .L9+8
	bl	printf
.L7:
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	ldr	r2, .L9+12
	add	r3, r3, r2
	mov	r0, r3
	bl	pthread_mutex_lock
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L2
.L6:
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bne	.L3
	ldr	r3, [fp, #-36]
	ldrb	r3, [r3]
	strb	r3, [fp, #-49]
.L3:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-48]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L4
	ldr	r3, [fp, #-48]
	sub	r3, r3, #1
	ldr	r1, [fp, #-36]
	ldr	r2, [fp, #-48]
	add	r2, r1, r2
	ldrb	r1, [r2]	@ zero_extendqisi2
	ldr	r2, [fp, #-36]
	strb	r1, [r2, r3]
	b	.L5
.L4:
	ldr	r3, [fp, #-48]
	sub	r3, r3, #1
	ldr	r2, [fp, #-36]
	ldrb	r1, [fp, #-49]
	strb	r1, [r2, r3]
.L5:
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L2:
	ldr	r3, [fp, #-36]
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	bcs	.L6
	ldr	r3, [fp, #-36]
	ldr	r3, [r3, #1024]
	add	r2, r3, #1
	ldr	r3, [fp, #-36]
	str	r2, [r3, #1024]
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	ldr	r2, .L9+12
	add	r3, r3, r2
	mov	r0, r3
	bl	pthread_mutex_unlock
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	ldr	r2, .L9+16
	add	r3, r3, r2
	mov	r0, r3
	bl	pthread_cond_signal
	mov	r0, #1
	bl	sleep
	b	.L7
.L10:
	.align	2
.L9:
	.word	.LC1
	.word	1028
	.word	.LC0
	.word	lock
	.word	cond
	.size	producer_func, .-producer_func
	.section	.rodata
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	consumer_func
	.syntax unified
	.arm
	.fpu softvfp
	.type	consumer_func, %function
consumer_func:
	@ 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, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-40]
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-40]
	sub	ip, fp, #24
	add	r3, r3, #8
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #24]
	str	r3, [fp, #-28]
.L12:
	ldr	r2, [fp, #-28]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	ldr	r2, .L14+4
	add	r3, r3, r2
	mov	r0, r3
	bl	pthread_mutex_lock
	ldr	r2, [fp, #-28]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	ldr	r2, .L14+8
	add	r0, r3, r2
	ldr	r2, [fp, #-28]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	ldr	r2, .L14+4
	add	r3, r3, r2
	mov	r1, r3
	bl	pthread_cond_wait
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #1024]
	mov	r0, r3
	bl	htonl
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-32]
	str	r2, [r3, #1024]
	ldr	r2, .L14+12
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-36]
	bl	write
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #1024]
	mov	r0, r3
	bl	ntohl
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-32]
	str	r2, [r3, #1024]
	ldr	r2, [fp, #-28]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	ldr	r2, .L14+4
	add	r3, r3, r2
	mov	r0, r3
	bl	pthread_mutex_unlock
	b	.L12
.L15:
	.align	2
.L14:
	.word	.LC2
	.word	lock
	.word	cond
	.word	1028
	.size	consumer_func, .-consumer_func
	.section	.rodata
	.align	2
.LC3:
	.ascii	"socket error\000"
	.align	2
.LC4:
	.ascii	"bind error\000"
	.align	2
.LC5:
	.ascii	"listen error\000"
	.align	2
.LC6:
	.ascii	"\354\265\234\353\214\200 \355\201\264\353\235\274\354"
	.ascii	"\235\264\354\226\270\355\212\270 \354\210\230\353\245"
	.ascii	"\274 \354\264\210\352\263\274\355\225\230\354\230\200"
	.ascii	"\354\212\265\353\213\210\353\213\244. \353\215\224 "
	.ascii	"\354\235\264\354\203\201 \355\201\264\353\235\274\354"
	.ascii	"\235\264\354\226\270\355\212\270 \354\240\221\354\206"
	.ascii	"\215\354\235\264 \353\266\210\352\260\200\355\225\251"
	.ascii	"\353\213\210\353\213\244.\000"
	.align	2
.LC7:
	.ascii	"accept error\000"
	.align	2
.LC8:
	.ascii	"Mutex Init failure\000"
	.align	2
.LC9:
	.ascii	"Cond Init failure\000"
	.align	2
.LC10:
	.ascii	"pthread_create failure\000"
	.align	2
.LC11:
	.ascii	"pthread_detach failure\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 4168
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #4160
	sub	sp, sp, #12
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r0, [r3, #-68]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r1, [r3, #-72]
	ldr	r3, .L34
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [r4, #-56]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-56]
	cmp	r3, #0
	bge	.L17
	ldr	r0, .L34+4
	bl	perror
	mov	r3, #1
	b	.L32
.L17:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #20
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, #2
	strh	r2, [r3, #-20]	@ movhi
	mov	r0, #0
	bl	htonl
	mov	r3, r0
	sub	r2, fp, #4096
	sub	r2, r2, #12
	str	r3, [r2, #-16]
	mov	r0, #3600
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	strh	r2, [r3, #-18]	@ movhi
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #20
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [r0, #-56]
	bl	bind
	mov	r3, r0
	cmn	r3, #1
	bne	.L19
	ldr	r0, .L34+8
	bl	perror
	mov	r3, #1
	b	.L32
.L19:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, #5
	ldr	r0, [r3, #-56]
	bl	listen
	mov	r3, r0
	cmn	r3, #1
	bne	.L20
	ldr	r0, .L34+12
	bl	perror
	mov	r3, #1
	b	.L32
.L20:
	mov	r1, #1
	mov	r0, #13
	bl	signal
.L31:
	ldr	r3, .L34+16
	ldr	r3, [r3]
	cmp	r3, #1024
	blt	.L21
	ldr	r0, .L34+20
	bl	puts
.L22:
	b	.L22
.L21:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #16
	str	r3, [r2, #-60]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r2, fp, #4096
	sub	r2, r2, #12
	sub	r2, r2, #60
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #36
	sub	r1, fp, #4096
	sub	r1, r1, #12
	mov	r0, r1
	mov	r1, r3
	ldr	r0, [r0, #-56]
	bl	accept
	str	r0, [r4, #-52]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-52]
	cmn	r3, #1
	bne	.L23
	ldr	r0, .L34+24
	bl	puts
	nop
	mov	r3, #0
	b	.L32
.L23:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	ldr	r0, .L34+28
	bl	malloc
	mov	r3, r0
	str	r3, [r4, #-48]
	ldr	r3, .L34+16
	ldr	r4, [r3]
	mov	r0, #28
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	lsl	r3, r4, #2
	add	r3, r1, r3
	str	r2, [r3, #-4]
	ldr	r3, .L34+16
	ldr	r3, [r3]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-4]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-48]
	str	r2, [r3]
	ldr	r3, .L34+16
	ldr	r3, [r3]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-4]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-52]
	str	r2, [r3, #4]
	ldr	r3, .L34+16
	ldr	r3, [r3]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-4]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	add	ip, r3, #8
	sub	r3, r2, #36
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r3, .L34+16
	ldr	r3, [r3]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-4]
	ldr	r2, .L34+16
	ldr	r2, [r2]
	str	r2, [r3, #24]
	ldr	r3, .L34+16
	ldr	r2, [r3]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	ldr	r2, .L34+32
	add	r3, r3, r2
	mov	r1, #0
	mov	r0, r3
	bl	pthread_mutex_init
	mov	r3, r0
	cmp	r3, #0
	beq	.L25
	ldr	r0, .L34+36
	bl	perror
	mov	r3, #1
	b	.L32
.L25:
	ldr	r3, .L34+16
	ldr	r2, [r3]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	ldr	r2, .L34+40
	add	r3, r3, r2
	mov	r1, #0
	mov	r0, r3
	bl	pthread_cond_init
	mov	r3, r0
	cmp	r3, #0
	beq	.L26
	ldr	r0, .L34+44
	bl	perror
	mov	r3, #1
	b	.L32
.L26:
	ldr	r3, .L34+16
	ldr	r3, [r3]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-4]
	sub	r0, fp, #4096
	sub	r0, r0, #12
	sub	r0, r0, #44
	ldr	r2, .L34+48
	mov	r1, #0
	bl	pthread_create
	mov	r3, r0
	cmp	r3, #0
	beq	.L27
	ldr	r0, .L34+52
	bl	perror
	mov	r3, #1
	b	.L32
.L27:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	mov	r0, r3
	bl	pthread_detach
	mov	r3, r0
	cmp	r3, #0
	beq	.L28
	ldr	r0, .L34+56
	bl	perror
	mov	r3, #1
	b	.L32
.L28:
	ldr	r3, .L34+16
	ldr	r3, [r3]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3, #-4]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #44
	add	r0, r3, #4
	mov	r3, r2
	ldr	r2, .L34+60
	mov	r1, #0
	bl	pthread_create
	mov	r3, r0
	cmp	r3, #0
	beq	.L29
	ldr	r0, .L34+52
	bl	perror
	mov	r3, #1
	b	.L32
.L29:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-40]
	mov	r0, r3
	bl	pthread_detach
	mov	r3, r0
	cmp	r3, #0
	beq	.L30
	ldr	r0, .L34+56
	bl	perror
	mov	r3, #1
	b	.L32
.L30:
	ldr	r3, .L34+16
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L34+16
	str	r3, [r2]
	b	.L31
.L32:
	ldr	r2, .L34
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L33
	bl	__stack_chk_fail
.L33:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L35:
	.align	2
.L34:
	.word	.LC12
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	client_count
	.word	.LC6
	.word	.LC7
	.word	1028
	.word	lock
	.word	.LC8
	.word	cond
	.word	.LC9
	.word	producer_func
	.word	.LC10
	.word	.LC11
	.word	consumer_func
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
