LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/theolepage[P]prophecy/src/layer_implem/dense_layer.hh
// Function: DenseLayer<float>::feedforward(Matrix<float> const&, bool)
Matrix<T> feedforward(const Matrix<T>& input, bool training)
    {
        auto z = Matrix<T>::dot(this->weights_, input);
        z += this->biases_;
        auto a = z.map(this->activation_.f_);

        if (training)
        {
            this->last_a_ = a;
            this->last_z_ = z;
        }

        if (this->next_ == nullptr)
            return a;
        return this->next_->feedforward(a, training);
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x68, %rsp
movl %ecx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
addq $0x90, %rsi
leaq 0x28(%rsp), %r15
movq %r15, %rdi
movl $0x2, %ecx
callq 0x4d52
leaq 0xb0(%r14), %rsi
movq %r15, %rdi
callq 0x4bba
leaq 0x110(%r14), %rsi
leaq 0x48(%rsp), %rdi
callq 0x4b16
leaq 0x8(%rsp), %rdi
leaq 0x28(%rsp), %rsi
leaq 0x48(%rsp), %rdx
callq 0x4c7a
movq 0x58(%rsp), %rax
testq %rax, %rax
je 0x429e
leaq 0x48(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
testb %bpl, %bpl
je 0x42f5
leaq 0x20(%rsp), %r15
movq -0x8(%r15), %rax
movq %rax, 0x20(%r14)
leaq 0x28(%r14), %rdi
movq %r15, %rsi
callq 0x3866
movl -0x10(%r15), %eax
movl %eax, 0x18(%r14)
movl -0xc(%r15), %eax
movl %eax, 0x1c(%r14)
leaq 0x40(%rsp), %r15
movq -0x8(%r15), %rax
movq %rax, 0x40(%r14)
leaq 0x48(%r14), %rdi
movq %r15, %rsi
callq 0x3866
movl -0x10(%r15), %eax
movl %eax, 0x38(%r14)
movl -0xc(%r15), %eax
movl %eax, 0x3c(%r14)
movq 0x80(%r14), %rsi
testq %rsi, %rsi
je 0x4315
movq (%rsi), %rax
movzbl %bpl, %ecx
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
callq *0x10(%rax)
jmp 0x434d
leaq 0x47c4(%rip), %rax      # 0x8ae0
movq %rax, (%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rbx)
leaq 0x20(%rsp), %r14
movq -0x8(%r14), %rax
movq %rax, 0x10(%rbx)
leaq 0x18(%rbx), %rdi
movq %r14, %rsi
callq 0x3866
movl -0x10(%r14), %eax
movl %eax, 0x8(%rbx)
movl -0xc(%r14), %eax
movl %eax, 0xc(%rbx)
leaq 0x478c(%rip), %r14      # 0x8ae0
movq %r14, 0x8(%rsp)
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x4368
callq 0x349c
movq %r14, 0x28(%rsp)
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x437c
callq 0x349c
movq %rbx, %rax
addq $0x68, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x474c(%rip), %rax      # 0x8ae0
movq %rax, 0x8(%rsp)
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x43d7
callq 0x349c
jmp 0x43d7
jmp 0x43ca
movq %rax, %rbx
movq 0x58(%rsp), %rax
testq %rax, %rax
je 0x43d7
leaq 0x48(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
jmp 0x43d7
movq %rax, %rdi
callq 0x3428
jmp 0x43d4
movq %rax, %rbx
leaq 0x4702(%rip), %rax      # 0x8ae0
movq %rax, 0x28(%rsp)
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x43f2
callq 0x349c
movq %rbx, %rdi
callq 0x2200
// File: /workspace/github_cpp_makefile_star2_O1/theolepage[P]prophecy/src/layer_implem/dense_layer.hh
// Function: DenseLayer<float>::update(float)
void update(T learning_rate)
    {
        // Update weights_ and biases_
        for (int i = 0; i < this->weights_.get_rows(); i++)
        {
            for (int j = 0; j < this->weights_.get_cols(); j++)
                this->weights_(i, j) -= learning_rate * this->delta_weights_(i, j);
            this->biases_(i, 0) -= learning_rate * this->delta_biases_(i, 0);
        }

        // Reset delta_weights_ and delta_biases_
        this->delta_weights_.fill(fill_type::ZERO);
        this->delta_biases_.fill(fill_type::ZERO);
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
cmpl $0x0, 0x98(%rdi)
jle 0x4ac5
leaq 0x90(%rbx), %r14
leaq 0xd0(%rbx), %r15
xorps 0x1627(%rip), %xmm0     # 0x6030
xorl %ebp, %ebp
movaps %xmm0, 0x10(%rsp)
cmpl $0x0, 0x9c(%rbx)
jle 0x4a60
xorl %r12d, %r12d
movq %r15, %rdi
movl %ebp, %esi
movl %r12d, %edx
callq 0x334e
movss (%rax), %xmm0
mulss 0x10(%rsp), %xmm0
movss %xmm0, 0xc(%rsp)
movq %r14, %rdi
movl %ebp, %esi
movl %r12d, %edx
callq 0x334e
movss 0xc(%rsp), %xmm0
addss (%rax), %xmm0
movss %xmm0, (%rax)
incl %r12d
cmpl 0x9c(%rbx), %r12d
jl 0x4a1c
movaps 0x10(%rsp), %xmm0
movl 0xfc(%rbx), %ecx
movl %ecx, %eax
imull %ebp, %eax
imull 0xf8(%rbx), %ecx
cmpl %ecx, %eax
jge 0x4af6
movl 0xbc(%rbx), %edx
movl %edx, %ecx
imull %ebp, %ecx
imull 0xb8(%rbx), %edx
cmpl %edx, %ecx
jge 0x4af6
movq 0xc0(%rbx), %rdx
movq 0x100(%rbx), %rsi
cltq
movslq %ecx, %rcx
movss (%rsi,%rax,4), %xmm1
mulss %xmm0, %xmm1
addss (%rdx,%rcx,4), %xmm1
movss %xmm1, (%rdx,%rcx,4)
incl %ebp
cmpl 0x98(%rbx), %ebp
jl 0x4a10
leaq 0xd0(%rbx), %rdi
movl $0x2, %esi
callq 0x522a
addq $0xf0, %rbx
movq %rbx, %rdi
movl $0x2, %esi
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x522a
leaq 0x155d(%rip), %rdi      # 0x605a
leaq 0x1574(%rip), %rsi      # 0x6078
leaq 0x1594(%rip), %rcx      # 0x609f
movl $0x79, %edx
callq 0x20d0
nop
// File: /workspace/github_cpp_makefile_star2_O1/theolepage[P]prophecy/src/model/../layer/../matrix/matrix.hh
// Function: Matrix<float>::operator+=(Matrix<float> const&)
Matrix<T>& operator+=(const Matrix &right)
    {
        if (cols_ != right.cols_ || rows_ != right.rows_)
            throw std::invalid_argument("+ on Matrix need same width and height");
        for (int i = 0; i < rows_; ++i)
        {
            for (int j = 0; j < cols_; ++j)
                (*this)(i, j) += right(i, j);
        }
        return *this;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl 0xc(%rdi), %eax
cmpl 0xc(%rsi), %eax
jne 0x4c34
movq %rsi, %r14
movq %rdi, %rbx
movl 0x8(%rdi), %eax
cmpl 0x8(%rsi), %eax
jne 0x4c34
cmpl $0x0, 0x8(%rbx)
jle 0x4c26
xorl %ebp, %ebp
cmpl $0x0, 0xc(%rbx)
jle 0x4c1f
xorl %r15d, %r15d
movq %r14, %rdi
movl %ebp, %esi
movl %r15d, %edx
callq 0x502c
movss %xmm0, 0x4(%rsp)
movq %rbx, %rdi
movl %ebp, %esi
movl %r15d, %edx
callq 0x334e
movss 0x4(%rsp), %xmm0
addss (%rax), %xmm0
movss %xmm0, (%rax)
incl %r15d
cmpl 0xc(%rbx), %r15d
jl 0x4be8
incl %ebp
cmpl 0x8(%rbx), %ebp
jl 0x4bdf
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x20a0
movq %rax, %rbx
leaq 0x14f6(%rip), %rsi      # 0x613e
movq %rax, %rdi
callq 0x2220
movq 0x4389(%rip), %rsi      # 0x8fe0
movq 0x4372(%rip), %rdx      # 0x8fd0
movq %rbx, %rdi
callq 0x21f0
movq %rax, %r14
movq %rbx, %rdi
callq 0x20f0
movq %r14, %rdi
callq 0x2200
nop
// File: /workspace/github_cpp_makefile_star2_O1/theolepage[P]prophecy/src/model/../layer/../matrix/matrix.hh
// Function: Matrix<float>::multiply_inplace(Matrix<float> const&)
Matrix<T>& multiply_inplace(const Matrix& b)
    {
        if (rows_ != b.rows_ || cols_ != b.cols_)
            throw "Invalid matrix shape";

        for (int i = 0; i < rows_ * cols_; i++)
            data_[i] *= b.data_[i];

        return *this;
    }

// Assembly:
pushq %rax
movl 0x8(%rdi), %eax
cmpl 0x8(%rsi), %eax
jne 0x5204
movl 0xc(%rdi), %edx
cmpl 0xc(%rsi), %edx
jne 0x5204
imull %eax, %edx
testl %edx, %edx
jle 0x51ff
movq 0x10(%rsi), %rax
movq 0x10(%rdi), %rcx
movl %edx, %edx
xorl %esi, %esi
movss (%rax,%rsi,4), %xmm0
mulss (%rcx,%rsi,4), %xmm0
movss %xmm0, (%rcx,%rsi,4)
incq %rsi
cmpq %rsi, %rdx
jne 0x51e8
movq %rdi, %rax
popq %rcx
retq
movl $0x8, %edi
callq 0x20a0
leaq 0xfee(%rip), %rcx       # 0x6203
movq %rcx, (%rax)
movq 0x3d91(%rip), %rsi      # 0x8fb0
movq %rax, %rdi
xorl %edx, %edx
callq 0x21f0
nop
// File: /workspace/github_cpp_makefile_star2_O1/theolepage[P]prophecy/src/model/../layer/../matrix/matrix.hh
// Function: Matrix<float>::fill(fill_type)
void fill(fill_type type)
    {
        assert(data_ != nullptr);
        switch(type)
        {
            case fill_type::RANDOM_FLOAT:
                for (int i = 0; i < rows_ * cols_; ++i)
                    data_[i] = get_random_float();
                break;
            case fill_type::SEQUENCE:
                for (int i = 0; i < rows_ * cols_; ++i)
                    data_[i] = i;
                break;
            case fill_type::ZERO:
                for (int i = 0; i < rows_ * cols_; ++i)
                    data_[i] = static_cast<T>(0);
                break;
        }
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x10(%rdi), %rdi
testq %rdi, %rdi
je 0x52e8
testl %esi, %esi
je 0x5298
cmpl $0x1, %esi
je 0x5273
cmpl $0x2, %esi
jne 0x52e0
movl 0xc(%rbx), %eax
imull 0x8(%rbx), %eax
testl %eax, %eax
jle 0x52e0
movl %eax, %edx
shlq $0x2, %rdx
xorl %esi, %esi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x20c0
movl 0xc(%rbx), %eax
imull 0x8(%rbx), %eax
testl %eax, %eax
jle 0x52e0
movl %eax, %eax
xorl %ecx, %ecx
xorps %xmm0, %xmm0
cvtsi2ss %ecx, %xmm0
movss %xmm0, (%rdi,%rcx,4)
incq %rcx
cmpq %rcx, %rax
jne 0x5282
jmp 0x52e0
movl 0xc(%rbx), %eax
imull 0x8(%rbx), %eax
testl %eax, %eax
jle 0x52e0
xorl %r14d, %r14d
callq 0x2050
xorps %xmm0, %xmm0
cvtsi2ss %eax, %xmm0
mulss 0xd52(%rip), %xmm0      # 0x600c
addss 0xd4e(%rip), %xmm0      # 0x6010
movq 0x10(%rbx), %rax
movss %xmm0, (%rax,%r14,4)
incq %r14
movslq 0x8(%rbx), %rax
movslq 0xc(%rbx), %rcx
imulq %rax, %rcx
cmpq %rcx, %r14
jl 0x52a6
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0xe76(%rip), %rdi       # 0x6165
leaq 0xd82(%rip), %rsi       # 0x6078
leaq 0xf1b(%rip), %rcx       # 0x6218
movl $0x4e, %edx
callq 0x20d0
// File: /workspace/github_cpp_makefile_star2_O1/WojciechMula[P]utf16utf8/benchmarks/benchmark_from_utf16.cpp
// Function: main
int main() {
    // todo: Daniel finds the endless stream of numbers too much
    // Because some schemes use branching, you need to have a sizeable input if you
    // want fair results, given that we repeat the tests many times (we need to account
    // for branch predictors learning the branches).
    std::vector<size_t> input_size{16384};
    for (const size_t size: input_size) {
        Benchmark bench(size);
        bench.run_from_utf16();
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x13b8, %rsp           # imm = 0x13B8
leaq 0x28(%rsp), %rsi
movq $0x4000, (%rsi)         # imm = 0x4000
leaq 0x10(%rsp), %rbx
leaq 0xf(%rsp), %rcx
movl $0x1, %edx
movq %rbx, %rdi
callq 0x48d6
movq (%rbx), %r15
movq 0x8(%rbx), %r12
cmpq %r12, %r15
je 0x4874
leaq 0x30(%rsp), %rbx
leaq 0x28(%rsp), %r14
movq (%r15), %rax
movq %rax, 0x28(%rsp)
movq %rbx, %rdi
callq 0x4d00
movq %r14, %rdi
callq 0x491e
movq %rbx, %rdi
callq 0x21a0
addq $0x8, %r15
cmpq %r12, %r15
jne 0x484b
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x488b
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x21d0
xorl %eax, %eax
addq $0x13b8, %rsp           # imm = 0x13B8
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %r14
jmp 0x48ac
movq %rax, %r14
movq %rbx, %rdi
callq 0x21a0
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x48c3
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x21d0
movq %r14, %rdi
callq 0x22b0
jmp 0x48cd
movq %rax, %rdi
callq 0x4e0a
nop
// File: /workspace/github_cpp_makefile_star2_O1/WojciechMula[P]utf16utf8/dependencies/utf8_v2_3_4/source/utf8/checked.h
// Function: std::back_insert_iterator<std::vector<unsigned char, std::allocator<unsigned char>>> utf8::utf16to8<__gnu_cxx::__normal_iterator<unsigned short const*, std::vector<unsigned short, std::allocator<unsigned short>>>, std::back_insert_iterator<std::vector<unsigned char, std::allocator<unsigned char>>>>(__gnu_cxx::__normal_iterator<unsigned short const*, std::vector<unsigned short, std::allocator<unsigned short>>>, __gnu_cxx::__normal_iterator<unsigned short const*, std::vector<unsigned short, std::allocator<unsigned short>>>, std::back_insert_iterator<std::vector<unsigned char, std::allocator<unsigned char>>>)
octet_iterator utf16to8 (u16bit_iterator start, u16bit_iterator end, octet_iterator result)
    {
        while (start != end) {
            uint32_t cp = utf8::internal::mask16(*start++);
            // Take care of surrogate pairs first
            if (utf8::internal::is_lead_surrogate(cp)) {
                if (start != end) {
                    uint32_t trail_surrogate = utf8::internal::mask16(*start++);
                    if (utf8::internal::is_trail_surrogate(trail_surrogate))
                        cp = (cp << 10) + trail_surrogate + internal::SURROGATE_OFFSET;
                    else
                        throw invalid_utf16(static_cast<uint16_t>(trail_surrogate));
                }
                else
                    throw invalid_utf16(static_cast<uint16_t>(cp));

            }
            // Lone trail surrogate
            else if (utf8::internal::is_trail_surrogate(cp))
                throw invalid_utf16(static_cast<uint16_t>(cp));

            result = utf8::append(cp, result);
        }
        return result;
    }

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdx, %rax
cmpq %rsi, %rdi
je 0x6b61
movq %rsi, %rbx
leaq 0x2(%rdi), %r14
movzwl (%rdi), %ebp
movzwl %bp, %ecx
movl %ecx, %edx
andl $0xfc00, %edx           # imm = 0xFC00
cmpl $0xd800, %edx           # imm = 0xD800
je 0x6b22
cmpl $0xdc00, %edx           # imm = 0xDC00
jne 0x6b4f
jmp 0x6b66
cmpq %rbx, %r14
je 0x6b66
movzwl (%r14), %ebp
movzwl %bp, %edx
movl %edx, %esi
andl $0xfc00, %esi           # imm = 0xFC00
cmpl $0xdc00, %esi           # imm = 0xDC00
jne 0x6b66
addq $0x4, %rdi
shll $0xa, %ecx
leal -0x35fdc00(%rcx,%rdx), %ecx
movq %rdi, %r14
movl %ecx, %edi
movq %rax, %rsi
callq 0x6b94
movq %r14, %rdi
cmpq %rbx, %r14
jne 0x6afe
popq %rbx
popq %r14
popq %rbp
retq
movl $0x10, %edi
callq 0x20d0
leaq 0x81d9(%rip), %rcx      # 0xed50
movq %rcx, (%rax)
movw %bp, 0x8(%rax)
leaq 0x81a3(%rip), %rsi      # 0xed28
movq 0x844c(%rip), %rdx      # 0xefd8
movq %rax, %rdi
callq 0x22a0
// File: /workspace/github_cpp_makefile_star2_O1/cpottamus[P]btree_lab/makedisk.cc
// Function: main
int main(int argc, char *argv[])
{
  if (argc<10) { 
    usage();
    exit(-1);
  }

  DiskSystem disk(argv[1],
		  true,
		  0,
		  atoi(argv[2]),
		  atoi(argv[3]),
		  atoi(argv[4]),
		  atoi(argv[5]),
		  atoi(argv[6]),
		  atof(argv[7]),
		  atof(argv[8]),
		  atof(argv[9]));
  
  
  cerr << "Disk is as follows.\n" << disk << "\n";

  cerr << "Done.\n";

  return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
cmpl $0x9, %edi
jle 0x263d
movq %rsi, %rbx
movq 0x8(%rsi), %rsi
leaq 0x18(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x2686
movq 0x10(%rbx), %rdi
callq 0x22a0
movl %eax, %ebp
movq 0x18(%rbx), %rdi
callq 0x22a0
movl %eax, %r15d
movq 0x20(%rbx), %rdi
callq 0x22a0
movl %eax, %r14d
movq 0x28(%rbx), %rdi
callq 0x22a0
movl %eax, %r12d
movq 0x30(%rbx), %rdi
callq 0x22a0
movl %eax, %r13d
movq 0x38(%rbx), %rdi
callq 0x2220
movsd %xmm0, 0x10(%rsp)
movq 0x40(%rbx), %rdi
callq 0x2220
movsd %xmm0, 0x8(%rsp)
movq 0x48(%rbx), %rdi
callq 0x2220
movaps %xmm0, %xmm2
subq $0x8, %rsp
leaq 0x40(%rsp), %rdi
leaq 0x20(%rsp), %rsi
movl $0x1, %edx
xorl %ecx, %ecx
movl %ebp, %r8d
movl %r15d, %r9d
movsd 0x18(%rsp), %xmm0
movsd 0x10(%rsp), %xmm1
pushq %r13
pushq %r12
pushq %r14
callq 0x2754
addq $0x20, %rsp
leaq 0x28(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x25ca
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x2190
movq 0x5a1f(%rip), %rdi      # 0x7ff0
leaq 0x2a8c(%rip), %rsi      # 0x5064
movl $0x14, %edx
callq 0x21d0
movq 0x5a07(%rip), %rsi      # 0x7ff0
leaq 0x38(%rsp), %rdi
callq 0x3ad4
leaq 0x2c42(%rip), %rsi      # 0x523c
movl $0x1, %edx
movq %rax, %rdi
callq 0x21d0
movq 0x59e2(%rip), %rdi      # 0x7ff0
leaq 0x2a64(%rip), %rsi      # 0x5079
movl $0x6, %edx
callq 0x21d0
leaq 0x38(%rsp), %rdi
callq 0x2cf4
xorl %eax, %eax
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x24cc
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x2200
movq %rax, %rbx
leaq 0x28(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x267e
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x2190
jmp 0x267e
movq %rax, %rbx
jmp 0x267e
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x2cf4
movq %rbx, %rdi
callq 0x2300
// File: /workspace/github_cpp_makefile_star2_O1/tokuhirom[P]nanouri/t/02_escape.cc
// Function: main
int main() {
    std::string src;

    src = "hello\x01\x02";
    is(nanouri::escape_uri(src), std::string("hello%01%02"), "escape");

    src = "hi\xff";
    is(nanouri::escape_uri(src), std::string("hi%ff"), "escape");

    done_testing();
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0xa0, %rsp
leaq 0x50(%rsp), %r14
movq %r14, -0x10(%r14)
movq $0x0, -0x8(%r14)
movb $0x0, (%r14)
leaq 0x1376(%rip), %rcx      # 0x4058
leaq 0x40(%rsp), %rdi
movl $0x7, %r8d
xorl %esi, %esi
xorl %edx, %edx
callq 0x2180
leaq 0x80(%rsp), %rdi
leaq 0x40(%rsp), %rsi
callq 0x243c
leaq 0x30(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x1348(%rip), %rsi      # 0x4060
leaq 0x134c(%rip), %rdx      # 0x406b
leaq 0x20(%rsp), %rdi
callq 0x2f8a
leaq 0x133c(%rip), %rdx      # 0x406c
leaq 0x80(%rsp), %rdi
leaq 0x20(%rsp), %rsi
callq 0x27a6
movq 0x20(%rsp), %rdi
cmpq %r15, %rdi
je 0x2d59
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x2120
leaq 0x90(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2d7a
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x2120
leaq 0x40(%rsp), %rdi
movq 0x8(%rdi), %rdx
leaq 0x12e9(%rip), %rcx      # 0x4073
movl $0x3, %r8d
xorl %esi, %esi
callq 0x2180
leaq 0x60(%rsp), %rdi
leaq 0x40(%rsp), %rsi
callq 0x243c
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x12c1(%rip), %rsi      # 0x4077
leaq 0x12bf(%rip), %rdx      # 0x407c
movq %rsp, %rdi
callq 0x2f8a
leaq 0x12a0(%rip), %rdx      # 0x406c
leaq 0x60(%rsp), %rdi
movq %rsp, %rsi
callq 0x27a6
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x2def
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2120
leaq 0x70(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2e0a
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x2120
movl 0x32fc(%rip), %esi      # 0x610c
leaq 0x1206(%rip), %rdi      # 0x401d
xorl %eax, %eax
callq 0x2040
xorl %edi, %edi
callq 0x2150
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x2e43
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2120
jmp 0x2e43
movq %rax, %rbx
leaq 0x70(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2e9d
movq 0x70(%rsp), %rsi
jmp 0x2e90
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r15, %rdi
je 0x2e77
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x2120
jmp 0x2e77
movq %rax, %rbx
leaq 0x90(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2e9d
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x2120
jmp 0x2e9d
movq %rax, %rbx
movq 0x40(%rsp), %rdi
cmpq %r14, %rdi
je 0x2eb4
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x2120
movq %rbx, %rdi
callq 0x21c0
// File: /workspace/github_cpp_makefile_star2_O1/tobias93[P]piano/rtmidi_build/RtMidi.cpp
// Function: MidiInAlsa::~MidiInAlsa()
MidiInAlsa :: ~MidiInAlsa()
{
  // Close a connection if it exists.
  closePort();

  // Shutdown the input thread.
  AlsaMidiData *data = static_cast<AlsaMidiData *> (apiData_);
  if ( inputData_.doInput ) {
    inputData_.doInput = false;
    int res = write( data->trigger_fds[1], &inputData_.doInput, sizeof(inputData_.doInput) );
    (void) res;
    if ( !pthread_equal(data->thread, data->dummy_thread_id) )
      pthread_join( data->thread, NULL );
  }

  // Cleanup.
  close ( data->trigger_fds[0] );
  close ( data->trigger_fds[1] );
  if ( data->vport >= 0 ) snd_seq_delete_port( data->seq, data->vport );
#ifndef AVOID_TIMESTAMPING
  snd_seq_free_queue( data->seq, data->queue_id );
#endif
  snd_seq_close( data->seq );
  delete data;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x859f(%rip), %rax      # 0x10fa8
addq $0x10, %rax
movq %rax, (%rdi)
callq 0x7730
movq 0x8(%rbx), %r14
cmpb $0x1, 0x89(%rbx)
jne 0x8a58
leaq 0x89(%rbx), %rsi
movb $0x0, (%rsi)
movl 0x50(%r14), %edi
movl $0x1, %edx
callq 0x70d0
movq 0x30(%r14), %r15
movq 0x38(%r14), %rsi
movq %r15, %rdi
callq 0x7870
testl %eax, %eax
jne 0x8a58
movq %r15, %rdi
xorl %esi, %esi
callq 0x7380
movl 0x4c(%r14), %edi
callq 0x7990
movl 0x50(%r14), %edi
callq 0x7990
movl 0xc(%r14), %esi
testl %esi, %esi
js 0x8a7a
movq (%r14), %rdi
callq 0x7520
movq (%r14), %rdi
movl 0x48(%r14), %esi
callq 0x7210
movq (%r14), %rdi
callq 0x7670
movl $0x58, %esi
movq %r14, %rdi
callq 0x7420
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x75c0
movq %rax, %rdi
callq 0xae6e
// File: /workspace/github_cpp_makefile_star2_O1/tobias93[P]piano/rtmidi_build/RtMidi.cpp
// Function: portInfo(_snd_seq*, _snd_seq_port_info*, unsigned int, int)
unsigned int portInfo( snd_seq_t *seq, snd_seq_port_info_t *pinfo, unsigned int type, int portNumber )
{
  snd_seq_client_info_t *cinfo;
  int client;
  int count = 0;
  snd_seq_client_info_alloca( &cinfo );

  snd_seq_client_info_set_client( cinfo, -1 );
  while ( snd_seq_query_next_client( seq, cinfo ) >= 0 ) {
    client = snd_seq_client_info_get_client( cinfo );
    if ( client == 0 ) continue;
    // Reset query info
    snd_seq_port_info_set_client( pinfo, client );
    snd_seq_port_info_set_port( pinfo, -1 );
    while ( snd_seq_query_next_port( seq, pinfo ) >= 0 ) {
      unsigned int atyp = snd_seq_port_info_get_type( pinfo );
      if ( ( ( atyp & SND_SEQ_PORT_TYPE_MIDI_GENERIC ) == 0 ) &&
           ( ( atyp & SND_SEQ_PORT_TYPE_SYNTH ) == 0 ) &&
           ( ( atyp & SND_SEQ_PORT_TYPE_APPLICATION ) == 0 ) ) continue;
	    
      unsigned int caps = snd_seq_port_info_get_capability( pinfo );
      if ( ( caps & type ) != type ) continue;
      if ( count == portNumber ) return 1;
      ++count;
    }
  }

  // If a negative portNumber was used, return the port count.
  if ( portNumber < 0 ) return count;
  return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %ebx
movl %edx, -0x30(%rbp)
movq %rsi, %r15
movq %rdi, %r12
callq 0x7810
movq %rsp, %r13
addq $0xf, %rax
andq $-0x10, %rax
subq %rax, %r13
movq %r13, %rsp
callq 0x7810
xorl %r14d, %r14d
movq %r13, %rdi
xorl %esi, %esi
movq %rax, %rdx
callq 0x71d0
movq %r13, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x7430
movq %r12, %rdi
movq %r13, %rsi
callq 0x7950
testl %eax, %eax
js 0x8db4
movq %r13, %rdi
callq 0x7220
testl %eax, %eax
je 0x8d0e
movq %r15, %rdi
movl %eax, %esi
callq 0x7600
movq %r15, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x7270
movq %r12, %rdi
movq %r15, %rsi
callq 0x73a0
testl %eax, %eax
js 0x8d0e
movl %r14d, -0x2c(%rbp)
movq %r15, %rdi
callq 0x78d0
movl $0x6, %r14d
testl $0x100402, %eax         # imm = 0x100402
je 0x8d91
movq %r15, %rdi
callq 0x7290
notl %eax
testl %eax, -0x30(%rbp)
jne 0x8d91
xorl %r14d, %r14d
xorl %eax, %eax
movl -0x2c(%rbp), %ecx
cmpl %ebx, %ecx
sete %r14b
setne %al
addl %eax, %ecx
movl %ecx, -0x2c(%rbp)
cmpl $0x6, %r14d
je 0x8d9c
testl %r14d, %r14d
jne 0x8dcb
movq %r12, %rdi
movq %r15, %rsi
callq 0x73a0
testl %eax, %eax
movl -0x2c(%rbp), %r14d
jns 0x8d53
jmp 0x8d0e
sarl $0x1f, %ebx
andl %r14d, %ebx
movl %ebx, %eax
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x1, %ebx
jmp 0x8dba
// File: /workspace/github_cpp_makefile_star2_O1/tobias93[P]piano/rtmidi_build/RtMidi.cpp
// Function: MidiInAlsa::closePort()
void MidiInAlsa :: closePort( void )
{
  AlsaMidiData *data = static_cast<AlsaMidiData *> (apiData_);

  if ( connected_ ) {
    if ( data->subscription ) {
      snd_seq_unsubscribe_port( data->seq, data->subscription );
      snd_seq_port_subscribe_free( data->subscription );
      data->subscription = 0;
    }
    // Stop the input queue
#ifndef AVOID_TIMESTAMPING
    snd_seq_stop_queue( data->seq, data->queue_id, NULL );
    snd_seq_drain_output( data->seq );
#endif
    connected_ = false;
  }

  // Stop thread to avoid triggering the callback, while the port is intended to be closed
  if ( inputData_.doInput ) {
    inputData_.doInput = false;
    int res = write( data->trigger_fds[1], &inputData_.doInput, sizeof(inputData_.doInput) );
    (void) res;
    if ( !pthread_equal(data->thread, data->dummy_thread_id) )
      pthread_join( data->thread, NULL );
  }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x8(%rdi), %r14
cmpb $0x1, 0x10(%rdi)
jne 0x9f3b
movq 0x10(%r14), %rsi
testq %rsi, %rsi
je 0x9f19
movq (%r14), %rdi
callq 0x7880
movq 0x10(%r14), %rdi
callq 0x76c0
movq $0x0, 0x10(%r14)
movq (%r14), %rdi
movl 0x48(%r14), %esi
movl $0x20, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x7470
movq (%r14), %rdi
callq 0x78c0
movb $0x0, 0x10(%rbx)
cmpb $0x1, 0x89(%rbx)
jne 0x9f73
addq $0x89, %rbx
movb $0x0, (%rbx)
movl 0x50(%r14), %edi
movl $0x1, %edx
movq %rbx, %rsi
callq 0x70d0
movq 0x30(%r14), %rbx
movq 0x38(%r14), %rsi
movq %rbx, %rdi
callq 0x7870
testl %eax, %eax
je 0x9f7b
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq %rbx, %rdi
xorl %esi, %esi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x7380
// File: /workspace/github_cpp_makefile_star2_O1/tobias93[P]piano/rtmidi_build/RtMidi.cpp
// Function: MidiOutAlsa::~MidiOutAlsa()
MidiOutAlsa :: ~MidiOutAlsa()
{
  // Close a connection if it exists.
  closePort();

  // Cleanup.
  AlsaMidiData *data = static_cast<AlsaMidiData *> (apiData_);
  if ( data->vport >= 0 ) snd_seq_delete_port( data->seq, data->vport );
  if ( data->coder ) snd_midi_event_free( data->coder );
  if ( data->buffer ) free( data->buffer );
  snd_seq_close( data->seq );
  delete data;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x6f9e(%rip), %rax      # 0x10f90
addq $0x10, %rax
movq %rax, (%rdi)
callq 0x7330
movq 0x8(%rbx), %r14
movl 0xc(%r14), %esi
testl %esi, %esi
js 0xa012
movq (%r14), %rdi
callq 0x7520
movq 0x18(%r14), %rdi
testq %rdi, %rdi
je 0xa020
callq 0x78a0
movq 0x28(%r14), %rdi
testq %rdi, %rdi
je 0xa02e
callq 0x7500
movq (%r14), %rdi
callq 0x7670
movl $0x58, %esi
movq %r14, %rdi
callq 0x7420
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x7310
movq %rax, %rdi
callq 0xae6e
// File: /workspace/github_cpp_makefile_star2_O1/tobias93[P]piano/rtmidi_build/RtMidi.cpp
// Function: MidiOutAlsa::closePort()
void MidiOutAlsa :: closePort( void )
{
  if ( connected_ ) {
    AlsaMidiData *data = static_cast<AlsaMidiData *> (apiData_);
    snd_seq_unsubscribe_port( data->seq, data->subscription );
    snd_seq_port_subscribe_free( data->subscription );
    connected_ = false;
  }
}

// Assembly:
cmpb $0x1, 0x10(%rdi)
jne 0xaac7
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x8(%rdi), %r14
movq (%r14), %rdi
movq 0x10(%r14), %rsi
callq 0x7880
movq 0x10(%r14), %rdi
callq 0x76c0
movb $0x0, 0x10(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/tobias93[P]piano/rtmidi_build/RtMidi.cpp
// Function: MidiOutAlsa::openVirtualPort(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void MidiOutAlsa :: openVirtualPort( std::string portName )
{
  AlsaMidiData *data = static_cast<AlsaMidiData *> (apiData_);
  if ( data->vport < 0 ) {
    data->vport = snd_seq_create_simple_port( data->seq, portName.c_str(),
                                              SND_SEQ_PORT_CAP_READ|SND_SEQ_PORT_CAP_SUBS_READ,
                                              SND_SEQ_PORT_TYPE_MIDI_GENERIC|SND_SEQ_PORT_TYPE_APPLICATION );

    if ( data->vport < 0 ) {
      errorString_ = "MidiOutAlsa::openVirtualPort: ALSA error creating virtual port.";
      error( RtMidiError::DRIVER_ERROR, errorString_ );
    }
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq 0x8(%rdi), %r14
cmpl $0x0, 0xc(%r14)
jns 0xab61
movq %rdi, %rbx
movq (%r14), %rdi
movq (%rsi), %rsi
movl $0x21, %edx
movl $0x100002, %ecx         # imm = 0x100002
callq 0x76e0
movl %eax, 0xc(%r14)
testl %eax, %eax
jns 0xab61
leaq 0x18(%rbx), %rdi
movq 0x20(%rbx), %rdx
leaq 0x2bf0(%rip), %rcx      # 0xd6ff
movl $0x3f, %r8d
xorl %esi, %esi
callq 0x7710
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x18(%rbx), %rsi
movq 0x20(%rbx), %rdx
addq %rsi, %rdx
movq %rsp, %r14
movq %r14, %rdi
callq 0x7130
movq %rbx, %rdi
movl $0x8, %esi
movq %r14, %rdx
callq 0x7200
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0xab61
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x7420
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0xab84
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x7420
movq %rbx, %rdi
callq 0x78b0
// File: /workspace/github_cpp_makefile_star2_O1/tobias93[P]piano/rtmidi_build/rtmidi_c.cpp
// Function: rtmidi_get_compiled_api
int rtmidi_get_compiled_api (enum RtMidiApi **apis) // return length for NULL argument.
{
	if (!apis || !(*apis)) {
		std::vector<RtMidi::Api> *v = new std::vector<RtMidi::Api> ();
		try {
			RtMidi::getCompiledApi (*v);
			int size = v->size ();
			delete v;
			return size;
		} catch (...) {
			return -1;
		}
	} else {
		try {
			std::vector<RtMidi::Api> *v = new std::vector<RtMidi::Api> ();
			RtMidi::getCompiledApi (*v);
			for (unsigned int i = 0; i < v->size (); i++)
				(*apis) [i] = (RtMidiApi) v->at (i);
			delete v;
			return 0;
		} catch (...) {
			return -1;
		}
	}
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0xb9fe
movq %rdi, %r14
cmpq $0x0, (%rdi)
je 0xb9fe
movl $0x18, %edi
callq 0x7410
movq %rax, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movq $0x0, 0x10(%rax)
movq %rax, %rdi
callq 0x7070
movq (%rbx), %rdi
movq 0x8(%rbx), %rax
subq %rdi, %rax
je 0xb9dc
sarq $0x2, %rax
movq (%r14), %rcx
xorl %edx, %edx
movl (%rdi,%rdx,4), %esi
movl %esi, (%rcx,%rdx,4)
incq %rdx
movl %edx, %esi
cmpq %rsi, %rax
ja 0xb9cc
testq %rdi, %rdi
je 0xb9ed
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x7420
movl $0x18, %esi
movq %rbx, %rdi
callq 0x7420
xorl %ebx, %ebx
jmp 0xba4d
movl $0x18, %edi
callq 0x7410
movq %rax, %r14
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movq $0x0, 0x10(%rax)
movq %rax, %rdi
callq 0x7070
movq (%r14), %rdi
movq 0x8(%r14), %rbx
subq %rdi, %rbx
shrq $0x2, %rbx
testq %rdi, %rdi
je 0xba40
movq 0x10(%r14), %rsi
subq %rdi, %rsi
callq 0x7420
movl $0x18, %esi
movq %r14, %rdi
callq 0x7420
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rdi
callq 0x7140
callq 0x77a0
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
jmp 0xba4d
// File: /workspace/github_cpp_makefile_star2_O1/tobias93[P]piano/rtmidi_build/rtmidi_c.cpp
// Function: rtmidi_open_port
void rtmidi_open_port (RtMidiPtr device, unsigned int portNumber, const char *portName)
{
    std::string name = portName;
    try {
        ((RtMidi*) device->ptr)->openPort (portNumber, name);
    
    } catch (const RtMidiError & err) {
        device->ok  = false;
        device->msg = err.what ();
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x50, %rsp
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x30(%rsp), %rdi
leaq 0xf(%rsp), %rax
movq %rdx, %rsi
movq %rax, %rdx
callq 0x7830
movq (%rbx), %r14
leaq 0x20(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
addq %rsi, %rdx
leaq 0x10(%rsp), %rdi
callq 0x7130
movq (%r14), %rax
leaq 0x10(%rsp), %rdx
movq %r14, %rdi
movl %ebp, %esi
callq *(%rax)
movq 0x10(%rsp), %rdi
cmpq %r12, %rdi
je 0xbbb0
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x7420
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xbbcb
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x7420
addq $0x50, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rdx, %r15
movq %rax, %r14
movq 0x10(%rsp), %rdi
cmpq %r12, %rdi
je 0xbbfd
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x7420
jmp 0xbbfd
movq %rdx, %r15
movq %rax, %r14
cmpl $0x1, %r15d
jne 0xbc26
movq %r14, %rdi
callq 0x7140
movb $0x0, 0x10(%rbx)
movq (%rax), %rcx
movq %rax, %rdi
callq *0x10(%rcx)
movq %rax, 0x18(%rbx)
callq 0x77a0
jmp 0xbbb0
movq %rax, %r14
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xbc46
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x7420
jmp 0xbc46
movq %rax, %r14
movq %r14, %rdi
callq 0x78b0
// File: /workspace/github_cpp_makefile_star2_O1/tobias93[P]piano/rtmidi_build/rtmidi_c.cpp
// Function: rtmidi_open_virtual_port
void rtmidi_open_virtual_port (RtMidiPtr device, const char *portName)
{
    std::string name = portName;
    try {
        ((RtMidi*) device->ptr)->openVirtualPort (name);
    
    } catch (const RtMidiError & err) {
        device->ok  = false;
        device->msg = err.what ();
    }

}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, %rbx
leaq 0x28(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x7830
movq (%rbx), %r14
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %rdi
callq 0x7130
movq (%r14), %rax
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq *0x8(%rax)
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0xbcb4
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x7420
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xbccf
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x7420
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rdx, %r15
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0xbd00
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x7420
jmp 0xbd00
movq %rdx, %r15
movq %rax, %r14
cmpl $0x1, %r15d
jne 0xbd29
movq %r14, %rdi
callq 0x7140
movb $0x0, 0x10(%rbx)
movq (%rax), %rcx
movq %rax, %rdi
callq *0x10(%rcx)
movq %rax, 0x18(%rbx)
callq 0x77a0
jmp 0xbcb4
movq %rax, %r14
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xbd49
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x7420
jmp 0xbd49
movq %rax, %r14
movq %r14, %rdi
callq 0x78b0
// File: /workspace/github_cpp_makefile_star2_O1/tobias93[P]piano/rtmidi_build/rtmidi_c.cpp
// Function: rtmidi_get_port_name
const char* rtmidi_get_port_name (RtMidiPtr device, unsigned int portNumber)
{
    try {
        std::string name = ((RtMidi*) device->ptr)->getPortName (portNumber);
        return strdup (name.c_str ());
    
    } catch (const RtMidiError & err) {
        device->ok  = false;
        device->msg = err.what ();
        return "";
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movl %esi, %edx
movq %rdi, %rbx
movq (%rdi), %rsi
movq (%rsi), %rax
movq %rsp, %rdi
callq *0x18(%rax)
leaq 0x10(%rsp), %r15
movq -0x10(%r15), %r14
movq %r14, %rdi
callq 0x7910
movq %rax, %rbx
cmpq %r15, %r14
je 0xbdd5
movq 0x10(%rsp), %rsi
incq %rsi
movq %r14, %rdi
callq 0x7420
movq %rbx, %rax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rdi
cmpl $0x1, %edx
jne 0xbdfd
movl %edx, %esi
movq %rbx, %rdx
callq 0x7a11
leaq 0x1b98(%rip), %rbx      # 0xd993
jmp 0xbdd5
callq 0x78b0
// File: /workspace/github_cpp_makefile_star2_O1/tobias93[P]piano/rtmidi_build/rtmidi_c.cpp
// Function: rtmidi_in_create_default
RtMidiInPtr rtmidi_in_create_default ()
{
    RtMidiWrapper* wrp = new RtMidiWrapper;
    
    try {
        RtMidiIn* rIn = new RtMidiIn ();
        
        wrp->ptr = (void*) rIn;
        wrp->ok  = true;
        wrp->msg = "";
    
    } catch (const RtMidiError & err) {
        wrp->ptr = 0;
        wrp->ok  = false;
        wrp->msg = err.what ();
    }

    return wrp;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x20, %rsp
movl $0x20, %edi
callq 0x7410
movq %rax, %rbx
movl $0x10, %edi
callq 0x7410
movq %rax, %r14
leaq 0x10(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x1c77(%rip), %rsi      # 0xdab0
leaq 0x1c83(%rip), %rdx      # 0xdac3
movq %rsp, %rdi
callq 0x7100
movq %rsp, %rdx
movq %r14, %rdi
xorl %esi, %esi
movl $0x64, %ecx
callq 0x7280
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0xbe70
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x7420
movq %r14, (%rbx)
movb $0x1, 0x10(%rbx)
leaq 0x1b15(%rip), %rax      # 0xd993
movq %rax, 0x18(%rbx)
movq %rbx, %rax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rdx, %r12
movq %rax, %r15
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0xbeb7
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x7420
jmp 0xbeb7
movq %rdx, %r12
movq %rax, %r15
movl $0x10, %esi
movq %r14, %rdi
callq 0x7420
jmp 0xbecc
movq %rdx, %r12
movq %rax, %r15
movq %r15, %rdi
cmpl $0x1, %r12d
jne 0xbef9
callq 0x7140
movq $0x0, (%rbx)
movb $0x0, 0x10(%rbx)
movq (%rax), %rcx
movq %rax, %rdi
callq *0x10(%rcx)
movq %rax, 0x18(%rbx)
callq 0x77a0
jmp 0xbe82
callq 0x78b0
// File: /workspace/github_cpp_makefile_star2_O1/tobias93[P]piano/rtmidi_build/rtmidi_c.cpp
// Function: rtmidi_in_create
RtMidiInPtr rtmidi_in_create (enum RtMidiApi api, const char *clientName, unsigned int queueSizeLimit)
{
    std::string name = clientName;
    RtMidiWrapper* wrp = new RtMidiWrapper;
    
    try {
        RtMidiIn* rIn = new RtMidiIn ((RtMidi::Api) api, name, queueSizeLimit);
        
        wrp->ptr = (void*) rIn;
        wrp->data = 0;
        wrp->ok  = true;
        wrp->msg = "";

    } catch (const RtMidiError & err) {
        wrp->ptr = 0;
        wrp->data = 0;
        wrp->ok  = false;
        wrp->msg = err.what ();
    }

    return wrp;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %edx, %ebp
movl %edi, %r15d
leaq 0x28(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x7830
movl $0x20, %edi
callq 0x7410
movq %rax, %rbx
movl $0x10, %edi
callq 0x7410
movq %rax, %r14
leaq 0x18(%rsp), %r13
movq %r13, -0x10(%r13)
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %rdi
callq 0x7130
leaq 0x8(%rsp), %rdx
movq %r14, %rdi
movl %r15d, %esi
movl %ebp, %ecx
callq 0x7280
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0xbf83
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x7420
movq %r14, (%rbx)
movq $0x0, 0x8(%rbx)
movb $0x1, 0x10(%rbx)
leaq 0x19fa(%rip), %rax      # 0xd993
movq %rax, 0x18(%rbx)
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xbfb8
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x7420
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rdx, %r12
movq %rax, %r15
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0xbfef
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x7420
jmp 0xbfef
movq %rdx, %r12
movq %rax, %r15
movl $0x10, %esi
movq %r14, %rdi
callq 0x7420
jmp 0xc004
movq %rdx, %r12
movq %rax, %r15
cmpl $0x1, %r12d
jne 0xc038
movq %r15, %rdi
callq 0x7140
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movb $0x0, 0x10(%rbx)
movq (%rax), %rcx
movq %rax, %rdi
callq *0x10(%rcx)
movq %rax, 0x18(%rbx)
callq 0x77a0
jmp 0xbf9d
jmp 0xc035
movq %rax, %r15
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xc058
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x7420
jmp 0xc058
movq %rax, %r15
movq %r15, %rdi
callq 0x78b0
// File: /workspace/github_cpp_makefile_star2_O1/tobias93[P]piano/rtmidi_build/rtmidi_c.cpp
// Function: rtmidi_in_free
void rtmidi_in_free (RtMidiInPtr device)
{
    if (device->data)
      delete (CallbackProxyUserData*) device->data;
    delete (RtMidiIn*) device->ptr;
    delete device;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
testq %rdi, %rdi
je 0xc077
movl $0x10, %esi
callq 0x7420
movq (%rbx), %rdi
testq %rdi, %rdi
je 0xc085
movq (%rdi), %rax
callq *0x40(%rax)
movl $0x20, %esi
movq %rbx, %rdi
popq %rbx
jmp 0x7420
// File: /workspace/github_cpp_makefile_star2_O1/tobias93[P]piano/rtmidi_build/rtmidi_c.cpp
// Function: rtmidi_in_set_callback
void rtmidi_in_set_callback (RtMidiInPtr device, RtMidiCCallback callback, void *userData)
{
    device->data = (void*) new CallbackProxyUserData (callback, userData);
    try {
        ((RtMidiIn*) device->ptr)->setCallback (callback_proxy, device->data);
    } catch (const RtMidiError & err) {
        device->ok  = false;
        device->msg = err.what ();
        delete (CallbackProxyUserData*) device->data;
        device->data = 0;
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movl $0x10, %edi
callq 0x7410
movq %r15, (%rax)
movq %r14, 0x8(%rax)
leaq 0x8(%rbx), %r14
movq %rax, 0x8(%rbx)
movq (%rbx), %rcx
movq 0x8(%rcx), %rdi
leaq 0x20(%rip), %rsi        # 0xc100
movq %rax, %rdx
callq 0x7080
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rdi
movl %edx, %esi
movq %rbx, %rdx
movq %r14, %rcx
callq 0x7a32
jmp 0xc0e8
// File: /workspace/github_cpp_makefile_star2_O1/tobias93[P]piano/rtmidi_build/rtmidi_c.cpp
// Function: rtmidi_in_cancel_callback
void rtmidi_in_cancel_callback (RtMidiInPtr device)
{
    try {
        ((RtMidiIn*) device->ptr)->cancelCallback ();
        delete (CallbackProxyUserData*) device->data;
        device->data = 0;
    } catch (const RtMidiError & err) {
        device->ok  = false;
        device->msg = err.what ();
    }
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %rax
movq 0x8(%rax), %rdi
callq 0x7890
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0xc12f
movl $0x10, %esi
callq 0x7420
movq $0x0, 0x8(%rbx)
popq %rbx
retq
movq %rax, %rdi
movl %edx, %esi
movq %rbx, %rdx
callq 0x7a73
jmp 0xc137
// File: /workspace/github_cpp_makefile_star2_O1/tobias93[P]piano/rtmidi_build/rtmidi_c.cpp
// Function: rtmidi_in_get_message
double rtmidi_in_get_message (RtMidiInPtr device, 
                              unsigned char **message, 
                              size_t * size)
{
    try {
        // FIXME: use allocator to achieve efficient buffering
        std::vector<unsigned char> *v = new std::vector<unsigned char> ();
        double ret = ((RtMidiIn*) device->ptr)->getMessage (v);
        *size = v->size ();

        if (v->size () > 0) {
            *message = (unsigned char *) 
                        malloc (sizeof (unsigned char *) * (int) v->size ());
            memcpy (*message, v->data (), (int) v->size ());
        }
        delete v;
        return ret;
    } 
    catch (const RtMidiError & err) {
        device->ok  = false;
        device->msg = err.what ();
        return -1;
    }
    catch (...) {
        device->ok  = false;
        device->msg = "Unknown error";
        return -1;
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r12
movq %rsi, %r15
movq %rdi, %rbx
movl $0x18, %edi
callq 0x7410
movq %rax, %r14
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movq $0x0, 0x10(%rax)
movq (%rbx), %rax
movq 0x8(%rax), %rdi
movq %r14, %rsi
callq 0x7320
movsd %xmm0, (%rsp)
movq (%r14), %rbx
movq 0x8(%r14), %rax
subq %rbx, %rax
movq %rax, (%r12)
je 0xc1c9
movslq %eax, %r12
leaq (,%r12,8), %rdi
callq 0x75e0
movq %rax, (%r15)
movq %rax, %rdi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x72f0
testq %rbx, %rbx
je 0xc1dd
movq 0x10(%r14), %rsi
subq %rbx, %rsi
movq %rbx, %rdi
callq 0x7420
movl $0x18, %esi
movq %r14, %rdi
callq 0x7420
movsd (%rsp), %xmm0
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
jmp 0xc1fd
movq %rdx, %r14
movq %rax, %rdi
callq 0x7140
movb $0x0, 0x10(%rbx)
cmpl $0x2, %r14d
jne 0xc21d
movq (%rax), %rcx
movq %rax, %rdi
callq *0x10(%rcx)
jmp 0xc224
leaq 0x18a0(%rip), %rax      # 0xdac4
movq %rax, 0x18(%rbx)
callq 0x77a0
movsd 0x1873(%rip), %xmm0     # 0xdaa8
movsd %xmm0, (%rsp)
jmp 0xc1ea
// File: /workspace/github_cpp_makefile_star2_O1/tobias93[P]piano/rtmidi_build/rtmidi_c.cpp
// Function: rtmidi_out_create_default
RtMidiOutPtr rtmidi_out_create_default ()
{
    RtMidiWrapper* wrp = new RtMidiWrapper;

    try {
        RtMidiOut* rOut = new RtMidiOut ();
        
        wrp->ptr = (void*) rOut;
        wrp->ok  = true;
        wrp->msg = "";
    
    } catch (const RtMidiError & err) {
        wrp->ptr = 0;
        wrp->ok  = false;
        wrp->msg = err.what ();
    }

    return wrp;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x20, %rsp
movl $0x20, %edi
callq 0x7410
movq %rax, %rbx
movl $0x10, %edi
callq 0x7410
movq %rax, %r14
leaq 0x10(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x185f(%rip), %rsi      # 0xdad2
leaq 0x186c(%rip), %rdx      # 0xdae6
movq %rsp, %rdi
callq 0x7100
movq %rsp, %rdx
movq %r14, %rdi
xorl %esi, %esi
callq 0x7370
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0xc2a5
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x7420
movq %r14, (%rbx)
movb $0x1, 0x10(%rbx)
leaq 0x16e0(%rip), %rax      # 0xd993
movq %rax, 0x18(%rbx)
movq %rbx, %rax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rdx, %r12
movq %rax, %r15
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0xc2ec
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x7420
jmp 0xc2ec
movq %rdx, %r12
movq %rax, %r15
movl $0x10, %esi
movq %r14, %rdi
callq 0x7420
jmp 0xc301
movq %rdx, %r12
movq %rax, %r15
movq %r15, %rdi
cmpl $0x1, %r12d
jne 0xc32e
callq 0x7140
movq $0x0, (%rbx)
movb $0x0, 0x10(%rbx)
movq (%rax), %rcx
movq %rax, %rdi
callq *0x10(%rcx)
movq %rax, 0x18(%rbx)
callq 0x77a0
jmp 0xc2b7
callq 0x78b0
// File: /workspace/github_cpp_makefile_star2_O1/tobias93[P]piano/rtmidi_build/rtmidi_c.cpp
// Function: rtmidi_out_create
RtMidiOutPtr rtmidi_out_create (enum RtMidiApi api, const char *clientName)
{
    RtMidiWrapper* wrp = new RtMidiWrapper;
    std::string name = clientName;

    try {
        RtMidiOut* rOut = new RtMidiOut ((RtMidi::Api) api, name);
        
        wrp->ptr = (void*) rOut;
        wrp->ok  = true;
        wrp->msg = "";
    
    } catch (const RtMidiError & err) {
        wrp->ptr = 0;
        wrp->ok  = false;
        wrp->msg = err.what ();
    }


    return wrp;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, %r14
movl %edi, %ebp
movl $0x20, %edi
callq 0x7410
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
leaq 0x7(%rsp), %rdx
movq %r14, %rsi
callq 0x7830
movl $0x10, %edi
callq 0x7410
movq %rax, %r14
leaq 0x18(%rsp), %r13
movq %r13, -0x10(%r13)
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %rdi
callq 0x7130
leaq 0x8(%rsp), %rdx
movq %r14, %rdi
movl %ebp, %esi
callq 0x7370
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0xc3b8
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x7420
movq %r14, (%rbx)
movb $0x1, 0x10(%rbx)
leaq 0x15cd(%rip), %rax      # 0xd993
movq %rax, 0x18(%rbx)
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xc3e5
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x7420
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rdx, %r12
movq %rax, %r15
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0xc41c
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x7420
jmp 0xc41c
movq %rdx, %r12
movq %rax, %r15
movl $0x10, %esi
movq %r14, %rdi
callq 0x7420
jmp 0xc431
movq %rdx, %r12
movq %rax, %r15
cmpl $0x1, %r12d
jne 0xc464
movq %r15, %rdi
callq 0x7140
movq $0x0, (%rbx)
movb $0x0, 0x10(%rbx)
movq (%rax), %rcx
movq %rax, %rdi
callq *0x10(%rcx)
movq %rax, 0x18(%rbx)
callq 0x77a0
jmp 0xc3ca
movq %rax, %r15
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xc484
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x7420
jmp 0xc484
movq %rax, %r15
movq %r15, %rdi
callq 0x78b0
// File: /workspace/github_cpp_makefile_star2_O1/tobias93[P]piano/rtmidi_build/rtmidi_c.cpp
// Function: rtmidi_out_send_message
int rtmidi_out_send_message (RtMidiOutPtr device, const unsigned char *message, int length)
{
    try {
        // FIXME: use allocator to achieve efficient buffering
        std::vector<unsigned char> *v = new std::vector<unsigned char> (length);
        memcpy (v->data (), message, length);
        ((RtMidiOut*) device->ptr)->sendMessage (v);
        delete v;
        return 0;
    }
    catch (const RtMidiError & err) {
        device->ok  = false;
        device->msg = err.what ();
        return -1;
    }
    catch (...) {
        device->ok  = false;
        device->msg = "Unknown error";
        return -1;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movl %edx, %ebp
movq %rsi, %r15
movq %rdi, %rbx
movl $0x18, %edi
callq 0x7410
movq %rax, %r14
movslq %ebp, %r12
leaq 0xf(%rsp), %rdx
movq %rax, %rdi
movq %r12, %rsi
callq 0x7770
movq (%r14), %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x72f0
movq (%rbx), %rax
movq 0x8(%rax), %rdi
movq (%rdi), %rax
movq %r14, %rsi
callq *0x48(%rax)
movq (%r14), %rdi
testq %rdi, %rdi
je 0xc52a
movq 0x10(%r14), %rsi
subq %rdi, %rsi
callq 0x7420
movl $0x18, %esi
movq %r14, %rdi
callq 0x7420
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rdx, %r15
movq %rax, %r12
movl $0x18, %esi
movq %r14, %rdi
callq 0x7420
jmp 0xc561
movq %rdx, %r15
movq %rax, %r12
movq %r12, %rdi
callq 0x7140
movb $0x0, 0x10(%rbx)
cmpl $0x2, %r15d
jne 0xc57e
movq (%rax), %rcx
movq %rax, %rdi
callq *0x10(%rcx)
jmp 0xc585
leaq 0x153f(%rip), %rax      # 0xdac4
movq %rax, 0x18(%rbx)
callq 0x77a0
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0xc539
nop