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

/* Write 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=nv+ne;
    compute_code(precode);

    if (nv >= 10) 
    {
        code[0] = '0' + nv/10;
        code[1] = '0' + nv%10;
        code[2] = ' ';
        length += 3;
	start=3;
    }
    else
    {
        code[0] = '0' + nv;
        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_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)
movslq 0x238d88(%rip), %r15    # 0x242600
movslq 0x238d85(%rip), %rbx    # 0x242604
addq %r15, %rbx
leaq 0x1d0(%rsp), %rdi
callq 0xa2a9
cmpq $0xa, %r15
jl 0x98b0
pushq $0xa
popq %rcx
movl %r15d, %eax
xorl %edx, %edx
divl %ecx
orb $0x30, %dl
movb $0x20, 0x12(%rsp)
pushq $0x3
popq %r12
movl %eax, %r15d
jmp 0x98b6
movb $0x20, %dl
pushq $0x2
popq %r12
movabsq $-0x100000000, %rax     # imm = 0xFFFFFFFF00000000
movabsq $0x100000000, %r13      # imm = 0x100000000
addq %r12, %rbx
addb $0x30, %r15b
movb %r15b, 0x10(%rsp)
movb %dl, 0x11(%rsp)
movq %r12, %r15
shlq $0x20, %r15
addq %r15, %rax
leaq 0x1d1(%rsp), %rcx
pushq $0x2c
popq %r14
movq %r12, %rdx
cmpq %rdx, %rbx
jbe 0x9919
movb (%rcx), %sil
leal 0x60(%rsi), %edi
testb %sil, %sil
movzbl %dil, %esi
cmovel %r14d, %esi
movb %sil, 0x10(%rsp,%rdx)
incq %rdx
addq %r13, %rax
incq %rcx
jmp 0x98f3
sarq $0x20, %rax
movb $0xa, 0x10(%rsp,%rax)
leaq 0x10(%rsp), %rdi
pushq $0x1
popq %rsi
movq %rbx, %rdx
movq 0x8(%rsp), %rcx
callq 0x10c0
cmpq %rbx, %rax
jne 0x99bb
testl %ebp, %ebp
je 0x99a9
leaq 0x1d0(%rsp), %rdi
callq 0xa3dc
movabsq $-0x100000000, %rax     # imm = 0xFFFFFFFF00000000
addq %rax, %r15
leaq 0x1d1(%rsp), %rax
cmpq %r12, %rbx
jbe 0x9985
movb (%rax), %cl
leal 0x60(%rcx), %edx
testb %cl, %cl
movzbl %dl, %ecx
cmovel %r14d, %ecx
movb %cl, 0x10(%rsp,%r12)
incq %r12
addq %r13, %r15
incq %rax
jmp 0x9962
sarq $0x20, %r15
movb $0xa, 0x10(%rsp,%r15)
leaq 0x10(%rsp), %rdi
pushq $0x1
popq %rsi
movq %rbx, %rdx
movq 0x8(%rsp), %rcx
callq 0x10c0
cmpq %rbx, %rax
jne 0x99bb
addq $0x388, %rsp            # imm = 0x388
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x1a636(%rip), %rax     # 0x23ff8
movq (%rax), %rdi
movq 0x1a6e4(%rip), %rdx     # 0x240b0
leaq 0x14b0e(%rip), %rsi     # 0x1e4e1
xorl %eax, %eax
callq 0x1050
leaq 0x14a94(%rip), %rdi     # 0x1e475
callq 0x1090
pushq $0x1
popq %rdi
callq 0x10b0