LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/simh[P]simtools/crossassemblers/macro11/dumpobj.c
// Function: dump_words
void dump_words(
    unsigned addr,
    char *buf,
    int len)
{
    int             i,
                    j;

    for (i = 0; i < len; i += 8) {
        printf("\t%6.6o: ", addr);

        for (j = i; j < len && j < i + 8; j += 2)
            if (len - j >= 2) {
                unsigned        word = WORD(buf + j);

                printf("%6.6o ", word);
            } else
                printf("%3.3o    ", buf[j] & 0xff);

        printf("%*s", (i + 8 - j) * 7 / 2, "");

        for (j = i; j < len && j < i + 8; j++) {
            int             c = buf[j] & 0xff;

            if (!isprint(c))
                c = '.';
            putchar(c);
        }

        putchar('\n');
        addr += 8;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
movl %edi, %eax
movslq %edx, %r13
leaq -0x1(%r13), %rcx
movq %rcx, 0x10(%rsp)
xorl %r15d, %r15d
cmpq %r13, %r15
jge 0x1577
leaq 0x1ccf(%rip), %rdi      # 0x318a
movl %eax, 0xc(%rsp)
movl %eax, %esi
xorl %eax, %eax
callq 0x10c0
leaq 0x8(%r15), %rbp
pushq $0x38
popq %r14
movq %r15, %r12
cmpq %r13, %r12
jge 0x150f
cmpq %rbp, %r12
jae 0x150f
cmpq 0x10(%rsp), %r12
jge 0x14f2
movzwl (%rbx,%r12), %esi
leaq 0x1ca3(%rip), %rdi      # 0x3193
jmp 0x14fe
movzbl (%rbx,%r12), %esi
leaq 0x1c9c(%rip), %rdi      # 0x319a
xorl %eax, %eax
callq 0x10c0
addq $0x2, %r12
addl $-0xe, %r14d
jmp 0x14d3
sarl %r14d
leaq 0x1c6d(%rip), %rdi      # 0x3186
movl %r14d, %esi
leaq 0x1bc7(%rip), %rdx      # 0x30ea
xorl %eax, %eax
callq 0x10c0
pushq $0x2e
popq %r12
cmpq %r13, %r15
jge 0x1560
cmpq %rbp, %r15
jae 0x1560
movzbl (%rbx,%r15), %r14d
callq 0x11a0
movq (%rax), %rax
movzwl (%rax,%r14,2), %eax
btl $0xe, %eax
movl %r12d, %edi
jae 0x1556
movl %r14d, %edi
callq 0x1050
incq %r15
jmp 0x152e
pushq $0xa
popq %rdi
callq 0x1050
movl 0xc(%rsp), %eax
addl $0x8, %eax
movq %rbp, %r15
jmp 0x14ab
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/simh[P]simtools/crossassemblers/macro11/dumpobj.c
// Function: add_gsdline
void add_gsdline(
    char *line)
{
    if (nr_gsds >= gsdsize || all_gsds == NULL) {
        gsdsize += 128;
        all_gsds = realloc(all_gsds, gsdsize * sizeof(char *));
        if (all_gsds == NULL) {
            fprintf(stderr, "Out of memory\n");
            exit(EXIT_FAILURE);
        }
    }

    all_gsds[nr_gsds++] = line;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl 0x3a77(%rip), %ecx      # 0x5160
movslq 0x3a74(%rip), %rdx      # 0x5164
cmpl %edx, %ecx
setge %sil
movq 0x3a5b(%rip), %rax      # 0x5158
testq %rax, %rax
sete %dil
orb %sil, %dil
cmpb $0x1, %dil
jne 0x173c
leaq 0x80(%rdx), %rcx
movl %ecx, 0x3a4a(%rip)      # 0x5164
leaq 0x400(,%rdx,8), %rsi
movq %rax, %rdi
callq 0x1140
movq %rax, 0x3a27(%rip)      # 0x5158
testq %rax, %rax
je 0x174e
movl 0x3a24(%rip), %ecx      # 0x5160
leal 0x1(%rcx), %edx
movl %edx, 0x3a1b(%rip)      # 0x5160
movslq %ecx, %rcx
movq %rbx, (%rax,%rcx,8)
popq %rbx
retq
movq 0x38a3(%rip), %rax      # 0x4ff8
movq (%rax), %rcx
leaq 0x1a45(%rip), %rdi      # 0x31a4
pushq $0xe
popq %rsi
pushq $0x1
popq %rdx
callq 0x1180
pushq $0x1
popq %rdi
callq 0x1170
// File: /workspace/github_c_makefile_star2_O2/simh[P]simtools/crossassemblers/macro11/dumpobj.c
// Function: got_endgsd
void got_endgsd(
    char *cp,
    int len)
{
    int             i;

    (void)cp;
    (void)len;

    if (nr_gsds == 0) {
        return;
    }

    qsort(all_gsds, nr_gsds, sizeof(char *), compare_gsdlines);

    printf("GSD:\n");

    for (i = 0; i < nr_gsds; i++) {
        fputs(all_gsds[i], stdout);
        free(all_gsds[i]);
    }

    printf("ENDGSD\n");

    free(all_gsds);
    all_gsds = NULL;
    nr_gsds = 0;
    gsdsize = 0;
}

// Assembly:
movslq 0x36c1(%rip), %rsi      # 0x5160
testq %rsi, %rsi
je 0x1b40
pushq %r14
pushq %rbx
pushq %rax
movq 0x36a5(%rip), %rdi      # 0x5158
leaq -0x2d(%rip), %rcx       # 0x1a8d
pushq $0x8
popq %rdx
callq 0x1070
leaq 0x1b03(%rip), %rdi      # 0x35cc
callq 0x1060
xorl %ebx, %ebx
movq 0x3501(%rip), %r14      # 0x4fd8
movslq 0x3682(%rip), %rax      # 0x5160
cmpq %rax, %rbx
jge 0x1b0b
movq 0x366e(%rip), %rax      # 0x5158
movq (%rax,%rbx,8), %rdi
movq (%r14), %rsi
callq 0x10e0
movq 0x365b(%rip), %rax      # 0x5158
movq (%rax,%rbx,8), %rdi
callq 0x1040
incq %rbx
jmp 0x1ad7
leaq 0x1abf(%rip), %rdi      # 0x35d1
callq 0x1060
movq 0x363a(%rip), %rdi      # 0x5158
callq 0x1040
andq $0x0, 0x362d(%rip)      # 0x5158
andl $0x0, 0x362e(%rip)      # 0x5160
andl $0x0, 0x362b(%rip)      # 0x5164
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/simh[P]simtools/crossassemblers/macro11/dumpobj.c
// Function: got_text
void got_text(
    char *cp,
    int len)
{
    unsigned        addr = WORD(cp + 2);

    last_text_addr = addr;

    printf("TEXT ADDR=%o LEN=%o\n", last_text_addr, len - 4);

    dump_words(last_text_addr, cp + 4, len - 4);

    if (bin)
        dump_bin(last_text_addr, cp + 4, len - 4);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
movzwl 0x2(%rdi), %esi
movl %esi, 0x3e1c(%rip)      # 0x5970
addl $-0x4, %ebx
leaq 0x17b4(%rip), %rdi      # 0x3312
movl %ebx, %edx
xorl %eax, %eax
callq 0x10c0
movl 0x3e03(%rip), %edi      # 0x5970
addq $0x4, %r14
movq %r14, %rsi
movl %ebx, %edx
callq 0x1489
cmpq $0x0, 0x35c5(%rip)      # 0x5148
je 0x1b9c
movl 0x3de5(%rip), %edi      # 0x5970
movq %r14, %rsi
movl %ebx, %edx
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x1586
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/simh[P]simtools/crossassemblers/macro11/dumpobj.c
// Function: rad50name
void rad50name(
    char *cp,
    char *name)
{
    unrad50(WORD(cp), name);
    unrad50(WORD(cp + 2), name + 3);
    name[6] = 0;
    trim(name);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movzwl (%rdi), %edi
callq 0x239e
movzwl 0x2(%r14), %edi
leaq 0x3(%rbx), %rsi
callq 0x239e
movb $0x0, 0x6(%rbx)
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x16bc
// File: /workspace/github_c_makefile_star2_O2/canboat[P]canboat/ikonvert-serial/../common/b64.c
// Function: sbAppendDecodeBase64
void sbAppendDecodeBase64(StringBuffer *sb, const char *data, size_t len, enum Base64Encoding encoding)
{
  const uint8_t *s    = (const uint8_t *) data;
  const uint8_t *end  = s + len;
  uint8_t       *d    = 0;
  uint32_t       n    = 0;
  int            iter = 0;
  const int     *decodeTable;

  switch (encoding)
  {
    case BASE64_AIS:
      decodeTable = AISDecodeTable;
      break;
    case BASE64_RFC:
    default:
      decodeTable = B64DecodeTable;
      break;
  }

  sbEnsureCapacity(sb, len * 3 / 4 + 8 + sbGetLength(sb));
  d = (uint8_t *) sbGet(sb) + sbGetLength(sb);

  while (s < end)
  {
    int c = decodeTable[*s++];

    switch (c)
    {
      case -2: // Whitespace
        continue;
      case -1: // Invalid
        break;
      case 64: // = pad character, end of data
        s = end;
        continue; // instead of double break
      default:
        n = n << 6 | c; // Add 6 more bits to n

        iter++;
        if (iter == 4) // Every 4 characters we have 24 bits of output data
        {
          *d++ = (uint8_t) (n >> 16);
          *d++ = (uint8_t) (n >> 8);
          *d++ = (uint8_t) (n);
          n    = 0;
          iter = 0;
        }
    }
  }

  // Handle any remainder
  if (iter == 3)
  {
    *d++ = (uint8_t) (n >> 10);
    *d++ = (uint8_t) (n >> 2);
  }
  else if (iter == 2)
  {
    *d++ = (uint8_t) (n >> 4);
  }

  sb->len = d - (uint8_t *) sbGet(sb);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
leaq (%rsi,%rdx), %r15
cmpl $0x1, %ecx
leaq 0x167a(%rip), %rax      # 0x7340
leaq 0x1a73(%rip), %r12      # 0x7740
cmoveq %rax, %r12
leaq (%rdx,%rdx,2), %rax
shrq $0x2, %rax
movq 0x8(%rdi), %rcx
leaq (%rax,%rcx), %rsi
addq $0x8, %rsi
callq 0x3c87
movq (%rbx), %rax
testq %rax, %rax
leaq 0xa56(%rip), %rdi       # 0x674d
cmoveq %rdi, %rax
addq 0x8(%rbx), %rax
xorl %esi, %esi
xorl %ecx, %ecx
movq %r14, %r8
cmpq %r15, %r8
jae 0x5d4f
movzbl (%r8), %edx
movq %r8, %r14
incq %r14
movl (%r12,%rdx,4), %edx
leal 0x2(%rdx), %r9d
movq %r14, %r8
cmpl $0x2, %r9d
jb 0x5d06
movq %r15, %r8
cmpl $0x40, %edx
je 0x5d06
shll $0x6, %esi
orl %esi, %edx
incl %ecx
movl %edx, %esi
cmpl $0x4, %ecx
jne 0x5d03
movl %edx, %ecx
shrl $0x10, %ecx
movb %cl, (%rax)
movb %dh, 0x1(%rax)
movb %dl, 0x2(%rax)
addq $0x3, %rax
jmp 0x5cff
cmpl $0x2, %ecx
je 0x5d6c
cmpl $0x3, %ecx
jne 0x5d7d
movl %esi, %ecx
shrl $0xa, %ecx
leaq 0x1(%rax), %r8
movb %cl, (%rax)
pushq $0x2
popq %rdx
pushq $0x2
popq %rcx
jmp 0x5d75
pushq $0x1
popq %rdx
pushq $0x4
popq %rcx
movq %rax, %r8
shrl %cl, %esi
addq %rdx, %rax
movb %sil, (%r8)
movq (%rbx), %rcx
testq %rcx, %rcx
cmovneq %rcx, %rdi
subq %rdi, %rax
movq %rax, 0x8(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/MaoKo[P]FGFX/tools/src/bitset.c
// Function: new_bitset
bitset_t*
new_bitset(void) {
    bitset_t* bs    = NEW(bitset_t, 1);
    if (!bs)
        { return (NULL); }
    memset(bs, 0, sizeof(bitset_t));
    bs->nwords = _DEFWORDS;
    bs->nbits = _DEFBITS;
    bs->map  = bs->defmap;
    return (bs);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq $0x58
popq %rdi
callq 0x36ef
testq %rax, %rax
je 0x230f
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movups %xmm0, 0x40(%rax)
movups %xmm0, 0x30(%rax)
movups %xmm0, 0x20(%rax)
movups %xmm0, 0x10(%rax)
andq $0x0, 0x50(%rax)
movq %rax, %rcx
addq $0x10, %rcx
movw $0x8, (%rax)
movl $0x200, 0x4(%rax)       # imm = 0x200
movq %rcx, 0x8(%rax)
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/MaoKo[P]FGFX/tools/src/bitset.c
// Function: dup_bitset
bitset_t*
dup_bitset(bitset_t const* bs) {
    if (!bs)
        { return (NULL); }
    bitset_t* nbs       = new_bitset();
    memcpy(nbs, bs, sizeof(bitset_t));
    if (bs->map == bs->defmap)
        { nbs->map = nbs->defmap; }
    else {
        size_t bs_size = nbs->nwords * sizeof(_SETTYPE);
        if (!(nbs->map = NEW(_SETTYPE, bs_size)))
            { return (NULL); }
        memcpy(nbs->map, bs->map, bs_size);
    }
    return (nbs);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x239c
movq %rdi, %r14
callq 0x22cc
movq %rax, %rbx
pushq $0xb
popq %rcx
movq %rax, %rdi
movq %r14, %rsi
rep  movsq (%rsi), %es:(%rdi)
leaq 0x10(%r14), %rax
cmpq %rax, 0x8(%r14)
je 0x23a0
movzwl (%rbx), %r15d
movl %r15d, %edi
shll $0x6, %edi
callq 0x36ef
movq %rax, 0x8(%rbx)
testq %rax, %rax
je 0x239c
shll $0x3, %r15d
movq 0x8(%r14), %rsi
movq %rax, %rdi
movq %r15, %rdx
callq 0x2140
jmp 0x23ab
xorl %ebx, %ebx
jmp 0x23ab
movq %rbx, %rax
addq $0x10, %rax
movq %rax, 0x8(%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/MaoKo[P]FGFX/tools/src/bitset.c
// Function: add_bitset
_SETTYPE
_add_bitset(bitset_t* bs, size_t n) {
    if (!bs || n < bs->nbits)
        { return (0); }
    if (adjust_bitset(bs, _ROUND(n)))
        { return (-1); }
    return (ADD_BITSET(bs, n));
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
testq %rdi, %rdi
je 0x241d
movq %rsi, %rbx
movq %rdi, %r15
movl %ebx, %ecx
shrl $0x5, %ecx
andl $0xfff0, %ecx           # imm = 0xFFF0
movl 0x4(%rdi), %eax
movzwl %cx, %r12d
pushq $-0x1
popq %r14
movl %eax, %eax
cmpq %rbx, %rax
ja 0x241d
movq %r15, %rdi
movl %r12d, %esi
callq 0x242c
testl %eax, %eax
jne 0x2420
movl 0x4(%r15), %eax
cmpq %rbx, %rax
jbe 0x23e5
movq 0x8(%r15), %rax
movq %rbx, %rcx
shrq $0x6, %rcx
movq (%rax,%rcx,8), %r14
btsq %rbx, %r14
movq %r14, (%rax,%rcx,8)
jmp 0x2420
xorl %r14d, %r14d
movq %r14, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/MaoKo[P]FGFX/tools/src/bitset.c
// Function: adjust_bitset
static int
adjust_bitset(bitset_t* bs, unsigned short new_size) {
    if (!bs || new_size <= bs->nwords)
        { return (DONE); }
    int oldsize = _BYTE_SETTYPE(bs->nwords);

    bs->nwords = new_size;
    bs->nbits = new_size * _BITS_IN_WORD;

    if (bs->invert)
        { bs->siter = bs->nbits - 1; }

    _SETTYPE* chunk = NEW(_SETTYPE, _BYTE_SETTYPE(new_size));
    memset(chunk, 0, _BYTE_SETTYPE(new_size));

    if (!chunk)
        { return (ERROR); }
    if (bs->map == bs->defmap) {
        bs->map = chunk;
        memcpy(bs->map, bs->defmap, oldsize);
    }
    else {
        memcpy(chunk, bs->map, oldsize);
        FREE(bs->map);
        bs->map = chunk;
    }
    return (DONE);
}

// Assembly:
xorl %eax, %eax
testq %rdi, %rdi
je 0x24dd
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
movzwl (%rdi), %r14d
cmpw %si, %r14w
jae 0x24d5
movw %si, (%rbx)
movzwl %si, %edi
movl %edi, %eax
shll $0x6, %eax
movl %eax, 0x4(%rbx)
cmpb $0x1, 0x54(%rbx)
jne 0x246c
decl %eax
movl %eax, 0x50(%rbx)
leal (,%rdi,8), %r12d
shll $0x6, %edi
callq 0x36ef
movq %rax, %r15
movq %rax, %rdi
xorl %esi, %esi
movq %r12, %rdx
callq 0x20d0
testq %r15, %r15
je 0x24bc
shll $0x3, %r14d
movq 0x8(%rbx), %rsi
leaq 0x10(%rbx), %rax
cmpq %rax, %rsi
je 0x24c1
movl %r14d, %edx
movq %r15, %rdi
callq 0x2140
movq 0x8(%rbx), %rdi
callq 0x21d0
movq %r15, 0x8(%rbx)
jmp 0x24d3
pushq $-0x1
popq %rax
jmp 0x24d5
movq %r15, 0x8(%rbx)
movq %r15, %rdi
movq %rax, %rsi
movq %r14, %rdx
callq 0x2140
xorl %eax, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/MaoKo[P]FGFX/tools/src/bitset.c
// Function: add_range_bitset
void
add_range_bitset(bitset_t* bs, size_t min, size_t max) {
    if (max <= min)
        { return; }
    for (size_t i = min; i < max; ++i)
        { ADD_BITSET(bs, i); }
}

// Assembly:
cmpq %rsi, %rdx
jbe 0x253b
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
pushq $0x1
popq %r12
cmpq %rbx, %r14
jae 0x2533
movl 0x4(%r15), %eax
cmpq %rax, %r14
jae 0x2523
movq %r12, %rax
movl %r14d, %ecx
shlq %cl, %rax
movq 0x8(%r15), %rcx
movq %r14, %rdx
shrq $0x6, %rdx
orq %rax, (%rcx,%rdx,8)
jmp 0x252e
movq %r15, %rdi
movq %r14, %rsi
callq 0x23b9
incq %r14
jmp 0x24fb
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/MaoKo[P]FGFX/tools/src/bitset.c
// Function: is_empty_bitset
bool
is_empty_bitset(bitset_t const* bs) {
    if (!bs)
        { return (true); }
    for (size_t i = 0; i < bs->nwords; ++i) {
        if (bs->map[i])
            { return (false); }
    }
    return (true);
}

// Assembly:
testq %rdi, %rdi
je 0x2563
pushq %rbp
movq %rsp, %rbp
movzwl (%rdi), %ecx
xorl %edx, %edx
cmpq %rdx, %rcx
sete %al
je 0x2561
movq 0x8(%rdi), %rsi
cmpq $0x0, (%rsi,%rdx,8)
leaq 0x1(%rdx), %rdx
je 0x254a
popq %rbp
retq
movb $0x1, %al
retq
// File: /workspace/github_c_makefile_star2_O2/MaoKo[P]FGFX/tools/src/bitset.c
// Function: eq_bitset
bool
eq_bitset(bitset_t const* b1, bitset_t const* b2) {
    if (!b1 || !b2)
        { return (!b1 && !b2); }
    for (size_t i = 0; (i < b1->nwords) && (i < b2->nwords); ++i) {
        if (b1->map[i] != b2->map[i])
            { return (false); }
    }
    if (b1->nwords != b2->nwords) {
        bitset_t const* max_bset = ((b1->nwords > b2->nwords) ? b1 : b2);
        int leading = MAX(b1->nwords, b2->nwords);
        for (size_t i = leading; i < max_bset->nwords; ++i) {
            if (max_bset->map[i] != 0)
                { return (false); }
        }
    }
    return (true);
}

// Assembly:
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
jne 0x25a9
pushq %rbp
movq %rsp, %rbp
movzwl (%rdi), %edx
movzwl (%rsi), %ecx
xorl %eax, %eax
cmpq %rax, %rdx
je 0x25b0
cmpq %rcx, %rax
jae 0x25b0
movq 0x8(%rdi), %r8
movq (%r8,%rax,8), %r8
movq 0x8(%rsi), %r9
leaq 0x1(%rax), %r10
cmpq (%r9,%rax,8), %r8
movq %r10, %rax
je 0x2582
xorl %eax, %eax
jmp 0x25db
orq %rsi, %rdi
sete %al
retq
movb $0x1, %al
cmpw %cx, %dx
je 0x25db
cmpw %cx, %dx
cmovaq %rdi, %rsi
cmoval %edx, %ecx
movzwl (%rsi), %edx
cmpq %rdx, %rcx
setae %al
jae 0x25db
movq 0x8(%rsi), %rdi
cmpq $0x0, (%rdi,%rcx,8)
leaq 0x1(%rcx), %rcx
je 0x25c4
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/MaoKo[P]FGFX/tools/src/bitset.c
// Function: op_bitset
bitset_t*
_op_bitset(int kind, bitset_t* rbs, bitset_t* lbs) {
    if (!rbs || (kind != _COMPL && !lbs))
        { return (NULL); }
    if (kind != _COMPL && (adjust_bitset(rbs, lbs->nwords)
            || adjust_bitset(lbs, rbs->nwords)))
        { return (NULL); }
    for (size_t i = 0; i < rbs->nwords; ++i) {
        switch (kind) {
            case _UNION:
                    rbs->map[i] |= lbs->map[i];
                    break;
            case _INTERSECT:
                    rbs->map[i] &= lbs->map[i];
                    break;
            case _DIFF:
                    rbs->map[i] = (rbs->map[i] ^ (rbs->map[i] & lbs->map[i]));
                    break;
            case _COMPL:
                    rbs->map[i] = ~rbs->map[i];
                    break;
        }
    }
    return (rbs);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
testq %rsi, %rsi
je 0x269f
movq %rdx, %r14
movl %edi, %r15d
cmpl $0x3, %edi
setne %al
testq %rdx, %rdx
sete %cl
testb %cl, %al
jne 0x269f
movq %rsi, %rbx
cmpl $0x3, %r15d
jne 0x267c
movzwl (%rbx), %eax
xorl %ecx, %ecx
movl %r15d, %edx
leaq 0x69ee(%rip), %rsi      # 0x9010
cmpq %rcx, %rax
je 0x26a1
cmpl $0x3, %r15d
ja 0x2677
movslq (%rsi,%rdx,4), %rdi
addq %rsi, %rdi
jmpq *%rdi
movq 0x8(%r14), %rdi
movq (%rdi,%rcx,8), %rdi
movq 0x8(%rbx), %r8
orq %rdi, (%r8,%rcx,8)
jmp 0x2677
movq 0x8(%rbx), %rdi
movq 0x8(%r14), %r8
movq (%r8,%rcx,8), %r8
notq %r8
andq %r8, (%rdi,%rcx,8)
jmp 0x2677
movq 0x8(%rbx), %rdi
notq (%rdi,%rcx,8)
jmp 0x2677
movq 0x8(%r14), %rdi
movq (%rdi,%rcx,8), %rdi
movq 0x8(%rbx), %r8
andq %rdi, (%r8,%rcx,8)
incq %rcx
jmp 0x2622
movzwl (%r14), %esi
movq %rbx, %rdi
callq 0x242c
testl %eax, %eax
jne 0x269f
movzwl (%rbx), %esi
movq %r14, %rdi
callq 0x242c
testl %eax, %eax
je 0x2613
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/MaoKo[P]FGFX/tools/src/bitset.c
// Function: truncate_bitset
void
truncate_bitset(bitset_t* bs) {
    if (!bs)
        { return; }
    if (bs->map != bs->defmap) {
        FREE(bs->map);
        bs->map = bs->defmap;
        bs->nwords = _DEFWORDS;
        bs->nbits = _DEFBITS;
    }
    CLEAR_BITSET(bs);
}

// Assembly:
testq %rdi, %rdi
je 0x26e8
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
leaq 0x10(%rbx), %r14
cmpq %r14, %rdi
je 0x26e9
callq 0x21d0
movq %r14, 0x8(%rbx)
movw $0x8, (%rbx)
movl $0x200, 0x4(%rbx)       # imm = 0x200
pushq $0x40
popq %rdx
movq %r14, %rdi
jmp 0x26ef
retq
movzwl (%rbx), %edx
shll $0x3, %edx
xorl %esi, %esi
popq %rbx
popq %r14
popq %rbp
jmp 0x20d0
// File: /workspace/github_c_makefile_star2_O2/MaoKo[P]FGFX/tools/src/bitset.c
// Function: next_bitset
int
_next_bitset(bitset_t* bs) {
    if (!bs)
        { return (IT_NULL); }
    if (bs->invert) {
        while (bs->siter >= 0) {
            int next_val = (bs->siter)--;
            if (OP_BITSET(bs, next_val, &))
                { return (next_val); }
        }
    }
    else {
        while (bs->siter < (int)bs->nbits) {
            int next_val = (bs->siter)++;
            if (OP_BITSET(bs, next_val, &))
                { return (next_val); }
        }
    }
    return (IT_NULL);
}

// Assembly:
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
testq %rdi, %rdi
je 0x2767
pushq %rbp
movq %rsp, %rbp
cmpb $0x0, 0x54(%rdi)
je 0x2738
movl 0x50(%rdi), %ecx
testl %ecx, %ecx
js 0x2766
leal -0x1(%rcx), %edx
movl %edx, 0x50(%rdi)
movq 0x8(%rdi), %rsi
movl %ecx, %r8d
shrl $0x6, %r8d
movq (%rsi,%r8,8), %rsi
btq %rcx, %rsi
movl %edx, %ecx
jae 0x2711
incl %edx
movl %edx, %eax
jmp 0x2766
movl 0x4(%rdi), %ecx
movl 0x50(%rdi), %edx
cmpl %ecx, %edx
jge 0x2766
leal 0x1(%rdx), %esi
movl %esi, 0x50(%rdi)
movq 0x8(%rdi), %r8
movl %edx, %r9d
sarl $0x6, %r9d
movslq %r9d, %r9
movq (%r8,%r9,8), %r8
btq %rdx, %r8
movl %esi, %edx
jae 0x273e
decl %esi
movl %esi, %eax
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/MaoKo[P]FGFX/tools/src/bitset.c
// Function: hash_bitset
_SETTYPE
hash_bitset(bitset_t const* bs) {
    if (!bs)
        { return (0); }
    _SETTYPE count = 0;
    //Don't matter if overflow occurs
    for (size_t i = 0; i < bs->nwords; ++i)
        { count += bs->map[i]; }
    return (count);
}

// Assembly:
testq %rdi, %rdi
je 0x278c
pushq %rbp
movq %rsp, %rbp
movzwl (%rdi), %ecx
xorl %eax, %eax
xorl %edx, %edx
cmpq %rdx, %rcx
je 0x278a
movq 0x8(%rdi), %rsi
addq (%rsi,%rdx,8), %rax
incq %rdx
jmp 0x2778
popq %rbp
retq
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O2/MaoKo[P]FGFX/tools/src/bitset.c
// Function: is_subset_bitset
bool
is_subset_bitset(bitset_t const* bset1, bitset_t const* bset2) {
    if (!bset1 || !bset2)
        { return (!bset2); }
    //The Empty set is the subset of every all set even the empty set
    unsigned short min = MIN(bset1->nwords, bset2->nwords);
    for (size_t i = 0; i < min; ++i) {
        if ((~bset1->map[i]) & bset2->map[i])
            { return (false); }
    }
    if (bset2->nwords > bset1->nwords) {
        for (size_t i = bset1->nwords; i < bset2->nwords; ++i) {
            if (bset2->map[i])
                { return (false); }
        }
    }
    return (true);
}

// Assembly:
testq %rdi, %rdi
setne %al
testq %rsi, %rsi
setne %cl
testb %cl, %al
je 0x27d9
pushq %rbp
movq %rsp, %rbp
movzwl (%rdi), %ecx
movzwl (%rsi), %edx
cmpw %dx, %cx
movl %edx, %eax
cmovbl %ecx, %eax
xorl %r8d, %r8d
cmpq %r8, %rax
je 0x27e0
movq 0x8(%rdi), %r9
movq (%r9,%r8,8), %r9
notq %r9
movq 0x8(%rsi), %r10
leaq 0x1(%r8), %r11
testq %r9, (%r10,%r8,8)
movq %r11, %r8
je 0x27b4
xorl %eax, %eax
jmp 0x27fe
testq %rsi, %rsi
sete %al
retq
movb $0x1, %al
cmpw %dx, %cx
jae 0x27fe
cmpq %rcx, %rdx
sete %al
je 0x27fe
movq 0x8(%rsi), %rdi
cmpq $0x0, (%rdi,%rcx,8)
leaq 0x1(%rcx), %rcx
je 0x27e7
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/MaoKo[P]FGFX/tools/src/bitset.c
// Function: is_disjoint_bitset
bool
is_disjoint_bitset(bitset_t const* bset1, bitset_t const* bset2) {
    if (!bset1 || !bset2)
        { return (!(!bset1 && !bset2)); }
    unsigned short max = MAX(bset1->nwords, bset2->nwords);
    for (size_t i = 0; i < max; ++i) {
        if (bset1->map[i] & bset2->map[i])
            { return (false); }
    }
    return (true);
}

// Assembly:
testq %rdi, %rdi
setne %al
testq %rsi, %rsi
setne %cl
testb %cl, %al
je 0x2846
pushq %rbp
movq %rsp, %rbp
movl (%rdi), %eax
movl (%rsi), %ecx
cmpw %cx, %ax
cmoval %eax, %ecx
movzwl %cx, %ecx
xorl %edx, %edx
cmpq %rdx, %rcx
sete %al
je 0x2844
movq 0x8(%rdi), %r8
movq 0x8(%rsi), %r9
movq (%r9,%rdx,8), %r9
leaq 0x1(%rdx), %r10
testq %r9, (%r8,%rdx,8)
movq %r10, %rdx
je 0x2823
popq %rbp
retq
orq %rsi, %rdi
setne %al
retq
// File: /workspace/github_c_makefile_star2_O2/MaoKo[P]FGFX/tools/src/bitset.c
// Function: print_bitset
void
print_bitset(bitset_t* bs) {
    printf("{");
    if (bs) {
        unsigned int iter_back = bs->siter;
        int i;
        while ((i = IT_NEXT(bs)) != IT_NULL)
            { printf("%d,", i); }
        bs->siter = iter_back;
    }
    printf("}\n");
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
pushq $0x7b
popq %rdi
callq 0x2040
testq %rbx, %rbx
je 0x28cb
movl 0x50(%rbx), %r15d
leaq 0x6874(%rip), %r14      # 0x9120
movq %rbx, %rdi
callq 0x26fa
cmpl $-0x1, %eax
je 0x28c7
movq %r14, %rdi
movl %eax, %esi
xorl %eax, %eax
callq 0x20a0
jmp 0x28ac
movl %r15d, 0x50(%rbx)
leaq 0x7ac9(%rip), %rdi      # 0xa39b
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x2060
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O2/MaoKo[P]FGFX/tools/src/vector.c
// Function: make_len_vector
static vector_t*
make_len_vector(size_t len) {
    vector_t* vect = NEW(vector_t, 1);
    if (!vect)
        { return (NULL_VECT); }
    memset(vect, 0, sizeof(vector_t));
    vect->body = NEW(void*, len);
    if (!vect->body) {
        FREE(vect);
        return (NULL_VECT);
    }
    vect->alloc = len;
    return (vect);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %r14
pushq $0x18
popq %rdi
callq 0x36ef
testq %rax, %rax
je 0x293d
movq %rax, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
andq $0x0, 0x10(%rax)
leaq (,%r14,8), %rdi
callq 0x36ef
movq %rax, (%rbx)
testq %rax, %rax
je 0x2935
movq %r14, 0x8(%rbx)
jmp 0x293f
movq %rbx, %rdi
callq 0x21d0
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/MaoKo[P]FGFX/tools/src/vector.c
// Function: dup_vector
vector_t*
dup_vector(vector_t const* vect) {
    if (!vect)
        { return (NULL_VECT); }
    vector_t* new_vect = make_len_vector(vect->alloc);
    if (!new_vect)
        { return (NULL_VECT); }
    memcpy(new_vect->body, vect->body, sizeof(void*) * vect->alloc);
    return (new_vect);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
testq %rdi, %rdi
je 0x297c
movq %rdi, %r14
movq 0x8(%rdi), %rdi
callq 0x28f5
testq %rax, %rax
je 0x297c
movq %rax, %rbx
movq (%rax), %rdi
movq (%r14), %rsi
movq 0x8(%r14), %rdx
shlq $0x3, %rdx
callq 0x2140
jmp 0x297e
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/MaoKo[P]FGFX/tools/src/vector.c
// Function: insert_vector
void
insert_vector(vector_t* vect, size_t offset, void* obj) {
    if (!vect)
        { return; }
    extend_vector(vect);
    if (offset >= vect->index)
        { vect->body[vect->index] = obj; }
    else {
        memmove(vect->body + offset + 1, vect->body + offset,
                sizeof(void*) * (vect->index - offset));
        vect->body[offset] = obj;
    }
    ++vect->index;
}

// Assembly:
testq %rdi, %rdi
je 0x2a65
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movq 0x10(%rdi), %rdi
cmpq 0x8(%rbx), %rdi
jb 0x2a21
callq 0x365c
movq %rax, %r12
movq (%rbx), %rdi
leaq (,%rax,8), %rsi
callq 0x397c
testq %rax, %rax
je 0x2a21
movq %rax, (%rbx)
movq %r12, 0x8(%rbx)
movq (%rbx), %rcx
movq 0x10(%rbx), %rax
movq %rax, %rdx
subq %r15, %rdx
jbe 0x2a52
leaq (%rcx,%r15,8), %rsi
leaq (%rcx,%r15,8), %rdi
addq $0x8, %rdi
shlq $0x3, %rdx
callq 0x2170
movq (%rbx), %rax
movq %r14, (%rax,%r15,8)
movq 0x10(%rbx), %rax
jmp 0x2a56
movq %r14, (%rcx,%rax,8)
incq %rax
movq %rax, 0x10(%rbx)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/MaoKo[P]FGFX/tools/src/vector.c
// Function: erase_vector
void
erase_vector(vector_t* vect, size_t offset) {
    if (!vect || offset >= vect->index)
        { return; }
    if (offset + 1 != vect->index) {
        memmove(vect->body + offset, vect->body + offset + 1,
                sizeof(void*) * (vect->index - offset - 1));
    }
    --vect->index;
}

// Assembly:
testq %rdi, %rdi
je 0x2ab8
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x10(%rdi), %rdx
cmpq %rsi, %rdx
jbe 0x2ab2
leaq 0x1(%rsi), %rax
cmpq %rdx, %rax
je 0x2aab
movq (%rbx), %rax
leaq (%rax,%rsi,8), %rdi
leaq (%rax,%rsi,8), %rax
addq $0x8, %rax
notq %rsi
addq %rsi, %rdx
shlq $0x3, %rdx
movq %rax, %rsi
callq 0x2170
movq 0x10(%rbx), %rdx
decq %rdx
movq %rdx, 0x10(%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/MaoKo[P]FGFX/tools/src/vector.c
// Function: reverse_vector
void reverse_vector(vector_t* vect) {
    if (!vect)
        { return; }
    size_t middle = vect->index / 2;
    for (size_t i = 0; i < middle; ++i) {
        void* swap_data = vect->body[i];
        vect->body[i] = vect->body[vect->index - i - 1];
        vect->body[vect->index - i - 1] = swap_data;
    }
}

// Assembly:
testq %rdi, %rdi
je 0x2af5
pushq %rbp
movq %rsp, %rbp
movq 0x10(%rdi), %rax
movq %rax, %rcx
shrq %rcx
decq %rax
xorl %edx, %edx
cmpq %rdx, %rcx
je 0x2af4
movq (%rdi), %rsi
movq (%rsi,%rdx,8), %r8
movq (%rsi,%rax,8), %r9
movq %r9, (%rsi,%rdx,8)
movq (%rdi), %rsi
movq %r8, (%rsi,%rax,8)
incq %rdx
decq %rax
jmp 0x2ad1
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/MaoKo[P]FGFX/tools/src/vector.c
// Function: get_index_vector
int get_index_vector(vector_t* vect, void const* obj, int (*pred)()) {
    if (!vect)
        { return (-1); }
    for (size_t i = 0; i < SIZE_VECTOR(vect); ++i) {
        if (pred && !(*pred)(AT_VECTOR(vect, i), obj))
            { return (i); }
        if (!pred && (obj == AT_VECTOR(vect, i)))
            { return (i); }
    }
    return (-1);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
pushq $-0x1
popq %rbx
testq %rdi, %rdi
je 0x2b47
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
xorl %r13d, %r13d
cmpq 0x10(%r12), %r13
jae 0x2b47
movq (%r12), %rax
movq (%rax,%r13,8), %rdi
testq %r14, %r14
je 0x2b3a
movq %r15, %rsi
xorl %eax, %eax
callq *%r14
testl %eax, %eax
jne 0x2b3f
jmp 0x2b44
cmpq %r15, %rdi
je 0x2b44
incq %r13
jmp 0x2b18
movl %r13d, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/MaoKo[P]FGFX/tools/src/vector.c
// Function: foreach_vector
void
foreach_vector(vector_t* vect, void (*foncteur)()) {
    if (!vect)
        { return; }
    for (size_t i = 0; i < SIZE_VECTOR(vect); ++i)
        { (*foncteur)(AT_VECTOR(vect, i)); }
}

// Assembly:
testq %rdi, %rdi
je 0x2b90
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
xorl %r15d, %r15d
cmpq 0x10(%r14), %r15
jae 0x2b86
movq (%r14), %rax
movq (%rax,%r15,8), %rdi
xorl %eax, %eax
callq *%rbx
incq %r15
jmp 0x2b70
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/MaoKo[P]FGFX/tools/src/vector.c
// Function: init_vector
void
init_vector(vector_t* vect, size_t size, void* (*constructor)(void)) {
    if (!vect)
        { return; }
    for (size_t i = 0; i < size; ++i)
        { PUSH_BACK_VECTOR(vect, (*constructor)()); }
}

// Assembly:
testq %rdi, %rdi
je 0x2bce
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
subq $0x1, %r14
jb 0x2bc6
movq 0x10(%r15), %r12
callq *%rbx
movq %r15, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0x29d6
jmp 0x2baa
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/MaoKo[P]FGFX/tools/src/vector.c
// Function: append_vector
void
append_vector(vector_t* vect, vector_t const* src_vect) {
    if (!vect || !src_vect)
        { return; }
    for (size_t i = 0; i < SIZE_VECTOR(src_vect); ++i)
        { PUSH_BACK_VECTOR(vect, AT_VECTOR(src_vect, i)); }
}

// Assembly:
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
jne 0x2c1a
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
xorl %r15d, %r15d
cmpq 0x10(%rbx), %r15
jae 0x2c10
movq 0x10(%r14), %rsi
movq (%rbx), %rax
movq (%rax,%r15,8), %rdx
movq %r14, %rdi
callq 0x29d6
incq %r15
jmp 0x2bf2
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/MaoKo[P]FGFX/tools/src/buffer.c
// Function: make_len_buf
static buffer_t*
make_len_buf(size_t len) {
    buffer_t* buf = NEW(buffer_t, 1);
    if (!buf)
        { return (NULL); }
    buf->body = NEW(char, len);
    if (!buf->body)
        { return (NULL); }
    buf->alloc = len;
    buf->index = 0;
    memset(buf->body, 0, buf->alloc);
    return (buf);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %r14
pushq $0x18
popq %rdi
callq 0x36ef
testq %rax, %rax
je 0x2c8b
movq %rax, %rbx
movq %r14, %rdi
callq 0x36ef
movq %rax, (%rbx)
testq %rax, %rax
je 0x2c8b
movq %r14, 0x8(%rbx)
andq $0x0, 0x10(%rbx)
movq %rax, %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x20d0
jmp 0x2c8d
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/MaoKo[P]FGFX/tools/src/buffer.c
// Function: dup_buffer
buffer_t*
dup_buffer(buffer_t const* buf) {
    if (!buf)
        { return (NULL); }
    buffer_t* new_buf = make_len_buf(buf->alloc);
    if (!new_buf)
        { return (NULL); }
    memcpy(new_buf->body, buf->body, buf->alloc);
    return (new_buf);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
testq %rdi, %rdi
je 0x2cc6
movq %rdi, %r14
movq 0x8(%rdi), %rdi
callq 0x2c49
testq %rax, %rax
je 0x2cc6
movq %rax, %rbx
movq (%rax), %rdi
movq (%r14), %rsi
movq 0x8(%r14), %rdx
callq 0x2140
jmp 0x2cc8
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/MaoKo[P]FGFX/tools/src/buffer.c
// Function: write_char_buffer
int
write_char_buffer(buffer_t* buf, char c) {
    if (extend_buffer(buf) == ERROR)
        { return (ERROR); }
    buf->body[SIZE_BUFFER(buf)] = c;
    if (c)
        { ++(buf->index); }
    return (c);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq $-0x1
popq %r15
testq %rdi, %rdi
je 0x2d67
movl %esi, %ebx
movq %rdi, %r14
movq 0x10(%rdi), %rax
leaq 0x1(%rax), %rdi
cmpq 0x8(%r14), %rdi
jb 0x2d55
callq 0x365c
movq %rax, %r12
movq (%r14), %rdi
movq %rax, %rsi
callq 0x397c
testq %rax, %rax
je 0x2d67
movq %rax, (%r14)
movq %r12, 0x8(%r14)
movq 0x10(%r14), %rcx
addq %rcx, %rax
subq %rcx, %r12
movq %rax, %rdi
xorl %esi, %esi
movq %r12, %rdx
callq 0x20d0
movq 0x10(%r14), %rax
movq (%r14), %rcx
movb %bl, (%rcx,%rax)
testb %bl, %bl
je 0x2d63
incq 0x10(%r14)
movsbl %bl, %r15d
movl %r15d, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/MaoKo[P]FGFX/tools/src/buffer.c
// Function: write_buffer
int
write_buffer(buffer_t* buf, char const* str) {
    if (!buf || !str)
        { return (ERROR); }
    while (*str) {
        if (write_char_buffer(buf, *str++) == ERROR)
            { return (ERROR); }
    }
    write_char_buffer(buf, '\0');
    return (strlen(str));
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
pushq $-0x1
popq %r14
orb %al, %cl
jne 0x2dc7
movq %rsi, %rbx
movq %rdi, %r15
movb (%rbx), %al
testb %al, %al
je 0x2db2
incq %rbx
movsbl %al, %esi
movq %r15, %rdi
callq 0x2cf4
cmpl $-0x1, %eax
jne 0x2d97
jmp 0x2dc7
movq %r15, %rdi
xorl %esi, %esi
callq 0x2cf4
movq %rbx, %rdi
callq 0x2090
movq %rax, %r14
movl %r14d, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/MaoKo[P]FGFX/tools/src/buffer.c
// Function: unget_char_front_buffer
void
unget_char_front_buffer(buffer_t* buf, size_t sz) {
    if (!buf)
        { return; }
    else if (SIZE_BUFFER(buf) <= sz)
        { reset_buffer(buf); }
    else {
        buf->index -= sz;
        memmove(buf->body, buf->body + sz, SIZE_BUFFER(buf));
        memset(buf->body + SIZE_BUFFER(buf), 0, sz);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
testq %rdi, %rdi
je 0x2e4c
movq %rsi, %r14
movq %rdi, %rbx
movq 0x10(%rdi), %rdx
subq %rsi, %rdx
jbe 0x2e39
movq %rdx, 0x10(%rbx)
movq (%rbx), %rdi
leaq (%rdi,%r14), %rsi
callq 0x2170
movq (%rbx), %rdi
addq 0x10(%rbx), %rdi
xorl %esi, %esi
movq %r14, %rdx
popq %rbx
popq %r14
popq %rbp
jmp 0x20d0
movq (%rbx), %rdi
movq 0x8(%rbx), %rdx
xorl %esi, %esi
callq 0x20d0
andq $0x0, 0x10(%rbx)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/MaoKo[P]FGFX/tools/src/buffer.c
// Function: unget_char_back_buffer
void
unget_char_back_buffer(buffer_t* buf, size_t sz) {
    if (!buf)
        { return; }

    if (sz > SIZE_BUFFER(buf))
        { sz = SIZE_BUFFER(buf); }
    while (sz--)
        { buf->body[--(buf->index)] = '\0'; }
}

// Assembly:
testq %rdi, %rdi
je 0x2eaa
pushq %rbp
movq %rsp, %rbp
movq 0x10(%rdi), %rax
cmpq %rsi, %rax
cmovbq %rax, %rsi
subq $0x1, %rsi
jb 0x2ea9
movq (%rdi), %rax
movq 0x10(%rdi), %rcx
leaq -0x1(%rcx), %rdx
movq %rdx, 0x10(%rdi)
movb $0x0, -0x1(%rax,%rcx)
jmp 0x2e8d
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/MaoKo[P]FGFX/tools/src/buffer.c
// Function: hash_buffer
int
hash_buffer(buffer_t const* buf) {
    if (!buf)
        { return (0); }
    int sum_char = 0;
    for (size_t i = 0; i < SIZE_BUFFER(buf); ++i)
        { sum_char += buf->body[i]; }
    return (sum_char);
}

// Assembly:
testq %rdi, %rdi
je 0x2ed1
pushq %rbp
movq %rsp, %rbp
movq 0x10(%rdi), %rcx
xorl %eax, %eax
xorl %edx, %edx
cmpq %rdx, %rcx
je 0x2ecf
movq (%rdi), %rsi
movsbl (%rsi,%rdx), %esi
addl %esi, %eax
incq %rdx
jmp 0x2ebc
popq %rbp
retq
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O2/MaoKo[P]FGFX/tools/src/buffer.c
// Function: move_back_buffer
void
move_back_buffer(buffer_t* dst_buff, buffer_t* src_buff, size_t size) {
    if (size > SIZE_BUFFER(src_buff))
        { size = SIZE_BUFFER(src_buff); }
    size_t start_index = SIZE_BUFFER(src_buff) - size;
    for (size_t i = start_index; i < SIZE_BUFFER(src_buff); ++i) {
        int char_at = CHAR_AT(src_buff, i);
        write_char_buffer(dst_buff, char_at);
    }
    unget_char_back_buffer(src_buff, size);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq 0x10(%rsi), %rax
cmpq %rdx, %rax
cmovbq %rax, %rbx
movq %rax, %r12
subq %rbx, %r12
cmpq %rax, %r12
jae 0x2f17
movq (%r14), %rax
movsbl (%rax,%r12), %esi
movq %r15, %rdi
callq 0x2cf4
incq %r12
movq 0x10(%r14), %rax
jmp 0x2ef9
movq %r14, %rdi
movq %rbx, %rsi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x2e79
// File: /workspace/github_c_makefile_star2_O2/MaoKo[P]FGFX/tools/src/buffer.c
// Function: move_front_buffer
void
move_front_buffer(buffer_t* dst_buff, buffer_t* src_buff, size_t size) {
    if (size > SIZE_BUFFER(src_buff))
        { size = SIZE_BUFFER(src_buff); }
    for (size_t i = 0; i < size; ++i) {
        int char_at = CHAR_AT(src_buff, i);
        write_char_buffer(dst_buff, char_at);
    }
    unget_char_front_buffer(src_buff, size);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq 0x10(%rsi), %rax
cmpq %rdx, %rax
cmovbq %rax, %rbx
xorl %r12d, %r12d
cmpq %r12, %rbx
je 0x2f66
movq (%r14), %rax
movsbl (%rax,%r12), %esi
movq %r15, %rdi
callq 0x2cf4
incq %r12
jmp 0x2f4c
movq %r14, %rdi
movq %rbx, %rsi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x2df9
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O2/MaoKo[P]FGFX/tools/src/lexer.c
// Function: new_lexer
lexer_t*
new_lexer(int filde) {
    lexer_t* lex = NEW(lexer_t, 1);

    if (!lex)
        { return (NULL); }
    memset(lex, 0, sizeof(*lex));

    lex->filde = filde;

    lex->push_back = new_buffer();
    lex->last_lexeme = new_buffer();

    lex->last_token = NO_TOKEN;
    lex->lineno = START_LINE;
    
    lex->stack_state = new_vector();
    lex->crt_state = INIT_STATE;

    return (lex);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movl %edi, %r14d
pushq $0x30
popq %rdi
callq 0x36ef
movq %rax, %rbx
testq %rax, %rax
je 0x2fd5
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movups %xmm0, 0x20(%rbx)
movups %xmm0, 0x10(%rbx)
movl %r14d, (%rbx)
callq 0x2c38
movq %rax, 0x8(%rbx)
callq 0x2c38
movq %rax, 0x10(%rbx)
orl $-0x1, 0x4(%rbx)
movl $0x1, 0x28(%rbx)
callq 0x28e4
movq %rax, 0x18(%rbx)
movq $0x1, 0x20(%rbx)
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/MaoKo[P]FGFX/tools/src/lexer.c
// Function: del_lexer
void
del_lexer(lexer_t* lex) {
    if (lex) {
        del_buffer(lex->push_back);
        del_buffer(lex->last_lexeme);
        del_vector(lex->stack_state);
    }
    FREE(lex);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
testq %rdi, %rdi
je 0x3006
movq 0x8(%rbx), %rdi
callq 0x2cd0
movq 0x10(%rbx), %rdi
callq 0x2cd0
movq 0x18(%rbx), %rdi
callq 0x2986
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x21d0
// File: /workspace/github_c_makefile_star2_O2/MaoKo[P]FGFX/tools/src/lexer.c
// Function: in_first
bool
in_first(lexer_t* lex, ...) {
    va_list args;
    va_start(args, lex);
    int token;
    while ((token = va_arg(args, int)) != -1) {
        if (token == peek_token(lex))
            { return (true); }
    }
    va_end(args);
    return (false);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0xd0, %rsp
movq %rdi, %rbx
leaq -0xe0(%rbp), %rdi
movq %rsi, 0x8(%rdi)
movq %rdx, 0x10(%rdi)
movq %rcx, 0x18(%rdi)
movq %r8, 0x20(%rdi)
movq %r9, 0x28(%rdi)
testb %al, %al
je 0x359e
movaps %xmm0, -0xb0(%rbp)
movaps %xmm1, -0xa0(%rbp)
movaps %xmm2, -0x90(%rbp)
movaps %xmm3, -0x80(%rbp)
movaps %xmm4, -0x70(%rbp)
movaps %xmm5, -0x60(%rbp)
movaps %xmm6, -0x50(%rbp)
movaps %xmm7, -0x40(%rbp)
movq %rdi, -0x20(%rbp)
leaq 0x10(%rbp), %rax
movq %rax, -0x28(%rbp)
movabsq $0x3000000008, %rax     # imm = 0x3000000008
movq %rax, -0x30(%rbp)
movl -0x30(%rbp), %ecx
cmpq $0x28, %rcx
ja 0x35d0
movq %rcx, %rax
addq -0x20(%rbp), %rax
addl $0x8, %ecx
movl %ecx, -0x30(%rbp)
jmp 0x35dc
movq -0x28(%rbp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, -0x28(%rbp)
movl (%rax), %r14d
cmpl $-0x1, %r14d
je 0x35f2
movq %rbx, %rdi
callq 0x3519
cmpl %eax, %r14d
jne 0x35b8
cmpl $-0x1, %r14d
setne %al
addq $0xd0, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/MaoKo[P]FGFX/tools/src/lexer.c
// Function: is_final_state
static size_t
is_final_state(int state, uint8_t (*final_table)[2]) {
    size_t i = 0;
    while (*final_table[i]) {
        if (*final_table[i] == state)
            { return (final_table[i][1]); }
        ++i;
    }
    return (T_ERROR);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
incq %rsi
movabsq $0x6f, %rax
movzbl -0x1(%rsi), %ecx
testl %ecx, %ecx
je 0x362b
cmpl %edi, %ecx
je 0x3628
addq $0x2, %rsi
jmp 0x3616
movzbl (%rsi), %eax
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/MaoKo[P]FGFX/tools/src/utils.c
// Function: round_up
size_t
round_up(size_t size) {
    size_t close2 = 1;
    while (close2 <= size)
        { close2 <<= 1; }
    return (close2);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movabsq $0x1, %rcx
movq %rcx, %rax
addq %rcx, %rcx
cmpq %rdi, %rax
jbe 0x366a
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/MaoKo[P]FGFX/tools/src/utils.c
// Function: pmalloc
void*
_pmalloc(size_t size) {
    if (!size)
        { size = 1; }
    void* chunk = malloc(size);
#ifndef NDEBUG
    assert(chunk);
#else
    if (!chunk) {
        errorf(0, "No enough memory for this process.");
        errno = ENOMEM;
    }
#endif
    return (chunk);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
cmpq $0x1, %rdi
adcq $0x0, %rdi
callq 0x2150
testq %rax, %rax
je 0x3707
popq %rbp
retq
leaq 0x67f7(%rip), %rdi      # 0x9f05
leaq 0x67c3(%rip), %rsi      # 0x9ed8
leaq 0x67ce(%rip), %rcx      # 0x9eea
movl $0xc8, %edx
callq 0x20b0
// File: /workspace/github_c_makefile_star2_O2/MaoKo[P]FGFX/tools/src/utils.c
// Function: get_filename
char const*
get_filename(char const* path) {
    char const* last = path;
    while (*path) {
        if (*path++ == '/')
            { last = path; }
    }
    return (last);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, %rax
leaq 0x1(%rdi), %rcx
movb -0x1(%rcx), %dl
testb %dl, %dl
je 0x3744
cmpb $0x2f, %dl
cmoveq %rcx, %rax
incq %rcx
jmp 0x3731
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/MaoKo[P]FGFX/tools/src/utils.c
// Function: readjust_index
void
readjust_index(vector_t* vect, size_t base, void(*dealloc)(void*)) {
    if (base >= SIZE_VECTOR(vect))
        { return; }
    (*dealloc)(AT_VECTOR(vect, base));
    erase_vector(vect, base);
    for (size_t i = base; i < SIZE_VECTOR(vect); ++i) {
        obj_index_t* obj = (obj_index_t*)AT_VECTOR(vect, i);
        --(obj->index);
    }
}

// Assembly:
cmpq %rsi, 0x10(%rdi)
jbe 0x3789
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movq (%rdi), %rax
movq (%rax,%rsi,8), %rdi
callq *%rdx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2a66
movq 0x10(%r14), %rax
cmpq %rax, %rbx
jae 0x3785
movq (%r14), %rcx
movq (%rcx,%rbx,8), %rcx
decq (%rcx)
incq %rbx
jmp 0x3771
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/MaoKo[P]FGFX/tools/src/utils.c
// Function: new_trans_list
trans_list_t*
new_trans_list(int input, int state, trans_list_t* tail) {
    trans_list_t* list = NEW(trans_list_t, 1);
    if (!list)
        { return (NULL); }
    list->input = input;
    list->state = state;
    list->next = tail;
    return (list);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movl %esi, %r14d
movl %edi, %r15d
pushq $0x10
popq %rdi
callq 0x36ef
movl %r15d, 0x8(%rax)
movl %r14d, 0xc(%rax)
movq %rbx, (%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/MaoKo[P]FGFX/tools/src/utils.c
// Function: size_gen_list
size_t
size_gen_list(gen_list_t const* list) {
    size_t crt_size = 0;
    while (list) {
        ++crt_size;
        list = list->next;
    }
    return (crt_size);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
xorl %eax, %eax
testq %rdi, %rdi
je 0x37ce
incq %rax
movq (%rdi), %rdi
jmp 0x37c1
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/MaoKo[P]FGFX/tools/src/utils.c
// Function: redirect_trans_list
void
redirect_trans_list(trans_list_t* list, int change, int base) {
    while (list) {
        if (list->state == base)
            { list->state = change; }
        else if (list->state > base)
            { --(list->state); }
        list = list->next;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
testq %rdi, %rdi
je 0x37f0
movl 0xc(%rdi), %eax
movl %esi, %ecx
cmpl %edx, %eax
je 0x37e8
jle 0x37eb
decl %eax
movl %eax, %ecx
movl %ecx, 0xc(%rdi)
movq (%rdi), %rdi
jmp 0x37d4
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/MaoKo[P]FGFX/tools/src/utils.c
// Function: del_node_trans_list
void
del_node_trans_list(trans_list_t** list, trans_list_t const* tnode) {
    if (!list || !*list || !tnode)
        { return; }

    if ((*list) == tnode)
        { (*list) = tnode->next; }
    else {
        trans_list_t* base = *list;
        while (base) {
            if (base->next == tnode) {
                base->next = tnode->next;
                break;
            }
            base = base->next;
        }
    }
    FREE(tnode);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
testq %rdi, %rdi
je 0x3839
movq (%rdi), %rax
testq %rax, %rax
sete %cl
testq %rsi, %rsi
sete %dl
orb %cl, %dl
jne 0x3839
cmpq %rsi, %rax
je 0x383b
testq %rax, %rax
je 0x3841
movq %rax, %rdi
movq (%rax), %rax
jmp 0x3827
popq %rbp
retq
movq (%rsi), %rax
movq %rax, (%rdi)
movq %rsi, %rdi
popq %rbp
jmp 0x21d0
// File: /workspace/github_c_makefile_star2_O2/MaoKo[P]FGFX/tools/src/utils.c
// Function: del_trans_list
void
del_trans_list(trans_list_t* list) {
    while (list) {
        trans_list_t* next = list->next;
        FREE(list);
        list = next;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x3862
movq (%rdi), %rbx
callq 0x21d0
movq %rbx, %rdi
jmp 0x3850
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/MaoKo[P]FGFX/tools/src/utils.c
// Function: trans_list_at
trans_list_t*
trans_list_at(trans_list_t* base, size_t at) {
    size_t count_index = 0;
    while (count_index < at) {
        if (!base)
            { return (NULL); }
        ++count_index;
        base = base->next;
    }
    return (base);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, %rax
subq $0x1, %rsi
jb 0x3882
testq %rax, %rax
je 0x3880
movq (%rax), %rax
jmp 0x3870
xorl %eax, %eax
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/MaoKo[P]FGFX/tools/src/utils.c
// Function: cmp_input_trans_list
int
cmp_input_trans_list(trans_list_t const* list, int input) {
    if (!list)
        { return (-1); }
    size_t count_index = 0;
    while (list) {
        if (list->input == input)
            { return (count_index); }
        ++count_index;
        list = list->next;
    }
    return (-1);
}

// Assembly:
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
testq %rdi, %rdi
je 0x38a8
pushq %rbp
movq %rsp, %rbp
xorl %ecx, %ecx
testq %rdi, %rdi
je 0x38a7
cmpl %esi, 0x8(%rdi)
je 0x38a5
incl %ecx
movq (%rdi), %rdi
jmp 0x3894
movl %ecx, %eax
popq %rbp
retq