// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/core/score_matrix.c
// Function: parse_alphabet_line
static int parse_alphabet_line(GtArray *index_to_alpha_char_mapping,
                               GtTokenizer *tz, GtError *err)
{
  GtStr *token;
  char *tokenstr, amino_acid, parsed_characters[UCHAR_MAX] = { 0 };
  int had_err = 0;
  gt_error_check(err);
  gt_assert(index_to_alpha_char_mapping && tz);
  gt_assert(!gt_array_size(index_to_alpha_char_mapping));
  while ((token = gt_tokenizer_get_token(tz))) {
    if (gt_str_length(token) > 2) {
      gt_error_set(err, "illegal character token '%s' on line " GT_WU
                   " in file '%s'", gt_str_get(token),
                   gt_tokenizer_get_line_number(tz),
                   gt_tokenizer_get_filename(tz));
      had_err = -1;
      break;
    }
    tokenstr = gt_str_get(token);
    amino_acid = tokenstr[0];
    /* check for character duplications */
    if (parsed_characters[(int) amino_acid]) {
      gt_error_set(err, "the character '%c' appears more then once on line "
                   GT_WU "in file  '%s'", amino_acid,
                   gt_tokenizer_get_line_number(tz),
                   gt_tokenizer_get_filename(tz));
      had_err = -1;
      break;
    }
    parsed_characters[(int) amino_acid] = GT_UNDEF_CHAR;
    if (amino_acid == '\n') {
      gt_str_delete(token);
      gt_tokenizer_next_token(tz);
      gt_assert(!had_err);
      return 0;
    }
    gt_array_add(index_to_alpha_char_mapping, amino_acid);
    if (gt_str_length(token) == 2) {
      if (tokenstr[1] != '\n') {
        gt_error_set(err, "illegal character token '%s' on line " GT_WU
                     " in file '%s'", gt_str_get(token),
                     gt_tokenizer_get_line_number(tz),
                     gt_tokenizer_get_filename(tz));
        had_err = -1;
        break;
      }
      gt_str_delete(token);
      gt_tokenizer_next_token(tz);
      gt_assert(!had_err);
      return 0;
    }
    gt_str_delete(token);
    gt_tokenizer_next_token(tz);
  }
  if (!had_err) {
    if (!gt_array_size(index_to_alpha_char_mapping)) {
      gt_error_set(err, "could not parse a single alphabet character in file "
                   "'%s' (file empty or directory?)",
                   gt_tokenizer_get_filename(tz));
    had_err = -1;
    }
  }
  gt_str_delete(token);
  return had_err;
}

