	.file	"731252.c"
	.intel_syntax noprefix
	.text
	.globl	sum
	.bss
	.align 8
	.type	sum, @object
	.size	sum, 8
sum:
	.zero	8
	.globl	odd
	.align 8
	.type	odd, @object
	.size	odd, 8
odd:
	.zero	8
	.globl	min
	.data
	.align 8
	.type	min, @object
	.size	min, 8
min:
	.quad	2147483647
	.globl	max
	.align 8
	.type	max, @object
	.size	max, 8
max:
	.quad	-2147483648
	.globl	done
	.bss
	.type	done, @object
	.size	done, 1
done:
	.zero	1
	.globl	inputNumber
	.align 8
	.type	inputNumber, @object
	.size	inputNumber, 8
inputNumber:
	.zero	8
	.globl	mutex
	.align 32
	.type	mutex, @object
	.size	mutex, 40
mutex:
	.zero	40
	.globl	cond
	.align 8
	.type	cond, @object
	.size	cond, 8
cond:
	.zero	8
	.globl	cond1
	.align 32
	.type	cond1, @object
	.size	cond1, 48
cond1:
	.zero	48
	.globl	idleThread
	.align 8
	.type	idleThread, @object
	.size	idleThread, 8
idleThread:
	.zero	8
	.section	.rodata
	.align 8
.LC0:
	.string	"Thread %d: check done condition\n"
.LC1:
	.string	"Check after the conditon "
	.text
	.globl	calculate_square
	.type	calculate_square, @function
calculate_square:
.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	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -12[rbp], eax
.L5:
	lea	rdi, mutex[rip]
	call	pthread_mutex_lock@PLT
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, mutex[rip]
	lea	rdi, cond1[rip]
	call	pthread_cond_wait@PLT
	mov	rdx, QWORD PTR idleThread[rip]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	DWORD PTR [rax], 1
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	rdx, QWORD PTR inputNumber[rip]
	mov	rax, QWORD PTR inputNumber[rip]
	imul	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	rdx, QWORD PTR sum[rip]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	QWORD PTR sum[rip], rax
	mov	rax, QWORD PTR inputNumber[rip]
	cqo
	shr	rdx, 63
	add	rax, rdx
	and	eax, 1
	sub	rax, rdx
	cmp	rax, 1
	jne	.L2
	mov	rax, QWORD PTR odd[rip]
	add	rax, 1
	mov	QWORD PTR odd[rip], rax
.L2:
	mov	rdx, QWORD PTR inputNumber[rip]
	mov	rax, QWORD PTR min[rip]
	cmp	rdx, rax
	jge	.L3
	mov	rax, QWORD PTR inputNumber[rip]
	mov	QWORD PTR min[rip], rax
.L3:
	mov	rdx, QWORD PTR inputNumber[rip]
	mov	rax, QWORD PTR max[rip]
	cmp	rdx, rax
	jle	.L4
	mov	rax, QWORD PTR inputNumber[rip]
	mov	QWORD PTR max[rip], rax
.L4:
	lea	rdi, mutex[rip]
	call	pthread_mutex_unlock@PLT
	mov	rax, QWORD PTR inputNumber[rip]
	mov	edi, eax
	call	sleep@PLT
	lea	rdi, mutex[rip]
	call	pthread_mutex_lock@PLT
	mov	rdx, QWORD PTR idleThread[rip]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	DWORD PTR [rax], 0
	lea	rdi, mutex[rip]
	call	pthread_mutex_unlock@PLT
	jmp	.L5
	.cfi_endproc
.LFE6:
	.size	calculate_square, .-calculate_square
	.section	.rodata
.LC2:
	.string	"Usage: sumsq <infile>"
.LC3:
	.string	"r"
.LC4:
	.string	"the input number is: %ld \n"
	.align 8
.LC5:
	.string	"Sleep to wait for a idle thread "
	.align 8
.LC6:
	.string	"Sleeping at the main function "
	.align 8
.LC7:
	.string	"ERROR: Unrecognized action: '%c'\n"
.LC8:
	.string	"%c %ld\n"
.LC9:
	.string	"%ld %ld %ld %ld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 120
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	DWORD PTR -148[rbp], edi
	mov	QWORD PTR -160[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	rbx, rax
	cmp	DWORD PTR -148[rbp], 3
	je	.L7
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L7:
	mov	rax, QWORD PTR -160[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -104[rbp], rax
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -124[rbp], eax
	mov	eax, DWORD PTR -124[rbp]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -96[rbp], rdx
	movsx	rdx, eax
	mov	r14, rdx
	mov	r15d, 0
	movsx	rdx, eax
	mov	r12, rdx
	mov	r13d, 0
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L8:
	cmp	rsp, rdx
	je	.L9
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L8
.L9:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L10
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L10:
	mov	rax, rsp
	add	rax, 7
	shr	rax, 3
	sal	rax, 3
	mov	QWORD PTR -88[rbp], rax
	mov	eax, DWORD PTR -124[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR cond[rip], rax
	mov	eax, DWORD PTR -124[rbp]
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR idleThread[rip], rax
	mov	rax, QWORD PTR idleThread[rip]
	mov	DWORD PTR [rax], 0
	mov	DWORD PTR -132[rbp], 0
	jmp	.L11
.L12:
	mov	edi, 4
	call	malloc@PLT
	mov	QWORD PTR -64[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -132[rbp]
	mov	DWORD PTR [rax], edx
	mov	rdx, QWORD PTR -64[rbp]
	lea	rax, -112[rbp]
	mov	rcx, rdx
	lea	rdx, calculate_square[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	DWORD PTR -116[rbp], eax
	mov	rcx, QWORD PTR -112[rbp]
	mov	rax, QWORD PTR -88[rbp]
	mov	edx, DWORD PTR -132[rbp]
	movsx	rdx, edx
	mov	QWORD PTR [rax+rdx*8], rcx
	add	DWORD PTR -132[rbp], 1
.L11:
	mov	eax, DWORD PTR -132[rbp]
	cmp	eax, DWORD PTR -124[rbp]
	jl	.L12
	mov	rax, QWORD PTR -160[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -80[rbp], rax
	mov	rax, QWORD PTR -80[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -72[rbp], rax
	mov	BYTE PTR -137[rbp], 0
	jmp	.L13
.L21:
	mov	rax, QWORD PTR inputNumber[rip]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, BYTE PTR -112[rbp]
	cmp	al, 112
	jne	.L14
	mov	BYTE PTR -137[rbp], 0
	jmp	.L15
.L19:
	mov	DWORD PTR -136[rbp], 0
	jmp	.L16
.L18:
	mov	rdx, QWORD PTR idleThread[rip]
	mov	eax, DWORD PTR -136[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L17
	lea	rdi, cond1[rip]
	call	pthread_cond_signal@PLT
	mov	DWORD PTR -120[rbp], eax
	mov	BYTE PTR -137[rbp], 1
.L17:
	add	DWORD PTR -136[rbp], 1
.L16:
	mov	eax, DWORD PTR -136[rbp]
	cmp	eax, DWORD PTR -124[rbp]
	jl	.L18
	movzx	eax, BYTE PTR -137[rbp]
	xor	eax, 1
	test	al, al
	je	.L15
	mov	edi, 1
	call	sleep@PLT
	lea	rdi, .LC5[rip]
	call	puts@PLT
.L15:
	movzx	eax, BYTE PTR -137[rbp]
	xor	eax, 1
	test	al, al
	jne	.L19
	jmp	.L13
.L14:
	movzx	eax, BYTE PTR -112[rbp]
	cmp	al, 119
	jne	.L20
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	rax, QWORD PTR inputNumber[rip]
	mov	edi, eax
	call	sleep@PLT
	jmp	.L13
.L20:
	movzx	eax, BYTE PTR -112[rbp]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L13:
	lea	rdx, -112[rbp]
	mov	rax, QWORD PTR -72[rbp]
	lea	rcx, inputNumber[rip]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	cmp	eax, 2
	je	.L21
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	DWORD PTR -128[rbp], 0
	jmp	.L22
.L23:
	mov	rax, QWORD PTR -88[rbp]
	mov	edx, DWORD PTR -128[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR [rax+rdx*8]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	add	DWORD PTR -128[rbp], 1
.L22:
	mov	eax, DWORD PTR -128[rbp]
	cmp	eax, DWORD PTR -124[rbp]
	jl	.L23
	mov	rsi, QWORD PTR max[rip]
	mov	rcx, QWORD PTR min[rip]
	mov	rdx, QWORD PTR odd[rip]
	mov	rax, QWORD PTR sum[rip]
	mov	r8, rsi
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rsp, rbx
	mov	rbx, QWORD PTR -56[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"731252.c"
	.text
	.global	sum
	.bss
	.align	2
	.type	sum, %object
	.size	sum, 4
sum:
	.space	4
	.global	odd
	.align	2
	.type	odd, %object
	.size	odd, 4
odd:
	.space	4
	.global	min
	.data
	.align	2
	.type	min, %object
	.size	min, 4
min:
	.word	2147483647
	.global	max
	.align	2
	.type	max, %object
	.size	max, 4
max:
	.word	-2147483648
	.global	done
	.bss
	.type	done, %object
	.size	done, 1
done:
	.space	1
	.comm	inputNumber,4,4
	.global	mutex
	.align	2
	.type	mutex, %object
	.size	mutex, 24
mutex:
	.space	24
	.comm	cond,4,4
	.global	cond1
	.align	3
	.type	cond1, %object
	.size	cond1, 48
cond1:
	.space	48
	.comm	idleThread,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Thread %d: check done condition\012\000"
	.align	2
.LC1:
	.ascii	"Check after the conditon \000"
	.text
	.align	2
	.global	calculate_square
	.syntax unified
	.arm
	.fpu softvfp
	.type	calculate_square, %function
calculate_square:
	@ 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]
	ldr	r3, [r3]
	str	r3, [fp, #-12]
.L5:
	ldr	r0, .L6
	bl	pthread_mutex_lock
	ldr	r1, [fp, #-12]
	ldr	r0, .L6+4
	bl	printf
	ldr	r1, .L6
	ldr	r0, .L6+8
	bl	pthread_cond_wait
	ldr	r3, .L6+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3]
	ldr	r0, .L6+16
	bl	puts
	ldr	r3, .L6+20
	ldr	r3, [r3]
	ldr	r2, .L6+20
	ldr	r2, [r2]
	mul	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, .L6+24
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldr	r2, .L6+24
	str	r3, [r2]
	ldr	r3, .L6+20
	ldr	r3, [r3]
	cmp	r3, #0
	and	r3, r3, #1
	rsblt	r3, r3, #0
	cmp	r3, #1
	bne	.L2
	ldr	r3, .L6+28
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L6+28
	str	r3, [r2]
.L2:
	ldr	r3, .L6+20
	ldr	r2, [r3]
	ldr	r3, .L6+32
	ldr	r3, [r3]
	cmp	r2, r3
	bge	.L3
	ldr	r3, .L6+20
	ldr	r3, [r3]
	ldr	r2, .L6+32
	str	r3, [r2]
.L3:
	ldr	r3, .L6+20
	ldr	r2, [r3]
	ldr	r3, .L6+36
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L4
	ldr	r3, .L6+20
	ldr	r3, [r3]
	ldr	r2, .L6+36
	str	r3, [r2]
.L4:
	ldr	r0, .L6
	bl	pthread_mutex_unlock
	ldr	r3, .L6+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	sleep
	ldr	r0, .L6
	bl	pthread_mutex_lock
	ldr	r3, .L6+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r0, .L6
	bl	pthread_mutex_unlock
	b	.L5
.L7:
	.align	2
.L6:
	.word	mutex
	.word	.LC0
	.word	cond1
	.word	idleThread
	.word	.LC1
	.word	inputNumber
	.word	sum
	.word	odd
	.word	min
	.word	max
	.size	calculate_square, .-calculate_square
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Usage: sumsq <infile>\000"
	.align	2
.LC3:
	.ascii	"r\000"
	.align	2
.LC4:
	.ascii	"the input number is: %ld \012\000"
	.align	2
.LC5:
	.ascii	"Sleep to wait for a idle thread \000"
	.align	2
.LC6:
	.ascii	"Sleeping at the main function \000"
	.align	2
.LC7:
	.ascii	"ERROR: Unrecognized action: '%c'\012\000"
	.align	2
.LC8:
	.ascii	"%c %ld\012\000"
	.align	2
.LC9:
	.ascii	"%ld %ld %ld %ld\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 = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #84
	str	r0, [fp, #-80]
	str	r1, [fp, #-84]
	ldr	r3, .L25
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, sp
	mov	r4, r3
	ldr	r3, [fp, #-80]
	cmp	r3, #3
	beq	.L9
	ldr	r0, .L25+4
	bl	puts
	mov	r0, #1
	bl	exit
.L9:
	ldr	r3, [fp, #-84]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-52]
	ldr	r0, [fp, #-52]
	bl	atoi
	str	r0, [fp, #-48]
	ldr	ip, [fp, #-48]
	sub	r3, ip, #1
	str	r3, [fp, #-44]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	add	r3, sp, #8
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-40]
	ldr	r2, [fp, #-48]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L25+8
	str	r2, [r3]
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L25+12
	str	r2, [r3]
	ldr	r3, .L25+12
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L10
.L11:
	mov	r0, #4
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-60]
	str	r2, [r3]
	sub	r0, fp, #68
	ldr	r3, [fp, #-24]
	ldr	r2, .L25+16
	mov	r1, #0
	bl	pthread_create
	str	r0, [fp, #-20]
	ldr	r1, [fp, #-68]
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-60]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L10:
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	blt	.L11
	ldr	r3, [fp, #-84]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-36]
	ldr	r1, .L25+20
	ldr	r0, [fp, #-36]
	bl	fopen
	str	r0, [fp, #-32]
	mov	r3, #0
	strb	r3, [fp, #-69]
	b	.L12
.L20:
	ldr	r3, .L25+24
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L25+28
	bl	printf
	ldrb	r3, [fp, #-68]	@ zero_extendqisi2
	cmp	r3, #112
	bne	.L13
	mov	r3, #0
	strb	r3, [fp, #-69]
	b	.L14
.L18:
	mov	r3, #0
	str	r3, [fp, #-64]
	b	.L15
.L17:
	ldr	r3, .L25+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-64]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L16
	ldr	r0, .L25+32
	bl	pthread_cond_signal
	str	r0, [fp, #-28]
	mov	r3, #1
	strb	r3, [fp, #-69]
.L16:
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L15:
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	blt	.L17
	ldrb	r3, [fp, #-69]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L14
	mov	r0, #1
	bl	sleep
	ldr	r0, .L25+36
	bl	puts
.L14:
	ldrb	r3, [fp, #-69]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L18
	b	.L12
.L13:
	ldrb	r3, [fp, #-68]	@ zero_extendqisi2
	cmp	r3, #119
	bne	.L19
	ldr	r0, .L25+40
	bl	puts
	ldr	r3, .L25+24
	ldr	r3, [r3]
	mov	r0, r3
	bl	sleep
	b	.L12
.L19:
	ldrb	r3, [fp, #-68]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L25+44
	bl	printf
	mov	r0, #1
	bl	exit
.L12:
	sub	r2, fp, #68
	ldr	r3, .L25+24
	ldr	r1, .L25+48
	ldr	r0, [fp, #-32]
	bl	__isoc99_fscanf
	mov	r3, r0
	cmp	r3, #2
	beq	.L20
	ldr	r0, [fp, #-32]
	bl	fclose
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L21
.L22:
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-56]
	ldr	r3, [r3, r2, lsl #2]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L21:
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	blt	.L22
	ldr	r3, .L25+52
	ldr	r1, [r3]
	ldr	r3, .L25+56
	ldr	r2, [r3]
	ldr	r3, .L25+60
	ldr	r0, [r3]
	ldr	r3, .L25+64
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, .L25+68
	bl	printf
	mov	r3, #0
	mov	sp, r4
	ldr	r2, .L25
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L24
	bl	__stack_chk_fail
.L24:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L26:
	.align	2
.L25:
	.word	.LC10
	.word	.LC2
	.word	cond
	.word	idleThread
	.word	calculate_square
	.word	.LC3
	.word	inputNumber
	.word	.LC4
	.word	cond1
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	sum
	.word	odd
	.word	min
	.word	max
	.word	.LC9
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
