	.file	"215767555.c"
	.intel_syntax noprefix
	.text
	.globl	failures
	.bss
	.align 4
	.type	failures, @object
	.size	failures, 4
failures:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%s: %g\n"
.LC1:
	.string	"%s: incorrectly sorted\n"
	.text
	.type	verify, @function
verify:
.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, 48
	mov	QWORD PTR -24[rbp], rdi
	movsd	QWORD PTR -32[rbp], xmm0
	mov	QWORD PTR -40[rbp], rsi
	mov	DWORD PTR -44[rbp], edx
	call	omp_get_wtime@PLT
	movq	rax, xmm0
	mov	QWORD PTR -8[rbp], rax
	movsd	xmm0, QWORD PTR -8[rbp]
	subsd	xmm0, QWORD PTR -32[rbp]
	movq	rdx, xmm0
	mov	rax, QWORD PTR -24[rbp]
	movq	xmm0, rdx
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 1
	call	printf@PLT
	mov	DWORD PTR -12[rbp], 1
	jmp	.L2
.L4:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 2
	lea	rcx, -4[rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	jge	.L3
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR failures[rip], 1
.L3:
	add	DWORD PTR -12[rbp], 1
.L2:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jl	.L4
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	verify, .-verify
	.type	insertsort, @function
insertsort:
.LFB7:
	.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	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	eax, DWORD PTR -28[rbp]
	add	eax, 1
	mov	DWORD PTR -12[rbp], eax
	jmp	.L6
.L10:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR -8[rbp], eax
	jmp	.L7
.L9:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -8[rbp]
	movsx	rdx, edx
	add	rdx, 1
	lea	rcx, 0[0+rdx*4]
	mov	rdx, QWORD PTR -24[rbp]
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
.L7:
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -8[rbp], edx
	cmp	DWORD PTR -28[rbp], eax
	jge	.L8
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L9
.L8:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -12[rbp], 1
.L6:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -32[rbp]
	jle	.L10
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	insertsort, .-insertsort
	.type	init_int_pair_stack, @function
init_int_pair_stack:
.LFB8:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 8[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	init_int_pair_stack, .-init_int_pair_stack
	.type	push_int_pair_stack, @function
push_int_pair_stack:
.LFB9:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	DWORD PTR -16[rbp], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR -12[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR -16[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdx, 8[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	push_int_pair_stack, .-push_int_pair_stack
	.type	pop_int_pair_stack, @function
pop_int_pair_stack:
.LFB10:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdx, -8[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], edx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	pop_int_pair_stack, .-pop_int_pair_stack
	.type	size_int_pair_stack, @function
size_int_pair_stack:
.LFB11:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -8[rbp]
	add	rdx, 8
	sub	rax, rdx
	sar	rax, 3
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	size_int_pair_stack, .-size_int_pair_stack
	.type	busy_wait, @function
busy_wait:
.LFB12:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	rep nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	busy_wait, .-busy_wait
	.type	swap, @function
swap:
.LFB13:
	.cfi_startproc
	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	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -28[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	mov	rdx, QWORD PTR -24[rbp]
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR [rdx], eax
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	swap, .-swap
	.type	choose_pivot, @function
choose_pivot:
.LFB14:
	.cfi_startproc
	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	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	edx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -32[rbp]
	add	eax, edx
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	jge	.L19
	mov	edx, DWORD PTR -4[rbp]
	mov	ecx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	swap
.L19:
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	jge	.L20
	mov	edx, DWORD PTR -32[rbp]
	mov	ecx, DWORD PTR -4[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	swap
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	jge	.L20
	mov	edx, DWORD PTR -4[rbp]
	mov	ecx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	swap
.L20:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	choose_pivot, .-choose_pivot
	.type	partition, @function
partition:
.LFB15:
	.cfi_startproc
	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	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	edx, DWORD PTR -32[rbp]
	mov	ecx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	choose_pivot
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -32[rbp]
	mov	DWORD PTR -8[rbp], eax
	nop
.L23:
	add	DWORD PTR -12[rbp], 1
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -4[rbp], eax
	jg	.L23
.L24:
	sub	DWORD PTR -8[rbp], 1
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L24
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -8[rbp]
	jge	.L30
	mov	edx, DWORD PTR -8[rbp]
	mov	ecx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	swap
	jmp	.L23
.L30:
	nop
	mov	eax, DWORD PTR -12[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	partition, .-partition
	.type	sort1, @function
sort1:
.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, 2144
	mov	QWORD PTR -2136[rbp], rdi
	mov	DWORD PTR -2140[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -2108[rbp], 1
	lea	rax, -2084[rbp]
	mov	rdi, rax
	call	omp_init_lock@PLT
	lea	rax, -2080[rbp]
	mov	rdi, rax
	call	init_int_pair_stack
	mov	DWORD PTR -2116[rbp], 0
	mov	DWORD PTR -2112[rbp], 0
	mov	BYTE PTR -2117[rbp], 1
	lea	rax, -1040[rbp]
	mov	rdi, rax
	call	init_int_pair_stack
	call	omp_get_thread_num@PLT
	test	eax, eax
	jne	.L52
	call	omp_get_num_threads@PLT
	mov	DWORD PTR -2104[rbp], eax
	mov	eax, DWORD PTR -2140[rbp]
	sub	eax, 1
	mov	DWORD PTR -2112[rbp], eax
	mov	BYTE PTR -2117[rbp], 0
.L52:
	mov	eax, DWORD PTR -2112[rbp]
	mov	edx, DWORD PTR -2116[rbp]
	sub	eax, edx
	cmp	eax, 99
	jg	.L33
	mov	edx, DWORD PTR -2112[rbp]
	mov	ecx, DWORD PTR -2116[rbp]
	mov	rax, QWORD PTR -2136[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	insertsort
	mov	eax, DWORD PTR -2112[rbp]
	mov	DWORD PTR -2116[rbp], eax
.L33:
	mov	edx, DWORD PTR -2116[rbp]
	mov	eax, DWORD PTR -2112[rbp]
	cmp	edx, eax
	jl	.L34
	lea	rax, -1040[rbp]
	mov	rdi, rax
	call	size_int_pair_stack
	test	eax, eax
	jne	.L35
	nop
.L36:
	lea	rax, -2084[rbp]
	mov	rdi, rax
	call	omp_set_lock@PLT
	lea	rax, -2080[rbp]
	mov	rdi, rax
	call	size_int_pair_stack
	test	eax, eax
	jne	.L37
	movzx	eax, BYTE PTR -2117[rbp]
	xor	eax, 1
	test	al, al
	je	.L38
	sub	DWORD PTR -2108[rbp], 1
.L38:
	cmp	DWORD PTR -2108[rbp], 0
	jne	.L39
	lea	rax, -2084[rbp]
	mov	rdi, rax
	call	omp_unset_lock@PLT
	nop
	lea	rax, -2084[rbp]
	mov	rdi, rax
	call	omp_destroy_lock@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L53
	jmp	.L54
.L39:
	lea	rax, -2084[rbp]
	mov	rdi, rax
	call	omp_unset_lock@PLT
	mov	BYTE PTR -2117[rbp], 1
	jmp	.L41
.L43:
	call	busy_wait
.L41:
	lea	rax, -2080[rbp]
	mov	rdi, rax
	call	size_int_pair_stack
	test	eax, eax
	jne	.L36
	cmp	DWORD PTR -2108[rbp], 0
	jne	.L43
	jmp	.L36
.L37:
	cmp	BYTE PTR -2117[rbp], 0
	je	.L44
	add	DWORD PTR -2108[rbp], 1
.L44:
	lea	rdx, -2112[rbp]
	lea	rcx, -2116[rbp]
	lea	rax, -2080[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	pop_int_pair_stack
	lea	rax, -2084[rbp]
	mov	rdi, rax
	call	omp_unset_lock@PLT
	mov	BYTE PTR -2117[rbp], 0
	jmp	.L34
.L35:
	lea	rdx, -2112[rbp]
	lea	rcx, -2116[rbp]
	lea	rax, -1040[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	pop_int_pair_stack
.L34:
	mov	edx, DWORD PTR -2112[rbp]
	mov	ecx, DWORD PTR -2116[rbp]
	mov	rax, QWORD PTR -2136[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	partition
	mov	DWORD PTR -2092[rbp], eax
	mov	ecx, DWORD PTR -2116[rbp]
	mov	eax, DWORD PTR -2092[rbp]
	sub	eax, ecx
	mov	edx, eax
	mov	eax, DWORD PTR -2112[rbp]
	sub	eax, DWORD PTR -2092[rbp]
	cmp	edx, eax
	jge	.L45
	mov	eax, DWORD PTR -2092[rbp]
	mov	DWORD PTR -2100[rbp], eax
	mov	eax, DWORD PTR -2112[rbp]
	mov	DWORD PTR -2096[rbp], eax
	mov	eax, DWORD PTR -2092[rbp]
	sub	eax, 1
	mov	DWORD PTR -2112[rbp], eax
	jmp	.L46
.L45:
	mov	eax, DWORD PTR -2116[rbp]
	mov	DWORD PTR -2100[rbp], eax
	mov	eax, DWORD PTR -2092[rbp]
	sub	eax, 1
	mov	DWORD PTR -2096[rbp], eax
	mov	eax, DWORD PTR -2092[rbp]
	mov	DWORD PTR -2116[rbp], eax
.L46:
	mov	eax, DWORD PTR -2096[rbp]
	sub	eax, DWORD PTR -2100[rbp]
	cmp	eax, 99
	jg	.L47
	mov	edx, DWORD PTR -2096[rbp]
	mov	ecx, DWORD PTR -2100[rbp]
	mov	rax, QWORD PTR -2136[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	insertsort
	jmp	.L52
.L47:
	lea	rax, -2080[rbp]
	mov	rdi, rax
	call	size_int_pair_stack
	mov	edx, DWORD PTR -2104[rbp]
	sub	edx, 1
	cmp	eax, edx
	jge	.L49
	lea	rax, -2084[rbp]
	mov	rdi, rax
	call	omp_set_lock@PLT
	lea	rax, -2080[rbp]
	mov	rdi, rax
	call	size_int_pair_stack
	mov	DWORD PTR -2088[rbp], eax
	mov	eax, DWORD PTR -2104[rbp]
	sub	eax, 1
	cmp	DWORD PTR -2088[rbp], eax
	jge	.L50
	mov	eax, DWORD PTR -2088[rbp]
	cmp	eax, 127
	ja	.L50
	mov	edx, DWORD PTR -2096[rbp]
	mov	ecx, DWORD PTR -2100[rbp]
	lea	rax, -2080[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	push_int_pair_stack
	jmp	.L51
.L50:
	mov	edx, DWORD PTR -2096[rbp]
	mov	ecx, DWORD PTR -2100[rbp]
	lea	rax, -1040[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	push_int_pair_stack
.L51:
	lea	rax, -2084[rbp]
	mov	rdi, rax
	call	omp_unset_lock@PLT
	jmp	.L52
.L49:
	mov	edx, DWORD PTR -2096[rbp]
	mov	ecx, DWORD PTR -2100[rbp]
	lea	rax, -1040[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	push_int_pair_stack
	jmp	.L52
.L54:
	call	__stack_chk_fail@PLT
.L53:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	sort1, .-sort1
	.type	sort2_1, @function
sort2_1:
.LFB17:
	.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 -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	DWORD PTR -36[rbp], ecx
	mov	QWORD PTR -48[rbp], r8
	mov	eax, DWORD PTR -32[rbp]
	sub	eax, DWORD PTR -28[rbp]
	cmp	eax, 99
	jg	.L56
	mov	edx, DWORD PTR -32[rbp]
	mov	ecx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	insertsort
	jmp	.L55
.L56:
	mov	edx, DWORD PTR -32[rbp]
	mov	ecx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	partition
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -36[rbp], eax
	jg	.L58
	mov	eax, DWORD PTR -4[rbp]
	lea	edi, -1[rax]
	mov	rcx, QWORD PTR -48[rbp]
	mov	edx, DWORD PTR -36[rbp]
	mov	esi, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	r8, rcx
	mov	ecx, edx
	mov	edx, edi
	mov	rdi, rax
	call	sort2_1
	mov	rdi, QWORD PTR -48[rbp]
	mov	ecx, DWORD PTR -36[rbp]
	mov	edx, DWORD PTR -32[rbp]
	mov	esi, DWORD PTR -4[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	r8, rdi
	mov	rdi, rax
	call	sort2_1
	jmp	.L55
.L58:
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR [rax], edx
	call	omp_get_thread_num@PLT
	test	eax, eax
	jne	.L59
	mov	eax, DWORD PTR -4[rbp]
	lea	edi, -1[rax]
	mov	rcx, QWORD PTR -48[rbp]
	mov	edx, DWORD PTR -36[rbp]
	mov	esi, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	r8, rcx
	mov	ecx, edx
	mov	edx, edi
	mov	rdi, rax
	call	sort2_1
	jmp	.L55
.L59:
	mov	rdi, QWORD PTR -48[rbp]
	mov	ecx, DWORD PTR -36[rbp]
	mov	edx, DWORD PTR -32[rbp]
	mov	esi, DWORD PTR -4[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	r8, rdi
	mov	rdi, rax
	call	sort2_1
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR [rax], edx
.L55:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	sort2_1, .-sort2_1
	.type	sort2, @function
sort2:
.LFB18:
	.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	DWORD PTR -28[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -16[rbp], 1
	call	omp_get_num_threads@PLT
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	lea	esi, -1[rax]
	lea	rcx, -16[rbp]
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	r8, rcx
	mov	ecx, edx
	mov	edx, esi
	mov	esi, 0
	mov	rdi, rax
	call	sort2_1
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L61
	call	__stack_chk_fail@PLT
.L61:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	sort2, .-sort2
	.section	.rodata
.LC2:
	.string	"allocation failure"
.LC3:
	.string	"Threads: %d\n"
.LC4:
	.string	"sort1"
.LC5:
	.string	"sort2"
	.text
	.globl	main
	.type	main, @function
main:
.LFB19:
	.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, 72
	.cfi_offset 3, -24
	mov	DWORD PTR -68[rbp], edi
	mov	QWORD PTR -80[rbp], rsi
	mov	DWORD PTR -48[rbp], 1000000
	cmp	DWORD PTR -68[rbp], 1
	jle	.L63
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	strtoul@PLT
	mov	DWORD PTR -48[rbp], eax
.L63:
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	je	.L64
	cmp	QWORD PTR -32[rbp], 0
	jne	.L65
.L64:
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L65:
	mov	edi, -559038737
	call	srand@PLT
	mov	DWORD PTR -52[rbp], 0
	jmp	.L66
.L67:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	lea	rbx, [rdx+rax]
	call	rand@PLT
	mov	DWORD PTR [rbx], eax
	add	DWORD PTR -52[rbp], 1
.L66:
	mov	eax, DWORD PTR -52[rbp]
	cmp	eax, DWORD PTR -48[rbp]
	jl	.L67
	mov	edi, 1
	call	omp_set_nested@PLT
	mov	edi, 0
	call	omp_set_dynamic@PLT
	call	omp_get_num_threads@PLT
	mov	DWORD PTR -44[rbp], eax
	mov	eax, DWORD PTR -44[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rcx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	call	omp_get_wtime@PLT
	movq	rax, xmm0
	mov	QWORD PTR -24[rbp], rax
	mov	edx, DWORD PTR -48[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	sort1
	mov	edx, DWORD PTR -48[rbp]
	mov	rcx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rcx
	movq	xmm0, rax
	lea	rdi, .LC4[rip]
	call	verify
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rcx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	call	omp_get_wtime@PLT
	movq	rax, xmm0
	mov	QWORD PTR -24[rbp], rax
	mov	edx, DWORD PTR -48[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	sort2
	mov	edx, DWORD PTR -48[rbp]
	mov	rcx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rcx
	movq	xmm0, rax
	lea	rdi, .LC5[rip]
	call	verify
	mov	eax, 0
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.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	"215767555.c"
	.text
	.comm	failures,4,4
	.global	__aeabi_dsub
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%s: %g\012\000"
	.align	2
.LC1:
	.ascii	"%s: incorrectly sorted\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	verify, %function
verify:
	@ args = 8, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	bl	omp_get_wtime
	str	r0, [fp, #-12]
	str	r1, [fp, #-8]
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-24]
	ldr	r0, .L5
	bl	printf
	mov	r3, #1
	str	r3, [fp, #-16]
	b	.L2
.L4:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #4]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r1, [fp, #4]
	add	r3, r1, r3
	ldr	r3, [r3]
	cmp	r2, r3
	bge	.L3
	ldr	r1, [fp, #-24]
	ldr	r0, .L5+4
	bl	printf
	ldr	r3, .L5+8
	mov	r2, #1
	str	r2, [r3]
.L3:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L2:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #8]
	cmp	r2, r3
	blt	.L4
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	.LC0
	.word	.LC1
	.word	failures
	.size	verify, .-verify
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	insertsort, %function
insertsort:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #36
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	b	.L8
.L12:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-12]
	b	.L9
.L11:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r2, r2, r3
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r1, [fp, #-24]
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
.L9:
	ldr	r3, [fp, #-12]
	sub	r2, r3, #1
	str	r2, [fp, #-12]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	bge	.L10
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L11
.L10:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L8:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	ble	.L12
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	insertsort, .-insertsort
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	init_int_pair_stack, %function
init_int_pair_stack:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	add	r2, r3, #4
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	init_int_pair_stack, .-init_int_pair_stack
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	push_int_pair_stack, %function
push_int_pair_stack:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	add	r2, r3, #8
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	push_int_pair_stack, .-push_int_pair_stack
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pop_int_pair_stack, %function
pop_int_pair_stack:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	sub	r2, r3, #8
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	pop_int_pair_stack, .-pop_int_pair_stack
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	size_int_pair_stack, %function
size_int_pair_stack:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #4
	sub	r3, r2, r3
	asr	r3, r3, #3
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	size_int_pair_stack, .-size_int_pair_stack
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	busy_wait, %function
busy_wait:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	busy_wait, .-busy_wait
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	swap, %function
swap:
	@ 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, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r2, r2, r3
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-16]
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	swap, .-swap
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	choose_pivot, %function
choose_pivot:
	@ 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, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-16]
	add	r3, r1, r3
	ldr	r3, [r3]
	cmp	r2, r3
	bge	.L21
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	swap
.L21:
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-16]
	add	r3, r1, r3
	ldr	r3, [r3]
	cmp	r2, r3
	bge	.L22
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-16]
	bl	swap
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-16]
	add	r3, r1, r3
	ldr	r3, [r3]
	cmp	r2, r3
	bge	.L22
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	swap
.L22:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	choose_pivot, .-choose_pivot
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	partition, %function
partition:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	ldr	r2, [fp, #-32]
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	choose_pivot
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-12]
	nop
.L25:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bgt	.L25
.L26:
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L26
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	bge	.L32
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-24]
	bl	swap
	b	.L25
.L32:
	nop
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	partition, .-partition
	.section	.rodata
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sort1, %function
sort1:
	@ args = 0, pretend = 0, frame = 2112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #2112
	str	r0, [fp, #-2112]
	str	r1, [fp, #-2116]
	ldr	r3, .L57
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-2092]
	sub	r3, fp, #2064
	sub	r3, r3, #4
	mov	r0, r3
	bl	omp_init_lock
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r0, r3
	bl	init_int_pair_stack
	mov	r3, #0
	str	r3, [fp, #-2100]
	mov	r3, #0
	str	r3, [fp, #-2096]
	mov	r3, #1
	strb	r3, [fp, #-2101]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r0, r3
	bl	init_int_pair_stack
	bl	omp_get_thread_num
	mov	r3, r0
	cmp	r3, #0
	bne	.L54
	bl	omp_get_num_threads
	str	r0, [fp, #-2088]
	ldr	r3, [fp, #-2116]
	sub	r3, r3, #1
	str	r3, [fp, #-2096]
	mov	r3, #0
	strb	r3, [fp, #-2101]
.L54:
	ldr	r2, [fp, #-2096]
	ldr	r3, [fp, #-2100]
	sub	r3, r2, r3
	cmp	r3, #99
	bgt	.L35
	ldr	r3, [fp, #-2100]
	ldr	r2, [fp, #-2096]
	mov	r1, r3
	ldr	r0, [fp, #-2112]
	bl	insertsort
	ldr	r3, [fp, #-2096]
	str	r3, [fp, #-2100]
.L35:
	ldr	r2, [fp, #-2100]
	ldr	r3, [fp, #-2096]
	cmp	r2, r3
	blt	.L36
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r0, r3
	bl	size_int_pair_stack
	mov	r3, r0
	cmp	r3, #0
	bne	.L37
	nop
.L38:
	sub	r3, fp, #2064
	sub	r3, r3, #4
	mov	r0, r3
	bl	omp_set_lock
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r0, r3
	bl	size_int_pair_stack
	mov	r3, r0
	cmp	r3, #0
	bne	.L39
	ldrb	r3, [fp, #-2101]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L40
	ldr	r3, [fp, #-2092]
	sub	r3, r3, #1
	str	r3, [fp, #-2092]
.L40:
	ldr	r3, [fp, #-2092]
	cmp	r3, #0
	bne	.L41
	sub	r3, fp, #2064
	sub	r3, r3, #4
	mov	r0, r3
	bl	omp_unset_lock
	nop
	sub	r3, fp, #2064
	sub	r3, r3, #4
	mov	r0, r3
	bl	omp_destroy_lock
	nop
	ldr	r3, .L57
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L55
	b	.L56
.L41:
	sub	r3, fp, #2064
	sub	r3, r3, #4
	mov	r0, r3
	bl	omp_unset_lock
	mov	r3, #1
	strb	r3, [fp, #-2101]
	b	.L43
.L45:
	bl	busy_wait
.L43:
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r0, r3
	bl	size_int_pair_stack
	mov	r3, r0
	cmp	r3, #0
	bne	.L38
	ldr	r3, [fp, #-2092]
	cmp	r3, #0
	bne	.L45
	b	.L38
.L39:
	ldrb	r3, [fp, #-2101]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L46
	ldr	r3, [fp, #-2092]
	add	r3, r3, #1
	str	r3, [fp, #-2092]
.L46:
	sub	r2, fp, #2080
	sub	r2, r2, #4
	sub	r2, r2, #12
	sub	r1, fp, #2096
	sub	r1, r1, #4
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r0, r3
	bl	pop_int_pair_stack
	sub	r3, fp, #2064
	sub	r3, r3, #4
	mov	r0, r3
	bl	omp_unset_lock
	mov	r3, #0
	strb	r3, [fp, #-2101]
	b	.L36
.L37:
	sub	r2, fp, #2080
	sub	r2, r2, #4
	sub	r2, r2, #12
	sub	r1, fp, #2096
	sub	r1, r1, #4
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r0, r3
	bl	pop_int_pair_stack
.L36:
	ldr	r3, [fp, #-2100]
	ldr	r2, [fp, #-2096]
	mov	r1, r3
	ldr	r0, [fp, #-2112]
	bl	partition
	str	r0, [fp, #-2076]
	ldr	r3, [fp, #-2100]
	ldr	r2, [fp, #-2076]
	sub	r2, r2, r3
	ldr	r1, [fp, #-2096]
	ldr	r3, [fp, #-2076]
	sub	r3, r1, r3
	cmp	r2, r3
	bge	.L47
	ldr	r3, [fp, #-2076]
	str	r3, [fp, #-2084]
	ldr	r3, [fp, #-2096]
	str	r3, [fp, #-2080]
	ldr	r3, [fp, #-2076]
	sub	r3, r3, #1
	str	r3, [fp, #-2096]
	b	.L48
.L47:
	ldr	r3, [fp, #-2100]
	str	r3, [fp, #-2084]
	ldr	r3, [fp, #-2076]
	sub	r3, r3, #1
	str	r3, [fp, #-2080]
	ldr	r3, [fp, #-2076]
	str	r3, [fp, #-2100]
.L48:
	ldr	r2, [fp, #-2080]
	ldr	r3, [fp, #-2084]
	sub	r3, r2, r3
	cmp	r3, #99
	bgt	.L49
	ldr	r2, [fp, #-2080]
	ldr	r1, [fp, #-2084]
	ldr	r0, [fp, #-2112]
	bl	insertsort
	b	.L54
.L49:
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r0, r3
	bl	size_int_pair_stack
	mov	r2, r0
	ldr	r3, [fp, #-2088]
	sub	r3, r3, #1
	cmp	r2, r3
	bge	.L51
	sub	r3, fp, #2064
	sub	r3, r3, #4
	mov	r0, r3
	bl	omp_set_lock
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r0, r3
	bl	size_int_pair_stack
	str	r0, [fp, #-2072]
	ldr	r3, [fp, #-2088]
	sub	r3, r3, #1
	ldr	r2, [fp, #-2072]
	cmp	r2, r3
	bge	.L52
	ldr	r3, [fp, #-2072]
	cmp	r3, #127
	bhi	.L52
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #12
	ldr	r2, [fp, #-2080]
	ldr	r1, [fp, #-2084]
	mov	r0, r3
	bl	push_int_pair_stack
	b	.L53
.L52:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #8
	ldr	r2, [fp, #-2080]
	ldr	r1, [fp, #-2084]
	mov	r0, r3
	bl	push_int_pair_stack
.L53:
	sub	r3, fp, #2064
	sub	r3, r3, #4
	mov	r0, r3
	bl	omp_unset_lock
	b	.L54
.L51:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #8
	ldr	r2, [fp, #-2080]
	ldr	r1, [fp, #-2084]
	mov	r0, r3
	bl	push_int_pair_stack
	b	.L54
.L56:
	bl	__stack_chk_fail
.L55:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L58:
	.align	2
.L57:
	.word	.LC2
	.size	sort1, .-sort1
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sort2_1, %function
sort2_1:
	@ args = 4, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-20]
	sub	r3, r2, r3
	cmp	r3, #99
	bgt	.L60
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	insertsort
	b	.L59
.L60:
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	partition
	str	r0, [fp, #-8]
	ldr	r3, [fp, #4]
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	bgt	.L62
	ldr	r3, [fp, #-8]
	sub	r2, r3, #1
	ldr	r3, [fp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-28]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	sort2_1
	ldr	r3, [fp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-16]
	bl	sort2_1
	b	.L59
.L62:
	ldr	r3, [fp, #4]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #4]
	str	r2, [r3]
	bl	omp_get_thread_num
	mov	r3, r0
	cmp	r3, #0
	bne	.L63
	ldr	r3, [fp, #-8]
	sub	r2, r3, #1
	ldr	r3, [fp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-28]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	sort2_1
	b	.L59
.L63:
	ldr	r3, [fp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-16]
	bl	sort2_1
	ldr	r3, [fp, #4]
	ldr	r3, [r3]
	sub	r2, r3, #1
	ldr	r3, [fp, #4]
	str	r2, [r3]
.L59:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	sort2_1, .-sort2_1
	.section	.rodata
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sort2, %function
sort2:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, .L66
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-16]
	bl	omp_get_num_threads
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-28]
	sub	r2, r3, #1
	sub	r3, fp, #16
	str	r3, [sp]
	ldr	r3, [fp, #-12]
	mov	r1, #0
	ldr	r0, [fp, #-24]
	bl	sort2_1
	nop
	ldr	r3, .L66
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L65
	bl	__stack_chk_fail
.L65:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L67:
	.align	2
.L66:
	.word	.LC3
	.size	sort2, .-sort2
	.section	.rodata
	.align	2
.LC4:
	.ascii	"allocation failure\000"
	.align	2
.LC5:
	.ascii	"Threads: %d\012\000"
	.align	2
.LC6:
	.ascii	"sort1\000"
	.align	2
.LC7:
	.ascii	"sort2\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #52
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	ldr	r3, .L75
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-48]
	cmp	r3, #1
	ble	.L69
	ldr	r3, [fp, #-52]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	strtoul
	mov	r3, r0
	str	r3, [fp, #-36]
.L69:
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L70
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L71
.L70:
	ldr	r0, .L75+4
	bl	puts
	mov	r0, #1
	bl	exit
.L71:
	ldr	r0, .L75+8
	bl	srand
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L72
.L73:
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r4, r2, r3
	bl	rand
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L72:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	blt	.L73
	mov	r0, #1
	bl	omp_set_nested
	mov	r0, #0
	bl	omp_set_dynamic
	bl	omp_get_num_threads
	str	r0, [fp, #-24]
	ldr	r1, [fp, #-24]
	ldr	r0, .L75+12
	bl	printf
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-28]
	bl	memcpy
	bl	omp_get_wtime
	str	r0, [fp, #-20]
	str	r1, [fp, #-16]
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-28]
	bl	sort1
	ldr	r3, [fp, #-36]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-28]
	str	r3, [sp]
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	ldr	r0, .L75+16
	bl	verify
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-28]
	bl	memcpy
	bl	omp_get_wtime
	str	r0, [fp, #-20]
	str	r1, [fp, #-16]
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-28]
	bl	sort2
	ldr	r3, [fp, #-36]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-28]
	str	r3, [sp]
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	ldr	r0, .L75+20
	bl	verify
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L76:
	.align	2
.L75:
	.word	1000000
	.word	.LC4
	.word	-559038737
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
