// File: /workspace/github_c_makefile_star2_O0/mishun[P]plantri/plantri.c
// Function: find_double_makers
static void
find_double_makers(EDGE *list[], int *number, EDGE *de_list[])

/* Put into list[] the edges that can be flipped to make a new
   doubled edge.  Put in de_list[] an example of an edge which 
   will be in parallel with it after it is flipped.  Put in
   *number the number of such things.  All edges are in min form. */
{
    int i,j,num,degneeded;
    EDGE *run, *dummy;

    degneeded = (minimumdeg == 3 ? 4 : 3);

    num=0;
    for (i=0; i<nv; i++)
    if (degree[i]>=degneeded)
    {   run = firstedge[i];
        for (j=degree[i]; j; j--, run=run->next)
            if (run==run->min && degree[run->end]>=degneeded)
            {
                if (ISADJ(run->next->end,run->prev->end))
                {   dummy = firstedge[run->next->end];
                    while (dummy->end != run->prev->end) dummy = dummy->next;
                    list[num] = run; 
                    de_list[num] = dummy->min;
                    num++;
                }
            }
    }
    *number = num;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movl 0xe2c2(%rip), %edx      # 0x3c1b8
movl $0x3, %eax
movl $0x4, %ecx
cmpl $0x3, %edx
cmovel %ecx, %eax
movl %eax, -0x28(%rbp)
movl $0x0, -0x24(%rbp)
movl $0x0, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
cmpl 0x22c700(%rip), %eax    # 0x25a620
jge 0x2e068
movslq -0x1c(%rbp), %rcx
leaq 0xfccf(%rip), %rax      # 0x3dc00
movl (%rax,%rcx,4), %eax
cmpl -0x28(%rbp), %eax
jl 0x2e058
movslq -0x1c(%rbp), %rcx
leaq 0xfab8(%rip), %rax      # 0x3da00
movq (%rax,%rcx,8), %rax
movq %rax, -0x30(%rbp)
movslq -0x1c(%rbp), %rcx
leaq 0xfca5(%rip), %rax      # 0x3dc00
movl (%rax,%rcx,4), %eax
movl %eax, -0x20(%rbp)
cmpl $0x0, -0x20(%rbp)
je 0x2e056
movq -0x30(%rbp), %rax
movq -0x30(%rbp), %rcx
cmpq 0x28(%rcx), %rax
jne 0x2e03a
movq -0x30(%rbp), %rax
movslq 0x4(%rax), %rcx
leaq 0xfc74(%rip), %rax      # 0x3dc00
movl (%rax,%rcx,4), %eax
cmpl -0x28(%rbp), %eax
jl 0x2e03a
movq -0x30(%rbp), %rax
movq 0x18(%rax), %rax
movslq 0x4(%rax), %rcx
leaq 0x498cd5(%rip), %rax    # 0x4c6c80
movq (%rax,%rcx,8), %rax
movq -0x30(%rbp), %rcx
movq 0x10(%rcx), %rcx
movl 0x4(%rcx), %ecx
movl $0x1, %edx
shlq %cl, %rdx
movq %rdx, %rcx
andq %rcx, %rax
cmpq $0x0, %rax
je 0x2e038
movq -0x30(%rbp), %rax
movq 0x18(%rax), %rax
movslq 0x4(%rax), %rcx
leaq 0xfa1f(%rip), %rax      # 0x3da00
movq (%rax,%rcx,8), %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movl 0x4(%rax), %eax
movq -0x30(%rbp), %rcx
movq 0x10(%rcx), %rcx
cmpl 0x4(%rcx), %eax
je 0x2e00b
movq -0x38(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x38(%rbp)
jmp 0x2dfe9
movq -0x30(%rbp), %rdx
movq -0x8(%rbp), %rax
movslq -0x24(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movq -0x38(%rbp), %rax
movq 0x28(%rax), %rdx
movq -0x18(%rbp), %rax
movslq -0x24(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0x2e03a
jmp 0x2e03c
movl -0x20(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x20(%rbp)
movq -0x30(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x30(%rbp)
jmp 0x2df61
jmp 0x2e058
jmp 0x2e05a
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x2df17
movl -0x24(%rbp), %ecx
movq -0x10(%rbp), %rax
movl %ecx, (%rax)
popq %rbp
retq
nopw %cs:(%rax,%rax)