// File: /workspace/github_c_makefile_star2_O3/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 %rdx, %r14
movq %rsi, %r15
movq %rdi, 0x30(%rsp)
movl 0x70(%rsp), %r13d
testl %r13d, %r13d
js 0x100eb
movl %r13d, %eax
cmpl %ebx, (%r14,%rax,4)
jle 0x100eb
testl %r13d, %r13d
je 0x103d3
cmpl %ebx, -0x4(%r14,%rax,4)
jle 0x103e4
movl 0x80(%rsp), %r13d
cmpl %r8d, %ebx
jle 0x10128
xorl %eax, %eax
movl $0x0, %ecx
testl %r13d, %r13d
jle 0x1011a
movl %r13d, %edx
xorl %ecx, %ecx
cmpl %ebx, (%r14,%rcx,4)
jg 0x1011a
incq %rcx
cmpq %rcx, %rdx
jne 0x10109
movl %r13d, %ecx
cmpl %r13d, %ecx
cmovnel %ecx, %eax
movl %eax, %r13d
jmp 0x103e4
movslq %r13d, %r12
movq 0x1997e(%rip), %rax     # 0x29ab0
cmpq %r12, %rax
jae 0x10173
testq %rax, %rax
je 0x10148
movq 0x19975(%rip), %rdi     # 0x29ab8
callq 0x2260
movq %r12, 0x19961(%rip)     # 0x29ab0
shlq $0x2, %r12
movq %r12, %rdi
callq 0x22a0
movq %rax, 0x19956(%rip)     # 0x29ab8
testq %rax, %rax
jne 0x10173
leaq 0x2882(%rip), %rdi      # 0x129f0
callq 0xe47c
movslq 0x78(%rsp), %rcx
movq 0x19941(%rip), %rax     # 0x29ac0
movq %rcx, 0x10(%rsp)
cmpq %rcx, %rax
jae 0x101cb
testq %rax, %rax
je 0x1019a
movq 0x19933(%rip), %rdi     # 0x29ac8
callq 0x2260
movq 0x10(%rsp), %rax
movq %rax, 0x1991a(%rip)     # 0x29ac0
leaq (,%rax,4), %rdi
callq 0x22a0
movq %rax, 0x1990e(%rip)     # 0x29ac8
testq %rax, %rax
jne 0x101cb
leaq 0x282a(%rip), %rdi      # 0x129f0
callq 0xe47c
leal 0x2(%r13), %eax
movslq %eax, %r12
movq 0x198f7(%rip), %rax     # 0x29ad0
cmpq %r12, %rax
jae 0x1021a
testq %rax, %rax
je 0x101ef
movq 0x198ee(%rip), %rdi     # 0x29ad8
callq 0x2260
movq %r12, 0x198da(%rip)     # 0x29ad0
shlq $0x2, %r12
movq %r12, %rdi
callq 0x22a0
movq %rax, 0x198cf(%rip)     # 0x29ad8
testq %rax, %rax
jne 0x1021a
leaq 0x27db(%rip), %rdi      # 0x129f0
callq 0xe47c
testl %r13d, %r13d
jle 0x103e4
xorl %ebp, %ebp
movq 0x1988c(%rip), %rax     # 0x29ab8
movq %rax, 0x8(%rsp)
xorl %eax, %eax
movslq %eax, %rcx
cmpl %ebx, (%r14,%rcx,4)
jle 0x1025d
movslq %ebp, %rax
movq 0x8(%rsp), %rdx
movl %ecx, (%rdx,%rax,4)
leal -0x1(%rcx), %eax
leaq (%r14,%rcx,4), %rcx
incl %eax
leaq 0x4(%rcx), %rdx
cmpl %ebx, (%rcx)
movq %rdx, %rcx
jg 0x1024e
incl %ebp
incl %eax
cmpl %r13d, %eax
jl 0x10233
testl %ebp, %ebp
je 0x103e4
jle 0x103d8
movq 0x1985f(%rip), %rdi     # 0x29ad8
movl %ebp, %eax
movq %rax, 0x18(%rsp)
leaq (,%rax,4), %rdx
xorl %r12d, %r12d
movq %rdi, 0x28(%rsp)
xorl %esi, %esi
callq 0x2120
cmpl $0x1, %ebp
je 0x103db
movq 0x19821(%rip), %rax     # 0x29ac8
movq 0x10(%rsp), %rcx
leaq (%rax,%rcx,4), %rdx
addq $-0x4, %rdx
movq %rdx, 0x20(%rsp)
movl %ecx, %edx
incq %rdx
movl $0x1, %esi
leaq 0x2236(%rip), %rdi      # 0x12500
cmpq %rax, 0x20(%rsp)
jb 0x102e6
movq 0x20(%rsp), %r8
movl $0x0, (%r8)
addq $-0x4, %r8
cmpq %rax, %r8
jae 0x102d6
movq 0x8(%rsp), %rcx
movl (%rcx,%rsi,4), %r8d
decl %r8d
movslq %r8d, %r8
leaq 0x4(,%r8,4), %r8
movl (%r15,%r8), %r9d
movl %r9d, %r10d
andl $0x1f, %r10d
movl (%rdi,%r10,4), %r10d
sarl $0x5, %r9d
movslq %r9d, %r9
orl %r10d, (%rax,%r9,4)
leaq 0x4(%r8), %r9
cmpl %ebx, (%r14,%r8)
movq %r9, %r8
jg 0x102fd
xorl %r8d, %r8d
cmpl $0x0, 0x78(%rsp)
jle 0x10392
movq %r14, %r13
movq 0x8(%rsp), %rcx
movslq (%rcx,%r8,4), %r9
movslq (%r15,%r9,4), %r9
imulq 0x10(%rsp), %r9
movq 0x30(%rsp), %rcx
leaq (%rcx,%r9,4), %r10
xorl %r9d, %r9d
movq %rdx, %r11
xorl %ebp, %ebp
movl -0x8(%rax,%r11,4), %ecx
movl -0x8(%r10,%r11,4), %r14d
movl %r14d, %r12d
andl %ecx, %r12d
orl %r12d, %ebp
notl %r14d
andl %ecx, %r14d
orl %r14d, %r9d
decq %r11
cmpq $0x1, %r11
jg 0x10355
testl %ebp, %ebp
movq %r13, %r14
je 0x10392
testl %r9d, %r9d
je 0x10392
movq 0x28(%rsp), %rcx
incl (%rcx,%r8,4)
incl (%rcx,%rsi,4)
incq %r8
cmpq %rsi, %r8
jne 0x10327
incq %rsi
cmpq 0x18(%rsp), %rsi
jne 0x102ca
movq 0x28(%rsp), %rdi
movl (%rdi), %ecx
xorl %eax, %eax
movl $0x1, %edx
movq 0x18(%rsp), %r8
movl (%rdi,%rdx,4), %esi
cmpl %ecx, %esi
cmovgl %edx, %eax
cmovgl %esi, %ecx
incq %rdx
cmpq %rdx, %r8
jne 0x103bb
movslq %eax, %r12
jmp 0x103db
xorl %r13d, %r13d
jmp 0x103e4
xorl %r12d, %r12d
movq 0x8(%rsp), %rax
movl (%rax,%r12,4), %r13d
movl %r13d, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq