LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/sharmaeklavya2[P]ctmeans/src/lib/nniter_kd.cpp
// Function: point_range_norm(int, double const*, double const*, double const*)
double point_range_norm(int d, const double* p, const double* rmin, const double* rmax) {
    double res = 0;
    for(int j=0; j<d; ++j) {
        double p1 = rmin[j] - p[j];
        if(p1 > 0) {
            res += p1*p1;
        }
        else {
            double p3 = p[j] - rmax[j];
            if(p3 > 0) {
                res += p3*p3;
            }
        }
    }
    return res;
}

// Assembly:
testl %edi, %edi
jle 0x619c
movl %edi, %eax
xorpd %xmm1, %xmm1
xorl %edi, %edi
xorpd %xmm0, %xmm0
movsd (%rdx,%rdi,8), %xmm3
movsd (%rsi,%rdi,8), %xmm2
subsd %xmm2, %xmm3
ucomisd %xmm1, %xmm3
jbe 0x6169
mulsd %xmm3, %xmm3
addsd %xmm3, %xmm0
jmp 0x6193
subsd (%rcx,%rdi,8), %xmm2
movapd %xmm2, %xmm3
mulsd %xmm2, %xmm3
addsd %xmm0, %xmm3
xorpd %xmm4, %xmm4
cmpltsd %xmm2, %xmm4
andpd %xmm4, %xmm3
andnpd %xmm0, %xmm4
orpd %xmm3, %xmm4
movapd %xmm4, %xmm0
incq %rdi
cmpq %rdi, %rax
jne 0x614b
retq
xorps %xmm0, %xmm0
retq
// File: /workspace/github_cpp_makefile_star2_O3/sharmaeklavya2[P]ctmeans/src/lib/nniter_kd.cpp
// Function: NNIterKD::get_neighbor_node()
KDHeapElem NNIterKD::get_neighbor_node() {
    if(pq.empty()) {
        std::fprintf(stderr, "NNIterKD: No neighbors left\n");
    }
    KDHeapElem top(pq.top());
    pq.pop();
    if(top.type == 'k') {
        pq.emplace(top.point, C, x_beg);
        if(top.kdnode->left != nullptr) {
            pq.emplace(top.kdnode->left, C, x_beg);
        }
        if(top.kdnode->right != nullptr) {
            pq.emplace(top.kdnode->right, C, x_beg);
        }
    }
    else if(top.type == 'p') {
        counter++;
    }
    heap_ops++;
    return top;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x8(%rsi), %r15
movq 0x8(%rsi), %rax
cmpq 0x10(%rsi), %rax
je 0x624d
movq 0x10(%rax), %rcx
movq %rcx, 0x10(%rbx)
movups (%rax), %xmm0
movups %xmm0, (%rbx)
movq %r15, %rdi
callq 0x62b8
movzbl 0xc(%rbx), %eax
cmpl $0x70, %eax
je 0x6239
cmpl $0x6b, %eax
jne 0x623d
leaq 0x8(%rbx), %rsi
leaq 0x28(%r14), %r12
leaq 0x48(%r14), %r13
movq %r15, %rdi
movq %r12, %rdx
movq %r13, %rcx
callq 0x633a
movq (%rbx), %rsi
cmpq $0x0, 0x10(%rsi)
je 0x621e
addq $0x10, %rsi
movq %r15, %rdi
movq %r12, %rdx
movq %r13, %rcx
callq 0x63f6
movq (%rbx), %rsi
cmpq $0x0, 0x18(%rsi)
je 0x623d
addq $0x18, %rsi
movq %r15, %rdi
movq %r12, %rdx
movq %r13, %rcx
callq 0x63f6
jmp 0x623d
incl 0x4(%r14)
incl (%r14)
movq %rbx, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq 0x5d84(%rip), %rax      # 0xbfd8
movq (%rax), %rcx
leaq 0x1f5c(%rip), %rdi      # 0x81ba
movl $0x1c, %esi
movl $0x1, %edx
callq 0x22c0
movq (%r15), %rax
jmp 0x61c1
nop
// File: /workspace/github_cpp_makefile_star2_O3/sharmaeklavya2[P]ctmeans/src/lib/nniter_kd.cpp
// Function: NNIterKD::get_neighbor()
std::pair<double, int> NNIterKD::get_neighbor() {
    if(pq.empty()) {
        std::fprintf(stderr, "NNIterKD: No neighbors left\n");
    }
    KDHeapElem heap_elem;
    do {
        heap_elem = get_neighbor_node();
    } while(heap_elem.type != 'p');
    return std::pair<double, int>(heap_elem.prio, heap_elem.point);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movq 0x8(%rdi), %rax
cmpq 0x10(%rdi), %rax
je 0x62b1
movq %rsp, %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x61a0
cmpb $0x70, 0xc(%rsp)
jne 0x628d
movl 0x8(%rsp), %eax
movsd 0x10(%rsp), %xmm0
addq $0x18, %rsp
popq %rbx
popq %r14
retq
callq 0x23f1
jmp 0x628a
// File: /workspace/github_cpp_makefile_star2_O3/sharmaeklavya2[P]ctmeans/src/main.cpp
// Function: output_vec_vec_to_file(char const*, char const*, int, int, std::vector<std::vector<int, std::allocator<int>>, std::allocator<std::vector<int, std::allocator<int>>>> const&)
double output_vec_vec_to_file(const char* fname, const char* name, int n, int c, const vector<vector<int> >& V) {
    long long sum = 0;
    int count = 0;
    FILE* fp = fopen(fname, "w");
    for(const vector<int>& v: V) {
        if(v.size() > 0) {
            count += v.size();
            sum += v[0];
            fprintf(fp, "%lf", double(v[0])/n);
            for(unsigned i=1; i<v.size(); ++i) {
                sum += v[i];
                fprintf(fp, " %lf", double(v[i])/n);
            }
        }
        fprintf(fp, "\n");
    }
    fclose(fp);
    return double(sum) / count;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r8, %r14
movl %edx, %ebp
leaq 0x17e7(%rip), %rsi      # 0x8176
callq 0x2180
movq %rax, %rbx
movq (%r14), %r12
movq 0x8(%r14), %r13
cmpq %r13, %r12
je 0x6a8d
cvtsi2sd %ebp, %xmm1
xorl %ebp, %ebp
leaq 0x17b7(%rip), %r15      # 0x816b
xorl %r14d, %r14d
movsd %xmm1, 0x8(%rsp)
movq %r13, 0x10(%rsp)
movq (%r12), %rax
movq 0x8(%r12), %rcx
subq %rax, %rcx
je 0x6a5b
shrq $0x2, %rcx
addl %ecx, %r14d
movslq (%rax), %rax
addq %rax, %rbp
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
divsd %xmm1, %xmm0
movq %rbx, %rdi
leaq 0x1776(%rip), %rsi      # 0x816c
movb $0x1, %al
callq 0x21f0
movq (%r12), %rax
movq 0x8(%r12), %rcx
subq %rax, %rcx
cmpq $0x5, %rcx
jb 0x6a5b
movl $0x1, %ecx
movl $0x2, %r13d
movslq (%rax,%rcx,4), %rax
addq %rax, %rbp
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
divsd 0x8(%rsp), %xmm0
movq %rbx, %rdi
movq %r15, %rsi
movb $0x1, %al
callq 0x21f0
movl %r13d, %ecx
movq (%r12), %rax
movq 0x8(%r12), %rdx
subq %rax, %rdx
sarq $0x2, %rdx
incl %r13d
cmpq %rcx, %rdx
ja 0x6a1a
movq 0x10(%rsp), %r13
movl $0xa, %edi
movq %rbx, %rsi
callq 0x21c0
addq $0x18, %r12
cmpq %r13, %r12
movsd 0x8(%rsp), %xmm1
jne 0x69c2
xorps %xmm1, %xmm1
cvtsi2sd %rbp, %xmm1
xorps %xmm0, %xmm0
cvtsi2sd %r14d, %xmm0
jmp 0x6a95
xorpd %xmm0, %xmm0
xorpd %xmm1, %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
movq %rbx, %rdi
callq 0x2150
movsd 0x8(%rsp), %xmm0
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/sharmaeklavya2[P]ctmeans/src/lib/vecio.h
// Function: void savetxt<__gnu_cxx::__normal_iterator<int const*, std::vector<int, std::allocator<int>>>>(char const*, __gnu_cxx::__normal_iterator<int const*, std::vector<int, std::allocator<int>>>, __gnu_cxx::__normal_iterator<int const*, std::vector<int, std::allocator<int>>>)
void savetxt(const char* fname, IterT begin, IterT end) {
    FILE* fp = fopen(fname, "w");
    if(fp == NULL) {
        fprintf(stderr, "Couldn't open %s\n", fname);
        perror("savetxt");
    }
    else {
        output(fp, begin, end);
        fclose(fp);
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r12
leaq 0xbfe(%rip), %rsi       # 0x8176
callq 0x2180
testq %rax, %rax
je 0x75bd
movq %rax, %r15
cmpq %rbx, %r14
je 0x75aa
leaq 0xae7(%rip), %r12       # 0x8078
movl (%r14), %edx
movq %r15, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x21f0
addq $0x4, %r14
cmpq %rbx, %r14
jne 0x7591
movq %r15, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x2150
movq %r12, %rdi
callq 0x2523
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/ruankotovich[P]B-Tree/src/seek1.cpp
// Function: main
int main(int argc, char** argv)
{
    int id;
    
    if(argc>1){ id = atoi(argv[1]);}else{std::cin >> id;}
    PrimaryBTree btree;
    
    Article_t a;
    FILE* indexFile = fopen("files/primaryindex.block", "rb");

    btree.readRoot(indexFile);

    if (indexFile != NULL) {
        auto result = btree.getArticle(id, &a, indexFile);

        if (result.first) {
            cout << a.toString();
            cout << "\n\nNumber of block read in PrimaryBTree Index to find the record: " << result.second + 1;
            fseek(indexFile, 0, SEEK_END);
            cout << "\n\nTotal number of blocks in primary index file: " << ((ftell(indexFile) / sizeof(AbstractBlock_t))) << "\n";
        } else {
            cout << "Record not found.\n";
        }
    }
    else {
        cout << "There isn't a primary index file.\n";
    }

    return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x9a0, %rsp            # imm = 0x9A0
cmpl $0x2, %edi
jl 0x1aa8
movq 0x8(%rsi), %rdi
callq 0x1140
movl %eax, 0xc(%rsp)
jmp 0x1ab9
movq 0x3531(%rip), %rdi      # 0x4fe0
leaq 0xc(%rsp), %rsi
callq 0x1070
leaq 0x30(%rsp), %r14
movq %r14, %rdi
callq 0x1c9a
leaq 0x54(%rsp), %rdi
callq 0x2728
leaq 0x154a(%rip), %rdi      # 0x3021
leaq 0x155c(%rip), %rsi      # 0x303a
callq 0x1110
movq %rax, %rbx
movq %r14, %rdi
movq %rax, %rsi
callq 0x1d20
testq %rbx, %rbx
je 0x1bd5
movl 0xc(%rsp), %esi
leaq 0x30(%rsp), %rdi
leaq 0x54(%rsp), %rdx
movq %rbx, %rcx
callq 0x2598
movq %rax, %r14
testb $0x1, %r14b
je 0x1bea
leaq 0x10(%rsp), %r15
leaq 0x54(%rsp), %rsi
movq %r15, %rdi
callq 0x27b4
movq (%r15), %rsi
movq 0x8(%r15), %rdx
movq 0x3493(%rip), %rdi      # 0x4fd0
callq 0x1100
shrq $0x20, %r14
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1b61
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x10e0
movq 0x3468(%rip), %r15      # 0x4fd0
leaq 0x14ce(%rip), %rsi      # 0x303d
movl $0x41, %edx
movq %r15, %rdi
callq 0x1100
incl %r14d
movq %r15, %rdi
movl %r14d, %esi
callq 0x1170
movq %rbx, %rdi
xorl %esi, %esi
movl $0x2, %edx
callq 0x10f0
leaq 0x14df(%rip), %rsi      # 0x307f
movl $0x30, %edx
movq %r15, %rdi
callq 0x1100
movq %rbx, %rdi
callq 0x1030
shrq $0xc, %rax
movq %r15, %rdi
movq %rax, %rsi
callq 0x1080
leaq 0x1538(%rip), %rsi      # 0x3103
movl $0x1, %edx
movq %rax, %rdi
jmp 0x1bfd
movq 0x33f4(%rip), %rdi      # 0x4fd0
leaq 0x14e0(%rip), %rsi      # 0x30c3
movl $0x22, %edx
jmp 0x1bfd
movq 0x33df(%rip), %rdi      # 0x4fd0
leaq 0x14b8(%rip), %rsi      # 0x30b0
movl $0x12, %edx
callq 0x1100
xorl %eax, %eax
addq $0x9a0, %rsp            # imm = 0x9A0
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1c2f
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x10e0
movq %rbx, %rdi
callq 0x1180
nop
// File: /workspace/github_cpp_makefile_star2_O3/madpilot[P]mDNSResolver/test/catch.h
// Function: Catch::getResultCapture()
IResultCapture& getResultCapture() {
        if( IResultCapture* capture = getCurrentContext().getResultCapture() )
            return *capture;
        else
            throw std::logic_error( "No result capture instance" );
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
callq 0xd3e3
movq (%rax), %rcx
movq %rax, %rdi
callq *0x10(%rcx)
testq %rax, %rax
je 0xb42b
popq %rbx
popq %r14
popq %rbp
retq
movl $0x10, %edi
callq 0xa1a0
movq %rax, %rbx
leaq 0x4148c(%rip), %rsi     # 0x4c8cb
movq %rax, %rdi
callq 0xa540
movq 0x5cb82(%rip), %rsi     # 0x67fd0
movq 0x5cb5b(%rip), %rdx     # 0x67fb0
movq %rbx, %rdi
callq 0xa680
movq %rax, %r14
movq %rbx, %rdi
callq 0xa2c0
movq %r14, %rdi
callq 0xa6d0
// File: /workspace/github_cpp_makefile_star2_O3/madpilot[P]mDNSResolver/test/catch.h
// Function: Catch::(anonymous namespace)::platformColourInstance()
IColourImpl* platformColourInstance() {
        Ptr<IConfig const> config = getCurrentContext().getConfig();
        UseColour::YesOrNo colourMode = config
            ? config->useColour()
            : UseColour::Auto;
        if( colourMode == UseColour::Auto )
            colourMode = (!isDebuggerActive() && isatty(STDOUT_FILENO) )
                ? UseColour::Yes
                : UseColour::No;
        return colourMode == UseColour::Yes
            ? PosixColourImpl::instance()
            : NoColourImpl::instance();
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
callq 0xd3e3
movq (%rax), %rcx
leaq -0x18(%rbp), %rbx
movq %rbx, %rdi
movq %rax, %rsi
callq *0x30(%rcx)
movq (%rbx), %rdi
testq %rdi, %rdi
je 0xd516
movq (%rdi), %rax
callq *0x80(%rax)
cmpl $0x1, %eax
je 0xd524
testl %eax, %eax
jne 0xd537
movl $0x1, %edi
callq 0xa6b0
testl %eax, %eax
je 0xd537
movb 0x5b03e(%rip), %al      # 0x68568
testb %al, %al
je 0xd563
leaq 0x5af1b(%rip), %rbx     # 0x68450
jmp 0xd548
movb 0x5b033(%rip), %al      # 0x68570
testb %al, %al
je 0xd57b
leaq 0x5af10(%rip), %rbx     # 0x68458
movq -0x18(%rbp), %rdi
testq %rdi, %rdi
je 0xd557
movq (%rdi), %rax
callq *0x18(%rax)
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x5affe(%rip), %r14     # 0x68568
movq %r14, %rdi
callq 0xa6f0
leaq 0x5aed7(%rip), %rbx     # 0x68450
jmp 0xd591
leaq 0x5afee(%rip), %r14     # 0x68570
movq %r14, %rdi
callq 0xa6f0
leaq 0x5aec7(%rip), %rbx     # 0x68458
testl %eax, %eax
je 0xd548
movq %r14, %rdi
callq 0xa230
jmp 0xd548
jmp 0xd5bb
movq %rax, %rbx
movq -0x18(%rbp), %rdi
testq %rdi, %rdi
je 0xd5b3
movq (%rdi), %rax
callq *0x18(%rax)
movq %rbx, %rdi
callq 0xa6d0
movq %rax, %rdi
callq 0x14062
// File: /workspace/github_cpp_makefile_star2_O3/madpilot[P]mDNSResolver/test/catch.h
// Function: Catch::TestSpec::matches(Catch::TestCaseInfo const&) const
bool matches( TestCaseInfo const& testCase ) const {
            // A TestSpec matches if any filter matches
            for( std::vector<Filter>::const_iterator it = m_filters.begin(), itEnd = m_filters.end(); it != itEnd; ++it )
                if( it->matches( testCase ) )
                    return true;
            return false;
        }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq (%rdi), %r15
movq 0x8(%rdi), %rax
movq %rax, -0x30(%rbp)
cmpq %rax, %r15
je 0x13d28
movq %rsi, %rbx
movq (%r15), %r13
movq 0x8(%r15), %r12
cmpq %r12, %r13
sete %r14b
je 0x13d23
movq (%r13), %rdi
movq (%rdi), %rax
movq %rbx, %rsi
callq *0x20(%rax)
testb %al, %al
je 0x13d17
addq $0x8, %r13
cmpq %r12, %r13
jne 0x13cfb
jmp 0x13d23
addq $0x18, %r15
cmpq -0x30(%rbp), %r15
jne 0x13ceb
jmp 0x13d2b
movb $0x1, %r14b
jmp 0x13d2b
xorl %r14d, %r14d
movl %r14d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/madpilot[P]mDNSResolver/test/catch.h
// Function: Catch::CumulativeReporterBase::sectionEnded(Catch::SectionStats const&)
virtual void sectionEnded( SectionStats const& sectionStats ) CATCH_OVERRIDE {
            assert( !m_sectionStack.empty() );
            SectionNode& node = *m_sectionStack.back();
            node.stats = sectionStats;
            m_sectionStack.pop_back();
        }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq 0xb0(%rdi), %rax
cmpq %rax, 0xa8(%rdi)
je 0x16b13
movq %rdi, %rbx
addq $0xa8, %rbx
movq -0x8(%rax), %rdi
addq $0x10, %rdi
callq 0x2a1c4
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x2a22e
leaq 0x36c79(%rip), %rdi     # 0x4d793
leaq 0x35eeb(%rip), %rsi     # 0x4ca0c
leaq 0x36cd6(%rip), %rcx     # 0x4d7fe
movl $0x2239, %edx           # imm = 0x2239
callq 0xa240
// File: /workspace/github_cpp_makefile_star2_O3/madpilot[P]mDNSResolver/test/catch.h
// Function: Catch::ExceptionTranslatorRegistry::tryTranslators[abi:cxx11]() const
std::string tryTranslators() const {
            if( m_translators.empty() )
                throw;
            else
                return m_translators[0]->translate( m_translators.begin()+1, m_translators.end() );
        }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq 0x8(%rsi), %rdx
movq 0x10(%rsi), %rcx
cmpq %rcx, %rdx
je 0x1d1a7
movq %rdi, %rbx
movq (%rdx), %rsi
addq $0x8, %rdx
movq (%rsi), %rax
callq *0x10(%rax)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
callq 0xa560
// File: /workspace/github_cpp_makefile_star2_O3/madpilot[P]mDNSResolver/test/catch.h
// Function: Catch::GeneratorsForTest::moveNext()
bool moveNext() {
            std::vector<IGeneratorInfo*>::const_iterator it = m_generatorsInOrder.begin();
            std::vector<IGeneratorInfo*>::const_iterator itEnd = m_generatorsInOrder.end();
            for(; it != itEnd; ++it ) {
                if( (*it)->moveNext() )
                    return true;
            }
            return false;
        }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq 0x38(%rdi), %r14
movq 0x40(%rdi), %rbx
cmpq %rbx, %r14
je 0x1e03a
addq $0x8, %r14
movq -0x8(%r14), %rdi
movq (%rdi), %rax
callq *0x10(%rax)
testb %al, %al
jne 0x1e03c
leaq 0x8(%r14), %rcx
cmpq %rbx, %r14
movq %rcx, %r14
jne 0x1e01e
jmp 0x1e03c
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/madpilot[P]mDNSResolver/test/catch.h
// Function: Catch::MultipleReporters::noMatchingTestCases(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
virtual void noMatchingTestCases( std::string const& spec ) CATCH_OVERRIDE {
        for( Reporters::const_iterator it = m_reporters.begin(), itEnd = m_reporters.end();
                it != itEnd;
                ++it )
            (*it)->noMatchingTestCases( spec );
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq 0x10(%rdi), %r14
movq 0x18(%rdi), %r15
cmpq %r15, %r14
je 0x1ecad
movq %rsi, %rbx
movq (%r14), %rdi
movq (%rdi), %rax
movq %rbx, %rsi
callq *0x28(%rax)
addq $0x8, %r14
cmpq %r15, %r14
jne 0x1ec98
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/madpilot[P]mDNSResolver/test/catch.h
// Function: Catch::MultipleReporters::testRunStarting(Catch::TestRunInfo const&)
virtual void testRunStarting( TestRunInfo const& testRunInfo ) CATCH_OVERRIDE {
        for( Reporters::const_iterator it = m_reporters.begin(), itEnd = m_reporters.end();
                it != itEnd;
                ++it )
            (*it)->testRunStarting( testRunInfo );
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq 0x10(%rdi), %r14
movq 0x18(%rdi), %r15
cmpq %r15, %r14
je 0x1ece7
movq %rsi, %rbx
movq (%r14), %rdi
movq (%rdi), %rax
movq %rbx, %rsi
callq *0x30(%rax)
addq $0x8, %r14
cmpq %r15, %r14
jne 0x1ecd2
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/madpilot[P]mDNSResolver/test/catch.h
// Function: Catch::MultipleReporters::testGroupStarting(Catch::GroupInfo const&)
virtual void testGroupStarting( GroupInfo const& groupInfo ) CATCH_OVERRIDE {
        for( Reporters::const_iterator it = m_reporters.begin(), itEnd = m_reporters.end();
                it != itEnd;
                ++it )
            (*it)->testGroupStarting( groupInfo );
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq 0x10(%rdi), %r14
movq 0x18(%rdi), %r15
cmpq %r15, %r14
je 0x1ed21
movq %rsi, %rbx
movq (%r14), %rdi
movq (%rdi), %rax
movq %rbx, %rsi
callq *0x38(%rax)
addq $0x8, %r14
cmpq %r15, %r14
jne 0x1ed0c
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/madpilot[P]mDNSResolver/test/catch.h
// Function: Catch::MultipleReporters::testCaseStarting(Catch::TestCaseInfo const&)
virtual void testCaseStarting( TestCaseInfo const& testInfo ) CATCH_OVERRIDE {
        for( Reporters::const_iterator it = m_reporters.begin(), itEnd = m_reporters.end();
                it != itEnd;
                ++it )
            (*it)->testCaseStarting( testInfo );
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq 0x10(%rdi), %r14
movq 0x18(%rdi), %r15
cmpq %r15, %r14
je 0x1ed5b
movq %rsi, %rbx
movq (%r14), %rdi
movq (%rdi), %rax
movq %rbx, %rsi
callq *0x40(%rax)
addq $0x8, %r14
cmpq %r15, %r14
jne 0x1ed46
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/madpilot[P]mDNSResolver/test/catch.h
// Function: Catch::MultipleReporters::sectionStarting(Catch::SectionInfo const&)
virtual void sectionStarting( SectionInfo const& sectionInfo ) CATCH_OVERRIDE {
        for( Reporters::const_iterator it = m_reporters.begin(), itEnd = m_reporters.end();
                it != itEnd;
                ++it )
            (*it)->sectionStarting( sectionInfo );
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq 0x10(%rdi), %r14
movq 0x18(%rdi), %r15
cmpq %r15, %r14
je 0x1ed95
movq %rsi, %rbx
movq (%r14), %rdi
movq (%rdi), %rax
movq %rbx, %rsi
callq *0x48(%rax)
addq $0x8, %r14
cmpq %r15, %r14
jne 0x1ed80
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/madpilot[P]mDNSResolver/test/catch.h
// Function: Catch::MultipleReporters::assertionStarting(Catch::AssertionInfo const&)
virtual void assertionStarting( AssertionInfo const& assertionInfo ) CATCH_OVERRIDE {
        for( Reporters::const_iterator it = m_reporters.begin(), itEnd = m_reporters.end();
                it != itEnd;
                ++it )
            (*it)->assertionStarting( assertionInfo );
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq 0x10(%rdi), %r14
movq 0x18(%rdi), %r15
cmpq %r15, %r14
je 0x1edcf
movq %rsi, %rbx
movq (%r14), %rdi
movq (%rdi), %rax
movq %rbx, %rsi
callq *0x50(%rax)
addq $0x8, %r14
cmpq %r15, %r14
jne 0x1edba
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/madpilot[P]mDNSResolver/test/catch.h
// Function: Catch::MultipleReporters::assertionEnded(Catch::AssertionStats const&)
virtual bool assertionEnded( AssertionStats const& assertionStats ) CATCH_OVERRIDE {
        bool clearBuffer = false;
        for( Reporters::const_iterator it = m_reporters.begin(), itEnd = m_reporters.end();
                it != itEnd;
                ++it )
            clearBuffer |= (*it)->assertionEnded( assertionStats );
        return clearBuffer;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq 0x10(%rdi), %r15
movq 0x18(%rdi), %r12
cmpq %r12, %r15
je 0x1ee10
movq %rsi, %r14
xorl %ebx, %ebx
movq (%r15), %rdi
movq (%rdi), %rax
movq %r14, %rsi
callq *0x58(%rax)
orb %al, %bl
addq $0x8, %r15
cmpq %r12, %r15
jne 0x1edf7
jmp 0x1ee12
xorl %ebx, %ebx
andb $0x1, %bl
movl %ebx, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/madpilot[P]mDNSResolver/test/catch.h
// Function: Catch::MultipleReporters::sectionEnded(Catch::SectionStats const&)
virtual void sectionEnded( SectionStats const& sectionStats ) CATCH_OVERRIDE {
        for( Reporters::const_iterator it = m_reporters.begin(), itEnd = m_reporters.end();
                it != itEnd;
                ++it )
            (*it)->sectionEnded( sectionStats );
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq 0x10(%rdi), %r14
movq 0x18(%rdi), %r15
cmpq %r15, %r14
je 0x1ee4f
movq %rsi, %rbx
movq (%r14), %rdi
movq (%rdi), %rax
movq %rbx, %rsi
callq *0x60(%rax)
addq $0x8, %r14
cmpq %r15, %r14
jne 0x1ee3a
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/madpilot[P]mDNSResolver/test/catch.h
// Function: Catch::MultipleReporters::testCaseEnded(Catch::TestCaseStats const&)
virtual void testCaseEnded( TestCaseStats const& testCaseStats ) CATCH_OVERRIDE {
        for( Reporters::const_iterator it = m_reporters.begin(), itEnd = m_reporters.end();
                it != itEnd;
                ++it )
            (*it)->testCaseEnded( testCaseStats );
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq 0x10(%rdi), %r14
movq 0x18(%rdi), %r15
cmpq %r15, %r14
je 0x1ee89
movq %rsi, %rbx
movq (%r14), %rdi
movq (%rdi), %rax
movq %rbx, %rsi
callq *0x68(%rax)
addq $0x8, %r14
cmpq %r15, %r14
jne 0x1ee74
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/madpilot[P]mDNSResolver/test/catch.h
// Function: Catch::MultipleReporters::testGroupEnded(Catch::TestGroupStats const&)
virtual void testGroupEnded( TestGroupStats const& testGroupStats ) CATCH_OVERRIDE {
        for( Reporters::const_iterator it = m_reporters.begin(), itEnd = m_reporters.end();
                it != itEnd;
                ++it )
            (*it)->testGroupEnded( testGroupStats );
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq 0x10(%rdi), %r14
movq 0x18(%rdi), %r15
cmpq %r15, %r14
je 0x1eec3
movq %rsi, %rbx
movq (%r14), %rdi
movq (%rdi), %rax
movq %rbx, %rsi
callq *0x70(%rax)
addq $0x8, %r14
cmpq %r15, %r14
jne 0x1eeae
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/madpilot[P]mDNSResolver/test/catch.h
// Function: Catch::MultipleReporters::testRunEnded(Catch::TestRunStats const&)
virtual void testRunEnded( TestRunStats const& testRunStats ) CATCH_OVERRIDE {
        for( Reporters::const_iterator it = m_reporters.begin(), itEnd = m_reporters.end();
                it != itEnd;
                ++it )
            (*it)->testRunEnded( testRunStats );
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq 0x10(%rdi), %r14
movq 0x18(%rdi), %r15
cmpq %r15, %r14
je 0x1eefd
movq %rsi, %rbx
movq (%r14), %rdi
movq (%rdi), %rax
movq %rbx, %rsi
callq *0x78(%rax)
addq $0x8, %r14
cmpq %r15, %r14
jne 0x1eee8
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/madpilot[P]mDNSResolver/test/catch.h
// Function: Catch::MultipleReporters::skipTest(Catch::TestCaseInfo const&)
virtual void skipTest( TestCaseInfo const& testInfo ) CATCH_OVERRIDE {
        for( Reporters::const_iterator it = m_reporters.begin(), itEnd = m_reporters.end();
                it != itEnd;
                ++it )
            (*it)->skipTest( testInfo );
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq 0x10(%rdi), %r14
movq 0x18(%rdi), %r15
cmpq %r15, %r14
je 0x1ef3a
movq %rsi, %rbx
movq (%r14), %rdi
movq (%rdi), %rax
movq %rbx, %rsi
callq *0x80(%rax)
addq $0x8, %r14
cmpq %r15, %r14
jne 0x1ef22
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/madpilot[P]mDNSResolver/test/catch.h
// Function: Catch::Clara::Parser::handlePositional(unsigned long, char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::vector<Catch::Clara::Parser::Token, std::allocator<Catch::Clara::Parser::Token>>&)
Mode handlePositional( std::size_t i, char c, std::string const& arg, std::vector<Token>& tokens ) {
            if( inQuotes || std::string( "\0", 1 ).find( c ) == std::string::npos )
                return mode;

            std::string data = arg.substr( from, i-from );
            tokens.push_back( Token( Token::Positional, data ) );
            return None;
        }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rdi, %r12
cmpb $0x0, 0x10(%rdi)
jne 0x2422d
movq %rsi, %r15
movq %rcx, -0x30(%rbp)
movq %r8, -0x38(%rbp)
leaq -0x50(%rbp), %r14
movq %r14, -0x10(%r14)
movw $0x0, (%r14)
movq $0x1, -0x8(%r14)
movsbl %dl, %esi
leaq -0x60(%rbp), %rbx
movq %rbx, %rdi
xorl %edx, %edx
callq 0xa4d0
movq %rax, %r13
movq (%rbx), %rdi
cmpq %r14, %rdi
je 0x241b6
callq 0xa350
cmpq $-0x1, %r13
movq -0x38(%rbp), %r13
movq -0x30(%rbp), %rsi
je 0x2422d
movq 0x8(%r12), %rdx
subq %rdx, %r15
leaq -0x80(%rbp), %rbx
movq %rbx, %rdi
movq %r15, %rcx
callq 0xa3f0
leaq -0x58(%rbp), %rdi
movl $0x0, -0x8(%rdi)
leaq -0x48(%rbp), %r14
movq %r14, -0x10(%r14)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
callq 0x2feea
leaq -0x60(%rbp), %rsi
movq %r13, %rdi
callq 0x2430e
movq -0x58(%rbp), %rdi
cmpq %r14, %rdi
je 0x24217
callq 0xa350
leaq -0x70(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x24229
callq 0xa350
xorl %eax, %eax
jmp 0x24231
movl (%r12), %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x58(%rbp), %rdi
cmpq %r14, %rdi
je 0x24256
callq 0xa350
jmp 0x24256
movq %rax, %rbx
leaq -0x70(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x24268
callq 0xa350
movq %rbx, %rdi
callq 0xa6d0
// File: /workspace/github_cpp_makefile_star2_O3/madpilot[P]mDNSResolver/test/catch.h
// Function: Catch::Clara::CommandLine<Catch::ConfigData>::validate() const
void validate() const
        {
            if( m_options.empty() && m_positionalArgs.empty() && !m_floatingArg.get() )
                throw std::logic_error( "No options or arguments specified" );

            for( typename std::vector<Arg>::const_iterator  it = m_options.begin(),
                                                            itEnd = m_options.end();
                    it != itEnd; ++it )
                it->validate();
        }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq 0x8(%rdi), %rbx
movq 0x10(%rdi), %r14
cmpq %r14, %rbx
jne 0x24631
cmpq $0x0, 0x48(%rdi)
jne 0x24631
cmpq $0x0, 0x50(%rdi)
jne 0x24631
movl $0x10, %edi
callq 0xa1a0
movq %rax, %rbx
leaq 0x28e41(%rip), %rsi     # 0x4d445
movq %rax, %rdi
callq 0xa540
movq 0x439bd(%rip), %rsi     # 0x67fd0
movq 0x43996(%rip), %rdx     # 0x67fb0
movq %rbx, %rdi
callq 0xa680
movq %rbx, %rdi
callq 0x24e5e
addq $0xa8, %rbx
cmpq %r14, %rbx
jne 0x24622
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0xa2c0
movq %r14, %rdi
callq 0xa6d0
// File: /workspace/github_cpp_makefile_star2_O3/madpilot[P]mDNSResolver/test/catch.h
// Function: Catch::Config::openStream()
IStream const* openStream() {
            if( m_data.outputFilename.empty() )
                return new CoutStream();
            else if( m_data.outputFilename[0] == '%' ) {
                if( m_data.outputFilename == "%debug" )
                    return new DebugOutStream();
                else
                    throw std::domain_error( "Unrecognised stream: " + m_data.outputFilename );
            }
            else
                return new FileStream( m_data.outputFilename );
        }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
cmpq $0x0, 0x40(%rdi)
je 0x26833
movq %rdi, %r14
addq $0x38, %r14
movq (%r14), %rax
cmpb $0x25, (%rax)
jne 0x2686b
leaq 0x26dc7(%rip), %rsi     # 0x4d5d7
movq %r14, %rdi
callq 0xa0f0
testl %eax, %eax
jne 0x26891
movl $0x120, %edi            # imm = 0x120
callq 0xa3b0
movq %rax, %rbx
movq %rax, %rdi
callq 0xd2e4
jmp 0x26883
movl $0x118, %edi            # imm = 0x118
callq 0xa3b0
movq %rax, %rbx
leaq 0x3f341(%rip), %rax     # 0x65b88
movq %rax, (%rbx)
leaq 0x8(%rbx), %rdi
movq 0x41763(%rip), %rax     # 0x67fb8
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movq 0xe8(%rax,%rcx), %rsi
callq 0xa150
jmp 0x26883
movl $0x208, %edi            # imm = 0x208
callq 0xa3b0
movq %rax, %rbx
movq %rax, %rdi
movq %r14, %rsi
callq 0xd186
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0xa1a0
movq %rax, %rbx
leaq 0x26d39(%rip), %rsi     # 0x4d5de
leaq -0x38(%rbp), %rdi
movq %r14, %rdx
callq 0x13c3e
movb $0x1, %r15b
leaq -0x38(%rbp), %rsi
movq %rbx, %rdi
callq 0xa490
xorl %r15d, %r15d
movq 0x416ae(%rip), %rsi     # 0x67f78
movq 0x416c7(%rip), %rdx     # 0x67f98
movq %rbx, %rdi
callq 0xa680
movq %rax, %r14
leaq -0x28(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x268ee
callq 0xa350
testb %r15b, %r15b
jne 0x268f8
jmp 0x26911
movq %rax, %r14
movq %rbx, %rdi
callq 0xa2c0
jmp 0x26911
jmp 0x26906
jmp 0x26906
movq %rax, %r14
movq %rbx, %rdi
callq 0xa350
movq %r14, %rdi
callq 0xa6d0
// File: /workspace/github_cpp_makefile_star2_O3/madpilot[P]mDNSResolver/test/catch.h
// Function: Catch::JunitReporter::writeTestCase(Catch::CumulativeReporterBase::Node<Catch::TestCaseStats, Catch::CumulativeReporterBase::SectionNode> const&)
void writeTestCase( TestCaseNode const& testCaseNode ) {
            TestCaseStats const& stats = testCaseNode.value;

            // All test cases have exactly one section - which represents the
            // test case itself. That section may have 0-n nested sections
            assert( testCaseNode.children.size() == 1 );
            SectionNode const& rootSection = *testCaseNode.children.front();

            std::string className = stats.testInfo.className;

            if( className.empty() ) {
                if( rootSection.childSections.empty() )
                    className = "global";
            }
            writeSection( className, "", rootSection );
        }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x40, %rsp
movq 0x1a0(%rsi), %rax
movq 0x1a8(%rsi), %rcx
subq %rax, %rcx
cmpq $0x8, %rcx
jne 0x2bb01
movq %rdi, %rbx
movq (%rax), %r14
leaq -0x30(%rbp), %r12
movq %r12, -0x10(%r12)
movq 0x38(%rsi), %rax
movq 0x40(%rsi), %rdx
addq %rax, %rdx
leaq -0x40(%rbp), %r15
movq %r15, %rdi
movq %rax, %rsi
callq 0x2feea
cmpq $0x0, 0x8(%r15)
jne 0x2baaa
movq 0xa8(%r14), %rax
cmpq 0xb0(%r14), %rax
jne 0x2baaa
leaq 0x21fbb(%rip), %rcx     # 0x4da52
leaq -0x40(%rbp), %rdi
movl $0x6, %r8d
xorl %esi, %esi
xorl %edx, %edx
callq 0xa5c0
leaq -0x50(%rbp), %r15
movq %r15, -0x10(%r15)
leaq 0x2201f(%rip), %rdx     # 0x4dad8
leaq -0x60(%rbp), %rdi
movq %rdx, %rsi
callq 0x24270
leaq -0x40(%rbp), %rsi
leaq -0x60(%rbp), %rdx
movq %rbx, %rdi
movq %r14, %rcx
callq 0x2bb4e
movq -0x60(%rbp), %rdi
cmpq %r15, %rdi
je 0x2bae6
callq 0xa350
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0x2baf4
callq 0xa350
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x21ee9(%rip), %rdi     # 0x4d9f1
leaq 0x20efd(%rip), %rsi     # 0x4ca0c
leaq 0x21efd(%rip), %rcx     # 0x4da13
movl $0x24da, %edx           # imm = 0x24DA
callq 0xa240
jmp 0x2bb35
movq %rax, %rbx
movq -0x60(%rbp), %rdi
cmpq %r15, %rdi
je 0x2bb38
callq 0xa350
jmp 0x2bb38
movq %rax, %rbx
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0x2bb46
callq 0xa350
movq %rbx, %rdi
callq 0xa6d0
// File: /workspace/github_cpp_makefile_star2_O3/madpilot[P]mDNSResolver/test/catch.h
// Function: Catch::CompactReporter::AssertionPrinter::printResultType(Catch::Colour::Code, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>) const
void printResultType( Colour::Code colour, std::string passOrFail ) const {
                if( !passOrFail.empty() ) {
                    {
                        Colour colourGuard( colour );
                        stream << " " << passOrFail;
                    }
                    stream << ":";
                }
            }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
cmpq $0x0, 0x8(%rdx)
je 0x2f157
movq %rdx, %r14
movq %rdi, %rbx
movb $0x0, -0x19(%rbp)
movl %esi, %edi
callq 0xd44a
movq (%rbx), %r15
leaq 0x1d88b(%rip), %rsi     # 0x4c9a1
movl $0x1, %edx
movq %r15, %rdi
callq 0xa430
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %r15, %rdi
callq 0xa430
xorl %edi, %edi
callq 0xd44a
movq (%rbx), %rdi
leaq 0x1db51(%rip), %rsi     # 0x4cc94
movl $0x1, %edx
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0xa430
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rdi
callq 0x14062
movq %rax, %rbx
leaq -0x19(%rbp), %rdi
callq 0xd4c2
movq %rbx, %rdi
callq 0xa6d0
// File: /workspace/github_cpp_makefile_star2_O3/madpilot[P]mDNSResolver/test/catch.h
// Function: Catch::StreamBufImpl<Catch::OutputDebugWriter, 256ul>::sync()
int sync() {
            if( pbase() != pptr() ) {
                m_writer( std::string( pbase(), static_cast<std::string::size_type>( pptr() - pbase() ) ) );
                setp( pbase(), epptr() );
            }
            return 0;
        }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq 0x20(%rdi), %rsi
movq 0x28(%rdi), %rdx
cmpq %rdx, %rsi
je 0x309ac
movq %rdi, %rbx
leaq -0x28(%rbp), %r15
movq %r15, -0x10(%r15)
leaq -0x38(%rbp), %r14
movq %r14, %rdi
callq 0x24270
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq 0x37627(%rip), %rdi     # 0x67fb8
callq 0xa430
movq -0x38(%rbp), %rdi
cmpq %r15, %rdi
je 0x309a4
callq 0xa350
movq 0x20(%rbx), %rax
movq %rax, 0x28(%rbx)
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x38(%rbp), %rdi
cmpq %r15, %rdi
je 0x309ca
callq 0xa350
movq %rbx, %rdi
callq 0xa6d0
// File: /workspace/github_cpp_makefile_star2_O3/madpilot[P]mDNSResolver/test/catch.h
// Function: Catch::XmlWriter::XmlWriter()
XmlWriter()
        :   m_tagIsOpen( false ),
            m_needsNewline( false ),
            m_os( &Catch::cout() )
        {
            // We encode control characters, which requires
            // XML 1.1
            // see http://stackoverflow.com/questions/404107/why-are-control-characters-illegal-in-xml-1-0
            *m_os << "<?xml version=\"1.1\" encoding=\"UTF-8\"?>\n";
        }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %r14
movw $0x0, (%rdi)
leaq 0x8(%rdi), %rbx
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
xorl %eax, %eax
movq %rax, 0x18(%rdi)
leaq 0x30(%rdi), %r12
movq %r12, 0x20(%rdi)
movq %rax, 0x28(%rdi)
movb $0x0, 0x30(%rdi)
movq 0x36db7(%rip), %rdi     # 0x67fb8
movq %rdi, 0x40(%r14)
leaq 0x1cbdf(%rip), %rsi     # 0x4ddeb
movl $0x27, %edx
callq 0xa430
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r15
movq 0x20(%r14), %rdi
cmpq %r12, %rdi
je 0x31230
callq 0xa350
movq %rbx, %rdi
callq 0x1300a
movq %r15, %rdi
callq 0xa6d0
// File: /workspace/github_cpp_makefile_star2_O3/madpilot[P]mDNSResolver/src/Query.cpp
// Function: mDNSResolver::Query::sendPacket(WiFiUDP&)
void Query::sendPacket(WiFiUDP& socket) {
    int bufferLength = strlen(this->name) + 18;
    unsigned char buffer[bufferLength];
    assemblePacket(buffer, bufferLength);
    socket.write(buffer, bufferLength);
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movq (%rdi), %rdi
callq 0xa180
movq %rax, %r15
addl $0x12, %r15d
movq %rsp, %r12
leaq 0xf(%r15), %rax
andq $-0x10, %rax
subq %rax, %r12
movq %r12, %rsp
movq %r14, %rdi
movq %r12, %rsi
movl %r15d, %edx
callq 0x31c7e
movslq %r15d, %rdx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x4b428
leaq -0x20(%rbp), %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/madpilot[P]mDNSResolver/src/Query.cpp
// Function: mDNSResolver::Query::assemblePacket(unsigned char*, int)
void Query::assemblePacket(unsigned char *buffer, int bufferLength) {
    for(int i = 0; i < bufferLength; i++) {
      buffer[i] = 0;
    }

    buffer[5] = 0x01;

    int bufferIndex = 12;
    bufferIndex = buildDNSName(buffer, bufferIndex);

    int qtype = 0x01;
    int qclass = 0x01;

    buffer[bufferIndex++] = '\0';
    buffer[bufferIndex++] = (qtype & 0xFF00) >> 8;
    buffer[bufferIndex++] = qtype & 0xFF;
    buffer[bufferIndex++] = (qclass & 0xFF00) >> 8;
    buffer[bufferIndex++] = qclass & 0xFF;
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
testl %edx, %edx
jle 0x31c9e
movl %edx, %edx
movq %rbx, %rdi
xorl %esi, %esi
callq 0xa1f0
movb $0x1, %r15b
movb %r15b, 0x5(%rbx)
movq %r14, %rdi
movq %rbx, %rsi
movl $0xc, %edx
callq 0x31cce
cltq
movl $0x10000, (%rbx,%rax)   # imm = 0x10000
movb %r15b, 0x4(%rbx,%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/madpilot[P]mDNSResolver/src/Query.cpp
// Function: mDNSResolver::Query::buildDNSName(unsigned char*, unsigned int)
int Query::buildDNSName(unsigned char *buffer, unsigned int bufferIndex) {
    int wordstart = 0, wordend = 0;

    do {
      if(this->name[wordend] == '.' || this->name[wordend] == '\0') {
        const int wordlen = wordend - wordstart;
        buffer[bufferIndex++] = (unsigned char)wordlen;

        for(int i = wordstart; i < wordend; i++) {
          buffer[bufferIndex++] = this->name[i];
        }

        if(this->name[wordend] == '.') {
          wordend++;
        }
        wordstart = wordend;
      }

      wordend++;
    } while(this->name[wordstart] != '\0');

    return bufferIndex;
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl %edx, %eax
movq (%rdi), %r8
xorl %edx, %edx
xorl %ecx, %ecx
movslq %ecx, %r9
movzbl (%r8,%r9), %r10d
cmpl $0x2e, %r10d
je 0x31cee
testl %r10d, %r10d
jne 0x31d2f
leal 0x1(%rax), %r10d
movl %ecx, %r8d
movl %eax, %eax
subl %edx, %r8d
movb %r8b, (%rsi,%rax)
jle 0x31d1b
movslq %edx, %rax
movq (%rdi), %rdx
movb (%rdx,%rax), %dl
movl %r10d, %r8d
movb %dl, (%rsi,%r8)
incq %rax
incl %r10d
cmpq %rax, %r9
jne 0x31d03
movq (%rdi), %r8
xorl %eax, %eax
cmpb $0x2e, (%r8,%r9)
sete %al
addl %eax, %ecx
movl %ecx, %edx
movl %r10d, %eax
incl %ecx
movslq %edx, %r9
cmpb $0x0, (%r8,%r9)
jne 0x31cdb
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_cpp_makefile_star2_O3/madpilot[P]mDNSResolver/test/catch.h
// Function: std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> Catch::StringMaker<mDNSResolver::Response*>::convert<mDNSResolver::Response>(mDNSResolver::Response*)
static std::string convert( U* p ) {
        if( !p )
            return "NULL";
        else
            return Detail::rawMemoryToString( p );
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq %rsi, -0x10(%rbp)
testq %rsi, %rsi
je 0x3906d
leaq -0x10(%rbp), %rsi
movl $0x8, %edx
movq %rbx, %rdi
callq 0xf816
jmp 0x3908a
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x15cbb(%rip), %rsi     # 0x4ed36
leaq 0x15cb8(%rip), %rdx     # 0x4ed3a
movq %rbx, %rdi
callq 0x24270
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/madpilot[P]mDNSResolver/src/Cache.cpp
// Function: mDNSResolver::Cache::insert(mDNSResolver::Response)
void Cache::insert(Response response) {
    int existing = search(response);
    if(existing != -1) {
      this->list[existing] = response;
      return;
    }

    if(this->size == MDNS_RESOLVER_MAX_CACHE) {
      int i = oldest();
      remove(i);
    }

    this->list[this->size] = response;
    this->size += 1;
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movslq 0x460(%rdi), %rax
testq %rax, %rax
jle 0x391e2
movq %rax, -0x30(%rbp)
imulq $0x118, %rax, %r13      # imm = 0x118
xorl %r12d, %r12d
leaq (%r14,%r12), %r15
movq %r15, %rdi
movq %rbx, %rsi
callq 0xa510
testl %eax, %eax
je 0x39211
addq $0x118, %r12            # imm = 0x118
cmpq %r12, %r13
jne 0x39174
movq -0x30(%rbp), %rax
cmpl $0x4, %eax
jne 0x391e2
movq 0x100(%r14), %rax
xorl %esi, %esi
movl $0x218, %ecx            # imm = 0x218
movl $0x1, %edx
movq (%r14,%rcx), %rdi
cmpq %rax, %rdi
cmovbq %rdi, %rax
cmovbl %edx, %esi
addq $0x118, %rcx            # imm = 0x118
incl %edx
cmpq $0x560, %rcx            # imm = 0x560
jne 0x391b3
movq %r14, %rdi
callq 0x392dc
movl 0x460(%r14), %eax
cltq
imulq $0x118, %rax, %rdi      # imm = 0x118
addq %r14, %rdi
movl $0x118, %edx            # imm = 0x118
movq %rbx, %rsi
callq 0xa2f0
incl 0x460(%r14)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x118, %edx            # imm = 0x118
movq %r15, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xa2f0
nop
// File: /workspace/github_cpp_makefile_star2_O3/madpilot[P]mDNSResolver/src/Cache.cpp
// Function: mDNSResolver::Cache::oldest()
int Cache::oldest() {
    if(this->size == 0) {
      return -1;
    }

    unsigned long oldestTTL = this->list[0].ttl;
    unsigned int oldestIndex = 0;

    for(int i = 1; i < this->size; i++) {
      if(this->list[i].ttl < oldestTTL) {
        oldestTTL = this->list[i].ttl;
        oldestIndex = i;
      }
    }

    return oldestIndex;
  }

// Assembly:
movl 0x460(%rdi), %ecx
testq %rcx, %rcx
je 0x392d5
xorl %eax, %eax
cmpl $0x2, %ecx
jl 0x392da
pushq %rbp
movq %rsp, %rbp
movq 0x100(%rdi), %rdx
addq $0x218, %rdi            # imm = 0x218
xorl %eax, %eax
movl $0x1, %esi
movq (%rdi), %r8
cmpq %rdx, %r8
cmovbq %r8, %rdx
cmovbl %esi, %eax
incq %rsi
addq $0x118, %rdi            # imm = 0x118
cmpq %rsi, %rcx
jne 0x392b7
popq %rbp
retq
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/madpilot[P]mDNSResolver/src/Cache.cpp
// Function: mDNSResolver::Cache::search(char const*)
int Cache::search(const char* name) {
    for(int i = 0; i < this->size; i++) {
      if(strcmp(this->list[i].name, name) == 0) {
        return i;
      }
    }
    return -1;
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movslq 0x460(%rdi), %r12
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
testq %r12, %r12
jle 0x39405
movq %rsi, %r14
movq %rdi, %r15
xorl %r13d, %r13d
movq %r15, %rdi
movq %r14, %rsi
callq 0xa510
testl %eax, %eax
je 0x39402
incq %r13
addq $0x118, %r15            # imm = 0x118
cmpq %r13, %r12
jne 0x393e2
jmp 0x39405
movl %r13d, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/madpilot[P]mDNSResolver/src/Cache.cpp
// Function: mDNSResolver::Cache::expire()
void Cache::expire() {
    unsigned long ttls[MDNS_RESOLVER_MAX_CACHE];

    for(int i = 0; i < this->size; i++) {
      this->list[i].decrementTTL();
      ttls[i] = this->list[i].ttl;
    }

    for(int i = 0; i < this->size; i++) {
      if(ttls[i] == 0) {
        remove(i);
      }
    }
  }

// Assembly:
cmpl $0x0, 0x460(%rdi)
jle 0x39494
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
xorl %r15d, %r15d
movq %rdi, %r14
movq %r14, %rdi
callq 0x3b138
movq 0x100(%r14), %rax
movq %rax, -0x40(%rbp,%r15,8)
incq %r15
movslq 0x460(%rbx), %rax
addq $0x118, %r14            # imm = 0x118
cmpq %rax, %r15
jl 0x39435
testl %eax, %eax
jle 0x3948a
xorl %r14d, %r14d
cmpq $0x0, -0x40(%rbp,%r14,8)
jne 0x3947f
movq %rbx, %rdi
movl %r14d, %esi
callq 0x392dc
movl 0x460(%rbx), %eax
incq %r14
movslq %eax, %rcx
cmpq %rcx, %r14
jl 0x39466
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/madpilot[P]mDNSResolver/src/Cache.cpp
// Function: mDNSResolver::Cache::removeCname(int)
void Cache::removeCname(int index) {
    Response *response = &this->list[index];

    for(int i = 0; i < length(); i++) {
      if(this->list[i].cname == response) {
        this->list[i].cname = NULL;
      }
    }
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
movslq 0x460(%rdi), %rcx
testq %rcx, %rcx
jle 0x394ea
movslq %esi, %rax
imulq $0x118, %rax, %rax      # imm = 0x118
addq %rdi, %rax
imulq $0x118, %rcx, %rcx      # imm = 0x118
xorl %edx, %edx
cmpq %rax, 0x110(%rdi,%rdx)
jne 0x394de
movq $0x0, 0x110(%rdi,%rdx)
addq $0x118, %rdx            # imm = 0x118
cmpq %rdx, %rcx
jne 0x394c8
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/madpilot[P]mDNSResolver/src/Response.cpp
// Function: mDNSResolver::Response::Response()
Response::Response() {
    this->name[0] = '\0';
    this->resolved = false;
    this->ttl = 0;
    this->cname = NULL;
    this->ipAddress = INADDR_NONE;
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
addq $0x10c, %rdi            # imm = 0x10C
callq 0x4b474
xorl %eax, %eax
movb %al, (%rbx)
movb %al, 0x108(%rbx)
movq %rax, 0x100(%rbx)
movq %rax, 0x110(%rbx)
movl 0x2d621(%rip), %eax     # 0x68690
movl %eax, 0x10c(%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/madpilot[P]mDNSResolver/src/Response.cpp
// Function: mDNSResolver::Response::Response(char const*)
Response::Response(const char* name) {
    strncpy(this->name, name, MDNS_MAX_NAME_LEN + 1);
    this->name[MDNS_MAX_NAME_LEN + 1] = '\0';
    this->ttl = 0;
    this->resolved = false;
    this->cname = NULL;
    this->ipAddress = INADDR_NONE;
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
addq $0x10c, %rdi            # imm = 0x10C
callq 0x4b474
movl $0x100, %edx            # imm = 0x100
movq %r14, %rdi
movq %rbx, %rsi
callq 0xa1b0
xorl %eax, %eax
movq %rax, 0x110(%r14)
movq %rax, 0x100(%r14)
movb $0x0, 0x108(%r14)
movl 0x2d5cd(%rip), %eax     # 0x68690
movl %eax, 0x10c(%r14)
popq %rbx
popq %r14
popq %rbp
retq
nop