// File: /workspace/github_cpp_makefile_star2_O3/danomatika[P]miditester/src/RtMidi.cpp
// Function: RtMidiOut::RtMidiOut(RtMidi::Api, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
RtMidiOut :: RtMidiOut( RtMidi::Api api, const std::string clientName )
{
  if ( api != UNSPECIFIED ) {
    // Attempt to open the specified API.
    openMidiApi( api, clientName );
    if ( rtapi_ ) return;

    // No compiled support for specified API value.  Issue a warning
    // and continue as if no API was specified.
    std::cerr << "\nRtMidiOut: no compiled support for specified API argument!\n\n" << std::endl;
  }

  // Iterate through the compiled APIs and return as soon as we find
  // one with at least one port or we reach the end of the list.
  std::vector< RtMidi::Api > apis;
  getCompiledApi( apis );
  for ( unsigned int i=0; i<apis.size(); i++ ) {
    openMidiApi( apis[i], clientName );
    if ( rtapi_->getPortCount() ) break;
  }

  if ( rtapi_ ) return;

  // It should not be possible to get here because the preprocessor
  // definition __RTMIDI_DUMMY__ is automatically defined if no
  // API-specific definitions are passed to the compiler. But just in
  // case something weird happens, we'll thrown an error.
  std::string errorText = "RtMidiOut: no compiled API support found ... critical error!!";
  throw( RtMidiError( errorText, RtMidiError::UNSPECIFIED ) );
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rdx, %r14
movq %rdi, %rbx
movq $0x0, 0x8(%rdi)
leaq 0x4ced(%rip), %rax      # 0xba78
movq %rax, (%rdi)
testl %esi, %esi
je 0x6e2c
movl %esi, %ebp
leaq 0x48(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq 0x38(%rsp), %rdi
callq 0x662e
leaq 0x38(%rsp), %rdx
movq %rbx, %rdi
movl %ebp, %esi
callq 0x6ca6
movq 0x38(%rsp), %rdi
cmpq %r15, %rdi
je 0x6ddb
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x31a0
cmpq $0x0, 0x8(%rbx)
jne 0x6ee5
movq 0x5203(%rip), %r15      # 0xbff0
leaq 0x1984(%rip), %rsi      # 0x8778
movl $0x3d, %edx
movq %r15, %rdi
callq 0x31b0
movq (%r15), %rax
addq -0x18(%rax), %r15
movq %r15, %rdi
movl $0xa, %esi
callq 0x3170
movsbl %al, %esi
movq 0x51d1(%rip), %rdi      # 0xbff0
callq 0x3040
movq %rax, %rdi
callq 0x3110
xorps %xmm0, %xmm0
movq %rsp, %r15
movaps %xmm0, (%r15)
movq $0x0, 0x10(%r15)
movq %r15, %rdi
callq 0x68e6
movq (%r15), %rax
cmpq %rax, 0x8(%r15)
je 0x6ec8
movl $0x1, %r13d
leaq 0x28(%rsp), %r12
xorl %ecx, %ecx
leaq 0x18(%rsp), %r15
movl (%rax,%rcx,4), %ebp
movq %r12, 0x18(%rsp)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x662e
movq %rbx, %rdi
movl %ebp, %esi
movq %r15, %rdx
callq 0x6ca6
movq 0x18(%rsp), %rdi
cmpq %r12, %rdi
je 0x6e9f
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x31a0
movq 0x8(%rbx), %rdi
movq (%rdi), %rax
callq *0x30(%rax)
testl %eax, %eax
jne 0x6ec8
movl %r13d, %ecx
movq (%rsp), %rax
movq 0x8(%rsp), %rdx
subq %rax, %rdx
sarq $0x2, %rdx
incl %r13d
cmpq %rcx, %rdx
ja 0x6e61
cmpq $0x0, 0x8(%rbx)
je 0x6ef4
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x6ee5
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x31a0
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x68(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x18b2(%rip), %rsi      # 0x87b6
leaq 0x18e8(%rip), %rdx      # 0x87f3
leaq 0x58(%rsp), %rdi
callq 0x5e78
movl $0x30, %edi
callq 0x30d0
movq %rax, %r14
leaq 0x58(%rsp), %rsi
movq %rax, %rdi
movl $0x2, %edx
callq 0x76ee
leaq 0x4d1d(%rip), %rsi      # 0xbc58
leaq 0x7f2(%rip), %rdx       # 0x7734
movq %r14, %rdi
callq 0x3260
movq %rax, %r14
movq 0x58(%rsp), %rdi
cmpq %r15, %rdi
je 0x6f9b
movq 0x68(%rsp), %rsi
jmp 0x6f8e
jmp 0x6f98
movq %rax, %r14
movq 0x38(%rsp), %rdi
cmpq %r15, %rdi
je 0x6fb1
movq 0x48(%rsp), %rsi
incq %rsi
jmp 0x6fac
movq %rax, %r14
jmp 0x6fb1
movq %rax, %r14
movq 0x18(%rsp), %rdi
cmpq %r12, %rdi
je 0x6f9b
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x31a0
jmp 0x6f9b
movq %rax, %r14
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x6fb1
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x31a0
leaq 0x4a10(%rip), %rax      # 0xb9c8
movq %rax, (%rbx)
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0x6fca
movq (%rdi), %rax
callq *0x8(%rax)
movq $0x0, 0x8(%rbx)
movq %r14, %rdi
callq 0x3280