// Assembly:
subq $0x198, %rsp            # imm = 0x198
movq %rdi, 0x188(%rsp)
movq %rsi, 0x180(%rsp)
movq %rdx, 0x178(%rsp)
leaq 0x60(%rsp), %rdi
xorl %esi, %esi
movl $0xff, %edx
callq 0xb2d0
movl $0x0, 0x5c(%rsp)
cmpq $0x0, 0x178(%rsp)
je 0xe2a1e
movq 0x178(%rsp), %rdi
callq 0xc270
testb $0x1, %al
jne 0xe29e6
jmp 0xe2a1e
movq 0xd15eb(%rip), %rax     # 0x1b3fd8
movq (%rax), %rdi
leaq 0x7b66f(%rip), %rsi     # 0x15e066
leaq 0x7bc4a(%rip), %rdx     # 0x15e648
leaq 0x9616c(%rip), %rcx     # 0x178b71
leaq 0x95fe2(%rip), %r8      # 0x1789ee
movl $0x3a, %r9d
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0xe2a20
jmp 0xe2a22
cmpq $0x0, 0x188(%rsp)
je 0xe2a38
cmpq $0x0, 0x180(%rsp)
jne 0xe2a70
movq 0xd1599(%rip), %rax     # 0x1b3fd8
movq (%rax), %rdi
leaq 0x7b61d(%rip), %rsi     # 0x15e066
leaq 0x96135(%rip), %rdx     # 0x178b85
leaq 0x9611a(%rip), %rcx     # 0x178b71
leaq 0x95f90(%rip), %r8      # 0x1789ee
movl $0x3b, %r9d
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0xe2a72
jmp 0xe2a74
movq 0x188(%rsp), %rdi
callq 0x76490
cmpq $0x0, %rax
je 0xe2abf
movq 0xd154a(%rip), %rax     # 0x1b3fd8
movq (%rax), %rdi
leaq 0x7b5ce(%rip), %rsi     # 0x15e066
leaq 0x96108(%rip), %rdx     # 0x178ba7
leaq 0x960cb(%rip), %rcx     # 0x178b71
leaq 0x95f41(%rip), %r8      # 0x1789ee
movl $0x3c, %r9d
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0xe2ac1
jmp 0xe2ac3
movq 0x180(%rsp), %rdi
callq 0xe4ef0
movq %rax, 0x170(%rsp)
cmpq $0x0, %rax
je 0xe2db9
movq 0x170(%rsp), %rdi
callq 0x19a00
cmpq $0x2, %rax
jbe 0xe2b60
movq 0x178(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x170(%rsp), %rdi
callq 0x19940
movq %rax, 0x48(%rsp)
movq 0x180(%rsp), %rdi
callq 0xe5350
movq %rax, 0x50(%rsp)
movq 0x180(%rsp), %rdi
callq 0xe53b0
movq 0x40(%rsp), %rdi
movq 0x48(%rsp), %rdx
movq 0x50(%rsp), %rcx
movq %rax, %r8
leaq 0x96087(%rip), %rsi     # 0x178bd3
movb $0x0, %al
callq 0xc0d0
movl $0xffffffff, 0x5c(%rsp) # imm = 0xFFFFFFFF
jmp 0xe2db9
movq 0x170(%rsp), %rdi
callq 0x19940
movq %rax, 0x168(%rsp)
movq 0x168(%rsp), %rax
movb (%rax), %al
movb %al, 0x167(%rsp)
movsbl 0x167(%rsp), %eax
cltq
cmpb $0x0, 0x60(%rsp,%rax)
je 0xe2bfb
movq 0x178(%rsp), %rax
movq %rax, 0x28(%rsp)
movsbl 0x167(%rsp), %eax
movl %eax, 0x34(%rsp)
movq 0x180(%rsp), %rdi
callq 0xe5350
movq %rax, 0x38(%rsp)
movq 0x180(%rsp), %rdi
callq 0xe53b0
movq 0x28(%rsp), %rdi
movl 0x34(%rsp), %edx
movq 0x38(%rsp), %rcx
movq %rax, %r8
leaq 0x96022(%rip), %rsi     # 0x178c09
movb $0x0, %al
callq 0xc0d0
movl $0xffffffff, 0x5c(%rsp) # imm = 0xFFFFFFFF
jmp 0xe2db9
movsbl 0x167(%rsp), %eax
cltq
movb $0x7f, 0x60(%rsp,%rax)
movsbl 0x167(%rsp), %eax
cmpl $0xa, %eax
jne 0xe2c82
movq 0x170(%rsp), %rdi
callq 0x1afc0
movq 0x180(%rsp), %rdi
callq 0xe52e0
cmpl $0x0, 0x5c(%rsp)
je 0xe2c70
movq 0xd1399(%rip), %rax     # 0x1b3fd8
movq (%rax), %rdi
leaq 0x7b41d(%rip), %rsi     # 0x15e066
leaq 0x8436e(%rip), %rdx     # 0x166fbe
leaq 0x95f1a(%rip), %rcx     # 0x178b71
leaq 0x95d90(%rip), %r8      # 0x1789ee
movl $0x55, %r9d
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0xe2c72
movl $0x0, 0x194(%rsp)
jmp 0xe2e25
movq 0x188(%rsp), %rdi
leaq 0x167(%rsp), %rsi
movl $0x1, %edx
callq 0x76220
movq 0x170(%rsp), %rdi
callq 0x19a00
cmpq $0x2, %rax
jne 0xe2d9a
movq 0x168(%rsp), %rax
movsbl 0x1(%rax), %eax
cmpl $0xa, %eax
je 0xe2d2f
movq 0x178(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x170(%rsp), %rdi
callq 0x19940
movq %rax, 0x18(%rsp)
movq 0x180(%rsp), %rdi
callq 0xe5350
movq %rax, 0x20(%rsp)
movq 0x180(%rsp), %rdi
callq 0xe53b0
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rdx
movq 0x20(%rsp), %rcx
movq %rax, %r8
leaq 0x95eb8(%rip), %rsi     # 0x178bd3
movb $0x0, %al
callq 0xc0d0
movl $0xffffffff, 0x5c(%rsp) # imm = 0xFFFFFFFF
jmp 0xe2db9
movq 0x170(%rsp), %rdi
callq 0x1afc0
movq 0x180(%rsp), %rdi
callq 0xe52e0
cmpl $0x0, 0x5c(%rsp)
je 0xe2d88
movq 0xd1281(%rip), %rax     # 0x1b3fd8
movq (%rax), %rdi
leaq 0x7b305(%rip), %rsi     # 0x15e066
leaq 0x84256(%rip), %rdx     # 0x166fbe
leaq 0x95e02(%rip), %rcx     # 0x178b71
leaq 0x95c78(%rip), %r8      # 0x1789ee
movl $0x64, %r9d
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0xe2d8a
movl $0x0, 0x194(%rsp)
jmp 0xe2e25
movq 0x170(%rsp), %rdi
callq 0x1afc0
movq 0x180(%rsp), %rdi
callq 0xe52e0
jmp 0xe2ac3
cmpl $0x0, 0x5c(%rsp)
jne 0xe2e0d
movq 0x188(%rsp), %rdi
callq 0x76490
cmpq $0x0, %rax
jne 0xe2e0b
movq 0x178(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x180(%rsp), %rdi
callq 0xe53b0
movq 0x8(%rsp), %rdi
movq %rax, %rdx
leaq 0x95e50(%rip), %rsi     # 0x178c4c
movb $0x0, %al
callq 0xc0d0
movl $0xffffffff, 0x5c(%rsp) # imm = 0xFFFFFFFF
jmp 0xe2e0d
movq 0x170(%rsp), %rdi
callq 0x1afc0
movl 0x5c(%rsp), %eax
movl %eax, 0x194(%rsp)
movl 0x194(%rsp), %eax
addq $0x198, %rsp            # imm = 0x198
retq
nopw %cs:(%rax,%rax)