	.file	"606805.c"
	.intel_syntax noprefix
	.text
	.globl	idx
	.bss
	.align 4
	.type	idx, @object
	.size	idx, 4
idx:
	.zero	4
	.globl	jdx
	.data
	.align 4
	.type	jdx, @object
	.size	jdx, 4
jdx:
	.long	1
	.globl	seqIterations
	.align 4
	.type	seqIterations, @object
	.size	seqIterations, 4
seqIterations:
	.long	47
	.globl	reqIterations
	.align 4
	.type	reqIterations, @object
	.size	reqIterations, 4
reqIterations:
	.long	1400000
	.globl	fib
	.bss
	.align 4
	.type	fib, @object
	.size	fib, 4
fib:
	.zero	4
	.globl	fib0
	.align 4
	.type	fib0, @object
	.size	fib0, 4
fib0:
	.zero	4
	.globl	fib1
	.data
	.align 4
	.type	fib1, @object
	.size	fib1, 4
fib1:
	.long	1
	.globl	threads
	.bss
	.align 8
	.type	threads, @object
	.size	threads, 8
threads:
	.zero	8
	.globl	threadParams
	.align 4
	.type	threadParams, @object
	.size	threadParams, 4
threadParams:
	.zero	4
	.globl	rt_sched_attr
	.align 32
	.type	rt_sched_attr, @object
	.size	rt_sched_attr, 56
rt_sched_attr:
	.zero	56
	.globl	rt_max_prio
	.align 4
	.type	rt_max_prio, @object
	.size	rt_max_prio, 4
rt_max_prio:
	.zero	4
	.globl	rt_min_prio
	.align 4
	.type	rt_min_prio, @object
	.size	rt_min_prio, 4
rt_min_prio:
	.zero	4
	.globl	rt_param
	.align 4
	.type	rt_param, @object
	.size	rt_param, 4
rt_param:
	.zero	4
	.globl	main_param
	.align 4
	.type	main_param, @object
	.size	main_param, 4
main_param:
	.zero	4
	.globl	main_attr
	.align 32
	.type	main_attr, @object
	.size	main_attr, 56
main_attr:
	.zero	56
	.globl	mainpid
	.align 4
	.type	mainpid, @object
	.size	mainpid, 4
mainpid:
	.zero	4
	.text
	.globl	delta_t
	.type	delta_t, @function
delta_t:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR -8[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -8[rbp], 0
	js	.L2
	cmp	DWORD PTR -4[rbp], 0
	js	.L3
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR [rax], rdx
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR 8[rax], rdx
	jmp	.L4
.L3:
	mov	eax, DWORD PTR -8[rbp]
	sub	eax, 1
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR [rax], rdx
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 1000000000
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR 8[rax], rdx
	jmp	.L4
.L2:
	cmp	DWORD PTR -4[rbp], 0
	js	.L5
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR [rax], rdx
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR 8[rax], rdx
	jmp	.L4
.L5:
	mov	eax, DWORD PTR -8[rbp]
	sub	eax, 1
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR [rax], rdx
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 1000000000
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR 8[rax], rdx
.L4:
	mov	eax, 1
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	delta_t, .-delta_t
	.section	.rodata
	.align 8
.LC0:
	.string	"\nThread idx=%d, sum[0...%d]=%d\n"
	.align 8
.LC1:
	.string	"Thread idx=%d, affinity contained:"
.LC2:
	.string	" CPU-%d "
	.align 8
.LC3:
	.string	"\nThread idx=%d ran %ld sec, %ld msec (%ld microsec)\n"
	.text
	.globl	counterThread
	.type	counterThread, @function
counterThread:
.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, 240
	mov	QWORD PTR -232[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -224[rbp], 0
	mov	QWORD PTR -192[rbp], 0
	mov	QWORD PTR -184[rbp], 0
	mov	QWORD PTR -176[rbp], 0
	mov	QWORD PTR -168[rbp], 0
	mov	QWORD PTR -160[rbp], 0
	mov	QWORD PTR -152[rbp], 0
	mov	rax, QWORD PTR -232[rbp]
	mov	QWORD PTR -216[rbp], rax
	lea	rax, -192[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	clock_gettime@PLT
	call	pthread_self@PLT
	mov	QWORD PTR -208[rbp], rax
	lea	rax, -144[rbp]
	mov	rsi, rax
	mov	eax, 0
	mov	edx, 16
	mov	rdi, rsi
	mov	rcx, rdx
	rep stosq
	mov	DWORD PTR -220[rbp], 1
	jmp	.L8
.L9:
	mov	edx, DWORD PTR -224[rbp]
	mov	eax, DWORD PTR -220[rbp]
	add	eax, edx
	mov	DWORD PTR -224[rbp], eax
	add	DWORD PTR -220[rbp], 1
.L8:
	mov	rax, QWORD PTR -216[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -220[rbp], eax
	jle	.L9
	mov	DWORD PTR idx[rip], 0
	jmp	.L10
.L13:
	mov	edx, DWORD PTR fib0[rip]
	mov	eax, DWORD PTR fib1[rip]
	add	eax, edx
	mov	DWORD PTR fib[rip], eax
	jmp	.L11
.L12:
	mov	eax, DWORD PTR fib1[rip]
	mov	DWORD PTR fib0[rip], eax
	mov	eax, DWORD PTR fib[rip]
	mov	DWORD PTR fib1[rip], eax
	mov	edx, DWORD PTR fib0[rip]
	mov	eax, DWORD PTR fib1[rip]
	add	eax, edx
	mov	DWORD PTR fib[rip], eax
	mov	eax, DWORD PTR jdx[rip]
	add	eax, 1
	mov	DWORD PTR jdx[rip], eax
.L11:
	mov	edx, DWORD PTR jdx[rip]
	mov	eax, DWORD PTR seqIterations[rip]
	cmp	edx, eax
	jb	.L12
	mov	eax, DWORD PTR idx[rip]
	add	eax, 1
	mov	DWORD PTR idx[rip], eax
.L10:
	mov	edx, DWORD PTR idx[rip]
	mov	eax, DWORD PTR reqIterations[rip]
	cmp	edx, eax
	jb	.L13
	mov	ecx, DWORD PTR -224[rbp]
	mov	rax, QWORD PTR -216[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -216[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdx, -144[rbp]
	mov	rax, QWORD PTR -208[rbp]
	mov	esi, 128
	mov	rdi, rax
	call	pthread_getaffinity_np@PLT
	mov	rax, QWORD PTR -216[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -220[rbp], 0
	jmp	.L14
.L18:
	mov	eax, DWORD PTR -220[rbp]
	cdqe
	mov	QWORD PTR -200[rbp], rax
	cmp	QWORD PTR -200[rbp], 1023
	ja	.L15
	mov	rax, QWORD PTR -200[rbp]
	shr	rax, 6
	lea	rdx, 0[0+rax*8]
	lea	rax, -144[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -200[rbp]
	and	eax, 63
	mov	ecx, eax
	shr	rdx, cl
	mov	rax, rdx
	and	eax, 1
	test	rax, rax
	je	.L15
	mov	eax, 1
	jmp	.L16
.L15:
	mov	eax, 0
.L16:
	test	eax, eax
	je	.L17
	mov	eax, DWORD PTR -220[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
.L17:
	add	DWORD PTR -220[rbp], 1
.L14:
	cmp	DWORD PTR -220[rbp], 0
	jle	.L18
	lea	rax, -176[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	clock_gettime@PLT
	lea	rdx, -160[rbp]
	lea	rcx, -192[rbp]
	lea	rax, -176[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	delta_t
	mov	rcx, QWORD PTR -152[rbp]
	movabs	rdx, 2361183241434822607
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 7
	sar	rcx, 63
	mov	rdx, rcx
	sub	rax, rdx
	mov	rsi, rax
	mov	rcx, QWORD PTR -152[rbp]
	movabs	rdx, 4835703278458516699
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 18
	sar	rcx, 63
	mov	rdx, rcx
	sub	rax, rdx
	mov	rcx, rax
	mov	rdx, QWORD PTR -160[rbp]
	mov	rax, QWORD PTR -216[rbp]
	mov	eax, DWORD PTR [rax]
	mov	r8, rsi
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -224[rbp]
	mov	rdi, rax
	call	pthread_exit@PLT
	.cfi_endproc
.LFE7:
	.size	counterThread, .-counterThread
	.section	.rodata
.LC4:
	.string	"Pthread Policy is SCHED_FIFO"
.LC5:
	.string	"Pthread Policy is SCHED_OTHER"
.LC6:
	.string	"Pthread Policy is UNKNOWN"
	.text
	.globl	print_scheduler
	.type	print_scheduler, @function
print_scheduler:
.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, 16
	mov	eax, 0
	call	getpid@PLT
	mov	edi, eax
	call	sched_getscheduler@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 2
	je	.L21
	cmp	DWORD PTR -4[rbp], 2
	jg	.L22
	cmp	DWORD PTR -4[rbp], 0
	je	.L23
	cmp	DWORD PTR -4[rbp], 1
	jne	.L22
	lea	rdi, .LC4[rip]
	call	puts@PLT
	jmp	.L24
.L23:
	lea	rdi, .LC5[rip]
	call	puts@PLT
	jmp	.L24
.L21:
	lea	rdi, .LC5[rip]
	call	puts@PLT
	jmp	.L24
.L22:
	lea	rdi, .LC6[rip]
	call	puts@PLT
	nop
.L24:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	print_scheduler, .-print_scheduler
	.section	.rodata
.LC7:
	.string	"main_param"
.LC8:
	.string	"PTHREAD SCOPE SYSTEM"
.LC9:
	.string	"PTHREAD SCOPE PROCESS"
.LC10:
	.string	"PTHREAD SCOPE UNKNOWN"
.LC11:
	.string	"rt_max_prio=%d\n"
.LC12:
	.string	"rt_min_prio=%d\n"
.LC13:
	.string	"\nTEST COMPLETE"
	.text
	.globl	main
	.type	main, @function
main:
.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, 192
	mov	DWORD PTR -180[rbp], edi
	mov	QWORD PTR -192[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -144[rbp]
	mov	rsi, rax
	mov	eax, 0
	mov	edx, 16
	mov	rdi, rsi
	mov	rcx, rdx
	rep stosq
	mov	DWORD PTR -160[rbp], 0
	jmp	.L26
.L29:
	mov	eax, DWORD PTR -160[rbp]
	cdqe
	mov	QWORD PTR -152[rbp], rax
	cmp	QWORD PTR -152[rbp], 1023
	ja	.L28
	mov	rax, QWORD PTR -152[rbp]
	shr	rax, 6
	lea	rdx, 0[0+rax*8]
	lea	rcx, -144[rbp]
	add	rdx, rcx
	mov	rsi, QWORD PTR [rdx]
	mov	rdx, QWORD PTR -152[rbp]
	and	edx, 63
	mov	edi, 1
	mov	ecx, edx
	sal	rdi, cl
	mov	rdx, rdi
	lea	rcx, 0[0+rax*8]
	lea	rax, -144[rbp]
	add	rax, rcx
	or	rdx, rsi
	mov	QWORD PTR [rax], rdx
.L28:
	add	DWORD PTR -160[rbp], 1
.L26:
	cmp	DWORD PTR -160[rbp], 0
	jle	.L29
	mov	eax, 0
	call	getpid@PLT
	mov	DWORD PTR mainpid[rip], eax
	mov	edi, 1
	call	sched_get_priority_max@PLT
	mov	DWORD PTR rt_max_prio[rip], eax
	mov	edi, 1
	call	sched_get_priority_min@PLT
	mov	DWORD PTR rt_min_prio[rip], eax
	call	print_scheduler
	mov	eax, DWORD PTR mainpid[rip]
	lea	rsi, main_param[rip]
	mov	edi, eax
	call	sched_getparam@PLT
	mov	DWORD PTR -156[rbp], eax
	mov	eax, DWORD PTR rt_max_prio[rip]
	mov	DWORD PTR main_param[rip], eax
	mov	eax, 0
	call	getpid@PLT
	lea	rdx, main_param[rip]
	mov	esi, 1
	mov	edi, eax
	call	sched_setscheduler@PLT
	mov	DWORD PTR -156[rbp], eax
	cmp	DWORD PTR -156[rbp], 0
	jns	.L30
	lea	rdi, .LC7[rip]
	call	perror@PLT
.L30:
	call	print_scheduler
	lea	rax, -164[rbp]
	mov	rsi, rax
	lea	rdi, main_attr[rip]
	call	pthread_attr_getscope@PLT
	mov	eax, DWORD PTR -164[rbp]
	test	eax, eax
	jne	.L31
	lea	rdi, .LC8[rip]
	call	puts@PLT
	jmp	.L32
.L31:
	mov	eax, DWORD PTR -164[rbp]
	cmp	eax, 1
	jne	.L33
	lea	rdi, .LC9[rip]
	call	puts@PLT
	jmp	.L32
.L33:
	lea	rdi, .LC10[rip]
	call	puts@PLT
.L32:
	mov	eax, DWORD PTR rt_max_prio[rip]
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR rt_min_prio[rip]
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -160[rbp], 0
	jmp	.L34
.L35:
	mov	eax, DWORD PTR -160[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 3
	lea	rdx, rt_sched_attr[rip]
	add	rax, rdx
	mov	rdi, rax
	call	pthread_attr_init@PLT
	mov	DWORD PTR -156[rbp], eax
	mov	eax, DWORD PTR -160[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 3
	lea	rdx, rt_sched_attr[rip]
	add	rax, rdx
	mov	esi, 1
	mov	rdi, rax
	call	pthread_attr_setinheritsched@PLT
	mov	DWORD PTR -156[rbp], eax
	mov	eax, DWORD PTR -160[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 3
	lea	rdx, rt_sched_attr[rip]
	add	rax, rdx
	mov	esi, 1
	mov	rdi, rax
	call	pthread_attr_setschedpolicy@PLT
	mov	DWORD PTR -156[rbp], eax
	mov	eax, DWORD PTR -160[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	sub	rax, rdx
	sal	rax, 3
	lea	rdx, rt_sched_attr[rip]
	lea	rcx, [rax+rdx]
	lea	rax, -144[rbp]
	mov	rdx, rax
	mov	esi, 128
	mov	rdi, rcx
	call	pthread_attr_setaffinity_np@PLT
	mov	DWORD PTR -156[rbp], eax
	mov	eax, DWORD PTR rt_max_prio[rip]
	sub	eax, DWORD PTR -160[rbp]
	lea	ecx, -1[rax]
	mov	eax, DWORD PTR -160[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, rt_param[rip]
	mov	DWORD PTR [rdx+rax], ecx
	mov	eax, DWORD PTR -160[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, rt_param[rip]
	add	rdx, rax
	mov	eax, DWORD PTR -160[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 3
	sub	rax, rcx
	sal	rax, 3
	lea	rcx, rt_sched_attr[rip]
	add	rax, rcx
	mov	rsi, rdx
	mov	rdi, rax
	call	pthread_attr_setschedparam@PLT
	mov	eax, DWORD PTR -160[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, threadParams[rip]
	mov	eax, DWORD PTR -160[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR -160[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, threadParams[rip]
	add	rdx, rax
	mov	eax, DWORD PTR -160[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rax, threads[rip]
	add	rax, rcx
	mov	rcx, rdx
	lea	rdx, counterThread[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	add	DWORD PTR -160[rbp], 1
.L34:
	cmp	DWORD PTR -160[rbp], 0
	jle	.L35
	mov	DWORD PTR -160[rbp], 0
	jmp	.L36
.L37:
	mov	eax, DWORD PTR -160[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, threads[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	add	DWORD PTR -160[rbp], 1
.L36:
	cmp	DWORD PTR -160[rbp], 0
	jle	.L37
	lea	rdi, .LC13[rip]
	call	puts@PLT
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L39
	call	__stack_chk_fail@PLT
.L39:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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	"606805.c"
	.text
	.global	idx
	.bss
	.align	2
	.type	idx, %object
	.size	idx, 4
idx:
	.space	4
	.global	jdx
	.data
	.align	2
	.type	jdx, %object
	.size	jdx, 4
jdx:
	.word	1
	.global	seqIterations
	.align	2
	.type	seqIterations, %object
	.size	seqIterations, 4
seqIterations:
	.word	47
	.global	reqIterations
	.align	2
	.type	reqIterations, %object
	.size	reqIterations, 4
reqIterations:
	.word	1400000
	.global	fib
	.bss
	.align	2
	.type	fib, %object
	.size	fib, 4
fib:
	.space	4
	.global	fib0
	.align	2
	.type	fib0, %object
	.size	fib0, 4
fib0:
	.space	4
	.global	fib1
	.data
	.align	2
	.type	fib1, %object
	.size	fib1, 4
fib1:
	.word	1
	.comm	threads,4,4
	.comm	threadParams,4,4
	.comm	rt_sched_attr,36,4
	.comm	rt_max_prio,4,4
	.comm	rt_min_prio,4,4
	.comm	rt_param,4,4
	.comm	main_param,4,4
	.comm	main_attr,36,4
	.comm	mainpid,4,4
	.text
	.align	2
	.global	delta_t
	.syntax unified
	.arm
	.fpu softvfp
	.type	delta_t, %function
delta_t:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	sub	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #4]
	sub	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	blt	.L2
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	blt	.L3
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-12]
	str	r2, [r3]
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #4]
	b	.L4
.L3:
	ldr	r3, [fp, #-12]
	sub	r2, r3, #1
	ldr	r3, [fp, #-24]
	str	r2, [r3]
	ldr	r2, [fp, #-8]
	ldr	r3, .L7
	add	r3, r2, r3
	ldr	r2, [fp, #-24]
	str	r3, [r2, #4]
	b	.L4
.L2:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	blt	.L5
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-12]
	str	r2, [r3]
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #4]
	b	.L4
.L5:
	ldr	r3, [fp, #-12]
	sub	r2, r3, #1
	ldr	r3, [fp, #-24]
	str	r2, [r3]
	ldr	r2, [fp, #-8]
	ldr	r3, .L7
	add	r3, r2, r3
	ldr	r2, [fp, #-24]
	str	r3, [r2, #4]
.L4:
	mov	r3, #1
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L8:
	.align	2
.L7:
	.word	1000000000
	.size	delta_t, .-delta_t
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012Thread idx=%d, sum[0...%d]=%d\012\000"
	.align	2
.LC1:
	.ascii	"Thread idx=%d, affinity contained:\000"
	.align	2
.LC2:
	.ascii	" CPU-%d \000"
	.align	2
.LC3:
	.ascii	"\012Thread idx=%d ran %ld sec, %ld msec (%ld micros"
	.ascii	"ec)\012\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	counterThread
	.syntax unified
	.arm
	.fpu softvfp
	.type	counterThread, %function
counterThread:
	@ args = 0, pretend = 0, frame = 184
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #192
	str	r0, [fp, #-184]
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-180]
	mov	r3, #0
	str	r3, [fp, #-160]
	mov	r3, #0
	str	r3, [fp, #-156]
	mov	r3, #0
	str	r3, [fp, #-152]
	mov	r3, #0
	str	r3, [fp, #-148]
	mov	r3, #0
	str	r3, [fp, #-144]
	mov	r3, #0
	str	r3, [fp, #-140]
	ldr	r3, [fp, #-184]
	str	r3, [fp, #-172]
	sub	r3, fp, #160
	mov	r1, r3
	mov	r0, #0
	bl	clock_gettime
	bl	pthread_self
	str	r0, [fp, #-168]
	sub	r3, fp, #136
	mov	r0, r3
	mov	r3, #128
	mov	r2, r3
	mov	r1, #0
	bl	memset
	mov	r3, #1
	str	r3, [fp, #-176]
	b	.L10
.L11:
	ldr	r2, [fp, #-180]
	ldr	r3, [fp, #-176]
	add	r3, r2, r3
	str	r3, [fp, #-180]
	ldr	r3, [fp, #-176]
	add	r3, r3, #1
	str	r3, [fp, #-176]
.L10:
	ldr	r3, [fp, #-172]
	ldr	r3, [r3]
	ldr	r2, [fp, #-176]
	cmp	r2, r3
	ble	.L11
	ldr	r3, .L22+4
	mov	r2, #0
	str	r2, [r3]
	b	.L12
.L15:
	ldr	r3, .L22+8
	ldr	r2, [r3]
	ldr	r3, .L22+12
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L22+16
	str	r3, [r2]
	b	.L13
.L14:
	ldr	r3, .L22+12
	ldr	r3, [r3]
	ldr	r2, .L22+8
	str	r3, [r2]
	ldr	r3, .L22+16
	ldr	r3, [r3]
	ldr	r2, .L22+12
	str	r3, [r2]
	ldr	r3, .L22+8
	ldr	r2, [r3]
	ldr	r3, .L22+12
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L22+16
	str	r3, [r2]
	ldr	r3, .L22+20
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L22+20
	str	r3, [r2]
.L13:
	ldr	r3, .L22+20
	ldr	r2, [r3]
	ldr	r3, .L22+24
	ldr	r3, [r3]
	cmp	r2, r3
	bcc	.L14
	ldr	r3, .L22+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L22+4
	str	r3, [r2]
.L12:
	ldr	r3, .L22+4
	ldr	r2, [r3]
	ldr	r3, .L22+28
	ldr	r3, [r3]
	cmp	r2, r3
	bcc	.L15
	ldr	r3, [fp, #-172]
	ldr	r1, [r3]
	ldr	r3, [fp, #-172]
	ldr	r2, [r3]
	ldr	r3, [fp, #-180]
	ldr	r0, .L22+32
	bl	printf
	sub	r3, fp, #136
	mov	r2, r3
	mov	r1, #128
	ldr	r0, [fp, #-168]
	bl	pthread_getaffinity_np
	ldr	r3, [fp, #-172]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L22+36
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-176]
	b	.L16
.L20:
	ldr	r3, [fp, #-176]
	str	r3, [fp, #-164]
	ldr	r3, [fp, #-164]
	cmp	r3, #1024
	bcs	.L17
	ldr	r3, [fp, #-164]
	lsr	r3, r3, #5
	lsl	r3, r3, #2
	sub	r2, fp, #136
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-164]
	and	r3, r3, #31
	lsr	r3, r2, r3
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L17
	mov	r3, #1
	b	.L18
.L17:
	mov	r3, #0
.L18:
	cmp	r3, #0
	beq	.L19
	ldr	r1, [fp, #-176]
	ldr	r0, .L22+40
	bl	printf
.L19:
	ldr	r3, [fp, #-176]
	add	r3, r3, #1
	str	r3, [fp, #-176]
.L16:
	ldr	r3, [fp, #-176]
	cmp	r3, #0
	ble	.L20
	sub	r3, fp, #152
	mov	r1, r3
	mov	r0, #0
	bl	clock_gettime
	sub	r2, fp, #144
	sub	r1, fp, #160
	sub	r3, fp, #152
	mov	r0, r3
	bl	delta_t
	ldr	r3, [fp, #-172]
	ldr	r1, [r3]
	ldr	r0, [fp, #-144]
	ldr	r3, [fp, #-140]
	ldr	r2, .L22+44
	smull	ip, r2, r3, r2
	asr	r2, r2, #18
	asr	r3, r3, #31
	sub	ip, r2, r3
	ldr	r3, [fp, #-140]
	ldr	r2, .L22+48
	smull	lr, r2, r3, r2
	asr	r2, r2, #6
	asr	r3, r3, #31
	sub	r3, r2, r3
	str	r3, [sp]
	mov	r3, ip
	mov	r2, r0
	ldr	r0, .L22+52
	bl	printf
	sub	r3, fp, #180
	mov	r0, r3
	bl	pthread_exit
.L23:
	.align	2
.L22:
	.word	.LC4
	.word	idx
	.word	fib0
	.word	fib1
	.word	fib
	.word	jdx
	.word	seqIterations
	.word	reqIterations
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	1125899907
	.word	274877907
	.word	.LC3
	.size	counterThread, .-counterThread
	.section	.rodata
	.align	2
.LC5:
	.ascii	"Pthread Policy is SCHED_FIFO\000"
	.align	2
.LC6:
	.ascii	"Pthread Policy is SCHED_OTHER\000"
	.align	2
.LC7:
	.ascii	"Pthread Policy is UNKNOWN\000"
	.text
	.align	2
	.global	print_scheduler
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_scheduler, %function
print_scheduler:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	bl	getpid
	mov	r3, r0
	mov	r0, r3
	bl	sched_getscheduler
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	beq	.L25
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	bgt	.L26
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L27
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	bne	.L26
	ldr	r0, .L29
	bl	puts
	b	.L28
.L27:
	ldr	r0, .L29+4
	bl	puts
	b	.L28
.L25:
	ldr	r0, .L29+4
	bl	puts
	b	.L28
.L26:
	ldr	r0, .L29+8
	bl	puts
	nop
.L28:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L30:
	.align	2
.L29:
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	print_scheduler, .-print_scheduler
	.section	.rodata
	.align	2
.LC8:
	.ascii	"main_param\000"
	.align	2
.LC9:
	.ascii	"PTHREAD SCOPE SYSTEM\000"
	.align	2
.LC10:
	.ascii	"PTHREAD SCOPE PROCESS\000"
	.align	2
.LC11:
	.ascii	"PTHREAD SCOPE UNKNOWN\000"
	.align	2
.LC12:
	.ascii	"rt_max_prio=%d\012\000"
	.align	2
.LC13:
	.ascii	"rt_min_prio=%d\012\000"
	.align	2
.LC14:
	.ascii	"\012TEST COMPLETE\000"
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 160
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #160
	str	r0, [fp, #-160]
	str	r1, [fp, #-164]
	ldr	r3, .L46
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #136
	mov	r0, r3
	mov	r3, #128
	mov	r2, r3
	mov	r1, #0
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-148]
	b	.L32
.L35:
	ldr	r3, [fp, #-148]
	str	r3, [fp, #-140]
	ldr	r3, [fp, #-140]
	cmp	r3, #1024
	bcs	.L34
	ldr	r3, [fp, #-140]
	lsr	r3, r3, #5
	lsl	r2, r3, #2
	sub	r1, fp, #136
	add	r2, r1, r2
	ldr	r1, [r2]
	ldr	r2, [fp, #-140]
	and	r2, r2, #31
	mov	r0, #1
	lsl	r2, r0, r2
	lsl	r3, r3, #2
	sub	r0, fp, #136
	add	r3, r0, r3
	orr	r2, r1, r2
	str	r2, [r3]
.L34:
	ldr	r3, [fp, #-148]
	add	r3, r3, #1
	str	r3, [fp, #-148]
.L32:
	ldr	r3, [fp, #-148]
	cmp	r3, #0
	ble	.L35
	bl	getpid
	mov	r3, r0
	ldr	r2, .L46+4
	str	r3, [r2]
	mov	r0, #1
	bl	sched_get_priority_max
	mov	r3, r0
	ldr	r2, .L46+8
	str	r3, [r2]
	mov	r0, #1
	bl	sched_get_priority_min
	mov	r3, r0
	ldr	r2, .L46+12
	str	r3, [r2]
	bl	print_scheduler
	ldr	r3, .L46+4
	ldr	r3, [r3]
	ldr	r1, .L46+16
	mov	r0, r3
	bl	sched_getparam
	str	r0, [fp, #-144]
	ldr	r3, .L46+8
	ldr	r3, [r3]
	ldr	r2, .L46+16
	str	r3, [r2]
	bl	getpid
	mov	r3, r0
	ldr	r2, .L46+16
	mov	r1, #1
	mov	r0, r3
	bl	sched_setscheduler
	str	r0, [fp, #-144]
	ldr	r3, [fp, #-144]
	cmp	r3, #0
	bge	.L36
	ldr	r0, .L46+20
	bl	perror
.L36:
	bl	print_scheduler
	sub	r3, fp, #152
	mov	r1, r3
	ldr	r0, .L46+24
	bl	pthread_attr_getscope
	ldr	r3, [fp, #-152]
	cmp	r3, #0
	bne	.L37
	ldr	r0, .L46+28
	bl	puts
	b	.L38
.L37:
	ldr	r3, [fp, #-152]
	cmp	r3, #1
	bne	.L39
	ldr	r0, .L46+32
	bl	puts
	b	.L38
.L39:
	ldr	r0, .L46+36
	bl	puts
.L38:
	ldr	r3, .L46+8
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L46+40
	bl	printf
	ldr	r3, .L46+12
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L46+44
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-148]
	b	.L40
.L41:
	ldr	r2, [fp, #-148]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L46+48
	add	r3, r3, r2
	mov	r0, r3
	bl	pthread_attr_init
	str	r0, [fp, #-144]
	ldr	r2, [fp, #-148]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L46+48
	add	r3, r3, r2
	mov	r1, #1
	mov	r0, r3
	bl	pthread_attr_setinheritsched
	str	r0, [fp, #-144]
	ldr	r2, [fp, #-148]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L46+48
	add	r3, r3, r2
	mov	r1, #1
	mov	r0, r3
	bl	pthread_attr_setschedpolicy
	str	r0, [fp, #-144]
	ldr	r2, [fp, #-148]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L46+48
	add	r3, r3, r2
	sub	r2, fp, #136
	mov	r1, #128
	mov	r0, r3
	bl	pthread_attr_setaffinity_np
	str	r0, [fp, #-144]
	ldr	r3, .L46+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-148]
	sub	r3, r2, r3
	sub	r2, r3, #1
	ldr	r1, .L46+52
	ldr	r3, [fp, #-148]
	str	r2, [r1, r3, lsl #2]
	ldr	r2, [fp, #-148]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L46+48
	add	r2, r3, r2
	ldr	r3, [fp, #-148]
	lsl	r3, r3, #2
	ldr	r1, .L46+52
	add	r3, r3, r1
	mov	r1, r3
	mov	r0, r2
	bl	pthread_attr_setschedparam
	ldr	r1, .L46+56
	ldr	r3, [fp, #-148]
	ldr	r2, [fp, #-148]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-148]
	lsl	r3, r3, #2
	ldr	r2, .L46+60
	add	r0, r3, r2
	ldr	r3, [fp, #-148]
	lsl	r3, r3, #2
	ldr	r2, .L46+56
	add	r3, r3, r2
	ldr	r2, .L46+64
	mov	r1, #0
	bl	pthread_create
	ldr	r3, [fp, #-148]
	add	r3, r3, #1
	str	r3, [fp, #-148]
.L40:
	ldr	r3, [fp, #-148]
	cmp	r3, #0
	ble	.L41
	mov	r3, #0
	str	r3, [fp, #-148]
	b	.L42
.L43:
	ldr	r2, .L46+60
	ldr	r3, [fp, #-148]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-148]
	add	r3, r3, #1
	str	r3, [fp, #-148]
.L42:
	ldr	r3, [fp, #-148]
	cmp	r3, #0
	ble	.L43
	ldr	r0, .L46+68
	bl	puts
	mov	r3, #0
	ldr	r2, .L46
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L45
	bl	__stack_chk_fail
.L45:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L47:
	.align	2
.L46:
	.word	.LC15
	.word	mainpid
	.word	rt_max_prio
	.word	rt_min_prio
	.word	main_param
	.word	.LC8
	.word	main_attr
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	rt_sched_attr
	.word	rt_param
	.word	threadParams
	.word	threads
	.word	counterThread
	.word	.LC14
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
