// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/annotationsketch/style.c
// Function: gt_style_to_str
int gt_style_to_str(const GtStyle *sty, GtStr *outstr, GtError *err)
{
#ifndef NDEBUG
  int stack_size;
#endif
  int had_err = 0;
  gt_error_check(err);
  gt_assert(sty && outstr);
  gt_rwlock_wrlock(sty->lock);
#ifndef NDEBUG
  stack_size = lua_gettop(sty->L);
#endif
  lua_getglobal(sty->L, "style");
  gt_str_append_cstr(outstr, "style = {\n");
  if (lua_istable(sty->L, -1))
    had_err = gt_lua_table_to_str(sty->L, outstr, -1, err);
  else {
    gt_error_set(err, "'style' must be a table. Check whether a top-level"
                      "table of this name exists.");
    had_err = -1;
  }
  gt_str_append_cstr(outstr, "}");
  lua_pop(sty->L, 1);
  gt_assert(lua_gettop(sty->L) == stack_size);
  gt_rwlock_unlock(sty->lock);
  return had_err;
}

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
movq %rdx, 0x10(%rsp)
movl $0x0, 0x8(%rsp)
cmpq $0x0, 0x10(%rsp)
je 0x4a5bb
movq 0x10(%rsp), %rdi
callq 0xc270
testb $0x1, %al
jne 0x4a583
jmp 0x4a5bb
movq 0x169a4e(%rip), %rax    # 0x1b3fd8
movq (%rax), %rdi
leaq 0x113ad2(%rip), %rsi    # 0x15e066
leaq 0x1140ad(%rip), %rdx    # 0x15e648
leaq 0x11ee33(%rip), %rcx    # 0x1693d5
leaq 0x11eb04(%rip), %r8     # 0x1690ad
movl $0x2fb, %r9d            # imm = 0x2FB
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x4a5bd
jmp 0x4a5bf
cmpq $0x0, 0x20(%rsp)
je 0x4a5cf
cmpq $0x0, 0x18(%rsp)
jne 0x4a607
movq 0x169a02(%rip), %rax    # 0x1b3fd8
movq (%rax), %rdi
leaq 0x113a86(%rip), %rsi    # 0x15e066
leaq 0x11edfe(%rip), %rdx    # 0x1693e5
leaq 0x11ede7(%rip), %rcx    # 0x1693d5
leaq 0x11eab8(%rip), %r8     # 0x1690ad
movl $0x2fc, %r9d            # imm = 0x2FC
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x4a609
movq 0x20(%rsp), %rax
movq 0x10(%rax), %rdi
callq 0x1c100
movq 0x20(%rsp), %rax
movq (%rax), %rdi
callq 0x4f0e0
movl %eax, 0xc(%rsp)
movq 0x20(%rsp), %rax
movq (%rax), %rdi
movl $0xffffd8ee, %esi       # imm = 0xFFFFD8EE
leaq 0x1324c3(%rip), %rdx    # 0x17caff
callq 0x51640
movq 0x18(%rsp), %rdi
leaq 0x11eda6(%rip), %rsi    # 0x1693f3
callq 0x18fb0
movq 0x20(%rsp), %rax
movq (%rax), %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x4f800
cmpl $0x5, %eax
jne 0x4a68b
movq 0x20(%rsp), %rax
movq (%rax), %rdi
movq 0x18(%rsp), %rsi
movq 0x10(%rsp), %rcx
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0xa7f90
movl %eax, 0x8(%rsp)
jmp 0x4a6a6
movq 0x10(%rsp), %rdi
leaq 0x11ed67(%rip), %rsi    # 0x1693fe
movb $0x0, %al
callq 0xc0d0
movl $0xffffffff, 0x8(%rsp)  # imm = 0xFFFFFFFF
movq 0x18(%rsp), %rdi
leaq 0x11f5f3(%rip), %rsi    # 0x169ca5
callq 0x18fb0
movq 0x20(%rsp), %rax
movq (%rax), %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x4f100
movq 0x20(%rsp), %rax
movq (%rax), %rdi
callq 0x4f0e0
cmpl 0xc(%rsp), %eax
je 0x4a714
movq 0x1698f5(%rip), %rax    # 0x1b3fd8
movq (%rax), %rdi
leaq 0x113979(%rip), %rsi    # 0x15e066
leaq 0x11ea8f(%rip), %rdx    # 0x169183
leaq 0x11ecda(%rip), %rcx    # 0x1693d5
leaq 0x11e9ab(%rip), %r8     # 0x1690ad
movl $0x30c, %r9d            # imm = 0x30C
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x4a716
movq 0x20(%rsp), %rax
movq 0x10(%rax), %rdi
callq 0x1c1a0
movl 0x8(%rsp), %eax
addq $0x28, %rsp
retq
nopl (%rax)