// File: /workspace/github_cpp_makefile_star2_O3/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, -0x44(%rbp)
movl %ecx, %r15d
movq %rdi, %rbx
movl %esi, -0x2c(%rbp)
movl %edx, -0x30(%rbp)
cmpl %edx, %esi
jle 0x66c5
movl %edx, -0x2c(%rbp)
movl %esi, -0x30(%rbp)
movl %esi, %eax
jmp 0x66c9
movl %edx, %eax
movl %esi, %edx
shlq $0x20, %rax
movl %edx, %ecx
orq %rax, %rcx
leaq -0x58(%rbp), %r12
movq %rcx, (%r12)
leaq 0xe8(%rbx), %r13
movq %r13, %rdi
movq %r12, %rsi
callq 0x6026
movq %rax, %r14
movq %r13, %rdi
movq %r12, %rsi
callq 0x6026
movq 0x10(%rax), %rcx
addq $0x8, %rax
testq %rcx, %rcx
je 0x672f
movq %rax, %rdx
xorl %esi, %esi
cmpl %r15d, 0x20(%rcx)
setl %sil
cmovgeq %rcx, %rdx
movq 0x10(%rcx,%rsi,8), %rcx
testq %rcx, %rcx
jne 0x670a
cmpq %rax, %rdx
je 0x672f
cmpl %r15d, 0x20(%rdx)
cmovleq %rdx, %rax
movq %r14, %rdi
movq %rax, %rsi
callq 0x60e4
movslq %r15d, %rax
cmpb $0x0, -0x44(%rbp)
movq %rax, -0x50(%rbp)
je 0x67e7
imulq $0x38, %rax, %r12
movq 0xd0(%rbx), %rdi
addq %r12, %rdi
leaq -0x2c(%rbp), %r13
movq %r13, %rsi
callq 0x77dc
movq %rax, %r14
movq 0xd0(%rbx), %rdi
addq %r12, %rdi
movq %r13, %rsi
callq 0x77dc
movq %rax, %r15
movl (%r13), %eax
leaq -0x30(%rbp), %r13
movl (%r13), %ecx
shlq $0x20, %rcx
orq %rax, %rcx
leaq -0x38(%rbp), %rsi
movq %rcx, (%rsi)
movq %rbx, %rdi
callq 0x7ac2
movl (%rax), %eax
movl (%r13), %ecx
shlq $0x20, %rcx
orq %rax, %rcx
leaq -0x40(%rbp), %rsi
movq %rcx, (%rsi)
movq %r15, %rdi
callq 0x7ea2
movq %r14, %rdi
movq %rax, %rsi
callq 0x7f04
movq 0xd0(%rbx), %rdi
addq %r12, %rdi
movq %r13, %rsi
callq 0x77dc
movq %rax, %r14
addq 0xd0(%rbx), %r12
jmp 0x687e
imulq $0x38, %rax, %r12
movq 0xb8(%rbx), %rdi
addq %r12, %rdi
leaq -0x2c(%rbp), %r13
movq %r13, %rsi
callq 0x77dc
movq %rax, %r14
movq 0xb8(%rbx), %rdi
addq %r12, %rdi
movq %r13, %rsi
callq 0x77dc
movq %rax, %r15
movl (%r13), %eax
leaq -0x30(%rbp), %r13
movl (%r13), %ecx
shlq $0x20, %rcx
orq %rax, %rcx
leaq -0x38(%rbp), %rsi
movq %rcx, (%rsi)
movq %rbx, %rdi
callq 0x7ac2
movl (%rax), %eax
movl (%r13), %ecx
shlq $0x20, %rcx
orq %rax, %rcx
leaq -0x40(%rbp), %rsi
movq %rcx, (%rsi)
movq %r15, %rdi
callq 0x7ea2
movq %r14, %rdi
movq %rax, %rsi
callq 0x7f04
movq 0xb8(%rbx), %rdi
addq %r12, %rdi
movq %r13, %rsi
callq 0x77dc
movq %rax, %r14
addq 0xb8(%rbx), %r12
movq %r12, %rdi
movq %r13, %rsi
callq 0x77dc
movq %rax, %r15
leaq -0x2c(%rbp), %r12
movl (%r12), %eax
movl (%r13), %ecx
shlq $0x20, %rcx
orq %rax, %rcx
leaq -0x38(%rbp), %rax
movq %rcx, (%rax)
leaq -0x38(%rbp), %rsi
movq %rbx, %rdi
callq 0x7ac2
movl (%rax), %eax
movl (%r12), %ecx
shlq $0x20, %rcx
orq %rax, %rcx
leaq -0x40(%rbp), %rax
movq %rcx, (%rax)
leaq -0x40(%rbp), %rsi
movq %r15, %rdi
callq 0x7ea2
movq %r14, %rdi
movq %rax, %rsi
callq 0x7f04
imulq $0x118, -0x50(%rbp), %r14 # imm = 0x118
movq 0x68(%rbx), %rdi
addq %r14, %rdi
movl -0x2c(%rbp), %esi
movzbl -0x44(%rbp), %r15d
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movl %r15d, %ecx
callq 0x301a
addq 0x68(%rbx), %r14
movl -0x30(%rbp), %esi
movq %r14, %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movl %r15d, %ecx
callq 0x301a
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop