	.file	"421501.c"
	.intel_syntax noprefix
	.text
	.globl	MaxThreads
	.section	.rodata
	.align 4
	.type	MaxThreads, @object
	.size	MaxThreads, 4
MaxThreads:
	.long	1024
	.globl	NumThreads
	.align 4
	.type	NumThreads, @object
	.size	NumThreads, 4
NumThreads:
	.long	64
	.align 8
.LC0:
	.string	"target: level = %d, activeLevel = %d\n"
	.align 8
.LC1:
	.string	"level = -1: ancestorTNum = %d, teamSize = %d\n"
	.align 8
.LC2:
	.string	"level = 0: ancestorTNum = %d, teamSize = %d\n"
	.align 8
.LC3:
	.string	"level = 1: ancestorTNum = %d, teamSize = %d\n"
	.align 8
.LC4:
	.string	"invalid: check1[%d] should be %d, is %d\n"
	.align 8
.LC5:
	.string	"invalid: check1[%d] should be 0, is %d\n"
	.align 8
.LC6:
	.string	"invalid: check2[%d] should be %d, is %d\n"
	.align 8
.LC7:
	.string	"invalid: check2[%d] should be 0, is %d\n"
	.align 8
.LC8:
	.string	"invalid: check3[%d] should be %d, is %d\n"
	.align 8
.LC9:
	.string	"invalid: check3[%d] should be 0, is %d\n"
	.align 8
.LC10:
	.string	"invalid: check4[%d] should be %d, is %d\n"
	.align 8
.LC11:
	.string	"invalid: check4[%d] should be 0, is %d\n"
.LC12:
	.string	"Integral level = %d.\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.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	r12
	push	rbx
	sub	rsp, 240
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	mov	DWORD PTR -196[rbp], edi
	mov	QWORD PTR -208[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	r12, rax
	mov	DWORD PTR -164[rbp], -1
	mov	DWORD PTR -168[rbp], -1
	mov	DWORD PTR -172[rbp], 1
	mov	DWORD PTR -176[rbp], 1
	mov	DWORD PTR -180[rbp], -1
	mov	DWORD PTR -144[rbp], -1
	mov	DWORD PTR -140[rbp], 1
	mov	DWORD PTR -136[rbp], 1
	mov	eax, 1024
	cdqe
	sub	rax, 1
	mov	QWORD PTR -104[rbp], rax
	mov	eax, 1024
	cdqe
	mov	rcx, rax
	mov	ebx, 0
	mov	eax, 1024
	cdqe
	mov	r8, rax
	mov	r9d, 0
	mov	eax, 1024
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	ebx, 16
	mov	edx, 0
	div	rbx
	imul	rdx, rax, 16
	mov	rax, rdx
	and	rax, -4096
	mov	rcx, rsp
	sub	rcx, rax
.L2:
	cmp	rsp, rcx
	je	.L3
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L2
.L3:
	mov	rax, rdx
	and	eax, 4095
	sub	rsp, rax
	mov	rax, rdx
	and	eax, 4095
	test	rax, rax
	je	.L4
	mov	rax, rdx
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L4:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -96[rbp], rax
	mov	eax, 1024
	cdqe
	sub	rax, 1
	mov	QWORD PTR -88[rbp], rax
	mov	eax, 1024
	cdqe
	mov	QWORD PTR -224[rbp], rax
	mov	QWORD PTR -216[rbp], 0
	mov	eax, 1024
	cdqe
	mov	QWORD PTR -240[rbp], rax
	mov	QWORD PTR -232[rbp], 0
	mov	eax, 1024
	cdqe
	lea	rdx, 0[0+rax*4]
	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
.L5:
	cmp	rsp, rdx
	je	.L6
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L5
.L6:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L7
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L7:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -80[rbp], rax
	mov	eax, 1024
	cdqe
	sub	rax, 1
	mov	QWORD PTR -72[rbp], rax
	mov	eax, 1024
	cdqe
	mov	QWORD PTR -256[rbp], rax
	mov	QWORD PTR -248[rbp], 0
	mov	eax, 1024
	cdqe
	mov	QWORD PTR -272[rbp], rax
	mov	QWORD PTR -264[rbp], 0
	mov	eax, 1024
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	ebx, 16
	mov	edx, 0
	div	rbx
	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, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -64[rbp], rax
	mov	eax, 1024
	cdqe
	sub	rax, 1
	mov	QWORD PTR -56[rbp], rax
	mov	eax, 1024
	cdqe
	mov	r14, rax
	mov	r15d, 0
	mov	eax, 1024
	cdqe
	mov	r10, rax
	mov	r11d, 0
	mov	eax, 1024
	cdqe
	lea	rdx, 0[0+rax*4]
	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
.L11:
	cmp	rsp, rdx
	je	.L12
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L11
.L12:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L13
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L13:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -48[rbp], rax
	mov	DWORD PTR -148[rbp], 0
	jmp	.L14
.L15:
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, DWORD PTR -148[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], 0
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, DWORD PTR -148[rbp]
	movsx	rdx, edx
	mov	ecx, DWORD PTR [rax+rdx*4]
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -148[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], ecx
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -148[rbp]
	movsx	rdx, edx
	mov	ecx, DWORD PTR [rax+rdx*4]
	mov	rax, QWORD PTR -80[rbp]
	mov	edx, DWORD PTR -148[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], ecx
	mov	rax, QWORD PTR -80[rbp]
	mov	edx, DWORD PTR -148[rbp]
	movsx	rdx, edx
	mov	ecx, DWORD PTR [rax+rdx*4]
	mov	rax, QWORD PTR -96[rbp]
	mov	edx, DWORD PTR -148[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], ecx
	add	DWORD PTR -148[rbp], 1
.L14:
	mov	eax, 1024
	cmp	DWORD PTR -148[rbp], eax
	jl	.L15
	call	omp_get_level@PLT
	mov	DWORD PTR -164[rbp], eax
	call	omp_get_active_level@PLT
	mov	DWORD PTR -168[rbp], eax
	mov	edi, -1
	call	omp_get_ancestor_thread_num@PLT
	mov	DWORD PTR -172[rbp], eax
	mov	edi, -1
	call	omp_get_team_size@PLT
	mov	DWORD PTR -176[rbp], eax
	mov	edi, 0
	call	omp_get_ancestor_thread_num@PLT
	mov	DWORD PTR -180[rbp], eax
	mov	edi, 0
	call	omp_get_team_size@PLT
	mov	DWORD PTR -144[rbp], eax
	mov	edi, 1
	call	omp_get_ancestor_thread_num@PLT
	mov	DWORD PTR -140[rbp], eax
	mov	edi, 1
	call	omp_get_team_size@PLT
	mov	DWORD PTR -136[rbp], eax
	call	omp_get_thread_num@PLT
	mov	DWORD PTR -132[rbp], eax
	call	omp_get_level@PLT
	mov	edx, eax
	mov	eax, edx
	sal	eax, 2
	lea	ebx, [rax+rdx]
	call	omp_get_active_level@PLT
	lea	ecx, [rbx+rax]
	mov	rax, QWORD PTR -96[rbp]
	mov	edx, DWORD PTR -132[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	add	ecx, eax
	mov	rax, QWORD PTR -96[rbp]
	mov	edx, DWORD PTR -132[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], ecx
	mov	edi, 0
	call	omp_get_ancestor_thread_num@PLT
	mov	ebx, eax
	mov	edi, 0
	call	omp_get_team_size@PLT
	mov	edx, eax
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	lea	ecx, [rbx+rax]
	mov	rax, QWORD PTR -80[rbp]
	mov	edx, DWORD PTR -132[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	add	ecx, eax
	mov	rax, QWORD PTR -80[rbp]
	mov	edx, DWORD PTR -132[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], ecx
	mov	edi, 1
	call	omp_get_ancestor_thread_num@PLT
	sub	eax, DWORD PTR -132[rbp]
	mov	ecx, eax
	mov	rax, QWORD PTR -80[rbp]
	mov	edx, DWORD PTR -132[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	add	ecx, eax
	mov	rax, QWORD PTR -80[rbp]
	mov	edx, DWORD PTR -132[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], ecx
	mov	edi, 1
	call	omp_get_team_size@PLT
	mov	edx, eax
	mov	eax, edx
	add	eax, eax
	lea	ecx, [rax+rdx]
	mov	rax, QWORD PTR -80[rbp]
	mov	edx, DWORD PTR -132[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	add	ecx, eax
	mov	rax, QWORD PTR -80[rbp]
	mov	edx, DWORD PTR -132[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], ecx
	mov	edi, 2
	call	omp_get_ancestor_thread_num@PLT
	mov	ebx, eax
	mov	edi, 2
	call	omp_get_team_size@PLT
	lea	ecx, [rbx+rax]
	mov	rax, QWORD PTR -80[rbp]
	mov	edx, DWORD PTR -132[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	add	ecx, eax
	mov	rax, QWORD PTR -80[rbp]
	mov	edx, DWORD PTR -132[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], ecx
	call	omp_get_level@PLT
	mov	edx, eax
	mov	eax, edx
	sal	eax, 2
	lea	ebx, [rax+rdx]
	call	omp_get_active_level@PLT
	lea	ecx, [rbx+rax]
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -132[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	add	ecx, eax
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -132[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], ecx
	mov	edi, 0
	call	omp_get_ancestor_thread_num@PLT
	mov	ebx, eax
	mov	edi, 0
	call	omp_get_team_size@PLT
	mov	edx, eax
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, ebx
	mov	DWORD PTR -128[rbp], eax
	mov	edi, 1
	call	omp_get_ancestor_thread_num@PLT
	sub	eax, DWORD PTR -132[rbp]
	add	DWORD PTR -128[rbp], eax
	mov	edi, 1
	call	omp_get_team_size@PLT
	mov	edx, eax
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	add	DWORD PTR -128[rbp], eax
	mov	edi, 2
	call	omp_get_ancestor_thread_num@PLT
	mov	ebx, eax
	mov	edi, 2
	call	omp_get_team_size@PLT
	mov	edx, eax
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	add	eax, ebx
	add	DWORD PTR -128[rbp], eax
	mov	edi, 3
	call	omp_get_ancestor_thread_num@PLT
	mov	ebx, eax
	mov	edi, 3
	call	omp_get_team_size@PLT
	add	eax, ebx
	add	DWORD PTR -128[rbp], eax
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, DWORD PTR -132[rbp]
	movsx	rdx, edx
	mov	edx, DWORD PTR [rax+rdx*4]
	mov	eax, DWORD PTR -128[rbp]
	lea	ecx, [rdx+rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, DWORD PTR -132[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], ecx
	mov	edx, DWORD PTR -168[rbp]
	mov	eax, DWORD PTR -164[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, DWORD PTR -176[rbp]
	mov	eax, DWORD PTR -172[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, DWORD PTR -144[rbp]
	mov	eax, DWORD PTR -180[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, DWORD PTR -136[rbp]
	mov	eax, DWORD PTR -140[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -152[rbp], 0
	jmp	.L16
.L25:
	mov	DWORD PTR -120[rbp], 6
	mov	eax, 64
	cmp	DWORD PTR -152[rbp], eax
	jge	.L17
	mov	rax, QWORD PTR -96[rbp]
	mov	edx, DWORD PTR -152[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	cmp	DWORD PTR -120[rbp], eax
	je	.L18
	mov	rax, QWORD PTR -96[rbp]
	mov	edx, DWORD PTR -152[rbp]
	movsx	rdx, edx
	mov	ecx, DWORD PTR [rax+rdx*4]
	mov	edx, DWORD PTR -120[rbp]
	mov	eax, DWORD PTR -152[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L18
.L17:
	mov	rax, QWORD PTR -96[rbp]
	mov	edx, DWORD PTR -152[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	test	eax, eax
	je	.L18
	mov	rax, QWORD PTR -96[rbp]
	mov	edx, DWORD PTR -152[rbp]
	movsx	rdx, edx
	mov	edx, DWORD PTR [rax+rdx*4]
	mov	eax, DWORD PTR -152[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
.L18:
	mov	DWORD PTR -116[rbp], 195
	mov	eax, 64
	cmp	DWORD PTR -152[rbp], eax
	jge	.L19
	mov	rax, QWORD PTR -80[rbp]
	mov	edx, DWORD PTR -152[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	cmp	DWORD PTR -116[rbp], eax
	je	.L20
	mov	rax, QWORD PTR -80[rbp]
	mov	edx, DWORD PTR -152[rbp]
	movsx	rdx, edx
	mov	ecx, DWORD PTR [rax+rdx*4]
	mov	edx, DWORD PTR -116[rbp]
	mov	eax, DWORD PTR -152[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L20
.L19:
	mov	rax, QWORD PTR -80[rbp]
	mov	edx, DWORD PTR -152[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	test	eax, eax
	je	.L20
	mov	rax, QWORD PTR -80[rbp]
	mov	edx, DWORD PTR -152[rbp]
	movsx	rdx, edx
	mov	edx, DWORD PTR [rax+rdx*4]
	mov	eax, DWORD PTR -152[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
.L20:
	mov	DWORD PTR -112[rbp], 11
	mov	eax, 64
	cmp	DWORD PTR -152[rbp], eax
	jge	.L21
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -152[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	cmp	DWORD PTR -112[rbp], eax
	je	.L22
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -152[rbp]
	movsx	rdx, edx
	mov	ecx, DWORD PTR [rax+rdx*4]
	mov	edx, DWORD PTR -112[rbp]
	mov	eax, DWORD PTR -152[rbp]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L22
.L21:
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -152[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	test	eax, eax
	je	.L22
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -152[rbp]
	movsx	rdx, edx
	mov	edx, DWORD PTR [rax+rdx*4]
	mov	eax, DWORD PTR -152[rbp]
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
.L22:
	mov	DWORD PTR -108[rbp], 198
	mov	eax, 64
	cmp	DWORD PTR -152[rbp], eax
	jge	.L23
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, DWORD PTR -152[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	cmp	DWORD PTR -108[rbp], eax
	je	.L24
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, DWORD PTR -152[rbp]
	movsx	rdx, edx
	mov	ecx, DWORD PTR [rax+rdx*4]
	mov	edx, DWORD PTR -108[rbp]
	mov	eax, DWORD PTR -152[rbp]
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L24
.L23:
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, DWORD PTR -152[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	test	eax, eax
	je	.L24
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, DWORD PTR -152[rbp]
	movsx	rdx, edx
	mov	edx, DWORD PTR [rax+rdx*4]
	mov	eax, DWORD PTR -152[rbp]
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
.L24:
	add	DWORD PTR -152[rbp], 1
.L16:
	mov	eax, 1024
	cmp	DWORD PTR -152[rbp], eax
	jl	.L25
	mov	DWORD PTR -164[rbp], 0
	mov	DWORD PTR -156[rbp], 0
	jmp	.L26
.L29:
	mov	eax, 5000
	cmp	DWORD PTR -156[rbp], 5000
	cmovle	eax, DWORD PTR -156[rbp]
	add	eax, 32
	mov	DWORD PTR -124[rbp], eax
	mov	eax, DWORD PTR -156[rbp]
	mov	DWORD PTR -160[rbp], eax
	jmp	.L27
.L28:
	add	DWORD PTR -160[rbp], 1
.L27:
	mov	eax, DWORD PTR -160[rbp]
	cmp	eax, DWORD PTR -124[rbp]
	jl	.L28
	call	omp_get_level@PLT
	add	DWORD PTR -164[rbp], eax
	add	DWORD PTR -156[rbp], 32
.L26:
	cmp	DWORD PTR -156[rbp], 5031
	jle	.L29
	mov	eax, DWORD PTR -164[rbp]
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rsp, r12
	mov	rsi, QWORD PTR -40[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L31
	call	__stack_chk_fail@PLT
.L31:
	lea	rsp, -32[rbp]
	pop	rbx
	pop	r12
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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	"421501.c"
	.text
	.global	MaxThreads
	.section	.rodata
	.align	2
	.type	MaxThreads, %object
	.size	MaxThreads, 4
MaxThreads:
	.word	1024
	.global	NumThreads
	.align	2
	.type	NumThreads, %object
	.size	NumThreads, 4
NumThreads:
	.word	64
	.align	2
.LC0:
	.ascii	"target: level = %d, activeLevel = %d\012\000"
	.align	2
.LC1:
	.ascii	"level = -1: ancestorTNum = %d, teamSize = %d\012\000"
	.align	2
.LC2:
	.ascii	"level = 0: ancestorTNum = %d, teamSize = %d\012\000"
	.align	2
.LC3:
	.ascii	"level = 1: ancestorTNum = %d, teamSize = %d\012\000"
	.align	2
.LC4:
	.ascii	"invalid: check1[%d] should be %d, is %d\012\000"
	.align	2
.LC5:
	.ascii	"invalid: check1[%d] should be 0, is %d\012\000"
	.align	2
.LC6:
	.ascii	"invalid: check2[%d] should be %d, is %d\012\000"
	.align	2
.LC7:
	.ascii	"invalid: check2[%d] should be 0, is %d\012\000"
	.align	2
.LC8:
	.ascii	"invalid: check3[%d] should be %d, is %d\012\000"
	.align	2
.LC9:
	.ascii	"invalid: check3[%d] should be 0, is %d\012\000"
	.align	2
.LC10:
	.ascii	"invalid: check4[%d] should be %d, is %d\012\000"
	.align	2
.LC11:
	.ascii	"invalid: check4[%d] should be 0, is %d\012\000"
	.align	2
.LC12:
	.ascii	"Integral level = %d.\012\000"
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #120
	str	r0, [fp, #-128]
	str	r1, [fp, #-132]
	ldr	r3, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, sp
	mov	r5, r3
	mvn	r3, #0
	str	r3, [fp, #-108]
	mvn	r3, #0
	str	r3, [fp, #-112]
	mov	r3, #1
	str	r3, [fp, #-116]
	mov	r3, #1
	str	r3, [fp, #-120]
	mvn	r3, #0
	str	r3, [fp, #-124]
	mvn	r3, #0
	str	r3, [fp, #-88]
	mov	r3, #1
	str	r3, [fp, #-84]
	mov	r3, #1
	str	r3, [fp, #-80]
	mov	r3, #1024
	sub	r3, r3, #1
	str	r3, [fp, #-76]
	mov	r3, #1024
	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, #1024
	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, #1024
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-72]
	mov	r3, #1024
	sub	r3, r3, #1
	str	r3, [fp, #-68]
	mov	r3, #1024
	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, #1024
	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, #1024
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-64]
	mov	r3, #1024
	sub	r3, r3, #1
	str	r3, [fp, #-60]
	mov	r3, #1024
	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, #1024
	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, #1024
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-56]
	mov	r3, #1024
	sub	r3, r3, #1
	str	r3, [fp, #-52]
	mov	r3, #1024
	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, #1024
	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, #1024
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-92]
	b	.L2
.L3:
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-92]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-92]
	ldr	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-92]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-92]
	ldr	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-64]
	ldr	r2, [fp, #-92]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-64]
	ldr	r2, [fp, #-92]
	ldr	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-72]
	ldr	r2, [fp, #-92]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-92]
	add	r3, r3, #1
	str	r3, [fp, #-92]
.L2:
	mov	r2, #1024
	ldr	r3, [fp, #-92]
	cmp	r3, r2
	blt	.L3
	bl	omp_get_level
	str	r0, [fp, #-108]
	bl	omp_get_active_level
	str	r0, [fp, #-112]
	mvn	r0, #0
	bl	omp_get_ancestor_thread_num
	str	r0, [fp, #-116]
	mvn	r0, #0
	bl	omp_get_team_size
	str	r0, [fp, #-120]
	mov	r0, #0
	bl	omp_get_ancestor_thread_num
	str	r0, [fp, #-124]
	mov	r0, #0
	bl	omp_get_team_size
	str	r0, [fp, #-88]
	mov	r0, #1
	bl	omp_get_ancestor_thread_num
	str	r0, [fp, #-84]
	mov	r0, #1
	bl	omp_get_team_size
	str	r0, [fp, #-80]
	bl	omp_get_thread_num
	str	r0, [fp, #-44]
	bl	omp_get_level
	mov	r2, r0
	mov	r3, r2
	lsl	r3, r3, #2
	add	r4, r3, r2
	bl	omp_get_active_level
	mov	r3, r0
	add	r2, r4, r3
	ldr	r3, [fp, #-72]
	ldr	r1, [fp, #-44]
	ldr	r3, [r3, r1, lsl #2]
	add	r1, r2, r3
	ldr	r3, [fp, #-72]
	ldr	r2, [fp, #-44]
	str	r1, [r3, r2, lsl #2]
	mov	r0, #0
	bl	omp_get_ancestor_thread_num
	mov	r4, r0
	mov	r0, #0
	bl	omp_get_team_size
	mov	r2, r0
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	add	r2, r4, r3
	ldr	r3, [fp, #-64]
	ldr	r1, [fp, #-44]
	ldr	r3, [r3, r1, lsl #2]
	add	r1, r2, r3
	ldr	r3, [fp, #-64]
	ldr	r2, [fp, #-44]
	str	r1, [r3, r2, lsl #2]
	mov	r0, #1
	bl	omp_get_ancestor_thread_num
	mov	r2, r0
	ldr	r3, [fp, #-44]
	sub	r2, r2, r3
	ldr	r3, [fp, #-64]
	ldr	r1, [fp, #-44]
	ldr	r3, [r3, r1, lsl #2]
	add	r1, r2, r3
	ldr	r3, [fp, #-64]
	ldr	r2, [fp, #-44]
	str	r1, [r3, r2, lsl #2]
	mov	r0, #1
	bl	omp_get_team_size
	mov	r2, r0
	mov	r3, r2
	lsl	r3, r3, #1
	add	r2, r3, r2
	ldr	r3, [fp, #-64]
	ldr	r1, [fp, #-44]
	ldr	r3, [r3, r1, lsl #2]
	add	r1, r2, r3
	ldr	r3, [fp, #-64]
	ldr	r2, [fp, #-44]
	str	r1, [r3, r2, lsl #2]
	mov	r0, #2
	bl	omp_get_ancestor_thread_num
	mov	r4, r0
	mov	r0, #2
	bl	omp_get_team_size
	mov	r3, r0
	add	r2, r4, r3
	ldr	r3, [fp, #-64]
	ldr	r1, [fp, #-44]
	ldr	r3, [r3, r1, lsl #2]
	add	r1, r2, r3
	ldr	r3, [fp, #-64]
	ldr	r2, [fp, #-44]
	str	r1, [r3, r2, lsl #2]
	bl	omp_get_level
	mov	r2, r0
	mov	r3, r2
	lsl	r3, r3, #2
	add	r4, r3, r2
	bl	omp_get_active_level
	mov	r3, r0
	add	r2, r4, r3
	ldr	r3, [fp, #-56]
	ldr	r1, [fp, #-44]
	ldr	r3, [r3, r1, lsl #2]
	add	r1, r2, r3
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-44]
	str	r1, [r3, r2, lsl #2]
	mov	r0, #0
	bl	omp_get_ancestor_thread_num
	mov	r4, r0
	mov	r0, #0
	bl	omp_get_team_size
	mov	r2, r0
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	add	r3, r4, r3
	str	r3, [fp, #-40]
	mov	r0, #1
	bl	omp_get_ancestor_thread_num
	mov	r2, r0
	ldr	r3, [fp, #-44]
	sub	r3, r2, r3
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	str	r3, [fp, #-40]
	mov	r0, #1
	bl	omp_get_team_size
	mov	r2, r0
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	str	r3, [fp, #-40]
	mov	r0, #2
	bl	omp_get_ancestor_thread_num
	mov	r4, r0
	mov	r0, #2
	bl	omp_get_team_size
	mov	r2, r0
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r3, r4, r3
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	str	r3, [fp, #-40]
	mov	r0, #3
	bl	omp_get_ancestor_thread_num
	mov	r4, r0
	mov	r0, #3
	bl	omp_get_team_size
	mov	r3, r0
	add	r3, r4, r3
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-44]
	ldr	r2, [r3, r2, lsl #2]
	ldr	r3, [fp, #-40]
	add	r1, r2, r3
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-44]
	str	r1, [r3, r2, lsl #2]
	ldr	r2, [fp, #-112]
	ldr	r1, [fp, #-108]
	ldr	r0, .L20+4
	bl	printf
	ldr	r2, [fp, #-120]
	ldr	r1, [fp, #-116]
	ldr	r0, .L20+8
	bl	printf
	ldr	r2, [fp, #-88]
	ldr	r1, [fp, #-124]
	ldr	r0, .L20+12
	bl	printf
	ldr	r2, [fp, #-80]
	ldr	r1, [fp, #-84]
	ldr	r0, .L20+16
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-96]
	b	.L4
.L13:
	mov	r3, #6
	str	r3, [fp, #-32]
	mov	r2, #64
	ldr	r3, [fp, #-96]
	cmp	r3, r2
	bge	.L5
	ldr	r3, [fp, #-72]
	ldr	r2, [fp, #-96]
	ldr	r3, [r3, r2, lsl #2]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	beq	.L6
	ldr	r3, [fp, #-72]
	ldr	r2, [fp, #-96]
	ldr	r3, [r3, r2, lsl #2]
	ldr	r2, [fp, #-32]
	ldr	r1, [fp, #-96]
	ldr	r0, .L20+20
	bl	printf
	b	.L6
.L5:
	ldr	r3, [fp, #-72]
	ldr	r2, [fp, #-96]
	ldr	r3, [r3, r2, lsl #2]
	cmp	r3, #0
	beq	.L6
	ldr	r3, [fp, #-72]
	ldr	r2, [fp, #-96]
	ldr	r3, [r3, r2, lsl #2]
	mov	r2, r3
	ldr	r1, [fp, #-96]
	ldr	r0, .L20+24
	bl	printf
.L6:
	mov	r3, #195
	str	r3, [fp, #-28]
	mov	r2, #64
	ldr	r3, [fp, #-96]
	cmp	r3, r2
	bge	.L7
	ldr	r3, [fp, #-64]
	ldr	r2, [fp, #-96]
	ldr	r3, [r3, r2, lsl #2]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	beq	.L8
	ldr	r3, [fp, #-64]
	ldr	r2, [fp, #-96]
	ldr	r3, [r3, r2, lsl #2]
	ldr	r2, [fp, #-28]
	ldr	r1, [fp, #-96]
	ldr	r0, .L20+28
	bl	printf
	b	.L8
.L7:
	ldr	r3, [fp, #-64]
	ldr	r2, [fp, #-96]
	ldr	r3, [r3, r2, lsl #2]
	cmp	r3, #0
	beq	.L8
	ldr	r3, [fp, #-64]
	ldr	r2, [fp, #-96]
	ldr	r3, [r3, r2, lsl #2]
	mov	r2, r3
	ldr	r1, [fp, #-96]
	ldr	r0, .L20+32
	bl	printf
.L8:
	mov	r3, #11
	str	r3, [fp, #-24]
	mov	r2, #64
	ldr	r3, [fp, #-96]
	cmp	r3, r2
	bge	.L9
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-96]
	ldr	r3, [r3, r2, lsl #2]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	beq	.L10
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-96]
	ldr	r3, [r3, r2, lsl #2]
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-96]
	ldr	r0, .L20+36
	bl	printf
	b	.L10
.L9:
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-96]
	ldr	r3, [r3, r2, lsl #2]
	cmp	r3, #0
	beq	.L10
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-96]
	ldr	r3, [r3, r2, lsl #2]
	mov	r2, r3
	ldr	r1, [fp, #-96]
	ldr	r0, .L20+40
	bl	printf
.L10:
	mov	r3, #198
	str	r3, [fp, #-20]
	mov	r2, #64
	ldr	r3, [fp, #-96]
	cmp	r3, r2
	bge	.L11
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-96]
	ldr	r3, [r3, r2, lsl #2]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	beq	.L12
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-96]
	ldr	r3, [r3, r2, lsl #2]
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-96]
	ldr	r0, .L20+44
	bl	printf
	b	.L12
.L11:
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-96]
	ldr	r3, [r3, r2, lsl #2]
	cmp	r3, #0
	beq	.L12
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-96]
	ldr	r3, [r3, r2, lsl #2]
	mov	r2, r3
	ldr	r1, [fp, #-96]
	ldr	r0, .L20+48
	bl	printf
.L12:
	ldr	r3, [fp, #-96]
	add	r3, r3, #1
	str	r3, [fp, #-96]
.L4:
	mov	r2, #1024
	ldr	r3, [fp, #-96]
	cmp	r3, r2
	blt	.L13
	mov	r3, #0
	str	r3, [fp, #-108]
	mov	r3, #0
	str	r3, [fp, #-100]
	b	.L14
.L17:
	ldr	r3, [fp, #-100]
	ldr	r2, .L20+52
	cmp	r3, r2
	movlt	r3, r3
	movge	r3, r2
	add	r3, r3, #32
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-100]
	str	r3, [fp, #-104]
	b	.L15
.L16:
	ldr	r3, [fp, #-104]
	add	r3, r3, #1
	str	r3, [fp, #-104]
.L15:
	ldr	r2, [fp, #-104]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	blt	.L16
	bl	omp_get_level
	mov	r2, r0
	ldr	r3, [fp, #-108]
	add	r3, r3, r2
	str	r3, [fp, #-108]
	ldr	r3, [fp, #-100]
	add	r3, r3, #32
	str	r3, [fp, #-100]
.L14:
	ldr	r3, [fp, #-100]
	ldr	r2, .L20+56
	cmp	r3, r2
	ble	.L17
	ldr	r1, [fp, #-108]
	ldr	r0, .L20+60
	bl	printf
	mov	r3, #0
	mov	sp, r5
	ldr	r2, .L20
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L19
	bl	__stack_chk_fail
.L19:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC13
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	5000
	.word	5031
	.word	.LC12
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
