LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/sisshiki1969[P]monocc/src/parse.c
// Function: parse_enum_specifier
Type *parse_enum_specifier() {
  Type *type = new_type_enum();
  if (peek(TK_IDENT)) type->tag_name = consume_ident();
  MemberInfo head;
  head.next = NULL;
  MemberInfo *cursor = &head;
  if (consume_if(TK_OP_BRACE)) {
    int i = 0;
    while (!peek(TK_CL_BRACE)) {
      Token *ident = consume_ident();
      // initializer
      if (consume_if(TK_ASSIGN)) {
        i = consume_number();
      }
      Type *new = new_type_enum_el(ident, i++);
      cursor->next = new_member_info(new->tag_name, new);
      cursor = cursor->next;
      new_tag(new->tag_name, new);
      if (!consume_if(TK_COMMA)) break;
    }
    expect(TK_CL_BRACE);
  }
  type->member = head.next;
  new_tag(type->tag_name, type);
  return type;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
xorl %eax, %eax
callq 0xae3f
movq %rax, %r14
leaq 0xad39(%rip), %rbp      # 0x13228
movq (%rbp), %rax
cmpl $0x0, (%rax)
jne 0x8508
movq (%rbp), %rax
movq 0x8(%rax), %rcx
movq %rcx, (%rbp)
movq %rax, 0x30(%r14)
movq $0x0, 0x8(%rsp)
movq (%rbp), %rax
cmpl $0x1f, (%rax)
jne 0x8608
movq %r14, 0x10(%rsp)
leaq 0x8(%rsp), %rbx
xorl %r15d, %r15d
movq 0x8(%rax), %rdi
movq %rdi, (%rbp)
movl (%rdi), %eax
testl %eax, %eax
je 0x8550
cmpl $0x20, %eax
je 0x85e0
leaq 0x4dfc(%rip), %rsi      # 0xd345
xorl %eax, %eax
callq 0x52f9
movq (%rbp), %r12
movq 0x8(%r12), %rax
movq %rax, (%rbp)
cmpl $0xd, (%rax)
jne 0x8572
movq 0x8(%rax), %rax
movq %rax, (%rbp)
callq 0x615e
movq %rax, %r15
movq %r12, %rdi
movl %r15d, %esi
callq 0xae57
movq %rax, %r13
movq 0x30(%rax), %r14
movl $0x1, %edi
movl $0x20, %esi
callq 0x10d0
movq %rax, %r12
movq %r13, 0x10(%rax)
movq %r14, 0x8(%rax)
movq %rax, (%rbx)
testq %r14, %r14
je 0x85cd
movl $0x1, %edi
movl $0x18, %esi
callq 0x10d0
leaq 0xac9c(%rip), %rdx      # 0x13258
movq (%rdx), %rcx
movq %rcx, (%rax)
movq %r14, 0x8(%rax)
movq %r13, 0x10(%rax)
movq %rax, (%rdx)
incl %r15d
movq (%rbp), %rax
cmpl $0x23, (%rax)
movq %r12, %rbx
je 0x852b
movq (%rbp), %rdi
cmpl $0x20, (%rdi)
je 0x85f7
leaq 0x4e3a(%rip), %rsi      # 0xd42a
xorl %eax, %eax
callq 0x52f9
movq (%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, (%rbp)
movq 0x10(%rsp), %r14
movq 0x8(%rsp), %rax
movq %rax, 0x20(%r14)
movq 0x30(%r14), %rbx
testq %rbx, %rbx
je 0x8641
movl $0x1, %edi
movl $0x18, %esi
callq 0x10d0
leaq 0xac28(%rip), %rcx      # 0x13258
movq (%rcx), %rdx
movq %rdx, (%rax)
movq %rbx, 0x8(%rax)
movq %r14, 0x10(%rax)
movq %rax, (%rcx)
movq %r14, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/sisshiki1969[P]monocc/src/parse.c
// Function: parse_func_definition
Node *parse_func_definition(MemberInfo *ty_ident) {
  Node *decl;
  Token *ident = ty_ident->ident;
  Type *type = ty_ident->type;
  cur_fn = new_func(ident, type, NULL);
  // function definition
  Vector *params = vec_new();
  MemberInfo *cursor = type->params;
  while (cursor) {
    vec_push(params, new_node_lvar(new_lvar(cursor->ident, cursor->type),
                                   cursor->ident));
    cursor = cursor->next;
  }

  Node *body = parse_block();
  int max_offset;
  if (type->variadic) {
    max_offset = 128;
  } else {
    max_offset = 32;
  };
  if (locals) max_offset = locals->offset;
  decl = new_node_fdecl(ident, params, max_offset, body, type);
  cur_fn->body = decl;
  return decl;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq 0x8(%rdi), %r15
movq 0x10(%rdi), %r12
movl $0x1, %edi
movl $0x28, %esi
callq 0x10d0
leaq 0xa6f5(%rip), %rcx      # 0x13268
movq (%rcx), %rdx
movq %rdx, (%rax)
movq %r15, 0x8(%rax)
movq %r12, 0x10(%rax)
movq $0x0, 0x18(%rax)
movq %rax, (%rcx)
movq %rax, 0xa6dd(%rip)      # 0x13270
xorl %eax, %eax
callq 0x3f34
movq %rax, %rbx
movq 0x18(%r12), %r13
testq %r13, %r13
je 0x8bf1
movq 0x8(%r13), %rdi
movq 0x10(%r13), %rsi
callq 0x5eb7
movq %rax, %r14
movq 0x8(%r13), %rbp
movl $0x1, %edi
movl $0x68, %esi
callq 0x10d0
movl $0x18, (%rax)
movq %r14, 0x30(%rax)
movq %rbp, 0x50(%rax)
movq 0x10(%r14), %rcx
movq %rcx, 0x58(%rax)
movq %rbx, %rdi
movq %rax, %rsi
callq 0x3f66
movq (%r13), %r13
jmp 0x8ba2
callq 0x81be
cmpb $0x0, 0x38(%r12)
movl $0x80, %ecx
movl $0x20, %ebp
cmovnel %ecx, %ebp
movq %rax, %r14
leaq 0xa635(%rip), %rax      # 0x13248
movq (%rax), %rax
testq %rax, %rax
je 0x8c1e
movl 0x18(%rax), %ebp
movl $0x1, %edi
movl $0x68, %esi
callq 0x10d0
movl $0x27, (%rax)
movq %r14, 0x8(%rax)
movq %rbx, 0x48(%rax)
movl %ebp, 0x38(%rax)
movq %r15, 0x50(%rax)
movq %r12, 0x58(%rax)
movq 0xa623(%rip), %rcx      # 0x13270
movq %rax, 0x18(%rcx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/sisshiki1969[P]monocc/src/parse.c
// Function: parse_array_initializer
Node *parse_array_initializer(Type *l_type) {
  Token *op_token = token;
  expect(TK_OP_BRACE);
  Vector *vec = vec_new();
  Type *ary_of = l_type->ptr_to;
  while (!peek(TK_CL_BRACE)) {
    Node *init = parse_initializer(ary_of);
    vec_push(vec, init);
    if (!consume_if(TK_COMMA)) break;
  }
  expect(TK_CL_BRACE);
  Node *node = new_node(ND_INIT, op_token);
  node->nodes = vec;
  node->type = new_type_array(ary_of, vec_len(vec));
  return node;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
leaq 0xa5b6(%rip), %r12      # 0x13228
movq (%r12), %rbx
cmpl $0x1f, (%rbx)
je 0x8c8c
leaq 0x47a8(%rip), %rsi      # 0xd42a
movq %rbx, %rdi
xorl %eax, %eax
callq 0x52f9
movq (%r12), %rax
movq 0x8(%rax), %rax
movq %rax, (%r12)
xorl %eax, %eax
callq 0x3f34
movq %rax, %r15
movq 0x8(%r14), %r14
movq (%r12), %rax
cmpl $0x20, (%rax)
je 0x8cd5
movq %r14, %rdi
callq 0x8077
movq %r15, %rdi
movq %rax, %rsi
callq 0x3f66
movq (%r12), %rax
cmpl $0x23, (%rax)
jne 0x8cd5
movq 0x8(%rax), %rax
movq %rax, (%r12)
jmp 0x8caa
movq (%r12), %rdi
cmpl $0x20, (%rdi)
je 0x8cec
leaq 0x4745(%rip), %rsi      # 0xd42a
xorl %eax, %eax
callq 0x52f9
movq (%r12), %rax
movq 0x8(%rax), %rax
movq %rax, (%r12)
movl $0x1, %edi
movl $0x68, %esi
callq 0x10d0
movq %rax, %r12
movl $0x3, (%rax)
movq %rbx, 0x50(%rax)
movq %r15, 0x48(%rax)
movq %r15, %rdi
callq 0x3f62
movq %r14, %rdi
movl %eax, %esi
callq 0xadd7
movq %rax, 0x58(%r12)
movq %r12, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/sisshiki1969[P]monocc/src/parse.c
// Function: parse_struct_initializer
Node *parse_struct_initializer(Type *l_type) {
  Token *op_token = token;
  expect(TK_OP_BRACE);
  Vector *vec = vec_new();
  MemberInfo *member = l_type->member;
  while (!peek(TK_CL_BRACE)) {
    Node *init = parse_initializer(member->type);
    vec_push(vec, init);
    if (!consume_if(TK_COMMA)) break;
    member = member->next;
  }
  expect(TK_CL_BRACE);
  Node *node = new_node(ND_INIT, op_token);
  node->nodes = vec;
  node->type = new_type_struct();
  return node;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r15
leaq 0xa4d8(%rip), %r12      # 0x13228
movq (%r12), %rbx
cmpl $0x1f, (%rbx)
je 0x8d6a
leaq 0x46ca(%rip), %rsi      # 0xd42a
movq %rbx, %rdi
xorl %eax, %eax
callq 0x52f9
movq (%r12), %rax
movq 0x8(%rax), %rax
movq %rax, (%r12)
xorl %eax, %eax
callq 0x3f34
movq %rax, %r14
movq 0x20(%r15), %r15
movq (%r12), %rax
cmpl $0x20, (%rax)
je 0x8dbc
movq 0x10(%r15), %rdi
callq 0x8077
movq %r14, %rdi
movq %rax, %rsi
callq 0x3f66
movq (%r12), %rcx
movl (%rcx), %eax
cmpl $0x23, %eax
jne 0x8db7
movq 0x8(%rcx), %rcx
movq %rcx, (%r12)
movq (%r15), %r15
cmpl $0x23, %eax
je 0x8d84
movq (%r12), %rdi
cmpl $0x20, (%rdi)
je 0x8dd3
leaq 0x465e(%rip), %rsi      # 0xd42a
xorl %eax, %eax
callq 0x52f9
movq (%r12), %rax
movq 0x8(%rax), %rax
movq %rax, (%r12)
movl $0x1, %edi
movl $0x68, %esi
callq 0x10d0
movq %rax, %r15
movl $0x3, (%rax)
movq %rbx, 0x50(%rax)
movq %r14, 0x48(%rax)
xorl %eax, %eax
callq 0xae27
movq %rax, 0x58(%r15)
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/sisshiki1969[P]monocc/src/pp.c
// Function: pp
void pp() {
  Macro *m;
  for (Token *t = token; t; t = t->next) {
    // print_token(stderr, t);
    if (t->kind != TK_IDENT) continue;
    if (!(m = find_macro(t))) continue;
    Macro args_head;
    args_head.next = NULL;
    Macro *args = &args_head;
    if (m->params) {
      check_params(m, t, &args);
    }
    // for(Macro *args = args_head.next; args; args = args->next)
    // print_tokens(stderr, args->params);
    if (!m->subst) {
      Token *next_token = t->next;
      *t = *next_token;
      t = next_token;
      continue;
    }

    Token *next_token = t->next;
    *t = *(m->subst);
    while (t->next) {
      if (t->kind == TK_IDENT) {
        for (Token *param = m->params; param; param = param->next) {
          if (cmp_token(t, param)) {
            int i = param->num_val;
            // fprintf(stderr, "find: %d", i);
            // print_token(stderr, t);
            for (Macro *args = args_head.next; args; args = args->next) {
              if (i-- == 0) {
                Token *next = t->next;
                // copy_token(args->params, t);
                *t = *args->params;
                while (t->next) t - t->next;
                t->next = next;
                break;
              }
            }
            // fprintf(stderr, "\n");
            break;
          }
        }
      }
      t = t->next;
    }
    t->next = next_token;
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
leaq 0x9ead(%rip), %rax      # 0x13228
movq (%rax), %r14
testq %r14, %r14
je 0x94b7
leaq 0x8(%rsp), %r13
cmpl $0x0, (%r14)
je 0x93a0
movq 0x8(%r14), %r14
testq %r14, %r14
jne 0x938c
jmp 0x94b7
movq %r14, %rdi
callq 0x96fa
testq %rax, %rax
je 0x9392
movq %rax, %r15
movq $0x0, 0x8(%rsp)
movq %r13, (%rsp)
cmpq $0x0, 0x10(%rax)
je 0x93d2
movq %r15, %rdi
movq %r14, %rsi
movq %rsp, %rdx
callq 0x91d0
movq 0x18(%r15), %rax
movq 0x8(%r14), %rbp
testq %rax, %rax
je 0x9493
movups (%rax), %xmm0
movups 0x10(%rax), %xmm1
movups 0x20(%rax), %xmm2
movups %xmm0, (%r14)
movups %xmm2, 0x20(%r14)
movups %xmm1, 0x10(%r14)
cmpq $0x0, 0x8(%r14)
je 0x948a
leaq 0x8(%r14), %rbx
cmpl $0x0, (%r14)
je 0x9421
movq (%rbx), %r14
leaq 0x8(%r14), %rbx
cmpq $0x0, 0x8(%r14)
jne 0x940b
jmp 0x948a
movq 0x10(%r15), %r12
testq %r12, %r12
je 0x9411
movq %r14, %rdi
movq %r12, %rsi
callq 0x61e1
testb %al, %al
jne 0x9440
movq 0x8(%r12), %r12
jmp 0x9425
movq 0x8(%rsp), %rax
testq %rax, %rax
je 0x9411
movl 0x10(%r12), %ecx
incl %ecx
decl %ecx
je 0x945f
movq (%rax), %rax
testq %rax, %rax
jne 0x9451
jmp 0x9411
movq (%rbx), %rcx
movq 0x10(%rax), %rax
movups (%rax), %xmm0
movups 0x10(%rax), %xmm1
movups 0x20(%rax), %xmm2
movups %xmm2, 0x20(%r14)
movups %xmm1, 0x10(%r14)
movups %xmm0, (%r14)
cmpq $0x0, (%rbx)
jne 0x94b5
movq %rcx, (%rbx)
jmp 0x9411
movq %rbp, 0x8(%r14)
jmp 0x9392
movups (%rbp), %xmm0
movups 0x10(%rbp), %xmm1
movups 0x20(%rbp), %xmm2
movups %xmm2, 0x20(%r14)
movups %xmm1, 0x10(%r14)
movups %xmm0, (%r14)
movq %rbp, %r14
jmp 0x9392
jmp 0x94b5
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O1/sisshiki1969[P]monocc/src/tokenize.c
// Function: new_token
Token *new_token(TokenKind kind, Token *cur, char *str, int len) {
  Token *new_token = calloc(1, sizeof(Token));
  new_token->kind = kind;
  new_token->str = str;
  new_token->len = len;
  cur->next = new_token;
  return new_token;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %ecx, %ebx
movq %rdx, %r14
movq %rsi, %r15
movl %edi, %ebp
movl $0x1, %edi
movl $0x30, %esi
callq 0x10d0
movl %ebp, (%rax)
movq %r14, 0x20(%rax)
movl %ebx, 0x28(%rax)
movq %rax, 0x8(%r15)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/sisshiki1969[P]monocc/src/tokenize.c
// Function: dup_token
Token *dup_token(Token *src) {
  Token *new = calloc(1, sizeof(Token));
  *new = *src;
  new->next = NULL;
  return new;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl $0x1, %edi
movl $0x30, %esi
callq 0x10d0
movups (%rbx), %xmm0
movups 0x10(%rbx), %xmm1
movups 0x20(%rbx), %xmm2
movups %xmm0, (%rax)
movups %xmm1, 0x10(%rax)
movups %xmm2, 0x20(%rax)
movq $0x0, 0x8(%rax)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/sisshiki1969[P]monocc/src/tokenize.c
// Function: new_file_info
FileInfo *new_file_info(char *file_name, char *start) {
  FileInfo *fi = calloc(1, sizeof(FileInfo));
  fi->next = file_informations;
  fi->file_name = file_name;
  fi->start = start;
  if (file_informations) {
    fi->no = file_informations->no + 1;
  } else {
    fi->no = 1;
  };
  file_informations = fi;
  return fi;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movl $0x1, %edi
movl $0x28, %esi
callq 0x10d0
leaq 0x9c28(%rip), %rcx      # 0x13208
movq (%rcx), %rdx
movq %rdx, (%rax)
movq %r14, 0x8(%rax)
movq %rbx, 0x10(%rax)
testq %rdx, %rdx
je 0x95fa
movl 0x20(%rdx), %edx
incl %edx
jmp 0x95ff
movl $0x1, %edx
movl %edx, 0x20(%rax)
movq %rax, (%rcx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/sisshiki1969[P]monocc/src/tokenize.c
// Function: new_macro
Macro *new_macro(Token *token, Token *params, Token *subst) {
  Macro *m = calloc(1, sizeof(Macro));
  m->token = token;
  m->params = params;
  m->subst = subst;
  m->next = macros;
  macros = m;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movl $0x1, %edi
movl $0x20, %esi
callq 0x10d0
movq %r15, 0x8(%rax)
movq %r14, 0x10(%rax)
movq %rbx, 0x18(%rax)
movq 0x9c43(%rip), %rcx      # 0x13280
movq %rcx, (%rax)
movq %rax, 0x9c39(%rip)      # 0x13280
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/sisshiki1969[P]monocc/src/tokenize.c
// Function: dup_tokens
Token *dup_tokens(Token *src) {
  Token head;
  head.next = NULL;
  Token *t = &head;
  for (; src; src = src->next) {
    t->next = dup_token(src);
    t = t->next;
  }
  return head.next;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x38, %rsp
movq $0x0, 0x10(%rsp)
testq %rdi, %rdi
je 0x96a7
movq %rdi, %rbx
leaq 0x8(%rsp), %r14
movl $0x1, %edi
movl $0x30, %esi
callq 0x10d0
movups (%rbx), %xmm0
movups 0x10(%rbx), %xmm1
movups 0x20(%rbx), %xmm2
movups %xmm0, (%rax)
movups %xmm1, 0x10(%rax)
movups %xmm2, 0x20(%rax)
movq $0x0, 0x8(%rax)
movq %rax, 0x8(%r14)
movq 0x8(%rbx), %rbx
movq %rax, %r14
testq %rbx, %rbx
jne 0x966a
movq 0x10(%rsp), %rax
addq $0x38, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/sisshiki1969[P]monocc/src/tokenize.c
// Function: dup_macro
Macro *dup_macro(Macro *macro) {
  Macro *m = calloc(1, sizeof(Macro));
  m->token = macro->token;
  m->params = dup_tokens(macro->params);
  m->subst = dup_tokens(macro->subst);
  return m;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x1, %edi
movl $0x20, %esi
callq 0x10d0
movq %rax, %r14
movq 0x8(%rbx), %rax
movq %rax, 0x8(%r14)
movq 0x10(%rbx), %rdi
callq 0x964d
movq %rax, 0x10(%r14)
movq 0x18(%rbx), %rdi
callq 0x964d
movq %rax, 0x18(%r14)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/sisshiki1969[P]monocc/src/tokenize.c
// Function: find_macro
Macro *find_macro(Token *token) {
  for (Macro *m = macros; m; m = m->next) {
    if (token->len == m->token->len &&
        strncmp(token->str, m->token->str, token->len) == 0) {
      return dup_macro(m);
    }
  }
  return NULL;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq 0x9b7a(%rip), %rbx      # 0x13280
testq %rbx, %rbx
je 0x9738
movq %rdi, %r14
movslq 0x28(%rdi), %r15
movq 0x8(%rbx), %rax
cmpl 0x28(%rax), %r15d
jne 0x9730
movq 0x20(%r14), %rdi
movq 0x20(%rax), %rsi
movq %r15, %rdx
callq 0x1050
testl %eax, %eax
je 0x9740
movq (%rbx), %rbx
testq %rbx, %rbx
jne 0x9712
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x96b4
// File: /workspace/github_c_makefile_star2_O1/sisshiki1969[P]monocc/src/tokenize.c
// Function: new_tok_context
TokContext *new_tok_context(FileInfo *file_info, Token *current_token,
                            char *char_ptr) {
  TokContext *ctx = calloc(1, sizeof(TokContext));
  ctx->file_info = file_info;
  ctx->cur = current_token;
  ctx->p = char_ptr;
  return ctx;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movl $0x1, %edi
movl $0x18, %esi
callq 0x10d0
movq %r15, (%rax)
movq %r14, 0x8(%rax)
movq %rbx, 0x10(%rax)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/sisshiki1969[P]monocc/src/type.c
// Function: new_type_ptr_to
Type *new_type_ptr_to(Type *ptr_to) {
  Type *type = calloc(1, sizeof(Type));
  type->ty = PTR;
  type->ptr_to = ptr_to;
  return type;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl $0x1, %edi
movl $0x40, %esi
callq 0x10d0
movl $0x9, (%rax)
movq %rbx, 0x8(%rax)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/sisshiki1969[P]monocc/src/type.c
// Function: new_type_array
Type *new_type_array(Type *ptr_to, int size) {
  Type *type = calloc(1, sizeof(Type));
  type->ty = ARRAY;
  type->ptr_to = ptr_to;
  type->array_size = size;
  return type;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
movl $0x1, %edi
movl $0x40, %esi
callq 0x10d0
movl $0xa, (%rax)
movq %r14, 0x8(%rax)
movl %ebx, 0x10(%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/sisshiki1969[P]monocc/src/type.c
// Function: new_type_func
Type *new_type_func(Type *return_type) {
  Type *type = calloc(1, sizeof(Type));
  type->ty = FUNC;
  type->ptr_to = return_type;
  type->variadic = false;
  return type;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl $0x1, %edi
movl $0x40, %esi
callq 0x10d0
movl $0xb, (%rax)
movq %rbx, 0x8(%rax)
movb $0x0, 0x38(%rax)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/sisshiki1969[P]monocc/src/type.c
// Function: new_type_enum_el
Type *new_type_enum_el(Token *ident, int i) {
  Type *type = calloc(1, sizeof(Type));
  type->ty = ENUM_EL;
  type->tag_name = ident;
  type->offset = i;
  return type;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
movl $0x1, %edi
movl $0x40, %esi
callq 0x10d0
movl $0xe, (%rax)
movq %r14, 0x30(%rax)
movl %ebx, 0x28(%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/sisshiki1969[P]monocc/src/type.c
// Function: get_common_type
Type *get_common_type(Type *ty1, Type *ty2) {
  if (sizeof_type(ty1) < 4) ty1 = new_type_int();
  if (sizeof_type(ty2) < 4) ty2 = new_type_int();

  if (is_signed(ty1) == is_signed(ty2)) {
    if (sizeof_type(ty1) < sizeof_type(ty2)) {
      return ty2;
    } else {
      return ty1;
    }
  }

  if (is_signed(ty1)) {
    if (sizeof_type(ty2) >= sizeof_type(ty1)) {
      return ty2;
    } else {
      return ty1;
    };
  } else {
    if (sizeof_type(ty1) >= sizeof_type(ty2)) {
      return ty1;
    } else {
      return ty2;
    };
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
callq 0xafa3
cmpl $0x4, %eax
leaq 0x835d(%rip), %r15      # 0x13288
cmovlq %r15, %rbx
movq %r14, %rdi
callq 0xafa3
cmpl $0x4, %eax
cmovlq %r15, %r14
movl (%rbx), %eax
decl %eax
testl $0xfffffff9, %eax       # imm = 0xFFFFFFF9
sete %cl
movl (%r14), %edx
decl %edx
testl $0xfffffff9, %edx       # imm = 0xFFFFFFF9
sete %dl
xorb %cl, %dl
je 0xaf63
testl $0xfffffff9, %eax       # imm = 0xFFFFFFF9
je 0xaf89
movq %rbx, %rdi
callq 0xafa3
movl %eax, %ebp
movq %r14, %rdi
callq 0xafa3
cmpl %eax, %ebp
cmovlq %r14, %rbx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %r14, %rdi
callq 0xafa3
movl %eax, %ebp
movq %rbx, %rdi
callq 0xafa3
cmpl %eax, %ebp
cmovgeq %r14, %rbx
jmp 0xaf7b
// File: /workspace/github_c_makefile_star2_O1/sisshiki1969[P]monocc/src/type.c
// Function: sizeof_type
int sizeof_type(Type *type) {
  switch (type->ty) {
    case VOID:
      return 0;
    case CHAR:
    case BOOL:
      return 1;
    case SHORT:
    case USHORT:
      return 2;
    case INT:
    case UINT:
    case ENUM_EL:
    case ENUM:
      return 4;
    case PTR:
    case LONG:
    case ULONG:
      return 8;
    case ARRAY:
      return type->array_size * sizeof_type(type->ptr_to);
    case STRUCT:
      return sizeof_struct(type);
    default:
      error("Internal error: can not calculate size of unknown type ID=%d",
            type->ty);
  }
}

// Assembly:
pushq %rbx
movl $0x1, %ebx
movl (%rdi), %eax
cmpl $0xa, %eax
jne 0xafba
imull 0x10(%rdi), %ebx
movq 0x8(%rdi), %rdi
jmp 0xafa9
cmpl $0xe, %eax
ja 0xaff4
movl %eax, %ecx
leaq 0x2a80(%rip), %rdx      # 0xda48
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
movl $0x4, %eax
jmp 0xb004
movl $0x8, %eax
jmp 0xb004
movl $0x2, %eax
jmp 0xb004
movl $0x1, %eax
jmp 0xb004
callq 0xb0ca
jmp 0xb004
leaq 0x2be6(%rip), %rdi      # 0xdbe1
movl %eax, %esi
xorl %eax, %eax
callq 0x50b0
imull %eax, %ebx
movl %ebx, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/sisshiki1969[P]monocc/src/type.c
// Function: alignof_struct
int alignof_struct(Type *type) {
  MemberInfo *cursor = type->member;
  TagName *tag = find_tag(type->tag_name);
  if (!tag) {
    if (!type->member) error("anonymous struct with no members.");
  } else
    cursor = tag->type->member;
  int align = 0;
  while (cursor) {
    int a = alignof_type(cursor->type);
    if (a > align) align = a;
    cursor = cursor->next;
  }
  return align;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x20(%rdi), %r14
movq 0x30(%rdi), %rdi
callq 0x64c9
testq %rax, %rax
je 0xb038
movq 0x10(%rax), %rax
movq 0x20(%rax), %r14
jmp 0xb04d
cmpq $0x0, 0x20(%rbx)
jne 0xb04d
leaq 0x2b3a(%rip), %rdi      # 0xdb80
xorl %eax, %eax
callq 0x50b0
xorl %ebx, %ebx
testq %r14, %r14
je 0xb067
movq 0x10(%r14), %rdi
callq 0xb071
cmpl %ebx, %eax
cmovgl %eax, %ebx
movq (%r14), %r14
jmp 0xb04f
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/sisshiki1969[P]monocc/src/type.c
// Function: alignof_type
int alignof_type(Type *type) {
  switch (type->ty) {
    case VOID:
      return 0;
    case CHAR:
    case BOOL:
      return 1;
    case SHORT:
    case USHORT:
      return 2;
    case INT:
    case UINT:
    case ENUM_EL:
    case ENUM:
      return 4;
    case PTR:
    case LONG:
    case ULONG:
      return 8;
    case ARRAY:
      return alignof_type(type->ptr_to);
    case STRUCT:
      return alignof_struct(type);
    default:
      error("Internal error: can not calculate align of unknown type ID=%d.",
            type->ty);
  }
}

// Assembly:
pushq %rax
movl (%rdi), %eax
cmpl $0xa, %eax
jne 0xb07f
movq 0x8(%rdi), %rdi
jmp 0xb072
cmpl $0xe, %eax
ja 0xb0b8
movl %eax, %ecx
leaq 0x29f7(%rip), %rdx      # 0xda84
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
movl $0x4, %eax
jmp 0xb0c8
movl $0x8, %eax
jmp 0xb0c8
movl $0x2, %eax
jmp 0xb0c8
movl $0x1, %eax
jmp 0xb0c8
popq %rax
jmp 0xb015
leaq 0x2ae3(%rip), %rdi      # 0xdba2
movl %eax, %esi
xorl %eax, %eax
callq 0x50b0
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O1/sisshiki1969[P]monocc/src/type.c
// Function: sizeof_struct
int sizeof_struct(Type *type) {
  MemberInfo *cursor;
  TagName *tag = find_tag(type->tag_name);
  if (!tag) {
    if (!type->member) error("anonymous struct with no members.");
    cursor = type->member;
  } else
    cursor = tag->type->member;
  int size = 0;
  while (cursor) {
    size = align_to(size, alignof_type(cursor->type));
    size += sizeof_type(cursor->type);  // sizeof_type(cursor);
    cursor = cursor->next;
  }
  return align_to(size, alignof_type(type));
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x30(%rdi), %rdi
callq 0x64c9
testq %rax, %rax
je 0xb0ed
movq 0x10(%rax), %r14
addq $0x20, %r14
jmp 0xb106
leaq 0x20(%rbx), %r14
cmpq $0x0, 0x20(%rbx)
jne 0xb106
leaq 0x2a81(%rip), %rdi      # 0xdb80
xorl %eax, %eax
callq 0x50b0
movq (%r14), %r12
testq %r12, %r12
je 0xb148
xorl %r14d, %r14d
movq 0x10(%r12), %rdi
callq 0xb071
movl %eax, %r15d
leal (%r14,%r15), %eax
decl %eax
negl %r15d
andl %eax, %r15d
movq 0x10(%r12), %rdi
callq 0xafa3
movl %eax, %r14d
addl %r15d, %r14d
movq (%r12), %r12
testq %r12, %r12
jne 0xb111
decl %r14d
jmp 0xb14e
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
movq %rbx, %rdi
callq 0xb071
addl %eax, %r14d
negl %eax
andl %r14d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/sisshiki1969[P]monocc/src/type.c
// Function: is_identical_type
bool is_identical_type(Type *l_type, Type *r_type) {
  if (l_type->ty != r_type->ty) return false;
  if (is_void(l_type) && is_void(r_type)) return true;
  if (is_arith(l_type)) return true;
  if (is_array(l_type))
    return is_identical_type(l_type->ptr_to, r_type->ptr_to);
  if (is_struct(l_type)) {
    MemberInfo *l_mem = l_type->member;
    MemberInfo *r_mem = r_type->member;
    while (l_mem && r_mem) {
      if (!is_identical_type(l_mem->type, r_mem->type)) return false;
      l_mem = l_mem->next;
      r_mem = r_mem->next;
    }
    return !r_mem && !l_mem;
  }
  if (is_ptr(l_type)) {
    return is_identical_type(l_type->ptr_to, r_type->ptr_to);
  }
  if (is_func(l_type)) {
    return is_identical_type(l_type->ptr_to, r_type->ptr_to);
  }
  return false;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x2945(%rip), %rcx      # 0xdac0
movl (%r14), %edx
movl (%rbx), %esi
cmpl %esi, %edx
jne 0xb1a4
movb $0x1, %al
testl %esi, %esi
je 0xb1a6
decl %edx
cmpl $0xc, %edx
ja 0xb1a4
movslq (%rcx,%rdx,4), %rdx
addq %rcx, %rdx
jmpq *%rdx
movq 0x8(%r14), %r14
movq 0x8(%rbx), %rbx
jmp 0xb17b
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
addq $0x20, %r14
addq $0x20, %rbx
movq (%rbx), %rbx
movq (%r14), %r14
testq %r14, %r14
je 0xb1dd
testq %rbx, %rbx
je 0xb1dd
movq 0x10(%r14), %rdi
movq 0x10(%rbx), %rsi
callq 0xb16a
movl %eax, %ecx
xorl %eax, %eax
testb %cl, %cl
jne 0xb1b6
jmp 0xb1a6
orq %r14, %rbx
sete %al
jmp 0xb1a6
// File: /workspace/github_c_makefile_star2_O1/sisshiki1969[P]monocc/src/type.c
// Function: is_compatible_type
bool is_compatible_type(Type *l_type, Type *r_type) {
  if (is_arith(l_type) && is_arith(r_type)) return true;
  // if (is_arith(l_type) && !is_arith(r_type)) return false;
  // if (!is_arith(l_type) && is_arith(r_type)) return false;
  if (is_ptr(l_type) && is_ptr(r_type)) {
    if (is_void(l_type->ptr_to) || is_void(r_type->ptr_to)) return true;
    return is_identical_type(l_type->ptr_to, r_type->ptr_to);
  }
  if (is_func(l_type) && is_func(r_type))
    return is_identical_type(l_type, r_type);
  return false;
}

// Assembly:
movl (%rdi), %ecx
leal -0x1(%rcx), %eax
cmpl $0x8, %eax
jae 0xb212
movl (%rsi), %edx
decl %edx
cmpl $0xd, %edx
jae 0xb206
movb $0x1, %al
movl $0x10ff, %r8d           # imm = 0x10FF
btl %edx, %r8d
jb 0xb23c
cmpl $0xb, %ecx
je 0xb242
cmpl $0x9, %ecx
je 0xb223
jmp 0xb24c
cmpl $0x9, %ecx
je 0xb223
cmpl $0xb, %ecx
je 0xb242
cmpl $0xd, %ecx
je 0xb1ef
jmp 0xb24c
cmpl $0x9, (%rsi)
jne 0xb23d
movq 0x8(%rdi), %rdi
movb $0x1, %al
cmpl $0x0, (%rdi)
je 0xb23c
movq 0x8(%rsi), %rsi
cmpl $0x0, (%rsi)
jne 0xb247
retq
cmpl $0xb, %ecx
jne 0xb24c
cmpl $0xb, (%rsi)
jne 0xb24c
jmp 0xb16a
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/sisshiki1969[P]monocc/src/type.c
// Function: is_assignable_type
bool is_assignable_type(Type *l_type, Type *r_type) {
  if (is_array(l_type)) {
    if (is_array(r_type)) {
      return true;
    }
    l_type = l_type->ptr_to;
  }
  if (is_void(l_type) || is_void(r_type)) return false;
  if (is_arith(l_type) && is_arith(r_type)) return true;
  if (is_ptr(l_type) && is_arith(r_type)) return true;
  if (is_ptr(l_type) && is_ptr(r_type) && is_void(r_type->ptr_to)) return true;
  while (l_type) {
    if (l_type->ty != r_type->ty) return false;
    if (l_type->ty != PTR && l_type->ty != ARRAY) return true;
    l_type = l_type->ptr_to;
    r_type = r_type->ptr_to;
  }
  error("Internal error: Invalid type structure.");
}

// Assembly:
cmpl $0xa, (%rdi)
jne 0xb25f
movb $0x1, %al
cmpl $0xa, (%rsi)
je 0xb297
movq 0x8(%rdi), %rdi
pushq %rax
movl (%rdi), %ecx
testl %ecx, %ecx
je 0xb291
movl (%rsi), %edx
testl %edx, %edx
je 0xb291
leal -0x1(%rcx), %eax
cmpl $0x8, %eax
jae 0xb29a
cmpl $0xe, %edx
jae 0xb29f
leal -0x1(%rdx), %r8d
movb $0x1, %al
movzbl %r8b, %r8d
movl $0x10ff, %r9d           # imm = 0x10FF
btl %r8d, %r9d
jb 0xb293
jmp 0xb29f
xorl %eax, %eax
addq $0x8, %rsp
andb $0x1, %al
retq
cmpl $0xd, %ecx
je 0xb274
cmpl $0x9, %ecx
jne 0xb2d2
cmpl $0xe, %edx
jae 0xb2bf
leal -0x1(%rdx), %r8d
movb $0x1, %al
movzbl %r8b, %r8d
movl $0x10ff, %r9d           # imm = 0x10FF
btl %r8d, %r9d
jb 0xb293
xorl $0x9, %ecx
xorl $0x9, %edx
orl %ecx, %edx
jne 0xb2d2
movq 0x8(%rsi), %rax
cmpl $0x0, (%rax)
je 0xb300
movl (%rdi), %ecx
cmpl (%rsi), %ecx
sete %al
jne 0xb293
addl $-0x9, %ecx
cmpl $0x1, %ecx
ja 0xb293
movq 0x8(%rdi), %rdi
movq 0x8(%rsi), %rsi
testq %rdi, %rdi
jne 0xb2d2
leaq 0x2927(%rip), %rdi      # 0xdc1e
xorl %eax, %eax
callq 0x50b0
jmp 0xb293
movb $0x1, %al
jmp 0xb293
// File: /workspace/github_c_makefile_star2_O1/ohkimur[P]the-c-programming-language-2nd-edition-solutions/chapter_1/exercise_1_21/entab.c
// Function: main
int main(void)
{
  int c;
  unsigned int line_pos = 0;
  unsigned int nr_of_spaces = 0;

  while ((c = getchar()) != EOF)
  {
    ++line_pos;

    if (c == ' ')
    {
      ++nr_of_spaces;

      if (line_pos % TAB_LENGTH == 0 && nr_of_spaces > 1)
      {
        putchar('\t');
        nr_of_spaces = 0;
      }
    }
    else
    {
      while (nr_of_spaces)
      {
        putchar(' ');
        --nr_of_spaces;
      }

      if (c == '\n')
      {
        line_pos = 0;
      }

      putchar(c);
    }
  }

  return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
callq 0x1040
cmpl $-0x1, %eax
je 0x11bc
movl %eax, %ebx
xorl %ebp, %ebp
xorl %r15d, %r15d
xorl %r14d, %r14d
incl %r14d
cmpl $0x20, %ebx
jne 0x118b
incl %r15d
testb $0x7, %r14b
sete %al
cmpl $0x2, %r15d
setae %cl
movl $0x9, %ebx
testb %cl, %al
jne 0x11a6
jmp 0x11b0
testl %r15d, %r15d
je 0x119f
movl $0x20, %edi
callq 0x1030
decl %r15d
jne 0x1190
cmpl $0xa, %ebx
cmovel %ebp, %r14d
movl %ebx, %edi
callq 0x1030
xorl %r15d, %r15d
callq 0x1040
movl %eax, %ebx
cmpl $-0x1, %eax
jne 0x1167
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/marcespie[P]unix-samples/lab/soshutdown.c
// Function: main
int
main()
{
	struct addrinfo hints, *res, *res0;
	int error;
	int s = -1;

	memset(&hints, 0, sizeof(hints));
	hints.ai_family = AF_UNSPEC;
	hints.ai_socktype = SOCK_STREAM;
	hints.ai_flags = AI_PASSIVE;

	error = getaddrinfo("localhost", "ssh", &hints, &res0);
	if (error)
		errx(1, "%s", gai_strerror(error));
	for (res = res0; res; res = res->ai_next) {
		s = socket(res->ai_family, res->ai_socktype,
		    res->ai_protocol);
		if (s == -1)
			continue;
		if (connect(s, res->ai_addr, res->ai_addrlen) == -1) {
			warn("connect");
			close(s);
			s = -1;
			continue;
		}
		break;
	}
	if (s == -1)
		fprintf(stderr, "no ssh running here\n");
	int pid;

	errwrap(pid = fork());
	// so this is the fun thing: most fds in the system are shared
	// between processes: when you call close(), the underlying 
	// file/socket does NOT get closed
	if (pid == 0) {
		shutdown(s, SHUT_WR);
		exit(0);
	}
	pause();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x48, %rsp
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %rdx
movaps %xmm0, (%rdx)
movaps %xmm0, 0x10(%rdx)
movaps %xmm0, 0x20(%rdx)
movl $0x1, %eax
movl %eax, 0x8(%rdx)
movl %eax, (%rdx)
leaq 0xdaa(%rip), %rdi       # 0x2004
leaq 0xdad(%rip), %rsi       # 0x200e
leaq 0x8(%rsp), %rcx
callq 0x10d0
testl %eax, %eax
jne 0x12ff
movq 0x8(%rsp), %r15
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
testq %r15, %r15
je 0x12d3
leaq 0xd8c(%rip), %r14       # 0x2015
movl 0x4(%r15), %edi
movl 0x8(%r15), %esi
movl 0xc(%r15), %edx
callq 0x10f0
cmpl $-0x1, %eax
je 0x12c6
movl %eax, %ebp
movq 0x18(%r15), %rsi
movl 0x10(%r15), %edx
movl %eax, %edi
callq 0x10b0
cmpl $-0x1, %eax
jne 0x12d1
movq %r14, %rdi
xorl %eax, %eax
callq 0x1030
movl %ebp, %edi
callq 0x1070
movq 0x28(%r15), %r15
testq %r15, %r15
jne 0x1289
jmp 0x12d3
movl %ebp, %ebx
cmpl $-0x1, %ebx
je 0x12f8
callq 0x10e0
testl %eax, %eax
je 0x131c
cmpl $-0x1, %eax
je 0x132f
callq 0x1080
xorl %eax, %eax
addq $0x48, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
callq 0x1110
jmp 0x12d8
movl %eax, %edi
callq 0x1060
leaq 0xd05(%rip), %rsi       # 0x2012
movl $0x1, %edi
movq %rax, %rdx
xorl %eax, %eax
callq 0x1050
movl %ebx, %edi
movl $0x1, %esi
callq 0x1040
xorl %edi, %edi
callq 0x10a0
leaq 0xcfc(%rip), %rsi       # 0x2032
movl $0x1, %edi
xorl %eax, %eax
callq 0x1090
// File: /workspace/github_c_makefile_star2_O1/PARKINHYO[P]BlackjackGame/mqueue/mqueue_server.c
// Function: main
int main()
{
	int id;
	struct msqid_ds msq_status;

	pthread_t threads[MAX_PLAYERS];
	msg buf;
	int count = 0;
	init_cards();
	int i;

	// 메세지큐 생성...
	msgid_Send_Main = msgget(KEY_VALUE_MAIN2, IPC_CREAT | PERM);
	msgid_Recv_Main = msgget(KEY_VALUE_MAIN, IPC_CREAT | PERM);

	msgctl(msgid_Recv_Main, IPC_STAT, &msq_status);

	// signal 생성...
	(void)signal(SIGINT, (void(*)()) set_shutdown);

	for (i = 0; i < 10; i++) {
		msgrcv(msgid_Recv_Main, (void*)&buf, sizeof(msg), 200, 0);
		printf("start! : %s", buf.data); // start 정상적으로 받습니다.
		if (strncmp(buf.data, "start", 5) == 0) {
			printf("correct!\n");
			pthread_create(&threads[count], NULL, play_game_one, (void *)(intptr_t)count); // 게임 실행 스레드 생성합니다.
			count +=1;
		}
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xf8, %rsp
callq 0x1aba
movl $0xeb8d, %edi           # imm = 0xEB8D
movl $0x3b6, %esi            # imm = 0x3B6
callq 0x1030
movl %eax, 0x2d6e(%rip)      # 0x4150
movl $0xeb8c, %edi           # imm = 0xEB8C
movl $0x3b6, %esi            # imm = 0x3B6
callq 0x1030
movl %eax, 0x2d5d(%rip)      # 0x4154
leaq -0x118(%rbp), %rdx
movl %eax, %edi
movl $0x2, %esi
callq 0x10e0
leaq 0x76d(%rip), %rsi       # 0x1b7e
movl $0x2, %edi
callq 0x10a0
movl $0xa, %r13d
leaq -0x50(%rbp), %r14
leaq 0xc3d(%rip), %r15       # 0x2069
movl $0x72617473, %ebx       # imm = 0x72617473
xorl %r12d, %r12d
movl 0x2d1a(%rip), %edi      # 0x4154
movl $0x28, %edx
movl $0xc8, %ecx
movq %r14, %rsi
xorl %r8d, %r8d
callq 0x1110
movq %r15, %rdi
leaq -0x48(%rbp), %rsi
xorl %eax, %eax
callq 0x1070
movl -0x48(%rbp), %eax
xorl %ebx, %eax
movzbl -0x44(%rbp), %ecx
xorl $0x74, %ecx
orl %eax, %ecx
jne 0x149b
leaq 0xd52(%rip), %rdi       # 0x21c6
callq 0x1060
movslq %r12d, %r12
leaq -0xa0(,%r12,8), %rdi
addq %rbp, %rdi
xorl %esi, %esi
leaq 0x24(%rip), %rdx        # 0x14b4
movq %r12, %rcx
callq 0x10f0
incl %r12d
decl %r13d
jne 0x1434
xorl %eax, %eax
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/examples/custom_stream.c
// Function: main
int main(GT_UNUSED int argc, const char *argv[])
{
  GtNodeStream *custom_stream, *gff3_out_stream;
  GtError *err;
  int had_err;

  if (gt_version_check(GT_MAJOR_VERSION, GT_MINOR_VERSION, GT_MICRO_VERSION)) {
    fprintf(stderr, "error: %s\n", gt_version_check(GT_MAJOR_VERSION,
                                                    GT_MINOR_VERSION,
                                                    GT_MICRO_VERSION));
    return EXIT_FAILURE;
  }

  /* initialize */
  gt_lib_init();

  /* create error object */
  err = gt_error_new();

  /* create custom input stream  */
  custom_stream = custom_stream_new();

  /* create GFF3 output stream */
  gff3_out_stream = gt_gff3_out_stream_new(custom_stream, NULL);

  /* pull the features through the stream */
  had_err = gt_node_stream_pull(gff3_out_stream, err);

  /* handle error */
  if (had_err)
    fprintf(stderr, "%s: error: %s\n", argv[0], gt_error_get(err));

  /* free */
  gt_node_stream_delete(gff3_out_stream);
  gt_node_stream_delete(custom_stream);
  gt_error_delete(err);

  if (had_err)
    return EXIT_FAILURE;
  return EXIT_SUCCESS;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movl $0x1, %ebp
movl $0x1, %edi
movl $0x6, %esi
movl $0x6, %edx
callq 0x1837c
testq %rax, %rax
jne 0xfe66
callq 0x100bc
callq 0xfefc
movq %rax, %r14
cmpq $0x0, 0x5e677(%rip)     # 0x6e428
jne 0xfdcd
leaq 0xc0(%rip), %rdx        # 0xfe7a
movl $0x18, %edi
xorl %esi, %esi
callq 0x1cec4
movq %rax, 0x5e65b(%rip)     # 0x6e428
movq 0x5e654(%rip), %rdi     # 0x6e428
xorl %esi, %esi
callq 0x1cefc
movq %rax, %r15
cmpq $0x0, 0x5e642(%rip)     # 0x6e428
jne 0xfe02
leaq 0x8b(%rip), %rdx        # 0xfe7a
movl $0x18, %edi
xorl %esi, %esi
callq 0x1cec4
movq %rax, 0x5e626(%rip)     # 0x6e428
movq 0x5e61f(%rip), %rdi     # 0x6e428
movq %r15, %rsi
callq 0x1d174
movb $0x0, 0x10(%rax)
movq %r15, %rdi
xorl %esi, %esi
callq 0x1bd18
movq %rax, %r12
movq %rax, %rdi
movq %r14, %rsi
callq 0x1d0da
movl %eax, %r13d
testl %eax, %eax
jne 0xfe6d
xorl %ebp, %ebp
testl %r13d, %r13d
setne %bpl
movq %r12, %rdi
callq 0x1cf7e
movq %r15, %rdi
callq 0x1cf7e
movq %r14, %rdi
callq 0x1007d
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x46b0
jmp 0xfe55
movq %rbx, %rdi
movq %r14, %rsi
callq 0x46dd
jmp 0xfe34
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/examples/custom_stream.c
// Function: custom_stream_next
static int custom_stream_next(GtNodeStream *ns, GtGenomeNode **gn,
                              GT_UNUSED GtError *err)
{
  CustomStream *cs = custom_stream_cast(ns);
  gt_error_check(err);
  if (!cs->emitted_standard_gene) {
    *gn = gt_feature_node_new_standard_gene();
    cs->emitted_standard_gene = true;
  }
  else
    *gn = NULL;
  return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r15
cmpq $0x0, 0x5e598(%rip)     # 0x6e428
jne 0xfeac
leaq -0x1f(%rip), %rdx       # 0xfe7a
movl $0x18, %edi
xorl %esi, %esi
callq 0x1cec4
movq %rax, 0x5e57c(%rip)     # 0x6e428
movq 0x5e575(%rip), %rdi     # 0x6e428
movq %r15, %rsi
callq 0x1d174
movq %rax, %r15
testq %r14, %r14
je 0xfecf
movq %r14, %rdi
callq 0xffe2
testb %al, %al
jne 0xfef4
cmpb $0x0, 0x10(%r15)
je 0xfedf
movq $0x0, (%rbx)
jmp 0xfeec
callq 0x18e5b
movq %rax, (%rbx)
movb $0x1, 0x10(%r15)
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
callq 0x4714
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O1/stevenmherring[P]DNS/rw-trie.c
// Function: cleanup_handler
void cleanup_handler(void * arg){
  int rv;
  rv = pthread_mutex_unlock(&lock);
  assert(rv == 0);
  rv = pthread_rwlock_unlock(&rwlock);
  assert(rv == 0);
}

// Assembly:
pushq %rax
leaq 0x4dc4(%rip), %rdi      # 0x6138
callq 0x1130
testl %eax, %eax
jne 0x138f
leaq 0x4ddc(%rip), %rdi      # 0x6160
callq 0x1150
testl %eax, %eax
jne 0x13ae
popq %rax
retq
leaq 0x1c6e(%rip), %rdi      # 0x3004
leaq 0x1c6f(%rip), %rsi      # 0x300c
leaq 0x1c72(%rip), %rcx      # 0x3016
movl $0x20, %edx
callq 0x10d0
leaq 0x1c4f(%rip), %rdi      # 0x3004
leaq 0x1c50(%rip), %rsi      # 0x300c
leaq 0x1c53(%rip), %rcx      # 0x3016
movl $0x22, %edx
callq 0x10d0
// File: /workspace/github_c_makefile_star2_O1/stevenmherring[P]DNS/rw-trie.c
// Function: search
int search(const char *string, size_t strlen, int32_t *ip4_address) {
  struct trie_node *found;
  int rv, result;
  pthread_cleanup_push(cleanup_handler,&lock);

  // Skip strings of length 0
  if (strlen == 0)
  return 0;

  // obtain the lock
  rv = pthread_rwlock_rdlock(&rwlock);
  assert(rv == 0);
  found = _search(root, string, strlen);

  if (found && ip4_address)
  *ip4_address = found->ip4_address;

  result = (found != NULL);

  // Return the lock
  pthread_cleanup_pop(1);
  assert(rv == 0);

  return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x68, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq %rsp, %rdi
xorl %ebp, %ebp
movl %ebp, %esi
callq 0x11f0
movq %rsp, %rdi
testl %eax, %eax
jne 0x165d
callq 0x11c0
testq %r14, %r14
je 0x1650
leaq 0x4b58(%rip), %rdi      # 0x6160
callq 0x10e0
testl %eax, %eax
jne 0x1662
movq 0x4b88(%rip), %rdi      # 0x61a0
movq %r15, %rsi
movq %r14, %rdx
callq 0x14df
testq %rax, %rax
sete %cl
testq %rbx, %rbx
sete %dl
orb %cl, %dl
jne 0x1638
movl 0xc(%rax), %ecx
movl %ecx, (%rbx)
xorl %ebp, %ebp
testq %rax, %rax
setne %al
movb %al, %bpl
movq %rsp, %rdi
callq 0x10c0
callq 0x136c
movl %ebp, %eax
addq $0x68, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
callq 0x1240
leaq 0x199b(%rip), %rdi      # 0x3004
leaq 0x199c(%rip), %rsi      # 0x300c
leaq 0x1ab1(%rip), %rcx      # 0x3128
movl $0x8c, %edx
callq 0x10d0
// File: /workspace/github_c_makefile_star2_O1/stevenmherring[P]DNS/rw-trie.c
// Function: delete
int delete(const char *string, size_t strlen) {
            int result = 0;
            // Skip strings of length 0
            if (strlen != 0) {
              int rv;
              // Obtain the lock
              pthread_cleanup_push(cleanup_handler,&lock);
              pthread_rwlock_wrlock(&rwlock);
              //assert(rv == 0);
              // Attempt to delete the node.
              result = (NULL != _delete(root, string, strlen));

              // if squatting is allowed and a key was deleted.
              if (allow_squatting && result) {
                printf("Thread: %lu Node deleted, broadcasting %s\n", (long) pthread_self(), string);
                rv = pthread_cond_broadcast(&cv);
                // Check to see if the broadcasr was successful
                assert(rv == 0);
              }

              // Unlock
              //rv = pthread_mutex_unlock(&lock);
              //assert(rv == 0);
              pthread_cleanup_pop(1);
            }
            return result;
          }

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x70, %rsp
testq %rsi, %rsi
je 0x1f02
movq %rsi, %r14
movq %rdi, %rbx
movq %rsp, %rdi
xorl %esi, %esi
callq 0x11f0
movq %rsp, %rdi
testl %eax, %eax
jne 0x1f0d
callq 0x11c0
leaq 0x42cb(%rip), %rdi      # 0x6160
callq 0x1090
movq 0x42ff(%rip), %rdi      # 0x61a0
movq %rbx, %rsi
movq %r14, %rdx
callq 0x1cb1
xorl %ebp, %ebp
testq %rax, %rax
setne %r14b
je 0x1eee
leaq 0x4322(%rip), %rax      # 0x61e0
cmpl $0x0, (%rax)
je 0x1eee
callq 0x1180
leaq 0x144a(%rip), %rdi      # 0x3319
xorl %ecx, %ecx
movq %rax, %rsi
movq %rbx, %rdx
movl %ecx, %eax
callq 0x10b0
leaq 0x42cb(%rip), %rdi      # 0x61b0
callq 0x1070
testl %eax, %eax
jne 0x1f12
movb %r14b, %bpl
movq %rsp, %rdi
callq 0x10c0
callq 0x136c
movl %ebp, %eax
jmp 0x1f04
xorl %eax, %eax
addq $0x70, %rsp
popq %rbx
popq %r14
popq %rbp
retq
callq 0x1262
leaq 0x10eb(%rip), %rdi      # 0x3004
leaq 0x10ec(%rip), %rsi      # 0x300c
leaq 0x141d(%rip), %rcx      # 0x3344
movl $0x1ac, %edx            # imm = 0x1AC
callq 0x10d0
// File: /workspace/github_c_makefile_star2_O1/stevenmherring[P]DNS/rw-trie.c
// Function: print
void print() {
            int rv;
            // Obtain the lock
            rv = pthread_mutex_lock(&lock);
            assert(rv == 0);

            printf("Root is at %p\n", root);
            /* Do a simple depth-first search */
            if (root)
            _print(root,0,0);

            // Unlock
            rv = pthread_mutex_unlock(&lock);
            assert(rv == 0);
          }

// Assembly:
pushq %rax
leaq 0x40e4(%rip), %rdi      # 0x6138
callq 0x1220
testl %eax, %eax
jne 0x2099
movq 0x413c(%rip), %rsi      # 0x61a0
leaq 0x13a4(%rip), %rdi      # 0x340f
xorl %eax, %eax
callq 0x10b0
movq 0x4127(%rip), %rdi      # 0x61a0
testq %rdi, %rdi
je 0x2087
xorl %esi, %esi
xorl %edx, %edx
callq 0x1f31
leaq 0x40aa(%rip), %rdi      # 0x6138
callq 0x1130
testl %eax, %eax
jne 0x20b8
popq %rax
retq
leaq 0xf64(%rip), %rdi       # 0x3004
leaq 0xf65(%rip), %rsi       # 0x300c
leaq 0x1354(%rip), %rcx      # 0x3402
movl $0x1d6, %edx            # imm = 0x1D6
callq 0x10d0
leaq 0xf45(%rip), %rdi       # 0x3004
leaq 0xf46(%rip), %rsi       # 0x300c
leaq 0x1335(%rip), %rcx      # 0x3402
movl $0x1df, %edx            # imm = 0x1DF
callq 0x10d0
nop
// File: /workspace/github_c_makefile_star2_O1/seuscq[P]rtk_hciattach/hciattach_rtk.c
// Function: rtk_get_chip_type
void rtk_get_chip_type(int dd)
{
	unsigned char bytes[READ_DATA_SIZE];
	int retlen;
	struct sigaction sa;
	/* 0xB000A094 */
	unsigned char cmd_buff[] = {0x61, 0xfc,
		0x05, 0x00, 0x94, 0xa0, 0x00, 0xb0};
	struct sk_buff *nskb;
	struct btrtl_info *btrtl = &rtk_hw_cfg;

	nskb = h5_prepare_pkt(btrtl, cmd_buff, sizeof(cmd_buff),
			HCI_COMMAND_PKT);
	if (btrtl->host_last_cmd){
		skb_free(btrtl->host_last_cmd);
		btrtl->host_last_cmd = NULL;
	}

	btrtl->host_last_cmd = nskb;

	write(dd, nskb->data, nskb->data_len);
	RS_INFO("RTK send HCI_VENDOR_READ_CHIP_TYPE_Command\n");

	alarm(0);
	memset(&sa, 0, sizeof(sa));
	sa.sa_flags = SA_NOCLDSTOP;
	sa.sa_handler = rtk_get_chip_type_timeout;
	sigaction(SIGALRM, &sa, NULL);

	alarm(3);
	while (btrtl->chip_type_cmd_state != event_received) {
		if ((retlen = read_check_rtk(dd, &bytes, READ_DATA_SIZE)) == -1) {
			perror("rtk get chip type: read fail");
			return;
		}
		h5_recv(btrtl, &bytes, retlen);
	}
	alarm(0);
	return;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0xc0, %rsp
movl %edi, %ebx
movabsq $-0x4fff5f6bfffa039f, %rax # imm = 0xB000A0940005FC61
leaq -0x18(%rbp), %rdi
movq %rax, (%rdi)
pushq $0x8
popq %rsi
pushq $0x1
popq %rdx
callq 0x604e
movq %rax, %r14
movq 0xd222(%rip), %rdi      # 0xf700
testq %rdi, %rdi
je 0x24f0
callq 0x2030
andq $0x0, 0xd210(%rip)      # 0xf700
movq %r14, 0xd209(%rip)      # 0xf700
movq %r14, %rsi
addq $0x8, %rsi
movl 0x4(%r14), %edx
movl %ebx, %edi
callq 0x2070
movq 0xcae8(%rip), %rax      # 0xeff8
movq (%rax), %rdi
leaq 0x7750(%rip), %rsi      # 0x9c6a
leaq 0x7018(%rip), %rdx      # 0x9539
xorl %eax, %eax
callq 0x2150
xorl %edi, %edi
callq 0x20f0
leaq -0xc8(%rbp), %r14
movl $0x98, %edx
movq %r14, %rdi
xorl %esi, %esi
callq 0x20d0
movl $0x1, 0x88(%r14)
leaq 0x68(%rip), %rax        # 0x25bf
movq %rax, (%r14)
pushq $0xe
popq %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x2060
pushq $0x3
popq %rdi
callq 0x20f0
cmpl $0x2, 0xd1f2(%rip)      # 0xf768
je 0x259e
leaq -0x30(%rbp), %r14
movl %ebx, %edi
movq %r14, %rsi
callq 0x625a
cmpl $-0x1, %eax
je 0x25b1
movq %r14, %rdi
movl %eax, %esi
callq 0x62b5
cmpl $0x2, 0xd1cc(%rip)      # 0xf768
jne 0x257c
xorl %edi, %edi
callq 0x20f0
addq $0xc0, %rsp
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x76e3(%rip), %rdi      # 0x9c9b
callq 0x2230
jmp 0x25a5
// File: /workspace/github_c_makefile_star2_O1/seuscq[P]rtk_hciattach/hciattach_rtk.c
// Function: rtk_get_chip_type_timeout
static void rtk_get_chip_type_timeout(int sig)
{
	static int retries = 0;
	int len = 0;
	struct btrtl_info *btrtl = &rtk_hw_cfg;

	RS_INFO("RTK get HCI_VENDOR_READ_RTK_CHIP_TYPE_Command\n");
	if (retries < btrtl->h5_max_retries) {
		RS_DBG("rtk get chip type timerout, retry:%d\n", retries);
		if (btrtl->host_last_cmd) {
			len = write(btrtl->serial_fd,
				    btrtl->host_last_cmd->data,
				    btrtl->host_last_cmd->data_len);
		}
		retries++;
		alarm(3);
		return;
	}
	tcflush(btrtl->serial_fd, TCIOFLUSH);
	RS_ERR("rtk get chip type cmd complete event timed out\n");
	exit(1);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq 0xca2c(%rip), %rbx      # 0xeff8
movq (%rbx), %rdi
leaq 0x8384(%rip), %rsi      # 0xa95a
leaq 0x6f5c(%rip), %rdx      # 0x9539
xorl %eax, %eax
callq 0x2150
movl 0xe1b2(%rip), %ecx      # 0x1079c
cmpl 0xd120(%rip), %ecx      # 0xf710
jge 0x2647
cmpb $0x0, 0xcce7(%rip)      # 0xf2e0
jne 0x262d
movq 0xd0fe(%rip), %rsi      # 0xf700
testq %rsi, %rsi
je 0x2619
movl 0xd113(%rip), %edi      # 0xf720
movl 0x4(%rsi), %edx
addq $0x8, %rsi
callq 0x2070
incl 0xe17d(%rip)            # 0x1079c
pushq $0x3
popq %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x20f0
movq (%rbx), %rdi
leaq 0x8357(%rip), %rsi      # 0xa98e
leaq 0x6efb(%rip), %rdx      # 0x9539
xorl %eax, %eax
callq 0x2150
jmp 0x25fb
movl 0xd0d3(%rip), %edi      # 0xf720
pushq $0x2
popq %rsi
callq 0x20a0
movq (%rbx), %rdi
leaq 0x835a(%rip), %rsi      # 0xa9b9
leaq 0x6ed3(%rip), %rdx      # 0x9539
xorl %eax, %eax
callq 0x2150
pushq $0x1
popq %rdi
callq 0x2290