// File: /workspace/github_c_makefile_star2_O0/mishun[P]plantri/plantri.c
// Function: make_me_a_star
static void
make_me_a_star(int n)

/* Makes a star on n vertices -- so one vertex of degree n-1
   and n-1 vertices of degree 1 */
{
   int i;
   EDGE *buffer, *buffer2;

   if (n==1) { nv=1; ne=0; firstedge[0]=NULL; return; }

   firstedge[0]=edges;
   degree[0]=n-1;
   for (i=1, buffer=edges, buffer2=edges+n-1;
	i<=n-1;i++,buffer++,buffer2++)
     { buffer->start=buffer2->end=0;
       buffer->end=buffer2->start=i;
       buffer->invers=buffer2;
       buffer2->invers=buffer;
       buffer->min=buffer2->min=buffer;
       buffer2->prev=buffer2->next=buffer2;
       degree[i]=1;
       firstedge[i]=buffer2;
     }
   
   buffer=edges; /* buffer leading to 1 */
   if (n>2) buffer->next=buffer+1; else buffer->next=buffer;
   buffer->prev=buffer+n-2;
   for (i=2,buffer++; i<n-1; i++, buffer++) /* buffer leading to i */
     { buffer->prev=buffer-1;
       buffer->next=buffer+1;
     }
   if (n>2) /* buffer leading to n-1 */
     {
       buffer->prev=buffer-1;
       buffer->next=edges;
     }

    nv=n;
    ne=2*(n-1);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl %edi, -0x4(%rbp)
cmpl $0x1, -0x4(%rbp)
jne 0x7e91
movl $0x1, 0x2527a9(%rip)    # 0x25a620
movl $0x0, 0x2527a3(%rip)    # 0x25a624
movq $0x0, 0x35b74(%rip) # 0x3da00
jmp 0x8075
leaq 0x252798(%rip), %rax    # 0x25a630
movq %rax, 0x35b61(%rip)     # 0x3da00
movl -0x4(%rbp), %eax
subl $0x1, %eax
movl %eax, 0x35d55(%rip)     # 0x3dc00
movl $0x1, -0x8(%rbp)
leaq 0x252777(%rip), %rax    # 0x25a630
movq %rax, -0x10(%rbp)
movslq -0x4(%rbp), %rcx
leaq 0x252768(%rip), %rax    # 0x25a630
shlq $0x6, %rcx
addq %rcx, %rax
addq $-0x40, %rax
movq %rax, -0x18(%rbp)
movl -0x8(%rbp), %eax
movl -0x4(%rbp), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jg 0x7f98
movq -0x18(%rbp), %rax
movl $0x0, 0x4(%rax)
movq -0x10(%rbp), %rax
movl $0x0, (%rax)
movl -0x8(%rbp), %ecx
movq -0x18(%rbp), %rax
movl %ecx, (%rax)
movq -0x10(%rbp), %rax
movl %ecx, 0x4(%rax)
movq -0x18(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x20(%rax)
movq -0x10(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x20(%rax)
movq -0x10(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x28(%rax)
movq -0x10(%rbp), %rax
movq %rcx, 0x28(%rax)
movq -0x18(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x18(%rax)
movq -0x18(%rbp), %rax
movq %rcx, 0x10(%rax)
movslq -0x8(%rbp), %rcx
leaq 0x35ca8(%rip), %rax     # 0x3dc00
movl $0x1, (%rax,%rcx,4)
movq -0x18(%rbp), %rdx
movslq -0x8(%rbp), %rcx
leaq 0x35a92(%rip), %rax     # 0x3da00
movq %rdx, (%rax,%rcx,8)
movl -0x8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x8(%rbp)
movq -0x10(%rbp), %rax
addq $0x40, %rax
movq %rax, -0x10(%rbp)
movq -0x18(%rbp), %rax
addq $0x40, %rax
movq %rax, -0x18(%rbp)
jmp 0x7ed7
leaq 0x252691(%rip), %rax    # 0x25a630
movq %rax, -0x10(%rbp)
cmpl $0x2, -0x4(%rbp)
jle 0x7fbb
movq -0x10(%rbp), %rcx
addq $0x40, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x18(%rax)
jmp 0x7fc7
movq -0x10(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x18(%rax)
movq -0x10(%rbp), %rcx
movslq -0x4(%rbp), %rax
shlq $0x6, %rax
addq %rax, %rcx
addq $-0x80, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x10(%rax)
movl $0x2, -0x8(%rbp)
movq -0x10(%rbp), %rax
addq $0x40, %rax
movq %rax, -0x10(%rbp)
movl -0x8(%rbp), %eax
movl -0x4(%rbp), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jge 0x8039
movq -0x10(%rbp), %rcx
addq $-0x40, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x10(%rbp), %rcx
addq $0x40, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x18(%rax)
movl -0x8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x8(%rbp)
movq -0x10(%rbp), %rax
addq $0x40, %rax
movq %rax, -0x10(%rbp)
jmp 0x7ff5
cmpl $0x2, -0x4(%rbp)
jle 0x805e
movq -0x10(%rbp), %rcx
addq $-0x40, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x10(%rbp), %rax
leaq 0x2525d6(%rip), %rcx    # 0x25a630
movq %rcx, 0x18(%rax)
movl -0x4(%rbp), %eax
movl %eax, 0x2525b9(%rip)    # 0x25a620
movl -0x4(%rbp), %eax
subl $0x1, %eax
shll %eax
movl %eax, 0x2525af(%rip)    # 0x25a624
popq %rbp
retq
nopw (%rax,%rax)