// File: /workspace/github_c_makefile_star2_O2/ComplexNetworks-DCC-FCUP[P]gtrieScanner/nauty/naugraph.c
// Function: targetcell
int
targetcell(graph *g, int *lab, int *ptn, int level, int tc_level,
           boolean digraph, int hint, int m, int n)
{
	int i;

        if (hint >= 0 && ptn[hint] > level &&
                         (hint == 0 || ptn[hint-1] <= level))
            return hint;
        else if (level <= tc_level)
            return bestcell(g,lab,ptn,level,tc_level,m,n);
        else
	{
            for (i = 0; i < n && ptn[i] <= level; ++i) {}
	    return (i == n ? 0 : i);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, %r15
movq %rdi, 0x20(%rsp)
movl 0x70(%rsp), %r13d
testl %r13d, %r13d
js 0xf488
movl %r13d, %eax
cmpl %ecx, (%rdx,%rax,4)
jle 0xf488
testl %r13d, %r13d
je 0xf790
cmpl %ecx, -0x4(%rdx,%rax,4)
jle 0xf793
movl 0x80(%rsp), %r13d
cmpl %r8d, %ecx
jle 0xf4ba
xorl %esi, %esi
testl %r13d, %r13d
movl $0x0, %eax
cmovgl %r13d, %eax
cmpq %rsi, %rax
je 0xf783
cmpl %ecx, (%rdx,%rsi,4)
jg 0xf781
incq %rsi
jmp 0xf4a3
movl 0x78(%rsp), %ebx
movslq %r13d, %rbp
movq 0x1a608(%rip), %rax     # 0x29ad0
cmpq %rbp, %rax
movq %rdx, 0x10(%rsp)
movl %ecx, 0xc(%rsp)
jae 0xf524
testq %rax, %rax
je 0xf4e7
movq 0x1a5f6(%rip), %rdi     # 0x29ad8
callq 0x2280
movq %rbp, 0x1a5e2(%rip)     # 0x29ad0
shlq $0x2, %rbp
movq %rbp, %rdi
callq 0x22d0
movq %rax, 0x1a5d7(%rip)     # 0x29ad8
testq %rax, %rax
movq 0x10(%rsp), %rdx
movl 0xc(%rsp), %ecx
jne 0xf524
leaq 0x24aa(%rip), %rdi      # 0x119c0
callq 0xda1f
movl 0xc(%rsp), %ecx
movq 0x10(%rsp), %rdx
movslq %ebx, %rsi
movq 0x1a5b2(%rip), %rax     # 0x29ae0
movq %rsi, %r14
cmpq %rsi, %rax
jae 0xf585
testq %rax, %rax
je 0xf547
movq 0x1a5a6(%rip), %rdi     # 0x29ae8
callq 0x2280
movq %r14, 0x1a592(%rip)     # 0x29ae0
leaq (,%r14,4), %rdi
callq 0x22d0
movq %rax, 0x1a586(%rip)     # 0x29ae8
testq %rax, %rax
movq 0x10(%rsp), %rdx
movl 0xc(%rsp), %ecx
jne 0xf585
leaq 0x2449(%rip), %rdi      # 0x119c0
callq 0xda1f
movl 0xc(%rsp), %ecx
movq 0x10(%rsp), %rdx
leal 0x2(%r13), %eax
movslq %eax, %rbx
movq 0x1a55d(%rip), %rax     # 0x29af0
cmpq %rbx, %rax
jae 0xf5e6
testq %rax, %rax
je 0xf5a9
movq 0x1a554(%rip), %rdi     # 0x29af8
callq 0x2280
movq %rbx, 0x1a540(%rip)     # 0x29af0
shlq $0x2, %rbx
movq %rbx, %rdi
callq 0x22d0
movq %rax, 0x1a535(%rip)     # 0x29af8
testq %rax, %rax
movq 0x10(%rsp), %rdx
movl 0xc(%rsp), %ecx
jne 0xf5e6
leaq 0x23e8(%rip), %rdi      # 0x119c0
callq 0xda1f
movl 0xc(%rsp), %ecx
movq 0x10(%rsp), %rdx
xorl %eax, %eax
movq 0x1a4e9(%rip), %rsi     # 0x29ad8
movq %rsi, 0x18(%rsp)
xorl %esi, %esi
movslq %esi, %r10
cmpl %r13d, %eax
jge 0xf629
movslq %eax, %rdi
cmpl %ecx, (%rdx,%rdi,4)
jle 0xf625
movq 0x18(%rsp), %r8
movl %eax, (%r8,%r10,4)
decl %eax
leaq (%rdx,%rdi,4), %r8
incl %eax
leaq 0x4(%r8), %rdi
cmpl %ecx, (%r8)
movq %rdi, %r8
jg 0xf615
incl %esi
incl %eax
jmp 0xf5f6
testl %esi, %esi
je 0xf793
movq 0x1a4c0(%rip), %rax     # 0x29af8
movl %esi, %esi
testl %esi, %esi
jle 0xf648
andl $0x0, -0x4(%rax,%rsi,4)
decq %rsi
jmp 0xf63a
movq 0x1a499(%rip), %rsi     # 0x29ae8
movq %r14, %rbx
movl %ebx, %r12d
leaq (%rsi,%r14,4), %rdi
addq $-0x4, %rdi
movq %rdi, 0x28(%rsp)
shlq $0x2, %rbx
addq $-0x4, 0x20(%rsp)
pushq $0x1
popq %r9
leaq 0x1e59(%rip), %r11      # 0x114d0
movq %r10, 0x30(%rsp)
cmpq %r10, %r9
jge 0xf754
movq 0x28(%rsp), %rdi
cmpq %rsi, %rdi
jb 0xf698
andl $0x0, (%rdi)
addq $-0x4, %rdi
jmp 0xf68a
movq 0x18(%rsp), %rdi
movl (%rdi,%r9,4), %edi
decl %edi
movslq %edi, %rdi
leaq 0x4(,%rdi,4), %r10
movl (%r15,%r10), %edi
movl %edi, %r8d
andl $0x1f, %r8d
movl (%r11,%r8,4), %r8d
sarl $0x5, %edi
movslq %edi, %rdi
orl %r8d, (%rsi,%rdi,4)
leaq 0x4(%r10), %rdi
cmpl %ecx, (%rdx,%r10)
movq %rdi, %r10
jg 0xf6ae
xorl %r11d, %r11d
movq 0x20(%rsp), %rdx
cmpq %r9, %r11
je 0xf737
movq 0x18(%rsp), %rcx
movslq (%rcx,%r11,4), %rcx
movslq (%r15,%rcx,4), %r13
imulq %rbx, %r13
addq %rdx, %r13
xorl %ecx, %ecx
movq %r12, %rdi
xorl %r8d, %r8d
testl %edi, %edi
jle 0xf721
movl -0x4(%rsi,%rdi,4), %r14d
movl (%r13,%rdi,4), %r10d
decq %rdi
movl %r10d, %ebp
andl %r14d, %ebp
orl %ebp, %ecx
notl %r10d
andl %r14d, %r10d
orl %r10d, %r8d
jmp 0xf6fd
testl %ecx, %ecx
je 0xf732
testl %r8d, %r8d
je 0xf732
incl (%rax,%r11,4)
incl (%rax,%r9,4)
incq %r11
jmp 0xf6dc
incq %r9
movq 0x10(%rsp), %rdx
movl 0xc(%rsp), %ecx
movq 0x30(%rsp), %r10
leaq 0x1d81(%rip), %r11      # 0x114d0
jmp 0xf67c
movl (%rax), %esi
xorl %ecx, %ecx
pushq $0x1
popq %rdi
cmpq %r10, %rdi
jge 0xf773
movl (%rax,%rdi,4), %r8d
cmpl %esi, %r8d
cmovgl %edi, %ecx
cmovgl %r8d, %esi
incq %rdi
jmp 0xf75b
movslq %ecx, %rcx
movq 0x18(%rsp), %rax
movl (%rax,%rcx,4), %r13d
jmp 0xf793
movl %esi, %eax
xorl %ecx, %ecx
cmpl %r13d, %eax
cmovnel %eax, %ecx
movl %ecx, %r13d
jmp 0xf793
xorl %r13d, %r13d
movl %r13d, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq