#include <iostream>
#include <algorithm>
#include <list>
#include <vector>
#include <iterator>
#include <functional>
#include <time.h>
#include <chrono>
#include <cstdlib>
using namespace std;

struct triple
{
	long long int set;				//Set denotes which Elements are in the Subset
	double w;					//Weight of the Triple
	double p;					//Profit of the Triple

	//Struct Constructor
	triple() : set(0),
		w(0.0),
		p(0.0)
	{}

	//Comparison Operator Overloadings
	bool operator< (const triple &t) const
	{ return (w < t.w); }

	bool operator> (const triple &t) const
	{ return (w > t.w); }
};

void merge_lists(vector<triple> &A, vector<triple> &B,
					vector< pair<double, double> > &V)
{
	vector<triple> T_p, Tcopy;
	triple t;

	long long int v1s = V.size() >> 1, v2s = V.size() - v1s;

	//Initialisation for A
	t.set = 0, t.w = t.p = 0;
	A.push_back(t);

	//Sort A in Non-Increasing Order
	for (long long int i = 0; i < v1s; ++i)
	{
		T_p.clear();
		Tcopy.clear();

		//Add Elements to Subset (Triple) ti
		//Add ti to T_p
		for (long long int j = 0; j < (long long int)A.size(); ++j)
		{
			t.set = A[j].set + (1 << i);
			t.w = A[j].w + V[i].first;
			t.p = A[j].p + V[i].second;

			T_p.push_back(t);
		}

		//Merge A, T_p
		merge(A.begin(), A.end(), T_p.begin(), T_p.end(), back_inserter(Tcopy));
		A = Tcopy;
	}

	//Initialisation for B
	t.set = 0, t.w = t.p = 0;
	B.push_back(t);

	//Sort B in Non-Increasing Order
	for (long long int i = 0; i < v2s; ++i)
	{
		T_p.clear();
		Tcopy.clear();

		//Add Elements to Subset (Triple) ti
		//Add ti to T_p
		for (long long int j = 0; j < (long long int)B.size(); ++j)
		{
			t.set = B[j].set + (1 << i);
			t.w = B[j].w + V[i + v1s].first;
			t.p = B[j].p + V[i + v1s].second;

			T_p.push_back(t);
		}

		//Merge B, T_p
		merge(B.begin(), B.end(), T_p.begin(), T_p.end(), back_inserter(Tcopy), greater<>());
		B = Tcopy;
	}
}

void maxScan(vector<triple> &B, vector< pair<double, long long int> > &maxB)
{
	long long int Bsize = B.size();
	maxB[Bsize - 1].first = B[Bsize - 1].p;
	maxB[Bsize - 1].second = Bsize - 1;
	for (long long int i = Bsize - 2; i >= 0; i--)
	{
		if (B[i].p>maxB[i + 1].first)
		{
			maxB[i].first = B[i].p;
			maxB[i].second = i;
		}
		else
		{
			maxB[i].first = maxB[i + 1].first;
			maxB[i].second = maxB[i + 1].second;
		}
	}
}

long long int generate_sets(vector<triple> &A, vector<triple> &B, const double &c,
						vector< pair<double, long long int> > &maxB, long long int N)
{
	double bestValue = 0;
	pair<long long int, long long int> bestSet;

	long long int i = 0, j = 0;
	while(i < N && j < N)
	{
		if (A[i].w + B[j].w > c)
		{
			++j;

			if (j == N) break;
			else continue;
		}

		if (A[i].p + maxB[j].first > bestValue)
		{
			bestValue = A[i].p + maxB[j].first;
			bestSet = make_pair(A[i].set, maxB[j].second);
		}
		++i;
	}

	return bestValue;
}

long long int dp_knapSack(long long int W, double wt[], double val[], long long int n)
{
	long long int i, w;
	vector< vector<double> > K(n + 1, vector<double>(W + 1));

	// Build table K[][] in bottom up manner 
	for (i = 0; i <= n; i++)
	{
		for (w = 0; w <= W; w++)
		{
			if (i == 0 || w == 0)
				K[i][w] = 0;
			else if (wt[i - 1] <= w)
				K[i][w] = max(val[i - 1] + K[i - 1][w - wt[i - 1]], K[i - 1][w]);
			else
				K[i][w] = K[i - 1][w];
		}
	}
	return K[n][W];
}

int main()
{
	vector<triple> A, B;

	//Input Data
	double c = 0;
	vector< pair<double, double> > V;
	vector<double> wt_arr, p_arr;
	srand(time(0));

	//Input Data
	for (long long int i = 0; i < 40; ++i)
	{
		long long int wt = (rand() % (int)1e7) + 1;
		long long int p = (rand() % (int)1e7) + 1;
		
		c += wt;

		V.push_back(make_pair((double)wt, (double)p));
		//wt_arr.push_back(wt);
		//p_arr.push_back(p);
	}

	c /= 2;
	
	//long long int dpSoln = dp_knapSack(c, &wt_arr[0], &p_arr[0], V.size());
	
	//Computation & Timing
	auto start = chrono::steady_clock::now();

	merge_lists(A, B, V);
	vector< pair<double, long long int> > maxB((long long int)B.size());

	maxScan(B, maxB);
	generate_sets(A, B, c, maxB, (1 << (long long int)(V.size() >> 1)));
	
	auto stop = chrono::steady_clock::now();

	cout << "Computational Time : ";
	cout << (double)(chrono::duration_cast<chrono::nanoseconds>(stop - start).count()) / 1000000.0;
	cout << " ms" << endl;
	cin.get();
	return 0;
}
	.file	"tmpxft_003a91a9_00000000-6_kernel.cudafe1.cpp"
	.text
#APP
	.globl _ZSt21ios_base_library_initv

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB5228:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE5228:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.align 2
	.type	_ZNSt15__new_allocatorI6tripleE8allocateEmPKv.isra.0, @function
_ZNSt15__new_allocatorI6tripleE8allocateEmPKv.isra.0:
.LFB6429:
	.cfi_startproc
	movabsq	$384307168202282325, %rax
	cmpq	%rdi, %rax
	jnb	.L3
	pushq	%rax
	.cfi_def_cfa_offset 16
	movabsq	$768614336404564650, %rax
	cmpq	%rdi, %rax
	jnb	.L4
	call	_ZSt28__throw_bad_array_new_lengthv@PLT
.L4:
	call	_ZSt17__throw_bad_allocv@PLT
.L3:
	.cfi_def_cfa_offset 8
	imulq	$24, %rdi, %rdi
	jmp	_Znwm@PLT
	.cfi_endproc
.LFE6429:
	.size	_ZNSt15__new_allocatorI6tripleE8allocateEmPKv.isra.0, .-_ZNSt15__new_allocatorI6tripleE8allocateEmPKv.isra.0
	.align 2
	.type	_ZNSt6vectorI6tripleSaIS0_EEaSERKS2_.isra.0, @function
_ZNSt6vectorI6tripleSaIS0_EEaSERKS2_.isra.0:
.LFB6430:
	.cfi_startproc
	cmpq	%rdi, %rsi
	je	.L31
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movq	%rsi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	movq	%rdi, %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 64
	movq	8(%rsi), %r13
	movq	(%rdi), %rdi
	movq	(%rsi), %rsi
	movq	16(%rbx), %rax
	movq	%r13, %rbp
	subq	%rsi, %rbp
	subq	%rdi, %rax
	cmpq	%rbp, %rax
	jnb	.L11
	movabsq	$-6148914691236517205, %rax
	movq	%rbp, %rdi
	xorl	%r12d, %r12d
	sarq	$3, %rdi
	imulq	%rax, %rdi
	testq	%rdi, %rdi
	je	.L12
	movq	%rsi, 8(%rsp)
	call	_ZNSt15__new_allocatorI6tripleE8allocateEmPKv.isra.0
	movq	8(%rsp), %rsi
	movq	%rax, %r12
.L12:
	xorl	%eax, %eax
.L13:
	leaq	(%rsi,%rax), %rdx
	cmpq	%rdx, %r13
	je	.L34
	movups	(%rsi,%rax), %xmm0
	movups	%xmm0, (%r12,%rax)
	movq	16(%rsi,%rax), %rdx
	movq	%rdx, 16(%r12,%rax)
	addq	$24, %rax
	jmp	.L13
.L34:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	.L15
	movq	16(%rbx), %rsi
	subq	%rdi, %rsi
	call	_ZdlPvm@PLT
.L15:
	movq	%r12, (%rbx)
	addq	%rbp, %r12
	movq	%r12, 16(%rbx)
	jmp	.L16
.L11:
	movq	8(%rbx), %rdx
	subq	%rdi, %rdx
	cmpq	%rbp, %rdx
	jb	.L17
	cmpq	$24, %rbp
	jle	.L18
	movq	%rbp, %rdx
	call	memmove@PLT
	jmp	.L16
.L18:
	jne	.L16
	movups	(%rsi), %xmm1
	movups	%xmm1, (%rdi)
	movq	16(%rsi), %rax
	movq	%rax, 16(%rdi)
	jmp	.L16
.L17:
	cmpq	$24, %rdx
	jle	.L20
	call	memmove@PLT
	jmp	.L21
.L20:
	jne	.L21
	movups	(%rsi), %xmm2
	movups	%xmm2, (%rdi)
	movq	16(%rsi), %rax
	movq	%rax, 16(%rdi)
.L21:
	movq	8(%rbx), %rcx
	movq	8(%r12), %rdi
	xorl	%eax, %eax
	movq	%rcx, %rdx
	subq	(%rbx), %rdx
	addq	(%r12), %rdx
.L22:
	leaq	(%rdx,%rax), %rsi
	cmpq	%rsi, %rdi
	je	.L16
	movups	(%rdx,%rax), %xmm3
	movups	%xmm3, (%rcx,%rax)
	movq	16(%rdx,%rax), %rsi
	movq	%rsi, 16(%rcx,%rax)
	addq	$24, %rax
	jmp	.L22
.L16:
	addq	(%rbx), %rbp
	movq	%rbp, 8(%rbx)
	addq	$24, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L31:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	ret
	.cfi_endproc
.LFE6430:
	.size	_ZNSt6vectorI6tripleSaIS0_EEaSERKS2_.isra.0, .-_ZNSt6vectorI6tripleSaIS0_EEaSERKS2_.isra.0
	.globl	_Z7maxScanRSt6vectorI6tripleSaIS0_EERS_ISt4pairIdxESaIS5_EE
	.type	_Z7maxScanRSt6vectorI6tripleSaIS0_EERS_ISt4pairIdxESaIS5_EE, @function
_Z7maxScanRSt6vectorI6tripleSaIS0_EERS_ISt4pairIdxESaIS5_EE:
.LFB5196:
	.cfi_startproc
	endbr64
	movabsq	$-6148914691236517205, %rdx
	movq	8(%rdi), %r9
	movq	(%rdi), %rcx
	movq	(%rsi), %rsi
	movq	%r9, %rax
	movsd	-8(%r9), %xmm0
	subq	%rcx, %rax
	sarq	$3, %rax
	imulq	%rdx, %rax
	leaq	-1(%rax), %r8
	subq	$2, %rax
	movq	%r8, %rdx
	salq	$4, %rdx
	leaq	(%rsi,%rdx), %rdi
	leaq	16(%rsi,%rdx), %rdx
	movq	%r8, 8(%rdi)
	movsd	%xmm0, (%rdi)
.L36:
	testq	%rax, %rax
	js	.L43
	imulq	$24, %rax, %rsi
	movsd	-16(%rdx), %xmm0
	movsd	16(%rcx,%rsi), %xmm1
	comisd	%xmm0, %xmm1
	jbe	.L42
	movsd	%xmm1, -32(%rdx)
	movq	%rax, %rsi
	jmp	.L39
.L42:
	movq	-8(%rdx), %rsi
	movsd	%xmm0, -32(%rdx)
.L39:
	movq	%rsi, -24(%rdx)
	decq	%rax
	subq	$16, %rdx
	jmp	.L36
.L43:
	ret
	.cfi_endproc
.LFE5196:
	.size	_Z7maxScanRSt6vectorI6tripleSaIS0_EERS_ISt4pairIdxESaIS5_EE, .-_Z7maxScanRSt6vectorI6tripleSaIS0_EERS_ISt4pairIdxESaIS5_EE
	.globl	_Z13generate_setsRSt6vectorI6tripleSaIS0_EES3_RKdRS_ISt4pairIdxESaIS7_EEx
	.type	_Z13generate_setsRSt6vectorI6tripleSaIS0_EES3_RKdRS_ISt4pairIdxESaIS7_EEx, @function
_Z13generate_setsRSt6vectorI6tripleSaIS0_EES3_RKdRS_ISt4pairIdxESaIS7_EEx:
.LFB5198:
	.cfi_startproc
	endbr64
	movq	%rdx, %r9
	movq	%rcx, %r10
	xorl	%eax, %eax
	xorl	%edx, %edx
	xorps	%xmm0, %xmm0
.L45:
	cmpq	%rax, %rdx
	movq	%rax, %rcx
	cmovge	%rdx, %rcx
	cmpq	%r8, %rcx
	jge	.L51
	imulq	$24, %rdx, %rcx
	addq	(%rdi), %rcx
	imulq	$24, %rax, %r11
	addq	(%rsi), %r11
	movsd	8(%r11), %xmm1
	addsd	8(%rcx), %xmm1
	comisd	(%r9), %xmm1
	jbe	.L53
	incq	%rax
	cmpq	%rax, %r8
	je	.L51
	jmp	.L45
.L53:
	movq	%rax, %r11
	incq	%rdx
	salq	$4, %r11
	addq	(%r10), %r11
	movsd	(%r11), %xmm1
	addsd	16(%rcx), %xmm1
	maxsd	%xmm0, %xmm1
	movaps	%xmm1, %xmm0
	jmp	.L45
.L51:
	cvttsd2siq	%xmm0, %rax
	ret
	.cfi_endproc
.LFE5198:
	.size	_Z13generate_setsRSt6vectorI6tripleSaIS0_EES3_RKdRS_ISt4pairIdxESaIS7_EEx, .-_Z13generate_setsRSt6vectorI6tripleSaIS0_EES3_RKdRS_ISt4pairIdxESaIS7_EEx
	.section	.text.startup,"ax",@progbits
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB5251:
	.cfi_startproc
	endbr64
	pushq	%rax
	.cfi_def_cfa_offset 16
	leaq	_ZL15__fatDeviceText(%rip), %rdi
	call	__cudaRegisterFatBinary@PLT
	movq	%rax, %rdi
	movq	%rax, _ZL20__cudaFatCubinHandle(%rip)
	call	__cudaRegisterFatBinaryEnd@PLT
	leaq	_ZL26__cudaUnregisterBinaryUtilv(%rip), %rdi
	popq	%rdx
	.cfi_def_cfa_offset 8
	jmp	atexit@PLT
	.cfi_endproc
.LFE5251:
	.size	_ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv
	.section	.init_array,"aw"
	.align 8
	.quad	_ZL24__sti____cudaRegisterAllv
	.section	.text._ZNSt6vectorI6tripleSaIS0_EED2Ev,"axG",@progbits,_ZNSt6vectorI6tripleSaIS0_EED5Ev,comdat
	.align 2
	.weak	_ZNSt6vectorI6tripleSaIS0_EED2Ev
	.type	_ZNSt6vectorI6tripleSaIS0_EED2Ev, @function
_ZNSt6vectorI6tripleSaIS0_EED2Ev:
.LFB5596:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	.L57
	movq	16(%rdi), %rsi
	movq	%rax, %rdi
	subq	%rax, %rsi
	jmp	_ZdlPvm@PLT
.L57:
	ret
	.cfi_endproc
.LFE5596:
	.size	_ZNSt6vectorI6tripleSaIS0_EED2Ev, .-_ZNSt6vectorI6tripleSaIS0_EED2Ev
	.weak	_ZNSt6vectorI6tripleSaIS0_EED1Ev
	.set	_ZNSt6vectorI6tripleSaIS0_EED1Ev,_ZNSt6vectorI6tripleSaIS0_EED2Ev
	.section	.text._ZNSt6vectorI6tripleSaIS0_EE5clearEv,"axG",@progbits,_ZNSt6vectorI6tripleSaIS0_EE5clearEv,comdat
	.align 2
	.weak	_ZNSt6vectorI6tripleSaIS0_EE5clearEv
	.type	_ZNSt6vectorI6tripleSaIS0_EE5clearEv, @function
_ZNSt6vectorI6tripleSaIS0_EE5clearEv:
.LFB5601:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	cmpq	8(%rdi), %rax
	je	.L59
	movq	%rax, 8(%rdi)
.L59:
	ret
	.cfi_endproc
.LFE5601:
	.size	_ZNSt6vectorI6tripleSaIS0_EE5clearEv, .-_ZNSt6vectorI6tripleSaIS0_EE5clearEv
	.section	.text._ZNSt6vectorIdSaIdEED2Ev,"axG",@progbits,_ZNSt6vectorIdSaIdEED5Ev,comdat
	.align 2
	.weak	_ZNSt6vectorIdSaIdEED2Ev
	.type	_ZNSt6vectorIdSaIdEED2Ev, @function
_ZNSt6vectorIdSaIdEED2Ev:
.LFB5635:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	.L61
	movq	16(%rdi), %rsi
	movq	%rax, %rdi
	subq	%rax, %rsi
	jmp	_ZdlPvm@PLT
.L61:
	ret
	.cfi_endproc
.LFE5635:
	.size	_ZNSt6vectorIdSaIdEED2Ev, .-_ZNSt6vectorIdSaIdEED2Ev
	.weak	_ZNSt6vectorIdSaIdEED1Ev
	.set	_ZNSt6vectorIdSaIdEED1Ev,_ZNSt6vectorIdSaIdEED2Ev
	.section	.text._ZNSt6vectorISt4pairIddESaIS1_EED2Ev,"axG",@progbits,_ZNSt6vectorISt4pairIddESaIS1_EED5Ev,comdat
	.align 2
	.weak	_ZNSt6vectorISt4pairIddESaIS1_EED2Ev
	.type	_ZNSt6vectorISt4pairIddESaIS1_EED2Ev, @function
_ZNSt6vectorISt4pairIddESaIS1_EED2Ev:
.LFB5661:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	.L63
	movq	16(%rdi), %rsi
	movq	%rax, %rdi
	subq	%rax, %rsi
	jmp	_ZdlPvm@PLT
.L63:
	ret
	.cfi_endproc
.LFE5661:
	.size	_ZNSt6vectorISt4pairIddESaIS1_EED2Ev, .-_ZNSt6vectorISt4pairIddESaIS1_EED2Ev
	.weak	_ZNSt6vectorISt4pairIddESaIS1_EED1Ev
	.set	_ZNSt6vectorISt4pairIddESaIS1_EED1Ev,_ZNSt6vectorISt4pairIddESaIS1_EED2Ev
	.section	.text._ZNSt6vectorISt4pairIdxESaIS1_EED2Ev,"axG",@progbits,_ZNSt6vectorISt4pairIdxESaIS1_EED5Ev,comdat
	.align 2
	.weak	_ZNSt6vectorISt4pairIdxESaIS1_EED2Ev
	.type	_ZNSt6vectorISt4pairIdxESaIS1_EED2Ev, @function
_ZNSt6vectorISt4pairIdxESaIS1_EED2Ev:
.LFB5685:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	.L65
	movq	16(%rdi), %rsi
	movq	%rax, %rdi
	subq	%rax, %rsi
	jmp	_ZdlPvm@PLT
.L65:
	ret
	.cfi_endproc
.LFE5685:
	.size	_ZNSt6vectorISt4pairIdxESaIS1_EED2Ev, .-_ZNSt6vectorISt4pairIdxESaIS1_EED2Ev
	.weak	_ZNSt6vectorISt4pairIdxESaIS1_EED1Ev
	.set	_ZNSt6vectorISt4pairIdxESaIS1_EED1Ev,_ZNSt6vectorISt4pairIdxESaIS1_EED2Ev
	.section	.rodata._ZNSt6vectorI6tripleSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_.str1.1,"aMS",@progbits,1
.LC1:
	.string	"vector::_M_realloc_insert"
	.section	.text._ZNSt6vectorI6tripleSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_,"axG",@progbits,_ZNSt6vectorI6tripleSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_,comdat
	.align 2
	.weak	_ZNSt6vectorI6tripleSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_
	.type	_ZNSt6vectorI6tripleSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_, @function
_ZNSt6vectorI6tripleSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_:
.LFB5859:
	.cfi_startproc
	endbr64
	movabsq	$-6148914691236517205, %rax
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rsi, %rbx
	movabsq	$384307168202282325, %rsi
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	8(%rdi), %r15
	movq	(%rdi), %r13
	movq	%r15, %rbp
	subq	%r13, %rbp
	sarq	$3, %rbp
	imulq	%rax, %rbp
	cmpq	%rsi, %rbp
	jne	.L68
	leaq	.LC1(%rip), %rdi
	call	_ZSt20__throw_length_errorPKc@PLT
.L68:
	cmpq	%r13, %r15
	movl	$1, %eax
	movq	%rbx, %rcx
	movq	%rdi, %r12
	cmovne	%rbp, %rax
	addq	%rax, %rbp
	setc	%al
	subq	%r13, %rcx
	movzbl	%al, %eax
	testq	%rax, %rax
	jne	.L80
	xorl	%r14d, %r14d
	testq	%rbp, %rbp
	je	.L73
	movabsq	$384307168202282325, %rax
	cmpq	%rax, %rbp
	cmova	%rax, %rbp
	jmp	.L72
.L80:
	movq	%rsi, %rbp
.L72:
	movq	%rbp, %rdi
	movq	%rdx, 8(%rsp)
	movq	%rcx, (%rsp)
	call	_ZNSt15__new_allocatorI6tripleE8allocateEmPKv.isra.0
	movq	8(%rsp), %rdx
	movq	(%rsp), %rcx
	movq	%rax, %r14
.L73:
	movq	16(%rdx), %rax
	movups	(%rdx), %xmm0
	movq	%r14, %rdx
	movq	%rax, 16(%r14,%rcx)
	movq	%r13, %rax
	movups	%xmm0, (%r14,%rcx)
.L74:
	addq	$24, %rdx
	cmpq	%rax, %rbx
	je	.L87
	movups	(%rax), %xmm1
	movq	16(%rax), %rcx
	addq	$24, %rax
	movq	%rcx, -8(%rdx)
	movups	%xmm1, -24(%rdx)
	jmp	.L74
.L87:
	movabsq	$768614336404564651, %rax
	subq	%r13, %rbx
	shrq	$3, %rbx
	imulq	%rax, %rbx
	movabsq	$2305843009213693951, %rax
	andq	%rax, %rbx
	imulq	$24, %rbx, %rcx
	leaq	1(%rbx), %rax
	imulq	$24, %rax, %rax
	addq	%r13, %rcx
	addq	%r14, %rax
	movq	%rcx, %rdx
	movq	%rax, %rsi
.L76:
	cmpq	%r15, %rdx
	je	.L88
	movups	(%rdx), %xmm2
	movq	16(%rdx), %rdi
	addq	$24, %rsi
	addq	$24, %rdx
	movups	%xmm2, -24(%rsi)
	movq	%rdi, -8(%rsi)
	jmp	.L76
.L88:
	subq	%rcx, %rdx
	movabsq	$768614336404564651, %rcx
	shrq	$3, %rdx
	imulq	%rcx, %rdx
	movabsq	$2305843009213693951, %rcx
	andq	%rcx, %rdx
	imulq	$24, %rdx, %rdx
	leaq	(%rax,%rdx), %rbx
	testq	%r13, %r13
	je	.L78
	movq	16(%r12), %rsi
	movq	%r13, %rdi
	subq	%r13, %rsi
	call	_ZdlPvm@PLT
.L78:
	imulq	$24, %rbp, %rbp
	movq	%r14, (%r12)
	movq	%rbx, 8(%r12)
	addq	%rbp, %r14
	movq	%r14, 16(%r12)
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE5859:
	.size	_ZNSt6vectorI6tripleSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_, .-_ZNSt6vectorI6tripleSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_
	.section	.text._ZNSt6vectorI6tripleSaIS0_EE9push_backERKS0_,"axG",@progbits,_ZNSt6vectorI6tripleSaIS0_EE9push_backERKS0_,comdat
	.align 2
	.weak	_ZNSt6vectorI6tripleSaIS0_EE9push_backERKS0_
	.type	_ZNSt6vectorI6tripleSaIS0_EE9push_backERKS0_, @function
_ZNSt6vectorI6tripleSaIS0_EE9push_backERKS0_:
.LFB5599:
	.cfi_startproc
	endbr64
	movq	%rsi, %rdx
	movq	8(%rdi), %rsi
	cmpq	16(%rdi), %rsi
	je	.L90
	movups	(%rdx), %xmm0
	addq	$24, %rsi
	movups	%xmm0, -24(%rsi)
	movq	16(%rdx), %rax
	movq	%rax, -8(%rsi)
	movq	%rsi, 8(%rdi)
	ret
.L90:
	jmp	_ZNSt6vectorI6tripleSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_
	.cfi_endproc
.LFE5599:
	.size	_ZNSt6vectorI6tripleSaIS0_EE9push_backERKS0_, .-_ZNSt6vectorI6tripleSaIS0_EE9push_backERKS0_
	.section	.text._ZNSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EED2Ev,"axG",@progbits,_ZNSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EED5Ev,comdat
	.align 2
	.weak	_ZNSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EED2Ev
	.type	_ZNSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EED2Ev, @function
_ZNSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EED2Ev:
.LFB5916:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	.L93
	movq	16(%rdi), %rsi
	movq	%rax, %rdi
	subq	%rax, %rsi
	jmp	_ZdlPvm@PLT
.L93:
	ret
	.cfi_endproc
.LFE5916:
	.size	_ZNSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EED2Ev, .-_ZNSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EED2Ev
	.weak	_ZNSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EED1Ev
	.set	_ZNSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EED1Ev,_ZNSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EED2Ev
	.section	.text._ZSt4copyIN9__gnu_cxx17__normal_iteratorIP6tripleSt6vectorIS2_SaIS2_EEEESt20back_insert_iteratorIS6_EET0_T_SB_SA_,"axG",@progbits,_ZSt4copyIN9__gnu_cxx17__normal_iteratorIP6tripleSt6vectorIS2_SaIS2_EEEESt20back_insert_iteratorIS6_EET0_T_SB_SA_,comdat
	.weak	_ZSt4copyIN9__gnu_cxx17__normal_iteratorIP6tripleSt6vectorIS2_SaIS2_EEEESt20back_insert_iteratorIS6_EET0_T_SB_SA_
	.type	_ZSt4copyIN9__gnu_cxx17__normal_iteratorIP6tripleSt6vectorIS2_SaIS2_EEEESt20back_insert_iteratorIS6_EET0_T_SB_SA_, @function
_ZSt4copyIN9__gnu_cxx17__normal_iteratorIP6tripleSt6vectorIS2_SaIS2_EEEESt20back_insert_iteratorIS6_EET0_T_SB_SA_:
.LFB6078:
	.cfi_startproc
	endbr64
	movabsq	$-6148914691236517205, %rax
	subq	%rdi, %rsi
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movq	%rdx, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	movq	%rdi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movq	%rsi, %rbx
	sarq	$3, %rbx
	imulq	%rax, %rbx
.L96:
	testq	%rbx, %rbx
	jle	.L99
	movq	%rbp, %rsi
	movq	%r12, %rdi
	addq	$24, %rbp
	decq	%rbx
	call	_ZNSt6vectorI6tripleSaIS0_EE9push_backERKS0_
	jmp	.L96
.L99:
	movq	%r12, %rax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE6078:
	.size	_ZSt4copyIN9__gnu_cxx17__normal_iteratorIP6tripleSt6vectorIS2_SaIS2_EEEESt20back_insert_iteratorIS6_EET0_T_SB_SA_, .-_ZSt4copyIN9__gnu_cxx17__normal_iteratorIP6tripleSt6vectorIS2_SaIS2_EEEESt20back_insert_iteratorIS6_EET0_T_SB_SA_
	.text
	.globl	_Z11merge_listsRSt6vectorI6tripleSaIS0_EES3_RS_ISt4pairIddESaIS5_EE
	.type	_Z11merge_listsRSt6vectorI6tripleSaIS0_EES3_RS_ISt4pairIddESaIS5_EE, @function
_Z11merge_listsRSt6vectorI6tripleSaIS0_EES3_RS_ISt4pairIddESaIS5_EE:
.LFB5184:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA5184
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movq	%rdx, %r15
	xorl	%edx, %edx
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$152, %rsp
	.cfi_def_cfa_offset 208
	movq	%rdi, 24(%rsp)
	movq	%rsi, 32(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	movq	8(%r15), %rax
	subq	(%r15), %rax
	movq	%rdx, 64(%rsp)
	sarq	$4, %rax
	movq	%rdx, 72(%rsp)
	movq	%rax, %rbp
	movq	%rdx, 80(%rsp)
	shrq	%rbp
	movq	%rdx, 88(%rsp)
	subq	%rbp, %rax
	movq	%rdx, 96(%rsp)
	movq	%rax, 56(%rsp)
	leaq	112(%rsp), %rax
	movq	%rax, 40(%rsp)
	leaq	64(%rsp), %rax
	movq	%rdx, 104(%rsp)
	movq	%rdx, 112(%rsp)
	movq	$0x000000000, 120(%rsp)
	movq	$0x000000000, 128(%rsp)
	movq	%rax, 16(%rsp)
	movq	40(%rsp), %rsi
.LEHB0:
	call	_ZNSt6vectorI6tripleSaIS0_EE9push_backERKS0_
	xorl	%r14d, %r14d
.L101:
	leaq	88(%rsp), %rax
	cmpq	%rbp, %r14
	movq	%rax, 8(%rsp)
	jge	.L141
	movq	16(%rsp), %rdi
	movl	$1, %r12d
	xorl	%r13d, %r13d
	call	_ZNSt6vectorI6tripleSaIS0_EE5clearEv
	movq	8(%rsp), %rdi
	call	_ZNSt6vectorI6tripleSaIS0_EE5clearEv
	movq	%r14, %rax
	movl	%r14d, %ecx
	salq	$4, %rax
	sall	%cl, %r12d
	movq	%rax, 8(%rsp)
	movslq	%r12d, %r12
.L102:
	movabsq	$-6148914691236517205, %rcx
	movq	24(%rsp), %rax
	movq	8(%rax), %rax
	movq	%rax, 48(%rsp)
	movq	24(%rsp), %rax
	movq	(%rax), %rbx
	movq	48(%rsp), %rax
	subq	%rbx, %rax
	sarq	$3, %rax
	imulq	%rcx, %rax
	cmpq	%rax, %r13
	jge	.L142
	imulq	$24, %r13, %rax
	movq	40(%rsp), %rsi
	movq	16(%rsp), %rdi
	addq	%rbx, %rax
	movq	(%rax), %rdx
	movsd	8(%rax), %xmm0
	addq	%r12, %rdx
	movq	%rdx, 112(%rsp)
	movq	8(%rsp), %rdx
	addq	(%r15), %rdx
	addsd	(%rdx), %xmm0
	movsd	%xmm0, 120(%rsp)
	movsd	16(%rax), %xmm0
	addsd	8(%rdx), %xmm0
	movsd	%xmm0, 128(%rsp)
	call	_ZNSt6vectorI6tripleSaIS0_EE9push_backERKS0_
	incq	%r13
	jmp	.L102
.L142:
	leaq	88(%rsp), %rax
	movq	72(%rsp), %r13
	movq	64(%rsp), %r12
	movq	%rax, 8(%rsp)
.L104:
	cmpq	%r12, %r13
	je	.L106
	cmpq	%rbx, 48(%rsp)
	je	.L106
	movsd	8(%rbx), %xmm0
	comisd	8(%r12), %xmm0
	jbe	.L143
	movq	8(%rsp), %rdi
	movq	%r12, %rsi
	call	_ZNSt6vectorI6tripleSaIS0_EE9push_backERKS0_
	addq	$24, %r12
	jmp	.L104
.L143:
	movq	8(%rsp), %rdi
	movq	%rbx, %rsi
	call	_ZNSt6vectorI6tripleSaIS0_EE9push_backERKS0_
	addq	$24, %rbx
	jmp	.L104
.L106:
	movq	8(%rsp), %rdx
	movq	48(%rsp), %rsi
	movq	%rbx, %rdi
	call	_ZSt4copyIN9__gnu_cxx17__normal_iteratorIP6tripleSt6vectorIS2_SaIS2_EEEESt20back_insert_iteratorIS6_EET0_T_SB_SA_
	movq	%rax, %rdx
	movq	%r13, %rsi
	movq	%r12, %rdi
	call	_ZSt4copyIN9__gnu_cxx17__normal_iteratorIP6tripleSt6vectorIS2_SaIS2_EEEESt20back_insert_iteratorIS6_EET0_T_SB_SA_
	movq	8(%rsp), %rsi
	movq	24(%rsp), %rdi
	call	_ZNSt6vectorI6tripleSaIS0_EEaSERKS2_.isra.0
	incq	%r14
	jmp	.L101
.L141:
	movq	40(%rsp), %rsi
	xorl	%eax, %eax
	movq	32(%rsp), %rdi
	movq	$0x000000000, 128(%rsp)
	movq	%rax, 112(%rsp)
	movq	$0x000000000, 120(%rsp)
	call	_ZNSt6vectorI6tripleSaIS0_EE9push_backERKS0_
	salq	$4, %rbp
	xorl	%r13d, %r13d
.L110:
	movq	56(%rsp), %rax
	cmpq	%rax, %r13
	jge	.L144
	movq	16(%rsp), %rdi
	movl	$1, %r12d
	xorl	%r14d, %r14d
	call	_ZNSt6vectorI6tripleSaIS0_EE5clearEv
	movq	8(%rsp), %rdi
	call	_ZNSt6vectorI6tripleSaIS0_EE5clearEv
	movl	%r13d, %ecx
	sall	%cl, %r12d
	movslq	%r12d, %r12
.L111:
	movabsq	$-6148914691236517205, %rcx
	movq	32(%rsp), %rax
	movq	8(%rax), %rax
	movq	%rax, 24(%rsp)
	movq	32(%rsp), %rax
	movq	(%rax), %rbx
	movq	24(%rsp), %rax
	subq	%rbx, %rax
	sarq	$3, %rax
	imulq	%rcx, %rax
	cmpq	%rax, %r14
	jge	.L145
	imulq	$24, %r14, %rax
	movq	40(%rsp), %rsi
	movq	16(%rsp), %rdi
	addq	%rbx, %rax
	movq	(%rax), %rdx
	movsd	8(%rax), %xmm0
	addq	%r12, %rdx
	movq	%rdx, 112(%rsp)
	movq	(%r15), %rdx
	addq	%rbp, %rdx
	addsd	(%rdx), %xmm0
	movsd	%xmm0, 120(%rsp)
	movsd	16(%rax), %xmm0
	addsd	8(%rdx), %xmm0
	movsd	%xmm0, 128(%rsp)
	call	_ZNSt6vectorI6tripleSaIS0_EE9push_backERKS0_
	incq	%r14
	jmp	.L111
.L145:
	movq	72(%rsp), %r14
	movq	64(%rsp), %r12
.L113:
	cmpq	%rbx, 24(%rsp)
	je	.L115
	cmpq	%r12, %r14
	je	.L115
	movsd	8(%r12), %xmm0
	comisd	8(%rbx), %xmm0
	jbe	.L146
	movq	8(%rsp), %rdi
	movq	%r12, %rsi
	call	_ZNSt6vectorI6tripleSaIS0_EE9push_backERKS0_
	addq	$24, %r12
	jmp	.L113
.L146:
	movq	8(%rsp), %rdi
	movq	%rbx, %rsi
	call	_ZNSt6vectorI6tripleSaIS0_EE9push_backERKS0_
	addq	$24, %rbx
	jmp	.L113
.L115:
	movq	8(%rsp), %rdx
	movq	24(%rsp), %rsi
	movq	%rbx, %rdi
	call	_ZSt4copyIN9__gnu_cxx17__normal_iteratorIP6tripleSt6vectorIS2_SaIS2_EEEESt20back_insert_iteratorIS6_EET0_T_SB_SA_
	movq	%rax, %rdx
	movq	%r14, %rsi
	movq	%r12, %rdi
	call	_ZSt4copyIN9__gnu_cxx17__normal_iteratorIP6tripleSt6vectorIS2_SaIS2_EEEESt20back_insert_iteratorIS6_EET0_T_SB_SA_
	movq	8(%rsp), %rsi
	movq	32(%rsp), %rdi
	call	_ZNSt6vectorI6tripleSaIS0_EEaSERKS2_.isra.0
.LEHE0:
	incq	%r13
	addq	$16, %rbp
	jmp	.L110
.L144:
	movq	8(%rsp), %rdi
	call	_ZNSt6vectorI6tripleSaIS0_EED1Ev
	movq	16(%rsp), %rdi
	call	_ZNSt6vectorI6tripleSaIS0_EED1Ev
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	je	.L121
	jmp	.L139
.L123:
	endbr64
	movq	%rax, %rbx
.L119:
	leaq	88(%rsp), %rdi
	call	_ZNSt6vectorI6tripleSaIS0_EED1Ev
	movq	16(%rsp), %rdi
	call	_ZNSt6vectorI6tripleSaIS0_EED1Ev
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L139
	movq	%rbx, %rdi
.LEHB1:
	call	_Unwind_Resume@PLT
.LEHE1:
.L139:
	call	__stack_chk_fail@PLT
.L121:
	addq	$152, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE5184:
	.globl	__gxx_personality_v0
	.section	.gcc_except_table,"a",@progbits
.LLSDA5184:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE5184-.LLSDACSB5184
.LLSDACSB5184:
	.uleb128 .LEHB0-.LFB5184
	.uleb128 .LEHE0-.LEHB0
	.uleb128 .L123-.LFB5184
	.uleb128 0
	.uleb128 .LEHB1-.LFB5184
	.uleb128 .LEHE1-.LEHB1
	.uleb128 0
	.uleb128 0
.LLSDACSE5184:
	.text
	.size	_Z11merge_listsRSt6vectorI6tripleSaIS0_EES3_RS_ISt4pairIddESaIS5_EE, .-_Z11merge_listsRSt6vectorI6tripleSaIS0_EES3_RS_ISt4pairIddESaIS5_EE
	.section	.text._ZNSt12_Vector_baseIdSaIdEE17_M_create_storageEm,"axG",@progbits,_ZNSt12_Vector_baseIdSaIdEE17_M_create_storageEm,comdat
	.align 2
	.weak	_ZNSt12_Vector_baseIdSaIdEE17_M_create_storageEm
	.type	_ZNSt12_Vector_baseIdSaIdEE17_M_create_storageEm, @function
_ZNSt12_Vector_baseIdSaIdEE17_M_create_storageEm:
.LFB6099:
	.cfi_startproc
	endbr64
	testq	%rsi, %rsi
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	0(,%rsi,8), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movq	%rdi, %rbx
	pushq	%rdx
	.cfi_def_cfa_offset 32
	je	.L151
	movabsq	$1152921504606846975, %rax
	cmpq	%rsi, %rax
	jnb	.L149
	movabsq	$2305843009213693951, %rax
	cmpq	%rsi, %rax
	jnb	.L150
	call	_ZSt28__throw_bad_array_new_lengthv@PLT
.L150:
	call	_ZSt17__throw_bad_allocv@PLT
.L149:
	movq	%rbp, %rdi
	call	_Znwm@PLT
	jmp	.L148
.L151:
	xorl	%eax, %eax
.L148:
	movq	%rax, (%rbx)
	movq	%rax, 8(%rbx)
	addq	%rbp, %rax
	movq	%rax, 16(%rbx)
	popq	%rax
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE6099:
	.size	_ZNSt12_Vector_baseIdSaIdEE17_M_create_storageEm, .-_ZNSt12_Vector_baseIdSaIdEE17_M_create_storageEm
	.section	.text._ZNSt6vectorISt4pairIddESaIS1_EE17_M_realloc_insertIJS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_,"axG",@progbits,_ZNSt6vectorISt4pairIddESaIS1_EE17_M_realloc_insertIJS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_,comdat
	.align 2
	.weak	_ZNSt6vectorISt4pairIddESaIS1_EE17_M_realloc_insertIJS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_
	.type	_ZNSt6vectorISt4pairIddESaIS1_EE17_M_realloc_insertIJS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_, @function
_ZNSt6vectorISt4pairIddESaIS1_EE17_M_realloc_insertIJS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_:
.LFB6123:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movq	%rsi, %r15
	movq	%rdx, %rsi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%rdi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	8(%rdi), %rdx
	movq	(%rdi), %r13
	movabsq	$576460752303423487, %rdi
	movq	%rdx, %rbx
	subq	%r13, %rbx
	sarq	$4, %rbx
	cmpq	%rdi, %rbx
	jne	.L154
	leaq	.LC1(%rip), %rdi
	call	_ZSt20__throw_length_errorPKc@PLT
.L154:
	cmpq	%r13, %rdx
	movl	$1, %eax
	movq	%r15, %rcx
	movq	%r15, %r14
	cmovne	%rbx, %rax
	addq	%rax, %rbx
	setc	%al
	subq	%r13, %rcx
	movzbl	%al, %eax
	movq	%rcx, 16(%rsp)
	testq	%rax, %rax
	jne	.L166
	xorl	%ebp, %ebp
	testq	%rbx, %rbx
	je	.L159
	movabsq	$576460752303423487, %rax
	cmpq	%rax, %rbx
	cmova	%rax, %rbx
	jmp	.L158
.L166:
	movq	%rdi, %rbx
.L158:
	movq	%rbx, %rdi
	movq	%rsi, 24(%rsp)
	salq	$4, %rdi
	movq	%rdx, (%rsp)
	call	_Znwm@PLT
	movq	24(%rsp), %rsi
	movq	(%rsp), %rdx
	movq	%rax, %rbp
.L159:
	movups	(%rsi), %xmm0
	movq	16(%rsp), %rax
	movq	%rbp, %rsi
	movups	%xmm0, 0(%rbp,%rax)
	movq	%r13, %rax
	movaps	%xmm0, (%rsp)
.L160:
	addq	$16, %rsi
	cmpq	%r15, %rax
	je	.L173
	movups	(%rax), %xmm2
	addq	$16, %rax
	movups	%xmm2, -16(%rsi)
	jmp	.L160
.L173:
	movq	%rbp, %rax
	subq	%r13, %rax
	leaq	16(%rax,%r15), %rax
	movq	%rax, %rsi
.L162:
	cmpq	%rdx, %r14
	je	.L174
	movups	(%r14), %xmm3
	addq	$16, %rsi
	addq	$16, %r14
	movups	%xmm3, -16(%rsi)
	jmp	.L162
.L174:
	subq	%r15, %r14
	addq	%rax, %r14
	testq	%r13, %r13
	je	.L164
	movq	16(%r12), %rsi
	movq	%r13, %rdi
	subq	%r13, %rsi
	call	_ZdlPvm@PLT
.L164:
	salq	$4, %rbx
	movq	%rbp, (%r12)
	addq	%rbx, %rbp
	movq	%r14, 8(%r12)
	movq	%rbp, 16(%r12)
	addq	$40, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE6123:
	.size	_ZNSt6vectorISt4pairIddESaIS1_EE17_M_realloc_insertIJS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_, .-_ZNSt6vectorISt4pairIddESaIS1_EE17_M_realloc_insertIJS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"cannot create std::vector larger than max_size()"
.LC3:
	.string	"Computational Time : "
.LC5:
	.string	" ms"
	.section	.text.startup
	.globl	main
	.type	main, @function
main:
.LFB5203:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA5203
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xorl	%esi, %esi
	xorl	%edi, %edi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movl	$40, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movl	$10000000, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$184, %rsp
	.cfi_def_cfa_offset 240
	movq	%fs:40, %rax
	movq	%rax, 168(%rsp)
	xorl	%eax, %eax
	movq	%rsi, 24(%rsp)
	movq	%rsi, 32(%rsp)
	movq	%rsi, 40(%rsp)
	movq	%rsi, 48(%rsp)
	movq	%rsi, 56(%rsp)
	movq	%rsi, 64(%rsp)
	movq	%rsi, 72(%rsp)
	movq	%rsi, 80(%rsp)
	movq	%rsi, 88(%rsp)
	movq	%rsi, 96(%rsp)
	movq	%rsi, 104(%rsp)
	movq	%rsi, 112(%rsp)
	movq	%rsi, 120(%rsp)
	movq	%rsi, 128(%rsp)
	movq	%rsi, 136(%rsp)
	call	time@PLT
	movl	%eax, %edi
	call	srand@PLT
.L178:
	call	rand@PLT
	movl	%eax, %ebx
	call	rand@PLT
	movq	80(%rsp), %rsi
	movl	%eax, %ecx
	movl	%ebx, %eax
	cltd
	idivl	%ebp
	movl	%ecx, %eax
	incl	%edx
	cvtsi2sdl	%edx, %xmm0
	cltd
	idivl	%ebp
	movsd	%xmm0, 144(%rsp)
	incl	%edx
	cvtsi2sdl	%edx, %xmm0
	movsd	%xmm0, 152(%rsp)
	cmpq	88(%rsp), %rsi
	je	.L176
	movups	144(%rsp), %xmm1
	addq	$16, %rsi
	movups	%xmm1, -16(%rsi)
	movq	%rsi, 80(%rsp)
	jmp	.L177
.L176:
	leaq	144(%rsp), %rdx
	leaq	72(%rsp), %rdi
.LEHB2:
	call	_ZNSt6vectorISt4pairIddESaIS1_EE17_M_realloc_insertIJS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_
.L177:
	decq	%r12
	jne	.L178
	call	_ZNSt6chrono3_V212steady_clock3nowEv@PLT
	leaq	72(%rsp), %r15
	leaq	48(%rsp), %rbp
	leaq	24(%rsp), %r14
	movq	%r15, %rdx
	movq	%rbp, %rsi
	movq	%rax, %r13
	movq	%r14, %rdi
	call	_Z11merge_listsRSt6vectorI6tripleSaIS0_EES3_RS_ISt4pairIddESaIS5_EE
	movabsq	$-6148914691236517205, %rdx
	movq	56(%rsp), %rax
	subq	48(%rsp), %rax
	movq	%rax, %rbx
	sarq	$3, %rbx
	imulq	%rdx, %rbx
	testq	%rax, %rax
	jns	.L179
	movq	168(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L192
	leaq	.LC2(%rip), %rdi
	call	_ZSt20__throw_length_errorPKc@PLT
.L179:
	xorl	%ecx, %ecx
	movq	%rbx, %r12
	movq	%rcx, 144(%rsp)
	salq	$4, %r12
	movq	%rcx, 152(%rsp)
	movq	%rcx, 160(%rsp)
	testq	%rbx, %rbx
	je	.L188
	movq	%r12, %rdi
	call	_Znwm@PLT
.LEHE2:
	jmp	.L181
.L188:
	xorl	%eax, %eax
.L181:
	addq	%rax, %r12
	movq	%rax, 144(%rsp)
	movq	%r12, 160(%rsp)
.L182:
	testq	%rbx, %rbx
	je	.L195
	xorl	%edx, %edx
	movq	$0x000000000, (%rax)
	decq	%rbx
	addq	$16, %rax
	movq	%rdx, -8(%rax)
	jmp	.L182
.L195:
	leaq	144(%rsp), %rax
	movq	%rbp, %rdi
	movq	%r12, 152(%rsp)
	leaq	_ZSt4cout(%rip), %r12
	movq	%rax, %rsi
	movq	%rax, 8(%rsp)
	call	_Z7maxScanRSt6vectorI6tripleSaIS0_EERS_ISt4pairIdxESaIS5_EE
	call	_ZNSt6chrono3_V212steady_clock3nowEv@PLT
	leaq	.LC3(%rip), %rsi
	movq	%r12, %rdi
	movq	%rax, %rbx
.LEHB3:
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	subq	%r13, %rbx
	movq	%r12, %rdi
	cvtsi2sdq	%rbx, %xmm0
	divsd	.LC4(%rip), %xmm0
	call	_ZNSo9_M_insertIdEERSoT_@PLT
	leaq	.LC5(%rip), %rsi
	movq	%r12, %rdi
	call	_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc@PLT
	movq	%rax, %rdi
	call	_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_@PLT
	leaq	_ZSt3cin(%rip), %rdi
	call	_ZNSi3getEv@PLT
.LEHE3:
	movq	8(%rsp), %rdi
	call	_ZNSt6vectorISt4pairIdxESaIS1_EED1Ev
	leaq	120(%rsp), %rdi
	call	_ZNSt6vectorIdSaIdEED1Ev
	leaq	96(%rsp), %rdi
	call	_ZNSt6vectorIdSaIdEED1Ev
	movq	%r15, %rdi
	call	_ZNSt6vectorISt4pairIddESaIS1_EED1Ev
	movq	%rbp, %rdi
	call	_ZNSt6vectorI6tripleSaIS0_EED1Ev
	movq	%r14, %rdi
	call	_ZNSt6vectorI6tripleSaIS0_EED1Ev
	movq	168(%rsp), %rax
	subq	%fs:40, %rax
	je	.L187
	jmp	.L192
.L190:
	endbr64
	movq	%rax, %rbx
.L184:
	movq	8(%rsp), %rdi
	call	_ZNSt6vectorISt4pairIdxESaIS1_EED1Ev
	jmp	.L185
.L189:
	endbr64
	movq	%rax, %rbx
.L185:
	leaq	120(%rsp), %rdi
	call	_ZNSt6vectorIdSaIdEED1Ev
	leaq	96(%rsp), %rdi
	call	_ZNSt6vectorIdSaIdEED1Ev
	leaq	72(%rsp), %rdi
	call	_ZNSt6vectorISt4pairIddESaIS1_EED1Ev
	leaq	48(%rsp), %rdi
	call	_ZNSt6vectorI6tripleSaIS0_EED1Ev
	leaq	24(%rsp), %rdi
	call	_ZNSt6vectorI6tripleSaIS0_EED1Ev
	movq	168(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L192
	movq	%rbx, %rdi
.LEHB4:
	call	_Unwind_Resume@PLT
.LEHE4:
.L192:
	call	__stack_chk_fail@PLT
.L187:
	addq	$184, %rsp
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE5203:
	.section	.gcc_except_table
.LLSDA5203:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE5203-.LLSDACSB5203
.LLSDACSB5203:
	.uleb128 .LEHB2-.LFB5203
	.uleb128 .LEHE2-.LEHB2
	.uleb128 .L189-.LFB5203
	.uleb128 0
	.uleb128 .LEHB3-.LFB5203
	.uleb128 .LEHE3-.LEHB3
	.uleb128 .L190-.LFB5203
	.uleb128 0
	.uleb128 .LEHB4-.LFB5203
	.uleb128 .LEHE4-.LEHB4
	.uleb128 0
	.uleb128 0
.LLSDACSE5203:
	.section	.text.startup
	.size	main, .-main
	.section	.text._ZSt18__do_uninit_fill_nIPSt6vectorIdSaIdEEmS2_ET_S4_T0_RKT1_,"axG",@progbits,_ZSt18__do_uninit_fill_nIPSt6vectorIdSaIdEEmS2_ET_S4_T0_RKT1_,comdat
	.weak	_ZSt18__do_uninit_fill_nIPSt6vectorIdSaIdEEmS2_ET_S4_T0_RKT1_
	.type	_ZSt18__do_uninit_fill_nIPSt6vectorIdSaIdEEmS2_ET_S4_T0_RKT1_, @function
_ZSt18__do_uninit_fill_nIPSt6vectorIdSaIdEEmS2_ET_S4_T0_RKT1_:
.LFB6346:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA6346
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	movq	%rsi, %r13
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	movq	%rdx, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	movq	%rdi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	movq	%rdi, %rbx
.L197:
	testq	%r13, %r13
	je	.L209
	xorl	%eax, %eax
	movq	8(%r12), %rsi
	subq	(%r12), %rsi
	movq	%rbx, %rdi
	movq	%rax, (%rbx)
	sarq	$3, %rsi
	movq	%rax, 8(%rbx)
	movq	%rax, 16(%rbx)
.LEHB5:
	call	_ZNSt12_Vector_baseIdSaIdEE17_M_create_storageEm
.LEHE5:
	movq	(%r12), %rsi
	movq	8(%r12), %r14
	movq	(%rbx), %rcx
	subq	%rsi, %r14
	cmpq	$8, %r14
	jle	.L198
	movq	%rcx, %rdi
	movq	%r14, %rdx
	call	memmove@PLT
	movq	%rax, %rcx
	jmp	.L199
.L198:
	jne	.L199
	movsd	(%rsi), %xmm0
	movsd	%xmm0, (%rcx)
.L199:
	addq	%r14, %rcx
	decq	%r13
	addq	$24, %rbx
	movq	%rcx, -16(%rbx)
	jmp	.L197
.L205:
	endbr64
	movq	%rax, %rdi
.L201:
	call	__cxa_begin_catch@PLT
.L202:
	cmpq	%rbp, %rbx
	je	.L210
	movq	%rbp, %rdi
	addq	$24, %rbp
	call	_ZNSt6vectorIdSaIdEED1Ev
	jmp	.L202
.L210:
.LEHB6:
	call	__cxa_rethrow@PLT
.LEHE6:
.L206:
	endbr64
	movq	%rax, %rbx
.L204:
	call	__cxa_end_catch@PLT
	movq	%rbx, %rdi
.LEHB7:
	call	_Unwind_Resume@PLT
.LEHE7:
.L209:
	movq	%rbx, %rax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE6346:
	.section	.gcc_except_table
	.align 4
.LLSDA6346:
	.byte	0xff
	.byte	0x9b
	.uleb128 .LLSDATT6346-.LLSDATTD6346
.LLSDATTD6346:
	.byte	0x1
	.uleb128 .LLSDACSE6346-.LLSDACSB6346
.LLSDACSB6346:
	.uleb128 .LEHB5-.LFB6346
	.uleb128 .LEHE5-.LEHB5
	.uleb128 .L205-.LFB6346
	.uleb128 0x1
	.uleb128 .LEHB6-.LFB6346
	.uleb128 .LEHE6-.LEHB6
	.uleb128 .L206-.LFB6346
	.uleb128 0
	.uleb128 .LEHB7-.LFB6346
	.uleb128 .LEHE7-.LEHB7
	.uleb128 0
	.uleb128 0
.LLSDACSE6346:
	.byte	0x1
	.byte	0
	.align 4
	.long	0

.LLSDATT6346:
	.section	.text._ZSt18__do_uninit_fill_nIPSt6vectorIdSaIdEEmS2_ET_S4_T0_RKT1_,"axG",@progbits,_ZSt18__do_uninit_fill_nIPSt6vectorIdSaIdEEmS2_ET_S4_T0_RKT1_,comdat
	.size	_ZSt18__do_uninit_fill_nIPSt6vectorIdSaIdEEmS2_ET_S4_T0_RKT1_, .-_ZSt18__do_uninit_fill_nIPSt6vectorIdSaIdEEmS2_ET_S4_T0_RKT1_
	.text
	.globl	_Z11dp_knapSackxPdS_x
	.type	_Z11dp_knapSackxPdS_x, @function
_Z11dp_knapSackxPdS_x:
.LFB5202:
	.cfi_startproc
	.cfi_personality 0x9b,DW.ref.__gxx_personality_v0
	.cfi_lsda 0x1b,.LLSDA5202
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	1(%rdi), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$120, %rsp
	.cfi_def_cfa_offset 176
	movq	%rsi, 8(%rsp)
	movq	%rdx, 16(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	movabsq	$1152921504606846975, %rax
	cmpq	%r14, %rax
	jnb	.L212
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L247
	leaq	.LC2(%rip), %rdi
.LEHB8:
	call	_ZSt20__throw_length_errorPKc@PLT
.L212:
	leaq	80(%rsp), %r13
	xorl	%edx, %edx
	movq	%rdi, %r12
	movq	%r14, %rsi
	movq	%r13, %rdi
	movq	%rdx, 80(%rsp)
	movq	%rcx, %rbp
	movq	%rdx, 88(%rsp)
	movq	%rdx, 96(%rsp)
	call	_ZNSt12_Vector_baseIdSaIdEE17_M_create_storageEm
.LEHE8:
	movq	80(%rsp), %rax
	testq	%r14, %r14
	je	.L214
	movq	$0x000000000, (%rax)
	leaq	8(%rax), %rdx
	testq	%r12, %r12
	je	.L236
	leaq	(%rdx,%r12,8), %rcx
	movq	%rdx, %rsi
.L215:
	cmpq	%rsi, %rcx
	je	.L250
	movq	$0x000000000, (%rsi)
	addq	$8, %rsi
	jmp	.L215
.L250:
	subq	%rax, %rcx
	leaq	-8(%rdx,%rcx), %rax
	jmp	.L214
.L236:
	movq	%rdx, %rax
.L214:
	movq	%rax, 88(%rsp)
	incq	%rbp
	movabsq	$384307168202282325, %rax
	cmpq	%rbp, %rax
	jnb	.L217
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L247
	leaq	.LC2(%rip), %rdi
.LEHB9:
	call	_ZSt20__throw_length_errorPKc@PLT
.L217:
	xorl	%eax, %eax
	movq	%rax, 56(%rsp)
	movq	%rax, 64(%rsp)
	movq	%rax, 72(%rsp)
	testq	%rbp, %rbp
	je	.L237
	movq	%rbp, %rdi
	call	_ZNSt15__new_allocatorI6tripleE8allocateEmPKv.isra.0
.LEHE9:
	movq	%rax, %rbx
	jmp	.L219
.L237:
	xorl	%ebx, %ebx
.L219:
	imulq	$24, %rbp, %r15
	movq	%r13, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	movq	%rbx, 56(%rsp)
	movq	%rbx, 64(%rsp)
	leaq	(%rbx,%r15), %rax
	movq	%rax, 72(%rsp)
.LEHB10:
	call	_ZSt18__do_uninit_fill_nIPSt6vectorIdSaIdEEmS2_ET_S4_T0_RKT1_
.LEHE10:
	movq	%r13, %rdi
	movq	%rax, (%rsp)
	movq	%rax, 64(%rsp)
	call	_ZNSt6vectorIdSaIdEED1Ev
	movl	$1, %edi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	salq	$63, %rdi
	jmp	.L220
.L240:
	endbr64
	movq	%rax, %rbx
.L221:
	leaq	56(%rsp), %rdi
	call	_ZNSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EED2Ev
	jmp	.L222
.L230:
	movq	(%rdx), %rcx
	testq	%rax, %rax
	jne	.L251
.L241:
	movq	$0x000000000, (%rcx,%r13,8)
.L225:
	incq	%r13
.L231:
	cmpq	%r13, %r14
	jne	.L230
	incq	%rax
	addq	$24, %rdx
.L220:
	cmpq	%rax, %rbp
	je	.L252
	xorl	%r13d, %r13d
	jmp	.L231
.L251:
	testq	%r13, %r13
	je	.L241
	movq	8(%rsp), %rsi
	cvtsi2sdq	%r13, %xmm0
	leaq	(%rcx,%r13,8), %rcx
	movsd	-8(%rsi,%rax,8), %xmm2
	movq	-24(%rdx), %rsi
	comisd	%xmm2, %xmm0
	movsd	(%rsi,%r13,8), %xmm1
	jb	.L246
	subsd	%xmm2, %xmm0
	comisd	.LC6(%rip), %xmm0
	jnb	.L228
	cvttsd2siq	%xmm0, %r8
	jmp	.L229
.L228:
	subsd	.LC6(%rip), %xmm0
	cvttsd2siq	%xmm0, %r8
	xorq	%rdi, %r8
.L229:
	movsd	(%rsi,%r8,8), %xmm0
	movq	16(%rsp), %rsi
	movq	%rcx, 40(%rsp)
	movq	%rdx, 32(%rsp)
	addsd	-8(%rsi,%rax,8), %xmm0
	movq	%rax, 24(%rsp)
	call	fmax@PLT
	movq	40(%rsp), %rcx
	movl	$1, %edi
	movq	24(%rsp), %rax
	movq	32(%rsp), %rdx
	salq	$63, %rdi
	movsd	%xmm0, (%rcx)
	jmp	.L225
.L246:
	movsd	%xmm1, (%rcx)
	jmp	.L225
.L252:
	movq	-24(%rbx,%r15), %rax
	cvttsd2siq	(%rax,%r12,8), %rbp
.L232:
	cmpq	%rbx, (%rsp)
	je	.L253
	movq	%rbx, %rdi
	addq	$24, %rbx
	call	_ZNSt6vectorIdSaIdEED1Ev
	jmp	.L232
.L253:
	leaq	56(%rsp), %rdi
	call	_ZNSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EED2Ev
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	je	.L235
	jmp	.L247
.L239:
	endbr64
	movq	%rax, %rbx
.L222:
	movq	%r13, %rdi
	call	_ZNSt6vectorIdSaIdEED1Ev
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L247
	movq	%rbx, %rdi
.LEHB11:
	call	_Unwind_Resume@PLT
.LEHE11:
.L247:
	call	__stack_chk_fail@PLT
.L235:
	addq	$120, %rsp
	.cfi_def_cfa_offset 56
	movq	%rbp, %rax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE5202:
	.section	.gcc_except_table
.LLSDA5202:
	.byte	0xff
	.byte	0xff
	.byte	0x1
	.uleb128 .LLSDACSE5202-.LLSDACSB5202
.LLSDACSB5202:
	.uleb128 .LEHB8-.LFB5202
	.uleb128 .LEHE8-.LEHB8
	.uleb128 0
	.uleb128 0
	.uleb128 .LEHB9-.LFB5202
	.uleb128 .LEHE9-.LEHB9
	.uleb128 .L239-.LFB5202
	.uleb128 0
	.uleb128 .LEHB10-.LFB5202
	.uleb128 .LEHE10-.LEHB10
	.uleb128 .L240-.LFB5202
	.uleb128 0
	.uleb128 .LEHB11-.LFB5202
	.uleb128 .LEHE11-.LEHB11
	.uleb128 0
	.uleb128 0
.LLSDACSE5202:
	.text
	.size	_Z11dp_knapSackxPdS_x, .-_Z11dp_knapSackxPdS_x
	.section	.nvFatBinSegment,"aw"
	.align 8
	.type	_ZL15__fatDeviceText, @object
	.size	_ZL15__fatDeviceText, 24
_ZL15__fatDeviceText:
	.long	1180844977
	.long	1
	.quad	fatbinData
	.quad	0
	.local	_ZL20__cudaFatCubinHandle
	.comm	_ZL20__cudaFatCubinHandle,8,8
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC4:
	.long	0
	.long	1093567616
	.align 8
.LC6:
	.long	0
	.long	1138753536
	.hidden	DW.ref.__gxx_personality_v0
	.weak	DW.ref.__gxx_personality_v0
	.section	.data.rel.local.DW.ref.__gxx_personality_v0,"awG",@progbits,DW.ref.__gxx_personality_v0,comdat
	.align 8
	.type	DW.ref.__gxx_personality_v0, @object
	.size	DW.ref.__gxx_personality_v0, 8
DW.ref.__gxx_personality_v0:
	.quad	__gxx_personality_v0
	.ident	"GCC: (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.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:


#include <hip/hip_runtime.h>
#include <iostream>
#include <algorithm>
#include <list>
#include <vector>
#include <iterator>
#include <functional>
#include <time.h>
#include <chrono>
#include <cstdlib>
using namespace std;

struct triple
{
	long long int set;				//Set denotes which Elements are in the Subset
	double w;					//Weight of the Triple
	double p;					//Profit of the Triple

	//Struct Constructor
	triple() : set(0),
		w(0.0),
		p(0.0)
	{}

	//Comparison Operator Overloadings
	bool operator< (const triple &t) const
	{ return (w < t.w); }

	bool operator> (const triple &t) const
	{ return (w > t.w); }
};

void merge_lists(vector<triple> &A, vector<triple> &B,
					vector< pair<double, double> > &V)
{
	vector<triple> T_p, Tcopy;
	triple t;

	long long int v1s = V.size() >> 1, v2s = V.size() - v1s;

	//Initialisation for A
	t.set = 0, t.w = t.p = 0;
	A.push_back(t);

	//Sort A in Non-Increasing Order
	for (long long int i = 0; i < v1s; ++i)
	{
		T_p.clear();
		Tcopy.clear();

		//Add Elements to Subset (Triple) ti
		//Add ti to T_p
		for (long long int j = 0; j < (long long int)A.size(); ++j)
		{
			t.set = A[j].set + (1 << i);
			t.w = A[j].w + V[i].first;
			t.p = A[j].p + V[i].second;

			T_p.push_back(t);
		}

		//Merge A, T_p
		merge(A.begin(), A.end(), T_p.begin(), T_p.end(), back_inserter(Tcopy));
		A = Tcopy;
	}

	//Initialisation for B
	t.set = 0, t.w = t.p = 0;
	B.push_back(t);

	//Sort B in Non-Increasing Order
	for (long long int i = 0; i < v2s; ++i)
	{
		T_p.clear();
		Tcopy.clear();

		//Add Elements to Subset (Triple) ti
		//Add ti to T_p
		for (long long int j = 0; j < (long long int)B.size(); ++j)
		{
			t.set = B[j].set + (1 << i);
			t.w = B[j].w + V[i + v1s].first;
			t.p = B[j].p + V[i + v1s].second;

			T_p.push_back(t);
		}

		//Merge B, T_p
		merge(B.begin(), B.end(), T_p.begin(), T_p.end(), back_inserter(Tcopy), greater<>());
		B = Tcopy;
	}
}

void maxScan(vector<triple> &B, vector< pair<double, long long int> > &maxB)
{
	long long int Bsize = B.size();
	maxB[Bsize - 1].first = B[Bsize - 1].p;
	maxB[Bsize - 1].second = Bsize - 1;
	for (long long int i = Bsize - 2; i >= 0; i--)
	{
		if (B[i].p>maxB[i + 1].first)
		{
			maxB[i].first = B[i].p;
			maxB[i].second = i;
		}
		else
		{
			maxB[i].first = maxB[i + 1].first;
			maxB[i].second = maxB[i + 1].second;
		}
	}
}

long long int generate_sets(vector<triple> &A, vector<triple> &B, const double &c,
						vector< pair<double, long long int> > &maxB, long long int N)
{
	double bestValue = 0;
	pair<long long int, long long int> bestSet;

	long long int i = 0, j = 0;
	while(i < N && j < N)
	{
		if (A[i].w + B[j].w > c)
		{
			++j;

			if (j == N) break;
			else continue;
		}

		if (A[i].p + maxB[j].first > bestValue)
		{
			bestValue = A[i].p + maxB[j].first;
			bestSet = make_pair(A[i].set, maxB[j].second);
		}
		++i;
	}

	return bestValue;
}

long long int dp_knapSack(long long int W, double wt[], double val[], long long int n)
{
	long long int i, w;
	vector< vector<double> > K(n + 1, vector<double>(W + 1));

	// Build table K[][] in bottom up manner 
	for (i = 0; i <= n; i++)
	{
		for (w = 0; w <= W; w++)
		{
			if (i == 0 || w == 0)
				K[i][w] = 0;
			else if (wt[i - 1] <= w)
				K[i][w] = max(val[i - 1] + K[i - 1][w - wt[i - 1]], K[i - 1][w]);
			else
				K[i][w] = K[i - 1][w];
		}
	}
	return K[n][W];
}

int main()
{
	vector<triple> A, B;

	//Input Data
	double c = 0;
	vector< pair<double, double> > V;
	vector<double> wt_arr, p_arr;
	srand(time(0));

	//Input Data
	for (long long int i = 0; i < 40; ++i)
	{
		long long int wt = (rand() % (int)1e7) + 1;
		long long int p = (rand() % (int)1e7) + 1;
		
		c += wt;

		V.push_back(make_pair((double)wt, (double)p));
		//wt_arr.push_back(wt);
		//p_arr.push_back(p);
	}

	c /= 2;
	
	//long long int dpSoln = dp_knapSack(c, &wt_arr[0], &p_arr[0], V.size());
	
	//Computation & Timing
	auto start = chrono::steady_clock::now();

	merge_lists(A, B, V);
	vector< pair<double, long long int> > maxB((long long int)B.size());

	maxScan(B, maxB);
	generate_sets(A, B, c, maxB, (1 << (long long int)(V.size() >> 1)));
	
	auto stop = chrono::steady_clock::now();

	cout << "Computational Time : ";
	cout << (double)(chrono::duration_cast<chrono::nanoseconds>(stop - start).count()) / 1000000.0;
	cout << " ms" << endl;
	cin.get();
	return 0;
}
	.text
	.file	"kernel.hip"
                                        # Start of file scope inline assembly
	.globl	_ZSt21ios_base_library_initv

                                        # End of file scope inline assembly
	.globl	_Z11merge_listsRSt6vectorI6tripleSaIS0_EES3_RS_ISt4pairIddESaIS5_EE # -- Begin function _Z11merge_listsRSt6vectorI6tripleSaIS0_EES3_RS_ISt4pairIddESaIS5_EE
	.type	_Z11merge_listsRSt6vectorI6tripleSaIS0_EES3_RS_ISt4pairIddESaIS5_EE,@function
_Z11merge_listsRSt6vectorI6tripleSaIS0_EES3_RS_ISt4pairIddESaIS5_EE: # @_Z11merge_listsRSt6vectorI6tripleSaIS0_EES3_RS_ISt4pairIddESaIS5_EE
.Lfunc_begin0:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception0
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$120, %rsp
	.cfi_def_cfa_offset 176
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rdx, %r14
	movq	%rsi, %rbp
	movq	%rdi, %r15
	xorpd	%xmm0, %xmm0
	movapd	%xmm0, (%rsp)
	xorl	%eax, %eax
	movq	%rax, 16(%rsp)
	movq	%rax, 80(%rsp)
	movapd	%xmm0, 64(%rsp)
	movq	8(%rdx), %rbx
	subq	(%rdx), %rbx
	movq	%rax, 48(%rsp)
	movapd	%xmm0, 32(%rsp)
	movq	8(%rdi), %rsi
	cmpq	16(%rdi), %rsi
	je	.LBB0_2
# %bb.1:
	movupd	%xmm0, (%rsi)
	movq	$0, 16(%rsi)
	addq	$24, 8(%r15)
	jmp	.LBB0_3
.LBB0_2:
.Ltmp0:
	leaq	32(%rsp), %rdx
	movq	%r15, %rdi
	callq	_ZNSt6vectorI6tripleSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_
.Ltmp1:
.LBB0_3:                                # %_ZNSt6vectorI6tripleSaIS0_EE9push_backERKS0_.exit
	sarq	$4, %rbx
	movq	%rbx, %rax
	shrq	%rax
	movq	%rax, 56(%rsp)                  # 8-byte Spill
	movq	%rbx, 96(%rsp)                  # 8-byte Spill
	cmpq	$2, %rbx
	jb	.LBB0_11
# %bb.4:                                # %.lr.ph104
	xorl	%ebx, %ebx
	leaq	64(%rsp), %r12
	movq	%rbp, 112(%rsp)                 # 8-byte Spill
.LBB0_5:                                # =>This Loop Header: Depth=1
                                        #     Child Loop BB0_24 Depth 2
	movq	(%rsp), %rcx
	cmpq	%rcx, 8(%rsp)
	je	.LBB0_7
# %bb.6:                                #   in Loop: Header=BB0_5 Depth=1
	movq	%rcx, 8(%rsp)
.LBB0_7:                                # %_ZNSt6vectorI6tripleSaIS0_EE5clearEv.exit
                                        #   in Loop: Header=BB0_5 Depth=1
	movq	64(%rsp), %rax
	cmpq	%rax, 72(%rsp)
	je	.LBB0_9
# %bb.8:                                #   in Loop: Header=BB0_5 Depth=1
	movq	%rax, 72(%rsp)
.LBB0_9:                                # %_ZNSt6vectorI6tripleSaIS0_EE5clearEv.exit75
                                        #   in Loop: Header=BB0_5 Depth=1
	movq	(%r15), %rdi
	movq	8(%r15), %rsi
	movq	%rsi, %rax
	subq	%rdi, %rax
	testq	%rax, %rax
	jle	.LBB0_10
# %bb.23:                               # %.lr.ph
                                        #   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rbp
	movl	$1, %eax
	movl	%ebx, %ecx
	shll	%cl, %eax
	movslq	%eax, %r12
	movl	$16, %r13d
	movq	%rbx, 104(%rsp)                 # 8-byte Spill
	shlq	$4, %rbx
	xorl	%r14d, %r14d
.LBB0_24:                               #   Parent Loop BB0_5 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movq	-16(%rdi,%r13), %rax
	addq	%r12, %rax
	movq	%rax, 32(%rsp)
	movsd	-8(%rdi,%r13), %xmm0            # xmm0 = mem[0],zero
	movq	(%rbp), %rax
	addsd	(%rax,%rbx), %xmm0
	movsd	%xmm0, 40(%rsp)
	movsd	(%rdi,%r13), %xmm0              # xmm0 = mem[0],zero
	addsd	8(%rax,%rbx), %xmm0
	movsd	%xmm0, 48(%rsp)
	movq	8(%rsp), %rsi
	cmpq	16(%rsp), %rsi
	je	.LBB0_26
# %bb.25:                               #   in Loop: Header=BB0_24 Depth=2
	movq	48(%rsp), %rax
	movq	%rax, 16(%rsi)
	movapd	32(%rsp), %xmm0
	movupd	%xmm0, (%rsi)
	addq	$24, 8(%rsp)
	jmp	.LBB0_27
.LBB0_26:                               #   in Loop: Header=BB0_24 Depth=2
.Ltmp2:
	movq	%rsp, %rdi
	leaq	32(%rsp), %rdx
	callq	_ZNSt6vectorI6tripleSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_
.Ltmp3:
.LBB0_27:                               # %_ZNSt6vectorI6tripleSaIS0_EE9push_backERKS0_.exit78
                                        #   in Loop: Header=BB0_24 Depth=2
	incq	%r14
	movq	(%r15), %rdi
	movq	8(%r15), %rsi
	movq	%rsi, %rax
	subq	%rdi, %rax
	sarq	$3, %rax
	movabsq	$-6148914691236517205, %rcx     # imm = 0xAAAAAAAAAAAAAAAB
	imulq	%rcx, %rax
	addq	$24, %r13
	cmpq	%rax, %r14
	jl	.LBB0_24
# %bb.28:                               # %._crit_edge.loopexit
                                        #   in Loop: Header=BB0_5 Depth=1
	movq	(%rsp), %rdx
	movq	8(%rsp), %rcx
	movq	%rbp, %r14
	movq	112(%rsp), %rbp                 # 8-byte Reload
	movq	104(%rsp), %rbx                 # 8-byte Reload
	leaq	64(%rsp), %r12
	jmp	.LBB0_29
.LBB0_10:                               #   in Loop: Header=BB0_5 Depth=1
	movq	%rcx, %rdx
.LBB0_29:                               # %._crit_edge
                                        #   in Loop: Header=BB0_5 Depth=1
.Ltmp5:
	movq	%r12, %r8
	callq	_ZSt7__mergeIN9__gnu_cxx17__normal_iteratorIP6tripleSt6vectorIS2_SaIS2_EEEES7_St20back_insert_iteratorIS6_ENS0_5__ops15_Iter_less_iterEET1_T_SD_T0_SE_SC_T2_
.Ltmp6:
# %bb.30:                               # %_ZSt5mergeIN9__gnu_cxx17__normal_iteratorIP6tripleSt6vectorIS2_SaIS2_EEEES7_St20back_insert_iteratorIS6_EET1_T_SB_T0_SC_SA_.exit
                                        #   in Loop: Header=BB0_5 Depth=1
.Ltmp7:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_ZNSt6vectorI6tripleSaIS0_EEaSERKS2_
.Ltmp8:
# %bb.31:                               #   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	cmpq	56(%rsp), %rbx                  # 8-byte Folded Reload
	jne	.LBB0_5
.LBB0_11:                               # %._crit_edge105
	xorpd	%xmm0, %xmm0
	movapd	%xmm0, 32(%rsp)
	movq	$0, 48(%rsp)
	movq	8(%rbp), %rsi
	cmpq	16(%rbp), %rsi
	je	.LBB0_13
# %bb.12:
	movupd	%xmm0, (%rsi)
	movq	$0, 16(%rsi)
	addq	$24, 8(%rbp)
	jmp	.LBB0_14
.LBB0_13:
.Ltmp10:
	leaq	32(%rsp), %rdx
	movq	%rbp, %rdi
	callq	_ZNSt6vectorI6tripleSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_
.Ltmp11:
.LBB0_14:                               # %_ZNSt6vectorI6tripleSaIS0_EE9push_backERKS0_.exit73
	movq	96(%rsp), %rax                  # 8-byte Reload
	subq	56(%rsp), %rax                  # 8-byte Folded Reload
	movq	%rax, 96(%rsp)                  # 8-byte Spill
	testq	%rax, %rax
	jle	.LBB0_33
# %bb.15:                               # %.lr.ph112
	xorl	%r13d, %r13d
	shlq	$4, 56(%rsp)                    # 8-byte Folded Spill
	leaq	64(%rsp), %r15
.LBB0_16:                               # =>This Loop Header: Depth=1
                                        #     Child Loop BB0_39 Depth 2
	movq	(%rsp), %rcx
	cmpq	%rcx, 8(%rsp)
	je	.LBB0_18
# %bb.17:                               #   in Loop: Header=BB0_16 Depth=1
	movq	%rcx, 8(%rsp)
.LBB0_18:                               # %_ZNSt6vectorI6tripleSaIS0_EE5clearEv.exit83
                                        #   in Loop: Header=BB0_16 Depth=1
	movq	64(%rsp), %rax
	cmpq	%rax, 72(%rsp)
	je	.LBB0_20
# %bb.19:                               #   in Loop: Header=BB0_16 Depth=1
	movq	%rax, 72(%rsp)
.LBB0_20:                               # %_ZNSt6vectorI6tripleSaIS0_EE5clearEv.exit85
                                        #   in Loop: Header=BB0_16 Depth=1
	movq	(%rbp), %rdi
	movq	8(%rbp), %rsi
	movq	%rsi, %rax
	subq	%rdi, %rax
	testq	%rax, %rax
	jle	.LBB0_21
# %bb.38:                               # %.lr.ph107
                                        #   in Loop: Header=BB0_16 Depth=1
	movl	$1, %eax
	movl	%r13d, %ecx
	shll	%cl, %eax
	movslq	%eax, %r12
	movl	$16, %r15d
	movq	%r13, 104(%rsp)                 # 8-byte Spill
	shlq	$4, %r13
	xorl	%ebx, %ebx
.LBB0_39:                               #   Parent Loop BB0_16 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movq	-16(%rdi,%r15), %rax
	addq	%r12, %rax
	movq	%rax, 32(%rsp)
	movsd	-8(%rdi,%r15), %xmm0            # xmm0 = mem[0],zero
	movq	(%r14), %rax
	addq	%r13, %rax
	movq	56(%rsp), %rcx                  # 8-byte Reload
	addsd	(%rcx,%rax), %xmm0
	movsd	%xmm0, 40(%rsp)
	movsd	(%rdi,%r15), %xmm0              # xmm0 = mem[0],zero
	addsd	8(%rcx,%rax), %xmm0
	movsd	%xmm0, 48(%rsp)
	movq	8(%rsp), %rsi
	cmpq	16(%rsp), %rsi
	je	.LBB0_41
# %bb.40:                               #   in Loop: Header=BB0_39 Depth=2
	movq	48(%rsp), %rax
	movq	%rax, 16(%rsi)
	movapd	32(%rsp), %xmm0
	movupd	%xmm0, (%rsi)
	addq	$24, 8(%rsp)
	jmp	.LBB0_42
.LBB0_41:                               #   in Loop: Header=BB0_39 Depth=2
.Ltmp13:
	movq	%rsp, %rdi
	leaq	32(%rsp), %rdx
	callq	_ZNSt6vectorI6tripleSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_
.Ltmp14:
.LBB0_42:                               # %_ZNSt6vectorI6tripleSaIS0_EE9push_backERKS0_.exit88
                                        #   in Loop: Header=BB0_39 Depth=2
	incq	%rbx
	movq	(%rbp), %rdi
	movq	8(%rbp), %rsi
	movq	%rsi, %rax
	subq	%rdi, %rax
	sarq	$3, %rax
	movabsq	$-6148914691236517205, %rcx     # imm = 0xAAAAAAAAAAAAAAAB
	imulq	%rcx, %rax
	addq	$24, %r15
	cmpq	%rax, %rbx
	jl	.LBB0_39
# %bb.43:                               # %._crit_edge108.loopexit
                                        #   in Loop: Header=BB0_16 Depth=1
	movq	(%rsp), %rdx
	movq	8(%rsp), %rcx
	movq	104(%rsp), %r13                 # 8-byte Reload
	leaq	64(%rsp), %r15
	jmp	.LBB0_44
.LBB0_21:                               #   in Loop: Header=BB0_16 Depth=1
	movq	%rcx, %rdx
.LBB0_44:                               # %._crit_edge108
                                        #   in Loop: Header=BB0_16 Depth=1
.Ltmp16:
	movq	%r15, %r8
	callq	_ZSt7__mergeIN9__gnu_cxx17__normal_iteratorIP6tripleSt6vectorIS2_SaIS2_EEEES7_St20back_insert_iteratorIS6_ENS0_5__ops15_Iter_comp_iterISt7greaterIvEEEET1_T_SG_T0_SH_SF_T2_
.Ltmp17:
# %bb.45:                               # %_ZSt5mergeIN9__gnu_cxx17__normal_iteratorIP6tripleSt6vectorIS2_SaIS2_EEEES7_St20back_insert_iteratorIS6_ESt7greaterIvEET1_T_SD_T0_SE_SC_T2_.exit
                                        #   in Loop: Header=BB0_16 Depth=1
.Ltmp18:
	movq	%rbp, %rdi
	movq	%r15, %rsi
	callq	_ZNSt6vectorI6tripleSaIS0_EEaSERKS2_
.Ltmp19:
# %bb.46:                               #   in Loop: Header=BB0_16 Depth=1
	incq	%r13
	cmpq	96(%rsp), %r13                  # 8-byte Folded Reload
	jne	.LBB0_16
.LBB0_33:                               # %._crit_edge113
	movq	64(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB0_35
# %bb.34:
	callq	_ZdlPv
.LBB0_35:                               # %_ZNSt6vectorI6tripleSaIS0_EED2Ev.exit
	movq	(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB0_37
# %bb.36:
	callq	_ZdlPv
.LBB0_37:                               # %_ZNSt6vectorI6tripleSaIS0_EED2Ev.exit81
	addq	$120, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.LBB0_22:
	.cfi_def_cfa_offset 176
.Ltmp12:
	jmp	.LBB0_48
.LBB0_32:
.Ltmp9:
	jmp	.LBB0_48
.LBB0_47:
.Ltmp20:
	jmp	.LBB0_48
.LBB0_53:
.Ltmp4:
	jmp	.LBB0_48
.LBB0_54:
.Ltmp15:
.LBB0_48:
	movq	%rax, %rbx
	movq	64(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB0_50
# %bb.49:
	callq	_ZdlPv
.LBB0_50:                               # %_ZNSt6vectorI6tripleSaIS0_EED2Ev.exit91
	movq	(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB0_52
# %bb.51:
	callq	_ZdlPv
.LBB0_52:                               # %_ZNSt6vectorI6tripleSaIS0_EED2Ev.exit93
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end0:
	.size	_Z11merge_listsRSt6vectorI6tripleSaIS0_EES3_RS_ISt4pairIddESaIS5_EE, .Lfunc_end0-_Z11merge_listsRSt6vectorI6tripleSaIS0_EES3_RS_ISt4pairIddESaIS5_EE
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table0:
.Lexception0:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end0-.Lcst_begin0
.Lcst_begin0:
	.uleb128 .Ltmp0-.Lfunc_begin0           # >> Call Site 1 <<
	.uleb128 .Ltmp1-.Ltmp0                  #   Call between .Ltmp0 and .Ltmp1
	.uleb128 .Ltmp12-.Lfunc_begin0          #     jumps to .Ltmp12
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp2-.Lfunc_begin0           # >> Call Site 2 <<
	.uleb128 .Ltmp3-.Ltmp2                  #   Call between .Ltmp2 and .Ltmp3
	.uleb128 .Ltmp4-.Lfunc_begin0           #     jumps to .Ltmp4
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp5-.Lfunc_begin0           # >> Call Site 3 <<
	.uleb128 .Ltmp8-.Ltmp5                  #   Call between .Ltmp5 and .Ltmp8
	.uleb128 .Ltmp9-.Lfunc_begin0           #     jumps to .Ltmp9
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp10-.Lfunc_begin0          # >> Call Site 4 <<
	.uleb128 .Ltmp11-.Ltmp10                #   Call between .Ltmp10 and .Ltmp11
	.uleb128 .Ltmp12-.Lfunc_begin0          #     jumps to .Ltmp12
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp13-.Lfunc_begin0          # >> Call Site 5 <<
	.uleb128 .Ltmp14-.Ltmp13                #   Call between .Ltmp13 and .Ltmp14
	.uleb128 .Ltmp15-.Lfunc_begin0          #     jumps to .Ltmp15
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp16-.Lfunc_begin0          # >> Call Site 6 <<
	.uleb128 .Ltmp19-.Ltmp16                #   Call between .Ltmp16 and .Ltmp19
	.uleb128 .Ltmp20-.Lfunc_begin0          #     jumps to .Ltmp20
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp19-.Lfunc_begin0          # >> Call Site 7 <<
	.uleb128 .Lfunc_end0-.Ltmp19            #   Call between .Ltmp19 and .Lfunc_end0
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end0:
	.p2align	2, 0x0
                                        # -- End function
	.section	.text._ZNSt6vectorI6tripleSaIS0_EEaSERKS2_,"axG",@progbits,_ZNSt6vectorI6tripleSaIS0_EEaSERKS2_,comdat
	.weak	_ZNSt6vectorI6tripleSaIS0_EEaSERKS2_ # -- Begin function _ZNSt6vectorI6tripleSaIS0_EEaSERKS2_
	.p2align	1, 0x90
	.type	_ZNSt6vectorI6tripleSaIS0_EEaSERKS2_,@function
_ZNSt6vectorI6tripleSaIS0_EEaSERKS2_:   # @_ZNSt6vectorI6tripleSaIS0_EEaSERKS2_
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rdi, %rbx
	cmpq	%rdi, %rsi
	je	.LBB1_21
# %bb.1:
	movq	%rsi, %r12
	movq	(%rsi), %r15
	movq	8(%rsi), %r13
	movq	%r13, %r14
	subq	%r15, %r14
	movq	(%rbx), %rdi
	movq	16(%rbx), %rax
	subq	%rdi, %rax
	cmpq	%rax, %r14
	jbe	.LBB1_8
# %bb.2:                                # %_ZNSt12_Vector_baseI6tripleSaIS0_EE11_M_allocateEm.exit.i
	movq	%r14, %rax
	sarq	$3, %rax
	movabsq	$-6148914691236517205, %rsi     # imm = 0xAAAAAAAAAAAAAAAB
	imulq	%rax, %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorI6tripleE8allocateEmPKv
	movq	%rax, %r12
	cmpq	%r13, %r15
	je	.LBB1_5
# %bb.3:                                # %.lr.ph.i.i.i.i.i.preheader
	movq	%r12, %rax
.LBB1_4:                                # %.lr.ph.i.i.i.i.i
                                        # =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rcx
	movq	%rcx, 16(%rax)
	movups	(%r15), %xmm0
	movups	%xmm0, (%rax)
	addq	$24, %r15
	addq	$24, %rax
	cmpq	%r13, %r15
	jne	.LBB1_4
.LBB1_5:                                # %_ZNSt6vectorI6tripleSaIS0_EE20_M_allocate_and_copyIN9__gnu_cxx17__normal_iteratorIPKS0_S2_EEEEPS0_mT_SA_.exit
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	.LBB1_7
# %bb.6:
	callq	_ZdlPv
.LBB1_7:                                # %_ZNSt12_Vector_baseI6tripleSaIS0_EE13_M_deallocateEPS0_m.exit
	movq	%r12, (%rbx)
	addq	%r14, %r12
	movq	%r12, 16(%rbx)
	jmp	.LBB1_20
.LBB1_8:
	movq	8(%rbx), %rdx
	subq	%rdi, %rdx
	cmpq	%r14, %rdx
	jae	.LBB1_9
# %bb.13:
	cmpq	$25, %rdx
	jl	.LBB1_15
# %bb.14:
	movq	%r15, %rsi
	callq	memmove@PLT
.LBB1_17:                               # %_ZSt4copyIP6tripleS1_ET0_T_S3_S2_.exit
	movq	8(%rbx), %rax
	movq	%rax, %rcx
	subq	(%rbx), %rcx
	addq	(%r12), %rcx
	movq	8(%r12), %rdx
.LBB1_19:                               # %.lr.ph.i.i.i.i
                                        # =>This Inner Loop Header: Depth=1
	cmpq	%rdx, %rcx
	je	.LBB1_20
# %bb.18:                               # %.lr.ph.i.i.i.i
                                        #   in Loop: Header=BB1_19 Depth=1
	movq	16(%rcx), %rsi
	movq	%rsi, 16(%rax)
	movups	(%rcx), %xmm0
	movups	%xmm0, (%rax)
	addq	$24, %rcx
	addq	$24, %rax
	jmp	.LBB1_19
.LBB1_9:
	cmpq	$25, %r14
	jl	.LBB1_11
# %bb.10:
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	memmove@PLT
.LBB1_20:                               # %_ZSt4copyIN9__gnu_cxx17__normal_iteratorIPK6tripleSt6vectorIS2_SaIS2_EEEENS1_IPS2_S7_EEET0_T_SC_SB_.exit
	addq	(%rbx), %r14
	movq	%r14, 8(%rbx)
.LBB1_21:
	movq	%rbx, %rax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.LBB1_15:
	.cfi_def_cfa_offset 48
	cmpq	$24, %rdx
	jne	.LBB1_17
# %bb.16:
	movq	16(%r15), %rax
	movq	%rax, 16(%rdi)
	movups	(%r15), %xmm0
	movups	%xmm0, (%rdi)
	jmp	.LBB1_17
.LBB1_11:
	cmpq	$24, %r14
	jne	.LBB1_20
# %bb.12:
	movq	16(%r15), %rax
	movq	%rax, 16(%rdi)
	movups	(%r15), %xmm0
	movups	%xmm0, (%rdi)
	jmp	.LBB1_20
.Lfunc_end1:
	.size	_ZNSt6vectorI6tripleSaIS0_EEaSERKS2_, .Lfunc_end1-_ZNSt6vectorI6tripleSaIS0_EEaSERKS2_
	.cfi_endproc
                                        # -- End function
	.text
	.globl	_Z7maxScanRSt6vectorI6tripleSaIS0_EERS_ISt4pairIdxESaIS5_EE # -- Begin function _Z7maxScanRSt6vectorI6tripleSaIS0_EERS_ISt4pairIdxESaIS5_EE
	.type	_Z7maxScanRSt6vectorI6tripleSaIS0_EERS_ISt4pairIdxESaIS5_EE,@function
_Z7maxScanRSt6vectorI6tripleSaIS0_EERS_ISt4pairIdxESaIS5_EE: # @_Z7maxScanRSt6vectorI6tripleSaIS0_EERS_ISt4pairIdxESaIS5_EE
	.cfi_startproc
# %bb.0:
	movq	(%rdi), %rdx
	movq	8(%rdi), %rax
	subq	%rdx, %rax
	movq	%rax, %rdi
	sarq	$3, %rdi
	movabsq	$-6148914691236517205, %rcx     # imm = 0xAAAAAAAAAAAAAAAB
	imulq	%rdi, %rcx
	leaq	-1(%rcx), %rdi
	leaq	(%rdi,%rdi,2), %r8
	movsd	16(%rdx,%r8,8), %xmm0           # xmm0 = mem[0],zero
	movq	(%rsi), %rsi
	movq	%rdi, %r8
	shlq	$4, %r8
	movsd	%xmm0, (%rsi,%r8)
	movq	%rdi, 8(%rsi,%r8)
	cmpq	$25, %rax
	jl	.LBB2_5
# %bb.1:                                # %.lr.ph.preheader
	leaq	-2(%rcx), %rax
	leaq	(%rcx,%rcx,2), %rdi
	shlq	$4, %rcx
	addq	%rsi, %rcx
	addq	$-8, %rcx
	leaq	(%rdx,%rdi,8), %rdx
	addq	$-32, %rdx
.LBB2_2:                                # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	movsd	(%rdx), %xmm0                   # xmm0 = mem[0],zero
	movsd	-8(%rcx), %xmm1                 # xmm1 = mem[0],zero
	ucomisd	%xmm1, %xmm0
	movq	%rax, %rsi
	ja	.LBB2_4
# %bb.3:                                #   in Loop: Header=BB2_2 Depth=1
	movq	(%rcx), %rsi
	movapd	%xmm1, %xmm0
.LBB2_4:                                #   in Loop: Header=BB2_2 Depth=1
	movsd	%xmm0, -24(%rcx)
	movq	%rsi, -16(%rcx)
	addq	$-16, %rcx
	leaq	-1(%rax), %rsi
	addq	$-24, %rdx
	testq	%rax, %rax
	movq	%rsi, %rax
	jg	.LBB2_2
.LBB2_5:                                # %._crit_edge
	retq
.Lfunc_end2:
	.size	_Z7maxScanRSt6vectorI6tripleSaIS0_EERS_ISt4pairIdxESaIS5_EE, .Lfunc_end2-_Z7maxScanRSt6vectorI6tripleSaIS0_EERS_ISt4pairIdxESaIS5_EE
	.cfi_endproc
                                        # -- End function
	.globl	_Z13generate_setsRSt6vectorI6tripleSaIS0_EES3_RKdRS_ISt4pairIdxESaIS7_EEx # -- Begin function _Z13generate_setsRSt6vectorI6tripleSaIS0_EES3_RKdRS_ISt4pairIdxESaIS7_EEx
	.type	_Z13generate_setsRSt6vectorI6tripleSaIS0_EES3_RKdRS_ISt4pairIdxESaIS7_EEx,@function
_Z13generate_setsRSt6vectorI6tripleSaIS0_EES3_RKdRS_ISt4pairIdxESaIS7_EEx: # @_Z13generate_setsRSt6vectorI6tripleSaIS0_EES3_RKdRS_ISt4pairIdxESaIS7_EEx
	.cfi_startproc
# %bb.0:
	xorl	%eax, %eax
	testq	%r8, %r8
	cmovgq	%r8, %rax
	jle	.LBB3_1
# %bb.3:                                # %.outer.split.preheader.lr.ph
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset %rbx, -16
	movq	(%rdi), %rdi
	movq	(%rsi), %rsi
	movsd	(%rdx), %xmm0                   # xmm0 = mem[0],zero
	movq	(%rcx), %rcx
	leaq	8(%rdi), %rdx
	addq	$8, %rsi
	xorpd	%xmm1, %xmm1
	xorl	%r9d, %r9d
	xorl	%r10d, %r10d
.LBB3_4:                                # %.outer.split.preheader
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB3_5 Depth 2
	movq	%r9, %r11
	shlq	$4, %r11
	addq	%rcx, %r11
	leaq	(%r9,%r9,2), %rbx
	leaq	(%rsi,%rbx,8), %rbx
.LBB3_5:                                # %.outer.split
                                        #   Parent Loop BB3_4 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	cmpq	%r8, %r9
	jge	.LBB3_6
# %bb.7:                                #   in Loop: Header=BB3_5 Depth=2
	movsd	(%rdx), %xmm2                   # xmm2 = mem[0],zero
	addsd	(%rbx), %xmm2
	ucomisd	%xmm0, %xmm2
	jbe	.LBB3_9
# %bb.8:                                #   in Loop: Header=BB3_5 Depth=2
	incq	%r9
	addq	$16, %r11
	addq	$24, %rbx
	cmpq	%r9, %r8
	jne	.LBB3_5
	jmp	.LBB3_6
.LBB3_9:                                # %.outer
                                        #   in Loop: Header=BB3_4 Depth=1
	leaq	(%r10,%r10,2), %rdx
	leaq	(%rdi,%rdx,8), %rdx
	addq	$32, %rdx
	movsd	-16(%rdx), %xmm2                # xmm2 = mem[0],zero
	addsd	(%r11), %xmm2
	maxsd	%xmm1, %xmm2
	incq	%r10
	movapd	%xmm2, %xmm1
	cmpq	%rax, %r10
	jne	.LBB3_4
	jmp	.LBB3_10
.LBB3_6:
	movapd	%xmm1, %xmm2
.LBB3_10:
	popq	%rbx
	.cfi_def_cfa_offset 8
	.cfi_restore %rbx
	jmp	.LBB3_2
.LBB3_1:
	xorpd	%xmm2, %xmm2
.LBB3_2:                                # %.split
	cvttsd2si	%xmm2, %rax
	retq
.Lfunc_end3:
	.size	_Z13generate_setsRSt6vectorI6tripleSaIS0_EES3_RKdRS_ISt4pairIdxESaIS7_EEx, .Lfunc_end3-_Z13generate_setsRSt6vectorI6tripleSaIS0_EES3_RKdRS_ISt4pairIdxESaIS7_EEx
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst8,"aM",@progbits,8
	.p2align	3, 0x0                          # -- Begin function _Z11dp_knapSackxPdS_x
.LCPI4_0:
	.quad	0x43e0000000000000              # double 9.2233720368547758E+18
	.text
	.globl	_Z11dp_knapSackxPdS_x
	.type	_Z11dp_knapSackxPdS_x,@function
_Z11dp_knapSackxPdS_x:                  # @_Z11dp_knapSackxPdS_x
.Lfunc_begin1:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception1
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rcx, %rbx
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r14
	leaq	1(%rdi), %r13
	leaq	8(%rsp), %rbp
	leaq	7(%rsp), %rdx
	movq	%rbp, %rdi
	movq	%r13, %rsi
	callq	_ZNSt6vectorIdSaIdEEC2EmRKS0_
	leaq	1(%rbx), %rsi
.Ltmp21:
	leaq	32(%rsp), %rdi
	leaq	6(%rsp), %rcx
	movq	%rbp, %rdx
	callq	_ZNSt6vectorIS_IdSaIdEESaIS1_EEC2EmRKS1_RKS2_
.Ltmp22:
# %bb.1:
	movq	8(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB4_3
# %bb.2:
	callq	_ZdlPv
.LBB4_3:                                # %_ZNSt6vectorIdSaIdEED2Ev.exit
	testq	%rbx, %rbx
	js	.LBB4_17
# %bb.4:                                # %.preheader.lr.ph
	xorl	%eax, %eax
	movsd	.LCPI4_0(%rip), %xmm0           # xmm0 = mem[0],zero
.LBB4_5:                                # %.preheader
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB4_7 Depth 2
	testq	%r14, %r14
	js	.LBB4_16
# %bb.6:                                # %.lr.ph
                                        #   in Loop: Header=BB4_5 Depth=1
	movq	32(%rsp), %rcx
	leaq	(%rax,%rax,2), %rdx
	leaq	(%rcx,%rdx,8), %rcx
	addq	$-24, %rcx
	movq	24(%rcx), %rdx
	xorl	%esi, %esi
.LBB4_7:                                #   Parent Loop BB4_5 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	xorpd	%xmm1, %xmm1
	testq	%rax, %rax
	je	.LBB4_15
# %bb.8:                                #   in Loop: Header=BB4_7 Depth=2
	testq	%rsi, %rsi
	je	.LBB4_15
# %bb.9:                                #   in Loop: Header=BB4_7 Depth=2
	movsd	-8(%r12,%rax,8), %xmm2          # xmm2 = mem[0],zero
	xorps	%xmm1, %xmm1
	cvtsi2sd	%rsi, %xmm1
	ucomisd	%xmm2, %xmm1
	jae	.LBB4_10
# %bb.14:                               #   in Loop: Header=BB4_7 Depth=2
	movq	(%rcx), %rdi
	movsd	(%rdi,%rsi,8), %xmm1            # xmm1 = mem[0],zero
	jmp	.LBB4_15
.LBB4_10:                               #   in Loop: Header=BB4_7 Depth=2
	movsd	-8(%r15,%rax,8), %xmm3          # xmm3 = mem[0],zero
	subsd	%xmm2, %xmm1
	cvttsd2si	%xmm1, %rdi
	movq	%rdi, %r8
	subsd	%xmm0, %xmm1
	cvttsd2si	%xmm1, %r9
	sarq	$63, %r8
	andq	%r8, %r9
	orq	%rdi, %r9
	movq	(%rcx), %rdi
	addsd	(%rdi,%r9,8), %xmm3
	movsd	(%rdi,%rsi,8), %xmm1            # xmm1 = mem[0],zero
	maxsd	%xmm3, %xmm1
.LBB4_15:                               #   in Loop: Header=BB4_7 Depth=2
	movsd	%xmm1, (%rdx,%rsi,8)
	incq	%rsi
	cmpq	%rsi, %r13
	jne	.LBB4_7
.LBB4_16:                               # %._crit_edge
                                        #   in Loop: Header=BB4_5 Depth=1
	leaq	1(%rax), %rcx
	cmpq	%rbx, %rax
	movq	%rcx, %rax
	jne	.LBB4_5
.LBB4_17:                               # %._crit_edge46
	leaq	32(%rsp), %rdi
	movq	(%rdi), %rax
	leaq	(%rbx,%rbx,2), %rcx
	movq	(%rax,%rcx,8), %rax
	cvttsd2si	(%rax,%r14,8), %rbx
	callq	_ZNSt6vectorIS_IdSaIdEESaIS1_EED2Ev
	movq	%rbx, %rax
	addq	$56, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.LBB4_11:
	.cfi_def_cfa_offset 112
.Ltmp23:
	movq	%rax, %rbx
	movq	8(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB4_13
# %bb.12:
	callq	_ZdlPv
.LBB4_13:                               # %_ZNSt6vectorIdSaIdEED2Ev.exit41
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end4:
	.size	_Z11dp_knapSackxPdS_x, .Lfunc_end4-_Z11dp_knapSackxPdS_x
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table4:
.Lexception1:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end1-.Lcst_begin1
.Lcst_begin1:
	.uleb128 .Lfunc_begin1-.Lfunc_begin1    # >> Call Site 1 <<
	.uleb128 .Ltmp21-.Lfunc_begin1          #   Call between .Lfunc_begin1 and .Ltmp21
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp21-.Lfunc_begin1          # >> Call Site 2 <<
	.uleb128 .Ltmp22-.Ltmp21                #   Call between .Ltmp21 and .Ltmp22
	.uleb128 .Ltmp23-.Lfunc_begin1          #     jumps to .Ltmp23
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp22-.Lfunc_begin1          # >> Call Site 3 <<
	.uleb128 .Lfunc_end4-.Ltmp22            #   Call between .Ltmp22 and .Lfunc_end4
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end1:
	.p2align	2, 0x0
                                        # -- End function
	.section	.text._ZNSt6vectorIdSaIdEEC2EmRKS0_,"axG",@progbits,_ZNSt6vectorIdSaIdEEC2EmRKS0_,comdat
	.weak	_ZNSt6vectorIdSaIdEEC2EmRKS0_   # -- Begin function _ZNSt6vectorIdSaIdEEC2EmRKS0_
	.p2align	1, 0x90
	.type	_ZNSt6vectorIdSaIdEEC2EmRKS0_,@function
_ZNSt6vectorIdSaIdEEC2EmRKS0_:          # @_ZNSt6vectorIdSaIdEEC2EmRKS0_
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rsi, %rax
	shrq	$60, %rax
	jne	.LBB5_7
# %bb.1:                                # %_ZNSt6vectorIdSaIdEE17_S_check_init_lenEmRKS0_.exit
	movq	%rsi, %r14
	movq	%rdi, %rbx
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rdi)
	movq	$0, 16(%rdi)
	testq	%rsi, %rsi
	je	.LBB5_2
# %bb.3:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorIdE8allocateEmPKv
	movq	%rax, (%rbx)
	leaq	(%rax,%r14,8), %r15
	movq	%r15, 16(%rbx)
	movq	$0, (%rax)
	addq	$8, %rax
	cmpq	$1, %r14
	jne	.LBB5_5
# %bb.4:
	movq	%rax, %r15
	jmp	.LBB5_6
.LBB5_2:                                # %_ZNSt12_Vector_baseIdSaIdEEC2EmRKS0_.exit.thread
	movups	%xmm0, (%rbx)
	movq	$0, 16(%rbx)
	xorl	%r15d, %r15d
	jmp	.LBB5_6
.LBB5_5:                                # %_ZSt6fill_nIPdmdET_S1_T0_RKT1_.exit.loopexit.i.i.i.i
	leaq	-8(,%r14,8), %rdx
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	memset@PLT
.LBB5_6:
	movq	%r15, 8(%rbx)
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.LBB5_7:
	.cfi_def_cfa_offset 32
	movl	$.L.str.3, %edi
	callq	_ZSt20__throw_length_errorPKc
.Lfunc_end5:
	.size	_ZNSt6vectorIdSaIdEEC2EmRKS0_, .Lfunc_end5-_ZNSt6vectorIdSaIdEEC2EmRKS0_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorIS_IdSaIdEESaIS1_EEC2EmRKS1_RKS2_,"axG",@progbits,_ZNSt6vectorIS_IdSaIdEESaIS1_EEC2EmRKS1_RKS2_,comdat
	.weak	_ZNSt6vectorIS_IdSaIdEESaIS1_EEC2EmRKS1_RKS2_ # -- Begin function _ZNSt6vectorIS_IdSaIdEESaIS1_EEC2EmRKS1_RKS2_
	.p2align	1, 0x90
	.type	_ZNSt6vectorIS_IdSaIdEESaIS1_EEC2EmRKS1_RKS2_,@function
_ZNSt6vectorIS_IdSaIdEESaIS1_EEC2EmRKS1_RKS2_: # @_ZNSt6vectorIS_IdSaIdEESaIS1_EEC2EmRKS1_RKS2_
.Lfunc_begin2:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception2
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movabsq	$384307168202282326, %rax       # imm = 0x555555555555556
	cmpq	%rax, %rsi
	jae	.LBB6_9
# %bb.1:                                # %_ZNSt6vectorIS_IdSaIdEESaIS1_EE17_S_check_init_lenEmRKS2_.exit
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rdi)
	movq	$0, 16(%rdi)
	testq	%rsi, %rsi
	je	.LBB6_2
# %bb.3:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorISt6vectorIdSaIdEEE8allocateEmPKv
	movq	%rax, %rdi
	jmp	.LBB6_4
.LBB6_2:
	xorl	%edi, %edi
.LBB6_4:                                # %_ZNSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EEC2EmRKS3_.exit
	movq	%rdi, (%rbx)
	movq	%rdi, 8(%rbx)
	leaq	(%r15,%r15,2), %rax
	leaq	(%rdi,%rax,8), %rax
	movq	%rax, 16(%rbx)
.Ltmp24:
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_ZSt18__do_uninit_fill_nIPSt6vectorIdSaIdEEmS2_ET_S4_T0_RKT1_
.Ltmp25:
# %bb.5:
	movq	%rax, 8(%rbx)
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.LBB6_9:
	.cfi_def_cfa_offset 32
	movl	$.L.str.3, %edi
	callq	_ZSt20__throw_length_errorPKc
.LBB6_6:
.Ltmp26:
	movq	%rax, %r14
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	.LBB6_8
# %bb.7:
	callq	_ZdlPv
.LBB6_8:                                # %_ZNSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EED2Ev.exit
	movq	%r14, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end6:
	.size	_ZNSt6vectorIS_IdSaIdEESaIS1_EEC2EmRKS1_RKS2_, .Lfunc_end6-_ZNSt6vectorIS_IdSaIdEESaIS1_EEC2EmRKS1_RKS2_
	.cfi_endproc
	.section	.gcc_except_table._ZNSt6vectorIS_IdSaIdEESaIS1_EEC2EmRKS1_RKS2_,"aG",@progbits,_ZNSt6vectorIS_IdSaIdEESaIS1_EEC2EmRKS1_RKS2_,comdat
	.p2align	2, 0x0
GCC_except_table6:
.Lexception2:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end2-.Lcst_begin2
.Lcst_begin2:
	.uleb128 .Lfunc_begin2-.Lfunc_begin2    # >> Call Site 1 <<
	.uleb128 .Ltmp24-.Lfunc_begin2          #   Call between .Lfunc_begin2 and .Ltmp24
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp24-.Lfunc_begin2          # >> Call Site 2 <<
	.uleb128 .Ltmp25-.Ltmp24                #   Call between .Ltmp24 and .Ltmp25
	.uleb128 .Ltmp26-.Lfunc_begin2          #     jumps to .Ltmp26
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp25-.Lfunc_begin2          # >> Call Site 3 <<
	.uleb128 .Lfunc_end6-.Ltmp25            #   Call between .Ltmp25 and .Lfunc_end6
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end2:
	.p2align	2, 0x0
                                        # -- End function
	.section	.text._ZNSt6vectorIS_IdSaIdEESaIS1_EED2Ev,"axG",@progbits,_ZNSt6vectorIS_IdSaIdEESaIS1_EED2Ev,comdat
	.weak	_ZNSt6vectorIS_IdSaIdEESaIS1_EED2Ev # -- Begin function _ZNSt6vectorIS_IdSaIdEESaIS1_EED2Ev
	.p2align	1, 0x90
	.type	_ZNSt6vectorIS_IdSaIdEESaIS1_EED2Ev,@function
_ZNSt6vectorIS_IdSaIdEESaIS1_EED2Ev:    # @_ZNSt6vectorIS_IdSaIdEESaIS1_EED2Ev
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	(%rdi), %rbx
	movq	8(%rdi), %r15
	cmpq	%r15, %rbx
	je	.LBB7_6
# %bb.1:                                # %.lr.ph.i.i.i.preheader
	movq	%rdi, %r14
.LBB7_2:                                # %.lr.ph.i.i.i
                                        # =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	.LBB7_4
# %bb.3:                                #   in Loop: Header=BB7_2 Depth=1
	callq	_ZdlPv
.LBB7_4:                                # %_ZSt8_DestroyISt6vectorIdSaIdEEEvPT_.exit.i.i.i
                                        #   in Loop: Header=BB7_2 Depth=1
	addq	$24, %rbx
	cmpq	%r15, %rbx
	jne	.LBB7_2
# %bb.5:                                # %_ZSt8_DestroyIPSt6vectorIdSaIdEES2_EvT_S4_RSaIT0_E.exitthread-pre-split
	movq	(%r14), %rbx
.LBB7_6:                                # %_ZSt8_DestroyIPSt6vectorIdSaIdEES2_EvT_S4_RSaIT0_E.exit
	testq	%rbx, %rbx
	je	.LBB7_7
# %bb.8:
	movq	%rbx, %rdi
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	jmp	_ZdlPv                          # TAILCALL
.LBB7_7:                                # %_ZNSt12_Vector_baseISt6vectorIdSaIdEESaIS2_EED2Ev.exit
	.cfi_def_cfa_offset 32
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end7:
	.size	_ZNSt6vectorIS_IdSaIdEESaIS1_EED2Ev, .Lfunc_end7-_ZNSt6vectorIS_IdSaIdEESaIS1_EED2Ev
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst8,"aM",@progbits,8
	.p2align	3, 0x0                          # -- Begin function main
.LCPI8_0:
	.quad	0x412e848000000000              # double 1.0E+6
	.text
	.globl	main
	.type	main,@function
main:                                   # @main
.Lfunc_begin3:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception3
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	subq	$120, %rsp
	.cfi_def_cfa_offset 160
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	xorpd	%xmm0, %xmm0
	movapd	%xmm0, 96(%rsp)
	xorl	%eax, %eax
	movq	%rax, 112(%rsp)
	movq	%rax, 32(%rsp)
	movapd	%xmm0, 16(%rsp)
	leaq	64(%rsp), %rbx
	movq	%rax, 16(%rbx)
	movapd	%xmm0, (%rbx)
	xorl	%edi, %edi
	callq	time
	movl	%eax, %edi
	callq	srand
	movl	$40, %r15d
	leaq	40(%rsp), %r14
.LBB8_1:                                # =>This Inner Loop Header: Depth=1
	callq	rand
	cltq
	imulq	$1801439851, %rax, %rcx         # imm = 0x6B5FCA6B
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$54, %rcx
	addl	%edx, %ecx
	imull	$10000000, %ecx, %ecx           # imm = 0x989680
	negl	%ecx
	leal	(%rax,%rcx), %ebp
	incl	%ebp
	callq	rand
	cltq
	imulq	$1801439851, %rax, %rcx         # imm = 0x6B5FCA6B
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$54, %rcx
	addl	%edx, %ecx
	imull	$10000000, %ecx, %ecx           # imm = 0x989680
	negl	%ecx
	xorps	%xmm0, %xmm0
	cvtsi2sd	%ebp, %xmm0
	addl	%ecx, %eax
	incl	%eax
	xorps	%xmm1, %xmm1
	cvtsi2sd	%eax, %xmm1
	movsd	%xmm0, 40(%rsp)
	movsd	%xmm1, 48(%rsp)
	movq	72(%rsp), %rsi
	cmpq	80(%rsp), %rsi
	je	.LBB8_3
# %bb.2:                                #   in Loop: Header=BB8_1 Depth=1
	movupd	40(%rsp), %xmm0
	movupd	%xmm0, (%rsi)
	addq	$16, 72(%rsp)
	jmp	.LBB8_4
.LBB8_3:                                #   in Loop: Header=BB8_1 Depth=1
.Ltmp27:
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_ZNSt6vectorISt4pairIddESaIS1_EE17_M_realloc_insertIJS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_
.Ltmp28:
.LBB8_4:                                # %_ZNSt6vectorISt4pairIddESaIS1_EE9push_backEOS1_.exit
                                        #   in Loop: Header=BB8_1 Depth=1
	decq	%r15
	jne	.LBB8_1
# %bb.5:
	callq	_ZNSt6chrono3_V212steady_clock3nowEv
	movq	%rax, %rbx
.Ltmp30:
	leaq	96(%rsp), %rdi
	leaq	16(%rsp), %rsi
	leaq	64(%rsp), %rdx
	callq	_Z11merge_listsRSt6vectorI6tripleSaIS0_EES3_RS_ISt4pairIddESaIS5_EE
.Ltmp31:
# %bb.6:
	movq	24(%rsp), %rax
	subq	16(%rsp), %rax
	sarq	$3, %rax
	movabsq	$-6148914691236517205, %rsi     # imm = 0xAAAAAAAAAAAAAAAB
	imulq	%rax, %rsi
.Ltmp33:
	leaq	40(%rsp), %rdi
	leaq	15(%rsp), %rdx
	callq	_ZNSt6vectorISt4pairIdxESaIS1_EEC2EmRKS2_
.Ltmp34:
# %bb.7:
	leaq	16(%rsp), %rdi
	leaq	40(%rsp), %rsi
	callq	_Z7maxScanRSt6vectorI6tripleSaIS0_EERS_ISt4pairIdxESaIS5_EE
	callq	_ZNSt6chrono3_V212steady_clock3nowEv
	movq	%rax, %r14
.Ltmp36:
	movl	$_ZSt4cout, %edi
	movl	$.L.str, %esi
	movl	$21, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp37:
# %bb.8:
	subq	%rbx, %r14
	xorps	%xmm0, %xmm0
	cvtsi2sd	%r14, %xmm0
	divsd	.LCPI8_0(%rip), %xmm0
.Ltmp38:
	movl	$_ZSt4cout, %edi
	callq	_ZNSo9_M_insertIdEERSoT_
.Ltmp39:
# %bb.9:                                # %_ZNSolsEd.exit
.Ltmp41:
	movl	$_ZSt4cout, %ebx
	movl	$_ZSt4cout, %edi
	movl	$.L.str.1, %esi
	movl	$3, %edx
	callq	_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
.Ltmp42:
# %bb.10:                               # %_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc.exit22
	movq	_ZSt4cout(%rip), %rax
	addq	-24(%rax), %rbx
.Ltmp43:
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc
.Ltmp44:
# %bb.11:                               # %.noexc43
.Ltmp45:
	movsbl	%al, %esi
	movl	$_ZSt4cout, %edi
	callq	_ZNSo3putEc
.Ltmp46:
# %bb.12:                               # %.noexc44
.Ltmp47:
	movq	%rax, %rdi
	callq	_ZNSo5flushEv
.Ltmp48:
# %bb.13:                               # %_ZNSolsEPFRSoS_E.exit
.Ltmp49:
	movl	$_ZSt3cin, %edi
	callq	_ZNSi3getEv
.Ltmp50:
# %bb.14:
	movq	40(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB8_16
# %bb.15:
	callq	_ZdlPv
.LBB8_16:                               # %_ZNSt6vectorIdSaIdEED2Ev.exit26
	movq	64(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB8_18
# %bb.17:
	callq	_ZdlPv
.LBB8_18:                               # %_ZNSt6vectorISt4pairIddESaIS1_EED2Ev.exit
	movq	16(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB8_20
# %bb.19:
	callq	_ZdlPv
.LBB8_20:                               # %_ZNSt6vectorI6tripleSaIS0_EED2Ev.exit
	movq	96(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB8_22
# %bb.21:
	callq	_ZdlPv
.LBB8_22:                               # %_ZNSt6vectorI6tripleSaIS0_EED2Ev.exit30
	xorl	%eax, %eax
	addq	$120, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.LBB8_23:
	.cfi_def_cfa_offset 160
.Ltmp40:
	jmp	.LBB8_27
.LBB8_24:
.Ltmp35:
	jmp	.LBB8_30
.LBB8_25:
.Ltmp32:
	jmp	.LBB8_30
.LBB8_26:
.Ltmp51:
.LBB8_27:
	movq	%rax, %rbx
	movq	40(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB8_31
# %bb.28:
	callq	_ZdlPv
	jmp	.LBB8_31
.LBB8_29:
.Ltmp29:
.LBB8_30:                               # %_ZNSt6vectorIdSaIdEED2Ev.exit36
	movq	%rax, %rbx
.LBB8_31:                               # %_ZNSt6vectorIdSaIdEED2Ev.exit36
	movq	64(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB8_33
# %bb.32:
	callq	_ZdlPv
.LBB8_33:                               # %_ZNSt6vectorISt4pairIddESaIS1_EED2Ev.exit38
	movq	16(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB8_35
# %bb.34:
	callq	_ZdlPv
.LBB8_35:                               # %_ZNSt6vectorI6tripleSaIS0_EED2Ev.exit40
	movq	96(%rsp), %rdi
	testq	%rdi, %rdi
	je	.LBB8_37
# %bb.36:
	callq	_ZdlPv
.LBB8_37:                               # %_ZNSt6vectorI6tripleSaIS0_EED2Ev.exit42
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.Lfunc_end8:
	.size	main, .Lfunc_end8-main
	.cfi_endproc
	.section	.gcc_except_table,"a",@progbits
	.p2align	2, 0x0
GCC_except_table8:
.Lexception3:
	.byte	255                             # @LPStart Encoding = omit
	.byte	255                             # @TType Encoding = omit
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end3-.Lcst_begin3
.Lcst_begin3:
	.uleb128 .Ltmp27-.Lfunc_begin3          # >> Call Site 1 <<
	.uleb128 .Ltmp28-.Ltmp27                #   Call between .Ltmp27 and .Ltmp28
	.uleb128 .Ltmp29-.Lfunc_begin3          #     jumps to .Ltmp29
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp30-.Lfunc_begin3          # >> Call Site 2 <<
	.uleb128 .Ltmp31-.Ltmp30                #   Call between .Ltmp30 and .Ltmp31
	.uleb128 .Ltmp32-.Lfunc_begin3          #     jumps to .Ltmp32
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp33-.Lfunc_begin3          # >> Call Site 3 <<
	.uleb128 .Ltmp34-.Ltmp33                #   Call between .Ltmp33 and .Ltmp34
	.uleb128 .Ltmp35-.Lfunc_begin3          #     jumps to .Ltmp35
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp36-.Lfunc_begin3          # >> Call Site 4 <<
	.uleb128 .Ltmp37-.Ltmp36                #   Call between .Ltmp36 and .Ltmp37
	.uleb128 .Ltmp51-.Lfunc_begin3          #     jumps to .Ltmp51
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp38-.Lfunc_begin3          # >> Call Site 5 <<
	.uleb128 .Ltmp39-.Ltmp38                #   Call between .Ltmp38 and .Ltmp39
	.uleb128 .Ltmp40-.Lfunc_begin3          #     jumps to .Ltmp40
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp41-.Lfunc_begin3          # >> Call Site 6 <<
	.uleb128 .Ltmp50-.Ltmp41                #   Call between .Ltmp41 and .Ltmp50
	.uleb128 .Ltmp51-.Lfunc_begin3          #     jumps to .Ltmp51
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp50-.Lfunc_begin3          # >> Call Site 7 <<
	.uleb128 .Lfunc_end8-.Ltmp50            #   Call between .Ltmp50 and .Lfunc_end8
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end3:
	.p2align	2, 0x0
                                        # -- End function
	.section	.text._ZNSt6vectorISt4pairIdxESaIS1_EEC2EmRKS2_,"axG",@progbits,_ZNSt6vectorISt4pairIdxESaIS1_EEC2EmRKS2_,comdat
	.weak	_ZNSt6vectorISt4pairIdxESaIS1_EEC2EmRKS2_ # -- Begin function _ZNSt6vectorISt4pairIdxESaIS1_EEC2EmRKS2_
	.p2align	1, 0x90
	.type	_ZNSt6vectorISt4pairIdxESaIS1_EEC2EmRKS2_,@function
_ZNSt6vectorISt4pairIdxESaIS1_EEC2EmRKS2_: # @_ZNSt6vectorISt4pairIdxESaIS1_EEC2EmRKS2_
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rsi, %rax
	shrq	$59, %rax
	jne	.LBB9_5
# %bb.1:                                # %_ZNSt6vectorISt4pairIdxESaIS1_EE17_S_check_init_lenEmRKS2_.exit
	movq	%rsi, %r14
	movq	%rdi, %rbx
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rdi)
	movq	$0, 16(%rdi)
	testq	%rsi, %rsi
	je	.LBB9_2
# %bb.3:                                # %.lr.ph.preheader.i.i.i.i
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorISt4pairIdxEE8allocateEmPKv
	movq	%rax, (%rbx)
	shlq	$4, %r14
	leaq	(%rax,%r14), %r15
	movq	%r15, 16(%rbx)
	movq	%rax, %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	memset@PLT
	jmp	.LBB9_4
.LBB9_2:                                # %_ZNSt12_Vector_baseISt4pairIdxESaIS1_EEC2EmRKS2_.exit.thread
	movups	%xmm0, (%rbx)
	movq	$0, 16(%rbx)
	xorl	%r15d, %r15d
.LBB9_4:
	movq	%r15, 8(%rbx)
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.LBB9_5:
	.cfi_def_cfa_offset 32
	movl	$.L.str.3, %edi
	callq	_ZSt20__throw_length_errorPKc
.Lfunc_end9:
	.size	_ZNSt6vectorISt4pairIdxESaIS1_EEC2EmRKS2_, .Lfunc_end9-_ZNSt6vectorISt4pairIdxESaIS1_EEC2EmRKS2_
	.cfi_endproc
                                        # -- End function
	.section	.text.__clang_call_terminate,"axG",@progbits,__clang_call_terminate,comdat
	.hidden	__clang_call_terminate          # -- Begin function __clang_call_terminate
	.weak	__clang_call_terminate
	.type	__clang_call_terminate,@function
__clang_call_terminate:                 # @__clang_call_terminate
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	callq	__cxa_begin_catch
	callq	_ZSt9terminatev
.Lfunc_end10:
	.size	__clang_call_terminate, .Lfunc_end10-__clang_call_terminate
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorI6tripleSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_,"axG",@progbits,_ZNSt6vectorI6tripleSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_,comdat
	.weak	_ZNSt6vectorI6tripleSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_ # -- Begin function _ZNSt6vectorI6tripleSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_
	.p2align	1, 0x90
	.type	_ZNSt6vectorI6tripleSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_,@function
_ZNSt6vectorI6tripleSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_: # @_ZNSt6vectorI6tripleSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rdx, 8(%rsp)                   # 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	$1, %esi
	movl	$.L.str.2, %edx
	callq	_ZNKSt6vectorI6tripleSaIS0_EE12_M_check_lenEmPKc
	movq	%rax, %rsi
	movq	(%rbx), %r12
	movq	8(%rbx), %r14
	movq	%r15, %rax
	subq	%r12, %rax
	sarq	$3, %rax
	movabsq	$-6148914691236517205, %rbp     # imm = 0xAAAAAAAAAAAAAAAB
	imulq	%rax, %rbp
	testq	%rsi, %rsi
	movq	%rsi, 16(%rsp)                  # 8-byte Spill
	je	.LBB11_1
# %bb.2:
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorI6tripleE8allocateEmPKv
	movq	%rax, %r13
	jmp	.LBB11_3
.LBB11_1:
	xorl	%r13d, %r13d
.LBB11_3:                               # %_ZNSt12_Vector_baseI6tripleSaIS0_EE11_M_allocateEm.exit
	leaq	(,%rbp,2), %rax
	addq	%rbp, %rax
	movq	8(%rsp), %rdx                   # 8-byte Reload
	movq	16(%rdx), %rcx
	movq	%rcx, 16(%r13,%rax,8)
	movups	(%rdx), %xmm0
	movups	%xmm0, (%r13,%rax,8)
	movq	%r13, %rbp
	cmpq	%r15, %r12
	je	.LBB11_6
# %bb.4:                                # %.lr.ph.i.i.i.preheader
	movq	%r13, %rbp
	movq	%r12, %rax
.LBB11_5:                               # %.lr.ph.i.i.i
                                        # =>This Inner Loop Header: Depth=1
	movq	16(%rax), %rcx
	movq	%rcx, 16(%rbp)
	movups	(%rax), %xmm0
	movups	%xmm0, (%rbp)
	addq	$24, %rax
	addq	$24, %rbp
	cmpq	%r15, %rax
	jne	.LBB11_5
.LBB11_6:                               # %_ZNSt6vectorI6tripleSaIS0_EE11_S_relocateEPS0_S3_S3_RS1_.exit
	addq	$24, %rbp
	cmpq	%r15, %r14
	je	.LBB11_8
.LBB11_7:                               # %.lr.ph.i.i.i17
                                        # =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rax
	movq	%rax, 16(%rbp)
	movups	(%r15), %xmm0
	movups	%xmm0, (%rbp)
	addq	$24, %r15
	addq	$24, %rbp
	cmpq	%r14, %r15
	jne	.LBB11_7
.LBB11_8:                               # %_ZNSt6vectorI6tripleSaIS0_EE11_S_relocateEPS0_S3_S3_RS1_.exit22
	testq	%r12, %r12
	je	.LBB11_10
# %bb.9:
	movq	%r12, %rdi
	callq	_ZdlPv
.LBB11_10:                              # %_ZNSt12_Vector_baseI6tripleSaIS0_EE13_M_deallocateEPS0_m.exit
	movq	%r13, (%rbx)
	movq	%rbp, 8(%rbx)
	movq	16(%rsp), %rax                  # 8-byte Reload
	leaq	(%rax,%rax,2), %rax
	leaq	(,%rax,8), %rax
	addq	%r13, %rax
	movq	%rax, 16(%rbx)
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end11:
	.size	_ZNSt6vectorI6tripleSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_, .Lfunc_end11-_ZNSt6vectorI6tripleSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNKSt6vectorI6tripleSaIS0_EE12_M_check_lenEmPKc,"axG",@progbits,_ZNKSt6vectorI6tripleSaIS0_EE12_M_check_lenEmPKc,comdat
	.weak	_ZNKSt6vectorI6tripleSaIS0_EE12_M_check_lenEmPKc # -- Begin function _ZNKSt6vectorI6tripleSaIS0_EE12_M_check_lenEmPKc
	.p2align	1, 0x90
	.type	_ZNKSt6vectorI6tripleSaIS0_EE12_M_check_lenEmPKc,@function
_ZNKSt6vectorI6tripleSaIS0_EE12_M_check_lenEmPKc: # @_ZNKSt6vectorI6tripleSaIS0_EE12_M_check_lenEmPKc
	.cfi_startproc
# %bb.0:
	movabsq	$384307168202282325, %rcx       # imm = 0x555555555555555
	movq	8(%rdi), %rax
	subq	(%rdi), %rax
	sarq	$3, %rax
	movabsq	$-6148914691236517205, %rdi     # imm = 0xAAAAAAAAAAAAAAAB
	imulq	%rax, %rdi
	movq	%rcx, %rax
	subq	%rdi, %rax
	cmpq	%rsi, %rax
	jb	.LBB12_2
# %bb.1:
	cmpq	%rsi, %rdi
	cmovaq	%rdi, %rsi
	leaq	(%rsi,%rdi), %rax
	cmpq	%rcx, %rax
	cmovaeq	%rcx, %rax
	addq	%rdi, %rsi
	cmovbq	%rcx, %rax
	retq
.LBB12_2:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	%rdx, %rdi
	callq	_ZSt20__throw_length_errorPKc
.Lfunc_end12:
	.size	_ZNKSt6vectorI6tripleSaIS0_EE12_M_check_lenEmPKc, .Lfunc_end12-_ZNKSt6vectorI6tripleSaIS0_EE12_M_check_lenEmPKc
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt15__new_allocatorI6tripleE8allocateEmPKv,"axG",@progbits,_ZNSt15__new_allocatorI6tripleE8allocateEmPKv,comdat
	.weak	_ZNSt15__new_allocatorI6tripleE8allocateEmPKv # -- Begin function _ZNSt15__new_allocatorI6tripleE8allocateEmPKv
	.p2align	1, 0x90
	.type	_ZNSt15__new_allocatorI6tripleE8allocateEmPKv,@function
_ZNSt15__new_allocatorI6tripleE8allocateEmPKv: # @_ZNSt15__new_allocatorI6tripleE8allocateEmPKv
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movabsq	$384307168202282326, %rax       # imm = 0x555555555555556
	cmpq	%rax, %rsi
	jae	.LBB13_1
# %bb.3:
	shlq	$3, %rsi
	leaq	(%rsi,%rsi,2), %rdi
	popq	%rax
	.cfi_def_cfa_offset 8
	jmp	_Znwm                           # TAILCALL
.LBB13_1:
	.cfi_def_cfa_offset 16
	movabsq	$768614336404564651, %rax       # imm = 0xAAAAAAAAAAAAAAB
	cmpq	%rax, %rsi
	jb	.LBB13_2
# %bb.4:
	callq	_ZSt28__throw_bad_array_new_lengthv
.LBB13_2:
	callq	_ZSt17__throw_bad_allocv
.Lfunc_end13:
	.size	_ZNSt15__new_allocatorI6tripleE8allocateEmPKv, .Lfunc_end13-_ZNSt15__new_allocatorI6tripleE8allocateEmPKv
	.cfi_endproc
                                        # -- End function
	.section	.text._ZSt7__mergeIN9__gnu_cxx17__normal_iteratorIP6tripleSt6vectorIS2_SaIS2_EEEES7_St20back_insert_iteratorIS6_ENS0_5__ops15_Iter_less_iterEET1_T_SD_T0_SE_SC_T2_,"axG",@progbits,_ZSt7__mergeIN9__gnu_cxx17__normal_iteratorIP6tripleSt6vectorIS2_SaIS2_EEEES7_St20back_insert_iteratorIS6_ENS0_5__ops15_Iter_less_iterEET1_T_SD_T0_SE_SC_T2_,comdat
	.weak	_ZSt7__mergeIN9__gnu_cxx17__normal_iteratorIP6tripleSt6vectorIS2_SaIS2_EEEES7_St20back_insert_iteratorIS6_ENS0_5__ops15_Iter_less_iterEET1_T_SD_T0_SE_SC_T2_ # -- Begin function _ZSt7__mergeIN9__gnu_cxx17__normal_iteratorIP6tripleSt6vectorIS2_SaIS2_EEEES7_St20back_insert_iteratorIS6_ENS0_5__ops15_Iter_less_iterEET1_T_SD_T0_SE_SC_T2_
	.type	_ZSt7__mergeIN9__gnu_cxx17__normal_iteratorIP6tripleSt6vectorIS2_SaIS2_EEEES7_St20back_insert_iteratorIS6_ENS0_5__ops15_Iter_less_iterEET1_T_SD_T0_SE_SC_T2_,@function
_ZSt7__mergeIN9__gnu_cxx17__normal_iteratorIP6tripleSt6vectorIS2_SaIS2_EEEES7_St20back_insert_iteratorIS6_ENS0_5__ops15_Iter_less_iterEET1_T_SD_T0_SE_SC_T2_: # @_ZSt7__mergeIN9__gnu_cxx17__normal_iteratorIP6tripleSt6vectorIS2_SaIS2_EEEES7_St20back_insert_iteratorIS6_ENS0_5__ops15_Iter_less_iterEET1_T_SD_T0_SE_SC_T2_
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%r8, %r15
	movq	%rcx, %rbx
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r13
	cmpq	%rsi, %rdi
	je	.LBB14_12
.LBB14_1:                               # =>This Inner Loop Header: Depth=1
	cmpq	%rbx, %r14
	je	.LBB14_12
# %bb.2:                                #   in Loop: Header=BB14_1 Depth=1
	movsd	8(%r13), %xmm0                  # xmm0 = mem[0],zero
	ucomisd	8(%r14), %xmm0
	movq	8(%r15), %rsi
	movq	16(%r15), %rax
	jbe	.LBB14_7
# %bb.3:                                #   in Loop: Header=BB14_1 Depth=1
	cmpq	%rax, %rsi
	je	.LBB14_5
# %bb.4:                                #   in Loop: Header=BB14_1 Depth=1
	movq	16(%r14), %rax
	movq	%rax, 16(%rsi)
	movupd	(%r14), %xmm0
	movupd	%xmm0, (%rsi)
	addq	$24, 8(%r15)
	jmp	.LBB14_6
.LBB14_7:                               #   in Loop: Header=BB14_1 Depth=1
	cmpq	%rax, %rsi
	je	.LBB14_9
# %bb.8:                                #   in Loop: Header=BB14_1 Depth=1
	movq	16(%r13), %rax
	movq	%rax, 16(%rsi)
	movupd	(%r13), %xmm0
	movupd	%xmm0, (%rsi)
	addq	$24, 8(%r15)
	jmp	.LBB14_10
.LBB14_5:                               #   in Loop: Header=BB14_1 Depth=1
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_ZNSt6vectorI6tripleSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_
.LBB14_6:                               # %_ZNSt20back_insert_iteratorISt6vectorI6tripleSaIS1_EEEaSERKS1_.exit
                                        #   in Loop: Header=BB14_1 Depth=1
	addq	$24, %r14
	jmp	.LBB14_11
.LBB14_9:                               #   in Loop: Header=BB14_1 Depth=1
	movq	%r15, %rdi
	movq	%r13, %rdx
	callq	_ZNSt6vectorI6tripleSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_
.LBB14_10:                              # %_ZNSt20back_insert_iteratorISt6vectorI6tripleSaIS1_EEEaSERKS1_.exit10
                                        #   in Loop: Header=BB14_1 Depth=1
	addq	$24, %r13
.LBB14_11:                              #   in Loop: Header=BB14_1 Depth=1
	cmpq	%r12, %r13
	jne	.LBB14_1
.LBB14_12:                              # %.critedge
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_ZNSt11__copy_moveILb0ELb0ESt26random_access_iterator_tagE8__copy_mIP6tripleSt20back_insert_iteratorISt6vectorIS3_SaIS3_EEEEET0_T_SB_SA_
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	jmp	_ZNSt11__copy_moveILb0ELb0ESt26random_access_iterator_tagE8__copy_mIP6tripleSt20back_insert_iteratorISt6vectorIS3_SaIS3_EEEEET0_T_SB_SA_ # TAILCALL
.Lfunc_end14:
	.size	_ZSt7__mergeIN9__gnu_cxx17__normal_iteratorIP6tripleSt6vectorIS2_SaIS2_EEEES7_St20back_insert_iteratorIS6_ENS0_5__ops15_Iter_less_iterEET1_T_SD_T0_SE_SC_T2_, .Lfunc_end14-_ZSt7__mergeIN9__gnu_cxx17__normal_iteratorIP6tripleSt6vectorIS2_SaIS2_EEEES7_St20back_insert_iteratorIS6_ENS0_5__ops15_Iter_less_iterEET1_T_SD_T0_SE_SC_T2_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt11__copy_moveILb0ELb0ESt26random_access_iterator_tagE8__copy_mIP6tripleSt20back_insert_iteratorISt6vectorIS3_SaIS3_EEEEET0_T_SB_SA_,"axG",@progbits,_ZNSt11__copy_moveILb0ELb0ESt26random_access_iterator_tagE8__copy_mIP6tripleSt20back_insert_iteratorISt6vectorIS3_SaIS3_EEEEET0_T_SB_SA_,comdat
	.weak	_ZNSt11__copy_moveILb0ELb0ESt26random_access_iterator_tagE8__copy_mIP6tripleSt20back_insert_iteratorISt6vectorIS3_SaIS3_EEEEET0_T_SB_SA_ # -- Begin function _ZNSt11__copy_moveILb0ELb0ESt26random_access_iterator_tagE8__copy_mIP6tripleSt20back_insert_iteratorISt6vectorIS3_SaIS3_EEEEET0_T_SB_SA_
	.p2align	1, 0x90
	.type	_ZNSt11__copy_moveILb0ELb0ESt26random_access_iterator_tagE8__copy_mIP6tripleSt20back_insert_iteratorISt6vectorIS3_SaIS3_EEEEET0_T_SB_SA_,@function
_ZNSt11__copy_moveILb0ELb0ESt26random_access_iterator_tagE8__copy_mIP6tripleSt20back_insert_iteratorISt6vectorIS3_SaIS3_EEEEET0_T_SB_SA_: # @_ZNSt11__copy_moveILb0ELb0ESt26random_access_iterator_tagE8__copy_mIP6tripleSt20back_insert_iteratorISt6vectorIS3_SaIS3_EEEEET0_T_SB_SA_
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rdx, %rbx
	subq	%rdi, %rsi
	testq	%rsi, %rsi
	jle	.LBB15_6
# %bb.1:                                # %.lr.ph
	movq	%rdi, %r14
	movabsq	$-6148914691236517205, %rcx     # imm = 0xAAAAAAAAAAAAAAAB
	movq	%rsi, %rax
	mulq	%rcx
	movq	%rdx, %r15
	shrq	$4, %r15
	incq	%r15
.LBB15_2:                               # =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rsi
	cmpq	16(%rbx), %rsi
	je	.LBB15_4
# %bb.3:                                #   in Loop: Header=BB15_2 Depth=1
	movq	16(%r14), %rax
	movq	%rax, 16(%rsi)
	movups	(%r14), %xmm0
	movups	%xmm0, (%rsi)
	addq	$24, 8(%rbx)
	jmp	.LBB15_5
.LBB15_4:                               #   in Loop: Header=BB15_2 Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_ZNSt6vectorI6tripleSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_
.LBB15_5:                               # %_ZNSt20back_insert_iteratorISt6vectorI6tripleSaIS1_EEEaSERKS1_.exit
                                        #   in Loop: Header=BB15_2 Depth=1
	addq	$24, %r14
	decq	%r15
	cmpq	$1, %r15
	jg	.LBB15_2
.LBB15_6:                               # %._crit_edge
	movq	%rbx, %rax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end15:
	.size	_ZNSt11__copy_moveILb0ELb0ESt26random_access_iterator_tagE8__copy_mIP6tripleSt20back_insert_iteratorISt6vectorIS3_SaIS3_EEEEET0_T_SB_SA_, .Lfunc_end15-_ZNSt11__copy_moveILb0ELb0ESt26random_access_iterator_tagE8__copy_mIP6tripleSt20back_insert_iteratorISt6vectorIS3_SaIS3_EEEEET0_T_SB_SA_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZSt7__mergeIN9__gnu_cxx17__normal_iteratorIP6tripleSt6vectorIS2_SaIS2_EEEES7_St20back_insert_iteratorIS6_ENS0_5__ops15_Iter_comp_iterISt7greaterIvEEEET1_T_SG_T0_SH_SF_T2_,"axG",@progbits,_ZSt7__mergeIN9__gnu_cxx17__normal_iteratorIP6tripleSt6vectorIS2_SaIS2_EEEES7_St20back_insert_iteratorIS6_ENS0_5__ops15_Iter_comp_iterISt7greaterIvEEEET1_T_SG_T0_SH_SF_T2_,comdat
	.weak	_ZSt7__mergeIN9__gnu_cxx17__normal_iteratorIP6tripleSt6vectorIS2_SaIS2_EEEES7_St20back_insert_iteratorIS6_ENS0_5__ops15_Iter_comp_iterISt7greaterIvEEEET1_T_SG_T0_SH_SF_T2_ # -- Begin function _ZSt7__mergeIN9__gnu_cxx17__normal_iteratorIP6tripleSt6vectorIS2_SaIS2_EEEES7_St20back_insert_iteratorIS6_ENS0_5__ops15_Iter_comp_iterISt7greaterIvEEEET1_T_SG_T0_SH_SF_T2_
	.type	_ZSt7__mergeIN9__gnu_cxx17__normal_iteratorIP6tripleSt6vectorIS2_SaIS2_EEEES7_St20back_insert_iteratorIS6_ENS0_5__ops15_Iter_comp_iterISt7greaterIvEEEET1_T_SG_T0_SH_SF_T2_,@function
_ZSt7__mergeIN9__gnu_cxx17__normal_iteratorIP6tripleSt6vectorIS2_SaIS2_EEEES7_St20back_insert_iteratorIS6_ENS0_5__ops15_Iter_comp_iterISt7greaterIvEEEET1_T_SG_T0_SH_SF_T2_: # @_ZSt7__mergeIN9__gnu_cxx17__normal_iteratorIP6tripleSt6vectorIS2_SaIS2_EEEES7_St20back_insert_iteratorIS6_ENS0_5__ops15_Iter_comp_iterISt7greaterIvEEEET1_T_SG_T0_SH_SF_T2_
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%r8, %r15
	movq	%rcx, %rbx
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r13
	cmpq	%rsi, %rdi
	je	.LBB16_12
.LBB16_1:                               # =>This Inner Loop Header: Depth=1
	cmpq	%rbx, %r14
	je	.LBB16_12
# %bb.2:                                #   in Loop: Header=BB16_1 Depth=1
	movsd	8(%r14), %xmm0                  # xmm0 = mem[0],zero
	ucomisd	8(%r13), %xmm0
	movq	8(%r15), %rsi
	movq	16(%r15), %rax
	jbe	.LBB16_7
# %bb.3:                                #   in Loop: Header=BB16_1 Depth=1
	cmpq	%rax, %rsi
	je	.LBB16_5
# %bb.4:                                #   in Loop: Header=BB16_1 Depth=1
	movq	16(%r14), %rax
	movq	%rax, 16(%rsi)
	movupd	(%r14), %xmm0
	movupd	%xmm0, (%rsi)
	addq	$24, 8(%r15)
	jmp	.LBB16_6
.LBB16_7:                               #   in Loop: Header=BB16_1 Depth=1
	cmpq	%rax, %rsi
	je	.LBB16_9
# %bb.8:                                #   in Loop: Header=BB16_1 Depth=1
	movq	16(%r13), %rax
	movq	%rax, 16(%rsi)
	movupd	(%r13), %xmm0
	movupd	%xmm0, (%rsi)
	addq	$24, 8(%r15)
	jmp	.LBB16_10
.LBB16_5:                               #   in Loop: Header=BB16_1 Depth=1
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_ZNSt6vectorI6tripleSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_
.LBB16_6:                               # %_ZNSt20back_insert_iteratorISt6vectorI6tripleSaIS1_EEEaSERKS1_.exit
                                        #   in Loop: Header=BB16_1 Depth=1
	addq	$24, %r14
	jmp	.LBB16_11
.LBB16_9:                               #   in Loop: Header=BB16_1 Depth=1
	movq	%r15, %rdi
	movq	%r13, %rdx
	callq	_ZNSt6vectorI6tripleSaIS0_EE17_M_realloc_insertIJRKS0_EEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_
.LBB16_10:                              # %_ZNSt20back_insert_iteratorISt6vectorI6tripleSaIS1_EEEaSERKS1_.exit10
                                        #   in Loop: Header=BB16_1 Depth=1
	addq	$24, %r13
.LBB16_11:                              #   in Loop: Header=BB16_1 Depth=1
	cmpq	%r12, %r13
	jne	.LBB16_1
.LBB16_12:                              # %.critedge
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_ZNSt11__copy_moveILb0ELb0ESt26random_access_iterator_tagE8__copy_mIP6tripleSt20back_insert_iteratorISt6vectorIS3_SaIS3_EEEEET0_T_SB_SA_
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	jmp	_ZNSt11__copy_moveILb0ELb0ESt26random_access_iterator_tagE8__copy_mIP6tripleSt20back_insert_iteratorISt6vectorIS3_SaIS3_EEEEET0_T_SB_SA_ # TAILCALL
.Lfunc_end16:
	.size	_ZSt7__mergeIN9__gnu_cxx17__normal_iteratorIP6tripleSt6vectorIS2_SaIS2_EEEES7_St20back_insert_iteratorIS6_ENS0_5__ops15_Iter_comp_iterISt7greaterIvEEEET1_T_SG_T0_SH_SF_T2_, .Lfunc_end16-_ZSt7__mergeIN9__gnu_cxx17__normal_iteratorIP6tripleSt6vectorIS2_SaIS2_EEEES7_St20back_insert_iteratorIS6_ENS0_5__ops15_Iter_comp_iterISt7greaterIvEEEET1_T_SG_T0_SH_SF_T2_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt15__new_allocatorIdE8allocateEmPKv,"axG",@progbits,_ZNSt15__new_allocatorIdE8allocateEmPKv,comdat
	.weak	_ZNSt15__new_allocatorIdE8allocateEmPKv # -- Begin function _ZNSt15__new_allocatorIdE8allocateEmPKv
	.p2align	1, 0x90
	.type	_ZNSt15__new_allocatorIdE8allocateEmPKv,@function
_ZNSt15__new_allocatorIdE8allocateEmPKv: # @_ZNSt15__new_allocatorIdE8allocateEmPKv
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	%rsi, %rax
	shrq	$60, %rax
	jne	.LBB17_1
# %bb.3:
	shlq	$3, %rsi
	movq	%rsi, %rdi
	popq	%rax
	.cfi_def_cfa_offset 8
	jmp	_Znwm                           # TAILCALL
.LBB17_1:
	.cfi_def_cfa_offset 16
	shrq	$61, %rsi
	je	.LBB17_2
# %bb.4:
	callq	_ZSt28__throw_bad_array_new_lengthv
.LBB17_2:
	callq	_ZSt17__throw_bad_allocv
.Lfunc_end17:
	.size	_ZNSt15__new_allocatorIdE8allocateEmPKv, .Lfunc_end17-_ZNSt15__new_allocatorIdE8allocateEmPKv
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt15__new_allocatorISt6vectorIdSaIdEEE8allocateEmPKv,"axG",@progbits,_ZNSt15__new_allocatorISt6vectorIdSaIdEEE8allocateEmPKv,comdat
	.weak	_ZNSt15__new_allocatorISt6vectorIdSaIdEEE8allocateEmPKv # -- Begin function _ZNSt15__new_allocatorISt6vectorIdSaIdEEE8allocateEmPKv
	.p2align	1, 0x90
	.type	_ZNSt15__new_allocatorISt6vectorIdSaIdEEE8allocateEmPKv,@function
_ZNSt15__new_allocatorISt6vectorIdSaIdEEE8allocateEmPKv: # @_ZNSt15__new_allocatorISt6vectorIdSaIdEEE8allocateEmPKv
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movabsq	$384307168202282326, %rax       # imm = 0x555555555555556
	cmpq	%rax, %rsi
	jae	.LBB18_1
# %bb.3:
	shlq	$3, %rsi
	leaq	(%rsi,%rsi,2), %rdi
	popq	%rax
	.cfi_def_cfa_offset 8
	jmp	_Znwm                           # TAILCALL
.LBB18_1:
	.cfi_def_cfa_offset 16
	movabsq	$768614336404564651, %rax       # imm = 0xAAAAAAAAAAAAAAB
	cmpq	%rax, %rsi
	jb	.LBB18_2
# %bb.4:
	callq	_ZSt28__throw_bad_array_new_lengthv
.LBB18_2:
	callq	_ZSt17__throw_bad_allocv
.Lfunc_end18:
	.size	_ZNSt15__new_allocatorISt6vectorIdSaIdEEE8allocateEmPKv, .Lfunc_end18-_ZNSt15__new_allocatorISt6vectorIdSaIdEEE8allocateEmPKv
	.cfi_endproc
                                        # -- End function
	.section	.text._ZSt18__do_uninit_fill_nIPSt6vectorIdSaIdEEmS2_ET_S4_T0_RKT1_,"axG",@progbits,_ZSt18__do_uninit_fill_nIPSt6vectorIdSaIdEEmS2_ET_S4_T0_RKT1_,comdat
	.weak	_ZSt18__do_uninit_fill_nIPSt6vectorIdSaIdEEmS2_ET_S4_T0_RKT1_ # -- Begin function _ZSt18__do_uninit_fill_nIPSt6vectorIdSaIdEEmS2_ET_S4_T0_RKT1_
	.type	_ZSt18__do_uninit_fill_nIPSt6vectorIdSaIdEEmS2_ET_S4_T0_RKT1_,@function
_ZSt18__do_uninit_fill_nIPSt6vectorIdSaIdEEmS2_ET_S4_T0_RKT1_: # @_ZSt18__do_uninit_fill_nIPSt6vectorIdSaIdEEmS2_ET_S4_T0_RKT1_
.Lfunc_begin4:
	.cfi_startproc
	.cfi_personality 3, __gxx_personality_v0
	.cfi_lsda 3, .Lexception4
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r12
	.cfi_def_cfa_offset 32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	pushq	%rax
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -40
	.cfi_offset %r12, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rdi, %rbx
	testq	%rsi, %rsi
	je	.LBB19_5
# %bb.1:                                # %.lr.ph.preheader
	movq	%rdx, %r14
	movq	%rsi, %r15
	xorl	%r12d, %r12d
.LBB19_2:                               # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	leaq	(%rbx,%r12), %rdi
.Ltmp52:
	movq	%r14, %rsi
	callq	_ZNSt6vectorIdSaIdEEC2ERKS1_
.Ltmp53:
# %bb.3:                                # %_ZSt10_ConstructISt6vectorIdSaIdEEJRKS2_EEvPT_DpOT0_.exit
                                        #   in Loop: Header=BB19_2 Depth=1
	addq	$24, %r12
	decq	%r15
	jne	.LBB19_2
# %bb.4:                                # %._crit_edge.loopexit
	addq	%r12, %rbx
.LBB19_5:                               # %._crit_edge
	movq	%rbx, %rax
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.LBB19_6:
	.cfi_def_cfa_offset 48
.Ltmp54:
	movq	%rax, %rdi
	callq	__cxa_begin_catch
	testq	%r12, %r12
	je	.LBB19_10
.LBB19_7:                               # %.lr.ph.i.i
                                        # =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	.LBB19_9
# %bb.8:                                #   in Loop: Header=BB19_7 Depth=1
	callq	_ZdlPv
.LBB19_9:                               # %_ZSt8_DestroyISt6vectorIdSaIdEEEvPT_.exit.i.i
                                        #   in Loop: Header=BB19_7 Depth=1
	addq	$24, %rbx
	addq	$-24, %r12
	jne	.LBB19_7
.LBB19_10:                              # %_ZSt8_DestroyIPSt6vectorIdSaIdEEEvT_S4_.exit
.Ltmp55:
	callq	__cxa_rethrow
.Ltmp56:
# %bb.14:
.LBB19_11:
.Ltmp57:
	movq	%rax, %rbx
.Ltmp58:
	callq	__cxa_end_catch
.Ltmp59:
# %bb.12:
	movq	%rbx, %rdi
	callq	_Unwind_Resume@PLT
.LBB19_13:
.Ltmp60:
	movq	%rax, %rdi
	callq	__clang_call_terminate
.Lfunc_end19:
	.size	_ZSt18__do_uninit_fill_nIPSt6vectorIdSaIdEEmS2_ET_S4_T0_RKT1_, .Lfunc_end19-_ZSt18__do_uninit_fill_nIPSt6vectorIdSaIdEEmS2_ET_S4_T0_RKT1_
	.cfi_endproc
	.section	.gcc_except_table._ZSt18__do_uninit_fill_nIPSt6vectorIdSaIdEEmS2_ET_S4_T0_RKT1_,"aG",@progbits,_ZSt18__do_uninit_fill_nIPSt6vectorIdSaIdEEmS2_ET_S4_T0_RKT1_,comdat
	.p2align	2, 0x0
GCC_except_table19:
.Lexception4:
	.byte	255                             # @LPStart Encoding = omit
	.byte	3                               # @TType Encoding = udata4
	.uleb128 .Lttbase0-.Lttbaseref0
.Lttbaseref0:
	.byte	1                               # Call site Encoding = uleb128
	.uleb128 .Lcst_end4-.Lcst_begin4
.Lcst_begin4:
	.uleb128 .Ltmp52-.Lfunc_begin4          # >> Call Site 1 <<
	.uleb128 .Ltmp53-.Ltmp52                #   Call between .Ltmp52 and .Ltmp53
	.uleb128 .Ltmp54-.Lfunc_begin4          #     jumps to .Ltmp54
	.byte	1                               #   On action: 1
	.uleb128 .Ltmp53-.Lfunc_begin4          # >> Call Site 2 <<
	.uleb128 .Ltmp55-.Ltmp53                #   Call between .Ltmp53 and .Ltmp55
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp55-.Lfunc_begin4          # >> Call Site 3 <<
	.uleb128 .Ltmp56-.Ltmp55                #   Call between .Ltmp55 and .Ltmp56
	.uleb128 .Ltmp57-.Lfunc_begin4          #     jumps to .Ltmp57
	.byte	0                               #   On action: cleanup
	.uleb128 .Ltmp58-.Lfunc_begin4          # >> Call Site 4 <<
	.uleb128 .Ltmp59-.Ltmp58                #   Call between .Ltmp58 and .Ltmp59
	.uleb128 .Ltmp60-.Lfunc_begin4          #     jumps to .Ltmp60
	.byte	1                               #   On action: 1
	.uleb128 .Ltmp59-.Lfunc_begin4          # >> Call Site 5 <<
	.uleb128 .Lfunc_end19-.Ltmp59           #   Call between .Ltmp59 and .Lfunc_end19
	.byte	0                               #     has no landing pad
	.byte	0                               #   On action: cleanup
.Lcst_end4:
	.byte	1                               # >> Action Record 1 <<
                                        #   Catch TypeInfo 1
	.byte	0                               #   No further actions
	.p2align	2, 0x0
                                        # >> Catch TypeInfos <<
	.long	0                               # TypeInfo 1
.Lttbase0:
	.p2align	2, 0x0
                                        # -- End function
	.section	.text._ZNSt6vectorIdSaIdEEC2ERKS1_,"axG",@progbits,_ZNSt6vectorIdSaIdEEC2ERKS1_,comdat
	.weak	_ZNSt6vectorIdSaIdEEC2ERKS1_    # -- Begin function _ZNSt6vectorIdSaIdEEC2ERKS1_
	.p2align	1, 0x90
	.type	_ZNSt6vectorIdSaIdEEC2ERKS1_,@function
_ZNSt6vectorIdSaIdEEC2ERKS1_:           # @_ZNSt6vectorIdSaIdEEC2ERKS1_
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r12
	.cfi_def_cfa_offset 32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	pushq	%rax
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -40
	.cfi_offset %r12, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	8(%rsi), %rax
	movq	(%rsi), %rcx
	movq	%rax, %r12
	subq	%rcx, %r12
	sarq	$3, %r12
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rdi)
	movq	$0, 16(%rdi)
	cmpq	%rcx, %rax
	je	.LBB20_1
# %bb.2:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorIdE8allocateEmPKv
	movq	%rax, %r15
	jmp	.LBB20_3
.LBB20_1:
	xorl	%r15d, %r15d
.LBB20_3:
	movq	%r15, (%rbx)
	movq	%r15, 8(%rbx)
	leaq	(%r15,%r12,8), %rax
	movq	%rax, 16(%rbx)
	movq	(%r14), %rsi
	movq	8(%r14), %r14
	subq	%rsi, %r14
	cmpq	$9, %r14
	jl	.LBB20_5
# %bb.4:
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	memmove@PLT
.LBB20_7:
	addq	%r14, %r15
	movq	%r15, 8(%rbx)
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.LBB20_5:
	.cfi_def_cfa_offset 48
	cmpq	$8, %r14
	jne	.LBB20_7
# %bb.6:
	movsd	(%rsi), %xmm0                   # xmm0 = mem[0],zero
	movsd	%xmm0, (%r15)
	jmp	.LBB20_7
.Lfunc_end20:
	.size	_ZNSt6vectorIdSaIdEEC2ERKS1_, .Lfunc_end20-_ZNSt6vectorIdSaIdEEC2ERKS1_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt6vectorISt4pairIddESaIS1_EE17_M_realloc_insertIJS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_,"axG",@progbits,_ZNSt6vectorISt4pairIddESaIS1_EE17_M_realloc_insertIJS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_,comdat
	.weak	_ZNSt6vectorISt4pairIddESaIS1_EE17_M_realloc_insertIJS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_ # -- Begin function _ZNSt6vectorISt4pairIddESaIS1_EE17_M_realloc_insertIJS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_
	.p2align	1, 0x90
	.type	_ZNSt6vectorISt4pairIddESaIS1_EE17_M_realloc_insertIJS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_,@function
_ZNSt6vectorISt4pairIddESaIS1_EE17_M_realloc_insertIJS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_: # @_ZNSt6vectorISt4pairIddESaIS1_EE17_M_realloc_insertIJS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	pushq	%rax
	.cfi_def_cfa_offset 64
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rdx, (%rsp)                    # 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	$1, %esi
	movl	$.L.str.2, %edx
	callq	_ZNKSt6vectorISt4pairIddESaIS1_EE12_M_check_lenEmPKc
	movq	%rax, %r14
	movq	(%rbx), %rdi
	movq	8(%rbx), %rbp
	movq	%r15, %r13
	subq	%rdi, %r13
	sarq	$4, %r13
	testq	%rax, %rax
	je	.LBB21_1
# %bb.2:
	movq	%rdi, %r12
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_ZNSt15__new_allocatorISt4pairIddEE8allocateEmPKv
	movq	%r12, %rdi
	movq	%rax, %r12
	jmp	.LBB21_3
.LBB21_1:
	xorl	%r12d, %r12d
.LBB21_3:                               # %_ZNSt12_Vector_baseISt4pairIddESaIS1_EE11_M_allocateEm.exit
	shlq	$4, %r13
	movq	(%rsp), %rax                    # 8-byte Reload
	movups	(%rax), %xmm0
	movups	%xmm0, (%r12,%r13)
	movq	%r12, %r13
	cmpq	%r15, %rdi
	je	.LBB21_6
# %bb.4:                                # %.lr.ph.i.i.i.preheader
	movq	%r12, %r13
	movq	%rdi, %rax
.LBB21_5:                               # %.lr.ph.i.i.i
                                        # =>This Inner Loop Header: Depth=1
	movups	(%rax), %xmm0
	movups	%xmm0, (%r13)
	addq	$16, %rax
	addq	$16, %r13
	cmpq	%r15, %rax
	jne	.LBB21_5
.LBB21_6:                               # %_ZNSt6vectorISt4pairIddESaIS1_EE11_S_relocateEPS1_S4_S4_RS2_.exit
	addq	$16, %r13
	cmpq	%r15, %rbp
	je	.LBB21_8
.LBB21_7:                               # %.lr.ph.i.i.i17
                                        # =>This Inner Loop Header: Depth=1
	movups	(%r15), %xmm0
	movups	%xmm0, (%r13)
	addq	$16, %r15
	addq	$16, %r13
	cmpq	%rbp, %r15
	jne	.LBB21_7
.LBB21_8:                               # %_ZNSt6vectorISt4pairIddESaIS1_EE11_S_relocateEPS1_S4_S4_RS2_.exit22
	testq	%rdi, %rdi
	je	.LBB21_10
# %bb.9:
	callq	_ZdlPv
.LBB21_10:                              # %_ZNSt12_Vector_baseISt4pairIddESaIS1_EE13_M_deallocateEPS1_m.exit
	movq	%r12, (%rbx)
	movq	%r13, 8(%rbx)
	shlq	$4, %r14
	addq	%r12, %r14
	movq	%r14, 16(%rbx)
	addq	$8, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end21:
	.size	_ZNSt6vectorISt4pairIddESaIS1_EE17_M_realloc_insertIJS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_, .Lfunc_end21-_ZNSt6vectorISt4pairIddESaIS1_EE17_M_realloc_insertIJS1_EEEvN9__gnu_cxx17__normal_iteratorIPS1_S3_EEDpOT_
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNKSt6vectorISt4pairIddESaIS1_EE12_M_check_lenEmPKc,"axG",@progbits,_ZNKSt6vectorISt4pairIddESaIS1_EE12_M_check_lenEmPKc,comdat
	.weak	_ZNKSt6vectorISt4pairIddESaIS1_EE12_M_check_lenEmPKc # -- Begin function _ZNKSt6vectorISt4pairIddESaIS1_EE12_M_check_lenEmPKc
	.p2align	1, 0x90
	.type	_ZNKSt6vectorISt4pairIddESaIS1_EE12_M_check_lenEmPKc,@function
_ZNKSt6vectorISt4pairIddESaIS1_EE12_M_check_lenEmPKc: # @_ZNKSt6vectorISt4pairIddESaIS1_EE12_M_check_lenEmPKc
	.cfi_startproc
# %bb.0:
	movabsq	$576460752303423487, %rcx       # imm = 0x7FFFFFFFFFFFFFF
	movq	8(%rdi), %r8
	subq	(%rdi), %r8
	sarq	$4, %r8
	movq	%rcx, %rax
	subq	%r8, %rax
	cmpq	%rsi, %rax
	jb	.LBB22_2
# %bb.1:
	cmpq	%rsi, %r8
	cmovaq	%r8, %rsi
	leaq	(%rsi,%r8), %rax
	cmpq	%rcx, %rax
	cmovaeq	%rcx, %rax
	addq	%r8, %rsi
	cmovbq	%rcx, %rax
	retq
.LBB22_2:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	%rdx, %rdi
	callq	_ZSt20__throw_length_errorPKc
.Lfunc_end22:
	.size	_ZNKSt6vectorISt4pairIddESaIS1_EE12_M_check_lenEmPKc, .Lfunc_end22-_ZNKSt6vectorISt4pairIddESaIS1_EE12_M_check_lenEmPKc
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt15__new_allocatorISt4pairIddEE8allocateEmPKv,"axG",@progbits,_ZNSt15__new_allocatorISt4pairIddEE8allocateEmPKv,comdat
	.weak	_ZNSt15__new_allocatorISt4pairIddEE8allocateEmPKv # -- Begin function _ZNSt15__new_allocatorISt4pairIddEE8allocateEmPKv
	.p2align	1, 0x90
	.type	_ZNSt15__new_allocatorISt4pairIddEE8allocateEmPKv,@function
_ZNSt15__new_allocatorISt4pairIddEE8allocateEmPKv: # @_ZNSt15__new_allocatorISt4pairIddEE8allocateEmPKv
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	%rsi, %rax
	shrq	$59, %rax
	jne	.LBB23_1
# %bb.3:
	shlq	$4, %rsi
	movq	%rsi, %rdi
	popq	%rax
	.cfi_def_cfa_offset 8
	jmp	_Znwm                           # TAILCALL
.LBB23_1:
	.cfi_def_cfa_offset 16
	shrq	$60, %rsi
	je	.LBB23_2
# %bb.4:
	callq	_ZSt28__throw_bad_array_new_lengthv
.LBB23_2:
	callq	_ZSt17__throw_bad_allocv
.Lfunc_end23:
	.size	_ZNSt15__new_allocatorISt4pairIddEE8allocateEmPKv, .Lfunc_end23-_ZNSt15__new_allocatorISt4pairIddEE8allocateEmPKv
	.cfi_endproc
                                        # -- End function
	.section	.text._ZNSt15__new_allocatorISt4pairIdxEE8allocateEmPKv,"axG",@progbits,_ZNSt15__new_allocatorISt4pairIdxEE8allocateEmPKv,comdat
	.weak	_ZNSt15__new_allocatorISt4pairIdxEE8allocateEmPKv # -- Begin function _ZNSt15__new_allocatorISt4pairIdxEE8allocateEmPKv
	.p2align	1, 0x90
	.type	_ZNSt15__new_allocatorISt4pairIdxEE8allocateEmPKv,@function
_ZNSt15__new_allocatorISt4pairIdxEE8allocateEmPKv: # @_ZNSt15__new_allocatorISt4pairIdxEE8allocateEmPKv
	.cfi_startproc
# %bb.0:
	pushq	%rax
	.cfi_def_cfa_offset 16
	movq	%rsi, %rax
	shrq	$59, %rax
	jne	.LBB24_1
# %bb.3:
	shlq	$4, %rsi
	movq	%rsi, %rdi
	popq	%rax
	.cfi_def_cfa_offset 8
	jmp	_Znwm                           # TAILCALL
.LBB24_1:
	.cfi_def_cfa_offset 16
	shrq	$60, %rsi
	je	.LBB24_2
# %bb.4:
	callq	_ZSt28__throw_bad_array_new_lengthv
.LBB24_2:
	callq	_ZSt17__throw_bad_allocv
.Lfunc_end24:
	.size	_ZNSt15__new_allocatorISt4pairIdxEE8allocateEmPKv, .Lfunc_end24-_ZNSt15__new_allocatorISt4pairIdxEE8allocateEmPKv
	.cfi_endproc
                                        # -- End function
	.type	.L.str,@object                  # @.str
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str:
	.asciz	"Computational Time : "
	.size	.L.str, 22

	.type	.L.str.1,@object                # @.str.1
.L.str.1:
	.asciz	" ms"
	.size	.L.str.1, 4

	.type	.L.str.2,@object                # @.str.2
.L.str.2:
	.asciz	"vector::_M_realloc_insert"
	.size	.L.str.2, 26

	.type	.L.str.3,@object                # @.str.3
.L.str.3:
	.asciz	"cannot create std::vector larger than max_size()"
	.size	.L.str.3, 49

	.type	__hip_cuid_,@object             # @__hip_cuid_
	.bss
	.globl	__hip_cuid_
__hip_cuid_:
	.byte	0                               # 0x0
	.size	__hip_cuid_, 1

	.ident	"AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7983d864936c4)"
	.section	".note.GNU-stack","",@progbits
	.addrsig
	.addrsig_sym __gxx_personality_v0
	.addrsig_sym _Unwind_Resume
	.addrsig_sym _ZSt4cout
	.addrsig_sym _ZSt3cin
	.addrsig_sym __hip_cuid_

	.text
	.p2alignl 7, 3214868480
	.fill 96, 4, 3214868480
	.type	__hip_cuid_,@object             ; @__hip_cuid_
	.section	.bss,"aw",@nobits
	.globl	__hip_cuid_
__hip_cuid_:
	.byte	0                               ; 0x0
	.size	__hip_cuid_, 1

	.ident	"AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7983d864936c4)"
	.section	".note.GNU-stack","",@progbits
	.addrsig
	.addrsig_sym __hip_cuid_
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.amdgpu_metadata
---
amdhsa.kernels:  []
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
