// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/extended/luaserialize.c
// Function: parse_table
static int parse_table(lua_State *L, GtStr *out, int index, int level,
                       GtError *err)
{
  int GT_UNUSED rval, had_err = 0;
  gt_error_check(err);
  gt_assert(lua_istable(L, index));
  lua_pushnil(L);
  if (index < 0)
    index--;
  while (!had_err && (lua_next(L, index) != 0))
  {
    int i;
    for (i=0;i<level;i++)
      gt_str_append_cstr(out, "  ");
    rval = format_scalar(L, out, -2, true, NULL);
    gt_assert(!rval); /* cannot happen */
    gt_str_append_cstr(out, " = ");
    if (lua_istable(L, -1))
    {
      gt_str_append_cstr(out, "{\n");
      had_err = parse_table(L, out, -1, level+1, err);
      for (i=0;i<level;i++)
        gt_str_append_cstr(out, "  ");
      gt_str_append_cstr(out, "},\n");
    }
    else
    {
      had_err = format_scalar(L, out, -1, false, err);
      gt_str_append_cstr(out, ",\n");
    }
    lua_pop(L, 1);
  }
  return had_err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r8, %rbp
movl %ecx, %r14d
movl %edx, %ebx
movq %rsi, %r15
movq %rdi, %r12
testq %r8, %r8
je 0x65a8c
movq %rbp, %rdi
callq 0xc103
testb %al, %al
jne 0x65c3a
movq %r12, %rdi
movl %ebx, %esi
callq 0x37b59
cmpl $0x5, %eax
jne 0x65c10
movq %r12, %rdi
callq 0x3824a
movl %ebx, %eax
sarl $0x1f, %eax
addl %ebx, %eax
movl %eax, 0xc(%rsp)
leal 0x1(%r14), %eax
movl %eax, 0x8(%rsp)
xorl %ebx, %ebx
testl %r14d, %r14d
cmovlel %ebx, %r14d
movq %r14, 0x10(%rsp)
pushq $-0x2
popq %r14
leaq 0x81f11(%rip), %r13     # 0xe79e4
testl %ebx, %ebx
jne 0x65bc9
movq %r12, %rdi
movl 0xc(%rsp), %esi
callq 0x397b9
testl %eax, %eax
je 0x65bc9
movq 0x10(%rsp), %rax
movl %eax, %ebx
subl $0x1, %ebx
jb 0x65b08
movq %r15, %rdi
movq %r13, %rsi
callq 0x13dd3
jmp 0x65af6
movq %r12, %rdi
movq %r15, %rsi
movl %r14d, %edx
pushq $0x1
popq %rcx
xorl %r8d, %r8d
callq 0x6631a
testl %eax, %eax
jne 0x65bda
movq %r15, %rdi
leaq 0x78404(%rip), %rsi     # 0xddf32
callq 0x13dd3
movq %r12, %rdi
pushq $-0x1
popq %rbx
movl %ebx, %esi
callq 0x37b59
cmpl $0x5, %eax
jne 0x65b86
movq %r15, %rdi
leaq 0x6f694(%rip), %rsi     # 0xd51e3
callq 0x13dd3
movq %r12, %rdi
movq %r15, %rsi
movl %ebx, %edx
movl 0x8(%rsp), %ecx
movq %rbp, %r14
movq %rbp, %r8
callq 0x65a5b
movl %eax, %ebx
movq 0x10(%rsp), %rax
movl %eax, %ebp
subl $0x1, %ebp
jb 0x65ba3
movq %r15, %rdi
movq %r13, %rsi
callq 0x13dd3
jmp 0x65b74
movq %r12, %rdi
movq %r15, %rsi
movl %ebx, %edx
xorl %ecx, %ecx
movq %rbp, %r8
callq 0x6631a
movl %eax, %ebx
leaq 0x78396(%rip), %rsi     # 0xddf37
jmp 0x65bb1
leaq 0x7838c(%rip), %rsi     # 0xddf36
movq %r14, %rbp
pushq $-0x2
popq %r14
movq %r15, %rdi
callq 0x13dd3
movq %r12, %rdi
movl %r14d, %esi
callq 0x377fa
jmp 0x65ad3
movl %ebx, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0xc83d7(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x6447b(%rip), %rsi     # 0xca066
leaq 0x64ef5(%rip), %rdx     # 0xcaae7
leaq 0x7832d(%rip), %rcx     # 0xddf26
leaq 0x7819d(%rip), %r8      # 0xddd9d
pushq $0x5b
popq %r9
xorl %eax, %eax
callq 0xb8c0
callq 0xb300
movq 0xc83a1(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x64445(%rip), %rsi     # 0xca066
leaq 0x7819d(%rip), %rdx     # 0xdddc5
leaq 0x782f7(%rip), %rcx     # 0xddf26
leaq 0x78167(%rip), %r8      # 0xddd9d
pushq $0x51
jmp 0x65c02
movq 0xc8377(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x6441b(%rip), %rsi     # 0xca066
leaq 0x64a07(%rip), %rdx     # 0xca659
leaq 0x782cd(%rip), %rcx     # 0xddf26
leaq 0x7813d(%rip), %r8      # 0xddd9d
pushq $0x50
jmp 0x65c02