// File: jpcima[P]faustmd/./thirdparty/gsl-lite.hpp
// Function: std::ostream& gsl::detail::write_to_stream<std::ostream, gsl::basic_string_span<char>>(std::ostream&, gsl::basic_string_span<char> const&)
gsl_api Stream & write_to_stream( Stream & os, Span const & spn )
{
    typename Stream::sentry sentry( os );

    if ( !os )
        return os;

    const std::streamsize length = narrow<std::streamsize>( spn.length() );

    // Whether, and how, to pad
    const bool pad = ( length < os.width() );
    const bool left_pad = pad && ( os.flags() & std::ios_base::adjustfield ) == std::ios_base::right;

    if ( left_pad )
        write_padding( os, os.width() - length );

    // Write span characters
    os.rdbuf()->sputn( spn.begin(), length );

    if ( pad && !left_pad )
        write_padding( os, os.width() - length );

    // Reset output stream width
    os.width(0);

    return os;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rsi
leaq -0x28(%rbp), %rdi
callq 0x74a0
movq -0x10(%rbp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
addq %rax, %rdi
callq 0x7260
movb %al, -0x43(%rbp)
jmp 0xaa58
movb -0x43(%rbp), %al
testb $0x1, %al
jne 0xaa61
jmp 0xaa8f
movq -0x10(%rbp), %rax
movq %rax, -0x8(%rbp)
movl $0x1, -0x38(%rbp)
jmp 0xac17
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0x28(%rbp), %rdi
callq 0x72a0
jmp 0xac2d
movq -0x18(%rbp), %rdi
callq 0xaca0
movq %rax, %rdi
callq 0xac40
movq %rax, -0x50(%rbp)
jmp 0xaaa6
movq -0x50(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x10(%rbp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
addq %rax, %rdi
callq 0xacc0
movq %rax, -0x58(%rbp)
jmp 0xaacf
movq -0x60(%rbp), %rax
movq -0x58(%rbp), %rcx
cmpq %rcx, %rax
setl %al
andb $0x1, %al
movb %al, -0x41(%rbp)
xorl %eax, %eax
testb $0x1, -0x41(%rbp)
movb %al, -0x61(%rbp)
je 0xab25
movq -0x10(%rbp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
addq %rax, %rdi
callq 0xad00
movl %eax, -0x68(%rbp)
jmp 0xab05
movl -0x68(%rbp), %edi
movl $0xb0, %esi
callq 0xace0
movl %eax, -0x6c(%rbp)
jmp 0xab17
movl -0x6c(%rbp), %eax
cmpl $0x80, %eax
sete %al
movb %al, -0x61(%rbp)
movb -0x61(%rbp), %al
andb $0x1, %al
movb %al, -0x42(%rbp)
testb $0x1, -0x42(%rbp)
je 0xab68
movq -0x10(%rbp), %rdi
movq %rdi, -0x80(%rbp)
movq (%rdi), %rax
movq -0x18(%rax), %rax
addq %rax, %rdi
callq 0xacc0
movq %rax, -0x78(%rbp)
jmp 0xab50
movq -0x80(%rbp), %rdi
movq -0x78(%rbp), %rsi
movq -0x40(%rbp), %rax
subq %rax, %rsi
callq 0xad20
jmp 0xab66
jmp 0xab68
movq -0x10(%rbp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
addq %rax, %rdi
callq 0x7240
movq %rax, -0x88(%rbp)
jmp 0xab84
movq -0x18(%rbp), %rdi
callq 0x8f10
movq -0x88(%rbp), %rdi
movq %rax, %rsi
movq -0x40(%rbp), %rdx
callq 0x78a0
jmp 0xaba2
testb $0x1, -0x41(%rbp)
je 0xabef
testb $0x1, -0x42(%rbp)
jne 0xabef
movq -0x10(%rbp), %rdi
movq %rdi, -0x98(%rbp)
movq (%rdi), %rax
movq -0x18(%rax), %rax
addq %rax, %rdi
callq 0xacc0
movq %rax, -0x90(%rbp)
jmp 0xabd1
movq -0x98(%rbp), %rdi
movq -0x90(%rbp), %rsi
movq -0x40(%rbp), %rax
subq %rax, %rsi
callq 0xad20
jmp 0xabed
jmp 0xabef
movq -0x10(%rbp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
addq %rax, %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0xad90
jmp 0xac08
movq -0x10(%rbp), %rax
movq %rax, -0x8(%rbp)
movl $0x1, -0x38(%rbp)
leaq -0x28(%rbp), %rdi
callq 0x72a0
movq -0x8(%rbp), %rax
addq $0xa0, %rsp
popq %rbp
retq
movq -0x30(%rbp), %rdi
callq 0x7a20
nopw %cs:(%rax,%rax)