// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/mapping.c
// Function: map_table
static int map_table(GtMapping *m, GtStr **stroutput, GtWord *integeroutput,
                     const char *input, GtError *err)
{
  int had_err = 0;
  gt_error_check(err);
  gt_assert(m && input);
  gt_assert((m->type == GT_MAPPINGTYPE_STRING  && stroutput) ||
            (m->type == GT_MAPPINGTYPE_INTEGER && integeroutput));
  gt_assert(!lua_gettop(m->L));
  lua_getglobal(m->L, m->global);
  lua_pushstring(m->L, input);
  lua_gettable(m->L, -2); /* get global[input] */
  /* make sure global[input] is defined */
  if (lua_isnil(m->L, -1)) {
    gt_error_set(err, "%s[%s] is nil (defined in \"%s\")", m->global, input,
                 gt_str_get(m->mapping_file));
    had_err = -1;
  }
  if (!had_err) {
    switch (m->type) {
      case GT_MAPPINGTYPE_STRING:
        /* make sure global[input] is a string */
        if (!(lua_isstring(m->L, -1))) {
          gt_error_set(err, "%s[%s] is not a string (defined in \"%s\")",
                        m->global, input, gt_str_get(m->mapping_file));
          had_err = -1;
        }
        if (!had_err)
          *stroutput = gt_str_new_cstr(lua_tostring(m->L, -1));
        break;
      case GT_MAPPINGTYPE_INTEGER:
        /* make sure global[input] is an integer */
        if (!(lua_isnumber(m->L, -1))) {
          gt_error_set(err, "%s[%s] is not an integer (defined in \"%s\")",
                       m->global, input, gt_str_get(m->mapping_file));
          had_err = -1;
        }
        if (!had_err)
          *integeroutput = lua_tointeger(m->L, -1);
        break;
    }
  }
  lua_pop(m->L, 1); /* pop result */
  lua_pop(m->L, 1); /* pop table */
  gt_assert(!lua_gettop(m->L));
  return had_err;
}

// Assembly:
subq $0x88, %rsp
movq %rdi, 0x80(%rsp)
movq %rsi, 0x78(%rsp)
movq %rdx, 0x70(%rsp)
movq %rcx, 0x68(%rsp)
movq %r8, 0x60(%rsp)
movl $0x0, 0x5c(%rsp)
cmpq $0x0, 0x60(%rsp)
je 0x3360b
movq 0x60(%rsp), %rdi
callq 0xc270
testb $0x1, %al
jne 0x335d3
jmp 0x3360b
movq 0x1809fe(%rip), %rax    # 0x1b3fd8
movq (%rax), %rdi
leaq 0x12aa82(%rip), %rsi    # 0x15e066
leaq 0x12b05d(%rip), %rdx    # 0x15e648
leaq 0x132771(%rip), %rcx    # 0x165d63
leaq 0x1325e1(%rip), %r8     # 0x165bda
movl $0x6a, %r9d
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x3360d
jmp 0x3360f
cmpq $0x0, 0x80(%rsp)
je 0x33622
cmpq $0x0, 0x68(%rsp)
jne 0x3365a
movq 0x1809af(%rip), %rax    # 0x1b3fd8
movq (%rax), %rdi
leaq 0x12aa33(%rip), %rsi    # 0x15e066
leaq 0x1326b6(%rip), %rdx    # 0x165cf0
leaq 0x132722(%rip), %rcx    # 0x165d63
leaq 0x132592(%rip), %r8     # 0x165bda
movl $0x6b, %r9d
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x3365c
jmp 0x3365e
movq 0x80(%rsp), %rax
cmpl $0x0, 0x10(%rax)
jne 0x33674
cmpq $0x0, 0x78(%rsp)
jne 0x336c2
movq 0x80(%rsp), %rax
cmpl $0x1, 0x10(%rax)
jne 0x3368a
cmpq $0x0, 0x70(%rsp)
jne 0x336c2
movq 0x180947(%rip), %rax    # 0x1b3fd8
movq (%rax), %rdi
leaq 0x12a9cb(%rip), %rsi    # 0x15e066
leaq 0x132659(%rip), %rdx    # 0x165cfb
leaq 0x1326ba(%rip), %rcx    # 0x165d63
leaq 0x13252a(%rip), %r8     # 0x165bda
movl $0x6d, %r9d
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x336c4
jmp 0x336c6
movq 0x80(%rsp), %rax
movq 0x18(%rax), %rdi
callq 0x4f0e0
cmpl $0x0, %eax
je 0x33714
movq 0x1808f5(%rip), %rax    # 0x1b3fd8
movq (%rax), %rdi
leaq 0x12a979(%rip), %rsi    # 0x15e066
leaq 0x132545(%rip), %rdx    # 0x165c39
leaq 0x132668(%rip), %rcx    # 0x165d63
leaq 0x1324d8(%rip), %r8     # 0x165bda
movl $0x6e, %r9d
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x33716
movq 0x80(%rsp), %rax
movq 0x18(%rax), %rdi
movq 0x80(%rsp), %rax
movq 0x8(%rax), %rdx
movl $0xffffd8ee, %esi       # imm = 0xFFFFD8EE
callq 0x51640
movq 0x80(%rsp), %rax
movq 0x18(%rax), %rdi
movq 0x68(%rsp), %rsi
callq 0x50970
movq 0x80(%rsp), %rax
movq 0x18(%rax), %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x51440
movq 0x80(%rsp), %rax
movq 0x18(%rax), %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x4f800
cmpl $0x0, %eax
jne 0x337dc
movq 0x60(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x80(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x48(%rsp)
movq 0x68(%rsp), %rax
movq %rax, 0x50(%rsp)
movq 0x80(%rsp), %rax
movq (%rax), %rdi
callq 0x19940
movq 0x40(%rsp), %rdi
movq 0x48(%rsp), %rdx
movq 0x50(%rsp), %rcx
movq %rax, %r8
leaq 0x1325a0(%rip), %rsi    # 0x165d6d
movb $0x0, %al
callq 0xc0d0
movl $0xffffffff, 0x5c(%rsp) # imm = 0xFFFFFFFF
cmpl $0x0, 0x5c(%rsp)
jne 0x33963
movq 0x80(%rsp), %rax
movl 0x10(%rax), %eax
movl %eax, 0x3c(%rsp)
testl %eax, %eax
je 0x3380e
jmp 0x337fc
movl 0x3c(%rsp), %eax
subl $0x1, %eax
je 0x338bf
jmp 0x33961
movq 0x80(%rsp), %rax
movq 0x18(%rax), %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x4f9e0
cmpl $0x0, %eax
jne 0x33886
movq 0x60(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x80(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x28(%rsp)
movq 0x68(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x80(%rsp), %rax
movq (%rax), %rdi
callq 0x19940
movq 0x20(%rsp), %rdi
movq 0x28(%rsp), %rdx
movq 0x30(%rsp), %rcx
movq %rax, %r8
leaq 0x132516(%rip), %rsi    # 0x165d8d
movb $0x0, %al
callq 0xc0d0
movl $0xffffffff, 0x5c(%rsp) # imm = 0xFFFFFFFF
cmpl $0x0, 0x5c(%rsp)
jne 0x338ba
movq 0x80(%rsp), %rax
movq 0x18(%rax), %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
xorl %eax, %eax
movl %eax, %edx
callq 0x50180
movq %rax, %rdi
callq 0x18f70
movq %rax, %rcx
movq 0x78(%rsp), %rax
movq %rcx, (%rax)
jmp 0x33961
movq 0x80(%rsp), %rax
movq 0x18(%rax), %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x4f8f0
cmpl $0x0, %eax
jne 0x33937
movq 0x60(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x80(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x10(%rsp)
movq 0x68(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x80(%rsp), %rax
movq (%rax), %rdi
callq 0x19940
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rdx
movq 0x18(%rsp), %rcx
movq %rax, %r8
leaq 0x13248e(%rip), %rsi    # 0x165db6
movb $0x0, %al
callq 0xc0d0
movl $0xffffffff, 0x5c(%rsp) # imm = 0xFFFFFFFF
cmpl $0x0, 0x5c(%rsp)
jne 0x3395f
movq 0x80(%rsp), %rax
movq 0x18(%rax), %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x50090
movq %rax, %rcx
movq 0x70(%rsp), %rax
movq %rcx, (%rax)
jmp 0x33961
jmp 0x33963
movq 0x80(%rsp), %rax
movq 0x18(%rax), %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x4f100
movq 0x80(%rsp), %rax
movq 0x18(%rax), %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x4f100
movq 0x80(%rsp), %rax
movq 0x18(%rax), %rdi
callq 0x4f0e0
cmpl $0x0, %eax
je 0x339dd
movq 0x18062c(%rip), %rax    # 0x1b3fd8
movq (%rax), %rdi
leaq 0x12a6b0(%rip), %rsi    # 0x15e066
leaq 0x13227c(%rip), %rdx    # 0x165c39
leaq 0x13239f(%rip), %rcx    # 0x165d63
leaq 0x13220f(%rip), %r8     # 0x165bda
movl $0x92, %r9d
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x339df
movl 0x5c(%rsp), %eax
addq $0x88, %rsp
retq
nopl (%rax,%rax)