// File: /workspace/github_cpp_makefile_star2_O1/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 0x4bf3(%rip), %rax      # 0xba78
movq %rax, (%rdi)
testl %esi, %esi
je 0x6f26
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 0x6722
leaq 0x38(%rsp), %rdx
movq %rbx, %rdi
movl %ebp, %esi
callq 0x6da0
movq 0x38(%rsp), %rdi
cmpq %r15, %rdi
je 0x6ed5
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x31a0
cmpq $0x0, 0x8(%rbx)
jne 0x6fdf
movq 0x5109(%rip), %r15      # 0xbff0
leaq 0x188a(%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 0x50d7(%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 0x69da
movq (%r15), %rax
cmpq %rax, 0x8(%r15)
je 0x6fc2
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 0x6722
movq %rbx, %rdi
movl %ebp, %esi
movq %r15, %rdx
callq 0x6da0
movq 0x18(%rsp), %rdi
cmpq %r12, %rdi
je 0x6f99
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x31a0
movq 0x8(%rbx), %rdi
movq (%rdi), %rax
callq *0x30(%rax)
testl %eax, %eax
jne 0x6fc2
movl %r13d, %ecx
movq (%rsp), %rax
movq 0x8(%rsp), %rdx
subq %rax, %rdx
sarq $0x2, %rdx
incl %r13d
cmpq %rcx, %rdx
ja 0x6f5b
cmpq $0x0, 0x8(%rbx)
je 0x6fee
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x6fdf
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 0x17b8(%rip), %rsi      # 0x87b6
leaq 0x17ee(%rip), %rdx      # 0x87f3
leaq 0x58(%rsp), %rdi
callq 0x5f90
movl $0x30, %edi
callq 0x30d0
movq %rax, %r14
leaq 0x58(%rsp), %rsi
movq %rax, %rdi
movl $0x2, %edx
callq 0x7826
leaq 0x4c23(%rip), %rsi      # 0xbc58
leaq 0x830(%rip), %rdx       # 0x786c
movq %r14, %rdi
callq 0x3260
movq %rax, %r14
movq 0x58(%rsp), %rdi
cmpq %r15, %rdi
je 0x7095
movq 0x68(%rsp), %rsi
jmp 0x7088
jmp 0x7092
movq %rax, %r14
movq 0x38(%rsp), %rdi
cmpq %r15, %rdi
je 0x70ab
movq 0x48(%rsp), %rsi
incq %rsi
jmp 0x70a6
movq %rax, %r14
jmp 0x70ab
movq %rax, %r14
movq 0x18(%rsp), %rdi
cmpq %r12, %rdi
je 0x7095
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x31a0
jmp 0x7095
movq %rax, %r14
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x70ab
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x31a0
leaq 0x4916(%rip), %rax      # 0xb9c8
movq %rax, (%rbx)
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0x70c4
movq (%rdi), %rax
callq *0x8(%rax)
movq $0x0, 0x8(%rbx)
movq %r14, %rdi
callq 0x3280