LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/AK6DN[P]dec-utilities-for-pdp/d8tape/main.c
// Function: seg_add
static void
seg_add (uint16_t addr, int len)
{
    if (optv > 3) {
        printf ("seg_add (0%04o, %d (0%04o))\n", addr, len, len);
    }

    segments = realloc (segments, (nsegments + 1) * sizeof (segments [0]));
    if (segments == NULL) {
        fprintf (stderr, "%s:  couldn't realloc segments array to be %d elements (%ld bytes) long, errno %d (%s)\n", progname, nsegments + 1, (unsigned long)(nsegments + 1) * sizeof (segments [0]), errno, strerror (errno));
        exit (EXIT_FAILURE);
    }
    segments [nsegments].saddr = addr;
    segments [nsegments].nwords = len;
    nsegments++;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movl %esi, %ebx
movl %edi, %ebp
cmpl $0x4, 0x8c6b(%rip)      # 0xcf30
jl 0x42dc
movzwl %bp, %esi
leaq 0x2431(%rip), %rdi      # 0x6702
movl %ebx, %edx
movl %ebx, %ecx
xorl %eax, %eax
callq 0x30c0
movq 0xcc5d(%rip), %rdi      # 0x10f40
movslq 0xcc5e(%rip), %rax      # 0x10f48
leaq 0x4(,%rax,4), %rsi
callq 0x3150
movq %rax, 0xcc42(%rip)      # 0x10f40
testq %rax, %rax
je 0x4329
movslq 0xcc3e(%rip), %rcx      # 0x10f48
movw %bp, (%rax,%rcx,4)
movw %bx, 0x2(%rax,%rcx,4)
leal 0x1(%rcx), %eax
movl %eax, 0xcc2c(%rip)      # 0x10f48
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq 0x7cc8(%rip), %rax      # 0xbff8
movq (%rax), %rbx
movq 0x7dd6(%rip), %r14      # 0xc110
movslq 0xcc07(%rip), %r15      # 0x10f48
leaq 0x4(,%r15,4), %r12
incq %r15
callq 0x3060
movl (%rax), %ebp
movl %ebp, %edi
callq 0x31d0
movq %rax, (%rsp)
leaq 0x23ba(%rip), %rsi      # 0x671f
movq %rbx, %rdi
movq %r14, %rdx
movl %r15d, %ecx
movq %r12, %r8
movl %ebp, %r9d
xorl %eax, %eax
callq 0x3120
pushq $0x1
popq %rdi
callq 0x31b0
nop
// File: /workspace/github_c_makefile_star2_O2/AK6DN[P]dec-utilities-for-pdp/d8tape/dasm.c
// Function: ea
int
ea (int addr, int opcode, int *indirect, int *curpage)
{
    int     eff_addr;
    int     c;
    int     i;

    if (opcode >= 06000) {          // IOTs and OPRs don't have an EA
        return (-1);
    }

    i = opcode & 00400;
    c = opcode & 00200;
    eff_addr = c ? (addr & 07600) + (opcode & 00177) : opcode & 00177;
    if (indirect) {
        *indirect = i;
    }
    if (curpage) {
        *curpage = c;
    }
    return (eff_addr);
}

// Assembly:
cmpl $0xbff, %esi            # imm = 0xBFF
jle 0x532f
pushq $-0x1
popq %rax
retq
movl %edi, %eax
movsbl %sil, %edi
andl %edi, %eax
movl %esi, %edi
andl $0x7f, %edi
andl $0xf80, %eax            # imm = 0xF80
testq %rdx, %rdx
je 0x5353
movl %esi, %r8d
andl $0x100, %r8d            # imm = 0x100
movl %r8d, (%rdx)
orl %edi, %eax
testq %rcx, %rcx
je 0x5362
andl $0x80, %esi
movl %esi, (%rcx)
retq
// File: /workspace/github_c_makefile_star2_O2/AK6DN[P]dec-utilities-for-pdp/d8tape/dasm.c
// Function: fetch_iot
int
fetch_iot (int code, char *dis, char *com)
{
    int     i;

    for (i = 0; i < sizeof (iots) / sizeof (iots [0]); i++) {
        if (code == iots [i].code) {
            if (dis) {
                strcpy (dis, iots [i].mnemonic);
            }
            if (com) {
                strncpy (com, iots [i].comment, COMLEN - 1);
            }
            return (1);
        }
    }
    if (dis) {
        sprintf (dis, "%04o", code);
    }
    if (com) {
        sprintf (com, "unknown IOT");
    }
    return (0);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movl %edi, %edx
xorl %eax, %eax
leaq 0x6da8(%rip), %r14      # 0xc120
leaq 0x20(%rax), %r15
cmpq $0xe00, %r15            # imm = 0xE00
je 0x53bd
cmpl %edx, (%rax,%r14)
movq %r15, %rax
jne 0x5378
testq %rsi, %rsi
je 0x53a3
movq -0x10(%r15,%r14), %rax
movq %rsi, %rdi
movq %rax, %rsi
callq 0x3080
pushq $0x1
popq %rbp
testq %rbx, %rbx
je 0x53f1
movq -0x8(%r15,%r14), %rsi
pushq $0x24
popq %rdx
movq %rbx, %rdi
callq 0x3070
jmp 0x53f1
testq %rsi, %rsi
je 0x53d6
leaq 0x4590(%rip), %rax      # 0x9959
movq %rsi, %rdi
movq %rax, %rsi
xorl %eax, %eax
callq 0x31a0
xorl %ebp, %ebp
testq %rbx, %rbx
je 0x53f1
movabsq $0x206e776f6e6b6e75, %rax # imm = 0x206E776F6E6B6E75
movq %rax, (%rbx)
movl $0x544f49, 0x8(%rbx)    # imm = 0x544F49
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/AK6DN[P]dec-utilities-for-pdp/d8tape/dasm.c
// Function: pad
static void
pad (char *buf, int loc, int pos)
{
    for (; *buf; buf++) {
        if (*buf == '\t') {
            if ((loc & 3) == 0) {
                loc += 4;
            } else {
                loc += 4 - (loc & ~3);
            }
        } else {
            loc++;
        }
    }

    loc = pos / 4 - loc / 4;
    while (loc--) {
        *buf++ = '\t';
    }
    *buf = 0;
}

// Assembly:
movl %edx, %ecx
movl %esi, %eax
movzbl (%rdi), %edx
cmpl $0x9, %edx
je 0x5412
testl %edx, %edx
je 0x5428
incl %eax
jmp 0x5423
movl %eax, %edx
andl $0x3, %edx
je 0x5420
orl $0x4, %edx
movl %edx, %eax
jmp 0x5423
addl $0x4, %eax
incq %rdi
jmp 0x5402
shrl $0x2, %ecx
pushq $-0x4
popq %rsi
cltd
idivl %esi
addl %ecx, %eax
negl %eax
xorl %ecx, %ecx
movl %eax, %edx
addl %ecx, %edx
je 0x5446
movb $0x9, (%rdi,%rcx)
incq %rcx
jmp 0x5437
movb $0x0, (%rdi,%rcx)
retq
// File: /workspace/github_c_makefile_star2_O2/AK6DN[P]dec-utilities-for-pdp/d8tape/dasm.c
// Function: disassemble
void
disassemble (void)
{
    int     snum;

    header ();
    for (snum = 0; snum < nsegments; snum++) {
        printf ("\n*%04o\n", segments [snum].saddr);
        disassemble_range (segments [snum].saddr, segments [snum].saddr + segments [snum].nwords);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
leaq 0x10(%rsp), %rbx
movq %rbx, %rdi
callq 0x3130
movq %rbx, %rdi
callq 0x3050
movq %rax, %r13
xorl %eax, %eax
leaq 0x7ac6(%rip), %r15      # 0xcf40
leaq 0x9abf(%rip), %rcx      # 0xef40
xorl %ebp, %ebp
xorl %ebx, %ebx
xorl %r14d, %r14d
cmpq $0x1000, %rax           # imm = 0x1000
je 0x54ac
cmpw $0x0, (%r15,%rax,2)
js 0x54a7
incl %ebp
testb $0x1, (%rcx,%rax,2)
jne 0x54a5
incl %r14d
jmp 0x54a7
incl %ebx
incq %rax
jmp 0x5488
leaq 0xba9d(%rip), %r12      # 0x10f50
movq (%r12), %rsi
leaq 0x44c4(%rip), %rdi      # 0x9982
xorl %eax, %eax
callq 0x30c0
leaq 0x47aa(%rip), %rdi      # 0x9c76
callq 0x3090
leaq 0x4199(%rip), %rdi      # 0x9671
callq 0x3090
movq (%r12), %rsi
leaq 0x44c9(%rip), %rdi      # 0x99b1
xorl %eax, %eax
callq 0x30c0
movl $0x76c, %esi            # imm = 0x76C
addl 0x14(%r13), %esi
movl 0x10(%r13), %edx
incl %edx
movl 0xc(%r13), %ecx
movl 0x8(%r13), %r8d
movl (%r13), %eax
movl 0x4(%r13), %r9d
movl %eax, (%rsp)
leaq 0x44b8(%rip), %rdi      # 0x99d0
xorl %eax, %eax
callq 0x30c0
leaq 0x79da(%rip), %rax      # 0xcf00
movq (%rax), %rsi
leaq 0x44cb(%rip), %rdi      # 0x99fb
xorl %eax, %eax
callq 0x30c0
leaq 0x455f(%rip), %rdi      # 0x9a9d
callq 0x3090
leaq 0x4127(%rip), %r12      # 0x9671
movq %r12, %rdi
callq 0x3090
leaq 0x4586(%rip), %rdi      # 0x9adf
callq 0x3090
leaq 0x458b(%rip), %rdi      # 0x9af0
callq 0x3090
leaq 0x45b5(%rip), %rdi      # 0x9b26
callq 0x3090
leaq 0x45cc(%rip), %rdi      # 0x9b49
callq 0x3090
leaq 0x45e8(%rip), %rdi      # 0x9b71
callq 0x3090
leaq 0x4606(%rip), %rdi      # 0x9b9b
callq 0x3090
leaq 0x4626(%rip), %rdi      # 0x9bc7
callq 0x3090
movq %r12, %rdi
callq 0x3090
leaq 0x462a(%rip), %rdi      # 0x9bdf
callq 0x3090
leaq 0x4627(%rip), %rdi      # 0x9be8
callq 0x3090
leaq 0x463d(%rip), %rdi      # 0x9c0a
callq 0x3090
leaq 0x4656(%rip), %rdi      # 0x9c2f
callq 0x3090
movq %r12, %rdi
callq 0x3090
leaq 0x4430(%rip), %rdi      # 0x9a1d
movl %ebp, %esi
movl %r14d, %edx
movl %ebx, %ecx
xorl %eax, %eax
callq 0x30c0
leaq 0x4674(%rip), %rdi      # 0x9c76
callq 0x3090
leaq 0xb932(%rip), %r13      # 0x10f40
leaq 0x433c(%rip), %rbx      # 0x9951
xorl %ebp, %ebp
leaq 0xb92a(%rip), %rax      # 0x10f48
movslq (%rax), %rax
cmpq %rax, %rbp
jge 0x5666
movq (%r13), %rax
movzwl (%rax,%rbp,4), %esi
movq %rbx, %rdi
xorl %eax, %eax
callq 0x30c0
movq (%r13), %rax
movzwl (%rax,%rbp,4), %r14d
movzwl 0x2(%rax,%rbp,4), %r12d
addq %r14, %r12
cmpq %r12, %r14
jae 0x5661
movzwl (%r15,%r14,2), %esi
movl %r14d, %edi
callq 0x4384
incq %r14
jmp 0x564a
incq %rbp
jmp 0x5617
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/ohkimur[P]the-c-programming-language-2nd-edition-solutions/chapter_1/exercise_1_19/reverse.c
// Function: main
int main(void)
{
  int len;
  char line[MAXLINE];

  while ((len = get_line(line, MAXLINE)) > 0)
  {
    reverse(line);
    printf("%s", line);
  }

  return 0;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x3e8, %rsp            # imm = 0x3E8
movq %rsp, %rbx
leaq 0xea4(%rip), %r14       # 0x2004
movq %rbx, %rdi
movl $0x3e8, %esi            # imm = 0x3E8
callq 0x1195
testl %eax, %eax
jle 0x1188
movq %rbx, %rdi
callq 0x1207
movq %r14, %rdi
movq %rbx, %rsi
xorl %eax, %eax
callq 0x1030
jmp 0x1160
xorl %eax, %eax
addq $0x3e8, %rsp            # imm = 0x3E8
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/ohkimur[P]the-c-programming-language-2nd-edition-solutions/chapter_1/exercise_1_19/reverse.c
// Function: get_line
int get_line(char line[], int max_line_len)
{
  int c, i;

  i = 0;
  while (i < max_line_len - 1 && (c = getchar()) != EOF && c != '\n')
  {
    line[i] = c;
    ++i;
  }

  // flush out input stream if exceeding max_line_len limit
  while (i >= max_line_len - 1 && (c = getchar()) != '\n')
    ;

  if (c == '\n')
  {
    line[i] = '\n';
    ++i;
  }

  line[i] = '\0';

  return i;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
decl %esi
movslq %esi, %r15
xorl %r12d, %r12d
testl %r15d, %r15d
movl $0x0, %r14d
cmovgl %r15d, %r14d
cmpq %r12, %r14
je 0x11d7
callq 0x1040
movl %eax, %ebp
cmpl $-0x1, %eax
je 0x11d4
cmpl $0xa, %ebp
je 0x11d4
movb %bpl, (%rbx,%r12)
incq %r12
jmp 0x11b5
movl %r12d, %r14d
cmpq %r15, %r12
jl 0x11e8
callq 0x1040
cmpl $0xa, %eax
jne 0x11d7
jmp 0x11ed
cmpl $0xa, %ebp
jne 0x11f7
movl %r14d, %eax
movb $0xa, (%rbx,%rax)
incl %r14d
movslq %r14d, %rax
movb $0x0, (%rbx,%rax)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/lh3[P]minimap/bseq.c
// Function: bseq_open
bseq_file_t *bseq_open(const char *fn)
{
	bseq_file_t *fp;
	gzFile f;
	f = fn && strcmp(fn, "-")? gzopen(fn, "r") : gzdopen(fileno(stdin), "r");
	if (f == 0) return 0;
	fp = (bseq_file_t*)calloc(1, sizeof(bseq_file_t));
	fp->fp = f;
	fp->ks = kseq_init(fp->fp);
	return fp;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x3162
cmpb $0x2d, (%rdi)
jne 0x3154
cmpb $0x0, 0x1(%rdi)
je 0x3162
leaq 0x55cd(%rip), %rsi      # 0x8728
callq 0x2230
jmp 0x317f
movq 0x7e5f(%rip), %rax      # 0xafc8
movq (%rax), %rdi
callq 0x21a0
leaq 0x55b0(%rip), %rsi      # 0x8728
movl %eax, %edi
callq 0x20a0
movq %rax, %rbx
testq %rax, %rax
je 0x31dd
pushq $0x1
popq %r15
pushq $0x18
popq %rsi
movq %r15, %rdi
callq 0x2150
movq %rax, %r14
movq %rbx, 0x8(%rax)
pushq $0x50
popq %rsi
movq %r15, %rdi
callq 0x2150
movq %rax, %r12
pushq $0x20
popq %rsi
movq %r15, %rdi
callq 0x2150
movq %rax, %r15
movq %rbx, 0x10(%rax)
movl $0x10000, 0x8(%rax)     # imm = 0x10000
movl $0x4000, %edi           # imm = 0x4000
callq 0x21e0
movq %rax, 0x18(%r15)
movq %r15, 0x48(%r12)
movq %r12, 0x10(%r14)
jmp 0x31e0
xorl %r14d, %r14d
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/lh3[P]minimap/index.c
// Function: mm_idx_init
mm_idx_t *mm_idx_init(int w, int k, int b)
{
	mm_idx_t *mi;
	if (k*2 < b) b = k * 2;
	if (w < 1) w = 1;
	mi = (mm_idx_t*)calloc(1, sizeof(mm_idx_t));
	mi->w = w, mi->k = k, mi->b = b;
	mi->max_occ = UINT32_MAX;
	mi->B = (mm_idx_bucket_t*)calloc(1<<b, sizeof(mm_idx_bucket_t));
	return mi;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %esi, %ebx
movl %edi, %ebp
leal (%rbx,%rbx), %r14d
cmpl %edx, %r14d
cmovgel %edx, %r14d
cmpl $0x2, %edi
pushq $0x1
popq %r13
cmovll %r13d, %ebp
pushq $0x1
popq %rdi
pushq $0x30
popq %r15
movq %r15, %rsi
callq 0x2150
movq %rax, %r12
movl %ebp, 0x4(%rax)
movl %ebx, 0x8(%rax)
movl %r14d, (%rax)
orl $-0x1, 0x18(%rax)
movl %r14d, %ecx
shll %cl, %r13d
movslq %r13d, %rdi
movq %r15, %rsi
callq 0x2150
movq %rax, 0x10(%r12)
movq %r12, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/lh3[P]minimap/index.c
// Function: mm_idx_destroy
void mm_idx_destroy(mm_idx_t *mi)
{
	int i;
	if (mi == 0) return;
	for (i = 0; i < 1<<mi->b; ++i) {
		free(mi->B[i].p);
		free(mi->B[i].a.a);
		kh_destroy(idx, (idxhash_t*)mi->B[i].h);
	}
	free(mi->B);
	if (mi->name)
		for (i = 0; i < mi->n; ++i) free(mi->name[i]);
	free(mi->len); free(mi->name);
	free(mi);
}

// Assembly:
testq %rdi, %rdi
je 0x3917
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
xorl %r15d, %r15d
pushq $0x1
popq %rbp
xorl %r12d, %r12d
movb (%rbx), %cl
movl %ebp, %eax
shll %cl, %eax
cltq
movq 0x10(%rbx), %rdi
cmpq %rax, %r12
jge 0x38cc
movq 0x20(%rdi,%r15), %rdi
callq 0x2040
movq 0x10(%rbx), %rax
movq 0x10(%rax,%r15), %rdi
callq 0x2040
movq 0x10(%rbx), %rax
movq 0x28(%rax,%r15), %r14
testq %r14, %r14
je 0x38c3
movq 0x18(%r14), %rdi
callq 0x2040
movq 0x10(%r14), %rdi
callq 0x2040
movq 0x20(%r14), %rdi
callq 0x2040
movq %r14, %rdi
callq 0x2040
incq %r12
addq $0x30, %r15
jmp 0x3869
callq 0x2040
cmpq $0x0, 0x28(%rbx)
je 0x38f5
xorl %r14d, %r14d
movl 0xc(%rbx), %eax
cmpq %rax, %r14
jae 0x38f5
movq 0x28(%rbx), %rax
movq (%rax,%r14,8), %rdi
callq 0x2040
incq %r14
jmp 0x38db
movq 0x20(%rbx), %rdi
callq 0x2040
movq 0x28(%rbx), %rdi
callq 0x2040
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x2040
retq
// File: /workspace/github_c_makefile_star2_O2/lh3[P]minimap/index.c
// Function: mm_idx_get
const uint64_t *mm_idx_get(const mm_idx_t *mi, uint64_t minier, int *n)
{
	int mask = (1<<mi->b) - 1;
	khint_t k;
	mm_idx_bucket_t *b = &mi->B[minier&mask];
	idxhash_t *h = (idxhash_t*)b->h;
	*n = 0;
	if (h == 0) return 0;
	k = kh_get(idx, h, minier>>mi->b<<1);
	if (k == kh_end(h)) return 0;
	if (kh_key(h, k)&1) {
		*n = 1;
		return &kh_val(h, k);
	} else {
		*n = (uint32_t)kh_val(h, k);
		return &b->p[kh_val(h, k)>>32];
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movb (%rdi), %cl
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
shll %cl, %eax
notl %eax
movq 0x10(%rdi), %r8
movl %esi, %ecx
andl %eax, %ecx
imulq $0x30, %rcx, %r10
movq 0x28(%r8,%r10), %r9
andl $0x0, (%rdx)
xorl %eax, %eax
testq %r9, %r9
je 0x39fb
movl (%r9), %r11d
testl %r11d, %r11d
je 0x39bd
movb (%rdi), %cl
shrq %cl, %rsi
movq %rsi, %rdi
btrq $0x3f, %rdi
leal -0x1(%r11), %ebx
andl %ebx, %esi
movq 0x10(%r9), %r14
movl $0x1, %ebp
movl %esi, %eax
movl %eax, %ecx
shrl $0x4, %ecx
movl (%r14,%rcx,4), %r15d
leal (%rax,%rax), %ecx
andl $0x1e, %ecx
movl %r15d, %r12d
shrl %cl, %r12d
testb $0x2, %r12b
jne 0x39b2
testb $0x1, %r12b
jne 0x39a6
movq 0x18(%r9), %r12
movl %eax, %r13d
movq (%r12,%r13,8), %r12
shrq %r12
cmpq %rdi, %r12
je 0x39b2
addl %ebp, %eax
andl %ebx, %eax
incl %ebp
cmpl %esi, %eax
jne 0x3972
jmp 0x39c2
shrl %cl, %r15d
testb $0x3, %r15b
cmovnel %r11d, %eax
cmpl %r11d, %eax
jne 0x39c6
xorl %eax, %eax
jmp 0x39fb
movq 0x18(%r9), %rcx
movl %eax, %eax
testb $0x1, (%rcx,%rax,8)
jne 0x39ed
addq %r10, %r8
movq 0x20(%r9), %rcx
movq (%rcx,%rax,8), %rax
movl %eax, (%rdx)
shrq $0x1d, %rax
andq $-0x8, %rax
addq 0x20(%r8), %rax
jmp 0x39fb
movl $0x1, (%rdx)
shlq $0x3, %rax
addq 0x20(%r9), %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/lh3[P]minimap/index.c
// Function: mm_idx_cal_max_occ
uint32_t mm_idx_cal_max_occ(const mm_idx_t *mi, float f)
{
	int i;
	size_t n = 0;
	uint32_t thres;
	khint_t *a, k;
	if (f <= 0.) return UINT32_MAX;
	for (i = 0; i < 1<<mi->b; ++i)
		if (mi->B[i].h) n += kh_size((idxhash_t*)mi->B[i].h);
	a = (uint32_t*)malloc(n * 4);
	for (i = n = 0; i < 1<<mi->b; ++i) {
		idxhash_t *h = (idxhash_t*)mi->B[i].h;
		if (h == 0) continue;
		for (k = 0; k < kh_end(h); ++k) {
			if (!kh_exist(h, k)) continue;
			a[n++] = kh_key(h, k)&1? 1 : (uint32_t)kh_val(h, k);
		}
	}
	thres = ks_ksmall_uint32_t(n, a, (uint32_t)((1. - f) * n)) + 1;
	free(a);
	return thres;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
xorps %xmm1, %xmm1
ucomiss %xmm0, %xmm1
jae 0x3a5a
movq %rdi, %rbx
movb (%rdi), %cl
pushq $0x1
popq %rbp
movl %ebp, %r15d
shll %cl, %r15d
cvtss2sd %xmm0, %xmm0
movsd %xmm0, (%rsp)
xorl %eax, %eax
testl %r15d, %r15d
cmovlel %eax, %r15d
imulq $0x30, %r15, %rcx
xorl %edi, %edi
cmpq %rax, %rcx
je 0x3a62
movq 0x10(%rbx), %rdx
movq 0x28(%rdx,%rax), %rdx
testq %rdx, %rdx
je 0x3a54
movl 0x4(%rdx), %edx
addq %rdx, %rdi
addq $0x30, %rax
jmp 0x3a3b
pushq $-0x1
popq %rbx
jmp 0x3b2b
shlq $0x2, %rdi
callq 0x21e0
movq %rax, %r14
xorl %eax, %eax
xorl %edi, %edi
cmpq %r15, %rax
je 0x3ade
movq 0x10(%rbx), %rcx
imulq $0x30, %rax, %rdx
movq 0x28(%rcx,%rdx), %rdx
testq %rdx, %rdx
je 0x3ad9
movl (%rdx), %esi
xorl %r8d, %r8d
xorl %r9d, %r9d
cmpq %rsi, %r9
jae 0x3ad9
movq 0x10(%rdx), %rcx
movq %r9, %r10
shrq $0x4, %r10
movl (%rcx,%r10,4), %r10d
movl %r8d, %ecx
andb $0x1e, %cl
shrl %cl, %r10d
testb $0x3, %r10b
jne 0x3ad0
movq 0x18(%rdx), %rcx
testb $0x1, (%rcx,%r9,8)
movl %ebp, %ecx
jne 0x3ac9
movq 0x20(%rdx), %rcx
movl (%rcx,%r9,8), %ecx
movl %ecx, (%r14,%rdi,4)
incq %rdi
incq %r9
addl $0x2, %r8d
jmp 0x3a91
incq %rax
jmp 0x3a72
movsd 0x4c4a(%rip), %xmm0     # 0x8730
movq %rdi, %xmm1
punpckldq 0x4c5d(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x4c65(%rip), %xmm1     # 0x8760
subsd (%rsp), %xmm0
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
addsd %xmm1, %xmm2
mulsd %xmm0, %xmm2
cvttsd2si %xmm2, %rax
movl %eax, %edx
movq %r14, %rsi
callq 0x3074
movl %eax, %ebx
incl %ebx
movq %r14, %rdi
callq 0x2040
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/lh3[P]minimap/index.c
// Function: mm_idx_gen
mm_idx_t *mm_idx_gen(bseq_file_t *fp, int w, int k, int b, int tbatch_size, int n_threads, uint64_t ibatch_size, int keep_name)
{
	pipeline_t pl;
	memset(&pl, 0, sizeof(pipeline_t));
	pl.tbatch_size = tbatch_size;
	pl.keep_name = keep_name;
	pl.ibatch_size = ibatch_size;
	pl.fp = fp;
	if (pl.fp == 0) return 0;
	pl.mi = mm_idx_init(w, k, b);

	kt_pipeline(n_threads < 3? n_threads : 3, worker_pipeline, &pl, 3);
	if (mm_verbose >= 3)
		fprintf(stderr, "[M::%s::%.3f*%.2f] collected minimizers\n", __func__, realtime() - mm_realtime0, cputime() / (realtime() - mm_realtime0));

	mm_idx_post(pl.mi, n_threads);
	if (mm_verbose >= 3)
		fprintf(stderr, "[M::%s::%.3f*%.2f] sorted minimizers\n", __func__, realtime() - mm_realtime0, cputime() / (realtime() - mm_realtime0));

	return pl.mi;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %r9d, %ebx
movq 0x70(%rsp), %rax
movl 0x78(%rsp), %r9d
xorpd %xmm0, %xmm0
movapd %xmm0, 0x10(%rsp)
movapd %xmm0, 0x20(%rsp)
andq $0x0, 0x30(%rsp)
movl %r8d, 0x10(%rsp)
movl %r9d, 0x18(%rsp)
movq %rax, 0x28(%rsp)
movq %rdi, 0x20(%rsp)
testq %rdi, %rdi
je 0x3bf4
movl %esi, %edi
movl %edx, %esi
movl %ecx, %edx
callq 0x37e0
leaq 0x10(%rsp), %rdx
movq %rax, 0x28(%rdx)
cmpl $0x3, %ebx
pushq $0x3
popq %rcx
movl %ecx, %edi
cmovll %ebx, %edi
leaq 0x10e(%rip), %rsi       # 0x3cc6
callq 0x62a9
leaq 0x75cc(%rip), %r15      # 0xb190
cmpl $0x3, (%r15)
jge 0x3c02
movq 0x38(%rsp), %rdx
movb (%rdx), %cl
pushq $0x1
popq %rax
shll %cl, %eax
movslq %eax, %rcx
leaq 0xca4(%rip), %rsi       # 0x4884
movl %ebx, %edi
callq 0x611c
cmpl $0x3, (%r15)
jge 0x3c65
movq 0x38(%rsp), %rax
jmp 0x3bf6
xorl %eax, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq 0x73ef(%rip), %rax      # 0xaff8
movq (%rax), %r14
callq 0x2d37
leaq 0x7690(%rip), %r12      # 0xb2a8
subsd (%r12), %xmm0
movsd %xmm0, 0x8(%rsp)
callq 0x2cf4
movsd %xmm0, (%rsp)
callq 0x2d37
subsd (%r12), %xmm0
movsd (%rsp), %xmm1
divsd %xmm0, %xmm1
leaq 0x4b37(%rip), %rsi      # 0x8780
leaq 0x4b59(%rip), %rdx      # 0x87a9
movq %r14, %rdi
movsd 0x8(%rsp), %xmm0
movb $0x2, %al
callq 0x2180
jmp 0x3bca
movq 0x738c(%rip), %rax      # 0xaff8
movq (%rax), %rbx
callq 0x2d37
leaq 0x762d(%rip), %r14      # 0xb2a8
subsd (%r14), %xmm0
movsd %xmm0, 0x8(%rsp)
callq 0x2cf4
movsd %xmm0, (%rsp)
callq 0x2d37
subsd (%r14), %xmm0
movsd (%rsp), %xmm1
divsd %xmm0, %xmm1
leaq 0x4b0a(%rip), %rsi      # 0x87b4
leaq 0x4af8(%rip), %rdx      # 0x87a9
movq %rbx, %rdi
movsd 0x8(%rsp), %xmm0
movb $0x2, %al
callq 0x2180
jmp 0x3bed
// File: /workspace/github_c_makefile_star2_O2/lh3[P]minimap/index.c
// Function: mm_idx_build
mm_idx_t *mm_idx_build(const char *fn, int w, int k, int n_threads) // a simpler interface
{
	bseq_file_t *fp;
	mm_idx_t *mi;
	fp = bseq_open(fn);
	if (fp == 0) return 0;
	mi = mm_idx_gen(fp, w, k, MM_IDX_DEF_B, 1<<18, n_threads, UINT64_MAX, 1);
	mm_idx_set_max_occ(mi, 0.001);
	bseq_close(fp);
	return mi;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %ecx, %ebp
movl %edx, %r14d
movl %esi, %r15d
callq 0x313c
testq %rax, %rax
je 0x4034
movq %rax, %rbx
pushq $0xe
popq %rcx
movq %rax, %rdi
movl %r15d, %esi
movl %r14d, %edx
movl $0x40000, %r8d          # imm = 0x40000
movl %ebp, %r9d
pushq $0x1
pushq $-0x1
callq 0x3b4b
popq %rcx
popq %rdx
movq %rax, %r14
movss 0x3fe2(%rip), %xmm0     # 0x8004
movq %rax, %rdi
callq 0x3b38
movq %rbx, %rdi
callq 0x31ef
jmp 0x4037
xorl %r14d, %r14d
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/lh3[P]minimap/map.c
// Function: mm_tbuf_destroy
void mm_tbuf_destroy(mm_tbuf_t *b)
{
	if (b == 0) return;
	free(b->mini.a); free(b->coef.a); free(b->intv.a); free(b->reg.a); free(b->reg2mini.a); free(b->rep_aux.a);
	free(b->a); free(b->b); free(b->p);
	sdust_buf_destroy(b->sdb);
	free(b);
}

// Assembly:
testq %rdi, %rdi
je 0x4b4f
pushq %rbx
movq %rdi, %rbx
movq 0x10(%rdi), %rdi
callq 0x2040
movq 0x28(%rbx), %rdi
callq 0x2040
movq 0x40(%rbx), %rdi
callq 0x2040
movq 0xb0(%rbx), %rdi
callq 0x2040
movq 0x58(%rbx), %rdi
callq 0x2040
movq 0x70(%rbx), %rdi
callq 0x2040
movq 0x88(%rbx), %rdi
callq 0x2040
movq 0x90(%rbx), %rdi
callq 0x2040
movq 0x98(%rbx), %rdi
callq 0x2040
movq 0x78(%rbx), %rdi
callq 0x6b9e
movq %rbx, %rdi
popq %rbx
jmp 0x2040
retq
// File: /workspace/github_c_makefile_star2_O2/lh3[P]minimap/map.c
// Function: mm_map_file
int mm_map_file(const mm_idx_t *idx, const char *fn, const mm_mapopt_t *opt, int n_threads, int tbatch_size)
{
	pipeline_t pl;
	memset(&pl, 0, sizeof(pipeline_t));
	pl.fp = bseq_open(fn);
	if (pl.fp == 0) return -1;
	pl.opt = opt, pl.mi = idx;
	pl.n_threads = n_threads, pl.batch_size = tbatch_size;
	kt_pipeline(n_threads == 1? 1 : 2, worker_pipeline, &pl, 3);
	bseq_close(pl.fp);
	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x30, %rsp
movl %r8d, %ebp
movl %ecx, %ebx
movq %rdx, %r14
movq %rdi, %r15
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq %rsi, %rdi
callq 0x313c
movq %rax, 0x18(%rsp)
testq %rax, %rax
je 0x5ce0
movq %rsp, %r12
movq %r14, 0x10(%r12)
movq %r15, 0x20(%r12)
movl %ebx, 0x8(%r12)
movl %ebp, (%r12)
xorl %edi, %edi
cmpl $0x1, %ebx
setne %dil
incl %edi
leaq 0x29(%rip), %rsi        # 0x5cf0
pushq $0x3
popq %rcx
movq %r12, %rdx
callq 0x62a9
movq 0x18(%r12), %rdi
callq 0x31ef
xorl %eax, %eax
jmp 0x5ce3
pushq $-0x1
popq %rax
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/lh3[P]minimap/map.c
// Function: push_intv
static inline void push_intv(mm128_v *intv, int start, int end, float merge_frac)
{
	mm128_t *p;
	if (intv->n > 0) { // test overlap
		int last_start, last_end, min;
		p = &intv->a[intv->n-1];
		last_start = p->y, last_end = p->x + last_start;
		min = end - start < last_end - last_start? end - start : last_end - last_start;
		if (last_end > start && last_end - start > min * merge_frac) { // large overlap; then merge
			p->x = end - last_start;
			return;
		}
	}
	kv_pushp(mm128_t, *intv, &p); // a new interval
	p->x = end - start, p->y = start;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %edx, %ebx
movl %esi, %ebp
movq %rdi, %r14
movq (%rdi), %rcx
testq %rcx, %rcx
je 0x6024
movq 0x10(%r14), %rax
movq %rcx, %rsi
shlq $0x4, %rsi
movl -0x8(%rax,%rsi), %edx
movl -0x10(%rax,%rsi), %edi
addl %edx, %edi
movl %edi, %r8d
subl %ebp, %r8d
jle 0x6024
movl %ebx, %r9d
subl %ebp, %r9d
subl %edx, %edi
cmpl %edi, %r9d
cmovll %r9d, %edi
cvtsi2ss %r8d, %xmm1
cvtsi2ss %edi, %xmm2
mulss %xmm0, %xmm2
ucomiss %xmm2, %xmm1
jbe 0x6024
addq %rsi, %rax
subl %edx, %ebx
movslq %ebx, %rcx
movq %rcx, -0x10(%rax)
jmp 0x6072
cmpq 0x8(%r14), %rcx
jne 0x6052
leaq (%rcx,%rcx), %rax
testq %rcx, %rcx
pushq $0x2
popq %rsi
cmovneq %rax, %rsi
movq %rsi, 0x8(%r14)
movq 0x10(%r14), %rdi
shlq $0x4, %rsi
callq 0x2200
movq %rax, 0x10(%r14)
movq (%r14), %rcx
jmp 0x6056
movq 0x10(%r14), %rax
leaq 0x1(%rcx), %rdx
movq %rdx, (%r14)
shlq $0x4, %rcx
subl %ebp, %ebx
movslq %ebx, %rdx
movq %rdx, (%rax,%rcx)
movslq %ebp, %rdx
movq %rdx, 0x8(%rax,%rcx)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/lh3[P]minimap/map.c
// Function: worker_for
static void worker_for(void *_data, long i, int tid) // kt_for() callback
{
    step_t *step = (step_t*)_data;
	const mm_reg1_t *regs;
	int n_regs;

	regs = mm_map(step->p->mi, step->seq[i].l_seq, step->seq[i].seq, &n_regs, step->buf[tid], step->p->opt, step->seq[i].name);
	step->n_reg[i] = n_regs;
	if (n_regs > 0) {
		step->reg[i] = (mm_reg1_t*)malloc(n_regs * sizeof(mm_reg1_t));
		memcpy(step->reg[i], regs, n_regs * sizeof(mm_reg1_t));
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq (%rdi), %rax
movq 0x10(%rdi), %rcx
movq 0x10(%rax), %r9
movq 0x20(%rax), %rdi
imulq $0x18, %rsi, %r10
movl (%rcx,%r10), %esi
movq 0x10(%rcx,%r10), %rax
movq 0x28(%r14), %r8
movslq %edx, %rdx
movq (%r8,%rdx,8), %r8
movq 0x8(%rcx,%r10), %rcx
movq %rcx, (%rsp)
leaq 0x14(%rsp), %r12
movq %rax, %rdx
movq %r12, %rcx
callq 0x50d7
movq %rax, %r15
movslq (%r12), %rax
movq 0x18(%r14), %rcx
movl %eax, (%rcx,%rbx,4)
testq %rax, %rax
jle 0x610d
imulq $0x1c, %rax, %r12
movq %r12, %rdi
callq 0x21e0
movq 0x20(%r14), %rcx
movq %rax, (%rcx,%rbx,8)
movq 0x20(%r14), %rax
movq (%rax,%rbx,8), %rdi
movq %r15, %rsi
movq %r12, %rdx
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x2190
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O2/lh3[P]minimap/sdust.c
// Function: sdust_buf_init
sdust_buf_t *sdust_buf_init(void)
{
	sdust_buf_t *buf;
	buf = (sdust_buf_t*)calloc(1, sizeof(sdust_buf_t));
	buf->w = kdq_init(int);
	return buf;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
pushq $0x1
popq %rbx
pushq $0x38
popq %rsi
movq %rbx, %rdi
callq 0x2150
movq %rax, %r14
pushq $0x20
popq %rsi
movq %rbx, %rdi
callq 0x2150
movq %rax, %rbx
movabsq $0x800000000000000, %rax # imm = 0x800000000000000
movq %rax, (%rbx)
movq $0x3, 0x10(%rbx)
pushq $0x10
popq %rdi
callq 0x21e0
movq %rax, 0x18(%rbx)
movq %rbx, (%r14)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/lh3[P]minimap/sdust.c
// Function: sdust_buf_destroy
void sdust_buf_destroy(sdust_buf_t *buf)
{
	if (buf == 0) return;
	kdq_destroy(int, buf->w);
	free(buf->P.a); free(buf->res.a);
	free(buf);
}

// Assembly:
testq %rdi, %rdi
je 0x6be4
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %r14
testq %r14, %r14
je 0x6bc3
movq 0x18(%r14), %rdi
callq 0x2040
movq %r14, %rdi
callq 0x2040
movq 0x18(%rbx), %rdi
callq 0x2040
movq 0x30(%rbx), %rdi
callq 0x2040
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x2040
retq
// File: /workspace/github_c_makefile_star2_O2/lh3[P]minimap/sdust.c
// Function: save_masked_regions
static inline void save_masked_regions(uint64_v *res, perf_intv_v *P, int start)
{
	int i, saved = 0;
	perf_intv_t *p;
	if (P->n == 0 || P->a[P->n - 1].start >= start) return;
	p = &P->a[P->n - 1];
	if (res->n) {
		int s = res->a[res->n - 1]>>32, f = (uint32_t)res->a[res->n - 1];
		if (p->start <= f) // if overlapping with or adjacent to the previous interval
			saved = 1, res->a[res->n - 1] = (uint64_t)s<<32 | (f > p->finish? f : p->finish);
	}
	if (!saved) kv_push(uint64_t, *res, (uint64_t)p->start<<32|p->finish);
	for (i = P->n - 1; i >= 0 && P->a[i].start < start; --i); // remove perfect intervals that have falled out of the window
	P->n = i + 1;
}

// Assembly:
movq (%rsi), %rax
testq %rax, %rax
je 0x73c4
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %edx, %ebp
movq %rsi, %rbx
movq 0x10(%rsi), %r12
shlq $0x4, %rax
movl -0x10(%r12,%rax), %edx
cmpl %ebp, %edx
jge 0x73bc
movq %rdi, %r14
addq %rax, %r12
movabsq $-0x100000000, %r15     # imm = 0xFFFFFFFF00000000
movq (%rdi), %rcx
testq %rcx, %rcx
je 0x731b
movq 0x10(%r14), %rax
movq -0x8(%rax,%rcx,8), %rsi
cmpl %esi, %edx
jle 0x736b
cmpq 0x8(%r14), %rcx
jne 0x734e
leaq (%rcx,%rcx), %rax
testq %rcx, %rcx
pushq $0x2
popq %rsi
cmovneq %rax, %rsi
movq %rsi, 0x8(%r14)
movq 0x10(%r14), %rdi
shlq $0x3, %rsi
callq 0x2200
movq %rax, 0x10(%r14)
movl -0x10(%r12), %edx
movq (%r14), %rcx
jmp 0x7352
movq 0x10(%r14), %rax
shlq $0x20, %rdx
movslq -0xc(%r12), %rsi
orq %rdx, %rsi
leaq 0x1(%rcx), %rdx
movq %rdx, (%r14)
movq %rsi, (%rax,%rcx,8)
jmp 0x7386
movq %rsi, %rdx
andq %r15, %rdx
movl -0xc(%r12), %edi
cmpl %esi, %edi
cmovlel %esi, %edi
movslq %edi, %rsi
orq %rdx, %rsi
movq %rsi, -0x8(%rax,%rcx,8)
movq (%rbx), %rdx
movl %edx, %eax
shlq $0x20, %rdx
decq %rax
movq %rdx, %rcx
testl %eax, %eax
js 0x73b5
movq 0x10(%rbx), %rsi
movl %eax, %edi
andl $0x7fffffff, %edi       # imm = 0x7FFFFFFF
shlq $0x4, %rdi
leaq (%rcx,%r15), %rdx
decq %rax
cmpl %ebp, (%rsi,%rdi)
jl 0x7392
sarq $0x20, %rcx
movq %rcx, (%rbx)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/lh3[P]minimap/sdust.c
// Function: sdust
uint64_t *sdust(const uint8_t *seq, int l_seq, int T, int W, int *n)
{
	uint64_t *ret;
	sdust_buf_t *buf;
	buf = sdust_buf_init();
	ret = (uint64_t*)sdust_core(seq, l_seq, T, W, n, buf);
	buf->res.a = 0;
	sdust_buf_destroy(buf);
	return ret;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %rbx
movl %ecx, %ebp
movl %edx, %r14d
movl %esi, %r15d
movq %rdi, %r12
callq 0x6b4c
movq %rax, %r13
movq %r12, %rdi
movl %r15d, %esi
movl %r14d, %edx
movl %ebp, %ecx
movq %rbx, %r8
movq %rax, %r9
callq 0x6be5
movq %rax, %rbx
andq $0x0, 0x30(%r13)
movq %r13, %rdi
callq 0x6b9e
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/sszllzss[P]webSocket_Libevent_ThreadPool/websocket_common.c
// Function: webSocket_serverLinkToClient(int, char*, unsigned int)
int webSocket_serverLinkToClient(int fd, char *recvBuf, unsigned int bufLen)
{
    char *p;
    int ret;
    char recvShakeKey[512], respondPackage[1024];
    if(bufLen == 0)
        return -1;

    if((p = strstr(recvBuf, "Sec-WebSocket-Key: ")) == NULL)
        return -1;
    p += strlen("Sec-WebSocket-Key: ");
    //
    memset(recvShakeKey, 0, sizeof(recvShakeKey));
    sscanf(p, "%s", recvShakeKey);      // 取得握手key
    ret = strlen(recvShakeKey);
    if(ret < 1)
        return -1;
    //
    memset(respondPackage, 0, sizeof(respondPackage));
    webSocket_buildHttpRespond((unsigned char*)recvShakeKey,(unsigned int)ret, ( char *)respondPackage);
    //
    return send(fd, respondPackage, strlen(respondPackage), MSG_NOSIGNAL);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x600, %rsp            # imm = 0x600
pushq $-0x1
popq %r14
testl %edx, %edx
je 0x316f
movl %edi, %ebx
leaq 0x21f4(%rip), %rax      # 0x52c9
movq %rsi, %rdi
movq %rax, %rsi
callq 0x2070
testq %rax, %rax
je 0x316f
movq %rax, %r15
addq $0x13, %r15
leaq -0x220(%rbp), %r12
movl $0x200, %edx            # imm = 0x200
movq %r12, %rdi
xorl %esi, %esi
callq 0x2110
leaq 0x22bb(%rip), %rsi      # 0x53c8
movq %r15, %rdi
movq %r12, %rdx
xorl %eax, %eax
callq 0x21f0
movq %r12, %rdi
callq 0x20f0
movq %rax, %r15
testl %r15d, %r15d
jle 0x316f
leaq -0x620(%rbp), %r14
movl $0x400, %edx            # imm = 0x400
movq %r14, %rdi
xorl %esi, %esi
callq 0x2110
leaq -0x220(%rbp), %rdi
movl %r15d, %esi
movq %r14, %rdx
callq 0x28ef
movq %r14, %rdi
callq 0x20f0
movl %ebx, %edi
movq %r14, %rsi
movq %rax, %rdx
movl $0x4000, %ecx           # imm = 0x4000
callq 0x2100
movq %rax, %r14
movl %r14d, %eax
addq $0x600, %rsp            # imm = 0x600
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/sszllzss[P]webSocket_Libevent_ThreadPool/websocket_common.c
// Function: webSocket_send(int, unsigned char*, unsigned int, bool, Websocket_CommunicationType)
int webSocket_send(int fd, unsigned char *data, unsigned int dataLen, bool mod, Websocket_CommunicationType type)
{
    unsigned char *webSocketPackage;
    unsigned int retLen, ret;
    /* unsigned int i; */

    /* printf("webSocket_send : %d\r\n", dataLen); */
    //---------- websocket数据打包 ----------
    webSocketPackage = (unsigned char *)calloc(1, sizeof(char)*(dataLen + 128));  memset(webSocketPackage, 0, (dataLen + 128));
    retLen = webSocket_enPackage(data, dataLen, webSocketPackage, (dataLen + 128), mod, type);
    
       /* printf("webSocket_send : %d\r\n" , retLen); */
       /* for(i = 0; i < retLen; i ++)  printf("%.2X ", webSocketPackage[i]); */
       /* printf("\r\n"); */
    ret = send(fd, webSocketPackage, retLen, MSG_NOSIGNAL);
    free(webSocketPackage);
    return ret;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r8d, -0x2c(%rbp)
movl %ecx, %r14d
movl %edx, %r15d
movq %rsi, %r12
movl %edi, -0x30(%rbp)
leal 0x80(%r15), %r13d
pushq $0x1
popq %rdi
movq %r13, %rsi
callq 0x2150
movq %rax, %rbx
movq %r12, %rdi
movl %r15d, %esi
movq %rax, %rdx
movl %r13d, %ecx
movl %r14d, %r8d
movl -0x2c(%rbp), %r9d
callq 0x299a
movl %eax, %edx
movl -0x30(%rbp), %edi
movq %rbx, %rsi
movl $0x4000, %ecx           # imm = 0x4000
callq 0x2100
movq %rax, %r14
movq %rbx, %rdi
callq 0x2220
movl %r14d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/sszllzss[P]webSocket_Libevent_ThreadPool/ev_client_main.c
// Function: bev_read_cd(bufferevent*, void*)
static void bev_read_cd(struct bufferevent *bev, void *ctx)
{
    ctx = (void*)ctx;
    char buf[1024];
    int ret = ev_webSocket_recv(bev, (unsigned char*)buf, sizeof(buf));
    if(ret>0)
    {
        printf("client recv : len/%d %s\r\n", ret, buf);
        if(strstr(buf, "Hello") != NULL)
            ret = ev_webSocket_send(bev, (unsigned char *)"I am Client_Test", strlen("I am Client_Test"), true, WCT_TXTDATA);
        else if(strstr(buf, "Server_Test") != NULL)
            ret = ev_webSocket_send(bev, (unsigned char *)"I am carefree !", strlen("I am carefree !"), true, WCT_TXTDATA);
    }
    else
    {
        De_printf("断开连接!\r\n");
        event_base_loopbreak(bufferevent_get_base(bev));
        bufferevent_free(bev);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x400, %rsp            # imm = 0x400
movq %rdi, %rbx
leaq -0x410(%rbp), %rsi
movl $0x400, %edx            # imm = 0x400
callq 0x39eb
testl %eax, %eax
jle 0x3dff
leaq 0x17ca(%rip), %rdi      # 0x5597
leaq -0x410(%rbp), %r14
movl %eax, %esi
movq %r14, %rdx
xorl %eax, %eax
callq 0x2040
leaq 0x17ca(%rip), %rsi      # 0x55b1
movq %r14, %rdi
callq 0x2070
testq %rax, %rax
je 0x3e50
leaq 0x17bc(%rip), %rsi      # 0x55b7
pushq $0x10
jmp 0x3e71
leaq 0x13a5(%rip), %rdi      # 0x51ab
leaq 0x17d7(%rip), %rsi      # 0x55e4
leaq 0x172c(%rip), %rdx      # 0x5540
pushq $0x29
popq %rcx
xorl %eax, %eax
callq 0x2040
leaq 0x1850(%rip), %rdi      # 0x5675
callq 0x22b0
leaq 0x1851(%rip), %rdi      # 0x5682
callq 0x22b0
movq %rbx, %rdi
callq 0x2310
movq %rax, %rdi
callq 0x2250
movq %rbx, %rdi
callq 0x20a0
jmp 0x3e81
leaq 0x1771(%rip), %rsi      # 0x55c8
leaq -0x410(%rbp), %rdi
callq 0x2070
testq %rax, %rax
je 0x3e81
leaq 0x1765(%rip), %rsi      # 0x55d4
pushq $0xf
popq %rdx
pushq $0x1
popq %rcx
pushq $-0x13
popq %r8
movq %rbx, %rdi
callq 0x3971
addq $0x400, %rsp            # imm = 0x400
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/sszllzss[P]webSocket_Libevent_ThreadPool/ev_client_main.c
// Function: bev_event_cd(bufferevent*, short, void*)
static void bev_event_cd(struct bufferevent *bev,short events, void *ctx)
{
    ctx = (void*)ctx;
    if(events & BEV_EVENT_EOF)
        De_printf("断开连接!\r\n");
    else if(events & BEV_EVENT_ERROR)
    {
        De_printf("Got an error on the connection:%s\r\n", strerror(errno));
    }
    event_base_loopbreak(bufferevent_get_base(bev));
    bufferevent_free(bev);

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
testb $0x10, %sil
jne 0x3ee1
movzwl %si, %eax
testb $0x20, %al
je 0x3f18
leaq 0x1301(%rip), %rdi      # 0x51ab
leaq 0x173f(%rip), %rsi      # 0x55f0
leaq 0x1688(%rip), %rdx      # 0x5540
pushq $0x35
popq %rcx
xorl %eax, %eax
callq 0x2040
callq 0x2030
movl (%rax), %edi
callq 0x20d0
leaq 0x1728(%rip), %rdi      # 0x55fd
movq %rax, %rsi
xorl %eax, %eax
callq 0x2040
jmp 0x3f0c
leaq 0x12c3(%rip), %rdi      # 0x51ab
leaq 0x1701(%rip), %rsi      # 0x55f0
leaq 0x164a(%rip), %rdx      # 0x5540
pushq $0x32
popq %rcx
xorl %eax, %eax
callq 0x2040
leaq 0x176e(%rip), %rdi      # 0x5675
callq 0x22b0
leaq 0x176f(%rip), %rdi      # 0x5682
callq 0x22b0
movq %rbx, %rdi
callq 0x2310
movq %rax, %rdi
callq 0x2250
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x20a0
// File: /workspace/github_c_makefile_star2_O2/sszllzss[P]webSocket_Libevent_ThreadPool/ev_client_main.c
// Function: sig_cb(int, short, void*)
static void sig_cb(evutil_socket_t sig, short events,void *ctx)
{
    int ret;
    if(sig==SIGALRM)
    {
        struct bufferevent *bev=(struct bufferevent *)ctx;
        ret = ev_webSocket_send(bev,(unsigned char *) "#%^#@@@DTG%^&&+_)+(*^%!HHI", strlen("#%^#@@@DTG%^&&+_)+(*^%!HHI"), true, WCT_TXTDATA);
        if(ret < 0)
        {
            
            De_printf("断开连接!\r\n");
            event_base_loopbreak(bufferevent_get_base(bev));
            bufferevent_free(bev);
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
cmpl $0xe, %edi
jne 0x3f61
movq %rdx, %rbx
leaq 0x16d6(%rip), %rsi      # 0x5621
pushq $0x1a
popq %rdx
pushq $0x1
popq %rcx
pushq $-0x13
popq %r8
movq %rbx, %rdi
callq 0x3971
testl %eax, %eax
js 0x3f68
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
leaq 0x123c(%rip), %rdi      # 0x51ab
leaq 0x16c6(%rip), %rsi      # 0x563c
leaq 0x15c3(%rip), %rdx      # 0x5540
pushq $0x45
popq %rcx
xorl %eax, %eax
callq 0x2040
leaq 0x16e7(%rip), %rdi      # 0x5675
callq 0x22b0
leaq 0x16e8(%rip), %rdi      # 0x5682
callq 0x22b0
movq %rbx, %rdi
callq 0x2310
movq %rax, %rdi
callq 0x2250
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x20a0
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O2/antonblanchard[P]will-it-scale/tests/tlb_flush2.c
// Function: testcase
void testcase(unsigned long *iteration, unsigned long nr)
{
	unsigned long pgsize = getpagesize();
	unsigned long i;

	while (1) {
		char *addr = mmap(NULL, MEMORYSIZE, PROT_READ|PROT_WRITE,
						MAP_ANONYMOUS | MAP_PRIVATE, -1, 0);
		for (i = 0; i < MEMORYSIZE; i += pgsize) {
			*(addr + i) = 1;
			madvise(addr + i, pgsize, MADV_DONTNEED);
			assert(*(addr + i) == 0);
			(*iteration)++;
		}
		munmap(addr, MEMORYSIZE);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x1270
movslq %eax, %r14
pushq $-0x1
popq %r12
pushq $0x4
popq %r13
movl $0x100000, %esi         # imm = 0x100000
xorl %edi, %edi
pushq $0x3
popq %rdx
pushq $0x22
popq %rcx
movl %r12d, %r8d
xorl %r9d, %r9d
callq 0x10f0
movq %rax, %rbp
xorl %r15d, %r15d
cmpq $0xfffff, %r15          # imm = 0xFFFFF
ja 0x1c3a
leaq (%r15,%rbp), %rdi
movb $0x1, (%rbp,%r15)
movq %r14, %rsi
movl %r13d, %edx
callq 0x1210
cmpb $0x0, (%rbp,%r15)
jne 0x1c49
incq (%rbx)
addq %r14, %r15
jmp 0x1c0c
movl $0x100000, %esi         # imm = 0x100000
movq %rbp, %rdi
callq 0x11f0
jmp 0x1bee
leaq 0x636(%rip), %rdi       # 0x2286
leaq 0x640(%rip), %rsi       # 0x2297
leaq 0x64c(%rip), %rcx       # 0x22aa
pushq $0x1b
popq %rdx
callq 0x1130
// File: /workspace/github_c_makefile_star2_O2/erikdubbelboer[P]discnt/src/adlist.c
// Function: listDup
list *listDup(list *orig)
{
    list *copy;
    listIter *iter;
    listNode *node;

    if ((copy = listCreate()) == NULL)
        return NULL;
    copy->dup = orig->dup;
    copy->free = orig->free;
    copy->match = orig->match;
    iter = listGetIterator(orig, AL_START_HEAD);
    while((node = listNext(iter)) != NULL) {
        void *value;

        if (copy->dup) {
            value = copy->dup(node->value);
            if (value == NULL) {
                listRelease(copy);
                listReleaseIterator(iter);
                return NULL;
            }
        } else
            value = node->value;
        if (listAddNodeTail(copy, value) == NULL) {
            listRelease(copy);
            listReleaseIterator(iter);
            return NULL;
        }
    }
    listReleaseIterator(iter);
    return copy;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
callq 0x12aec
testq %rax, %rax
je 0x12db9
movq %rax, %rbx
movups 0x10(%r14), %xmm0
movups %xmm0, 0x10(%rax)
movq 0x20(%r14), %rax
movq %rax, 0x20(%rbx)
movq %r14, %rdi
xorl %esi, %esi
callq 0x12cd8
movq %rax, %r14
movq %r14, %rdi
callq 0x12d26
testq %rax, %rax
je 0x12daf
movq 0x10(%rbx), %rcx
movq 0x10(%rax), %rax
testq %rcx, %rcx
je 0x12d95
movq %rax, %rdi
callq *%rcx
testq %rax, %rax
je 0x12da5
movq %rbx, %rdi
movq %rax, %rsi
callq 0x12bac
testq %rax, %rax
jne 0x12d71
movq %rbx, %rdi
callq 0x12b0a
xorl %ebx, %ebx
movq %r14, %rdi
callq 0x1ac81
jmp 0x12dbb
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/erikdubbelboer[P]discnt/src/adlist.c
// Function: listSearchKey
listNode *listSearchKey(list *list, void *key)
{
    listIter *iter;
    listNode *node;

    iter = listGetIterator(list, AL_START_HEAD);
    while((node = listNext(iter)) != NULL) {
        if (list->match) {
            if (list->match(node->value, key)) {
                listReleaseIterator(iter);
                return node;
            }
        } else {
            if (key == node->value) {
                listReleaseIterator(iter);
                return node;
            }
        }
    }
    listReleaseIterator(iter);
    return NULL;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
xorl %esi, %esi
callq 0x12cd8
movq %rax, %r15
movq %r15, %rdi
callq 0x12d26
movq %rax, %r12
testq %rax, %rax
je 0x12e0c
movq 0x20(%r14), %rax
movq 0x10(%r12), %rdi
testq %rax, %rax
je 0x12e07
movq %rbx, %rsi
callq *%rax
testl %eax, %eax
je 0x12dde
jmp 0x12e0c
cmpq %rbx, %rdi
jne 0x12dde
movq %r15, %rdi
callq 0x1ac81
movq %r12, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/erikdubbelboer[P]discnt/src/ae.c
// Function: aeDeleteTimeEvent
int aeDeleteTimeEvent(aeEventLoop *eventLoop, long long id)
{
    aeTimeEvent *te, *prev = NULL;

    te = eventLoop->timeEventHead;
    while(te) {
        if (te->id == id) {
            if (prev == NULL)
                eventLoop->timeEventHead = te->next;
            else
                prev->next = te->next;
            if (te->finalizerProc)
                te->finalizerProc(eventLoop, te->clientData);
            zfree(te);
            return AE_OK;
        }
        prev = te;
        te = te->next;
    }
    return AE_ERR; /* NO event with the specified ID found */
}

// Assembly:
pushq %rbx
leaq 0x28(%rdi), %rcx
xorl %edx, %edx
pushq $-0x1
popq %rax
movq %rcx, %r8
movq (%r8), %rbx
testq %rbx, %rbx
je 0x1334b
cmpq %rsi, (%rbx)
je 0x13320
leaq 0x30(%rbx), %r8
movq %rbx, %rdx
jmp 0x1330a
leaq 0x30(%rdx), %rax
testq %rdx, %rdx
cmoveq %rcx, %rax
movq 0x30(%rbx), %rcx
movq %rcx, (%rax)
movq 0x20(%rbx), %rax
testq %rax, %rax
je 0x13341
movq 0x28(%rbx), %rsi
callq *%rax
movq %rbx, %rdi
callq 0x1ac81
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/erikdubbelboer[P]discnt/src/anet.c
// Function: anetSetReuseAddr
static int anetSetReuseAddr(char *err, int fd) {
    int yes = 1;
    /* Make sure connection-intensive things like the discnt benckmark
     * will be able to close/open sockets a zillion of times */
    if (setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &yes, sizeof(yes)) == -1) {
        anetSetError(err, "setsockopt SO_REUSEADDR: %s", strerror(errno));
        return ANET_ERR;
    }
    return ANET_OK;
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movl %esi, %eax
movq %rdi, %rbx
leaq 0xc(%rsp), %rcx
movl $0x1, (%rcx)
pushq $0x1
popq %rsi
pushq $0x2
popq %rdx
pushq $0x4
popq %r8
movl %eax, %edi
callq 0x121b0
movl %eax, %ecx
xorl %eax, %eax
cmpl $-0x1, %ecx
jne 0x14582
callq 0x120d0
movl (%rax), %edi
callq 0x128e0
leaq 0x37bc8(%rip), %rsi     # 0x4c13a
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x13794
pushq $-0x1
popq %rax
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/erikdubbelboer[P]discnt/src/dict.c
// Function: dictReplace
int dictReplace(dict *d, void *key, void *val)
{
    dictEntry *entry, *existing, auxentry;

    /* Try to add the element. If the key
     * does not exists dictAdd will suceed. */
    entry = dictAddRaw(d,key,&existing);
    if (entry) {
        dictSetVal(d, entry, val);
        return 1;
    }

    /* Set the new value and free the old one. Note that it is important
     * to do that in this order, as the value may just be exactly the same
     * as the previous one. In this context, think to reference counting,
     * you want to increment (set), and then decrement (free), and not the
     * reverse. */
    auxentry = *existing;
    dictSetVal(d, existing, val);
    dictFreeVal(d, &auxentry);
    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rdi, %rbx
movq %rsp, %rdx
callq 0x14926
testq %rax, %rax
je 0x14ae8
movq %rax, %r15
movq (%rbx), %rax
movq 0x10(%rax), %rax
testq %rax, %rax
je 0x14b0f
movq 0x8(%rbx), %rdi
movq %r14, %rsi
callq *%rax
movq %rax, 0x8(%r15)
jmp 0x14b13
movq (%rsp), %rcx
movq 0x8(%rcx), %r15
movq (%rbx), %rax
movq 0x10(%rax), %rax
testq %rax, %rax
je 0x14b18
movq 0x8(%rbx), %rdi
movq %r14, %rsi
callq *%rax
movq (%rsp), %rcx
movq %rax, 0x8(%rcx)
jmp 0x14b1c
movq %r14, 0x8(%r15)
pushq $0x1
popq %rbp
jmp 0x14b33
movq %r14, 0x8(%rcx)
movq (%rbx), %rax
movq 0x28(%rax), %rax
xorl %ebp, %ebp
testq %rax, %rax
je 0x14b33
movq 0x8(%rbx), %rdi
movq %r15, %rsi
callq *%rax
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq