// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/annotationsketch/style.c
// Function: gt_style_load_str
int gt_style_load_str(GtStyle *sty, GtStr *instr, GtError *err)
{
#ifndef NDEBUG
  int stack_size;
#endif
  int had_err = 0;
  gt_error_check(err);
  gt_assert(sty && instr);
  gt_rwlock_wrlock(sty->lock);
#ifndef NDEBUG
  stack_size = lua_gettop(sty->L);;
#endif
  if (luaL_loadbuffer(sty->L, gt_str_get(instr), gt_str_length(instr), "str") ||
      lua_pcall(sty->L, 0, 0, 0)) {
    gt_error_set(err, "cannot run style buffer: %s",
              lua_tostring(sty->L, -1));
    had_err = -1;
    lua_pop(sty->L, 1);
  }
  gt_assert(lua_gettop(sty->L) == stack_size);
  gt_rwlock_unlock(sty->lock);
  return had_err;
}

// Assembly:
subq $0x38, %rsp
movq %rdi, 0x30(%rsp)
movq %rsi, 0x28(%rsp)
movq %rdx, 0x20(%rsp)
movl $0x0, 0x18(%rsp)
cmpq $0x0, 0x20(%rsp)
je 0x47b0b
movq 0x20(%rsp), %rdi
callq 0xc270
testb $0x1, %al
jne 0x47ad3
jmp 0x47b0b
movq 0x16c4fe(%rip), %rax    # 0x1b3fd8
movq (%rax), %rdi
leaq 0x116582(%rip), %rsi    # 0x15e066
leaq 0x116b5d(%rip), %rdx    # 0x15e648
leaq 0x121959(%rip), %rcx    # 0x16944b
leaq 0x1215b4(%rip), %r8     # 0x1690ad
movl $0x317, %r9d            # imm = 0x317
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x47b0d
jmp 0x47b0f
cmpq $0x0, 0x30(%rsp)
je 0x47b1f
cmpq $0x0, 0x28(%rsp)
jne 0x47b57
movq 0x16c4b2(%rip), %rax    # 0x1b3fd8
movq (%rax), %rdi
leaq 0x116536(%rip), %rsi    # 0x15e066
leaq 0x121926(%rip), %rdx    # 0x16945d
leaq 0x12190d(%rip), %rcx    # 0x16944b
leaq 0x121568(%rip), %r8     # 0x1690ad
movl $0x318, %r9d            # imm = 0x318
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x47b59
movq 0x30(%rsp), %rax
movq 0x10(%rax), %rdi
callq 0x1c100
movq 0x30(%rsp), %rax
movq (%rax), %rdi
callq 0x4f0e0
movl %eax, 0x1c(%rsp)
movq 0x30(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x8(%rsp)
movq 0x28(%rsp), %rdi
callq 0x19940
movq %rax, 0x10(%rsp)
movq 0x28(%rsp), %rdi
callq 0x19a00
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rsi
movq %rax, %rdx
leaq 0x118e22(%rip), %rcx    # 0x1609d4
callq 0x56c70
cmpl $0x0, %eax
jne 0x47bd4
movq 0x30(%rsp), %rax
movq (%rax), %rdi
xorl %ecx, %ecx
movl %ecx, %esi
movl %ecx, %edx
callq 0x527f0
cmpl $0x0, %eax
je 0x47c22
movq 0x20(%rsp), %rax
movq %rax, (%rsp)
movq 0x30(%rsp), %rax
movq (%rax), %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
xorl %eax, %eax
movl %eax, %edx
callq 0x50180
movq (%rsp), %rdi
movq %rax, %rdx
leaq 0x121869(%rip), %rsi    # 0x16946a
movb $0x0, %al
callq 0xc0d0
movl $0xffffffff, 0x18(%rsp) # imm = 0xFFFFFFFF
movq 0x30(%rsp), %rax
movq (%rax), %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x4f100
jmp 0x47c24
movq 0x30(%rsp), %rax
movq (%rax), %rdi
callq 0x4f0e0
cmpl 0x1c(%rsp), %eax
je 0x47c6f
movq 0x16c39a(%rip), %rax    # 0x1b3fd8
movq (%rax), %rdi
leaq 0x11641e(%rip), %rsi    # 0x15e066
leaq 0x121534(%rip), %rdx    # 0x169183
leaq 0x1217f5(%rip), %rcx    # 0x16944b
leaq 0x121450(%rip), %r8     # 0x1690ad
movl $0x324, %r9d            # imm = 0x324
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x47c71
movq 0x30(%rsp), %rax
movq 0x10(%rax), %rdi
callq 0x1c1a0
movl 0x18(%rsp), %eax
addq $0x38, %rsp
retq
nopl (%rax,%rax)