// File: Laakeri[P]maxpre/src/./BIG.cpp
// Function: maxPreprocessor::Preprocessor::genIndex(std::vector<std::vector<int, std::allocator<int>>, std::allocator<std::vector<int, std::allocator<int>>>>&, std::vector<std::vector<int, std::allocator<int>>, std::allocator<std::vector<int, std::allocator<int>>>>&, int, int, int, int&, std::vector<int, std::allocator<int>>&, std::vector<int, std::allocator<int>>&, std::vector<int, std::allocator<int>>&, std::vector<int, std::allocator<int>>&, int)
void Preprocessor::genIndex(vector<vector<int> >& g, vector<vector<int> >& rg, int x, int u1, int u2, int& stamp, vector<int>& le, vector<int>& ri, vector<int>& up1, vector<int>& up2, int order) {
	if (BIGu2[x] == 4) return;
	BIGu2[x] = 4;
	up1[x] = u1;
	up2[x] = u2;
	le[x] = stamp++;
	vector<pair<int, int> > ne;
	ne.reserve(g[x].size() + rg[x].size());
	if (order != 1) {
		for (int nx : g[x]) {
			ne.push_back({nx, 1});
		}
		for (int nx : rg[x]) {
			ne.push_back({nx, 2});
		}
	}
	else {
		for (int nx : rg[x]) {
			ne.push_back({nx, 2});
		}
		for (int nx : g[x]) {
			ne.push_back({nx, 1});
		}
	}
	if (order == 0) {
		random_shuffle(ne.begin(), ne.begin() + g[x].size());
		random_shuffle(ne.begin() + g[x].size(), ne.end());
	}
	else if (order == 1) {
		random_shuffle(ne.begin(), ne.begin() + rg[x].size());
		random_shuffle(ne.begin() + rg[x].size(), ne.end());
	}
	else if (order == 2) {
		random_shuffle(ne.begin(), ne.end());
	}
	else {
		assert(0);
	}
	for (auto nx : ne) {
		if (nx.S == 1) genIndex(g, rg, nx.F, nx.F, u2, stamp, le, ri, up1, up2, order);
		else genIndex(g, rg, nx.F, u1, nx.F, stamp, le, ri, up1, up2, order);
	}
	ri[x] = stamp++;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x208, %rsp            # imm = 0x208
movl 0x38(%rbp), %eax
movq 0x30(%rbp), %rax
movq 0x28(%rbp), %rax
movq 0x20(%rbp), %rax
movq 0x18(%rbp), %rax
movq 0x10(%rbp), %rax
movq %rdi, -0x20(%rbp)
movq %rsi, -0x28(%rbp)
movq %rdx, -0x30(%rbp)
movl %ecx, -0x34(%rbp)
movl %r8d, -0x38(%rbp)
movl %r9d, -0x3c(%rbp)
movq -0x20(%rbp), %rdi
movq %rdi, -0x1a0(%rbp)
addq $0x3c8, %rdi            # imm = 0x3C8
movslq -0x34(%rbp), %rsi
callq 0xa7c0
cmpl $0x4, (%rax)
jne 0x23573
jmp 0x23ca1
movq -0x1a0(%rbp), %rdi
addq $0x3c8, %rdi            # imm = 0x3C8
movslq -0x34(%rbp), %rsi
callq 0xa7c0
movl $0x4, (%rax)
movl -0x38(%rbp), %eax
movl %eax, -0x1bc(%rbp)
movq 0x28(%rbp), %rdi
movslq -0x34(%rbp), %rsi
callq 0xa7c0
movl -0x1bc(%rbp), %ecx
movl %ecx, (%rax)
movl -0x3c(%rbp), %eax
movl %eax, -0x1b8(%rbp)
movq 0x30(%rbp), %rdi
movslq -0x34(%rbp), %rsi
callq 0xa7c0
movl -0x1b8(%rbp), %ecx
movl %ecx, (%rax)
movq 0x10(%rbp), %rax
movl (%rax), %ecx
movl %ecx, -0x1b4(%rbp)
incl %ecx
movl %ecx, (%rax)
movq 0x18(%rbp), %rdi
movslq -0x34(%rbp), %rsi
callq 0xa7c0
movl -0x1b4(%rbp), %ecx
movl %ecx, (%rax)
leaq -0x58(%rbp), %rdi
movq %rdi, -0x1a8(%rbp)
callq 0x3e9a0
movq -0x28(%rbp), %rdi
movslq -0x34(%rbp), %rsi
callq 0xaab0
movq %rax, %rdi
callq 0xf940
movq %rax, -0x1b0(%rbp)
movq -0x30(%rbp), %rdi
movslq -0x34(%rbp), %rsi
callq 0xaab0
movq %rax, %rdi
callq 0xf940
movq -0x1b0(%rbp), %rsi
movq -0x1a8(%rbp), %rdi
addq %rax, %rsi
callq 0x3e9c0
jmp 0x2364a
cmpl $0x1, 0x38(%rbp)
je 0x237b6
movq -0x28(%rbp), %rdi
movslq -0x34(%rbp), %rsi
callq 0xaab0
movq %rax, -0x70(%rbp)
movq -0x70(%rbp), %rdi
callq 0xa800
movq %rax, -0x78(%rbp)
movq -0x70(%rbp), %rdi
callq 0xa830
movq %rax, -0x80(%rbp)
leaq -0x78(%rbp), %rdi
leaq -0x80(%rbp), %rsi
callq 0xa860
testb $0x1, %al
jne 0x23692
jmp 0x23702
leaq -0x78(%rbp), %rdi
callq 0xa8a0
movl (%rax), %eax
movl %eax, -0x84(%rbp)
movl $0x1, -0x90(%rbp)
leaq -0x8c(%rbp), %rdi
leaq -0x84(%rbp), %rsi
leaq -0x90(%rbp), %rdx
callq 0x3e8f0
jmp 0x236c9
leaq -0x58(%rbp), %rdi
leaq -0x8c(%rbp), %rsi
callq 0x3eac0
jmp 0x236db
jmp 0x236dd
leaq -0x78(%rbp), %rdi
callq 0xa930
jmp 0x2367f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0x58(%rbp), %rdi
callq 0x3ece0
jmp 0x23caf
movq -0x30(%rbp), %rdi
movslq -0x34(%rbp), %rsi
callq 0xaab0
movq %rax, -0x98(%rbp)
movq -0x98(%rbp), %rdi
callq 0xa800
movq %rax, -0xa0(%rbp)
movq -0x98(%rbp), %rdi
callq 0xa830
movq %rax, -0xa8(%rbp)
leaq -0xa0(%rbp), %rdi
leaq -0xa8(%rbp), %rsi
callq 0xa860
testb $0x1, %al
jne 0x23755
jmp 0x237b1
leaq -0xa0(%rbp), %rdi
callq 0xa8a0
movl (%rax), %eax
movl %eax, -0xac(%rbp)
movl $0x2, -0xb8(%rbp)
leaq -0xb4(%rbp), %rdi
leaq -0xac(%rbp), %rsi
leaq -0xb8(%rbp), %rdx
callq 0x3e8f0
jmp 0x2378f
leaq -0x58(%rbp), %rdi
leaq -0xb4(%rbp), %rsi
callq 0x3eac0
jmp 0x237a1
jmp 0x237a3
leaq -0xa0(%rbp), %rdi
callq 0xa930
jmp 0x2373c
jmp 0x23916
movq -0x30(%rbp), %rdi
movslq -0x34(%rbp), %rsi
callq 0xaab0
movq %rax, -0xc0(%rbp)
movq -0xc0(%rbp), %rdi
callq 0xa800
movq %rax, -0xc8(%rbp)
movq -0xc0(%rbp), %rdi
callq 0xa830
movq %rax, -0xd0(%rbp)
leaq -0xc8(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
callq 0xa860
testb $0x1, %al
jne 0x23809
jmp 0x23865
leaq -0xc8(%rbp), %rdi
callq 0xa8a0
movl (%rax), %eax
movl %eax, -0xd4(%rbp)
movl $0x2, -0xe0(%rbp)
leaq -0xdc(%rbp), %rdi
leaq -0xd4(%rbp), %rsi
leaq -0xe0(%rbp), %rdx
callq 0x3e8f0
jmp 0x23843
leaq -0x58(%rbp), %rdi
leaq -0xdc(%rbp), %rsi
callq 0x3eac0
jmp 0x23855
jmp 0x23857
leaq -0xc8(%rbp), %rdi
callq 0xa930
jmp 0x237f0
movq -0x28(%rbp), %rdi
movslq -0x34(%rbp), %rsi
callq 0xaab0
movq %rax, -0xe8(%rbp)
movq -0xe8(%rbp), %rdi
callq 0xa800
movq %rax, -0xf0(%rbp)
movq -0xe8(%rbp), %rdi
callq 0xa830
movq %rax, -0xf8(%rbp)
leaq -0xf0(%rbp), %rdi
leaq -0xf8(%rbp), %rsi
callq 0xa860
testb $0x1, %al
jne 0x238b8
jmp 0x23914
leaq -0xf0(%rbp), %rdi
callq 0xa8a0
movl (%rax), %eax
movl %eax, -0xfc(%rbp)
movl $0x1, -0x108(%rbp)
leaq -0x104(%rbp), %rdi
leaq -0xfc(%rbp), %rsi
leaq -0x108(%rbp), %rdx
callq 0x3e8f0
jmp 0x238f2
leaq -0x58(%rbp), %rdi
leaq -0x104(%rbp), %rsi
callq 0x3eac0
jmp 0x23904
jmp 0x23906
leaq -0xf0(%rbp), %rdi
callq 0xa930
jmp 0x2389f
jmp 0x23916
cmpl $0x0, 0x38(%rbp)
jne 0x239f9
leaq -0x58(%rbp), %rdi
movq %rdi, -0x1c8(%rbp)
callq 0x3ebc0
movq -0x1c8(%rbp), %rdi
movq %rax, -0x110(%rbp)
callq 0x3ebc0
movq %rax, -0x120(%rbp)
movq -0x28(%rbp), %rdi
movslq -0x34(%rbp), %rsi
callq 0xaab0
movq %rax, %rdi
callq 0xf940
movq %rax, %rsi
leaq -0x120(%rbp), %rdi
callq 0x3ebf0
movq %rax, -0x118(%rbp)
movq -0x110(%rbp), %rdi
movq -0x118(%rbp), %rsi
callq 0x3eaf0
jmp 0x2398a
leaq -0x58(%rbp), %rdi
movq %rdi, -0x1d0(%rbp)
callq 0x3ebc0
movq %rax, -0x130(%rbp)
movq -0x28(%rbp), %rdi
movslq -0x34(%rbp), %rsi
callq 0xaab0
movq %rax, %rdi
callq 0xf940
movq %rax, %rsi
leaq -0x130(%rbp), %rdi
callq 0x3ebf0
movq -0x1d0(%rbp), %rdi
movq %rax, -0x128(%rbp)
callq 0x3ec30
movq %rax, -0x138(%rbp)
movq -0x128(%rbp), %rdi
movq -0x138(%rbp), %rsi
callq 0x3eaf0
jmp 0x239f4
jmp 0x23b43
cmpl $0x1, 0x38(%rbp)
jne 0x23ad9
leaq -0x58(%rbp), %rdi
movq %rdi, -0x1d8(%rbp)
callq 0x3ebc0
movq -0x1d8(%rbp), %rdi
movq %rax, -0x140(%rbp)
callq 0x3ebc0
movq %rax, -0x150(%rbp)
movq -0x30(%rbp), %rdi
movslq -0x34(%rbp), %rsi
callq 0xaab0
movq %rax, %rdi
callq 0xf940
movq %rax, %rsi
leaq -0x150(%rbp), %rdi
callq 0x3ebf0
movq %rax, -0x148(%rbp)
movq -0x140(%rbp), %rdi
movq -0x148(%rbp), %rsi
callq 0x3eaf0
jmp 0x23a6d
leaq -0x58(%rbp), %rdi
movq %rdi, -0x1e0(%rbp)
callq 0x3ebc0
movq %rax, -0x160(%rbp)
movq -0x30(%rbp), %rdi
movslq -0x34(%rbp), %rsi
callq 0xaab0
movq %rax, %rdi
callq 0xf940
movq %rax, %rsi
leaq -0x160(%rbp), %rdi
callq 0x3ebf0
movq -0x1e0(%rbp), %rdi
movq %rax, -0x158(%rbp)
callq 0x3ec30
movq %rax, -0x168(%rbp)
movq -0x158(%rbp), %rdi
movq -0x168(%rbp), %rsi
callq 0x3eaf0
jmp 0x23ad7
jmp 0x23b41
cmpl $0x2, 0x38(%rbp)
jne 0x23b20
leaq -0x58(%rbp), %rdi
movq %rdi, -0x1e8(%rbp)
callq 0x3ebc0
movq -0x1e8(%rbp), %rdi
movq %rax, -0x170(%rbp)
callq 0x3ec30
movq %rax, -0x178(%rbp)
movq -0x170(%rbp), %rdi
movq -0x178(%rbp), %rsi
callq 0x3eaf0
jmp 0x23b1e
jmp 0x23b3f
leaq 0x640fb(%rip), %rdi     # 0x87c22
leaq 0x62ffb(%rip), %rsi     # 0x86b29
movl $0x74, %edx
leaq 0x62ff9(%rip), %rcx     # 0x86b33
callq 0x4260
jmp 0x23b41
jmp 0x23b43
leaq -0x58(%rbp), %rax
movq %rax, -0x180(%rbp)
movq -0x180(%rbp), %rdi
callq 0x3ebc0
movq %rax, -0x188(%rbp)
movq -0x180(%rbp), %rdi
callq 0x3ec30
movq %rax, -0x190(%rbp)
leaq -0x188(%rbp), %rdi
leaq -0x190(%rbp), %rsi
callq 0x3ec60
testb $0x1, %al
jne 0x23b90
jmp 0x23c72
leaq -0x188(%rbp), %rdi
callq 0x3eca0
movq (%rax), %rax
movq %rax, -0x198(%rbp)
cmpl $0x1, -0x194(%rbp)
jne 0x23c07
movq -0x1a0(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x30(%rbp), %rdx
movl -0x198(%rbp), %r8d
movl -0x3c(%rbp), %r9d
movq 0x10(%rbp), %rcx
movq 0x18(%rbp), %r10
movq 0x20(%rbp), %r11
movq 0x28(%rbp), %rbx
movq 0x30(%rbp), %r14
movl 0x38(%rbp), %r15d
movq %rsp, %rax
movl %r15d, 0x28(%rax)
movq %r14, 0x20(%rax)
movq %rbx, 0x18(%rax)
movq %r11, 0x10(%rax)
movq %r10, 0x8(%rax)
movq %rcx, (%rax)
movl %r8d, %ecx
callq 0x23510
jmp 0x23c05
jmp 0x23c5f
movq -0x1a0(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x30(%rbp), %rdx
movl -0x198(%rbp), %r9d
movl -0x38(%rbp), %r8d
movq 0x10(%rbp), %rcx
movq 0x18(%rbp), %r10
movq 0x20(%rbp), %r11
movq 0x28(%rbp), %rbx
movq 0x30(%rbp), %r14
movl 0x38(%rbp), %r15d
movq %rsp, %rax
movl %r15d, 0x28(%rax)
movq %r14, 0x20(%rax)
movq %rbx, 0x18(%rax)
movq %r11, 0x10(%rax)
movq %r10, 0x8(%rax)
movq %rcx, (%rax)
movl %r9d, %ecx
callq 0x23510
jmp 0x23c5d
jmp 0x23c5f
jmp 0x23c61
leaq -0x188(%rbp), %rdi
callq 0x3ecc0
jmp 0x23b74
movq 0x10(%rbp), %rax
movl (%rax), %ecx
movl %ecx, -0x1ec(%rbp)
addl $0x1, %ecx
movl %ecx, (%rax)
movq 0x20(%rbp), %rdi
movslq -0x34(%rbp), %rsi
callq 0xa7c0
movl -0x1ec(%rbp), %ecx
movl %ecx, (%rax)
leaq -0x58(%rbp), %rdi
callq 0x3ece0
addq $0x208, %rsp            # imm = 0x208
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq -0x60(%rbp), %rdi
callq 0x4610
nopl (%rax,%rax)