// File: /workspace/github_cpp_makefile_star2_O2/yogesh1q2w[P]Dynamic-Graph-Algorithms/MST.cpp
// Function: MST::remove_edge_level(int, int, int, bool)
void MST::remove_edge_level(int u, int v, int level, bool is_treeedge) {
	if(u > v)
		swap(u, v);
	pair <int ,int> p = make_pair(u, v);
	edge_level[p].erase(edge_level[p].find(level));

	if(is_treeedge) {
		treeadj[level][u].erase(treeadj[level][u].find(make_pair(weight[make_pair(u,v)],v)));
		treeadj[level][v].erase(treeadj[level][v].find(make_pair(weight[make_pair(u,v)],u)));
	}
	else {
		adj[level][u].erase(adj[level][u].find(make_pair(weight[make_pair(u,v)],v)));
		adj[level][v].erase(adj[level][v].find(make_pair(weight[make_pair(u,v)],u)));
	}

	min_spf[level].update_adjacent(u, -1, is_treeedge);
	min_spf[level].update_adjacent(v, -1, is_treeedge);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movl %r8d, %r13d
movq %rdi, %rbx
movl %esi, -0x34(%rbp)
movl %edx, -0x30(%rbp)
movl %ecx, -0x2c(%rbp)
cmpl %edx, %esi
jle 0x6c50
movl %edx, -0x34(%rbp)
movl %esi, -0x30(%rbp)
movl %esi, %eax
jmp 0x6c54
movl %edx, %eax
movl %esi, %edx
shlq $0x20, %rax
movl %edx, %ecx
orq %rax, %rcx
leaq -0x58(%rbp), %r14
movq %rcx, (%r14)
leaq 0xe8(%rbx), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x6550
movq %rax, %r12
movq %r15, %rdi
movq %r14, %rsi
callq 0x6550
leaq -0x2c(%rbp), %r14
movq %rax, %rdi
movq %r14, %rsi
callq 0x664c
movq %r12, %rdi
movq %rax, %rsi
callq 0x66a4
movslq (%r14), %rax
movl %r13d, -0x4c(%rbp)
imulq $0x38, %rax, %rdi
testb %r13b, %r13b
je 0x6d58
addq 0xd0(%rbx), %rdi
leaq -0x34(%rbp), %r15
movq %r15, %rsi
callq 0x7b30
movq %rax, %r14
movslq -0x2c(%rbp), %rax
imulq $0x38, %rax, %rdi
addq 0xd0(%rbx), %rdi
movq %r15, %rsi
callq 0x7b30
movq %rax, %r13
movl (%r15), %eax
leaq -0x30(%rbp), %r12
movl (%r12), %ecx
shlq $0x20, %rcx
orq %rax, %rcx
leaq -0x40(%rbp), %rsi
movq %rcx, (%rsi)
movq %rbx, %rdi
callq 0x7ed0
movl (%rax), %eax
movl (%r12), %ecx
shlq $0x20, %rcx
orq %rax, %rcx
leaq -0x48(%rbp), %rsi
movq %rcx, (%rsi)
movq %r13, %rdi
callq 0x841c
movq %r14, %rdi
movq %rax, %rsi
callq 0x84a6
movslq -0x2c(%rbp), %rax
imulq $0x38, %rax, %rdi
addq 0xd0(%rbx), %rdi
movq %r12, %rsi
callq 0x7b30
movq %rax, %r14
movslq -0x2c(%rbp), %rax
imulq $0x38, %rax, %rdi
addq 0xd0(%rbx), %rdi
jmp 0x6df9
addq 0xb8(%rbx), %rdi
leaq -0x34(%rbp), %r15
movq %r15, %rsi
callq 0x7b30
movq %rax, %r14
movslq -0x2c(%rbp), %rax
imulq $0x38, %rax, %rdi
addq 0xb8(%rbx), %rdi
movq %r15, %rsi
callq 0x7b30
movq %rax, %r13
movl (%r15), %eax
leaq -0x30(%rbp), %r12
movl (%r12), %ecx
shlq $0x20, %rcx
orq %rax, %rcx
leaq -0x40(%rbp), %rsi
movq %rcx, (%rsi)
movq %rbx, %rdi
callq 0x7ed0
movl (%rax), %eax
movl (%r12), %ecx
shlq $0x20, %rcx
orq %rax, %rcx
leaq -0x48(%rbp), %rsi
movq %rcx, (%rsi)
movq %r13, %rdi
callq 0x841c
movq %r14, %rdi
movq %rax, %rsi
callq 0x84a6
movslq -0x2c(%rbp), %rax
imulq $0x38, %rax, %rdi
addq 0xb8(%rbx), %rdi
movq %r12, %rsi
callq 0x7b30
movq %rax, %r14
movslq -0x2c(%rbp), %rax
imulq $0x38, %rax, %rdi
addq 0xb8(%rbx), %rdi
movq %r12, %rsi
callq 0x7b30
movq %rax, %r13
movl (%r15), %eax
movl (%r12), %ecx
shlq $0x20, %rcx
orq %rax, %rcx
leaq -0x40(%rbp), %rax
movq %rcx, (%rax)
leaq -0x40(%rbp), %rsi
movq %rbx, %rdi
callq 0x7ed0
movl (%rax), %eax
movl (%r15), %ecx
shlq $0x20, %rcx
orq %rax, %rcx
leaq -0x48(%rbp), %rax
movq %rcx, (%rax)
leaq -0x48(%rbp), %rsi
movq %r13, %rdi
callq 0x841c
movq %r14, %rdi
movq %rax, %rsi
callq 0x84a6
movslq -0x2c(%rbp), %rax
imulq $0x118, %rax, %rdi      # imm = 0x118
addq 0x68(%rbx), %rdi
movl -0x34(%rbp), %esi
movzbl -0x4c(%rbp), %r14d
pushq $-0x1
popq %r15
movl %r15d, %edx
movl %r14d, %ecx
callq 0x2d84
movslq -0x2c(%rbp), %rax
imulq $0x118, %rax, %rdi      # imm = 0x118
addq 0x68(%rbx), %rdi
movl -0x30(%rbp), %esi
movl %r15d, %edx
movl %r14d, %ecx
callq 0x2d84
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop