LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/mjosaarinen[P]brutus/crypto_aead/lunarkeyakv2/reference32bits/displayIntermediateValues.c
// Function: displayStateAs8bitLanes
void displayStateAs8bitLanes(int level, const char *text, void *statePointer)
{
    unsigned int i;
    unsigned char *state = statePointer;

    if ((intermediateValueFile) && (level <= displayLevel)) {
        fprintf(intermediateValueFile, "%s:\n", text);
        for(i=0; i<25; i++) {
            fprintf(intermediateValueFile, "%02X ", state[i]);
            if ((i%5) == 4)
                fprintf(intermediateValueFile, "\n");
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edi, %eax
movq 0x6f44(%rip), %r15      # 0x15ff0
movq (%r15), %rdi
testq %rdi, %rdi
je 0xf125
movq 0x6f3d(%rip), %rcx      # 0x15ff8
cmpl %eax, (%rcx)
jl 0xf125
movq %rdx, %rbx
movq %rsi, %rdx
leaq 0x1ebe(%rip), %rsi      # 0x10f8a
xorl %eax, %eax
callq 0x56e0
movl $0x4, %ebp
leaq 0x1eb0(%rip), %r14      # 0x10f8f
xorl %r13d, %r13d
movl %r13d, %eax
movl $0xcccccccd, %ecx       # imm = 0xCCCCCCCD
imulq %rcx, %rax
shrq $0x22, %rax
leal (%rax,%rax,4), %r12d
movq (%r15), %rdi
movzbl (%rbx,%r13), %edx
movq %r14, %rsi
xorl %eax, %eax
callq 0x56e0
addl %ebp, %r12d
jne 0xf11a
movq (%r15), %rsi
movl $0xa, %edi
callq 0x5360
incq %r13
decl %ebp
cmpq $0x19, %r13
jne 0xf0e2
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/mjosaarinen[P]brutus/crypto_aead/lunarkeyakv2/reference32bits/displayIntermediateValues.c
// Function: displayRoundNumber
void displayRoundNumber(int level, unsigned int i)
{
    if ((intermediateValueFile) && (level <= displayLevel)) {
        fprintf(intermediateValueFile, "\n");
        fprintf(intermediateValueFile, "--- Round %d ---\n", i);
        fprintf(intermediateValueFile, "\n");
    }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movq 0x6e74(%rip), %r14      # 0x15ff0
movq (%r14), %rsi
testq %rsi, %rsi
je 0xf1c0
movq 0x6e6d(%rip), %rax      # 0x15ff8
cmpl %edi, (%rax)
jl 0xf1c0
movl $0xa, %edi
callq 0x5360
movq (%r14), %rdi
leaq 0x1dfc(%rip), %rsi      # 0x10f9f
movl %ebx, %edx
xorl %eax, %eax
callq 0x56e0
movq (%r14), %rsi
movl $0xa, %edi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x5360
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/mjosaarinen[P]brutus/crypto_aead/lunarkeyakv2/reference32bits/displayIntermediateValues.c
// Function: displayText
void displayText(int level, const char *text)
{
    if ((intermediateValueFile) && (level <= displayLevel)) {
        fprintf(intermediateValueFile, "%s", text);
        fprintf(intermediateValueFile, "\n");
        fprintf(intermediateValueFile, "\n");
    }
}

// Assembly:
pushq %rbx
movq 0x6e20(%rip), %rbx      # 0x15ff0
movq (%rbx), %rax
testq %rax, %rax
je 0xf209
movq 0x6e19(%rip), %rcx      # 0x15ff8
cmpl %edi, (%rcx)
jl 0xf209
movq %rsi, %rdi
movq %rax, %rsi
callq 0x5480
movq (%rbx), %rsi
movl $0xa, %edi
callq 0x5360
movq (%rbx), %rsi
movl $0xa, %edi
popq %rbx
jmp 0x5360
popq %rbx
retq
nop
// File: /workspace/github_c_makefile_star2_O1/USArmyResearchLab[P]ARL_OpenSHMEM/src/autogen/shmem_int_atomic_add.c
// Function: shmem_int_atomic_add
void shmem_int_atomic_add( int* ptr, int val, int pe)
{
	int* remote_ptr = (int*)shmem_ptr((void*)ptr, pe );
	long* x = (long*)shmem_ptr((void*)&__shmem.lock_atomic_int, pe);
	__set_spin_lock(x);
	*remote_ptr = __sum(*remote_ptr,val);
	__clear_spin_lock(x);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %edx, %ebx
movl %esi, %ebp
movl %edx, %esi
callq 0x1c3c
movq %rax, %r14
leaq 0x325f(%rip), %rdi      # 0x61f0
addq $0x10, %rdi
movl %ebx, %esi
callq 0x1c3c
movq %rax, %rbx
movq %rax, %rdi
callq 0x3233
addl %ebp, (%r14)
movq %rbx, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x3224
nop
// File: /workspace/github_c_makefile_star2_O1/ohkimur[P]the-c-programming-language-2nd-edition-solutions/chapter_1/exercise_1_12/copy_io_nl.c
// Function: main
int main()
{
  int character;
  int previous_character = EOF;

  while ((character = getchar()) != EOF) {
    if (character == ' ' || character == '\t' || character == '\n') {
      if (previous_character != ' ' && previous_character != '\t' && previous_character != '\n') {
        putchar('\n');
      }
    }
    else {
      putchar(character);
    }

    previous_character = character;
  }

  return 0;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movabsq $0x100000600, %r14      # imm = 0x100000600
callq 0x1040
movl %eax, %ebx
leal -0x9(%rbx), %eax
cmpl $0x2, %eax
jb 0x117c
cmpl $0x20, %ebx
je 0x117c
movl %ebx, %edi
cmpl $-0x1, %ebx
jne 0x1190
jmp 0x1199
movl $0xa, %edi
cmpl $0x20, %ebp
ja 0x1190
movl %ebp, %eax
btq %rax, %r14
movl %ebx, %ebp
jb 0x115f
callq 0x1030
movl %ebx, %ebp
jmp 0x115f
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/AK6DN[P]dec-utilities-for-pdp/d8tape/main.c
// Function: writerim
static  void
writerim (void)
{
    char    fname [PATH_MAX];
    char    leader [LEADER_LENGTH];
    FILE    *fp;
    int     i;

    // create the filename and open it
    sprintf (fname, "%s.rim", tapename);
    if ((fp = fopen (fname, "w")) == NULL) {
        fprintf (stderr, "%s:  unable to open RIM output file %s for w, errno %d (%s); creation of output file skipped\n", progname, fname, errno, strerror (errno));
        return;
    }

    // write leader
    memset (leader, 0x80, sizeof (leader));
    fwrite (leader, 1, sizeof (leader), fp);

    for (i = 0; i < CORE_SIZE; i++) {
        if (core [i] != -1) {
            fprintf (fp, "%c%c%c%c", 0x40 + ((i & 07700) >> 6), i & 00077, (core [i] & 07700) >> 6, core [i] & 00077);
        }
    }

    // write trailer
    fwrite (leader, 1, sizeof (leader), fp);

    fclose (fp);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x1018, %rsp           # imm = 0x1018
movq 0xcdd4(%rip), %rdx      # 0x10f50
leaq 0x27d5(%rip), %rsi      # 0x6958
leaq 0x10(%rsp), %rbx
movq %rbx, %rdi
xorl %eax, %eax
callq 0x31a0
leaq 0x2e9d(%rip), %rsi      # 0x7036
movq %rbx, %rdi
callq 0x3170
testq %rax, %rax
je 0x4250
movq %rax, %rbx
movaps 0x1e7c(%rip), %xmm0     # 0x6030
movq %rsp, %rdi
movaps %xmm0, (%rdi)
movl $0x1, %esi
movl $0x10, %edx
movq %rax, %rcx
callq 0x31c0
leaq 0x8d6d(%rip), %r15      # 0xcf40
leaq 0x27e3(%rip), %r14      # 0x69bd
xorl %r12d, %r12d
movzwl (%r15), %r9d
cmpl $0xffff, %r9d           # imm = 0xFFFF
je 0x4215
movl %r12d, %edx
shrl $0x6, %edx
orl $0x40, %edx
movl %r12d, %ecx
andl $0x3f, %ecx
movl %r9d, %r8d
shrl $0x6, %r8d
andl $0x3f, %r8d
andl $0x3f, %r9d
movq %rbx, %rdi
movq %r14, %rsi
xorl %eax, %eax
callq 0x3120
incq %r12
addq $0x2, %r15
cmpq $0x1000, %r12           # imm = 0x1000
jne 0x41dd
movq %rsp, %rdi
movl $0x1, %esi
movl $0x10, %edx
movq %rbx, %rcx
callq 0x31c0
movq %rbx, %rdi
addq $0x1018, %rsp           # imm = 0x1018
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x30a0
leaq 0x10(%rsp), %rdi
callq 0x3457
addq $0x1018, %rsp           # imm = 0x1018
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/AK6DN[P]dec-utilities-for-pdp/d8tape/main.c
// Function: usageError
static void
usageError ()
{
    fprintf (stderr, "\nUsage:  %s [options] papertapefile [papertapefile...]\n\n", progname);
    fprintf (stderr, "where [options] are optional parameters chosen from:\n");
    fprintf (stderr, "    -b             generate a BIN-formatted output (adds \".bin\")\n");
    fprintf (stderr, "    -d             suppress disassembly (useful for conversion-only mode)\n");
    fprintf (stderr, "    -r             generate a RIM-formatted output (adds \".rim\")\n");
    fprintf (stderr, "    -v             verbose operation\n");
    fprintf (stderr, "\n");
    fprintf (stderr, "Dumps the RIM- or BIN-formatted input file(s) specified on\n");
    fprintf (stderr, "the command line.  If the \"-r\" and/or \"-b\" options are\n");
    fprintf (stderr, "present, also creates a RIM and/or BIN version of the output\n");
    fprintf (stderr, "by adding \".rim\" and/or \".bin\" (respectively) to the input\n");
    fprintf (stderr, "filename (can be used to \"clean up\" BIN and RIM images by\n");
    fprintf (stderr, "deleting excess data before and after the leader/trailer).\n");
    fprintf (stderr, "\n");
    fprintf (stderr, "Disassembly conforms to PAL III input requirements\n");
    fprintf (stderr, "\n");
    exit (EXIT_FAILURE);
}

// Assembly:
pushq %rbx
movq 0x7d87(%rip), %rbx      # 0xbff8
movq (%rbx), %rdi
movq 0x7e95(%rip), %rdx      # 0xc110
leaq 0x1e9a(%rip), %rsi      # 0x611c
xorl %eax, %eax
callq 0x3120
movq (%rbx), %rcx
leaq 0x1ec2(%rip), %rdi      # 0x6155
movl $0x35, %esi
movl $0x1, %edx
callq 0x31c0
movq (%rbx), %rcx
leaq 0x1edf(%rip), %rdi      # 0x618b
movl $0x41, %esi
movl $0x1, %edx
callq 0x31c0
movq (%rbx), %rcx
leaq 0x1f08(%rip), %rdi      # 0x61cd
movl $0x4a, %esi
movl $0x1, %edx
callq 0x31c0
movq (%rbx), %rcx
leaq 0x1f3a(%rip), %rdi      # 0x6218
movl $0x41, %esi
movl $0x1, %edx
callq 0x31c0
movq (%rbx), %rcx
leaq 0x1f63(%rip), %rdi      # 0x625a
movl $0x25, %esi
movl $0x1, %edx
callq 0x31c0
movq (%rbx), %rsi
movl $0xa, %edi
callq 0x30f0
movq (%rbx), %rcx
leaq 0x1f63(%rip), %rdi      # 0x6280
movl $0x3b, %esi
movl $0x1, %edx
callq 0x31c0
movq (%rbx), %rcx
leaq 0x1f86(%rip), %rdi      # 0x62bc
movl $0x37, %esi
movl $0x1, %edx
callq 0x31c0
movq (%rbx), %rcx
leaq 0x1fa5(%rip), %rdi      # 0x62f4
movl $0x3d, %esi
movl $0x1, %edx
callq 0x31c0
movq (%rbx), %rcx
leaq 0x1fca(%rip), %rdi      # 0x6332
movl $0x3b, %esi
movl $0x1, %edx
callq 0x31c0
movq (%rbx), %rcx
leaq 0x1fed(%rip), %rdi      # 0x636e
movl $0x3a, %esi
movl $0x1, %edx
callq 0x31c0
movq (%rbx), %rcx
leaq 0x200f(%rip), %rdi      # 0x63a9
movl $0x3b, %esi
movl $0x1, %edx
callq 0x31c0
movq (%rbx), %rsi
movl $0xa, %edi
callq 0x30f0
movq (%rbx), %rcx
leaq 0x2025(%rip), %rdi      # 0x63e5
movl $0x33, %esi
movl $0x1, %edx
callq 0x31c0
movq (%rbx), %rsi
movl $0xa, %edi
callq 0x30f0
movl $0x1, %edi
callq 0x31b0
// File: /workspace/github_c_makefile_star2_O1/AK6DN[P]dec-utilities-for-pdp/d8tape/main.c
// Function: seg_more
static void
seg_more (int len)
{
    if (optv > 3) {
        printf ("seg_more (+%d (0%04o))\n", len, len);
    }

    if (nsegments) {
        segments [nsegments - 1].nwords += len;
    } else {
        fprintf (stderr, "%s:  seg_more called with no segments in existence\n", progname);
        exit (EXIT_FAILURE);
    }
}

// Assembly:
pushq %rax
cmpl $0x4, 0x8b42(%rip)      # 0xcf30
jl 0x4408
leaq 0x22bf(%rip), %rdi      # 0x66b6
movl $0x1, %esi
movl $0x1, %edx
xorl %eax, %eax
callq 0x30c0
movslq 0xcb39(%rip), %rax      # 0x10f48
testq %rax, %rax
je 0x4422
movq 0xcb25(%rip), %rcx      # 0x10f40
incw -0x2(%rcx,%rax,4)
popq %rax
retq
callq 0x34a8
// File: /workspace/github_c_makefile_star2_O1/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 %rbx
pushq %rax
movl %esi, %ebx
movl %edi, %ebp
cmpl $0x4, 0x8afb(%rip)      # 0xcf30
jl 0x444c
movzwl %bp, %esi
leaq 0x22c1(%rip), %rdi      # 0x6702
movl %ebx, %edx
movl %ebx, %ecx
xorl %eax, %eax
callq 0x30c0
movq 0xcaed(%rip), %rdi      # 0x10f40
movslq 0xcaee(%rip), %rax      # 0x10f48
leaq 0x4(,%rax,4), %rsi
callq 0x3150
movq %rax, 0xcad2(%rip)      # 0x10f40
testq %rax, %rax
je 0x4493
movslq 0xcace(%rip), %rcx      # 0x10f48
movw %bp, (%rax,%rcx,4)
movw %bx, 0x2(%rax,%rcx,4)
leal 0x1(%rcx), %eax
movl %eax, 0xcabc(%rip)      # 0x10f48
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
callq 0x34d0
// File: /workspace/github_c_makefile_star2_O1/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
movl $0x18, %r14d
leaq 0x6c36(%rip), %r15      # 0xc120
cmpl %edx, -0x18(%r14,%r15)
je 0x5534
addq $0x20, %r14
cmpq $0xdf8, %r14            # imm = 0xDF8
jne 0x54ea
testq %rsi, %rsi
je 0x5517
leaq 0x444f(%rip), %rax      # 0x9959
movq %rsi, %rdi
movq %rax, %rsi
xorl %eax, %eax
callq 0x31a0
xorl %ebp, %ebp
testq %rbx, %rbx
je 0x5564
movabsq $0x206e776f6e6b6e75, %rax # imm = 0x206E776F6E6B6E75
movq %rax, (%rbx)
movl $0x544f49, 0x8(%rbx)    # imm = 0x544F49
jmp 0x5564
testq %rsi, %rsi
je 0x5549
movq -0x8(%r14,%r15), %rax
movq %rsi, %rdi
movq %rax, %rsi
callq 0x3080
movl $0x1, %ebp
testq %rbx, %rbx
je 0x5564
movq (%r14,%r15), %rsi
movl $0x24, %edx
movq %rbx, %rdi
callq 0x3070
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x1(%rbx), %rax
movzbl (%rbx), %ecx
cmpl $0x9, %ecx
je 0x558f
testl %ecx, %ecx
je 0x55a8
incl %esi
movq %rax, %rbx
jmp 0x5578
movl %esi, %ecx
andl $0x3, %ecx
je 0x55a0
orl $0x4, %ecx
movq %rax, %rbx
movl %ecx, %esi
jmp 0x5578
addl $0x4, %esi
movq %rax, %rbx
jmp 0x5578
shrl $0x2, %edx
leal 0x3(%rsi), %eax
testl %esi, %esi
cmovnsl %esi, %eax
sarl $0x2, %eax
cmpl %edx, %eax
je 0x55da
negl %eax
leal (%rax,%rdx), %r14d
decl %r14d
leaq 0x1(%r14), %rdx
movq %rbx, %rdi
movl $0x9, %esi
callq 0x30d0
addq %r14, %rbx
incq %rbx
movb $0x0, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x792c(%rip), %r15      # 0xcf40
leaq 0x9925(%rip), %rcx      # 0xef40
xorl %ebp, %ebp
xorl %ebx, %ebx
xorl %r14d, %r14d
cmpw $0x0, (%r15,%rax,2)
js 0x5639
incl %r14d
testb $0x1, (%rcx,%rax,2)
jne 0x5637
incl %ebp
jmp 0x5639
incl %ebx
incq %rax
cmpq $0x1000, %rax           # imm = 0x1000
jne 0x5622
leaq 0xb905(%rip), %r12      # 0x10f50
movq (%r12), %rsi
leaq 0x432c(%rip), %rdi      # 0x9982
xorl %eax, %eax
callq 0x30c0
leaq 0x4612(%rip), %rdi      # 0x9c76
callq 0x3090
leaq 0x4001(%rip), %rdi      # 0x9671
callq 0x3090
movq (%r12), %rsi
leaq 0x4331(%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 0x4320(%rip), %rdi      # 0x99d0
xorl %eax, %eax
callq 0x30c0
leaq 0x7842(%rip), %rax      # 0xcf00
movq (%rax), %rsi
leaq 0x4333(%rip), %rdi      # 0x99fb
xorl %eax, %eax
callq 0x30c0
leaq 0x43c7(%rip), %rdi      # 0x9a9d
callq 0x3090
leaq 0x3f8f(%rip), %r12      # 0x9671
movq %r12, %rdi
callq 0x3090
leaq 0x43ee(%rip), %rdi      # 0x9adf
callq 0x3090
leaq 0x43f3(%rip), %rdi      # 0x9af0
callq 0x3090
leaq 0x441d(%rip), %rdi      # 0x9b26
callq 0x3090
leaq 0x4434(%rip), %rdi      # 0x9b49
callq 0x3090
leaq 0x4450(%rip), %rdi      # 0x9b71
callq 0x3090
leaq 0x446e(%rip), %rdi      # 0x9b9b
callq 0x3090
leaq 0x448e(%rip), %rdi      # 0x9bc7
callq 0x3090
movq %r12, %rdi
callq 0x3090
leaq 0x4492(%rip), %rdi      # 0x9bdf
callq 0x3090
leaq 0x448f(%rip), %rdi      # 0x9be8
callq 0x3090
leaq 0x44a5(%rip), %rdi      # 0x9c0a
callq 0x3090
leaq 0x44be(%rip), %rdi      # 0x9c2f
callq 0x3090
movq %r12, %rdi
callq 0x3090
leaq 0x4298(%rip), %rdi      # 0x9a1d
movl %r14d, %esi
movl %ebp, %edx
movl %ebx, %ecx
xorl %eax, %eax
callq 0x30c0
leaq 0x44dc(%rip), %rdi      # 0x9c76
callq 0x3090
leaq 0xb7a2(%rip), %rax      # 0x10f48
cmpl $0x0, (%rax)
jle 0x5808
leaq 0xb78e(%rip), %r13      # 0x10f40
leaq 0x4198(%rip), %rbx      # 0x9951
xorl %ebp, %ebp
movq (%r13), %rax
movzwl (%rax,%rbp,4), %esi
movq %rbx, %rdi
xorl %eax, %eax
callq 0x30c0
movq (%r13), %rax
movzwl 0x2(%rax,%rbp,4), %r12d
testq %r12, %r12
je 0x57f6
movzwl (%rax,%rbp,4), %r14d
movzwl (%r15,%r14,2), %esi
movl %r14d, %edi
callq 0x4498
incq %r14
decq %r12
jne 0x57e1
incq %rbp
leaq 0xb748(%rip), %rax      # 0x10f48
movslq (%rax), %rax
cmpq %rax, %rbp
jl 0x57bb
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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, %rdi
movl $0x3e8, %esi            # imm = 0x3E8
callq 0x11a4
testl %eax, %eax
jle 0x1197
movq %rsp, %rbx
leaq 0xe93(%rip), %r14       # 0x2004
movq %rbx, %rdi
callq 0x1230
movq %r14, %rdi
movq %rbx, %rsi
xorl %eax, %eax
callq 0x1030
movq %rbx, %rdi
movl $0x3e8, %esi            # imm = 0x3E8
callq 0x11a4
testl %eax, %eax
jg 0x1171
xorl %eax, %eax
addq $0x3e8, %rsp            # imm = 0x3E8
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/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 %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpl $0x2, %esi
setge %r14b
jl 0x11ec
movl %esi, %ebp
decl %ebp
movslq %ebp, %r15
movl %r15d, %r13d
xorl %r12d, %r12d
callq 0x1040
cmpl $-0x1, %eax
je 0x11f0
cmpl $0xa, %eax
je 0x11f0
movb %al, (%rbx,%r12)
incq %r12
cmpq %r15, %r12
setl %r14b
cmpq %r12, %r13
jne 0x11c8
jmp 0x11f3
xorl %ebp, %ebp
jmp 0x11f3
movl %r12d, %ebp
testb $0x1, %r14b
jne 0x120d
xorb $0x1, %r14b
callq 0x1040
cmpl $0xa, %eax
setne %cl
testb %r14b, %cl
jne 0x11fd
cmpl $0xa, %eax
jne 0x121a
movl %ebp, %eax
movb $0xa, (%rbx,%rax)
incl %ebp
movslq %ebp, %rax
movb $0x0, (%rbx,%rax)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/ohkimur[P]the-c-programming-language-2nd-edition-solutions/chapter_1/exercise_1_19/reverse.c
// Function: reverse
void reverse(char line[])
{
  int i_front = 0;
  int i_back = length(line);
  char temp;

  if(line[i_back - 1] == '\n')
  {
    i_back -= 2;
  }
  else
  {
    i_back -= 1;
  }
  
  while (i_back > i_front)
  {
    temp = line[i_front];
    line[i_front] = line[i_back];
    line[i_back] = temp;

    ++i_front;
    --i_back;
  }
}

// Assembly:
movl $0xfffffffd, %eax       # imm = 0xFFFFFFFD
movq %rdi, %rcx
incl %eax
cmpb $0x0, (%rcx)
leaq 0x1(%rcx), %rcx
jne 0x1238
leal 0x1(%rax), %ecx
movslq %ecx, %rcx
cmpb $0xa, (%rdi,%rcx)
cmovel %eax, %ecx
testl %ecx, %ecx
jle 0x127a
movl %ecx, %eax
movl $0x1, %ecx
movb -0x1(%rdi,%rcx), %dl
movb (%rdi,%rax), %sil
movb %sil, -0x1(%rdi,%rcx)
movb %dl, (%rdi,%rax)
decq %rax
leaq 0x1(%rcx), %rdx
cmpq %rcx, %rax
movq %rdx, %rcx
jg 0x125b
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x33ed
movq %rdi, %rbx
leaq 0x5566(%rip), %rsi      # 0x8939
callq 0x2160
testl %eax, %eax
je 0x33ed
leaq 0x5345(%rip), %rsi      # 0x8728
movq %rbx, %rdi
callq 0x2230
jmp 0x340a
movq 0x7bd4(%rip), %rax      # 0xafc8
movq (%rax), %rdi
callq 0x21a0
leaq 0x5325(%rip), %rsi      # 0x8728
movl %eax, %edi
callq 0x20a0
movq %rax, %r14
testq %rax, %rax
je 0x3479
movl $0x1, %edi
movl $0x18, %esi
callq 0x2150
movq %rax, %rbx
movq %r14, 0x8(%rax)
movl $0x1, %edi
movl $0x50, %esi
callq 0x2150
movq %rax, %r15
movl $0x1, %edi
movl $0x20, %esi
callq 0x2150
movq %rax, %r12
movq %r14, 0x10(%rax)
movl 0x8(%rax), %eax
andl $0x3, %eax
orl $0x10000, %eax          # imm = 0x10000
movl %eax, 0x8(%r12)
movl $0x4000, %edi           # imm = 0x4000
callq 0x21e0
movq %rax, 0x18(%r12)
movq %r12, 0x48(%r15)
movq %r15, 0x10(%rbx)
jmp 0x347b
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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 %r12
pushq %rbx
movl %esi, %ebx
movl %edi, %ebp
leal (%rbx,%rbx), %r14d
cmpl %edx, %r14d
cmovgel %edx, %r14d
cmpl $0x2, %edi
movl $0x1, %r12d
cmovll %r12d, %ebp
movl $0x1, %edi
movl $0x30, %esi
callq 0x2150
movq %rax, %r15
movl %ebp, 0x4(%rax)
movl %ebx, 0x8(%rax)
movl %r14d, (%rax)
movl $0xffffffff, 0x18(%rax) # imm = 0xFFFFFFFF
movl %r14d, %ecx
shll %cl, %r12d
movslq %r12d, %rdi
movl $0x30, %esi
callq 0x2150
movq %rax, 0x10(%r15)
movq %r15, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x3c82
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpl $0x1f, (%rdi)
je 0x3c2c
xorl %r15d, %r15d
xorl %r12d, %r12d
movq 0x10(%rbx), %rax
movq 0x20(%rax,%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 0x3c15
movq 0x18(%r14), %rdi
callq 0x2040
movq 0x10(%r14), %rdi
callq 0x2040
movq 0x20(%r14), %rdi
callq 0x2040
movq %r14, %rdi
callq 0x2040
movb (%rbx), %cl
movl $0x1, %eax
shll %cl, %eax
incq %r12
cltq
addq $0x30, %r15
cmpq %rax, %r12
jl 0x3bc8
movq 0x10(%rbx), %rdi
callq 0x2040
cmpq $0x0, 0x28(%rbx)
je 0x3c5d
cmpl $0x0, 0xc(%rbx)
je 0x3c5d
xorl %r14d, %r14d
movq 0x28(%rbx), %rax
movq (%rax,%r14,8), %rdi
callq 0x2040
incq %r14
movl 0xc(%rbx), %eax
cmpq %rax, %r14
jb 0x3c45
movq 0x20(%rbx), %rdi
callq 0x2040
movq 0x28(%rbx), %rdi
callq 0x2040
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x2040
retq
// File: /workspace/github_c_makefile_star2_O1/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
leaq (%rcx,%rcx,2), %r10
shlq $0x4, %r10
movq 0x28(%r8,%r10), %r9
movl $0x0, (%rdx)
xorl %eax, %eax
testq %r9, %r9
je 0x3d70
movl (%r9), %r11d
testl %r11d, %r11d
je 0x3d32
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 0x3d27
testb $0x1, %r12b
jne 0x3d18
movq 0x18(%r9), %r12
movl %eax, %r13d
movq (%r12,%r13,8), %r12
shrq %r12
cmpq %rdi, %r12
je 0x3d27
addl %ebp, %eax
andl %ebx, %eax
incl %ebp
cmpl %esi, %eax
jne 0x3ce4
movl %r11d, %eax
jmp 0x3d32
shrl %cl, %r15d
testb $0x3, %r15b
cmovnel %r11d, %eax
cmpl %r11d, %eax
jne 0x3d3b
xorl %eax, %eax
jmp 0x3d70
movq 0x18(%r9), %rcx
movl %eax, %eax
testb $0x1, (%rcx,%rax,8)
jne 0x3d62
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 0x3d70
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_O1/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
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
xorps %xmm1, %xmm1
ucomiss %xmm0, %xmm1
jae 0x3edd
movq %rdi, %r14
movl (%rdi), %ebp
movl $0x1, %edx
movl $0x1, %r15d
movl %ebp, %ecx
shll %cl, %r15d
cmpl $0x1f, %ebp
jne 0x3db1
xorl %edi, %edi
jmp 0x3de6
movq 0x10(%r14), %rax
cmpl $0x2, %r15d
cmovgel %r15d, %edx
shlq $0x4, %rdx
leaq (%rdx,%rdx,2), %rcx
xorl %edx, %edx
xorl %edi, %edi
movq 0x28(%rax,%rdx), %rsi
testq %rsi, %rsi
je 0x3dd9
movl 0x4(%rsi), %esi
addq %rsi, %rdi
addq $0x30, %rdx
cmpq %rdx, %rcx
jne 0x3dc9
shlq $0x2, %rdi
cvtss2sd %xmm0, %xmm0
movsd %xmm0, (%rsp)
callq 0x21e0
movq %rax, %rbx
cmpl $0x1f, %ebp
jne 0x3e08
xorl %edi, %edi
movsd (%rsp), %xmm2
jmp 0x3e91
movq 0x10(%r14), %rax
cmpl $0x2, %r15d
movl $0x1, %edx
cmovgel %r15d, %edx
xorl %esi, %esi
xorl %edi, %edi
movsd (%rsp), %xmm2
leaq (%rsi,%rsi,2), %rcx
shlq $0x4, %rcx
movq 0x28(%rax,%rcx), %r8
testq %r8, %r8
je 0x3e89
cmpl $0x0, (%r8)
je 0x3e89
movq 0x10(%r8), %r9
xorl %r10d, %r10d
xorl %r11d, %r11d
movl %r11d, %ecx
shrl $0x4, %ecx
movl (%r9,%rcx,4), %ebp
movl %r10d, %ecx
andb $0x1e, %cl
shrl %cl, %ebp
testb $0x3, %bpl
jne 0x3e7a
movq 0x18(%r8), %r14
movl $0x1, %ecx
testb $0x1, (%r14,%r11,8)
jne 0x3e74
movq 0x20(%r8), %rcx
movl (%rcx,%r11,8), %ecx
movl %ecx, (%rbx,%rdi,4)
incq %rdi
incq %r11
movl (%r8), %ecx
addl $0x2, %r10d
cmpq %rcx, %r11
jb 0x3e44
incq %rsi
cmpq %rdx, %rsi
jne 0x3e22
movsd 0x48df(%rip), %xmm0     # 0x8778
movq %rdi, %xmm1
punpckldq 0x48ea(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x48f2(%rip), %xmm1     # 0x87a0
subsd %xmm2, %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 %rbx, %rsi
callq 0x32e4
movl %eax, %ebp
incl %ebp
movq %rbx, %rdi
callq 0x2040
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 %r14
pushq %rbx
subq $0x38, %rsp
movl %r9d, %ebx
movq 0x50(%rsp), %rax
movl 0x58(%rsp), %r9d
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movaps %xmm0, 0x10(%rsp)
movaps %xmm0, 0x20(%rsp)
movl %r8d, (%rsp)
movl %r9d, 0x8(%rsp)
movq %rax, 0x18(%rsp)
movq %rdi, 0x10(%rsp)
testq %rdi, %rdi
je 0x3fa1
movl %esi, %edi
movl %edx, %esi
movl %ecx, %edx
callq 0x3b40
movq %rsp, %rdx
movq %rax, 0x28(%rdx)
cmpl $0x3, %ebx
movl $0x3, %edi
cmovll %ebx, %edi
leaq 0x5b(%rip), %rsi        # 0x3fb9
movl $0x3, %ecx
callq 0x69d7
leaq 0x7221(%rip), %r14      # 0xb190
cmpl $0x3, (%r14)
jge 0x3fab
movq 0x28(%rsp), %rdx
movb (%rdx), %cl
movl $0x1, %eax
shll %cl, %eax
movslq %eax, %rcx
leaq 0xc8b(%rip), %rsi       # 0x4c18
movl %ebx, %edi
callq 0x683c
cmpl $0x3, (%r14)
jge 0x3fb2
movq 0x28(%rsp), %rax
jmp 0x3fa3
xorl %eax, %eax
addq $0x38, %rsp
popq %rbx
popq %r14
retq
callq 0x264f
jmp 0x3f75
callq 0x26bc
jmp 0x3f9a
// File: /workspace/github_c_makefile_star2_O1/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 0x33bc
testq %rax, %rax
je 0x4344
movq %rax, %rbx
movq %rax, %rdi
movl %r15d, %esi
movl %r14d, %edx
movl $0xe, %ecx
movl $0x40000, %r8d          # imm = 0x40000
movl %ebp, %r9d
pushq $0x1
pushq $-0x1
callq 0x3efd
addq $0x10, %rsp
movq %rax, %r14
movl $0x3a83126f, 0x1c(%rax) # imm = 0x3A83126F
movss 0x3cd6(%rip), %xmm0     # 0x8004
movq %rax, %rdi
callq 0x3d7b
movl %eax, 0x18(%r14)
movq %rbx, %rdi
callq 0x348a
jmp 0x4347
xorl %r14d, %r14d
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x4f55
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 0x7309
movq %rbx, %rdi
popq %rbx
jmp 0x2040
retq
// File: /workspace/github_c_makefile_star2_O1/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, 0x10(%rsp)
movaps %xmm0, (%rsp)
movq $0x0, 0x20(%rsp)
movq %rsi, %rdi
callq 0x33bc
movq %rax, 0x18(%rsp)
testq %rax, %rax
je 0x6459
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 0x2d(%rip), %rsi        # 0x646b
movq %r12, %rdx
movl $0x3, %ecx
callq 0x69d7
movq 0x18(%r12), %rdi
callq 0x348a
xorl %eax, %eax
jmp 0x645e
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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
leaq (%rsi,%rsi,2), %r10
movl (%rcx,%r10,8), %esi
movq 0x10(%rcx,%r10,8), %rax
movq 0x28(%r14), %r8
movslq %edx, %rdx
movq (%r8,%rdx,8), %r8
movq 0x8(%rcx,%r10,8), %rcx
movq %rcx, (%rsp)
leaq 0x14(%rsp), %r12
movq %rax, %rdx
movq %r12, %rcx
callq 0x55a5
movq %rax, %r15
movslq (%r12), %rax
movq 0x18(%r14), %rcx
movl %eax, (%rcx,%rbx,4)
testq %rax, %rax
jle 0x682e
leaq (%rax,%rax,8), %rcx
leaq (%rcx,%rcx,2), %r12
addq %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
nop
// File: /workspace/github_c_makefile_star2_O1/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
movl $0x1, %edi
movl $0x38, %esi
callq 0x2150
movq %rax, %rbx
movl $0x1, %edi
movl $0x20, %esi
callq 0x2150
movq %rax, %r14
movabsq $0x3ffffffffffffff, %rax # imm = 0x3FFFFFFFFFFFFFF
andq (%r14), %rax
btsq $0x3b, %rax
movq %rax, (%r14)
movq $0x3, 0x10(%r14)
movl $0x10, %edi
callq 0x21e0
movq %rax, 0x18(%r14)
movq %r14, (%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x734f
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %r14
testq %r14, %r14
je 0x732e
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_O1/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 0x72a8
movq %rax, %r13
movq %r12, %rdi
movl %r15d, %esi
movl %r14d, %edx
movl %ebp, %ecx
movq %rbx, %r8
movq %rax, %r9
callq 0x7350
movq %rax, %rbx
movq $0x0, 0x30(%r13)
movq %r13, %rdi
callq 0x7309
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_O1/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
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
testl %edx, %edx
je 0x3406
movl %edi, %ebx
leaq 0x1f5d(%rip), %rax      # 0x52c9
movq %rsi, %rdi
movq %rax, %rsi
callq 0x2070
testq %rax, %rax
je 0x3406
movq %rax, %r15
addq $0x13, %r15
leaq -0x220(%rbp), %r12
movl $0x200, %edx            # imm = 0x200
movq %r12, %rdi
xorl %esi, %esi
callq 0x2120
leaq 0x2028(%rip), %rsi      # 0x53cc
movq %r15, %rdi
movq %r12, %rdx
xorl %eax, %eax
callq 0x2200
movq %r12, %rdi
callq 0x20f0
movq %rax, %r15
testl %r15d, %r15d
jle 0x3406
leaq -0x620(%rbp), %r14
movl $0x400, %edx            # imm = 0x400
movq %r14, %rdi
xorl %esi, %esi
callq 0x2120
leaq -0x220(%rbp), %rdi
movl %r15d, %esi
movq %r14, %rdx
callq 0x2a68
movq %r14, %rdi
callq 0x20f0
movl %ebx, %edi
movq %r14, %rsi
movq %rax, %rdx
movl $0x4000, %ecx           # imm = 0x4000
callq 0x2110
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_O1/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, %r12d
movl %edx, %r13d
movq %rsi, %rbx
movl %edi, -0x30(%rbp)
leal 0x80(%r13), %r15d
movl $0x1, %edi
movq %r15, %rsi
callq 0x2160
movq %rax, %r14
movq %rax, %rdi
xorl %esi, %esi
movq %r15, %rdx
callq 0x2120
movq %rbx, %rdi
movl %r13d, %esi
movq %r14, %rdx
movl %r15d, %ecx
movl %r12d, %r8d
movl -0x2c(%rbp), %r9d
callq 0x2b13
movl %eax, %edx
movl -0x30(%rbp), %edi
movq %r14, %rsi
movl $0x4000, %ecx           # imm = 0x4000
callq 0x2110
movq %rax, %rbx
movq %r14, %rdi
callq 0x2230
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_O1/sszllzss[P]webSocket_Libevent_ThreadPool/ev_client_main.c
// Function: main
int main(int argc, char *argv[])
{
    char inAddr[INADDR_LEN];
    int port = 0;
    struct event_base *base=NULL;
    struct bufferevent *bev=NULL;
    struct event * sig=NULL;
    struct itimerval timer_out;
    if(argc==3)
    {
        if(strlen(argv[1])>INADDR_LEN)
        {
            printf("输入长度要少于%d\r\n", INADDR_LEN);
            exit(1);
        }
        strcpy(inAddr, argv[1]);
        port =  atoi(argv[2]);
        if(port==0)
        {
            printf("端口输入错误！！\r\n");
            exit(1);
        }
    }
    else
    {
        port = SERVER_PORT;
        strcpy(inAddr, SERVERR_IP);
    }
    base = event_base_new();
    assert(base);

    bev = ev_webSocket_clientLinkToServer(base, inAddr, port,(char *)"/null",bev_read_cd,NULL,bev_event_cd,NULL);
    if(!bev)
    {
        printf("连接服务器错误!\r\n");
        exit(1);
    }
    sig =  evsignal_new(base, SIGALRM, sig_cb, bev);
    if(!sig || event_add(sig, NULL))
    {
        De_fprintf(stderr, "cold not create/add a signal event!");
    }
    else
    {
        memset(&timer_out, 0, sizeof(timer_out));
        timer_out.it_interval.tv_sec = 2;
        timer_out.it_value.tv_sec = 2;
        setitimer(ITIMER_REAL, &timer_out, NULL);
    }
    event_base_dispatch(base);
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x60, %rsp
cmpl $0x3, %edi
jne 0x3f85
movq %rsi, %rbx
movq 0x8(%rsi), %r14
movq %r14, %rdi
callq 0x20f0
cmpq $0x33, %rax
jae 0x407b
leaq -0x50(%rbp), %rdi
movq %r14, %rsi
callq 0x21d0
movq 0x10(%rbx), %rdi
callq 0x22d0
movl %eax, %r14d
testl %eax, %eax
jne 0x3f9a
leaq 0x16df(%rip), %rdi      # 0x565f
jmp 0x4074
movups 0x15a2(%rip), %xmm0     # 0x552e
movaps %xmm0, -0x50(%rbp)
movb $0x0, -0x40(%rbp)
movl $0x1f98, %r14d          # imm = 0x1F98
callq 0x22f0
testq %rax, %rax
je 0x404e
movq %rax, %rbx
leaq 0x1e1(%rip), %rax       # 0x4193
leaq 0x15b3(%rip), %rcx      # 0x556c
leaq 0xd8(%rip), %r8         # 0x4098
leaq -0x50(%rbp), %rsi
movq %rbx, %rdi
movl %r14d, %edx
xorl %r9d, %r9d
pushq $0x0
pushq %rax
callq 0x36dd
addq $0x10, %rsp
testq %rax, %rax
je 0x406d
leaq 0x257(%rip), %rcx       # 0x4240
movq %rbx, %rdi
movl $0xe, %esi
movl $0x18, %edx
movq %rax, %r8
callq 0x21b0
testq %rax, %rax
je 0x4047
movq %rax, %rdi
xorl %esi, %esi
callq 0x20e0
testl %eax, %eax
jne 0x4047
xorps %xmm0, %xmm0
leaq -0x70(%rbp), %rsi
movaps %xmm0, (%rsi)
movaps %xmm0, 0x10(%rsi)
movl $0x2, %eax
movq %rax, (%rsi)
movq %rax, 0x10(%rsi)
xorl %edi, %edi
xorl %edx, %edx
callq 0x22a0
movq %rbx, %rdi
callq 0x22b0
xorl %eax, %eax
addq $0x60, %rsp
popq %rbx
popq %r14
popq %rbp
retq
callq 0x2445
jmp 0x4034
leaq 0x14ea(%rip), %rdi      # 0x553f
leaq 0x14e8(%rip), %rsi      # 0x5544
leaq 0x14f2(%rip), %rcx      # 0x5555
movl $0x68, %edx
callq 0x2150
leaq 0x15d3(%rip), %rdi      # 0x5647
callq 0x22c0
jmp 0x408e
leaq 0x1492(%rip), %rdi      # 0x5514
movl $0x32, %esi
xorl %eax, %eax
callq 0x2040
movl $0x1, %edi
callq 0x2240
// File: /workspace/github_c_makefile_star2_O1/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 0x3cfc
testl %eax, %eax
jle 0x40fd
leaq 0x14d6(%rip), %rdi      # 0x559b
leaq -0x410(%rbp), %r14
movl %eax, %esi
movq %r14, %rdx
xorl %eax, %eax
callq 0x2040
leaq 0x14d6(%rip), %rsi      # 0x55b5
movq %r14, %rdi
callq 0x2070
testq %rax, %rax
je 0x4150
leaq 0x14c8(%rip), %rsi      # 0x55bb
movq %rbx, %rdi
movl $0x10, %edx
jmp 0x4177
leaq 0x10a7(%rip), %rdi      # 0x51ab
leaq 0x14dd(%rip), %rsi      # 0x55e8
leaq 0x1432(%rip), %rdx      # 0x5544
movl $0x29, %ecx
xorl %eax, %eax
callq 0x2040
leaq 0x1554(%rip), %rdi      # 0x5679
callq 0x22c0
leaq 0x1555(%rip), %rdi      # 0x5686
callq 0x22c0
movq %rbx, %rdi
callq 0x2320
movq %rax, %rdi
callq 0x2260
movq %rbx, %rdi
callq 0x20a0
jmp 0x4187
leaq 0x1475(%rip), %rsi      # 0x55cc
leaq -0x410(%rbp), %rdi
callq 0x2070
testq %rax, %rax
je 0x4187
leaq 0x1469(%rip), %rsi      # 0x55d8
movq %rbx, %rdi
movl $0xf, %edx
movl $0x1, %ecx
movl $0xffffffed, %r8d       # imm = 0xFFFFFFED
callq 0x3c75
addq $0x400, %rsp            # imm = 0x400
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x41e9
movzwl %si, %eax
testb $0x20, %al
je 0x4222
leaq 0xffb(%rip), %rdi       # 0x51ab
leaq 0x143d(%rip), %rsi      # 0x55f4
leaq 0x1386(%rip), %rdx      # 0x5544
movl $0x35, %ecx
xorl %eax, %eax
callq 0x2040
callq 0x2030
movl (%rax), %edi
callq 0x20d0
leaq 0x1424(%rip), %rdi      # 0x5601
movq %rax, %rsi
xorl %eax, %eax
callq 0x2040
jmp 0x4216
leaq 0xfbb(%rip), %rdi       # 0x51ab
leaq 0x13fd(%rip), %rsi      # 0x55f4
leaq 0x1346(%rip), %rdx      # 0x5544
movl $0x32, %ecx
xorl %eax, %eax
callq 0x2040
leaq 0x1468(%rip), %rdi      # 0x5679
callq 0x22c0
leaq 0x1469(%rip), %rdi      # 0x5686
callq 0x22c0
movq %rbx, %rdi
callq 0x2320
movq %rax, %rdi
callq 0x2260
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x20a0