	.file	"119364.c"
	.intel_syntax noprefix
	.text
	.globl	buff1
	.bss
	.align 8
	.type	buff1, @object
	.size	buff1, 8
buff1:
	.zero	8
	.globl	count_1
	.align 4
	.type	count_1, @object
	.size	count_1, 4
count_1:
	.zero	4
	.globl	mutex_1
	.align 32
	.type	mutex_1, @object
	.size	mutex_1, 40
mutex_1:
	.zero	40
	.globl	full_1
	.align 32
	.type	full_1, @object
	.size	full_1, 48
full_1:
	.zero	48
	.globl	buff2
	.align 8
	.type	buff2, @object
	.size	buff2, 8
buff2:
	.zero	8
	.globl	count_2
	.align 4
	.type	count_2, @object
	.size	count_2, 4
count_2:
	.zero	4
	.globl	mutex_2
	.align 32
	.type	mutex_2, @object
	.size	mutex_2, 40
mutex_2:
	.zero	40
	.globl	full_2
	.align 32
	.type	full_2, @object
	.size	full_2, 48
full_2:
	.zero	48
	.globl	buff3
	.align 8
	.type	buff3, @object
	.size	buff3, 8
buff3:
	.zero	8
	.globl	count_3
	.align 4
	.type	count_3, @object
	.size	count_3, 4
count_3:
	.zero	4
	.globl	mutex_3
	.align 32
	.type	mutex_3, @object
	.size	mutex_3, 40
mutex_3:
	.zero	40
	.globl	full_3
	.align 32
	.type	full_3, @object
	.size	full_3, 48
full_3:
	.zero	48
	.globl	totalLen
	.align 4
	.type	totalLen, @object
	.size	totalLen, 4
totalLen:
	.zero	4
	.text
	.globl	putBuff1
	.type	putBuff1, @function
putBuff1:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	lea	rdi, mutex_1[rip]
	call	pthread_mutex_lock@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR buff1[rip], rax
	mov	eax, DWORD PTR count_1[rip]
	add	eax, 1
	mov	DWORD PTR count_1[rip], eax
	lea	rdi, full_1[rip]
	call	pthread_cond_signal@PLT
	lea	rdi, mutex_1[rip]
	call	pthread_mutex_unlock@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	putBuff1, .-putBuff1
	.globl	getInput
	.type	getInput, @function
getInput:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	r11, -49152[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 912
	mov	QWORD PTR -50056[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -50040[rbp], 0
	mov	QWORD PTR -50032[rbp], 0
	jmp	.L3
.L4:
	mov	rdx, QWORD PTR -50040[rbp]
	lea	rax, -50016[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	mov	rax, QWORD PTR -50024[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR totalLen[rip]
	add	eax, edx
	mov	DWORD PTR totalLen[rip], eax
.L3:
	mov	rdx, QWORD PTR stdin[rip]
	lea	rcx, -50032[rbp]
	lea	rax, -50040[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	getline@PLT
	mov	QWORD PTR -50024[rbp], rax
	cmp	QWORD PTR -50024[rbp], -1
	jne	.L4
	lea	rax, -50016[rbp]
	mov	rdi, rax
	call	putBuff1
	nop
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	getInput, .-getInput
	.globl	getBuff1
	.type	getBuff1, @function
getBuff1:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, mutex_1[rip]
	call	pthread_mutex_lock@PLT
	jmp	.L7
.L8:
	lea	rsi, mutex_1[rip]
	lea	rdi, full_1[rip]
	call	pthread_cond_wait@PLT
.L7:
	mov	eax, DWORD PTR count_1[rip]
	test	eax, eax
	je	.L8
	mov	eax, DWORD PTR count_1[rip]
	sub	eax, 1
	mov	DWORD PTR count_1[rip], eax
	mov	rax, QWORD PTR buff1[rip]
	mov	rdi, rax
	call	puts@PLT
	lea	rdi, mutex_1[rip]
	call	pthread_mutex_unlock@PLT
	mov	rax, QWORD PTR buff1[rip]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	getBuff1, .-getBuff1
	.globl	putBuff2
	.type	putBuff2, @function
putBuff2:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	lea	rdi, mutex_2[rip]
	call	pthread_mutex_lock@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR buff2[rip], rax
	mov	rax, QWORD PTR buff2[rip]
	mov	rdi, rax
	call	puts@PLT
	mov	edi, 10
	call	putchar@PLT
	mov	eax, DWORD PTR count_2[rip]
	add	eax, 1
	mov	DWORD PTR count_2[rip], eax
	lea	rdi, full_2[rip]
	call	pthread_cond_signal@PLT
	lea	rdi, mutex_2[rip]
	call	pthread_mutex_unlock@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	putBuff2, .-putBuff2
	.section	.rodata
.LC0:
	.string	"newline"
	.text
	.globl	replaceNewLines
	.type	replaceNewLines, @function
replaceNewLines:
.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	eax, 0
	call	getBuff1
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	puts@PLT
	mov	DWORD PTR -12[rbp], 0
	jmp	.L12
.L14:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	jne	.L13
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 32
.L13:
	add	DWORD PTR -12[rbp], 1
.L12:
	cmp	DWORD PTR -12[rbp], 49999
	jle	.L14
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	puts@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	putBuff2
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	replaceNewLines, .-replaceNewLines
	.globl	getBuff2
	.type	getBuff2, @function
getBuff2:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	lea	rdi, mutex_2[rip]
	call	pthread_mutex_lock@PLT
	jmp	.L16
.L17:
	lea	rsi, mutex_2[rip]
	lea	rdi, full_2[rip]
	call	pthread_cond_wait@PLT
.L16:
	mov	eax, DWORD PTR count_2[rip]
	test	eax, eax
	je	.L17
	mov	rax, QWORD PTR buff2[rip]
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR count_2[rip]
	sub	eax, 1
	mov	DWORD PTR count_2[rip], eax
	lea	rdi, mutex_2[rip]
	call	pthread_mutex_unlock@PLT
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	getBuff2, .-getBuff2
	.globl	putBuff3
	.type	putBuff3, @function
putBuff3:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	lea	rdi, mutex_3[rip]
	call	pthread_mutex_lock@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR buff3[rip], rax
	mov	eax, DWORD PTR count_3[rip]
	add	eax, 1
	mov	DWORD PTR count_3[rip], eax
	lea	rdi, full_3[rip]
	call	pthread_cond_signal@PLT
	lea	rdi, mutex_3[rip]
	call	pthread_mutex_unlock@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	putBuff3, .-putBuff3
	.section	.rodata
.LC1:
	.string	"after replace"
	.text
	.globl	replacePlusSigns
	.type	replacePlusSigns, @function
replacePlusSigns:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	eax, 0
	call	getBuff2
	mov	QWORD PTR -8[rbp], rax
	mov	edi, 10
	call	putchar@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	puts@PLT
	mov	DWORD PTR -28[rbp], 0
	jmp	.L21
.L23:
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 43
	jne	.L22
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 43
	jne	.L22
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 94
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 45
.L22:
	add	DWORD PTR -28[rbp], 1
.L21:
	mov	eax, DWORD PTR totalLen[rip]
	cmp	DWORD PTR -28[rbp], eax
	jl	.L23
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR -24[rbp], rax
	jmp	.L24
.L26:
	mov	rax, QWORD PTR -24[rbp]
	movzx	edx, BYTE PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	je	.L25
	add	QWORD PTR -16[rbp], 1
.L25:
	add	QWORD PTR -24[rbp], 1
.L24:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L26
	mov	rax, QWORD PTR -16[rbp]
	mov	BYTE PTR [rax], 0
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	puts@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	putBuff3
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	replacePlusSigns, .-replacePlusSigns
	.globl	getBuff3
	.type	getBuff3, @function
getBuff3:
.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, 16
	lea	rdi, mutex_3[rip]
	call	pthread_mutex_lock@PLT
	jmp	.L28
.L29:
	lea	rsi, mutex_3[rip]
	lea	rdi, full_3[rip]
	call	pthread_cond_wait@PLT
.L28:
	mov	eax, DWORD PTR count_3[rip]
	test	eax, eax
	je	.L29
	mov	rax, QWORD PTR buff3[rip]
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR count_3[rip]
	sub	eax, 1
	mov	DWORD PTR count_3[rip], eax
	lea	rdi, mutex_3[rip]
	call	pthread_mutex_unlock@PLT
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	getBuff3, .-getBuff3
	.globl	outputText
	.type	outputText, @function
outputText:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	eax, 0
	call	getBuff3
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -12[rbp], 0
	jmp	.L32
.L35:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 83
	jne	.L33
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 84
	jne	.L33
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 2[rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 79
	jne	.L33
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 3[rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 80
	je	.L34
.L33:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	putchar@PLT
	add	DWORD PTR -12[rbp], 1
.L32:
	cmp	DWORD PTR -12[rbp], 79
	jle	.L35
.L34:
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	outputText, .-outputText
	.globl	main
	.type	main, @function
main:
.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, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -40[rbp]
	mov	ecx, 0
	lea	rdx, getInput[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	lea	rax, -32[rbp]
	mov	ecx, 0
	lea	rdx, replaceNewLines[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	lea	rax, -24[rbp]
	mov	ecx, 0
	lea	rdx, replacePlusSigns[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	lea	rax, -16[rbp]
	mov	ecx, 0
	lea	rdx, outputText[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L38
	call	__stack_chk_fail@PLT
.L38:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.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	"119364.c"
	.text
	.comm	buff1,4,4
	.global	count_1
	.bss
	.align	2
	.type	count_1, %object
	.size	count_1, 4
count_1:
	.space	4
	.global	mutex_1
	.align	2
	.type	mutex_1, %object
	.size	mutex_1, 24
mutex_1:
	.space	24
	.global	full_1
	.align	3
	.type	full_1, %object
	.size	full_1, 48
full_1:
	.space	48
	.comm	buff2,4,4
	.global	count_2
	.align	2
	.type	count_2, %object
	.size	count_2, 4
count_2:
	.space	4
	.global	mutex_2
	.align	2
	.type	mutex_2, %object
	.size	mutex_2, 24
mutex_2:
	.space	24
	.global	full_2
	.align	3
	.type	full_2, %object
	.size	full_2, 48
full_2:
	.space	48
	.comm	buff3,4,4
	.global	count_3
	.align	2
	.type	count_3, %object
	.size	count_3, 4
count_3:
	.space	4
	.global	mutex_3
	.align	2
	.type	mutex_3, %object
	.size	mutex_3, 24
mutex_3:
	.space	24
	.global	full_3
	.align	3
	.type	full_3, %object
	.size	full_3, 48
full_3:
	.space	48
	.comm	totalLen,4,4
	.text
	.align	2
	.global	putBuff1
	.syntax unified
	.arm
	.fpu softvfp
	.type	putBuff1, %function
putBuff1:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r0, .L2
	bl	pthread_mutex_lock
	ldr	r2, .L2+4
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	ldr	r3, .L2+8
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L2+8
	str	r3, [r2]
	ldr	r0, .L2+12
	bl	pthread_cond_signal
	ldr	r0, .L2
	bl	pthread_mutex_unlock
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	mutex_1
	.word	buff1
	.word	count_1
	.word	full_1
	.size	putBuff1, .-putBuff1
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	getInput
	.syntax unified
	.arm
	.fpu softvfp
	.type	getInput, %function
getInput:
	@ args = 0, pretend = 0, frame = 50024
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #49920
	sub	sp, sp, #108
	sub	r3, fp, #49152
	sub	r3, r3, #12
	str	r0, [r3, #-868]
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #49152
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-864]
	sub	r3, fp, #49152
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-860]
	b	.L5
.L6:
	sub	r3, fp, #49152
	sub	r3, r3, #12
	ldr	r2, [r3, #-864]
	sub	r3, fp, #49920
	sub	r3, r3, #12
	sub	r3, r3, #84
	mov	r1, r2
	mov	r0, r3
	bl	strcat
	ldr	r3, .L8+4
	ldr	r2, [r3]
	sub	r3, fp, #49152
	sub	r3, r3, #12
	ldr	r3, [r3, #-856]
	add	r3, r2, r3
	ldr	r2, .L8+4
	str	r3, [r2]
.L5:
	ldr	r3, .L8+8
	ldr	r2, [r3]
	sub	r3, fp, #49152
	sub	r3, r3, #12
	mov	r4, r3
	sub	r1, fp, #49920
	sub	r1, r1, #12
	sub	r1, r1, #92
	sub	r3, fp, #49920
	sub	r3, r3, #12
	sub	r3, r3, #96
	mov	r0, r3
	bl	getline
	str	r0, [r4, #-856]
	sub	r3, fp, #49152
	sub	r3, r3, #12
	ldr	r3, [r3, #-856]
	cmn	r3, #1
	bne	.L6
	sub	r3, fp, #49920
	sub	r3, r3, #12
	sub	r3, r3, #84
	mov	r0, r3
	bl	putBuff1
	nop
	ldr	r2, .L8
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L7
	bl	__stack_chk_fail
.L7:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC0
	.word	totalLen
	.word	stdin
	.size	getInput, .-getInput
	.align	2
	.global	getBuff1
	.syntax unified
	.arm
	.fpu softvfp
	.type	getBuff1, %function
getBuff1:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L14
	bl	pthread_mutex_lock
	b	.L11
.L12:
	ldr	r1, .L14
	ldr	r0, .L14+4
	bl	pthread_cond_wait
.L11:
	ldr	r3, .L14+8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L12
	ldr	r3, .L14+8
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L14+8
	str	r3, [r2]
	ldr	r3, .L14+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	puts
	ldr	r0, .L14
	bl	pthread_mutex_unlock
	ldr	r3, .L14+12
	ldr	r3, [r3]
	mov	r0, r3
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	mutex_1
	.word	full_1
	.word	count_1
	.word	buff1
	.size	getBuff1, .-getBuff1
	.align	2
	.global	putBuff2
	.syntax unified
	.arm
	.fpu softvfp
	.type	putBuff2, %function
putBuff2:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r0, .L17
	bl	pthread_mutex_lock
	ldr	r2, .L17+4
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	ldr	r3, .L17+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	puts
	mov	r0, #10
	bl	putchar
	ldr	r3, .L17+8
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L17+8
	str	r3, [r2]
	ldr	r0, .L17+12
	bl	pthread_cond_signal
	ldr	r0, .L17
	bl	pthread_mutex_unlock
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	mutex_2
	.word	buff2
	.word	count_2
	.word	full_2
	.size	putBuff2, .-putBuff2
	.section	.rodata
	.align	2
.LC1:
	.ascii	"newline\000"
	.text
	.align	2
	.global	replaceNewLines
	.syntax unified
	.arm
	.fpu softvfp
	.type	replaceNewLines, %function
replaceNewLines:
	@ 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]
	bl	getBuff1
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L20
.L22:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L21
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	mov	r2, #32
	strb	r2, [r3]
.L21:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L20:
	ldr	r3, [fp, #-12]
	ldr	r2, .L23
	cmp	r3, r2
	ble	.L22
	ldr	r0, .L23+4
	bl	puts
	ldr	r0, [fp, #-8]
	bl	puts
	ldr	r0, [fp, #-8]
	bl	putBuff2
	nop
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	49999
	.word	.LC1
	.size	replaceNewLines, .-replaceNewLines
	.align	2
	.global	getBuff2
	.syntax unified
	.arm
	.fpu softvfp
	.type	getBuff2, %function
getBuff2:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r0, .L29
	bl	pthread_mutex_lock
	b	.L26
.L27:
	ldr	r1, .L29
	ldr	r0, .L29+4
	bl	pthread_cond_wait
.L26:
	ldr	r3, .L29+8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L27
	ldr	r3, .L29+12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, .L29+8
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L29+8
	str	r3, [r2]
	ldr	r0, .L29
	bl	pthread_mutex_unlock
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L30:
	.align	2
.L29:
	.word	mutex_2
	.word	full_2
	.word	count_2
	.word	buff2
	.size	getBuff2, .-getBuff2
	.align	2
	.global	putBuff3
	.syntax unified
	.arm
	.fpu softvfp
	.type	putBuff3, %function
putBuff3:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r0, .L32
	bl	pthread_mutex_lock
	ldr	r2, .L32+4
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	ldr	r3, .L32+8
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L32+8
	str	r3, [r2]
	ldr	r0, .L32+12
	bl	pthread_cond_signal
	ldr	r0, .L32
	bl	pthread_mutex_unlock
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L33:
	.align	2
.L32:
	.word	mutex_3
	.word	buff3
	.word	count_3
	.word	full_3
	.size	putBuff3, .-putBuff3
	.section	.rodata
	.align	2
.LC2:
	.ascii	"after replace\000"
	.text
	.align	2
	.global	replacePlusSigns
	.syntax unified
	.arm
	.fpu softvfp
	.type	replacePlusSigns, %function
replacePlusSigns:
	@ 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]
	bl	getBuff2
	str	r0, [fp, #-8]
	mov	r0, #10
	bl	putchar
	ldr	r0, [fp, #-8]
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L35
.L37:
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #43
	bne	.L36
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #43
	bne	.L36
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	mov	r2, #94
	strb	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	mov	r2, #45
	strb	r2, [r3]
.L36:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L35:
	ldr	r3, .L41
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	blt	.L37
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-16]
	b	.L38
.L40:
	ldr	r3, [fp, #-16]
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-12]
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	beq	.L39
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L39:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L38:
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L40
	ldr	r3, [fp, #-12]
	mov	r2, #0
	strb	r2, [r3]
	ldr	r0, .L41+4
	bl	puts
	ldr	r0, [fp, #-8]
	bl	puts
	ldr	r0, [fp, #-8]
	bl	putBuff3
	nop
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L42:
	.align	2
.L41:
	.word	totalLen
	.word	.LC2
	.size	replacePlusSigns, .-replacePlusSigns
	.align	2
	.global	getBuff3
	.syntax unified
	.arm
	.fpu softvfp
	.type	getBuff3, %function
getBuff3:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r0, .L47
	bl	pthread_mutex_lock
	b	.L44
.L45:
	ldr	r1, .L47
	ldr	r0, .L47+4
	bl	pthread_cond_wait
.L44:
	ldr	r3, .L47+8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L45
	ldr	r3, .L47+12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, .L47+8
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L47+8
	str	r3, [r2]
	ldr	r0, .L47
	bl	pthread_mutex_unlock
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L48:
	.align	2
.L47:
	.word	mutex_3
	.word	full_3
	.word	count_3
	.word	buff3
	.size	getBuff3, .-getBuff3
	.align	2
	.global	outputText
	.syntax unified
	.arm
	.fpu softvfp
	.type	outputText, %function
outputText:
	@ 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]
	bl	getBuff3
	str	r0, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L50
.L53:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #83
	bne	.L51
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #84
	bne	.L51
	ldr	r3, [fp, #-12]
	add	r3, r3, #2
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #79
	bne	.L51
	ldr	r3, [fp, #-12]
	add	r3, r3, #3
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #80
	beq	.L52
.L51:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	putchar
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L50:
	ldr	r3, [fp, #-12]
	cmp	r3, #79
	ble	.L53
.L52:
	ldr	r3, .L54
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	nop
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L55:
	.align	2
.L54:
	.word	stdout
	.size	outputText, .-outputText
	.section	.rodata
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L59
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r0, fp, #24
	mov	r3, #0
	ldr	r2, .L59+4
	mov	r1, #0
	bl	pthread_create
	sub	r0, fp, #20
	mov	r3, #0
	ldr	r2, .L59+8
	mov	r1, #0
	bl	pthread_create
	sub	r0, fp, #16
	mov	r3, #0
	ldr	r2, .L59+12
	mov	r1, #0
	bl	pthread_create
	sub	r0, fp, #12
	mov	r3, #0
	ldr	r2, .L59+16
	mov	r1, #0
	bl	pthread_create
	ldr	r3, [fp, #-24]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-20]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-16]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-12]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	mov	r3, #0
	ldr	r2, .L59
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L58
	bl	__stack_chk_fail
.L58:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L60:
	.align	2
.L59:
	.word	.LC3
	.word	getInput
	.word	replaceNewLines
	.word	replacePlusSigns
	.word	outputText
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
