LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/robertdavidgraham[P]wc2/wctool.c
// Function: main
int main(int argc, char *argv[])
{
    if (argc > 1 && (tolower(argv[1][0]) == 'u' || strcmp(argv[1], "-u") == 0 || strcmp(argv[1], "--utf8") == 0))
        gen_utf8();
    else if (argc > 1 && (tolower(argv[1][0]) == 'w' || strcmp(argv[1], "-w") == 0 || strcmp(argv[1], "--allword") == 0))
        gen_allword();
    else if (argc > 1 && (tolower(argv[1][0]) == 's' || strcmp(argv[1], "-s") == 0 || strcmp(argv[1], "--allspace") == 0))
        gen_allspace();
    else if (argc > 1 && (tolower(argv[1][0]) == 'a' || strcmp(argv[1], "-a") == 0 || strcmp(argv[1], "--ascii") == 0))
        gen_ascii();
    else {
        setlocale(LC_CTYPE, "");
        printf("LC_CTYPE=%s\n", setlocale(LC_CTYPE, NULL));
    }

    return 0;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
cmpl $0x2, %edi
jl 0x160a
movq %rsi, %rbx
callq 0x10a0
movq (%rax), %rax
movq 0x8(%rbx), %rbx
movsbq (%rbx), %r14
movl (%rax,%r14,4), %ebp
cmpl $0x75, %ebp
je 0x1639
cmpb $0x2d, %r14b
jne 0x1565
cmpb $0x75, 0x1(%rbx)
jne 0x1565
cmpb $0x0, 0x2(%rbx)
je 0x1639
leaq 0xb62(%rip), %rsi       # 0x20ce
movq %rbx, %rdi
callq 0x1070
testl %eax, %eax
je 0x1639
cmpl $0x77, %ebp
je 0x1640
cmpb $0x2d, %r14b
jne 0x159b
cmpb $0x77, 0x1(%rbx)
jne 0x159b
cmpb $0x0, 0x2(%rbx)
je 0x1640
leaq 0xb33(%rip), %rsi       # 0x20d5
movq %rbx, %rdi
callq 0x1070
testl %eax, %eax
je 0x1640
cmpl $0x73, %ebp
je 0x1647
cmpb $0x2d, %r14b
jne 0x15cd
cmpb $0x73, 0x1(%rbx)
jne 0x15cd
cmpb $0x0, 0x2(%rbx)
je 0x1647
leaq 0xb0b(%rip), %rsi       # 0x20df
movq %rbx, %rdi
callq 0x1070
testl %eax, %eax
je 0x1647
cmpl $0x61, %ebp
je 0x164e
cmpb $0x2d, %r14b
jne 0x15f7
cmpb $0x61, 0x1(%rbx)
jne 0x15f7
cmpb $0x0, 0x2(%rbx)
je 0x164e
leaq 0xaec(%rip), %rsi       # 0x20ea
movq %rbx, %rdi
callq 0x1070
testl %eax, %eax
je 0x164e
leaq 0xa2f(%rip), %rsi       # 0x2040
xorl %edi, %edi
callq 0x1080
xorl %edi, %edi
xorl %esi, %esi
callq 0x1080
leaq 0xaca(%rip), %rdi       # 0x20f2
movq %rax, %rsi
xorl %eax, %eax
callq 0x1050
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
callq 0x10c0
jmp 0x1632
callq 0x1139
jmp 0x1632
callq 0x11d0
jmp 0x1632
callq 0x1267
jmp 0x1632
// File: /workspace/github_c_makefile_star2_O3/vidarr[P]ringbuffer/test/../src/buffercache.c
// Function: buffercache_get_buffer
Buffer* buffercache_get_buffer(Ringbuffer* cache, size_t min_length_bytes) {

    Buffer* db =  0;

    if(0 != cache) {
        db = cache->pop(cache);
    }

    if(0 == db) {
        db = calloc(1, sizeof(Buffer));
    }

    if(db->capacity_bytes < min_length_bytes) {
        if(0 != db->data) {
            free(db->data);
            db->data = 0;
        }
    }

    if(0 == db->data) {
        db->data = calloc(1, sizeof(min_length_bytes) * sizeof(uint8_t));
        db->capacity_bytes = min_length_bytes;
    }

    db->bytes_used = 0;

    return db;

}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
testq %rdi, %rdi
je 0x1366
callq *0x10(%rdi)
testq %rax, %rax
je 0x1366
movq %rax, %r14
movq (%rax), %rax
jmp 0x137a
movl $0x1, %edi
movl $0x18, %esi
callq 0x1060
movq %rax, %r14
xorl %eax, %eax
movq 0x10(%r14), %rdi
cmpq %rbx, %rax
jae 0x138f
testq %rdi, %rdi
je 0x1394
callq 0x1030
jmp 0x1394
testq %rdi, %rdi
jne 0x13aa
movl $0x1, %edi
movl $0x8, %esi
callq 0x1060
movq %rax, 0x10(%r14)
movq %rbx, (%r14)
movq $0x0, 0x8(%r14)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/codeniko[P]CS214-Malloc-Free/main.c
// Function: main
void main()
{
        printf("mallocing p 25000\n");
        void *p = malloc(25000);
        printf("p 25000 '%p'\n", p);
        printf("mallocing p2 1000\n");
        void *p2 = malloc(1000);
        printf("p2 1000 '%p'\n", p2);
        printf("mallocing p4 should be success 20000\n");
        void *p4 = malloc(20000);
        printf("p4 20000 '%p'\n", p4);
        printf("Freeing p4\n");
        free(p4);

        printf("mallocing p3 6000\n");
        void *p3 = malloc(6000);
        printf("p3 6000 '%p'\n", p3);
        printf("mallocing p4 20000\n");
        p4 = malloc(20000);
        printf("p4 20000 '%p'\n", p4);

        printf("Freeing p\n");
        free(p);
        printf("Freeing p2\n");
        free(p2);
        printf("Freeing p3\n");
        free(p3);
        printf("Freeing p4\n");
        free(p4);
        printf("Freeing p3\n");
        free(p3);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
leaq 0xed3(%rip), %rdi       # 0x2044
callq 0x1030
leaq 0xe87(%rip), %rbx       # 0x2004
movl $0x61a8, %edi           # imm = 0x61A8
movq %rbx, %rsi
movl $0x7, %edx
callq 0x1320
movq %rax, %r14
leaq 0xe72(%rip), %rdi       # 0x200b
movq %rax, %rsi
xorl %eax, %eax
callq 0x1040
leaq 0xeac(%rip), %rdi       # 0x2056
callq 0x1030
movl $0x3e8, %edi            # imm = 0x3E8
movq %rbx, %rsi
movl $0xa, %edx
callq 0x1320
movq %rax, %r15
leaq 0xe4e(%rip), %rdi       # 0x2019
movq %rax, %rsi
xorl %eax, %eax
callq 0x1040
leaq 0xe8c(%rip), %rdi       # 0x2068
callq 0x1030
movl $0x4e20, %edi           # imm = 0x4E20
movq %rbx, %rsi
movl $0xd, %edx
callq 0x1320
movq %rax, %r12
leaq 0xe2a(%rip), %rdi       # 0x2027
movq %rax, %rsi
xorl %eax, %eax
callq 0x1040
leaq 0xeb9(%rip), %rdi       # 0x20c7
callq 0x1030
movq %r12, %rdi
movq %rbx, %rsi
movl $0x10, %edx
callq 0x1479
leaq 0xe63(%rip), %rdi       # 0x208d
callq 0x1030
movl $0x1770, %edi           # imm = 0x1770
movq %rbx, %rsi
movl $0x13, %edx
callq 0x1320
movq %rax, %r13
leaq 0xdeb(%rip), %rdi       # 0x2036
movq %rax, %rsi
xorl %eax, %eax
callq 0x1040
leaq 0xe43(%rip), %rdi       # 0x209f
callq 0x1030
movl $0x4e20, %edi           # imm = 0x4E20
movq %rbx, %rsi
movl $0x16, %edx
callq 0x1320
movq %rax, %r12
leaq 0xdaa(%rip), %rdi       # 0x2027
movq %rax, %rsi
xorl %eax, %eax
callq 0x1040
leaq 0xe24(%rip), %rdi       # 0x20b2
callq 0x1030
movq %r14, %rdi
movq %rbx, %rsi
movl $0x1a, %edx
callq 0x1479
leaq 0xe12(%rip), %rdi       # 0x20bc
callq 0x1030
movq %r15, %rdi
movq %rbx, %rsi
movl $0x1c, %edx
callq 0x1479
leaq 0xe0c(%rip), %r14       # 0x20d2
movq %r14, %rdi
callq 0x1030
movq %r13, %rdi
movq %rbx, %rsi
movl $0x1e, %edx
callq 0x1479
leaq 0xde2(%rip), %rdi       # 0x20c7
callq 0x1030
movq %r12, %rdi
movq %rbx, %rsi
movl $0x20, %edx
callq 0x1479
movq %r14, %rdi
callq 0x1030
movq %r13, %rdi
movq %rbx, %rsi
movl $0x22, %edx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1479
// File: /workspace/github_c_makefile_star2_O3/kisom[P]kam/stest.c
// Function: main
static void
test_stack8(void)
{
	uint8_t val;
	stack8	st;

	st = new_stack8();
	if (st == NULL) {
		errx(EX_OSERR, "FAILED: malloc failure");
	}

	push8(st, 1);
	push8(st, 2);
	if (2 != (val = pop8(st))) {
		fprintf(stderr,
		    "FAILED: should have received 2 from the stack.\n");
		fprintf(stderr,
		    "        (received %d)\n", val);
		exit(EXIT_FAILURE);
	}

	push8(st, 3);
	if (3 != (val = pop8(st))) {
		fprintf(stderr,
		    "FAILED: should have received 3 from the stack.\n");
		fprintf(stderr,
		    "        (received %d)\n", val);
		exit(EXIT_FAILURE);
	}
	if (1 != (val = pop8(st)))
		errx(EX_SOFTWARE,
		    "FAILED: should have received 1 from the stack.");
	if (!empty8(st))
		errx(EX_SOFTWARE,
		    "FAILED: stack should report empty.");
	push8(st, 5);
	push8(st, 5);
	destroy8(st);
	printf("stack8: OK\n");
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
callq 0x12ac
testq %rax, %rax
je 0x153f
movq %rax, %rbx
movq %rax, %rdi
movl $0x1, %esi
callq 0x12c5
movq %rbx, %rdi
movl $0x2, %esi
callq 0x12c5
movq %rbx, %rdi
callq 0x12f5
cmpb $0x2, %al
jne 0x1569
movq %rbx, %rdi
movl $0x3, %esi
callq 0x12c5
movq %rbx, %rdi
callq 0x12f5
cmpb $0x3, %al
jne 0x1571
movq %rbx, %rdi
callq 0x12f5
cmpb $0x1, %al
jne 0x154d
movq %rbx, %rdi
callq 0x1318
testl %eax, %eax
je 0x1556
movq %rbx, %rdi
movl $0x5, %esi
callq 0x12c5
movq %rbx, %rdi
movl $0x5, %esi
callq 0x12c5
movq %rbx, %rdi
callq 0x1322
leaq 0xc58(%rip), %rdi       # 0x20e4
callq 0x1050
callq 0x1348
testq %rax, %rax
je 0x153f
movq %rax, %rbx
movq %rax, %rdi
movl $0x1, %esi
callq 0x1361
movq %rbx, %rdi
movl $0x2, %esi
callq 0x1361
movq %rbx, %rdi
callq 0x1391
cmpw $0x2, %ax
jne 0x1579
movq %rbx, %rdi
movl $0x3, %esi
callq 0x1361
movq %rbx, %rdi
callq 0x1391
cmpw $0x3, %ax
jne 0x1580
movq %rbx, %rdi
callq 0x1391
cmpw $0x1, %ax
jne 0x154d
movq %rbx, %rdi
callq 0x13b5
testl %eax, %eax
je 0x1556
xorl %ebp, %ebp
movzwl %bp, %ebp
movq %rbx, %rdi
movl %ebp, %esi
callq 0x1361
incl %ebp
movzwl %bp, %eax
cmpl $0x3e80, %eax           # imm = 0x3E80
jne 0x1509
movq %rbx, %rdi
callq 0x13bf
leaq 0xbbe(%rip), %rdi       # 0x20ef
callq 0x1050
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
leaq 0xabe(%rip), %rsi       # 0x2004
movl $0x47, %edi
jmp 0x1562
leaq 0xb3e(%rip), %rsi       # 0x2092
jmp 0x155d
leaq 0xb64(%rip), %rsi       # 0x20c1
movl $0x46, %edi
xorl %eax, %eax
callq 0x1060
movzbl %al, %edi
callq 0x10c0
movzbl %al, %edi
callq 0x10ff
movl %eax, %edi
callq 0x113e
movl %eax, %edi
callq 0x117c
// File: /workspace/github_c_makefile_star2_O3/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:
testl %edx, %edx
jle 0x168e
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %edx, %ebx
movq %rsi, %r14
movl %edi, %eax
movl %edx, %ecx
decq %rcx
movq %rcx, 0x10(%rsp)
movl $0x2, %ebp
movl $0x1, %ecx
movq %rcx, 0x8(%rsp)
xorl %r13d, %r13d
movq %r13, %r12
leaq 0x1bdf(%rip), %rdi      # 0x318a
movl %eax, 0x4(%rsp)
movl %eax, %esi
xorl %eax, %eax
callq 0x10c0
addq $0x8, %r13
movl $0x38, %r15d
movl %ebp, (%rsp)
cmpq 0x10(%rsp), %r12
jge 0x15da
movzwl (%r14,%r12), %esi
leaq 0x1bbb(%rip), %rdi      # 0x3193
jmp 0x15e6
movzbl (%r14,%r12), %esi
leaq 0x1bb4(%rip), %rdi      # 0x319a
xorl %eax, %eax
callq 0x10c0
addl $-0xe, %r15d
cmpl %ebx, %ebp
jge 0x1601
addq $0x2, %r12
addl $0x2, %ebp
cmpq %r13, %r12
jb 0x15c5
sarl %r15d
leaq 0x1b7b(%rip), %rdi      # 0x3186
movl %r15d, %esi
leaq 0x1ad5(%rip), %rdx      # 0x30ea
xorl %eax, %eax
callq 0x10c0
callq 0x11a0
movq %rax, %r15
movq 0x8(%rsp), %r12
movl (%rsp), %ebp
movzbl -0x1(%r14,%r12), %eax
movq (%r15), %rcx
movzwl (%rcx,%rax,2), %ecx
btl $0xe, %ecx
movl $0x2e, %edi
jae 0x1646
movl %eax, %edi
callq 0x1050
cmpl %ebx, %r12d
jge 0x165d
leaq 0x1(%r12), %rax
cmpq %r13, %r12
movq %rax, %r12
jb 0x162c
movl $0xa, %edi
callq 0x1050
movl 0x4(%rsp), %eax
addl $0x8, %eax
addl $0x8, %ebp
addq $0x8, 0x8(%rsp)
cmpl %ebx, %r13d
jl 0x15a1
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x3964(%rip), %ecx      # 0x5160
movslq 0x3961(%rip), %rdx      # 0x5164
cmpl %edx, %ecx
setge %sil
movq 0x3948(%rip), %rax      # 0x5158
testq %rax, %rax
sete %dil
orb %sil, %dil
cmpb $0x1, %dil
jne 0x184f
leaq 0x80(%rdx), %rcx
movl %ecx, 0x3937(%rip)      # 0x5164
leaq 0x400(,%rdx,8), %rsi
movq %rax, %rdi
callq 0x1140
movq %rax, 0x3914(%rip)      # 0x5158
testq %rax, %rax
je 0x1861
movl 0x3911(%rip), %ecx      # 0x5160
leal 0x1(%rcx), %edx
movl %edx, 0x3908(%rip)      # 0x5160
movslq %ecx, %rcx
movq %rbx, (%rax,%rcx,8)
popq %rbx
retq
callq 0x123e
// File: /workspace/github_c_makefile_star2_O3/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 0x35c7(%rip), %rsi      # 0x5160
testq %rsi, %rsi
je 0x1c46
pushq %r14
pushq %rbx
pushq %rax
movq 0x35ab(%rip), %rdi      # 0x5158
leaq -0x2d(%rip), %rcx       # 0x1b87
movl $0x8, %edx
callq 0x1070
leaq 0x1a07(%rip), %rdi      # 0x35cc
callq 0x1060
cmpl $0x0, 0x358f(%rip)      # 0x5160
jle 0x1c0e
xorl %ebx, %ebx
movq 0x33fc(%rip), %r14      # 0x4fd8
movq 0x3575(%rip), %rax      # 0x5158
movq (%rax,%rbx,8), %rdi
movq (%r14), %rsi
callq 0x10e0
movq 0x3562(%rip), %rax      # 0x5158
movq (%rax,%rbx,8), %rdi
callq 0x1040
incq %rbx
movslq 0x3557(%rip), %rax      # 0x5160
cmpq %rax, %rbx
jl 0x1bdc
leaq 0x19bc(%rip), %rdi      # 0x35d1
callq 0x1060
movq 0x3537(%rip), %rdi      # 0x5158
callq 0x1040
movq $0x0, 0x3527(%rip) # 0x5158
xorl %eax, %eax
movl %eax, 0x3527(%rip)      # 0x5160
movl %eax, 0x3525(%rip)      # 0x5164
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/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, 0x3d16(%rip)      # 0x5970
addl $-0x4, %ebx
leaq 0x16ae(%rip), %rdi      # 0x3312
movl %ebx, %edx
xorl %eax, %eax
callq 0x10c0
movl 0x3cfd(%rip), %edi      # 0x5970
addq $0x4, %r14
movq %r14, %rsi
movl %ebx, %edx
callq 0x1568
cmpq $0x0, 0x34bf(%rip)      # 0x5148
je 0x1ca2
movl 0x3cdf(%rip), %edi      # 0x5970
movq %r14, %rsi
movl %ebx, %edx
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x168f
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x24a8
movzwl 0x2(%r14), %edi
leaq 0x3(%rbx), %rsi
callq 0x24a8
movb $0x0, 0x6(%rbx)
movq %rbx, %rdi
callq 0x10a0
addq %rbx, %rax
movq %rax, %rcx
cmpq %rbx, %rax
jbe 0x1ceb
leaq -0x1(%rcx), %rax
cmpb $0x20, -0x1(%rcx)
je 0x1cd9
movb $0x0, (%rcx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/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 %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
cmpl $0x1, %ecx
leaq 0x23ec(%rip), %rax      # 0x8340
leaq 0x27e5(%rip), %r12      # 0x8740
cmoveq %rax, %r12
leaq (%rdx,%rdx,2), %rax
shrq $0x2, %rax
movq 0x8(%rdi), %rcx
leaq (%rax,%rcx), %rsi
addq $0x8, %rsi
callq 0x3d7e
movq (%rbx), %rax
testq %rax, %rax
leaq 0x17c8(%rip), %rdi      # 0x774d
cmoveq %rdi, %rax
addq 0x8(%rbx), %rax
testq %r14, %r14
jle 0x6017
addq %r15, %r14
xorl %ecx, %ecx
xorl %esi, %esi
movzbl (%r15), %edx
movl (%r12,%rdx,4), %edx
leal 0x2(%rdx), %r8d
cmpl $0x2, %r8d
jb 0x5fd9
cmpl $0x40, %edx
je 0x5fe1
shll $0x6, %esi
orl %esi, %edx
incl %ecx
cmpl $0x4, %ecx
je 0x5fc4
movl %edx, %esi
jmp 0x5fd9
movl %edx, %ecx
shrl $0x10, %ecx
movb %cl, (%rax)
movb %dh, 0x1(%rax)
movb %dl, 0x2(%rax)
addq $0x3, %rax
xorl %esi, %esi
xorl %ecx, %ecx
incq %r15
cmpq %r14, %r15
jb 0x5f9d
cmpl $0x2, %ecx
je 0x6002
cmpl $0x3, %ecx
jne 0x6017
movl %esi, %ecx
shrl $0xa, %ecx
leaq 0x1(%rax), %r8
movb %cl, (%rax)
movl $0x2, %edx
movl $0x2, %ecx
jmp 0x600f
movl $0x1, %edx
movl $0x4, %ecx
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_O3/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
movl $0x58, %edi
callq 0x3a0e
testq %rax, %rax
je 0x2484
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movups %xmm0, 0x40(%rax)
movups %xmm0, 0x30(%rax)
movups %xmm0, 0x20(%rax)
movups %xmm0, 0x10(%rax)
movq $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_O3/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 0x2553
movq %rdi, %r14
movl $0x58, %edi
callq 0x3a0e
movq %rax, %rbx
testq %rax, %rax
je 0x250e
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movups %xmm0, 0x40(%rbx)
movups %xmm0, 0x30(%rbx)
movups %xmm0, 0x20(%rbx)
movups %xmm0, 0x10(%rbx)
movq $0x0, 0x50(%rbx)
leaq 0x10(%rbx), %rax
movw $0x8, (%rbx)
movl $0x200, 0x4(%rbx)       # imm = 0x200
movq %rax, 0x8(%rbx)
movl $0xb, %ecx
movq %rbx, %rdi
movq %r14, %rsi
rep  movsq (%rsi), %es:(%rdi)
leaq 0x10(%r14), %rax
cmpq %rax, 0x8(%r14)
je 0x2557
movzwl (%rbx), %r15d
movl %r15d, %edi
shll $0x6, %edi
callq 0x3a0e
movq %rax, 0x8(%rbx)
testq %rax, %rax
je 0x2553
shll $0x3, %r15d
movq 0x8(%r14), %rsi
movq %rax, %rdi
movq %r15, %rdx
callq 0x2140
jmp 0x2562
xorl %ebx, %ebx
jmp 0x2562
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_O3/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 0x25d3
movq %rsi, %rbx
movq %rdi, %r15
movl %ebx, %ecx
shrl $0x5, %ecx
andl $0xfff0, %ecx           # imm = 0xFFF0
movl 0x4(%rdi), %eax
xorl %r14d, %r14d
movzwl %cx, %r12d
movl %eax, %eax
cmpq %rbx, %rax
ja 0x25df
movq %r15, %rdi
movl %r12d, %esi
callq 0x25eb
testl %eax, %eax
jne 0x25d8
movl 0x4(%r15), %eax
cmpq %rbx, %rax
jbe 0x259b
movq 0x8(%r15), %rax
movq %rbx, %rcx
shrq $0x6, %rcx
movq (%rax,%rcx,8), %r14
btsq %rbx, %r14
movq %r14, (%rax,%rcx,8)
jmp 0x25df
xorl %r14d, %r14d
jmp 0x25df
movq $-0x1, %r14
movq %r14, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x269e
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
movzwl (%rdi), %r14d
cmpw %si, %r14w
jae 0x2696
movw %si, (%rbx)
movzwl %si, %edi
movl %edi, %eax
shll $0x6, %eax
movl %eax, 0x4(%rbx)
cmpb $0x1, 0x54(%rbx)
jne 0x262b
decl %eax
movl %eax, 0x50(%rbx)
leal (,%rdi,8), %r12d
shll $0x6, %edi
callq 0x3a0e
movq %rax, %r15
movq %rax, %rdi
xorl %esi, %esi
movq %r12, %rdx
callq 0x20d0
testq %r15, %r15
je 0x267b
shll $0x3, %r14d
movq 0x8(%rbx), %rsi
leaq 0x10(%rbx), %rax
cmpq %rax, %rsi
je 0x2682
movl %r14d, %edx
movq %r15, %rdi
callq 0x2140
movq 0x8(%rbx), %rdi
callq 0x21d0
movq %r15, 0x8(%rbx)
jmp 0x2694
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0x2696
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_O3/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:
movb $0x1, %al
testq %rdi, %rdi
je 0x272d
movzwl (%rdi), %ecx
testq %rcx, %rcx
je 0x272d
pushq %rbp
movq %rsp, %rbp
movq 0x8(%rdi), %rdx
decq %rcx
xorl %esi, %esi
cmpq $0x0, (%rdx,%rsi,8)
sete %al
jne 0x272c
leaq 0x1(%rsi), %rdi
cmpq %rsi, %rcx
movq %rdi, %rsi
jne 0x2716
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x27a9
pushq %rbp
movq %rsp, %rbp
movzwl (%rdi), %edx
movzwl (%rsi), %ecx
testq %rdx, %rdx
je 0x276e
xorl %eax, %eax
cmpq %rax, %rcx
je 0x276e
movq 0x8(%rdi), %r8
movq (%r8,%rax,8), %r8
movq 0x8(%rsi), %r9
cmpq (%r9,%rax,8), %r8
jne 0x27b0
incq %rax
cmpq %rax, %rdx
jne 0x274f
movb $0x1, %al
cmpw %cx, %dx
je 0x27b2
cmpw %cx, %dx
cmovaq %rdi, %rsi
cmoval %edx, %ecx
movzwl (%rsi), %edx
cmpw %dx, %cx
jae 0x27b2
movzwl %cx, %ecx
movq 0x8(%rsi), %rsi
decq %rdx
cmpq $0x0, (%rsi,%rcx,8)
sete %al
jne 0x27b2
leaq 0x1(%rcx), %rdi
cmpq %rcx, %rdx
movq %rdi, %rcx
jne 0x2791
jmp 0x27b2
orq %rsi, %rdi
sete %al
retq
xorl %eax, %eax
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x287f
movq %rdx, %r14
movl %edi, %r15d
cmpl $0x3, %edi
setne %al
testq %rdx, %rdx
sete %cl
testb %cl, %al
jne 0x287f
movq %rsi, %rbx
cmpl $0x3, %r15d
jne 0x285c
movzwl (%rbx), %eax
testq %rax, %rax
je 0x2881
xorl %ecx, %ecx
movl %r15d, %edx
leaq 0x680e(%rip), %rsi      # 0x9010
cmpl $0x3, %r15d
ja 0x2852
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 0x2852
movq 0x8(%rbx), %rdi
movq 0x8(%r14), %r8
movq (%r8,%rcx,8), %r8
notq %r8
andq %r8, (%rdi,%rcx,8)
jmp 0x2852
movq 0x8(%rbx), %rdi
notq (%rdi,%rcx,8)
jmp 0x2852
movq 0x8(%r14), %rdi
movq (%rdi,%rcx,8), %rdi
movq 0x8(%rbx), %r8
andq %rdi, (%r8,%rcx,8)
incq %rcx
cmpq %rcx, %rax
jne 0x2802
jmp 0x2881
movzwl (%r14), %esi
movq %rbx, %rdi
callq 0x25eb
testl %eax, %eax
jne 0x287f
movzwl (%rbx), %esi
movq %r14, %rdi
callq 0x25eb
testl %eax, %eax
je 0x27ea
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x28ca
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
leaq 0x10(%rbx), %r14
cmpq %r14, %rdi
je 0x28cb
callq 0x21d0
movq %r14, 0x8(%rbx)
movw $0x8, (%rbx)
movl $0x200, 0x4(%rbx)       # imm = 0x200
movl $0x40, %edx
movq %r14, %rdi
jmp 0x28d1
retq
movzwl (%rbx), %edx
shll $0x3, %edx
xorl %esi, %esi
popq %rbx
popq %r14
popq %rbp
jmp 0x20d0
// File: /workspace/github_c_makefile_star2_O3/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 0x294e
pushq %rbp
movq %rsp, %rbp
cmpb $0x0, 0x54(%rdi)
je 0x291a
movl 0x50(%rdi), %ecx
testl %ecx, %ecx
js 0x294d
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 0x28f3
incl %edx
movl %edx, %eax
jmp 0x294d
movl 0x4(%rdi), %ecx
movl 0x50(%rdi), %edx
cmpl %ecx, %edx
cmovgl %edx, %ecx
cmpl %edx, %ecx
je 0x294d
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 0x2925
decl %esi
movl %esi, %eax
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x2976
movzwl (%rdi), %ecx
testq %rcx, %rcx
je 0x2976
pushq %rbp
movq %rsp, %rbp
movq 0x8(%rdi), %rdx
xorl %esi, %esi
xorl %eax, %eax
addq (%rdx,%rsi,8), %rax
incq %rsi
cmpq %rsi, %rcx
jne 0x2968
popq %rbp
retq
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x29e5
pushq %rbp
movq %rsp, %rbp
movzwl (%rdi), %ecx
movzwl (%rsi), %edx
cmpw %dx, %cx
movl %edx, %eax
cmovbl %ecx, %eax
testl %eax, %eax
je 0x29bf
movq 0x8(%rdi), %rdi
movq 0x8(%rsi), %r8
xorl %r9d, %r9d
movq (%rdi,%r9,8), %r10
notq %r10
testq %r10, (%r8,%r9,8)
jne 0x29ec
incq %r9
cmpq %r9, %rax
jne 0x29aa
movb $0x1, %al
cmpw %dx, %cx
jae 0x29ee
movq 0x8(%rsi), %rsi
decq %rdx
cmpq $0x0, (%rsi,%rcx,8)
sete %al
jne 0x29ee
leaq 0x1(%rcx), %rdi
cmpq %rcx, %rdx
movq %rdi, %rcx
jne 0x29cd
jmp 0x29ee
testq %rsi, %rsi
sete %al
retq
xorl %eax, %eax
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x2a3e
movl (%rdi), %ecx
movl (%rsi), %eax
cmpw %ax, %cx
cmoval %ecx, %eax
testw %ax, %ax
je 0x2a45
pushq %rbp
movq %rsp, %rbp
movzwl %ax, %ecx
movq 0x8(%rdi), %rdx
movq 0x8(%rsi), %rsi
decq %rcx
xorl %edi, %edi
movq (%rsi,%rdi,8), %rax
testq %rax, (%rdx,%rdi,8)
sete %al
jne 0x2a3c
leaq 0x1(%rdi), %r8
cmpq %rdi, %rcx
movq %r8, %rdi
jne 0x2a23
popq %rbp
retq
orq %rsi, %rdi
setne %al
retq
movb $0x1, %al
retq
// File: /workspace/github_c_makefile_star2_O3/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
movl $0x7b, %edi
callq 0x2040
testq %rbx, %rbx
je 0x2ad5
movl 0x50(%rbx), %r15d
movq %rbx, %rdi
callq 0x28dc
cmpl $-0x1, %eax
je 0x2ad1
leaq 0x6668(%rip), %r14      # 0x9120
movq %r14, %rdi
movl %eax, %esi
xorl %eax, %eax
callq 0x20a0
movq %rbx, %rdi
callq 0x28dc
cmpl $-0x1, %eax
jne 0x2ab8
movl %r15d, 0x50(%rbx)
leaq 0x78d8(%rip), %rdi      # 0xa3b4
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x2060
nop
// File: /workspace/github_c_makefile_star2_O3/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
movl $0x18, %edi
callq 0x3a0e
testq %rax, %rax
je 0x2b45
movq %rax, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movq $0x0, 0x10(%rax)
leaq (,%r14,8), %rdi
callq 0x3a0e
movq %rax, (%rbx)
testq %rax, %rax
je 0x2b3d
movq %r14, 0x8(%rbx)
jmp 0x2b47
movq %rbx, %rdi
callq 0x21d0
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x2b84
movq %rdi, %r14
movq 0x8(%rdi), %rdi
callq 0x2af8
testq %rax, %rax
je 0x2b84
movq %rax, %rbx
movq (%rax), %rdi
movq (%r14), %rsi
movq 0x8(%r14), %rdx
shlq $0x3, %rdx
callq 0x2140
jmp 0x2b86
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x2c70
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 0x2c2c
callq 0x3980
movq %rax, %r12
movq (%rbx), %rdi
leaq (,%rax,8), %rsi
callq 0x3cdf
testq %rax, %rax
je 0x2c2c
movq %rax, (%rbx)
movq %r12, 0x8(%rbx)
movq (%rbx), %rcx
movq 0x10(%rbx), %rax
movq %rax, %rdx
subq %r15, %rdx
jbe 0x2c5d
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 0x2c61
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_O3/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 0x2cc3
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x10(%rdi), %rdx
cmpq %rsi, %rdx
jbe 0x2cbd
leaq 0x1(%rsi), %rax
cmpq %rdx, %rax
je 0x2cb6
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_O3/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 0x2d04
movq 0x10(%rdi), %rax
cmpq $0x2, %rax
jb 0x2d04
pushq %rbp
movq %rsp, %rbp
movq %rax, %rcx
shrq %rcx
decq %rax
xorl %edx, %edx
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
cmpq %rdx, %rcx
jne 0x2ce2
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
testq %rdi, %rdi
je 0x2d64
movq %rdi, %r12
movq 0x10(%rdi), %rax
testq %rax, %rax
je 0x2d64
movq %rdx, %r14
movq %rsi, %r15
xorl %r13d, %r13d
movq (%r12), %rcx
movq (%rcx,%r13,8), %rdi
testq %r14, %r14
je 0x2d52
movq %r15, %rsi
xorl %eax, %eax
callq *%r14
testl %eax, %eax
je 0x2d61
movq 0x10(%r12), %rax
jmp 0x2d57
cmpq %r15, %rdi
je 0x2d61
incq %r13
cmpq %rax, %r13
jb 0x2d32
jmp 0x2d64
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_O3/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
movl $0x18, %edi
callq 0x3a0e
testq %rax, %rax
je 0x2ebb
movq %rax, %rbx
movq %r14, %rdi
callq 0x3a0e
movq %rax, (%rbx)
testq %rax, %rax
je 0x2ebb
movq %r14, 0x8(%rbx)
movq $0x0, 0x10(%rbx)
movq %rax, %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x20d0
jmp 0x2ebd
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
testq %rdi, %rdi
je 0x2f99
movl %esi, %ebx
movq %rdi, %r14
movq 0x10(%rdi), %rax
leaq 0x1(%rax), %rdi
cmpq 0x8(%r14), %rdi
jb 0x2f87
callq 0x3980
movq %rax, %r12
movq (%r14), %rdi
movq %rax, %rsi
callq 0x3cdf
testq %rax, %rax
je 0x2f99
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 0x2f95
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_O3/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
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
orb %al, %cl
jne 0x2ffb
movq %rsi, %rbx
movq %rdi, %r15
movb (%rbx), %al
testb %al, %al
je 0x2fe6
incq %rbx
movsbl %al, %esi
movq %r15, %rdi
callq 0x2f24
cmpl $-0x1, %eax
jne 0x2fcb
jmp 0x2ffb
movq %r15, %rdi
xorl %esi, %esi
callq 0x2f24
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_O3/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 0x3083
movq %rsi, %r14
movq %rdi, %rbx
movq 0x10(%rdi), %rdx
subq %rsi, %rdx
jbe 0x306d
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
movq $0x0, 0x10(%rbx)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x30e6
movq 0x10(%rdi), %rax
cmpq %rsi, %rax
cmovbq %rax, %rsi
testq %rsi, %rsi
je 0x30e6
pushq %rbp
movq %rsp, %rbp
movq (%rdi), %rax
movq 0x10(%rdi), %rcx
leaq -0x1(%rcx), %rdx
movq %rdx, 0x10(%rdi)
movb $0x0, -0x1(%rax,%rcx)
decq %rsi
jne 0x30cc
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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:
xorl %eax, %eax
testq %rdi, %rdi
je 0x3111
movq 0x10(%rdi), %rcx
testq %rcx, %rcx
je 0x3111
pushq %rbp
movq %rsp, %rbp
movq (%rdi), %rdx
xorl %esi, %esi
xorl %eax, %eax
movsbl (%rdx,%rsi), %edi
addl %edi, %eax
incq %rsi
cmpq %rsi, %rcx
jne 0x3102
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x10(%rsi), %rax
cmpq %rdx, %rax
cmovbq %rax, %rbx
movq %rax, %r12
subq %rbx, %r12
cmpq %rax, %r12
jae 0x3158
movq %rdi, %r15
movq (%r14), %rax
movsbl (%rax,%r12), %esi
movq %r15, %rdi
callq 0x2f24
incq %r12
movq 0x10(%r14), %rax
cmpq %rax, %r12
jb 0x313c
cmpq %rbx, %rax
cmovbq %rax, %rbx
testq %rbx, %rbx
je 0x317d
movq (%r14), %rax
movq 0x10(%r14), %rcx
leaq -0x1(%rcx), %rdx
movq %rdx, 0x10(%r14)
movb $0x0, -0x1(%rax,%rcx)
decq %rbx
jne 0x3164
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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, %r14
movq %rsi, %rbx
movq 0x10(%rsi), %rdx
cmpq %r14, %rdx
cmovbq %rdx, %r14
testq %r14, %r14
je 0x31c9
movq %rdi, %r15
xorl %r12d, %r12d
movq (%rbx), %rax
movsbl (%rax,%r12), %esi
movq %r15, %rdi
callq 0x2f24
incq %r12
cmpq %r12, %r14
jne 0x31ad
movq 0x10(%rbx), %rdx
subq %r14, %rdx
jbe 0x31f7
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 %r12
popq %r14
popq %r15
popq %rbp
jmp 0x20d0
movq (%rbx), %rdi
movq 0x8(%rbx), %rdx
xorl %esi, %esi
callq 0x20d0
movq $0x0, 0x10(%rbx)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O3/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
movl $0x30, %edi
callq 0x3a0e
movq %rax, %rbx
testq %rax, %rax
je 0x3276
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movups %xmm0, 0x20(%rbx)
movups %xmm0, 0x10(%rbx)
movl %r14d, (%rbx)
callq 0x2e68
movq %rax, 0x8(%rbx)
callq 0x2e68
movq %rax, 0x10(%rbx)
movl $0xffffffff, 0x4(%rbx)  # imm = 0xFFFFFFFF
movl $0x1, 0x28(%rbx)
callq 0x2aec
movq %rax, 0x18(%rbx)
movq $0x1, 0x20(%rbx)
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x32a7
movq 0x8(%rbx), %rdi
callq 0x2f00
movq 0x10(%rbx), %rdi
callq 0x2f00
movq 0x18(%rbx), %rdi
callq 0x2b8e
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x21d0