// File: /workspace/github_cpp_makefile_star2_O1/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 0x6ac5
movl %edx, -0x2c(%rbp)
movl %esi, -0x30(%rbp)
movl -0x2c(%rbp), %eax
movl -0x30(%rbp), %ecx
shlq $0x20, %rcx
orq %rax, %rcx
leaq -0x58(%rbp), %r12
movq %rcx, (%r12)
leaq 0xe8(%rbx), %r13
movq %r13, %rdi
movq %r12, %rsi
callq 0x636e
movq %rax, %r14
movq %r13, %rdi
movq %r12, %rsi
callq 0x636e
movq 0x10(%rax), %rdx
addq $0x8, %rax
movq %rax, %rcx
testq %rdx, %rdx
je 0x6b25
movq %rax, %rcx
xorl %esi, %esi
cmpl %r15d, 0x20(%rdx)
setl %sil
cmovgeq %rdx, %rcx
movq 0x10(%rdx,%rsi,8), %rdx
testq %rdx, %rdx
jne 0x6b0d
cmpq %rax, %rcx
je 0x6b32
cmpl %r15d, 0x20(%rcx)
cmovleq %rcx, %rax
movq %r14, %rdi
movq %rax, %rsi
callq 0x643e
movslq %r15d, %rax
cmpb $0x0, -0x44(%rbp)
movq %rax, -0x50(%rbp)
je 0x6bea
imulq $0x38, %rax, %r12
movq 0xd0(%rbx), %rdi
addq %r12, %rdi
leaq -0x2c(%rbp), %r13
movq %r13, %rsi
callq 0x7bfa
movq %rax, %r14
movq 0xd0(%rbx), %rdi
addq %r12, %rdi
movq %r13, %rsi
callq 0x7bfa
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 0x7f1c
movl (%rax), %eax
movl (%r13), %ecx
shlq $0x20, %rcx
orq %rax, %rcx
leaq -0x40(%rbp), %rsi
movq %rcx, (%rsi)
movq %r15, %rdi
callq 0x82a0
movq %r14, %rdi
movq %rax, %rsi
callq 0x830c
movq 0xd0(%rbx), %rdi
addq %r12, %rdi
movq %r13, %rsi
callq 0x7bfa
movq %rax, %r14
addq 0xd0(%rbx), %r12
jmp 0x6c81
imulq $0x38, %rax, %r12
movq 0xb8(%rbx), %rdi
addq %r12, %rdi
leaq -0x2c(%rbp), %r13
movq %r13, %rsi
callq 0x7bfa
movq %rax, %r14
movq 0xb8(%rbx), %rdi
addq %r12, %rdi
movq %r13, %rsi
callq 0x7bfa
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 0x7f1c
movl (%rax), %eax
movl (%r13), %ecx
shlq $0x20, %rcx
orq %rax, %rcx
leaq -0x40(%rbp), %rsi
movq %rcx, (%rsi)
movq %r15, %rdi
callq 0x82a0
movq %r14, %rdi
movq %rax, %rsi
callq 0x830c
movq 0xb8(%rbx), %rdi
addq %r12, %rdi
movq %r13, %rsi
callq 0x7bfa
movq %rax, %r14
addq 0xb8(%rbx), %r12
movq %r12, %rdi
movq %r13, %rsi
callq 0x7bfa
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 0x7f1c
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 0x82a0
movq %r14, %rdi
movq %rax, %rsi
callq 0x830c
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 0x3014
addq 0x68(%rbx), %r14
movl -0x30(%rbp), %esi
movq %r14, %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movl %r15d, %ecx
callq 0x3014
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq