LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/WbtLm[P]mempool/./mempool.cpp
// Function: mpnsp::memPool::freeMemNode(int)
void mpnsp::memPool::freeMemNode(int idx) //删除被标记为deleted的node
{
    if(__builtin_expect(MaxNodeNum<idx,0))
    {
        myErrorOperate("fatal error ! freeMemNode.nodeNumidx.",__LINE__,1);
        return;
    }
    if(__builtin_expect(!nodeArr[idx],0))
    {
        myErrorOperate("freeMemNode.node is already NULL.",__LINE__,0);
        return;
    }
    if(!__builtin_expect(nodeArr[idx]->deleted,1))
    {
        myErrorOperate("freeMemNode.deleted must be true.",__LINE__,0);
        return;
    }
    int fptr=nodeArr[idx]->fptr;
    int nptr=nodeArr[idx]->nptr;
    nodeArr[fptr]->nptr=nptr;
    if(nptr<=MaxNodeNum)
    {
        nodeArr[nptr]->fptr=fptr;
    }
    free(nodeArr[idx]->memory);
    free(nodeArr[idx]->ptrArr);
    free(nodeArr[idx]);
    nodeArr[idx]=NULL;
    deletedNum--;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
cmpl $0x80, %esi
jge 0x1524
movq %rdi, %rbx
movq 0x20(%rdi), %rcx
movslq %esi, %r14
movq (%rcx,%r14,8), %rax
testq %rax, %rax
je 0x1529
cmpb $0x0, 0x10(%rax)
je 0x1537
movslq 0x30(%rax), %rdx
movslq 0x2c(%rax), %rsi
movq (%rcx,%rdx,8), %rdi
movl %esi, 0x2c(%rdi)
cmpq $0x7f, %rsi
jg 0x14ea
movq (%rcx,%rsi,8), %rcx
movl %edx, 0x30(%rcx)
movq (%rax), %rdi
callq 0x1120
movq 0x20(%rbx), %rax
movq (%rax,%r14,8), %rax
movq 0x20(%rax), %rdi
callq 0x1120
movq 0x20(%rbx), %rax
movq (%rax,%r14,8), %rdi
callq 0x1120
movq 0x20(%rbx), %rax
movq $0x0, (%rax,%r14,8)
decl 0x14(%rbx)
popq %rbx
popq %r14
popq %rbp
retq
callq 0x11c0
leaq 0x1ad4(%rip), %rdi      # 0x3004
movl $0x23, %esi
jmp 0x1543
leaq 0x1ac6(%rip), %rdi      # 0x3004
movl $0x28, %esi
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
jmp 0x1040
// File: /workspace/github_cpp_makefile_star2_O3/WbtLm[P]mempool/./mempool.cpp
// Function: mpnsp::memPool::~memPool()
mpnsp::memPool::~memPool()
{
    for(int i=0;i<MaxNodeNum;i++)
    {
        if(nodeArr[i])
        {
            free(nodeArr[i]->memory);
            free(nodeArr[i]->ptrArr);
            free(nodeArr[i]);
        }
    }
    free(nodeArr);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
xorl %r14d, %r14d
movq 0x20(%rbx), %rax
movq (%rax,%r14,8), %rax
testq %rax, %rax
je 0x171c
movq (%rax), %rdi
callq 0x1120
movq 0x20(%rbx), %rax
movq (%rax,%r14,8), %rax
movq 0x20(%rax), %rdi
callq 0x1120
movq 0x20(%rbx), %rax
movq (%rax,%r14,8), %rdi
callq 0x1120
incq %r14
cmpq $0x7f, %r14
jne 0x16e9
movq 0x20(%rbx), %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x1120
// File: /workspace/github_cpp_makefile_star2_O3/WbtLm[P]mempool/./mempool.cpp
// Function: mpnsp::memPool::memPoolInit()
void mpnsp::memPool::memPoolInit()
{
    int s=sizeof(memNode*)*(MaxNodeNum+1);
    nodeArr=(memNode**)malloc(s);
    if(__builtin_expect(nodeArr==NULL,0))
    {
        myErrorOperate("memPool.nodeArr.create fail",__LINE__,0);
        return;
    }
    memset(nodeArr,0,s);
    //初始化头结点
    memNode *node=(memNode*)malloc(sizeof(memNode));
    if(__builtin_expect(node==NULL,0))
    {
        myErrorOperate("memPool.create head node fail",0);
        return;
    }
    nodeArr[0]=node;
    node->used=0;
    node->deleted=0;
    node->memory=NULL;
    node->head=NULL;
    node->size=0;
    node->ptrArr=NULL;
    node->fptr=0;
    node->nptr=MaxNodeNum+1;
    node->top=-1;
        //创建第一个节点

    int ret=createNewNode(maxNumInNode);
    if(ret<0)
    {
        myErrorOperate("memPool.createNewNode.fail",__LINE__,1);
    }
    topPtr=ret<<OffsetBits;//指向新开辟的node
    status=1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movl $0x1, %edi
movl $0x400, %esi            # imm = 0x400
callq 0x1080
movq %rax, 0x20(%rbx)
testq %rax, %rax
je 0x17b3
movq %rax, %r14
movl $0x38, %edi
callq 0x1140
testq %rax, %rax
je 0x17ca
movq %rax, (%r14)
xorl %ecx, %ecx
movq %rcx, 0x14(%rax)
movq %rcx, 0x20(%rax)
movl $0x0, 0x30(%rax)
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movb $0x0, 0x10(%rax)
movabsq $0x80ffffffff, %rcx     # imm = 0x80FFFFFFFF
movq %rcx, 0x28(%rax)
movl 0x1c(%rbx), %esi
movq %rbx, %rdi
callq 0x154e
testl %eax, %eax
js 0x17cf
shll $0x15, %eax
cltq
movq %rax, 0x8(%rbx)
movb $0x1, 0x28(%rbx)
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x184a(%rip), %rdi      # 0x3004
movl $0x77, %esi
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
jmp 0x1040
callq 0x11dd
leaq 0x182e(%rip), %rdi      # 0x3004
movl $0x91, %esi
xorl %eax, %eax
callq 0x1040
movl $0x1, %edi
callq 0x1130
// File: /workspace/github_cpp_makefile_star2_O3/WbtLm[P]mempool/./mempool.cpp
// Function: mpnsp::memPool::memPool(int, int)
mpnsp::memPool::memPool(int nodeSize,int initNum/*=InitNumInNode*/)
{
    status=0;
    unitSize=nodeSize;
    topPtr=-1;
    nodeNum=0;
    deletedNum=0;
    maxNumInNode=initNum;
    MaxAllocNum=MaxAllocMem/nodeSize;
    if(MaxAllocMem<16)
    {
        myErrorOperate("memPool.MaxAllocMem is too small.",__LINE__,1); //开发阶段就很容易找到的错误
        return;
    }
    if(maxNumInNode>MaxAllocNum)
    {
        maxNumInNode=MaxAllocNum;
    }
    memPoolInit();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl %edx, %ecx
xorl %eax, %eax
movq %rax, 0x20(%rdi)
movb $0x0, 0x28(%rdi)
movl %esi, (%rdi)
movq $-0x1, 0x8(%rdi)
movq %rax, 0x10(%rdi)
movl %edx, 0x1c(%rdi)
movl $0x8000000, %eax        # imm = 0x8000000
xorl %edx, %edx
idivl %esi
movl %eax, 0x18(%rdi)
cmpl %ecx, %eax
jae 0x1820
movl %eax, 0x1c(%rdi)
popq %rbp
jmp 0x1732
// File: /workspace/github_cpp_makefile_star2_O3/WbtLm[P]mempool/./mempool.cpp
// Function: mpnsp::memPool::freeMemToPool(void*)
void mpnsp::memPool::freeMemToPool(void *p)
{
    #define free_end(idx) (nodeArr[idx]->head+unitSize*nodeArr[idx]->size)
    #define free_head(idx) (nodeArr[idx]->head)
    int i;
    char *ptr=(char*)p;
    for(i=nodeArr[0]->nptr;i<=MaxNodeNum;)
    {
        if(__builtin_expect(nodeArr[i]==NULL,0))
            i++;
        else if(!(p>=free_head(i) && p<free_end(i)))
        {
            i=nodeArr[i]->nptr;
        }
        else
        {
            memNode *node=nodeArr[i];
            uint idx=(ptr-node->head)/unitSize;
            *alloc_ptr(idx)=node->top;
            node->top=idx;
            topPtr=i<<OffsetBits;
            topPtr|=node->top;
            node->used--;
            #if EnableAutoClean
            if(__builtin_expect(nodeArr[i]->deleted == 0 && nodeArr[i]->size <= AutoCleanSize,0))
            {
                nodeArr[i]->deleted=1;
                nodeNum--;
                deletedNum++;
            }
            #endif
            if(!nodeArr[i]->used && nodeArr[i]->deleted)
            {
                //如果打了deleted标记的node已经没有成员了，就删除
                freeMemNode(i);
            }
            return;
        }
    }
    myErrorOperate("freeMemToPool.mem.Release mem to OS instand of to pool.",__LINE__,0);
    free(p);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r15
movq 0x20(%rdi), %rax
movq (%rax), %rcx
movl 0x2c(%rcx), %r14d
cmpl $0x7f, %r14d
jg 0x19df
movq %rdi, %rbx
movslq (%rdi), %rcx
movslq %r14d, %rdx
movq (%rax,%rdx,8), %rdi
testq %rdi, %rdi
je 0x19da
movq 0x8(%rdi), %rdx
cmpq %r15, %rdx
ja 0x19cb
movl 0x14(%rdi), %esi
imull %ecx, %esi
addq %rdx, %rsi
cmpq %r15, %rsi
ja 0x1a04
movl 0x2c(%rdi), %r14d
cmpl $0x80, %r14d
jl 0x19a8
jmp 0x19df
incl %r14d
jmp 0x19cf
leaq 0x161e(%rip), %rdi      # 0x3004
movl $0x127, %esi            # imm = 0x127
xorl %eax, %eax
callq 0x1040
movq %r15, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x1120
subq %rdx, %r15
movq %r15, %rax
cqto
idivq %rcx
movl 0x28(%rdi), %ecx
movq 0x20(%rdi), %rdx
movl %eax, %esi
movl %ecx, (%rdx,%rsi,4)
movl %eax, 0x28(%rdi)
movl %r14d, %eax
shll $0x15, %eax
cltq
orq %rsi, %rax
movq %rax, 0x8(%rbx)
movl 0x18(%rdi), %r15d
decl %r15d
movl %r15d, 0x18(%rdi)
cmpb $0x0, 0x10(%rdi)
je 0x1a42
xorl %eax, %eax
jmp 0x1a4f
movl 0x1c(%rbx), %ecx
shrl $0x4, %ecx
movb $0x1, %al
cmpl %ecx, 0x14(%rdi)
jbe 0x1a79
testl %r15d, %r15d
setne %cl
orb %al, %cl
je 0x1a64
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
movl %r14d, %esi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x14a6
addq $0x10, %rdi
movq %rbx, %rsi
callq 0x1265
jmp 0x1a3e
// File: /workspace/github_cpp_makefile_star2_O3/WbtLm[P]mempool/./mempool.cpp
// Function: mpnsp::do_createMemPool(int, int, std::map<int, mpnsp::memPool*, std::less<int>, std::allocator<std::pair<int const, mpnsp::memPool*>>>&)
int mpnsp::do_createMemPool(int nodeSize,int initNum,std::map<int,memPool*>&memPoolMap)//初始个数
{
 //   cout<<"do_create.初始化内存池:"<<"size="<<nodeSize<<endl;
    if(memPoolMap.count(nodeSize))//不允许重复建立
    {
        myErrorOperate("不允许重复建立",__LINE__,1);
        return 1;
    }
    memPool *pool=new memPool(nodeSize,initNum);
    memPoolMap[nodeSize]=pool;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movl %esi, %r14d
movl %edi, %r15d
movl %edi, -0x1c(%rbp)
movq 0x10(%rdx), %rax
testq %rax, %rax
je 0x1aed
leaq 0x8(%rbx), %rdx
movq %rdx, %rcx
xorl %esi, %esi
cmpl %r15d, 0x20(%rax)
setl %sil
cmovgeq %rax, %rcx
movq 0x10(%rax,%rsi,8), %rax
testq %rax, %rax
jne 0x1aad
cmpq %rdx, %rcx
je 0x1aed
cmpl %r15d, 0x20(%rcx)
jg 0x1aed
leaq 0x152d(%rip), %rdi      # 0x3004
movl $0x152, %esi            # imm = 0x152
xorl %eax, %eax
callq 0x1040
movl $0x1, %edi
callq 0x1130
movl $0x30, %edi
callq 0x10e0
movq %rax, %rdi
movl %r15d, %esi
movl %r14d, %edx
callq 0x17ec
leaq -0x1c(%rbp), %rsi
movq %rbx, %rdi
callq 0x1eca
nop
// File: /workspace/github_cpp_makefile_star2_O3/WbtLm[P]mempool/example_memtest.cpp
// Function: main
int main()
{
    node *p[100000];
    int n=1e4;
    int tid=0;//表示第几个线程，而不是单纯的tid。mempool中的map数组会创建PTHREADNUM个map。
    for(int i=0;i<n;i++)
        p[i]=allocNode<node>(tid);
    memPoolMap[tid][sizeof(node)]->debug();
    for(int i=0;i<n;i++)
        freeNode(p[i],tid);
    memPoolMap[tid][sizeof(node)]->debug();
    for(int i=0;i<n;i++)
        p[i]=allocNode<node>(tid);
    memPoolMap[tid][sizeof(node)]->debug();
    for(int i=0;i<n;i++)
        freeNode(p[i],tid);
    memPoolMap[tid][sizeof(node)]->debug();
    cout<<"end"<<endl;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0xc3508, %rsp          # imm = 0xC3508
xorl %ebx, %ebx
xorl %edi, %edi
callq 0x1f32
movq %rax, -0xc3510(%rbp,%rbx,8)
incq %rbx
cmpq $0x2710, %rbx           # imm = 0x2710
jne 0x1d92
leaq -0xc(%rbp), %rsi
movl $0x40, (%rsi)
leaq 0x3352(%rip), %rdi      # 0x5110
callq 0x1faa
movq (%rax), %rdi
callq 0x1b12
xorl %ebx, %ebx
movq -0xc3510(%rbp,%rbx,8), %rdi
xorl %esi, %esi
callq 0x2012
incq %rbx
cmpq $0x2710, %rbx           # imm = 0x2710
jne 0x1dcd
leaq -0xc(%rbp), %rsi
movl $0x40, (%rsi)
leaq 0x3317(%rip), %rdi      # 0x5110
callq 0x1faa
movq (%rax), %rdi
callq 0x1b12
xorl %ebx, %ebx
xorl %edi, %edi
callq 0x1f32
movq %rax, -0xc3510(%rbp,%rbx,8)
incq %rbx
cmpq $0x2710, %rbx           # imm = 0x2710
jne 0x1e08
leaq -0xc(%rbp), %rsi
movl $0x40, (%rsi)
leaq 0x32dc(%rip), %rdi      # 0x5110
callq 0x1faa
movq (%rax), %rdi
callq 0x1b12
xorl %ebx, %ebx
movq -0xc3510(%rbp,%rbx,8), %rdi
xorl %esi, %esi
callq 0x2012
incq %rbx
cmpq $0x2710, %rbx           # imm = 0x2710
jne 0x1e43
leaq -0xc(%rbp), %rsi
movl $0x40, (%rsi)
leaq 0x32a1(%rip), %rdi      # 0x5110
callq 0x1faa
movq (%rax), %rdi
callq 0x1b12
movq 0x3155(%rip), %rbx      # 0x4fd8
leaq 0x11da(%rip), %rsi      # 0x3064
movl $0x3, %edx
movq %rbx, %rdi
callq 0x1110
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x10d0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x10a0
xorl %eax, %eax
addq $0xc3508, %rsp          # imm = 0xC3508
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/WbtLm[P]mempool/./mempool.cpp
// Function: node* allocNode<node>(int)
T* allocNode(int tid)
{
    #ifndef MEMPOOLOFF
    using namespace mpnsp;
    if(__builtin_expect(!memPoolMap[tid].count(sizeof(T)),0))
    {
        createMemPool<T>(tid);
    }
    memPool &pool=*memPoolMap[tid][sizeof(T)];
    return (T*)pool.allocMemFromPool();
    #else
    return malloc(sizeof(T));
    #endif
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movslq %edi, %rax
leaq (%rax,%rax,2), %rcx
shlq $0x4, %rcx
leaq 0x31c4(%rip), %rdx      # 0x5110
leaq (%rdx,%rcx), %rdi
movq 0x10(%rcx,%rdx), %rax
testq %rax, %rax
je 0x1fa4
addq %rcx, %rdx
addq $0x8, %rdx
movq %rdx, %rcx
xorl %esi, %esi
cmpl $0x40, 0x20(%rax)
setl %sil
cmovgeq %rax, %rcx
movq 0x10(%rax,%rsi,8), %rax
testq %rax, %rax
jne 0x1f64
cmpq %rdx, %rcx
je 0x1fa4
cmpl $0x41, 0x20(%rcx)
jge 0x1fa4
leaq -0x4(%rbp), %rsi
movl $0x40, (%rsi)
callq 0x1faa
movq (%rax), %rdi
callq 0x1826
addq $0x10, %rsp
popq %rbp
retq
callq 0x1274
nop
// File: /workspace/github_cpp_makefile_star2_O3/WbtLm[P]mempool/./mempool.cpp
// Function: void freeNode<node>(node*, int)
void freeNode(T* p,int tid)
{
    using namespace mpnsp;
    if(memPoolMap[tid].count(sizeof(T)))
    {
        memPool *pool=memPoolMap[tid][sizeof(T)];
        pool->freeMemToPool(p);
        if(memPoolMap[tid].count(sizeof(T))==0)
        {
            myErrorOperate("free.err",__LINE__);
        }
    }
    else
        free(p);
    return;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movslq %esi, %rax
leaq (%rax,%rax,2), %rcx
shlq $0x4, %rcx
leaq 0x30df(%rip), %rdx      # 0x5110
movq 0x10(%rcx,%rdx), %rax
testq %rax, %rax
je 0x206c
leaq (%rdx,%rcx), %r14
leaq (%rcx,%rdx), %r15
addq $0x8, %r15
movq %r15, %rcx
xorl %edx, %edx
cmpl $0x40, 0x20(%rax)
setl %dl
cmovgeq %rax, %rcx
movq 0x10(%rax,%rdx,8), %rax
testq %rax, %rax
jne 0x204a
cmpq %r15, %rcx
je 0x206c
cmpl $0x40, 0x20(%rcx)
jle 0x207e
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x1120
leaq -0x1c(%rbp), %rsi
movl $0x40, (%rsi)
movq %r14, %rdi
callq 0x1faa
movq (%rax), %rdi
movq %rbx, %rsi
callq 0x1984
movq 0x10(%r14), %rax
testq %rax, %rax
je 0x20d4
movq %r15, %rcx
xorl %edx, %edx
cmpl $0x40, 0x20(%rax)
setl %dl
cmovgeq %rax, %rcx
movq 0x10(%rax,%rdx,8), %rax
testq %rax, %rax
jne 0x20a7
cmpq %r15, %rcx
je 0x20d4
cmpl $0x41, 0x20(%rcx)
jge 0x20d4
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0xf29(%rip), %rdi       # 0x3004
movl $0x145, %esi            # imm = 0x145
xorl %eax, %eax
callq 0x1040
movl $0x1, %edi
callq 0x1130
// File: /workspace/github_cpp_makefile_star2_O3/Czxck001[P]algorithms/src/mom.cc
// Function: auto partition<int>(std::vector<int, std::allocator<int>>::iterator, std::vector<int, std::allocator<int>>::iterator, int)
auto partition(VIter<T> l, VIter<T> r, T P) {
  auto p = l;
  while (*p != P) ++p;  // find the pivot index
  assert(p != r);

  std::iter_swap(p, r - 1);  // move pivot to the end

  auto s = l;  // first not-smaller element
  for (auto i = l; i != r - 1; ++i) {
    if (*i < P) {
      std::iter_swap(i, s++);
    }
  }
  std::iter_swap(s, r - 1);
  return s;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq -0x4(%rdi), %rax
movq %rax, %rcx
addq $0x4, %rax
cmpl %edx, 0x4(%rcx)
jne 0x1786
cmpq %rsi, %rax
je 0x17d7
leaq -0x4(%rsi), %rcx
movl -0x4(%rsi), %r8d
movl %r8d, (%rax)
movl %edx, -0x4(%rsi)
cmpq %rdi, %rcx
je 0x17cc
movq %rdi, %rax
movl (%rdi), %esi
cmpl %edx, %esi
jge 0x17bf
movl (%rax), %r8d
movl %r8d, (%rdi)
movl %esi, (%rax)
addq $0x4, %rax
addq $0x4, %rdi
cmpq %rcx, %rdi
jne 0x17ad
movl (%rcx), %edx
jmp 0x17cf
movq %rdi, %rax
movl (%rax), %esi
movl %edx, (%rax)
movl %esi, (%rcx)
popq %rbp
retq
leaq 0x8cd(%rip), %rdi       # 0x20ab
leaq 0x88a(%rip), %rsi       # 0x206f
leaq 0x8c6(%rip), %rcx       # 0x20b2
movl $0x26, %edx
callq 0x1070
// File: /workspace/github_cpp_makefile_star2_O3/grogers0[P]dots_and_boxes/Solver.cpp
// Function: main
int main(int argc, char **argv)
{
    std::string solver = argv[0];

    while (true) {
        Board board = read_board(stdin);
        board.set_move_decider(solver);
        Edge m = board.decide_move();
        m.print(stdout);
        fflush(stdout);
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x70, %rsp
movq (%rsi), %rsi
leaq 0x50(%rsp), %rbx
leaq 0x8(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rdx
callq 0x2c7e
movq 0x3c0c(%rip), %r12      # 0x7fc8
movq 0x3bed(%rip), %r13      # 0x7fb0
leaq 0x4(%rsp), %r15
movq (%r12), %rsi
movq %r14, %rdi
callq 0x35b8
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2b14
movq 0x40(%rsp), %rax
movq 0x48(%rsp), %rdi
addq %r14, %rdi
testb $0x1, %al
je 0x43f8
movq (%rdi), %rcx
movq -0x1(%rcx,%rax), %rax
callq *%rax
movw %ax, 0x4(%rsp)
movq (%r13), %rsi
movq %r15, %rdi
callq 0x2e2c
movq (%r13), %rdi
callq 0x2170
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x43c8
movq 0x38(%rsp), %rsi
subq %rdi, %rsi
callq 0x2150
jmp 0x43c8
jmp 0x4434
movq %rax, %rbx
jmp 0x444e
movq %rax, %rbx
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x444e
movq 0x38(%rsp), %rsi
subq %rdi, %rsi
callq 0x2150
leaq 0x60(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4469
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x2150
movq %rbx, %rdi
callq 0x2250
// File: /workspace/github_cpp_makefile_star2_O3/jp-myk[P]WAVUtil/src/wav_cat.cpp
// Function: main
int main(int argc, char *argv[]){
  if(argc<2){
    std::cout << argv[0] << " FILENAME" << std::endl;
    exit(0);
  }
  const char* wavFName=argv[1];
  WAV wav;
  int res=0;
  res=wav.Read(wavFName);
  if(res!=0){
    std::cout << "error open WAVFILE:" << wavFName << std::endl;
    exit(-1);
  }
  SimpleWAV::cat_wav(wav);
  return 0;
}

// Assembly:
pushq %rbx
subq $0x60, %rsp
cmpl $0x1, %edi
jle 0x3b01
movq 0x8(%rsi), %rbx
xorl %eax, %eax
leaq 0x8(%rsp), %rdi
movl %eax, 0x4(%rdi)
movabsq $0x2000100000010, %rcx  # imm = 0x2000100000010
movq %rcx, 0x10(%rdi)
movabsq $0x7d000000ac44, %rcx   # imm = 0x7D000000AC44
movq %rcx, 0x18(%rdi)
movl $0x100002, 0x20(%rdi)   # imm = 0x100002
movl %eax, 0x28(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x30(%rdi)
movups %xmm0, 0x40(%rdi)
movq $0x0, 0x50(%rdi)
movq %rbx, %rsi
callq 0x2a80
testl %eax, %eax
jne 0x3b2e
leaq 0x8(%rsp), %rdi
callq 0x34ab
leaq 0x8(%rsp), %rdi
callq 0x272e
xorl %eax, %eax
addq $0x60, %rsp
popq %rbx
retq
movq (%rsi), %rsi
movq 0x24c5(%rip), %rdi      # 0x5fd0
callq 0x2160
leaq 0x7f2(%rip), %rsi       # 0x4309
movq %rax, %rdi
callq 0x2160
movq %rax, %rdi
callq 0x20d0
xorl %edi, %edi
callq 0x21b0
movq 0x249b(%rip), %rdi      # 0x5fd0
leaq 0x7d7(%rip), %rsi       # 0x4313
movl $0x13, %edx
callq 0x2190
movq 0x2483(%rip), %rdi      # 0x5fd0
movq %rbx, %rsi
callq 0x2160
movq %rax, %rdi
callq 0x20d0
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x21b0
jmp 0x3b7e
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x272e
movq %rbx, %rdi
callq 0x2270
movq %rax, %rdi
callq 0x378f
// File: /workspace/github_cpp_makefile_star2_O3/jixinqi[P]lazurite/./src/main.cpp
// Function: main
int main()
{
    lazurite::http::server http_server;
    http_server.add_route("/", hello_page);
    http_server.add_route("/raw_msg", raw_msg);
    http_server.run();
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x90, %rsp
movq %rsp, %rdi
callq 0xfcb4
leaq 0x80(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0xcbd1(%rip), %rsi      # 0x1503c
leaq 0xcbcb(%rip), %rdx      # 0x1503d
leaq 0x70(%rsp), %rdi
callq 0x8a2c
leaq 0x50(%rsp), %rdx
movq $0x0, 0x8(%rdx)
leaq -0x114(%rip), %rax      # 0x837c
movq %rax, (%rdx)
leaq 0x628(%rip), %rbx       # 0x8ac2
movq %rbx, 0x18(%rdx)
leaq 0x629(%rip), %r15       # 0x8ace
movq %r15, 0x10(%rdx)
movq %rsp, %rdi
leaq 0x70(%rsp), %rsi
callq 0xfd04
movq 0x60(%rsp), %rax
testq %rax, %rax
je 0x84cf
leaq 0x50(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq 0x70(%rsp), %rdi
cmpq %r14, %rdi
je 0x84de
callq 0x6350
leaq 0x40(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0xcb50(%rip), %rsi      # 0x1503e
leaq 0xcb51(%rip), %rdx      # 0x15046
leaq 0x30(%rsp), %rdi
callq 0x8a2c
leaq 0x10(%rsp), %rdx
movq $0x0, 0x8(%rdx)
leaq -0x12d(%rip), %rax      # 0x83e6
movq %rax, (%rdx)
movq %rbx, 0x18(%rdx)
movq %r15, 0x10(%rdx)
movq %rsp, %rdi
leaq 0x30(%rsp), %rsi
callq 0xfd04
movq 0x20(%rsp), %rax
testq %rax, %rax
je 0x8544
leaq 0x10(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq 0x30(%rsp), %rdi
cmpq %r14, %rdi
je 0x8553
callq 0x6350
movq %rsp, %rdi
callq 0xfdbe
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x856a
callq 0x89bc
xorl %eax, %eax
addq $0x90, %rsp
popq %rbx
popq %r14
popq %r15
retq
jmp 0x85d3
jmp 0x85d3
jmp 0x85db
movq %rax, %rbx
movq 0x20(%rsp), %rax
testq %rax, %rax
je 0x859b
leaq 0x10(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq 0x30(%rsp), %rdi
jmp 0x85c7
jmp 0x85d3
jmp 0x85db
movq %rax, %rbx
movq 0x60(%rsp), %rax
testq %rax, %rax
je 0x85c2
leaq 0x50(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq 0x70(%rsp), %rdi
cmpq %r14, %rdi
je 0x85de
callq 0x6350
jmp 0x85de
movq %rax, %rdi
callq 0x86f4
movq %rax, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x85ed
callq 0x89bc
movq %rbx, %rdi
callq 0x6580
nop
// File: /workspace/github_cpp_makefile_star2_O3/jixinqi[P]lazurite/./src/lazurite_core/http_session.cpp
// Function: lazurite::http::session::do_read()
void lazurite::http::session::do_read()
{
    auto self(shared_from_this());
    socket.async_read_some(
        boost::asio::buffer(buffer),
        [this, self](boost::system::error_code ec, std::size_t length)
        {
            if (ec)
            {
                return;
            }

            _request_parser.append_msg(buffer,length);

            if (!_request_parser.do_parse())
            {
                return;
            }

            if (!_request_parser.msg_end())
            {
                do_read();
            }
            else
            {
                do_write();
            }
        }
    );
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x50, %rsp
movq %rdi, %rbx
leaq 0x40(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x11e02
movq %rbx, 0x10(%rsp)
movq (%r14), %rcx
movq 0x8(%r14), %rax
movq %rcx, 0x18(%rsp)
movq %rax, 0x20(%rsp)
testq %rax, %rax
je 0x10eae
movq 0xf120(%rip), %rcx      # 0x1ffc0
cmpb $0x0, (%rcx)
je 0x10eaa
incl 0x8(%rax)
jmp 0x10eae
lock
incl 0x8(%rax)
movq 0x30(%rbx), %r15
leaq 0x10(%rsp), %rax
movq %rax, 0x28(%rsp)
movq %fs:-0x8, %rax
testq %rax, %rax
je 0x10ed0
movq 0x8(%rax), %rdi
jmp 0x10ed2
xorl %edi, %edi
movl $0xa0, %esi
callq 0xcc1e
movq %rax, %r14
leaq 0x80(%rbx), %rax
leaq 0x50(%rbx), %rsi
movq %r14, 0x30(%rsp)
movl 0x38(%rbx), %ecx
movb 0x3c(%rbx), %dl
xorl %edi, %edi
movq %rdi, (%r14)
leaq 0x29d(%rip), %r8        # 0x1119e
movq %r8, 0x8(%r14)
movl %edi, 0x10(%r14)
movups 0x30(%r15), %xmm0
movups %xmm0, 0x18(%r14)
movq %rdi, 0x28(%r14)
leaq 0xf3a(%rip), %r8        # 0x11e58
movq %r8, 0x30(%r14)
movl %ecx, 0x38(%r14)
movb %dl, 0x3c(%r14)
movq %rax, 0x40(%r14)
movq $0x1000, 0x48(%r14)     # imm = 0x1000
movl %edi, 0x50(%r14)
movaps 0x10(%rsp), %xmm0
movups %xmm0, 0x58(%r14)
movq 0x20(%rsp), %rax
movq %rdi, 0x20(%rsp)
movq %rax, 0x68(%r14)
movq %rdi, 0x18(%rsp)
leaq 0x70(%r14), %rdi
callq 0xf870
movq %r14, 0x38(%rsp)
testb $0x3, 0x3c(%rbx)
jne 0x10f87
leaq 0x3c(%rbx), %rsi
movq %r14, %rcx
addq $0x18, %rcx
movl 0x38(%rbx), %edi
movl $0x1, %edx
callq 0xf907
testb %al, %al
je 0x10fe6
movq 0x28(%r15), %rdi
movl 0x38(%rbx), %edx
addq $0x40, %rbx
movl $0x1, (%rsp)
xorl %esi, %esi
movq %rbx, %rcx
movq %r14, %r8
xorl %r9d, %r9d
callq 0xf9f0
leaq 0x30(%rsp), %rax
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
leaq 0x28(%rsp), %rdi
callq 0x1141e
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x10fcd
callq 0x89bc
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x10fdc
callq 0x89bc
addq $0x50, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq 0x28(%r15), %rax
movq 0x28(%rax), %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0xc8ce
jmp 0x10fa9
jmp 0x1100b
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x1141e
jmp 0x11016
movq %rax, %rdi
callq 0x86f4
movq %rax, %rbx
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x11025
callq 0x89bc
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x11034
callq 0x89bc
movq %rbx, %rdi
callq 0x6580
// File: /workspace/github_cpp_makefile_star2_O3/jixinqi[P]lazurite/./src/lazurite_core/http_session.cpp
// Function: lazurite::http::session::do_write()
void lazurite::http::session::do_write()
{
    auto self(shared_from_this());
    route_ptr->run_handle(_request_parser.get_request(),_response_build.get_response());
    http_response_msg = _response_build.complete_msg();
    boost::asio::async_write(
        socket,
        boost::asio::buffer(http_response_msg, http_response_msg.length()),
        [this, self](boost::system::error_code ec, std::size_t /*length*/)
        {
            if (ec)
            {
                return;
            }
        }
    );
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdi, %rbx
leaq 0x8(%rsp), %rdi
movq %rbx, %rsi
callq 0x11e02
movq 0x20(%rbx), %r15
leaq 0x10a0(%rbx), %rdi
callq 0x13220
movq %rax, %r12
leaq 0x11c8(%rbx), %r14
movq %r14, %rdi
callq 0x126b4
movq %r15, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0x13a00
leaq 0x18(%rsp), %rdi
movq %r14, %rsi
callq 0x123c4
leaq 0x1080(%rbx), %rdi
leaq 0x18(%rsp), %r14
movq %r14, %rsi
callq 0x6410
movq (%r14), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x110ba
callq 0x6350
movq 0x1088(%rbx), %rax
movq %rax, %rcx
testq %rax, %rax
je 0x110d0
movq 0x1080(%rbx), %rcx
leaq 0x30(%rbx), %rdi
movq 0x8(%rsp), %rdx
movq 0x10(%rsp), %rsi
testq %rsi, %rsi
je 0x110f9
movq 0xeed6(%rip), %r8       # 0x1ffc0
cmpb $0x0, (%r8)
je 0x110f5
incl 0x8(%rsi)
jmp 0x110f9
lock
incl 0x8(%rsi)
leaq 0x18(%rsp), %r14
movq %rdi, (%r14)
movq %rcx, 0x8(%r14)
movq %rax, 0x10(%r14)
movq $0x0, 0x18(%r14)
movl $0x0, 0x20(%r14)
movq %rbx, 0x28(%r14)
movq %rdx, 0x30(%r14)
movq %rsi, 0x38(%r14)
leaq 0x58(%rsp), %rbx
movq %rbx, %rdi
callq 0x963a
movq %r14, %rdi
movq %rbx, %rsi
xorl %edx, %edx
movl $0x1, %ecx
callq 0x1160e
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x11153
callq 0x89bc
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x11162
callq 0x89bc
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x11187
callq 0x89bc
jmp 0x11187
jmp 0x11184
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x11196
callq 0x89bc
movq %rbx, %rdi
callq 0x6580
// File: /workspace/github_cpp_makefile_star2_O3/jixinqi[P]lazurite/./src/lazurite_core/http_response.cpp
// Function: lazurite::http::response::error_msg_body()
void lazurite::http::response::error_msg_body()
{
    _msg_body.clear();
    _msg_body.append(std::to_string(_status_code))
             .append(" ")
             .append(_phrase);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
leaq 0x28(%rdi), %r14
movq $0x0, 0x30(%rdi)
movq 0x28(%rdi), %rax
movb $0x0, (%rax)
movzwl (%rdi), %ebp
movl $0x1, %r15d
cmpl $0xa, %ebp
jb 0x12330
movl $0x2, %r15d
cmpw $0x64, %bp
jb 0x12330
movl $0x3, %r15d
cmpl $0x3e8, %ebp            # imm = 0x3E8
jb 0x12330
cmpl $0x2710, %ebp           # imm = 0x2710
movl $0x5, %r15d
sbbl $0x0, %r15d
movl %r15d, %esi
leaq 0x18(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x8(%rsp), %r12
movq %r12, %rdi
movl $0x2d, %edx
callq 0x63d0
movq (%r12), %rdi
movl %r15d, %esi
movl %ebp, %edx
callq 0x126b8
movq (%r12), %rsi
movq 0x8(%r12), %rdx
movq %r14, %rdi
callq 0x6120
leaq 0x3cc8(%rip), %rsi      # 0x1603c
movq %rax, %rdi
callq 0x6630
movq 0x8(%rbx), %rsi
movq 0x10(%rbx), %rdx
movq %rax, %rdi
callq 0x6120
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x1239b
callq 0x6350
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x123bc
callq 0x6350
movq %rbx, %rdi
callq 0x6580
// File: /workspace/github_cpp_makefile_star2_O3/jixinqi[P]lazurite/./src/lazurite_core/http_request.cpp
// Function: lazurite::http::request_parser::append_msg(std::array<unsigned char, 4096ul> const&, unsigned long const&)
void lazurite::http::request_parser::append_msg(const http_msg_buffer &_http_msg_buffer, const std::size_t &_length)
{
    std::string msg;
    for (std::size_t i = 0; i != _length; i++)
    {
        msg.push_back(_http_msg_buffer.at(i));
    }
    _request.append_raw_msg(msg);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
leaq 0x18(%rsp), %r13
movq %r13, -0x10(%r13)
movq $0x0, -0x8(%r13)
movb $0x0, (%r13)
cmpq $0x0, (%rdx)
je 0x129ec
movq %rdx, %r14
movq %rsi, %r15
xorl %ebp, %ebp
leaq 0x8(%rsp), %r12
cmpq $0x1000, %rbp           # imm = 0x1000
je 0x12a1b
movsbl (%r15,%rbp), %esi
movq %r12, %rdi
callq 0x6310
incq %rbp
cmpq (%r14), %rbp
jne 0x129c2
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
jmp 0x129f1
xorl %edx, %edx
movq %r13, %rsi
addq $0x18, %rbx
movq %rbx, %rdi
callq 0x6120
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x12a0c
callq 0x6350
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x3839(%rip), %rdi      # 0x1625b
movl $0x1000, %esi           # imm = 0x1000
movl $0x1000, %edx           # imm = 0x1000
xorl %eax, %eax
callq 0x64e0
jmp 0x12a37
jmp 0x12a37
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x12a49
callq 0x6350
movq %rbx, %rdi
callq 0x6580
nop
// File: /workspace/github_cpp_makefile_star2_O3/jixinqi[P]lazurite/./src/lazurite_core/http_request.cpp
// Function: lazurite::http::request_parser::do_parse()
bool lazurite::http::request_parser::do_parse()
{
    if (_request.first_line_end_index() == 0)
    {
        if (!parser_first_line())
        {
            return false;
        }
    }
    if (_request.first_line_end_index() != 0 && _request.header_end_index() == 0)
    {
        if (!parser_header())
        {
            return false;
        }
    }
    if (_request.header_end_index() != 0 && _request.body_end_index() == 0)
    {
        if (!parser_body())
        {
            return false;
        }
    }
    return true;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
cmpq $0x0, (%rdi)
je 0x12a67
movq 0x8(%rbx), %rax
testq %rax, %rax
jne 0x12a98
jmp 0x12a88
movq %rbx, %rdi
callq 0x12ab8
testb %al, %al
je 0x12ab4
cmpq $0x0, (%rbx)
setne %cl
movq 0x8(%rbx), %rax
testq %rax, %rax
sete %dl
testb %dl, %cl
je 0x12a98
movq %rbx, %rdi
callq 0x12db8
testb %al, %al
je 0x12ab4
movq 0x8(%rbx), %rax
testq %rax, %rax
je 0x12ab0
cmpq $0x0, 0x10(%rbx)
jne 0x12ab0
movq %rbx, %rdi
callq 0x13186
testb %al, %al
je 0x12ab4
movb $0x1, %al
jmp 0x12ab6
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O3/jixinqi[P]lazurite/./src/lazurite_core/http_request.cpp
// Function: lazurite::http::request_parser::parser_body()
bool lazurite::http::request_parser::parser_body()
{
    if (_request.request_method() == "GET")
    {
        _request.body_end_index(_request.raw_msg().length());
        return true;
    }
    else
    {
        return false;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x38(%rdi), %rsi
movq 0x40(%rdi), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x9cd8
leaq 0x309c(%rip), %rsi      # 0x16257
movq %r14, %rdi
callq 0x6110
movl %eax, %ebp
movq (%r14), %rdi
cmpq %r15, %rdi
je 0x131d2
callq 0x6350
testl %ebp, %ebp
jne 0x13206
leaq 0x8(%rsp), %r14
movq %r15, (%r14)
movq 0x18(%rbx), %rsi
movq 0x20(%rbx), %rdx
addq %rsi, %rdx
movq %r14, %rdi
callq 0x9cd8
movq 0x8(%r14), %rax
movq %rax, 0x10(%rbx)
movq (%r14), %rdi
cmpq %r15, %rdi
je 0x13206
callq 0x6350
testl %ebp, %ebp
sete %al
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/jixinqi[P]lazurite/./src/lazurite_core/http_route.cpp
// Function: lazurite::http::route::run_handle(lazurite::http::request&, lazurite::http::response&)
void lazurite::http::route::run_handle(request &_request, response &_response)
{
    std::string path = _request.request_uri();
    auto it = route_table.find(path);
    if (it == route_table.end())
    {
        _response.status_code(404);
        _response.phrase("Not Found");
        _response.error_msg_body();
    }
    else
    {
        route_table[path](_request, _response);
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
leaq 0x28(%rsp), %r12
movq %r12, %rdi
callq 0x128f2
movq %r15, %rdi
movq %r12, %rsi
callq 0x13dfa
leaq 0x8(%r15), %rcx
cmpq %rcx, %rax
je 0x13a57
leaq 0x28(%rsp), %rsi
movq %r15, %rdi
callq 0x13b88
cmpq $0x0, 0x10(%rax)
je 0x13ac8
movq %rax, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq *0x18(%rax)
jmp 0x13aa9
movq %rbx, %rdi
movl $0x194, %esi            # imm = 0x194
callq 0x12270
leaq 0x18(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x28c3(%rip), %rsi      # 0x16337
leaq 0x28c5(%rip), %rdx      # 0x16340
leaq 0x8(%rsp), %rdi
callq 0x8a2c
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x12274
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x13aa1
callq 0x6350
movq %rbx, %rdi
callq 0x122d4
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x13abc
callq 0x6350
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
callq 0x61a0
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x13ae6
callq 0x6350
jmp 0x13ae6
jmp 0x13ae3
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x13af9
callq 0x6350
movq %rbx, %rdi
callq 0x6580
nop
// File: /workspace/github_cpp_makefile_star2_O3/jeffchan[P]blockchain-parser/Base58.cpp
// Function: BigNumberEqualsAdditionByBigInt(BigNumber*, BigNumber*)
bool BigNumberEqualsAdditionByBigInt(BigNumber * a, BigNumber * b)
{
	if (a->length < b->length) 
	{
		// Make certain expansion of data is empty
		memset(a->data + a->length, 0, b->length - a->length);
		a->length = b->length;
	}
	// a->length >= b->length
	bool overflow = 0;
	uint8_t x = 0;
	for (; x < b->length; x++) 
	{
		a->data[x] += b->data[x] + overflow;
		// a->data[x] now equals the result of the addition.
		// The overflow will never go beyond 1. Imagine a->data[x] == 0xff, b->data[x] == 0xff and the overflow is 1, the new overflow is still 1 and a->data[x] is 0xff. Therefore it does work.
		overflow = (a->data[x] < (b->data[x] + overflow))? 1 : 0;
	}
	// Propagate overflow up the whole length of a if necessary
	while (overflow && x < a->length)
		overflow = ! ++a->data[x++]; // Index at x, increment x, increment data, test new value for overflow.
	if (overflow) 
	{ // Add extra byte
		a->length++;
		assert( a->length < MAX_BIG_NUMBER );
		a->data[a->length - 1] = 1;
	}
	return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movl 0x100(%rdi), %edi
movl 0x100(%rsi), %eax
movl %eax, %edx
subl %edi, %edx
jbe 0x2469
addq %rbx, %rdi
xorl %esi, %esi
callq 0x20b0
movl 0x100(%r14), %edi
movl %edi, 0x100(%rbx)
movl %edi, %eax
testl %eax, %eax
je 0x24cd
xorl %eax, %eax
xorl %ecx, %ecx
movzbl %al, %eax
movzbl %cl, %ecx
movb (%r14,%rax), %dl
addb %cl, %dl
addb (%rbx,%rax), %dl
movb %dl, (%rbx,%rax)
movzbl %dl, %edx
movzbl (%r14,%rax), %esi
addl %ecx, %esi
cmpl %edx, %esi
seta %cl
incb %al
movzbl %al, %r8d
cmpl %r8d, 0x100(%r14)
ja 0x2471
cmpl %edx, %esi
jbe 0x24cd
movzbl %al, %ecx
cmpl %ecx, %edi
jbe 0x24b6
leal 0x1(%rcx), %eax
incb (%rbx,%rcx)
je 0x24a5
jmp 0x24cd
leal 0x1(%rdi), %eax
movl %eax, 0x100(%rbx)
cmpl $0xff, %edi
jae 0x24d4
movl %edi, %eax
movb $0x1, (%rbx,%rax)
movb $0x1, %al
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x14b29(%rip), %rdi     # 0x17004
leaq 0x14b3d(%rip), %rsi     # 0x1701f
leaq 0x14b41(%rip), %rcx     # 0x1702a
movl $0xb5, %edx
callq 0x20c0
// File: /workspace/github_cpp_makefile_star2_O3/jeffchan[P]blockchain-parser/Base58.cpp
// Function: BigNumberEqualsDivisionBy58(BigNumber*, unsigned char*)
void BigNumberEqualsDivisionBy58(BigNumber * a, uint8_t * ans)
{
	if (a->length == 1 && ! a->data[0]) // "a" is zero
		return;
	// base-256 long division.
	uint16_t temp = 0;
	for (uint32_t x = a->length; x--;) 
	{
		temp <<= 8;
		temp |= a->data[x];
		ans[x] = (uint8_t)(temp / 58);
		temp -= ans[x] * 58;
	}
	if (! ans[a->length-1]) // If last byte is zero, adjust length.
		a->length--;
	memmove(a->data, ans, a->length); // Done calculation. Move ans to "a".
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl 0x100(%rdi), %eax
testl %eax, %eax
je 0x2542
cmpl $0x1, %eax
jne 0x250b
cmpb $0x0, (%rdi)
je 0x255b
leal -0x1(%rax), %ecx
xorl %edx, %edx
shll $0x8, %edx
movzbl (%rdi,%rcx), %r8d
orl %edx, %r8d
movzwl %r8w, %edx
imull $0x469f, %edx, %r9d     # imm = 0x469F
shrl $0x14, %r9d
imull $-0x3a, %r9d, %edx
addl %r8d, %edx
movb %r9b, (%rsi,%rcx)
decq %rcx
decl %eax
jne 0x2510
movl 0x100(%rdi), %eax
leal -0x1(%rax), %edx
cmpb $0x0, (%rsi,%rdx)
je 0x254f
movl %eax, %edx
jmp 0x2555
movl %edx, 0x100(%rdi)
popq %rbp
jmp 0x2290
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/jeffchan[P]blockchain-parser/Base58.cpp
// Function: BigNumberEqualsMultiplicationByUInt8(BigNumber*, unsigned char)
bool BigNumberEqualsMultiplicationByUInt8(BigNumber * a, uint8_t b)
{
	if (! b) 
	{
		// Mutliplication by zero. "a" becomes zero
		a->length = 1;
		a->data[0] = 0;
		return true;
	}
	if (a->length == 1 && ! a->data[0]) // "a" is zero
		return true;
	// Multiply b by each byte and then add to answer
	uint16_t carry = 0;
	uint8_t x = 0;
	for (; x < a->length; x++) 
	{
		carry = carry + a->data[x] * b; // Allow for overflow onto next byte.
		a->data[x] = (uint8_t)carry;
		carry >>= 8;
	}
	if (carry) 
	{ // If last byte is not zero, adjust length.
		a->length++;
		assert( a->length < MAX_BIG_NUMBER );
		a->data[x] = (uint8_t)carry;
	}
	return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
testl %esi, %esi
je 0x25c9
movl 0x100(%rdi), %eax
testl %eax, %eax
je 0x25d6
cmpl $0x1, %eax
jne 0x257b
cmpb $0x0, (%rdi)
je 0x25d6
movzbl %sil, %ecx
xorl %edx, %edx
movzwl %cx, %esi
xorl %ecx, %ecx
movzbl %dl, %edx
movzbl (%rdi,%rdx), %r8d
imull %esi, %r8d
movl %ecx, %ebx
addl %r8d, %ebx
movb %bl, (%rdi,%rdx)
movzbl %bh, %ecx
incb %dl
movzbl %dl, %r8d
cmpl %r8d, %eax
ja 0x2586
movzwl %bx, %edx
cmpl $0x100, %edx            # imm = 0x100
jb 0x25d6
leal 0x1(%rax), %edx
movl %edx, 0x100(%rdi)
cmpl $0xff, %eax
jae 0x25df
movb %cl, (%rdi,%r8)
jmp 0x25d6
movl $0x1, 0x100(%rdi)
movb $0x0, (%rdi)
movb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
leaq 0x14a1e(%rip), %rdi     # 0x17004
leaq 0x14a32(%rip), %rsi     # 0x1701f
leaq 0x14a75(%rip), %rcx     # 0x17069
movl $0xe2, %edx
callq 0x20c0
// File: /workspace/github_cpp_makefile_star2_O3/jeffchan[P]blockchain-parser/Base58.cpp
// Function: BigNumberEqualsSubtractionByBigInt(BigNumber*, BigNumber*)
void BigNumberEqualsSubtractionByBigInt(BigNumber * a, BigNumber * b)
{
	uint8_t x;
	bool carry = 0;
	// This can be made much nicer when using signed arithmetic, 
	// carry and tmp could be merged to be 0 or -1 between rounds.
	for (x = 0; x < b->length; x++) {
		uint16_t tmp = carry + b->data[x];
		carry = a->data[x] < tmp;
		a->data[x] -= (uint8_t)tmp;
	}
	if (carry)
		a->data[x]--;
	BigNumberNormalise(a);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
cmpl $0x0, 0x100(%rsi)
je 0x264d
xorl %eax, %eax
xorl %r8d, %r8d
movzbl %r8b, %edx
andl $0x1, %edx
movzbl %al, %eax
movzbl (%rsi,%rax), %ecx
addl %edx, %ecx
movzbl (%rdi,%rax), %edx
cmpw %dx, %cx
seta %r8b
movl %edx, %r9d
subb %cl, %r9b
movb %r9b, (%rdi,%rax)
incb %al
movzbl %al, %r9d
cmpl %r9d, 0x100(%rsi)
ja 0x2610
cmpw %dx, %cx
jbe 0x264d
decb (%rdi,%r9)
movl 0x100(%rdi), %eax
cmpq $0x2, %rax
jb 0x2677
movq %rax, %rcx
decq %rcx
movl %ecx, %edx
cmpb $0x0, (%rdi,%rdx)
jne 0x2677
decl %eax
movl %eax, 0x100(%rdi)
decq %rcx
cmpl $0x1, %eax
ja 0x265f
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/jeffchan[P]blockchain-parser/Base58.cpp
// Function: BigNumberEqualsSubtractionByUInt8(BigNumber*, unsigned char)
void BigNumberEqualsSubtractionByUInt8(BigNumber * a, uint8_t b)
{
	uint8_t carry = b;
	uint8_t x = 0;
	for (; a->data[x] < carry; x++){
		a->data[x] = 255 - carry + a->data[x] + 1;
		carry = 1;
	}
	a->data[x] -= carry;
	BigNumberNormalise(a);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movb (%rdi), %cl
movl %ecx, %edx
movq %rdi, %rax
subb %sil, %dl
jae 0x26d2
movb $0x1, %sil
movb $0x1, %r8b
movq %rdi, %rax
movb %dl, (%rax)
movzbl %r8b, %r8d
leaq (%rdi,%r8), %rax
movb (%rdi,%r8), %cl
incb %r8b
movb $-0x1, %dl
testb %cl, %cl
je 0x26bb
subb %sil, %cl
movb %cl, (%rax)
movl 0x100(%rdi), %eax
cmpq $0x2, %rax
jb 0x2701
movq %rax, %rcx
decq %rcx
movl %ecx, %edx
cmpb $0x0, (%rdi,%rdx)
jne 0x2701
decl %eax
movl %eax, 0x100(%rdi)
decq %rcx
cmpl $0x1, %eax
ja 0x26e9
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/jeffchan[P]blockchain-parser/Base58.cpp
// Function: BigNumberFromPowUInt8(BigNumber*, unsigned char, unsigned char)
bool BigNumberFromPowUInt8(BigNumber * bi, uint8_t a, uint8_t b)
{
	bi->length = 1;
	bi->data[0] = 1;
	for (uint8_t x = 0; x < b; x++) {
		if (! BigNumberEqualsMultiplicationByUInt8(bi, a))
			// ERROR
			return false;
	}
	return true;
}

// Assembly:
movl $0x1, 0x100(%rdi)
movb $0x1, (%rdi)
testl %edx, %edx
je 0x2740
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebx
movq %rdi, %r14
movzbl %sil, %r15d
movq %r14, %rdi
movl %r15d, %esi
callq 0x255d
decb %bl
jne 0x2727
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
movb $0x1, %al
retq
// File: /workspace/github_cpp_makefile_star2_O3/jeffchan[P]blockchain-parser/Base58.cpp
// Function: BigNumberModuloWith58(BigNumber*)
uint8_t BigNumberModuloWith58(BigNumber * a)
{
	// Use method presented here: http://stackoverflow.com/a/10441333/238411
	uint16_t result = 0; // Prevent overflow in calculations
	for(uint32_t x = a->length - 1;; x--){
		result *= (256 % 58);
		result %= 58;
		result += a->data[x] % 58;
		result %= 58;
		if (! x)
			break;
	}
	return (uint8_t)result;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl 0x100(%rdi), %ecx
leal -0x1(%rcx), %edx
addq %rdi, %rdx
xorl %eax, %eax
movl $0x8d3dcb09, %esi       # imm = 0x8D3DCB09
shll $0x3, %eax
leal (%rax,%rax,2), %eax
movq %rax, %rdi
imulq %rsi, %rdi
shrq $0x25, %rdi
imull $0x3a, %edi, %edi
subl %edi, %eax
movb (%rdx), %dil
movl %edi, %r8d
shrb %r8b
movzbl %r8b, %r8d
imull $0x47, %r8d, %r8d
shrl $0xb, %r8d
imull $0x3a, %r8d, %r8d
subb %r8b, %dil
movzbl %dil, %edi
addl %eax, %edi
movl %edi, %eax
subl $0x3a, %eax
cmovbl %edi, %eax
decq %rdx
decl %ecx
jne 0x275a
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/jeffchan[P]blockchain-parser/Base58.cpp
// Function: encodeBase58(unsigned char const*, unsigned int, bool, char*, unsigned int)
bool encodeBase58(const uint8_t *bigNumber, // The block of memory corresponding to the 'big number'
					   uint32_t length,			 // The number of bytes in the 'big-number'; this will be 25 for a bitcoin address
					   bool isBigEndian,		 // True if the input number is in little-endian format (this will be true for a bitcoin address)
					   char *output,			 // The address to store the output string.
					   uint32_t maxStrLen)		 // the maximum length of the output string
{
	// Before passing the hash into the base58 encoder; we need to reverse the byte order.
	uint8_t hash[25];
	if ( isBigEndian )
	{
		uint32_t index = length-1;
		for (uint32_t i=0; i<25; i++)
		{
			hash[i] = bigNumber[index];
			index--;
		}
	}
	else
	{
		memcpy(hash,bigNumber,length);
	}
	// We now have the 25 byte public key address in binary; we just need to convert it to ASCII
	// This involves using large integer math to compute the base58 encoding (with check) 
	BigNumber bytes(hash,length);;
	return CBEncodeBase58(&bytes,output,maxStrLen);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x138, %rsp            # imm = 0x138
movl %r8d, %ebx
movq %rcx, %r14
movl %esi, %r15d
movq %rdi, %rsi
movl %r15d, %r12d
testl %edx, %edx
je 0x2ad9
leal -0x1(%r15), %eax
xorl %ecx, %ecx
movl %eax, %edx
movb (%rsi,%rdx), %dl
movb %dl, -0x50(%rbp,%rcx)
incq %rcx
decl %eax
cmpq $0x19, %rcx
jne 0x2ac3
jmp 0x2ae5
leaq -0x50(%rbp), %rdi
movq %r12, %rdx
callq 0x2100
cmpl $0x100, %r15d           # imm = 0x100
jae 0x2b39
leaq -0x154(%rbp), %r13
movl $0x100, %edx            # imm = 0x100
movq %r13, %rdi
xorl %esi, %esi
callq 0x20b0
leaq -0x50(%rbp), %rsi
movq %r13, %rdi
movq %r12, %rdx
callq 0x2100
movl %r15d, 0x100(%r13)
movq %r13, %rdi
movq %r14, %rsi
movl %ebx, %edx
callq 0x290a
addq $0x138, %rsp            # imm = 0x138
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x145b4(%rip), %rdi     # 0x170f4
leaq 0x144d8(%rip), %rsi     # 0x1701f
leaq 0x14e45(%rip), %rcx     # 0x17993
movl $0x2d, %edx
callq 0x20c0
// File: /workspace/github_cpp_makefile_star2_O3/jeffchan[P]blockchain-parser/Base58.cpp
// Function: decodeBase58(char const*, unsigned char*, unsigned int, bool)
uint32_t decodeBase58(const char *string,		// The base58 encoded string
					   uint8_t *output,			// The output binary buffer
					   uint32_t maxOutputLength, // The maximum output length of the binary buffer.
					   bool isBigEndian) // If the output needs to be in little endian format
{
	uint32_t ret = 0;

	BigNumber bn(NULL,0);
	if ( CBDecodeBase58(&bn,string) && bn.length <= maxOutputLength )
	{
		ret = bn.length;
		if ( isBigEndian ) // if the caller wants the number returned in little endian format; then we byte reverse the output
		{
			uint32_t index = bn.length-1;
			for (uint32_t i=0; i<bn.length; i++)
			{
				output[i] = bn.data[index];
				index--;
			}
		}
		else
		{
			memcpy(output,bn.data,bn.length);
		}
	}

	return ret;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movl %ecx, -0x2c(%rbp)
movl %edx, %r13d
movq %rsi, %rbx
movq %rdi, %r14
leaq -0x130(%rbp), %r12
xorl %r15d, %r15d
movl $0x104, %edx            # imm = 0x104
movq %r12, %rdi
xorl %esi, %esi
callq 0x20b0
movq %r12, %rdi
movq %r14, %rsi
callq 0x27a3
movl 0x100(%r12), %r14d
cmpl %r13d, %r14d
ja 0x2bf2
cmpb $0x0, -0x2c(%rbp)
je 0x2bdd
testl %r14d, %r14d
je 0x2bf2
movq %r14, %rax
negq %rax
leal -0x1(%r14), %ecx
xorl %edx, %edx
movl %ecx, %esi
movb -0x130(%rbp,%rsi), %sil
movb %sil, (%rbx,%rdx)
incq %rdx
decl %ecx
movq %rax, %rsi
addq %rdx, %rsi
jne 0x2bc0
jmp 0x2bef
leaq -0x130(%rbp), %rsi
movq %rbx, %rdi
movq %r14, %rdx
callq 0x2100
movl %r14d, %r15d
movl %r15d, %eax
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/jeffchan[P]blockchain-parser/BitcoinAddress.cpp
// Function: RIPEMD160::MDfinish(unsigned int*, unsigned char const*, unsigned int, unsigned int)
void MDfinish(uint32_t *MDbuf,const uint8_t *strptr, uint32_t lswlen, uint32_t mswlen)
{
   unsigned int i;                                 /* counter       */
   uint32_t        X[16];                             /* message words */

   memset(X, 0, 16*sizeof(uint32_t));

   /* put bytes from strptr into X */
   for (i=0; i<(lswlen&63); i++) {
      /* uint8_t i goes into word X[i div 4] at pos.  8*(i mod 4)  */
      X[i>>2] ^= (uint32_t) *strptr++ << (8 * (i&3));
   }

   /* append the bit m_n == 1 */
   X[(lswlen>>2)&15] ^= (uint32_t)1 << (8*(lswlen&3) + 7);

   if ((lswlen & 63) > 55) {
      /* length goes to next block */
      compress(MDbuf, X);
      memset(X, 0, 16*sizeof(uint32_t));
   }

   /* append length in bits*/
   X[14] = lswlen << 3;
   X[15] = (lswlen >> 29) | (mswlen << 3);
   compress(MDbuf, X);

   return;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %ecx, %ebx
movl %edx, %r15d
movq %rdi, %r14
xorps %xmm0, %xmm0
movaps %xmm0, -0x40(%rbp)
movaps %xmm0, -0x50(%rbp)
movaps %xmm0, -0x60(%rbp)
movaps %xmm0, -0x70(%rbp)
movl %edx, %eax
andl $0x3f, %eax
je 0x3fa1
xorl %edx, %edx
xorl %edi, %edi
movzbl (%rsi,%rdi), %r8d
movl %edx, %ecx
andb $0x18, %cl
shll %cl, %r8d
movl %edi, %ecx
andl $-0x4, %ecx
xorl %r8d, -0x70(%rbp,%rcx)
incq %rdi
addl $0x8, %edx
cmpl %edi, %eax
jne 0x3f80
leal (,%r15,8), %r12d
movl $0x80, %edx
movl %r12d, %ecx
shll %cl, %edx
movl %r15d, %ecx
andl $0x3c, %ecx
xorl %edx, -0x70(%rbp,%rcx)
cmpl $0x38, %eax
jb 0x3fe8
leaq -0x70(%rbp), %r13
movq %r14, %rdi
movq %r13, %rsi
callq 0x2c1f
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%r13)
movaps %xmm0, 0x20(%r13)
movaps %xmm0, 0x10(%r13)
movaps %xmm0, (%r13)
leaq -0x70(%rbp), %rsi
movl %r12d, 0x38(%rsi)
shldl $0x3, %r15d, %ebx
movl %ebx, 0x3c(%rsi)
movq %r14, %rdi
callq 0x2c1f
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq