// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x3a0, %rsp            # imm = 0x3A0
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl 0x2504bc(%rip), %eax    # 0x25a624
addl $0x2, %eax
movl %eax, -0x39c(%rbp)
movl 0x2504ad(%rip), %eax    # 0x25a624
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl -0x39c(%rbp), %eax
addl %ecx, %eax
subl 0x250491(%rip), %eax    # 0x25a620
cltq
movq %rax, -0x398(%rbp)
leaq -0x390(%rbp), %rdi
callq 0xb000
movzbl -0x390(%rbp), %eax
cmpl $0xa, %eax
jl 0xa204
movzbl -0x390(%rbp), %eax
movl $0xa, %ecx
cltd
idivl %ecx
addl $0x30, %eax
movb %al, -0x1d0(%rbp)
movzbl -0x390(%rbp), %eax
movl $0xa, %ecx
cltd
idivl %ecx
addl $0x30, %edx
movb %dl, %al
movb %al, -0x1cf(%rbp)
movb $0x20, -0x1ce(%rbp)
movq -0x398(%rbp), %rax
addq $0x3, %rax
movq %rax, -0x398(%rbp)
movl $0x3, -0x18(%rbp)
jmp 0xa234
movzbl -0x390(%rbp), %eax
addl $0x30, %eax
movb %al, -0x1d0(%rbp)
movb $0x20, -0x1cf(%rbp)
movq -0x398(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x398(%rbp)
movl $0x2, -0x18(%rbp)
movl $0x1, -0x10(%rbp)
movl -0x18(%rbp), %eax
movl %eax, -0x14(%rbp)
movslq -0x14(%rbp), %rax
cmpq -0x398(%rbp), %rax
jae 0xa2a2
movslq -0x10(%rbp), %rax
movzbl -0x390(%rbp,%rax), %eax
cmpl $0x0, %eax
jne 0xa26d
movslq -0x14(%rbp), %rax
movb $0x2c, -0x1d0(%rbp,%rax)
jmp 0xa28c
movslq -0x10(%rbp), %rax
movzbl -0x390(%rbp,%rax), %eax
subl $0x1, %eax
addl $0x61, %eax
movb %al, %cl
movslq -0x14(%rbp), %rax
movb %cl, -0x1d0(%rbp,%rax)
jmp 0xa28e
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0xa241
movl -0x14(%rbp), %eax
subl $0x1, %eax
cltq
movb $0xa, -0x1d0(%rbp,%rax)
leaq -0x1d0(%rbp), %rdi
movq -0x398(%rbp), %rdx
movq -0x8(%rbp), %rcx
movl $0x1, %esi
callq 0x10d0
cmpq -0x398(%rbp), %rax
je 0xa30c
movq 0x31d1a(%rip), %rax     # 0x3bff8
movq (%rax), %rdi
movq 0x31dd8(%rip), %rdx     # 0x3c0c0
leaq 0x2e121(%rip), %rsi     # 0x38410
movb $0x0, %al
callq 0x1060
leaq 0x2e0a7(%rip), %rdi     # 0x383a4
callq 0x10a0
movl $0x1, %edi
callq 0x10c0
cmpl $0x0, -0xc(%rbp)
je 0xa3fc
leaq -0x390(%rbp), %rdi
callq 0xb3e0
movl $0x1, -0x10(%rbp)
movl -0x18(%rbp), %eax
movl %eax, -0x14(%rbp)
movslq -0x14(%rbp), %rax
cmpq -0x398(%rbp), %rax
jae 0xa390
movslq -0x10(%rbp), %rax
movzbl -0x390(%rbp,%rax), %eax
cmpl $0x0, %eax
jne 0xa35b
movslq -0x14(%rbp), %rax
movb $0x2c, -0x1d0(%rbp,%rax)
jmp 0xa37a
movslq -0x10(%rbp), %rax
movzbl -0x390(%rbp,%rax), %eax
subl $0x1, %eax
addl $0x61, %eax
movb %al, %cl
movslq -0x14(%rbp), %rax
movb %cl, -0x1d0(%rbp,%rax)
jmp 0xa37c
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0xa32f
movl -0x14(%rbp), %eax
subl $0x1, %eax
cltq
movb $0xa, -0x1d0(%rbp,%rax)
leaq -0x1d0(%rbp), %rdi
movq -0x398(%rbp), %rdx
movq -0x8(%rbp), %rcx
movl $0x1, %esi
callq 0x10d0
cmpq -0x398(%rbp), %rax
je 0xa3fa
movq 0x31c2c(%rip), %rax     # 0x3bff8
movq (%rax), %rdi
movq 0x31cea(%rip), %rdx     # 0x3c0c0
leaq 0x2e033(%rip), %rsi     # 0x38410
movb $0x0, %al
callq 0x1060
leaq 0x2dfb9(%rip), %rdi     # 0x383a4
callq 0x10a0
movl $0x1, %edi
callq 0x10c0
jmp 0xa3fc
addq $0x3a0, %rsp            # imm = 0x3A0
popq %rbp
retq
nopw %cs:(%rax,%rax)