// File: /workspace/github_c_makefile_star2_O1/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
movl %ecx, %ebx
movq %rsi, %r15
movq %rdi, 0x28(%rsp)
movl 0x70(%rsp), %r14d
testl %r14d, %r14d
js 0xfefd
movl %r14d, %eax
cmpl %ebx, (%rdx,%rax,4)
jle 0xfefd
testl %r14d, %r14d
je 0x10210
cmpl %ebx, -0x4(%rdx,%rax,4)
jle 0x10210
movl 0x80(%rsp), %r14d
cmpl %r8d, %ebx
jle 0xff39
xorl %eax, %eax
movl $0x0, %ecx
testl %r14d, %r14d
jle 0xff2b
movl %r14d, %esi
xorl %ecx, %ecx
cmpl %ebx, (%rdx,%rcx,4)
jg 0xff2b
incq %rcx
cmpq %rcx, %rsi
jne 0xff1b
movl %r14d, %ecx
cmpl %r14d, %ecx
cmovnel %ecx, %eax
movl %eax, %r14d
jmp 0x10210
movslq %r14d, %r12
movq 0x19b6d(%rip), %rax     # 0x29ab0
cmpq %r12, %rax
movq %rdx, (%rsp)
jae 0xff90
testq %rax, %rax
je 0xff5d
movq 0x19b60(%rip), %rdi     # 0x29ab8
callq 0x2260
movq %r12, 0x19b4c(%rip)     # 0x29ab0
shlq $0x2, %r12
movq %r12, %rdi
callq 0x22a0
movq %rax, 0x19b41(%rip)     # 0x29ab8
testq %rax, %rax
movq (%rsp), %rdx
jne 0xff90
leaq 0x2a59(%rip), %rdi      # 0x129e0
callq 0xe265
movq (%rsp), %rdx
movslq 0x78(%rsp), %rcx
movq 0x19b24(%rip), %rax     # 0x29ac0
movq %rcx, 0x8(%rsp)
cmpq %rcx, %rax
jae 0xfff0
testq %rax, %rax
je 0xffb7
movq 0x19b16(%rip), %rdi     # 0x29ac8
callq 0x2260
movq 0x8(%rsp), %rax
movq %rax, 0x19afd(%rip)     # 0x29ac0
leaq (,%rax,4), %rdi
callq 0x22a0
movq %rax, 0x19af1(%rip)     # 0x29ac8
testq %rax, %rax
movq (%rsp), %rdx
jne 0xfff0
leaq 0x29f9(%rip), %rdi      # 0x129e0
callq 0xe265
movq (%rsp), %rdx
leal 0x2(%r14), %eax
movslq %eax, %r12
movq 0x19ad2(%rip), %rax     # 0x29ad0
cmpq %r12, %rax
jae 0x10047
testq %rax, %rax
je 0x10014
movq 0x19ac9(%rip), %rdi     # 0x29ad8
callq 0x2260
movq %r12, 0x19ab5(%rip)     # 0x29ad0
shlq $0x2, %r12
movq %r12, %rdi
callq 0x22a0
movq %rax, 0x19aaa(%rip)     # 0x29ad8
testq %rax, %rax
movq (%rsp), %rdx
jne 0x10047
leaq 0x29a2(%rip), %rdi      # 0x129e0
callq 0xe265
movq (%rsp), %rdx
xorl %ebp, %ebp
testl %r14d, %r14d
jle 0x10082
movq 0x19a63(%rip), %rax     # 0x29ab8
xorl %ecx, %ecx
movslq %ecx, %rsi
cmpl %ebx, (%rdx,%rsi,4)
jle 0x1007b
movslq %ebp, %rcx
movl %esi, (%rax,%rcx,4)
leal -0x1(%rsi), %ecx
leaq (%rdx,%rsi,4), %rdi
incl %ecx
leaq 0x4(%rdi), %rsi
cmpl %ebx, (%rdi)
movq %rsi, %rdi
jg 0x1006c
incl %ebp
incl %ecx
cmpl %r14d, %ecx
jl 0x10057
testl %ebp, %ebp
je 0x10210
movl %ebp, %r9d
movq %r9, 0x18(%rsp)
jle 0x100b3
movq 0x19a3d(%rip), %rdi     # 0x29ad8
leaq (,%r9,4), %rdx
xorl %esi, %esi
callq 0x2120
movq 0x18(%rsp), %r9
movq (%rsp), %rdx
movl %ebp, 0x14(%rsp)
cmpl $0x2, %ebp
jl 0x101d9
movq 0x19a01(%rip), %rax     # 0x29ac8
movq 0x8(%rsp), %rcx
leaq (%rax,%rcx,4), %rsi
addq $-0x4, %rsi
movq %rsi, 0x20(%rsp)
movq 0x199d8(%rip), %rsi     # 0x29ab8
movq 0x199f1(%rip), %rdi     # 0x29ad8
movq %rdi, 0x30(%rsp)
movl %ecx, %ebp
incq %rbp
movl $0x1, %r8d
leaq 0x23f2(%rip), %r11      # 0x124f0
cmpq %rax, 0x20(%rsp)
jb 0x10119
movq 0x20(%rsp), %rcx
movl $0x0, (%rcx)
addq $-0x4, %rcx
cmpq %rax, %rcx
jae 0x1010a
movl (%rsi,%r8,4), %ecx
decl %ecx
movslq %ecx, %rcx
leaq 0x4(,%rcx,4), %rcx
movl (%r15,%rcx), %edi
movl %edi, %r10d
andl $0x1f, %r10d
movl (%r11,%r10,4), %r10d
sarl $0x5, %edi
movslq %edi, %rdi
orl %r10d, (%rax,%rdi,4)
leaq 0x4(%rcx), %rdi
cmpl %ebx, (%rdx,%rcx)
movq %rdi, %rcx
jg 0x1012a
xorl %r10d, %r10d
movq 0x28(%rsp), %rdx
cmpl $0x0, 0x78(%rsp)
jle 0x101b5
movslq (%rsi,%r10,4), %rcx
movslq (%r15,%rcx,4), %rcx
imulq 0x8(%rsp), %rcx
leaq (%rdx,%rcx,4), %rcx
xorl %r11d, %r11d
movq %rbp, %rdi
xorl %r12d, %r12d
movl -0x8(%rax,%rdi,4), %r13d
movl -0x8(%rcx,%rdi,4), %r9d
movl %r9d, %r14d
andl %r13d, %r14d
orl %r14d, %r12d
notl %r9d
andl %r13d, %r9d
orl %r9d, %r11d
decq %rdi
cmpq $0x1, %rdi
jg 0x10179
testl %r12d, %r12d
je 0x101b5
testl %r11d, %r11d
je 0x101b5
movq 0x30(%rsp), %rcx
incl (%rcx,%r10,4)
incl (%rcx,%r8,4)
incq %r10
cmpq %r8, %r10
jne 0x10157
incq %r8
movq 0x18(%rsp), %r9
cmpq %r9, %r8
movq (%rsp), %rdx
leaq 0x231d(%rip), %r11      # 0x124f0
jne 0x100fe
xorl %eax, %eax
cmpl $0x2, 0x14(%rsp)
jl 0x10205
movq 0x198ef(%rip), %rcx     # 0x29ad8
movl (%rcx), %edx
movl $0x1, %esi
movl (%rcx,%rsi,4), %edi
cmpl %edx, %edi
cmovgl %esi, %eax
cmovgl %edi, %edx
incq %rsi
cmpq %rsi, %r9
jne 0x101f0
cltq
movq 0x198ac(%rip), %rcx     # 0x29ab8
movl (%rcx,%rax,4), %r14d
movl %r14d, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq