// File: /workspace/github_c_makefile_star2_O2/mishun[P]plantri/plantri.c
// Function: write_dual_alpha
static void
write_dual_alpha(FILE *f, int doflip)

/* Write the dual in alphabetic format.  Always write in next direction,
   and if doflip != 0 also write in prev direction. */
{
    int i,j,start;
    unsigned char code[MAXN+MAXE+4];
    unsigned char precode[MAXN+MAXE+1];
    size_t length;

    length=2+ne+(ne/2)-nv;
    compute_dual_code(precode);

    if (precode[0] >= 10) 
    {
        code[0] = '0' + precode[0]/10;
        code[1] = '0' + precode[0]%10;
        code[2] = ' ';
        length += 3;
	start=3;
    }
    else
    {
        code[0] = '0' + precode[0];
        code[1] = ' ';
        length += 2;
	start=2;
    }

    for (i = 1, j=start; j < length; ++i, ++j)
        if (precode[i]==0) code[j]=',';
        else code[j]=precode[i]-1+'a';

    code[j-1]='\n';
    if (fwrite(code,sizeof(unsigned char),length,f) != length)
    {
        fprintf(stderr,">E %s: fwrite() failed\n",cmdname);
        perror(">E ");
        exit(1);
    }
    if (doflip)
      { compute_dual_code_mirror(precode);
        for (i = 1, j=start; j < length; ++i, ++j)
	    if (precode[i]==0) code[j]=',';
            else code[j]=precode[i]-1+'a';
        code[j-1]='\n';
        if (fwrite(code,sizeof(unsigned char),length,f) != length)
	  {
	    fprintf(stderr,">E %s: fwrite() failed\n",cmdname);
	    perror(">E ");
	    exit(1);
	  }
      }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x388, %rsp            # imm = 0x388
movl %esi, %ebp
movq %rdi, 0x8(%rsp)
movl 0x238bf8(%rip), %ecx    # 0x242604
pushq $0x2
popq %rsi
movl %ecx, %eax
cltd
idivl %esi
addl %ecx, %eax
subl 0x238be4(%rip), %eax    # 0x242600
addl $0x2, %eax
movslq %eax, %r14
leaq 0x1d0(%rsp), %r15
movq %r15, %rdi
callq 0xa513
movb (%r15), %al
cmpb $0xa, %al
jb 0x9a51
movzbl %al, %eax
movb $0xa, %cl
divb %cl
movzbl %ah, %ecx
addb $0x30, %al
orb $0x30, %cl
movb $0x20, 0x12(%rsp)
pushq $0x3
jmp 0x9a57
orb $0x30, %al
movb $0x20, %cl
pushq $0x2
popq %r15
movabsq $-0x100000000, %rdx     # imm = 0xFFFFFFFF00000000
movabsq $0x100000000, %r12      # imm = 0x100000000
addq %r15, %r14
movb %al, 0x10(%rsp)
movb %cl, 0x11(%rsp)
movq %r15, %r13
shlq $0x20, %r13
leaq (%rdx,%r13), %rax
leaq 0x1d1(%rsp), %rcx
pushq $0x2c
popq %rbx
movq %r15, %rdx
cmpq %rdx, %r14
jbe 0x9ab6
movb (%rcx), %sil
leal 0x60(%rsi), %edi
testb %sil, %sil
movzbl %dil, %esi
cmovel %ebx, %esi
movb %sil, 0x10(%rsp,%rdx)
incq %rdx
addq %r12, %rax
incq %rcx
jmp 0x9a91
sarq $0x20, %rax
movb $0xa, 0x10(%rsp,%rax)
leaq 0x10(%rsp), %rdi
pushq $0x1
popq %rsi
movq %r14, %rdx
movq 0x8(%rsp), %rcx
callq 0x10c0
cmpq %r14, %rax
jne 0x9b57
testl %ebp, %ebp
je 0x9b45
leaq 0x1d0(%rsp), %rdi
callq 0xa6b0
movabsq $-0x100000000, %rax     # imm = 0xFFFFFFFF00000000
addq %rax, %r13
leaq 0x1d1(%rsp), %rax
cmpq %r15, %r14
jbe 0x9b21
movb (%rax), %cl
leal 0x60(%rcx), %edx
testb %cl, %cl
movzbl %dl, %ecx
cmovel %ebx, %ecx
movb %cl, 0x10(%rsp,%r15)
incq %r15
addq %r12, %r13
incq %rax
jmp 0x9aff
sarq $0x20, %r13
movb $0xa, 0x10(%rsp,%r13)
leaq 0x10(%rsp), %rdi
pushq $0x1
popq %rsi
movq %r14, %rdx
movq 0x8(%rsp), %rcx
callq 0x10c0
cmpq %r14, %rax
jne 0x9b57
addq $0x388, %rsp            # imm = 0x388
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x1a49a(%rip), %rax     # 0x23ff8
movq (%rax), %rdi
movq 0x1a548(%rip), %rdx     # 0x240b0
leaq 0x14972(%rip), %rsi     # 0x1e4e1
xorl %eax, %eax
callq 0x1050
leaq 0x148f8(%rip), %rdi     # 0x1e475
callq 0x1090
pushq $0x1
popq %rdi
callq 0x10b0