LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/ShinyaKato[P]skcc/error.c
// Function: print_error
void print_error(char *file, int line, char *format, ...) {
  va_list args;
  va_start(args, format);
  print_diagnose("error", file, line, format, args);
  va_end(args);
  exit(1);
}

// Assembly:
subq $0xd8, %rsp
movq %rdx, %r10
movl %esi, %edx
movq %rdi, %rsi
leaq 0x20(%rsp), %rdi
movq %rcx, 0x18(%rdi)
movq %r8, 0x20(%rdi)
movq %r9, 0x28(%rdi)
testb %al, %al
je 0x1487
movaps %xmm0, 0x50(%rsp)
movaps %xmm1, 0x60(%rsp)
movaps %xmm2, 0x70(%rsp)
movaps %xmm3, 0x80(%rsp)
movaps %xmm4, 0x90(%rsp)
movaps %xmm5, 0xa0(%rsp)
movaps %xmm6, 0xb0(%rsp)
movaps %xmm7, 0xc0(%rsp)
movq %rsp, %r8
movq %rdi, 0x10(%r8)
leaq 0xe0(%rsp), %rax
movq %rax, 0x8(%r8)
movabsq $0x3000000018, %rax     # imm = 0x3000000018
movq %rax, (%r8)
leaq 0x5b62(%rip), %rdi      # 0x7010
movq %r10, %rcx
callq 0x1120
movl $0x1, %edi
callq 0x1100
// File: /workspace/github_c_makefile_star2_O3/ShinyaKato[P]skcc/utf8.c
// Function: check_sequence
int check_sequence(struct utf8c uc) {
  if(0x00 <= uc.sequence[0] && uc.sequence[0] <= 0x7F) { // 1-byte character
    if(uc.bytes != 1) return 0;
  } else if(0x80 <= uc.sequence[0] && uc.sequence[0] <= 0xC1) { // invalid sequence (not first byte)
    return 0;
  } else if(0xC2 <= uc.sequence[0] && uc.sequence[0] <= 0xDF) { // 2-bytes character
    if(uc.bytes != 2) return 0;
    if(!(0x80 <= uc.sequence[1] && uc.sequence[1] <= 0xC1)) return 0;
    if(uc.sequence[0] & 0x1E) return 0;
  } else if(0xE0 <= uc.sequence[0] && uc.sequence[0] <= 0xEF) { // 3-bytes character
    if(uc.bytes != 3) return 0;
    if(!(0x80 <= uc.sequence[1] && uc.sequence[1] <= 0xC1)) return 0;
    if(!(0x80 <= uc.sequence[2] && uc.sequence[2] <= 0xC1)) return 0;
    if((uc.sequence[0] & 0x0F) && (uc.sequence[1] & 0x20)) return 0;
  } else if(0xF0 <= uc.sequence[0] && uc.sequence[0] <= 0xF7) { // 4-bytes character
    if(uc.bytes != 4) return 0;
    if(!(0x80 <= uc.sequence[1] && uc.sequence[1] <= 0xC1)) return 0;
    if(!(0x80 <= uc.sequence[2] && uc.sequence[2] <= 0xC1)) return 0;
    if(!(0x80 <= uc.sequence[3] && uc.sequence[3] <= 0xC1)) return 0;
    if((uc.sequence[0] & 0x08) && (uc.sequence[1] & 0x30)) return 0;
  } else if(0xF8 <= uc.sequence[0] && uc.sequence[0] <= 0xFB) { // 5-bytes character
    return 0;
  } else if(0xFC <= uc.sequence[0] && uc.sequence[0] <= 0xFD) { // 6-bytes character
    return 0;
  } else if(uc.sequence[0] == 0xFE) { // invalid sequence
    return 0;
  } else if(uc.sequence[0] == 0xFF) { // EOF
    if(uc.bytes != 0) return 0;
    if(uc.sequence[0] != 0xFF) return 0;
  }
  return 1;
}

// Assembly:
movq %rdi, %rdx
shrq $0x20, %rdx
movzbl %dl, %r8d
xorl %eax, %eax
cmpl $0x7f, %r8d
ja 0x1521
cmpl $0x1, %edi
jne 0x152a
movl $0x1, %eax
retq
cmpl $0xc2, %r8d
jae 0x152b
retq
movq %rdi, %rcx
shrq $0x28, %rcx
cmpl $0xdf, %r8d
ja 0x1555
cmpl $0x2, %edi
jne 0x152a
testb $0x1e, %dl
jne 0x152a
andl $0xfe, %ecx
addl $-0x80, %ecx
cmpl $0x42, %ecx
jb 0x151b
jmp 0x152a
movq %rdi, %rsi
shrq $0x30, %rsi
cmpl $0xef, %r8d
ja 0x159a
cmpl $0x3, %edi
jne 0x152a
movl %ecx, %edi
andl $0xfe, %edi
addl $-0x80, %edi
cmpl $0x41, %edi
ja 0x152a
andl $0xfe, %esi
addl $-0x80, %esi
cmpl $0x41, %esi
ja 0x152a
testb $0xf, %dl
sete %dl
testb $0x20, %cl
sete %cl
orb %dl, %cl
jne 0x151b
jmp 0x152a
cmpl $0xf7, %r8d
ja 0x15e4
cmpl $0x4, %edi
jne 0x152a
andl $0xfe, %ecx
addl $-0x80, %ecx
cmpl $0x41, %ecx
ja 0x152a
movabsq $-0x3e00000000000001, %rcx # imm = 0xC1FFFFFFFFFFFFFF
cmpq %rcx, %rdi
jg 0x152a
andl $0xfe, %esi
addl $-0x80, %esi
cmpl $0x42, %esi
jb 0x151b
jmp 0x152a
xorl $0xff, %r8d
orl %edi, %r8d
je 0x151b
jmp 0x152a
// File: /workspace/github_c_makefile_star2_O3/ShinyaKato[P]skcc/utf8.c
// Function: code_point
struct utf8c code_point(int code) {
  int bit = 0;
  for(int i = code; i > 0; i /= 2) bit++;

  struct utf8c uc;
  if(0 <= bit && bit <= 7) {
    uc.bytes = 1;
    uc.sequence[0] = code;
  } else if(8 <= bit && bit <= 11) {
    uc.bytes = 2;
    uc.sequence[0] = ((code >> 6) & 0x1F) | 0xC0;
    uc.sequence[1] = (code & 0x3F) | 0x80;
  } else if(12 <= bit && bit <= 16) {
    uc.bytes = 3;
    uc.sequence[0] = ((code >> 12) & 0xF) | 0xE0;
    uc.sequence[1] = ((code >> 6) & 0x3F) | 0x80;
    uc.sequence[2] = (code & 0x3F) | 0x80;
  } else if(17 <= bit && bit <= 21) {
    uc.bytes = 4;
    uc.sequence[0] = ((code >> 18) & 0x7) | 0xF0;
    uc.sequence[1] = ((code >> 12) & 0x3F) | 0x80;
    uc.sequence[2] = ((code >> 6) & 0x3F) | 0x80;
    uc.sequence[3] = (code & 0x3F) | 0x80;
  } else {
    uc = ueof;
  }
  return uc;
}

// Assembly:
testl %edi, %edi
jle 0x161f
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl %edi, %edx
movl %edi, %ecx
shrl %ecx
incl %eax
cmpl $0x2, %edx
movl %ecx, %edx
jae 0x160f
cmpl $0x7, %eax
jae 0x1655
movl %edi, %eax
movl $0x1, %ecx
xorl %edi, %edi
xorl %esi, %esi
xorl %r8d, %r8d
shlq $0x38, %r8
movzbl %sil, %esi
shlq $0x30, %rsi
orq %r8, %rsi
movzbl %dil, %edi
shlq $0x28, %rdi
orq %rsi, %rdi
movzbl %al, %eax
shlq $0x20, %rax
orq %rdi, %rax
orq %rcx, %rax
retq
cmpl $0xa, %eax
ja 0x1679
movl %edi, %eax
shrl $0x6, %eax
andl $0x1f, %eax
orl $0xc0, %eax
andl $0x3f, %edi
orl $0x80, %edi
movl $0x2, %ecx
xorl %esi, %esi
jmp 0x162a
cmpl $0xf, %eax
ja 0x16af
movl %edi, %eax
shrl $0xc, %eax
andl $0xf, %eax
orl $0xe0, %eax
movl %edi, %r9d
shrl $0x6, %r9d
andl $0x3f, %r9d
movl $0x80, %ecx
orl %ecx, %r9d
andl $0x3f, %edi
movl %edi, %esi
orl %ecx, %esi
movl $0x3, %ecx
xorl %r8d, %r8d
jmp 0x16ec
cmpl $0x14, %eax
ja 0x16f4
movl %edi, %eax
shrl $0x12, %eax
andl $0x7, %eax
orl $0xf0, %eax
movl %edi, %r9d
shrl $0xc, %r9d
andl $0x3f, %r9d
movl $0x80, %ecx
orl %ecx, %r9d
movl %edi, %esi
shrl $0x6, %esi
andl $0x3f, %esi
orl %ecx, %esi
andl $0x3f, %edi
movl %edi, %r8d
orl %ecx, %r8d
movl $0x4, %ecx
movq %r9, %rdi
jmp 0x162d
movq 0x999d(%rip), %rax      # 0xb098
movq %rax, %rdi
movq %rax, %rsi
movq %rax, %r8
movl %eax, %ecx
shrq $0x20, %rax
shrq $0x28, %rdi
shrq $0x30, %rsi
shrq $0x38, %r8
movb 0x9984(%rip), %dl       # 0xb0a0
jmp 0x162d
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/ShinyaKato[P]skcc/file.c
// Function: fget_utf8c
struct utf8c fget_utf8c(struct source *src) {
  struct utf8c uc;
  uc.sequence[0] = fgetc(src->fp);
  uc.bytes = count_bytes(uc.sequence[0]);

  if(uc.bytes == -1) {
    error("source file \"%s\" contains invalid sequence.\n", src->file);
  }

  if(uc.bytes == 0) {
    return ueof;
  }

  for(int i = 1; i < uc.bytes; i++) {
    uc.sequence[i] = fgetc(src->fp);
  }

  if(!check_sequence(uc)) {
    error("source file \"%s\" contains invalid sequence.\n", src->file);
  }

  uc.sequence[uc.bytes] = '\0';

  return uc;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movq (%rdi), %rdi
callq 0x1060
movb %al, 0x4(%rsp)
movzbl %al, %edi
callq 0x14c0
movl %eax, (%rsp)
testl %eax, %eax
je 0x179e
cmpl $-0x1, %eax
jne 0x17a7
movq 0x8(%rbx), %rcx
leaq 0x58a1(%rip), %rdi      # 0x702a
leaq 0x58a1(%rip), %rdx      # 0x7031
movl $0x22, %esi
xorl %eax, %eax
callq 0x142c
jmp 0x17ce
leaq 0x98f3(%rip), %rax      # 0xb098
jmp 0x180a
cmpl $0x2, %eax
jl 0x17ce
movl %eax, %r14d
decq %r14
xorl %r15d, %r15d
movq (%rbx), %rdi
callq 0x1060
movb %al, 0x5(%rsp,%r15)
incq %r15
cmpq %r15, %r14
jne 0x17b5
movb 0x8(%rsp), %cl
movq (%rsp), %r14
movzbl %cl, %esi
movq %r14, %rdi
callq 0x1503
testl %eax, %eax
jne 0x17ff
movq 0x8(%rbx), %rcx
leaq 0x583e(%rip), %rdi      # 0x702a
leaq 0x583e(%rip), %rdx      # 0x7031
movl $0x2e, %esi
xorl %eax, %eax
callq 0x142c
movslq %r14d, %rax
movb $0x0, 0x4(%rsp,%rax)
movq %rsp, %rax
movb 0x8(%rax), %dl
movq (%rax), %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/ShinyaKato[P]skcc/file.c
// Function: replace_trigraph
struct utf8c replace_trigraph(struct source *src) {
  unsigned char trigraph_symbol[9] = { '=', '(', '/', ')', '\'', '<', '!', '>', '-' };
  unsigned char trigraph_char[9] = { '#', '[', '\\', ']', '^', '{', '|', '}', '~' };

  for(; src->trigraph_queue_size < 3; src->trigraph_queue_size++) {
    src->trigraph_queue[src->trigraph_queue_size] = fget_utf8c(src);
    if(src->trigraph_queue[src->trigraph_queue_size].bytes == 0) {
      break;
    }
  }

  if(src->trigraph_queue_size == 0) {
    return ueof;
  }

  if(src->trigraph_queue_size == 3) {
    if(src->trigraph_queue[0].sequence[0] == '?') {
      if(src->trigraph_queue[1].sequence[0] == '?') {
        for(int i = 0; i < 9; i++) {
          if(src->trigraph_queue[2].sequence[0] == trigraph_symbol[i]) {
            struct utf8c uc = single_byte_char(trigraph_char[i]);
            src->trigraph_queue_size = 0;
            return uc;
          }
        }
      }
    }
  }

  struct utf8c uc = src->trigraph_queue[0];
  src->trigraph_queue_size--;
  for(int i = 0; i < src->trigraph_queue_size; i++) {
    src->trigraph_queue[i] = src->trigraph_queue[i + 1];
  }
  return uc;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x1c(%rdi), %r14
movl 0x18(%rdi), %eax
cmpl $0x2, %eax
jg 0x1865
cltq
leaq (%rax,%rax,2), %r15
movq %rbx, %rdi
callq 0x1752
movq %rax, (%r14,%r15,4)
movb %dl, 0x8(%r14,%r15,4)
movslq 0x18(%rbx), %rcx
leaq (%rcx,%rcx,2), %rax
cmpl $0x0, (%r14,%rax,4)
je 0x1863
leal 0x1(%rcx), %eax
movl %eax, 0x18(%rbx)
cmpl $0x2, %ecx
jl 0x1830
jmp 0x1865
movl %ecx, %eax
cmpl $0x3, %eax
je 0x187e
testl %eax, %eax
jne 0x18a4
leaq 0x9823(%rip), %rax      # 0xb098
movq (%rax), %r15
movb 0x8(%rax), %bpl
jmp 0x18e4
cmpb $0x3f, 0x20(%rbx)
jne 0x18b9
cmpb $0x3f, 0x2c(%rbx)
jne 0x18b9
movb 0x38(%rbx), %dl
xorl %ecx, %ecx
leaq 0x57fd(%rip), %rsi      # 0x7093
cmpb (%rcx,%rsi), %dl
je 0x18f4
incq %rcx
cmpq $0x9, %rcx
jne 0x1896
movq 0x1c(%rbx), %r15
movb 0x24(%rbx), %bpl
leal -0x1(%rax), %ecx
movl %ecx, 0x18(%rbx)
cmpl $0x2, %eax
jge 0x18cb
jmp 0x18e4
movq 0x1c(%rbx), %r15
movb 0x24(%rbx), %bpl
decl %eax
movl %eax, 0x18(%rbx)
movl $0x2, %ecx
addq $0x28, %rbx
movl %ecx, %eax
shlq $0x2, %rax
leaq (%rax,%rax,2), %rdx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x10c0
movq %r15, %rax
movl %ebp, %edx
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x57a1(%rip), %rax      # 0x709c
movzbl (%rcx,%rax), %edi
callq 0x15f9
movq %rax, %r15
movl %edx, %ebp
movl $0x0, 0x18(%rbx)
jmp 0x18e4
// File: /workspace/github_c_makefile_star2_O3/ShinyaKato[P]skcc/file.c
// Function: splice_line
struct utf8c splice_line(struct source *src) {
  for(; src->splice_queue_size < 3; src->splice_queue_size++) {
    src->splice_queue[src->splice_queue_size] = replace_trigraph(src);
    if(src->splice_queue[src->splice_queue_size].bytes == 0) {
      break;
    }
  }

  if(src->splice_queue_size == 0) {
    return ueof;
  }

  if(src->splice_queue_size >= 2) {
    if(src->splice_queue[0].sequence[0] == '\\') {
      if(src->splice_queue[1].sequence[0] == '\n') {
        if(src->splice_queue_size == 2) {
          error("end of the source file requires new line indicator.\n");
        }
        src->splice_queue_size = 0;
        return src->splice_queue[2];
      }
    }
  }

  struct utf8c uc = src->splice_queue[0];
  src->splice_queue_size--;
  for(int i = 0; i < src->splice_queue_size; i++) {
    src->splice_queue[i] = src->splice_queue[i + 1];
  }
  return uc;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl 0x40(%rdi), %eax
cmpl $0x2, %eax
jg 0x196a
leaq 0x44(%rbx), %r14
cltq
leaq (%rax,%rax,2), %r15
movq %rbx, %rdi
callq 0x181a
movq %rax, (%r14,%r15,4)
movb %dl, 0x8(%r14,%r15,4)
movslq 0x40(%rbx), %rcx
leaq (%rcx,%rcx,2), %rax
cmpl $0x0, (%r14,%rax,4)
je 0x195b
leal 0x1(%rcx), %eax
movl %eax, 0x40(%rbx)
cmpl $0x2, %ecx
jl 0x1928
jmp 0x196a
testl %ecx, %ecx
je 0x19db
cmpl $0x2, %ecx
jl 0x19eb
movl %ecx, %eax
cmpb $0x5c, 0x48(%rbx)
jne 0x19a6
cmpb $0xa, 0x54(%rbx)
jne 0x19a6
cmpl $0x2, %eax
jne 0x1995
leaq 0x56a8(%rip), %rdi      # 0x702a
leaq 0x56d5(%rip), %rdx      # 0x705e
movl $0x6b, %esi
xorl %eax, %eax
callq 0x142c
movl $0x0, 0x40(%rbx)
movq 0x5c(%rbx), %r14
movb 0x64(%rbx), %bpl
jmp 0x19cb
leaq 0x44(%rbx), %rdi
movq 0x44(%rbx), %r14
movb 0x4c(%rbx), %bpl
decl %eax
movl %eax, 0x40(%rbx)
addq $0x50, %rbx
shlq $0x2, %rax
leaq (%rax,%rax,2), %rdx
movq %rbx, %rsi
callq 0x10c0
movq %r14, %rax
movl %ebp, %edx
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x96b6(%rip), %rax      # 0xb098
movq (%rax), %r14
movb 0x8(%rax), %bpl
jmp 0x19cb
movq 0x44(%rbx), %r14
movb 0x4c(%rbx), %bpl
leal -0x1(%rcx), %eax
movl %eax, 0x40(%rbx)
jmp 0x19cb
// File: /workspace/github_c_makefile_star2_O3/ShinyaKato[P]skcc/string.c
// Function: append_string
void append_string(struct string *str, unsigned char c) {
  if(str->size >= str->alloc_size) {
    int new_size = str->alloc_size * 2;
    unsigned char *t = (unsigned char *) malloc(sizeof(unsigned char) * (new_size + 1));
    for(int i = 0; i < str->size; i++) t[i] = str->head[i];

    free(str->head);

    str->head = t;
    str->alloc_size = new_size;
  }

  str->head[str->size++] = c;
  str->head[str->size] = '\0';
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %rbx
movl 0x8(%rdi), %r12d
movslq 0xc(%rdi), %r13
movq (%rdi), %r15
cmpl %r13d, %r12d
jge 0x1a56
movq %r15, %r14
jmp 0x1a93
leaq 0x1(,%r13,2), %rdi
addq %r13, %r13
callq 0x10b0
movq %rax, %r14
testl %r12d, %r12d
jle 0x1a80
xorl %eax, %eax
movb (%r15,%rax), %cl
movb %cl, (%r14,%rax)
incq %rax
cmpq %rax, %r12
jne 0x1a70
movq %r15, %rdi
callq 0x1030
movq %r14, (%rbx)
movl %r13d, 0xc(%rbx)
movl 0x8(%rbx), %r12d
leal 0x1(%r12), %eax
movl %eax, 0x8(%rbx)
movslq %r12d, %rax
movb %bpl, (%r14,%rax)
movq (%rbx), %rax
movslq 0x8(%rbx), %rcx
movb $0x0, (%rax,%rcx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/ShinyaKato[P]skcc/lex.c
// Function: allocate_pp_token_lexer
struct pp_token_lexer *allocate_pp_token_lexer(const unsigned char *file) {
  const int INIT_SIZE = 64;

  struct pp_token_lexer *lexer = (struct pp_token_lexer *) malloc(sizeof(struct pp_token_lexer));
  if(lexer == NULL) {
    perror("malloc");
    exit(1);
  }

  lexer->src = allocate_source(file);
  lexer->comment_queue_size = 0;
  lexer->queue = (struct utf8c *) malloc(sizeof(struct utf8c) * INIT_SIZE);
  lexer->queue_head = 0;
  lexer->queue_size = 0;
  lexer->queue_allocate_size = INIT_SIZE;
  lexer->context = CTX_NL;

  while(1) {
    struct utf8c uc = remove_comment(lexer);
    unsigned char c = uc.sequence[0];
    if(!(c == ' ' || c == '\t' || c == '\v' || c == '\f' || c == '\n')) {
      push_char_queue(lexer, uc);
      break;
    }
  }

  return lexer;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
movl $0x40, %edi
callq 0x10b0
testq %rax, %rax
je 0x1be7
movq %rax, %rbx
movq %r14, %rdi
callq 0x1724
movq %rax, (%rbx)
movl $0x0, 0x8(%rbx)
movl $0x300, %edi            # imm = 0x300
callq 0x10b0
movq %rax, 0x28(%rbx)
movaps 0x5530(%rip), %xmm0     # 0x70b0
movups %xmm0, 0x30(%rbx)
movabsq $0xfd00000000, %r14     # imm = 0xFD00000000
movabsq $0x900000000, %r15      # imm = 0x900000000
movabsq $0x100001400, %r12      # imm = 0x100001400
movq %rbx, %rdi
callq 0x1bec
movq %rax, %rcx
andq %r14, %rcx
cmpq %r15, %rcx
je 0x1ba2
movq %rax, %rcx
shrq $0x20, %rcx
cmpb $0x20, %cl
ja 0x1bca
movzbl %cl, %ecx
btq %rcx, %r12
jb 0x1ba2
movzbl %dl, %edx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1da8
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
callq 0x12af
// File: /workspace/github_c_makefile_star2_O3/ShinyaKato[P]skcc/lex.c
// Function: push_char_queue
void push_char_queue(struct pp_token_lexer *lexer, struct utf8c uc) {
  if(lexer->queue_size >= lexer->queue_allocate_size) {
    struct utf8c *t = (struct utf8c *) malloc(sizeof(struct utf8c) * lexer->queue_allocate_size * 2);
    if(t == NULL) {
      perror("malloc");
      exit(1);
    }
    for(int i = 0; i < lexer->queue_size; i++) {
      t[i] = lexer->queue[(lexer->queue_head + i) % lexer->queue_allocate_size];
    }
    lexer->queue = t;
    lexer->queue_head = 0;
    lexer->queue_allocate_size *= 2;
  }
  lexer->queue[(lexer->queue_head + lexer->queue_size) % lexer->queue_allocate_size] = uc;
  lexer->queue_size++;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %edx, %ebx
movq %rsi, %r15
movq %rdi, %r14
movl 0x34(%rdi), %r12d
movl 0x38(%rdi), %ebp
cmpl %ebp, %r12d
jge 0x1dce
movq 0x28(%r14), %rcx
movl 0x30(%r14), %eax
jmp 0x1e42
movslq %ebp, %rax
shlq $0x3, %rax
leaq (%rax,%rax,2), %rdi
callq 0x10b0
testq %rax, %rax
je 0x1e67
movq %rax, %rcx
testl %r12d, %r12d
jle 0x1e2e
movq 0x28(%r14), %rdi
movl 0x30(%r14), %esi
leaq (,%r12,4), %rax
leaq (%rax,%rax,2), %r8
xorl %r9d, %r9d
movl %esi, %eax
cltd
idivl %ebp
movslq %edx, %rax
leaq (%rax,%rax,2), %rax
movl 0x8(%rdi,%rax,4), %edx
movl %edx, 0x8(%rcx,%r9)
movq (%rdi,%rax,4), %rax
movq %rax, (%rcx,%r9)
incl %esi
addq $0xc, %r9
cmpq %r9, %r8
jne 0x1e06
movq %rcx, 0x28(%r14)
movl $0x0, 0x30(%r14)
addl %ebp, %ebp
movl %ebp, 0x38(%r14)
xorl %eax, %eax
addl %eax, %r12d
movl %r12d, %eax
cltd
idivl %ebp
movslq %edx, %rax
leaq (%rax,%rax,2), %rax
movq %r15, (%rcx,%rax,4)
movb %bl, 0x8(%rcx,%rax,4)
incl 0x34(%r14)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
callq 0x12c4
// File: /workspace/github_c_makefile_star2_O3/ShinyaKato[P]skcc/lex.c
// Function: allocate_pp_token
struct pp_token *allocate_pp_token() {
  struct pp_token *token = (struct pp_token *) malloc(sizeof(struct pp_token));
  if(token == NULL) {
    perror("malloc");
    exit(1);
  }
  token->text = allocate_string();
  return token;
}

// Assembly:
pushq %rbx
movl $0x20, %edi
callq 0x10b0
testq %rax, %rax
je 0x1e8f
movq %rax, %rbx
xorl %eax, %eax
callq 0x1a00
movq %rax, 0x10(%rbx)
movq %rbx, %rax
popq %rbx
retq
callq 0x12d9
// File: /workspace/github_c_makefile_star2_O3/ShinyaKato[P]skcc/lex.c
// Function: pop_char_queue
struct utf8c pop_char_queue(struct pp_token_lexer *lexer) {
  if(lexer->queue_size == 0) {
    error("internal: lexer character queue is empty\n");
  }

  struct utf8c uc = lexer->queue[lexer->queue_head];
  lexer->queue_head++;
  lexer->queue_head %= lexer->queue_allocate_size;
  lexer->queue_size--;
  return uc;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl 0x34(%rdi), %edi
testl %edi, %edi
jne 0x1ef0
leaq 0x5ded(%rip), %rdi      # 0x7cc7
leaq 0x5e5a(%rip), %rdx      # 0x7d3b
movl $0x9f, %esi
xorl %eax, %eax
callq 0x142c
movl 0x34(%rbx), %edi
movq 0x28(%rbx), %rax
movslq 0x30(%rbx), %rdx
leaq (%rdx,%rdx,2), %rsi
movq (%rax,%rsi,4), %rcx
movb 0x8(%rax,%rsi,4), %sil
leal 0x1(%rdx), %eax
cltd
idivl 0x38(%rbx)
movl %edx, 0x30(%rbx)
decl %edi
movl %edi, 0x34(%rbx)
movq %rcx, %rax
movl %esi, %edx
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/ShinyaKato[P]skcc/preprocess.c
// Function: allocate_pp_list
struct pp_list *allocate_pp_list() {
  struct pp_list *list = (struct pp_list *) malloc(sizeof(struct pp_list));
  if(list == NULL) {
    perror("malloc");
    exit(1);
  }
  list->head = NULL;
  list->tail = &(list->head);
  return list;
}

// Assembly:
pushq %rax
movl $0x10, %edi
callq 0x10b0
testq %rax, %rax
je 0x33d1
movq $0x0, (%rax)
movq %rax, 0x8(%rax)
popq %rcx
retq
callq 0x12ee
// File: /workspace/github_c_makefile_star2_O3/ShinyaKato[P]skcc/preprocess.c
// Function: free_pp_list
void free_pp_list(struct pp_list *list) {
  struct pp_node *node = list->head;
  while(node != NULL) {
    struct pp_node *next = node->next;
    free(node);
    node = next;
  }
  free(list);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %rdi
testq %rdi, %rdi
je 0x33f6
movq 0x8(%rdi), %r14
callq 0x1030
movq %r14, %rdi
testq %r14, %r14
jne 0x33e5
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x1030
// File: /workspace/github_c_makefile_star2_O3/ShinyaKato[P]skcc/preprocess.c
// Function: allocate_macro_entry
struct macro_entry *allocate_macro_entry() {
  struct macro_entry *macro = (struct macro_entry *) malloc(sizeof(struct macro_entry));
  if(macro == NULL) {
    perror("malloc");
    exit(1);
  }
  macro->replacement_list = allocate_pp_list();
  macro->expanded = 0;
  return macro;
}

// Assembly:
pushq %rbx
movl $0x428, %edi            # imm = 0x428
callq 0x10b0
testq %rax, %rax
je 0x3488
movq %rax, %rbx
callq 0x33b4
movq %rax, 0x418(%rbx)
movl $0x0, 0x420(%rbx)
movq %rbx, %rax
popq %rbx
retq
callq 0x1303
// File: /workspace/github_c_makefile_star2_O3/ShinyaKato[P]skcc/preprocess.c
// Function: ident_hash
int ident_hash(const unsigned char *ident) {
  const int BASE = 257;
  int h = 0;
  for(int i = 0; ident[i] != '\0'; i++) {
    h = (h * BASE + ident[i]) % MACRO_TABLE_SIZE;
  }
  return h;
}

// Assembly:
movb (%rdi), %dl
testb %dl, %dl
je 0x34e1
incq %rdi
xorl %esi, %esi
movl $0xcccb8521, %ecx       # imm = 0xCCCB8521
movzbl %dl, %edx
movl %esi, %eax
shll $0x8, %eax
addl %esi, %eax
addl %edx, %eax
movq %rax, %rdx
imulq %rcx, %rdx
shrq $0x2f, %rdx
imull $0xa001, %edx, %edx     # imm = 0xA001
subl %edx, %eax
movb (%rdi), %dl
incq %rdi
movl %eax, %esi
testb %dl, %dl
jne 0x34b6
retq
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/ShinyaKato[P]skcc/preprocess.c
// Function: compare_macro
int compare_macro(const struct macro_entry *macro1, const struct macro_entry *macro2) {
  if(macro1->type != macro2->type) {
    return 0;
  }

  if(macro1->type == MACRO_FUNCTION) {
    if(macro1->parameter_ellipsis != macro2->parameter_ellipsis) return 0;
    if(macro1->parameter_size != macro2->parameter_size) return 0;
    for(int i = 0; i < macro1->parameter_size; i++) {
      if(strcmp(macro1->parameters[i]->head, macro2->parameters[i]->head) != 0) return 0;
    }
  }

  struct pp_node *node1 = macro1->replacement_list->head;
  struct pp_node *node2 = macro2->replacement_list->head;
  while(1) {
    if(node1 == NULL || node2 == NULL) {
      if(node1 == NULL && node2 == NULL) break;
      return 0;
    }
    if(node1->token->type != node2->token->type) return 0;
    if(strcmp(node1->token->text->head, node2->token->text->head) != 0) return 0;
    node1 = node1->next;
    node2 = node2->next;
  }

  return 1;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movl (%rdi), %eax
xorl %ebx, %ebx
cmpl (%rsi), %eax
jne 0x356f
movq %rsi, %r14
movq %rdi, %r15
cmpl $0x1, %eax
jne 0x3541
movl 0x14(%r15), %eax
cmpl 0x14(%r14), %eax
jne 0x356f
movl 0x10(%r15), %r12d
cmpl 0x10(%r14), %r12d
jne 0x356f
testl %r12d, %r12d
jle 0x3541
xorl %r13d, %r13d
movq 0x18(%r15,%r13,8), %rax
movq (%rax), %rdi
movq 0x18(%r14,%r13,8), %rax
movq (%rax), %rsi
callq 0x1080
testl %eax, %eax
jne 0x35bb
incq %r13
cmpq %r13, %r12
jne 0x351c
movq 0x418(%r15), %rax
movq 0x418(%r14), %rcx
movq (%rcx), %r14
movq (%rax), %r15
testq %r15, %r15
sete %al
testq %r14, %r14
sete %cl
movl %eax, %edx
orb %cl, %dl
testb $0x1, %dl
je 0x357b
andb %cl, %al
movzbl %al, %ebx
movl %ebx, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq (%r15), %rax
movl (%rax), %edx
movq (%r14), %rcx
cmpl (%rcx), %edx
jne 0x356f
movq 0x10(%rax), %rax
movq (%rax), %rdi
movq 0x10(%rcx), %rax
movq (%rax), %rsi
callq 0x1080
testl %eax, %eax
jne 0x356f
movq 0x8(%r14), %r14
movq 0x8(%r15), %r15
testq %r14, %r14
sete %cl
testq %r15, %r15
sete %al
je 0x356a
testq %r14, %r14
jne 0x357b
jmp 0x356a
xorl %ebx, %ebx
jmp 0x356f
// File: /workspace/github_c_makefile_star2_O3/ShinyaKato[P]skcc/preprocess.c
// Function: insert_macro_table
void insert_macro_table(struct macro_entry *macro) {
  int h1 = ident_hash(macro->identifier);
  for(int i = 0, h = h1; i < MACRO_TABLE_SIZE; i++, h = (h + 1) % MACRO_TABLE_SIZE) {
    if(macro_table[h] == NULL) {
      macro_table[h] = macro;
      break;
    } else {
      if(strcmp(macro_table[h]->identifier, macro->identifier) == 0) {
        if(compare_macro(macro_table[h], macro)) {
          break;
        } else {
          error("duplicated macro definition: %s\n", macro->identifier);
        }
      }
    }
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x8(%rdi), %rax
movb (%rax), %dl
movl $0x0, %r14d
testb %dl, %dl
je 0x3617
incq %rax
xorl %esi, %esi
movl $0xcccb8521, %ecx       # imm = 0xCCCB8521
movzbl %dl, %edx
movl %esi, %r14d
shll $0x8, %r14d
addl %esi, %r14d
addl %edx, %r14d
movq %r14, %rdx
imulq %rcx, %rdx
shrq $0x2f, %rdx
imull $0xa001, %edx, %edx     # imm = 0xA001
subl %edx, %r14d
movb (%rax), %dl
incq %rax
movl %r14d, %esi
testb %dl, %dl
jne 0x35e7
movl $0xa001, %ebp           # imm = 0xA001
leaq 0x7a9d(%rip), %r15      # 0xb0c0
movl %r14d, %r14d
movq (%r15,%r14,8), %r13
testq %r13, %r13
je 0x3688
movq 0x8(%r13), %rdi
movq 0x8(%rbx), %r12
movq %r12, %rsi
callq 0x1080
testl %eax, %eax
jne 0x366f
movq %r13, %rdi
movq %rbx, %rsi
callq 0x34e4
testl %eax, %eax
jne 0x368c
leaq 0x48b7(%rip), %rdi      # 0x7f10
movl $0x75, %esi
leaq 0x48b8(%rip), %rdx      # 0x7f1d
movq %r12, %rcx
xorl %eax, %eax
callq 0x142c
incl %r14d
cmpl $0xa001, %r14d          # imm = 0xA001
movl $0x0, %eax
cmovel %eax, %r14d
decl %ebp
jne 0x3623
jmp 0x368c
movq %rbx, (%r15,%r14,8)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/ShinyaKato[P]skcc/preprocess.c
// Function: delete_macro_table
void delete_macro_table(const unsigned char *identifier) {
  int h1 = ident_hash(identifier);
  for(int i = 0, h = h1; i < MACRO_TABLE_SIZE; i++, h = (h + 1) % MACRO_TABLE_SIZE) {
    if(macro_table[h] == NULL) break;
    if(strcmp(macro_table[h]->identifier, identifier) == 0) {
      macro_table[h] = NULL;
      h = (h + 1) % MACRO_TABLE_SIZE;
      for(int j = i; j < MACRO_TABLE_SIZE; j++, h = (h + 1) % MACRO_TABLE_SIZE) {
        if(macro_table[h] == NULL) break;
        struct macro_entry *t = macro_table[h];
        macro_table[h] = NULL;
        insert_macro_table(t);
      }
      break;
    }
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movb (%rdi), %dl
xorl %ebp, %ebp
movl $0x0, %r14d
testb %dl, %dl
je 0x36f2
leaq 0x1(%rbx), %rax
xorl %esi, %esi
movl $0xcccb8521, %ecx       # imm = 0xCCCB8521
movzbl %dl, %edx
movl %esi, %r14d
shll $0x8, %r14d
addl %esi, %r14d
addl %edx, %r14d
movq %r14, %rdx
imulq %rcx, %rdx
shrq $0x2f, %rdx
imull $0xa001, %edx, %edx     # imm = 0xA001
subl %edx, %r14d
movb (%rax), %dl
incq %rax
movl %r14d, %esi
testb %dl, %dl
jne 0x36c2
movl $0xffff5fff, %r15d      # imm = 0xFFFF5FFF
leaq 0x79c1(%rip), %r12      # 0xb0c0
movl %r14d, %r13d
movq (%r12,%r13,8), %rax
testq %rax, %rax
je 0x377c
movq 0x8(%rax), %rdi
movq %rbx, %rsi
callq 0x1080
testl %eax, %eax
je 0x3730
incl %r14d
cmpl $0xa001, %r14d          # imm = 0xA001
cmovel %ebp, %r14d
incl %r15d
jne 0x36ff
jmp 0x377c
movq $0x0, (%r12,%r13,8)
movl %r15d, %eax
addl $0xa001, %eax           # imm = 0xA001
jae 0x377c
negl %r15d
movl $0xcccb8521, %ebx       # imm = 0xCCCB8521
incl %r14d
movq %r14, %rax
imulq %rbx, %rax
shrq $0x2f, %rax
imull $0xa001, %eax, %eax     # imm = 0xA001
subl %eax, %r14d
movq (%r12,%r14,8), %rdi
testq %rdi, %rdi
je 0x377c
movq $0x0, (%r12,%r14,8)
callq 0x35bf
decl %r15d
jne 0x374a
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/ShinyaKato[P]skcc/preprocess.c
// Function: search_macro_table
struct macro_entry *search_macro_table(const unsigned char *identifier) {
  int h1 = ident_hash(identifier);
  for(int i = 0, h = h1; i < MACRO_TABLE_SIZE; i++, h = (h + 1) % MACRO_TABLE_SIZE) {
    if(macro_table[h] == NULL) break;
    if(strcmp(macro_table[h]->identifier, identifier) == 0) {
      return macro_table[h];
    }
  }
  return NULL;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movb (%rdi), %dl
xorl %r15d, %r15d
movl $0x0, %r12d
testb %dl, %dl
je 0x37e3
leaq 0x1(%rbx), %rax
xorl %esi, %esi
movl $0xcccb8521, %ecx       # imm = 0xCCCB8521
movzbl %dl, %edx
movl %esi, %r12d
shll $0x8, %r12d
addl %esi, %r12d
addl %edx, %r12d
movq %r12, %rdx
imulq %rcx, %rdx
shrq $0x2f, %rdx
imull $0xa001, %edx, %edx     # imm = 0xA001
subl %edx, %r12d
movb (%rax), %dl
incq %rax
movl %r12d, %esi
testb %dl, %dl
jne 0x37b3
movl $0xa001, %ebp           # imm = 0xA001
leaq 0x78d1(%rip), %r13      # 0xb0c0
movl %r12d, %eax
movq (%r13,%rax,8), %r14
testq %r14, %r14
je 0x381e
movq 0x8(%r14), %rdi
movq %rbx, %rsi
callq 0x1080
testl %eax, %eax
je 0x3821
incl %r12d
cmpl $0xa001, %r12d          # imm = 0xA001
cmovel %r15d, %r12d
decl %ebp
jne 0x37ef
xorl %r14d, %r14d
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/ShinyaKato[P]skcc/preprocess.c
// Function: check_object_macro_invocation
int check_object_macro_invocation(struct preprocessor *pp, struct pp_node *node) {
  if(node->token->type != PP_IDENT) return 0;
  if(node->skip) return 0;

  struct macro_entry *macro = search_macro_table(node->token->text->head);
  return macro != NULL && !macro->expanded && macro->type == MACRO_OBJECT;
}

// Assembly:
pushq %rbx
movq (%rsi), %rax
xorl %ebx, %ebx
cmpl $0x1, (%rax)
jne 0x3844
cmpl $0x0, 0x10(%rsi)
je 0x3848
movl %ebx, %eax
popq %rbx
retq
movq 0x10(%rax), %rax
movq (%rax), %rdi
callq 0x378b
testq %rax, %rax
je 0x3844
cmpl $0x0, 0x420(%rax)
jne 0x3844
xorl %ebx, %ebx
cmpl $0x0, (%rax)
sete %bl
jmp 0x3844
// File: /workspace/github_c_makefile_star2_O3/ShinyaKato[P]skcc/preprocess.c
// Function: check_function_macro_invocation
int check_function_macro_invocation(struct preprocessor *pp, struct pp_node *node) {
  if(node->token->type != PP_IDENT) return 0;
  if(node->skip) return 0;

  struct macro_entry *macro = search_macro_table(node->token->text->head);
  if(macro == NULL || macro->expanded || macro->type != MACRO_FUNCTION) {
    return 0;
  }

  struct pp_node *current = node->next;
  if(current == NULL) {
    return 0;
  }
  if(current->token->type == PP_NEW_LINE || current->token->type == PP_SPACE) {
    current = current->next;
    if(current == NULL) return 0;
  }
  if(current->token->type != PP_LPAREN) return 0;

  return 1;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq (%rsi), %rax
xorl %ebx, %ebx
cmpl $0x1, (%rax)
jne 0x3883
movq %rsi, %r14
cmpl $0x0, 0x10(%rsi)
je 0x388d
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq 0x10(%rax), %rax
movq (%rax), %rdi
callq 0x378b
testq %rax, %rax
je 0x3883
cmpl $0x0, 0x420(%rax)
jne 0x3883
cmpl $0x1, (%rax)
jne 0x3883
movq 0x8(%r14), %rax
testq %rax, %rax
je 0x3883
movq (%rax), %rcx
movl (%rcx), %ecx
leal -0x3b(%rcx), %edx
cmpl $0x1, %edx
ja 0x38d0
movq 0x8(%rax), %rax
testq %rax, %rax
je 0x3883
movq (%rax), %rax
movl (%rax), %ecx
xorl %ebx, %ebx
cmpl $0x7, %ecx
sete %bl
jmp 0x3883
// File: /workspace/github_c_makefile_star2_O3/ShinyaKato[P]skcc/preprocess.c
// Function: object_macro_invocation
struct pp_list *object_macro_invocation(struct preprocessor *pp, struct macro_entry *macro) {
  macro->expanded = 1;

  struct pp_list *list = allocate_pp_list();
  for(struct pp_node *node = macro->replacement_list->head; node != NULL; node = node->next) {
    append_pp_list(list, node->token);
  }

  struct pp_list *concat_list = concat_macro_token(list);
  struct pp_list *result = scan_macro(pp, concat_list);

  macro->expanded = 0;
  return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movl $0x1, 0x420(%rsi)
callq 0x33b4
movq %rax, %r15
movq 0x418(%rbx), %rax
movq (%rax), %r12
testq %r12, %r12
je 0x3d00
movq 0x8(%r15), %r13
movq (%r12), %rbp
movl $0x18, %edi
callq 0x10b0
movq %rbp, (%rax)
movq $0x0, 0x8(%rax)
movl $0x0, 0x10(%rax)
movq %rax, (%r13)
leaq 0x8(%rax), %r13
movq %r13, 0x8(%r15)
movq 0x8(%r12), %r12
testq %r12, %r12
jne 0x3cca
movq %r15, %rdi
callq 0x4312
movq %r14, %rdi
movq %rax, %rsi
callq 0x38da
movl $0x0, 0x420(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/ShinyaKato[P]skcc/preprocess.c
// Function: conditional_expression
int conditional_expression(struct pp_node **node) {
  int result = logical_or_expression(node);
  if((*node) && (*node)->token->type == PP_QUESTION) {
    *node = (*node)->next;
    int left = conditional_expression(node);
    *node = (*node)->next;
    int right = conditional_expression(node);
    result = result ? left : right;
  }
  return result;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %r14
callq 0x4c77
movl %eax, %ebx
movq (%r14), %rax
testq %rax, %rax
je 0x48fa
movq (%rax), %rcx
cmpl $0x35, (%rcx)
jne 0x48fa
movq 0x8(%rax), %rax
movq %rax, (%r14)
movq %r14, %rdi
callq 0x48b2
movl %eax, %ebp
movq (%r14), %rax
movq 0x8(%rax), %rax
movq %rax, (%r14)
movq %r14, %rdi
callq 0x48b2
testl %ebx, %ebx
cmovnel %ebp, %eax
movl %eax, %ebx
movl %ebx, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/ShinyaKato[P]skcc/preprocess.c
// Function: unary_expression
int unary_expression(struct pp_node **node) {
  if((*node)->token->type == PP_PLUS) {
    *node = (*node)->next;
    return +primary_expression(node);
  } else if((*node)->token->type == PP_MINUS) {
    *node = (*node)->next;
    return -primary_expression(node);
  } else if((*node)->token->type == PP_TILDE) {
    *node = (*node)->next;
    return ~primary_expression(node);
  } else if((*node)->token->type == PP_NOT) {
    *node = (*node)->next;
    return !primary_expression(node);
  }
  return primary_expression(node);
}

// Assembly:
pushq %rax
movq (%rdi), %rax
movq (%rax), %rcx
movl (%rcx), %ecx
cmpl $0x27, %ecx
jg 0x4929
cmpl $0xe, %ecx
je 0x4943
cmpl $0x11, %ecx
jne 0x494a
movq 0x8(%rax), %rax
movq %rax, (%rdi)
callq 0x4737
negl %eax
jmp 0x4965
cmpl $0x28, %ecx
je 0x4950
cmpl $0x34, %ecx
jne 0x494a
movq 0x8(%rax), %rax
movq %rax, (%rdi)
callq 0x4737
notl %eax
jmp 0x4965
movq 0x8(%rax), %rax
movq %rax, (%rdi)
popq %rax
jmp 0x4737
movq 0x8(%rax), %rax
movq %rax, (%rdi)
callq 0x4737
movl %eax, %ecx
xorl %eax, %eax
testl %ecx, %ecx
sete %al
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O3/ShinyaKato[P]skcc/preprocess.c
// Function: multiplicative_expression
int multiplicative_expression(struct pp_node **node) {
  int result = unary_expression(node);
  while((*node) && ((*node)->token->type == PP_MUL || (*node)->token->type == PP_DIV || (*node)->token->type == PP_MOD)) {
    enum pp_token_type type = (*node)->token->type;
    *node = (*node)->next;
    int value = unary_expression(node);
    if(type == PP_MUL) {
      result = result * value;
    } else if(type == PP_DIV) {
      result = result / value;
    } else if(type == PP_MOD) {
      result = result % value;
    }
  }
  return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
callq 0x4901
movl %eax, %ebx
movq (%r14), %rax
testq %rax, %rax
je 0x49d7
movl $0x2a00000, %ebp        # imm = 0x2A00000
movq (%rax), %rcx
movl (%rcx), %r15d
cmpl $0x19, %r15d
ja 0x49d7
btl %r15d, %ebp
jae 0x49d7
movq 0x8(%rax), %rax
movq %rax, (%r14)
movq %r14, %rdi
callq 0x4901
movl %eax, %ecx
cmpl $0x19, %r15d
je 0x49c8
cmpl $0x17, %r15d
je 0x49bf
cmpl $0x15, %r15d
jne 0x49cf
imull %ecx, %ebx
jmp 0x49cf
movl %ebx, %eax
cltd
idivl %ecx
movl %eax, %ebx
jmp 0x49cf
movl %ebx, %eax
cltd
idivl %ecx
movl %edx, %ebx
movq (%r14), %rax
testq %rax, %rax
jne 0x4985
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/ShinyaKato[P]skcc/preprocess.c
// Function: additive_expression
int additive_expression(struct pp_node **node) {
  int result = multiplicative_expression(node);
  while((*node) && ((*node)->token->type == PP_PLUS || (*node)->token->type == PP_MINUS)) {
    enum pp_token_type type = (*node)->token->type;
    *node = (*node)->next;
    int value = multiplicative_expression(node);
    if(type == PP_PLUS) {
      result = result + value;
    } else if(value == PP_MINUS) {
      result = result - value;
    }
  }
  return result;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
callq 0x4967
movl %eax, %r14d
movq (%rbx), %rcx
testq %rcx, %rcx
je 0x4a3c
movq (%rcx), %rax
movl (%rax), %ebp
cmpl $0x11, %ebp
je 0x4a0a
cmpl $0xe, %ebp
jne 0x4a3c
movq 0x8(%rcx), %rax
movq %rax, (%rbx)
movq %rbx, %rdi
callq 0x4967
movl %eax, %ecx
leal -0x11(%r14), %eax
cmpl $0x11, %ecx
cmovnel %r14d, %eax
addl %r14d, %ecx
cmpl $0xe, %ebp
cmovel %ecx, %eax
movq (%rbx), %rcx
movl %eax, %r14d
testq %rcx, %rcx
jne 0x49fb
jmp 0x4a3f
movl %r14d, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/ShinyaKato[P]skcc/preprocess.c
// Function: shift_expression
int shift_expression(struct pp_node **node) {
  int result = additive_expression(node);
  while((*node) && ((*node)->token->type == PP_LSHIFT || (*node)->token->type == PP_RSHIFT)) {
    enum pp_token_type type = (*node)->token->type;
    *node = (*node)->next;
    int value = additive_expression(node);
    if(type == PP_LSHIFT) {
      result = result << value;
    } else if(type == PP_RSHIFT) {
      result = result >> value;
    }
  }
  return result;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %r14
callq 0x49e4
movl %eax, %ebx
movq (%r14), %rax
testq %rax, %rax
je 0x4a8e
movq (%rax), %rcx
movl (%rcx), %ebp
cmpl $0x31, %ebp
je 0x4a69
cmpl $0x2b, %ebp
jne 0x4a8e
movq 0x8(%rax), %rax
movq %rax, (%r14)
movq %r14, %rdi
callq 0x49e4
cmpl $0x31, %ebp
je 0x4a88
cmpl $0x2b, %ebp
jne 0x4a52
movl %eax, %ecx
shll %cl, %ebx
jmp 0x4a52
movl %eax, %ecx
sarl %cl, %ebx
jmp 0x4a52
movl %ebx, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/ShinyaKato[P]skcc/preprocess.c
// Function: relational_expression
int relational_expression(struct pp_node **node) {
  int result = shift_expression(node);
  while((*node) && ((*node)->token->type == PP_LT || (*node)->token->type == PP_GT || (*node)->token->type == PP_LTE || (*node)->token->type == PP_GTE)) {
    enum pp_token_type type = (*node)->token->type;
    *node = (*node)->next;
    int value = shift_expression(node);
    if(type == PP_LT) {
      result = result < value;
    } else if(type == PP_GT) {
      result = result > value;
    } else if(type == PP_LTE) {
      result = result <= value;
    } else if(type == PP_GTE) {
      result = result >= value;
    }
  }
  return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
callq 0x4a44
movl %eax, %ebp
movq (%rbx), %rax
testq %rax, %rax
je 0x4b20
movabsq $0x9240000000000, %r14  # imm = 0x9240000000000
leaq 0x3320(%rip), %r15      # 0x7de0
movq (%rax), %rcx
movl (%rcx), %r12d
cmpq $0x33, %r12
ja 0x4b20
btq %r12, %r14
jae 0x4b20
movq 0x8(%rax), %rax
movq %rax, (%rbx)
movq %rbx, %rdi
callq 0x4a44
addl $-0x2a, %r12d
cmpl $0x9, %r12d
ja 0x4b18
movslq (%r15,%r12,4), %rcx
addq %r15, %rcx
jmpq *%rcx
xorl %ecx, %ecx
cmpl %eax, %ebp
setl %cl
jmp 0x4b16
xorl %ecx, %ecx
cmpl %eax, %ebp
setg %cl
jmp 0x4b16
xorl %ecx, %ecx
cmpl %eax, %ebp
setle %cl
jmp 0x4b16
xorl %ecx, %ecx
cmpl %eax, %ebp
setge %cl
movl %ecx, %ebp
movq (%rbx), %rax
testq %rax, %rax
jne 0x4ac0
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/ShinyaKato[P]skcc/preprocess.c
// Function: equality_expression
int equality_expression(struct pp_node **node) {
  int result = relational_expression(node);
  while((*node) && ((*node)->token->type == PP_EQ || (*node)->token->type == PP_NEQ)) {
    enum pp_token_type type = (*node)->token->type;
    *node = (*node)->next;
    int value = relational_expression(node);
    if(type == PP_EQ) {
      result = result == value;
    } else if(type == PP_NEQ) {
      result = result == value;
    }
  }
  return result;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
callq 0x4a95
movl %eax, %ebp
movq (%rbx), %rax
testq %rax, %rax
je 0x4b79
movq (%rax), %rcx
movl (%rcx), %r14d
cmpl $0x29, %r14d
je 0x4b53
cmpl $0x27, %r14d
jne 0x4b79
movq 0x8(%rax), %rax
movq %rax, (%rbx)
movq %rbx, %rdi
callq 0x4a95
cmpl $0x29, %r14d
je 0x4b6e
cmpl $0x27, %r14d
jne 0x4b39
xorl %ecx, %ecx
cmpl %eax, %ebp
sete %cl
movl %ecx, %ebp
jmp 0x4b39
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/ShinyaKato[P]skcc/preprocess.c
// Function: and_expression
int and_expression(struct pp_node **node) {
  int result = equality_expression(node);
  while((*node) && (*node)->token->type == PP_AND) {
    *node = (*node)->next;
    int value = equality_expression(node);
    result = result & value;
  }
  return result;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
callq 0x4b2b
movl %eax, %ebx
movq (%r14), %rax
testq %rax, %rax
je 0x4bb1
movq (%rax), %rcx
cmpl $0x1e, (%rcx)
jne 0x4bb1
movq 0x8(%rax), %rax
movq %rax, (%r14)
movq %r14, %rdi
callq 0x4b2b
andl %eax, %ebx
jmp 0x4b8e
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/ShinyaKato[P]skcc/preprocess.c
// Function: exclusive_or_expression
int exclusive_or_expression(struct pp_node **node) {
  int result = and_expression(node);
  while((*node) && (*node)->token->type == PP_XOR) {
    *node = (*node)->next;
    int value = and_expression(node);
    result = result ^ value;
  }
  return result;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
callq 0x4b80
movl %eax, %ebx
movq (%r14), %rax
testq %rax, %rax
je 0x4bec
movq (%rax), %rcx
cmpl $0x24, (%rcx)
jne 0x4bec
movq 0x8(%rax), %rax
movq %rax, (%r14)
movq %r14, %rdi
callq 0x4b80
xorl %eax, %ebx
jmp 0x4bc9
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/ShinyaKato[P]skcc/preprocess.c
// Function: inclusive_or_expression
int inclusive_or_expression(struct pp_node **node) {
  int result = exclusive_or_expression(node);
  while((*node) && (*node)->token->type == PP_OR) {
    *node = (*node)->next;
    int value = exclusive_or_expression(node);
    result = result | value;
  }
  return result;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
callq 0x4bbb
movl %eax, %ebx
movq (%r14), %rax
testq %rax, %rax
je 0x4c27
movq (%rax), %rcx
cmpl $0x21, (%rcx)
jne 0x4c27
movq 0x8(%rax), %rax
movq %rax, (%r14)
movq %r14, %rdi
callq 0x4bbb
orl %eax, %ebx
jmp 0x4c04
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/ShinyaKato[P]skcc/preprocess.c
// Function: logical_and_expression
int logical_and_expression(struct pp_node **node) {
  int result = inclusive_or_expression(node);
  while((*node) && (*node)->token->type == PP_LAND) {
    *node = (*node)->next;
    int value = inclusive_or_expression(node);
    result = result && value;
  }
  return result;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x4bf6
movl %eax, %ebp
movq (%rbx), %rax
testq %rax, %rax
je 0x4c6e
movq (%rax), %rcx
cmpl $0x1f, (%rcx)
jne 0x4c6e
movq 0x8(%rax), %rax
movq %rax, (%rbx)
movq %rbx, %rdi
callq 0x4bf6
testl %ebp, %ebp
setne %cl
testl %eax, %eax
setne %al
andb %cl, %al
movzbl %al, %ebp
jmp 0x4c3e
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/ShinyaKato[P]skcc/preprocess.c
// Function: logical_or_expression
int logical_or_expression(struct pp_node **node) {
  int result = logical_and_expression(node);
  while((*node) && (*node)->token->type == PP_LOR) {
    *node = (*node)->next;
    int value = logical_and_expression(node);
    result = result || value;
  }
  return result;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x4c31
movl %eax, %ebp
movq (%rbx), %rcx
testq %rcx, %rcx
je 0x4cb8
movq (%rcx), %rax
cmpl $0x22, (%rax)
jne 0x4cb8
movq 0x8(%rcx), %rax
movq %rax, (%rbx)
movq %rbx, %rdi
callq 0x4c31
movl %eax, %ecx
xorl %eax, %eax
orl %ecx, %ebp
setne %al
movq (%rbx), %rcx
movl %eax, %ebp
testq %rcx, %rcx
jne 0x4c8c
jmp 0x4cba
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/ShinyaKato[P]skcc/preprocess.c
// Function: check_defined_operator
struct pp_node *check_defined_operator(struct pp_node **node) {
  struct pp_node *ident;

  *node = (*node)->next;
  if((*node)->token->type == PP_SPACE) {
    *node = (*node)->next;
  }

  if((*node)->token->type == PP_IDENT) {
    ident = *node;
  } else if((*node)->token->type == PP_LPAREN) {
    *node = (*node)->next;
    if((*node)->token->type == PP_SPACE) {
      *node = (*node)->next;
    }

    if((*node)->token->type == PP_IDENT) {
      ident = *node;
      *node = (*node)->next;

      if((*node)->token->type != PP_RPAREN) {
        error("%s is expected.\n", pp_token_name[PP_RPAREN]);
      }
    } else {
      error("%s is expected.\n", pp_token_name[PP_IDENT]);
    }
  } else {
    error("%s or %s is expected.\n", pp_token_name[PP_IDENT], pp_token_name[PP_RPAREN]);
  }

  return ident;
}

// Assembly:
pushq %rbx
movq (%rdi), %rax
movq 0x8(%rax), %rbx
movq %rbx, (%rdi)
movq (%rbx), %rax
movl (%rax), %eax
cmpl $0x3c, %eax
jne 0x4ce2
movq 0x8(%rbx), %rbx
movq %rbx, (%rdi)
movq (%rbx), %rax
movl (%rax), %eax
cmpl $0x1, %eax
je 0x4d9c
cmpl $0x7, %eax
jne 0x4d49
movq 0x8(%rbx), %rbx
movq %rbx, (%rdi)
movq (%rbx), %rax
movl (%rax), %eax
cmpl $0x3c, %eax
jne 0x4d0d
movq 0x8(%rbx), %rbx
movq %rbx, (%rdi)
movq (%rbx), %rax
movl (%rax), %eax
cmpl $0x1, %eax
jne 0x4d77
movq 0x8(%rbx), %rax
movq %rax, (%rdi)
movq (%rax), %rax
cmpl $0x8, (%rax)
je 0x4d9c
movl $0x100, %ecx            # imm = 0x100
addq 0x62b3(%rip), %rcx      # 0xafe0
leaq 0x31dc(%rip), %rdi      # 0x7f10
leaq 0x32b6(%rip), %rdx      # 0x7ff1
movl $0x31c, %esi            # imm = 0x31C
xorl %eax, %eax
callq 0x142c
jmp 0x4d9c
leaq 0x2770(%rip), %r8       # 0x74c0
leaq 0x20(%r8), %rcx
addq $0x100, %r8             # imm = 0x100
leaq 0x31ae(%rip), %rdi      # 0x7f10
leaq 0x3282(%rip), %rdx      # 0x7feb
movl $0x322, %esi            # imm = 0x322
xorl %eax, %eax
callq 0x142c
jmp 0x4d9c
leaq 0x2742(%rip), %rcx      # 0x74c0
addq $0x20, %rcx
leaq 0x3187(%rip), %rdi      # 0x7f10
leaq 0x3261(%rip), %rdx      # 0x7ff1
movl $0x31f, %esi            # imm = 0x31F
xorl %eax, %eax
callq 0x142c
movq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/ShinyaKato[P]skcc/preprocess.c
// Function: skip_group
void skip_group(struct preprocessor *pp) {
  while(peek_pp_token(pp)->type != PP_NONE) {
    if(peek_pp_token(pp)->type == PP_SHARP) {
      read_pp_token_with_space(pp);

      if(check_if_section(pp)) {
        skip_line(pp);
        skip_group(pp);
        while(check_keyword(pp, "elif")) {
          skip_line(pp);
          skip_group(pp);
        }
        if(check_keyword(pp, "else")) {
          skip_line(pp);
          skip_group(pp);
        }
        if(check_keyword(pp, "endif")) {
          skip_line(pp);
        }
      } else if(check_group_end(pp)) {
        break;
      } else {
        skip_line(pp);
      }
    } else {
      skip_line(pp);
    }
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x2dee(%rip), %r14      # 0x8017
leaq 0x2dec(%rip), %r15      # 0x801c
leaq 0x2dea(%rip), %r12      # 0x8021
cmpl $0x0, 0x10(%rbx)
je 0x524d
movq 0x8(%rbx), %rax
movl (%rax), %eax
cmpl $0x3e, %eax
jne 0x5294
jmp 0x5365
movq (%rbx), %rdi
callq 0x2163
movslq 0x10(%rbx), %rdx
leal 0x1(%rdx), %ecx
movl %ecx, 0x10(%rbx)
movq %rax, 0x8(%rbx,%rdx,8)
movq 0x8(%rbx), %rax
movl (%rax), %eax
cmpl $0x3e, %eax
je 0x5365
testl %ecx, %ecx
jne 0x5294
movq (%rbx), %rdi
callq 0x2163
movslq 0x10(%rbx), %rcx
leal 0x1(%rcx), %edx
movl %edx, 0x10(%rbx)
movq %rax, 0x8(%rbx,%rcx,8)
movq 0x8(%rbx), %rax
movl (%rax), %eax
cmpl $0x39, %eax
jne 0x52c8
movq %rbx, %rdi
callq 0x45b6
movq %rbx, %rdi
callq 0x4680
movq %rbx, %rdi
callq 0x5ecb
testl %eax, %eax
je 0x5347
movq %rbx, %rdi
callq 0x45b6
cmpl $0x3b, (%rax)
jne 0x52b9
jmp 0x52e7
movq %rbx, %rdi
callq 0x45b6
cmpl $0x3b, (%rax)
jne 0x52c8
jmp 0x5237
movq %rbx, %rdi
callq 0x45b6
cmpl $0x3b, (%rax)
jne 0x52da
movq %rbx, %rdi
callq 0x5217
movq %rbx, %rdi
movq %r14, %rsi
callq 0x461e
testl %eax, %eax
jne 0x52da
movq %rbx, %rdi
movq %r15, %rsi
callq 0x461e
testl %eax, %eax
je 0x5322
movq %rbx, %rdi
callq 0x45b6
cmpl $0x3b, (%rax)
jne 0x530d
movq %rbx, %rdi
callq 0x5217
movq %rbx, %rdi
movq %r12, %rsi
callq 0x461e
testl %eax, %eax
je 0x5237
movq %rbx, %rdi
callq 0x45b6
cmpl $0x3b, (%rax)
jne 0x5335
jmp 0x5237
movq %rbx, %rdi
callq 0x5f09
testl %eax, %eax
jne 0x5365
movq %rbx, %rdi
callq 0x45b6
cmpl $0x3b, (%rax)
jne 0x5353
jmp 0x5237
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq