// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/annotationsketch/style.c
// Function: gt_style_set_color
void gt_style_set_color(GtStyle *sty, const char *section, const char *key,
                        const GtColor *color)
{
#ifndef NDEBUG
  int stack_size;
#endif
  int i = 0;
  gt_assert(sty && section && key && color);
  gt_rwlock_wrlock(sty->lock);
#ifndef NDEBUG
  stack_size = lua_gettop(sty->L);
#endif
  i = style_find_section_for_setting(sty, section);
  lua_getfield(sty->L, -1, key);
  i++;
  if (lua_isnil(sty->L, -1)) {
    lua_pop(sty->L, 1);
    style_lua_new_table(sty->L, key);
    lua_getfield(sty->L, -1, key);
  }
  lua_pushstring(sty->L, "red");
  lua_pushnumber(sty->L, color->red);
  lua_settable(sty->L, -3);
  lua_pushstring(sty->L, "green");
  lua_pushnumber(sty->L, color->green);
  lua_settable(sty->L, -3);
  lua_pushstring(sty->L, "blue");
  lua_pushnumber(sty->L, color->blue);
  lua_settable(sty->L, -3);
  lua_pushstring(sty->L, "alpha");
  lua_pushnumber(sty->L, color->alpha);
  lua_settable(sty->L, -3);
  lua_pop(sty->L, i);
  gt_assert(lua_gettop(sty->L) == stack_size);
  gt_rwlock_unlock(sty->lock);
}

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
movq %rdx, 0x10(%rsp)
movq %rcx, 0x8(%rsp)
movl $0x0, (%rsp)
cmpq $0x0, 0x20(%rsp)
je 0x48c5f
cmpq $0x0, 0x18(%rsp)
je 0x48c5f
cmpq $0x0, 0x10(%rsp)
je 0x48c5f
cmpq $0x0, 0x8(%rsp)
jne 0x48c97
movq 0x16b372(%rip), %rax    # 0x1b3fd8
movq (%rax), %rdi
leaq 0x1153f6(%rip), %rsi    # 0x15e066
leaq 0x1205eb(%rip), %rdx    # 0x169262
leaq 0x12062c(%rip), %rcx    # 0x1692aa
leaq 0x120428(%rip), %r8     # 0x1690ad
movl $0x19d, %r9d            # imm = 0x19D
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x48c99
movq 0x20(%rsp), %rax
movq 0x10(%rax), %rdi
callq 0x1c100
movq 0x20(%rsp), %rax
movq (%rax), %rdi
callq 0x4f0e0
movl %eax, 0x4(%rsp)
movq 0x20(%rsp), %rdi
movq 0x18(%rsp), %rsi
callq 0x48eb0
movl %eax, (%rsp)
movq 0x20(%rsp), %rax
movq (%rax), %rdi
movq 0x10(%rsp), %rdx
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x51640
movl (%rsp), %eax
addl $0x1, %eax
movl %eax, (%rsp)
movq 0x20(%rsp), %rax
movq (%rax), %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x4f800
cmpl $0x0, %eax
jne 0x48d3c
movq 0x20(%rsp), %rax
movq (%rax), %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x4f100
movq 0x20(%rsp), %rax
movq (%rax), %rdi
movq 0x10(%rsp), %rsi
callq 0x49020
movq 0x20(%rsp), %rax
movq (%rax), %rdi
movq 0x10(%rsp), %rdx
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x51640
movq 0x20(%rsp), %rax
movq (%rax), %rdi
leaq 0x124f98(%rip), %rsi    # 0x16dce3
callq 0x50970
movq 0x20(%rsp), %rax
movq (%rax), %rdi
movq 0x8(%rsp), %rax
movsd (%rax), %xmm0
callq 0x506d0
movq 0x20(%rsp), %rax
movq (%rax), %rdi
movl $0xfffffffd, %esi       # imm = 0xFFFFFFFD
callq 0x51d10
movq 0x20(%rsp), %rax
movq (%rax), %rdi
leaq 0x120518(%rip), %rsi    # 0x16929f
callq 0x50970
movq 0x20(%rsp), %rax
movq (%rax), %rdi
movq 0x8(%rsp), %rax
movsd 0x8(%rax), %xmm0
callq 0x506d0
movq 0x20(%rsp), %rax
movq (%rax), %rdi
movl $0xfffffffd, %esi       # imm = 0xFFFFFFFD
callq 0x51d10
movq 0x20(%rsp), %rax
movq (%rax), %rdi
leaq 0x1204e1(%rip), %rsi    # 0x1692a5
callq 0x50970
movq 0x20(%rsp), %rax
movq (%rax), %rdi
movq 0x8(%rsp), %rax
movsd 0x10(%rax), %xmm0
callq 0x506d0
movq 0x20(%rsp), %rax
movq (%rax), %rdi
movl $0xfffffffd, %esi       # imm = 0xFFFFFFFD
callq 0x51d10
movq 0x20(%rsp), %rax
movq (%rax), %rdi
leaq 0x1328c3(%rip), %rsi    # 0x17b6c4
callq 0x50970
movq 0x20(%rsp), %rax
movq (%rax), %rdi
movq 0x8(%rsp), %rax
movsd 0x18(%rax), %xmm0
callq 0x506d0
movq 0x20(%rsp), %rax
movq (%rax), %rdi
movl $0xfffffffd, %esi       # imm = 0xFFFFFFFD
callq 0x51d10
movq 0x20(%rsp), %rax
movq (%rax), %rdi
xorl %esi, %esi
subl (%rsp), %esi
subl $0x1, %esi
callq 0x4f100
movq 0x20(%rsp), %rax
movq (%rax), %rdi
callq 0x4f0e0
cmpl 0x4(%rsp), %eax
je 0x48e8f
movq 0x16b17a(%rip), %rax    # 0x1b3fd8
movq (%rax), %rdi
leaq 0x1151fe(%rip), %rsi    # 0x15e066
leaq 0x120314(%rip), %rdx    # 0x169183
leaq 0x120434(%rip), %rcx    # 0x1692aa
leaq 0x120230(%rip), %r8     # 0x1690ad
movl $0x1b7, %r9d            # imm = 0x1B7
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x48e91
movq 0x20(%rsp), %rax
movq 0x10(%rax), %rdi
callq 0x1c1a0
addq $0x28, %rsp
retq
nopw %cs:(%rax,%rax)