// File: /workspace/github_c_makefile_star2_O0/mishun[P]plantri/plantri.c
// Function: will_be_on_nf_3_cycle
static int
will_be_on_nf_3_cycle(EDGE *e)
     
/* returns TRUE if after switching e will be on an nf-3-cycle, FALSE else.
   Assumes that there are no nf 3-cycles already and that the mins of all
   edges on nf-4-cycles are marked low. */

{
  EDGE *run, *last, *dummy;

  if ((!ISMARKEDLO(e->next->min)) || (!ISMARKEDLO(e->prev->min))) return 0;
  /* If after switching it is on an nf-3-cycle, then they are on an nf-4-cycle
     already */

  RESETMARKS_V;

  dummy=e->next->invers;
  last=dummy->prev;
  run=dummy->next->next;
  MARK_V(run->end);
  while (run!=last)
    { run=run->next;
      MARK_V(run->end);
    }

  dummy=e->prev->invers;

  run=dummy->next;
  last=dummy->prev->prev;

  if (ISMARKED_V(run->end)) return 1;
  while (run!=last)
    { run=run->next;
      if (ISMARKED_V(run->end)) return 1;
    }

  return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq 0x28(%rax), %rax
movl 0x30(%rax), %eax
cmpl 0x16997(%rip), %eax     # 0x3c084
jne 0x25706
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq 0x28(%rax), %rax
movl 0x30(%rax), %eax
cmpl 0x16980(%rip), %eax     # 0x3c084
je 0x25712
movl $0x0, -0x4(%rbp)
jmp 0x25865
movl 0x16978(%rip), %eax     # 0x3c090
addl $0x1, %eax
movl %eax, 0x1696f(%rip)     # 0x3c090
cmpl $0x7530, %eax           # imm = 0x7530
jle 0x2575e
movl $0x1, 0x1695e(%rip)     # 0x3c090
movl $0x0, -0x2c(%rbp)
cmpl $0x40, -0x2c(%rbp)
jge 0x2575c
movslq -0x2c(%rbp), %rcx
leaq 0x27b4f6(%rip), %rax    # 0x2a0c40
movl $0x0, (%rax,%rcx,4)
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0x25739
jmp 0x2575e
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq 0x20(%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x28(%rbp), %rax
movq 0x18(%rax), %rax
movq 0x18(%rax), %rax
movq %rax, -0x18(%rbp)
movl 0x16900(%rip), %edx     # 0x3c090
movq -0x18(%rbp), %rax
movslq 0x4(%rax), %rcx
leaq 0x27b4a1(%rip), %rax    # 0x2a0c40
movl %edx, (%rax,%rcx,4)
movq -0x18(%rbp), %rax
cmpq -0x20(%rbp), %rax
je 0x257d2
movq -0x18(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x18(%rbp)
movl 0x168d2(%rip), %edx     # 0x3c090
movq -0x18(%rbp), %rax
movslq 0x4(%rax), %rcx
leaq 0x27b473(%rip), %rax    # 0x2a0c40
movl %edx, (%rax,%rcx,4)
jmp 0x257a2
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq 0x20(%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x18(%rbp)
movq -0x28(%rbp), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rax
movslq 0x4(%rax), %rcx
leaq 0x27b433(%rip), %rax    # 0x2a0c40
movl (%rax,%rcx,4), %eax
cmpl 0x1687a(%rip), %eax     # 0x3c090
jne 0x25821
movl $0x1, -0x4(%rbp)
jmp 0x25865
jmp 0x25823
movq -0x18(%rbp), %rax
cmpq -0x20(%rbp), %rax
je 0x2585e
movq -0x18(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movslq 0x4(%rax), %rcx
leaq 0x27b3f8(%rip), %rax    # 0x2a0c40
movl (%rax,%rcx,4), %eax
cmpl 0x1683f(%rip), %eax     # 0x3c090
jne 0x2585c
movl $0x1, -0x4(%rbp)
jmp 0x25865
jmp 0x25823
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
popq %rbp
retq
nopw (%rax,%rax)