// File: /workspace/github_cpp_makefile_star2_O1/xnevs[P]bullimp/examples/../graph/ullimp_order.hpp
// Function: int ullimp::detail::clustering1<boost::adjacency_list<boost::setS, boost::vecS, boost::bidirectionalS, boost::no_property, Color, boost::no_property, boost::listS>>(boost::graph_traits<boost::adjacency_list<boost::setS, boost::vecS, boost::bidirectionalS, boost::no_property, Color, boost::no_property, boost::listS>>::vertex_descriptor, boost::adjacency_list<boost::setS, boost::vecS, boost::bidirectionalS, boost::no_property, Color, boost::no_property, boost::listS> const&)
int clustering1(typename boost::graph_traits<Graph>::vertex_descriptor u, Graph const & g) {
    using namespace boost;

    int c = 0;
    BGL_FORALL_ADJ_T(u, w, g, Graph) {
        BGL_FORALL_ADJ_T(w, r, g, Graph) {
            if(edge(r, u, g).second || edge(u, r, g).second) 
                ++c;
        }
        BGL_FORALL_INV_ADJ_T(w, r, g, Graph) {
            if(edge(r, u, g).second || edge(u, r, g).second) 
                ++c;
        }
    }
    BGL_FORALL_INV_ADJ_T(u, w, g, Graph) {
        BGL_FORALL_ADJ_T(w, r, g, Graph) {
            if(edge(r, u, g).second || edge(u, r, g).second) 
                ++c;
        }
        BGL_FORALL_INV_ADJ_T(w, r, g, Graph) {
            if(edge(r, u, g).second || edge(u, r, g).second) 
                ++c;
        }
    }
    return c;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movq 0x18(%rsi), %r15
imulq $0x68, %rdi, %rax
leaq (%r15,%rax), %r12
movq %rax, (%rsp)
leaq 0x8(%r15,%rax), %r13
movq 0x10(%r13), %rax
xorl %ebp, %ebp
cmpq %r13, %rax
je 0x53d3
movq %rax, 0x10(%rsp)
imulq $0x68, 0x20(%rax), %rax
movq %rax, 0x8(%rsp)
leaq 0x8(%r15,%rax), %r14
movq 0x10(%r14), %rax
cmpq %r14, %rax
je 0x5311
movq 0x20(%rax), %rcx
imulq $0x68, %rcx, %rdx
leaq 0x8(%r15,%rdx), %rdx
movq 0x8(%rdx), %rdi
movq %rdx, %rsi
testq %rdi, %rdi
je 0x52aa
movq %rdx, %rsi
xorl %r8d, %r8d
cmpq %rbx, 0x20(%rdi)
setb %r8b
cmovaeq %rdi, %rsi
movq 0x10(%rdi,%r8,8), %rdi
testq %rdi, %rdi
jne 0x5291
movq %rdx, %rdi
cmpq %rdx, %rsi
je 0x52bd
cmpq %rbx, 0x20(%rsi)
cmovaq %rdx, %rsi
movq %rsi, %rdi
cmpq %rdx, %rdi
jne 0x5302
movq 0x10(%r12), %rsi
movq %r13, %rdx
testq %rsi, %rsi
je 0x52ea
movq %r13, %rdx
xorl %edi, %edi
cmpq %rcx, 0x20(%rsi)
setb %dil
cmovaeq %rsi, %rdx
movq 0x10(%rsi,%rdi,8), %rsi
testq %rsi, %rsi
jne 0x52d2
movq %r13, %rsi
cmpq %r13, %rdx
je 0x52fd
cmpq %rcx, 0x20(%rdx)
cmovaq %r13, %rdx
movq %rdx, %rsi
cmpq %r13, %rsi
je 0x5304
incl %ebp
movq %rax, %rdi
callq 0x2180
jmp 0x526c
movq 0x8(%rsp), %rax
leaq 0x38(%r15,%rax), %r14
movq 0x10(%r14), %rax
cmpq %r14, %rax
je 0x53c4
movq 0x20(%rax), %rcx
imulq $0x68, %rcx, %rdx
leaq 0x8(%r15,%rdx), %rdx
movq 0x8(%rdx), %rdi
movq %rdx, %rsi
testq %rdi, %rdi
je 0x535d
movq %rdx, %rsi
xorl %r8d, %r8d
cmpq %rbx, 0x20(%rdi)
setb %r8b
cmovaeq %rdi, %rsi
movq 0x10(%rdi,%r8,8), %rdi
testq %rdi, %rdi
jne 0x5344
movq %rdx, %rdi
cmpq %rdx, %rsi
je 0x5370
cmpq %rbx, 0x20(%rsi)
cmovaq %rdx, %rsi
movq %rsi, %rdi
cmpq %rdx, %rdi
jne 0x53b5
movq 0x10(%r12), %rsi
movq %r13, %rdx
testq %rsi, %rsi
je 0x539d
movq %r13, %rdx
xorl %edi, %edi
cmpq %rcx, 0x20(%rsi)
setb %dil
cmovaeq %rsi, %rdx
movq 0x10(%rsi,%rdi,8), %rsi
testq %rsi, %rsi
jne 0x5385
movq %r13, %rsi
cmpq %r13, %rdx
je 0x53b0
cmpq %rcx, 0x20(%rdx)
cmovaq %r13, %rdx
movq %rdx, %rsi
cmpq %r13, %rsi
je 0x53b7
incl %ebp
movq %rax, %rdi
callq 0x2180
jmp 0x531f
movq 0x10(%rsp), %rdi
callq 0x2180
jmp 0x524b
movq (%rsp), %rax
leaq 0x38(%r15,%rax), %rcx
movq 0x10(%rcx), %rax
movq %rcx, (%rsp)
cmpq %rcx, %rax
je 0x5571
movq %rax, 0x10(%rsp)
imulq $0x68, 0x20(%rax), %rax
movq %rax, 0x8(%rsp)
leaq 0x8(%r15,%rax), %r14
movq 0x10(%r14), %rax
cmpq %r14, %rax
je 0x54aa
movq 0x20(%rax), %rcx
imulq $0x68, %rcx, %rdx
leaq 0x8(%r15,%rdx), %rdx
movq 0x8(%rdx), %rdi
movq %rdx, %rsi
testq %rdi, %rdi
je 0x5443
movq %rdx, %rsi
xorl %r8d, %r8d
cmpq %rbx, 0x20(%rdi)
setb %r8b
cmovaeq %rdi, %rsi
movq 0x10(%rdi,%r8,8), %rdi
testq %rdi, %rdi
jne 0x542a
movq %rdx, %rdi
cmpq %rdx, %rsi
je 0x5456
cmpq %rbx, 0x20(%rsi)
cmovaq %rdx, %rsi
movq %rsi, %rdi
cmpq %rdx, %rdi
jne 0x549b
movq 0x10(%r12), %rsi
movq %r13, %rdx
testq %rsi, %rsi
je 0x5483
movq %r13, %rdx
xorl %edi, %edi
cmpq %rcx, 0x20(%rsi)
setb %dil
cmovaeq %rsi, %rdx
movq 0x10(%rsi,%rdi,8), %rsi
testq %rsi, %rsi
jne 0x546b
movq %r13, %rsi
cmpq %r13, %rdx
je 0x5496
cmpq %rcx, 0x20(%rdx)
cmovaq %r13, %rdx
movq %rdx, %rsi
cmpq %r13, %rsi
je 0x549d
incl %ebp
movq %rax, %rdi
callq 0x2180
jmp 0x5405
movq 0x8(%rsp), %rax
leaq 0x38(%r15,%rax), %r14
movq 0x10(%r14), %rax
cmpq %r14, %rax
je 0x555d
movq 0x20(%rax), %rcx
imulq $0x68, %rcx, %rdx
leaq 0x8(%r15,%rdx), %rdx
movq 0x8(%rdx), %rdi
movq %rdx, %rsi
testq %rdi, %rdi
je 0x54f6
movq %rdx, %rsi
xorl %r8d, %r8d
cmpq %rbx, 0x20(%rdi)
setb %r8b
cmovaeq %rdi, %rsi
movq 0x10(%rdi,%r8,8), %rdi
testq %rdi, %rdi
jne 0x54dd
movq %rdx, %rdi
cmpq %rdx, %rsi
je 0x5509
cmpq %rbx, 0x20(%rsi)
cmovaq %rdx, %rsi
movq %rsi, %rdi
cmpq %rdx, %rdi
jne 0x554e
movq 0x10(%r12), %rsi
movq %r13, %rdx
testq %rsi, %rsi
je 0x5536
movq %r13, %rdx
xorl %edi, %edi
cmpq %rcx, 0x20(%rsi)
setb %dil
cmovaeq %rsi, %rdx
movq 0x10(%rsi,%rdi,8), %rsi
testq %rsi, %rsi
jne 0x551e
movq %r13, %rsi
cmpq %r13, %rdx
je 0x5549
cmpq %rcx, 0x20(%rdx)
cmovaq %r13, %rdx
movq %rdx, %rsi
cmpq %r13, %rsi
je 0x5550
incl %ebp
movq %rax, %rdi
callq 0x2180
jmp 0x54b8
movq 0x10(%rsp), %rdi
callq 0x2180
cmpq (%rsp), %rax
jne 0x53ed
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq