// File: /workspace/github_cpp_makefile_star2_O3/jpcima[P]faustmd/metadata.cpp
// Function: dump_metadata(std::ostream&, Metadata&)
void dump_metadata(std::ostream &o, Metadata &md)
{
    std::string ident_classname = md.classname;
    std::string ident_meta = ident_classname + "_meta";

    o << "#ifndef __" << ident_meta << "_H__" "\n";
    o << "#define __" << ident_meta << "_H__" "\n";

    o << "\n";

    o << "#include <cstddef>" "\n";

    o << "\n";

    o << "#ifndef FAUSTMETA" << "\n";
    o << "#define FAUSTMETA " << ident_meta << "\n";
    o << "#endif" "\n";

    o << "\n";

    o << "#ifdef __GNUC__" "\n";
    o << "#define FMSTATIC __attribute__((unused)) static" "\n";
    o << "#else" "\n";
    o << "#define FMSTATIC static" "\n";
    o << "#endif" "\n";

    o << "\n";

    o << "namespace " << ident_meta << " {" "\n";

    o << "\t" "struct metadata_t { const char *key; const char *value; };" "\n";
    o << "\t" "enum class active_type_t { button, checkbox, vslider, hslider, nentry };\n";
    o << "\t" "enum class passive_type_t { vbargraph, hbargraph };\n";
    o << "\t" "enum class scale_t { linear, log, exp };\n";

    o << "\n";

    o << "\t" "FMSTATIC constexpr char name[] = " << cstrlit(md.name) << ";" "\n";
    o << "\t" "FMSTATIC constexpr char author[] = " << cstrlit(md.author) << ";" "\n";
    o << "\t" "FMSTATIC constexpr char copyright[] = " << cstrlit(md.copyright) << ";" "\n";
    o << "\t" "FMSTATIC constexpr char license[] = " << cstrlit(md.license) << ";" "\n";
    o << "\t" "FMSTATIC constexpr char version[] = " << cstrlit(md.version) << ";" "\n";
    o << "\t" "FMSTATIC constexpr char classname[] = " << cstrlit(md.classname) << ";" "\n";
    o << "\t" "FMSTATIC constexpr unsigned inputs = " << md.inputs << ";" "\n";
    o << "\t" "FMSTATIC constexpr unsigned outputs = " << md.outputs << ";" "\n";
    o << "\t" "FMSTATIC constexpr unsigned actives = " << md.active.size() << ";" "\n";
    o << "\t" "FMSTATIC constexpr unsigned passives = " << md.passive.size() << ";" "\n";

    o << "\n";

    const char *separator;

    o << "\t" "FMSTATIC const metadata_t metadata[] = {";
    separator = "";
    for (const std::pair<std::string, std::string> &md : md.metadata) {
        o << separator << "{" << cstrlit(md.first) << ", " << cstrlit(md.second) << "}";
        separator = ", ";
    }
    o << "};" "\n";

    o << "\n";

    dump_widgets(o, md.active, true);

    o << "\n";

    dump_widgets(o, md.passive, false);

    o << "}\n";

    o << "\n";

    o << "#undef FMSTATIC";

    o << "\n";

    o << "#endif // __" << ident_meta << "_H__" "\n";
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rsi, %r13
movq %rdi, %rbx
leaq 0x50(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0xa0(%rsi), %rsi
movq 0xa8(%r13), %rdx
addq %rsi, %rdx
leaq 0x40(%rsp), %r14
movq %r14, %rdi
callq 0x7c34
leaq 0x30(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq 0x20(%rsp), %rdi
callq 0x7c34
leaq 0x16cf4(%rip), %rsi     # 0x2f342
leaq 0x20(%rsp), %rdi
callq 0x5790
leaq 0x16ce9(%rip), %rsi     # 0x2f348
movl $0xa, %edx
movq %rbx, %rdi
callq 0x53f0
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
movq %rbx, %rdi
callq 0x53f0
leaq 0x16cce(%rip), %rsi     # 0x2f353
movl $0x5, %edx
movq %rax, %rdi
callq 0x53f0
leaq 0x16cc0(%rip), %rsi     # 0x2f359
movl $0xa, %edx
movq %rbx, %rdi
callq 0x53f0
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
movq %rbx, %rdi
callq 0x53f0
leaq 0x16c94(%rip), %rsi     # 0x2f353
movl $0x5, %edx
movq %rax, %rdi
callq 0x53f0
leaq 0x15e38(%rip), %rsi     # 0x2e50b
movl $0x1, %edx
movq %rbx, %rdi
callq 0x53f0
leaq 0x16c7d(%rip), %rsi     # 0x2f364
movl $0x13, %edx
movq %rbx, %rdi
callq 0x53f0
leaq 0x15e10(%rip), %rsi     # 0x2e50b
movl $0x1, %edx
movq %rbx, %rdi
callq 0x53f0
leaq 0x16c69(%rip), %rsi     # 0x2f378
movl $0x11, %edx
movq %rbx, %rdi
callq 0x53f0
leaq 0x15de8(%rip), %rsi     # 0x2e50b
movl $0x1, %edx
movq %rbx, %rdi
callq 0x53f0
leaq 0x16c53(%rip), %rsi     # 0x2f38a
movl $0x12, %edx
movq %rbx, %rdi
callq 0x53f0
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
movq %rbx, %rdi
callq 0x53f0
leaq 0x15dae(%rip), %rsi     # 0x2e50b
movl $0x1, %edx
movq %rax, %rdi
callq 0x53f0
leaq 0x16c2c(%rip), %rsi     # 0x2f39d
movl $0x7, %edx
movq %rbx, %rdi
callq 0x53f0
leaq 0x15d86(%rip), %rsi     # 0x2e50b
movl $0x1, %edx
movq %rbx, %rdi
callq 0x53f0
leaq 0x16c0c(%rip), %rsi     # 0x2f3a5
movl $0x10, %edx
movq %rbx, %rdi
callq 0x53f0
leaq 0x16c09(%rip), %rsi     # 0x2f3b6
movl $0x30, %edx
movq %rbx, %rdi
callq 0x53f0
leaq 0x16c26(%rip), %rsi     # 0x2f3e7
movl $0x6, %edx
movq %rbx, %rdi
callq 0x53f0
leaq 0x16c19(%rip), %rsi     # 0x2f3ee
movl $0x18, %edx
movq %rbx, %rdi
callq 0x53f0
leaq 0x16bb4(%rip), %rsi     # 0x2f39d
movl $0x7, %edx
movq %rbx, %rdi
callq 0x53f0
leaq 0x15d0e(%rip), %rsi     # 0x2e50b
movl $0x1, %edx
movq %rbx, %rdi
callq 0x53f0
leaq 0x16bf6(%rip), %rsi     # 0x2f407
movl $0xa, %edx
movq %rbx, %rdi
callq 0x53f0
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
movq %rbx, %rdi
callq 0x53f0
leaq 0x16bdb(%rip), %rsi     # 0x2f412
movl $0x3, %edx
movq %rax, %rdi
callq 0x53f0
leaq 0x16bcb(%rip), %rsi     # 0x2f416
movl $0x3c, %edx
movq %rbx, %rdi
callq 0x53f0
leaq 0x16bf4(%rip), %rsi     # 0x2f453
movl $0x4a, %edx
movq %rbx, %rdi
callq 0x53f0
leaq 0x16c2b(%rip), %rsi     # 0x2f49e
movl $0x35, %edx
movq %rbx, %rdi
callq 0x53f0
leaq 0x16c4d(%rip), %rsi     # 0x2f4d4
movl $0x2a, %edx
movq %rbx, %rdi
callq 0x53f0
leaq 0x15c70(%rip), %rsi     # 0x2e50b
movl $0x1, %edx
movq %rbx, %rdi
callq 0x53f0
leaq 0x16c50(%rip), %rsi     # 0x2f4ff
movl $0x22, %edx
movq %rbx, %rdi
callq 0x53f0
movq (%r13), %rsi
movq 0x8(%r13), %rdx
testq %rdx, %rdx
sete %al
testq %rsi, %rsi
setne %cl
orb %al, %cl
je 0x18f40
addq %rsi, %rdx
movq %rsp, %rdi
callq 0x19035
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %rbx, %rdi
callq 0x53f0
leaq 0x16b55(%rip), %rsi     # 0x2f450
movl $0x2, %edx
movq %rax, %rdi
callq 0x53f0
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x18923
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x5380
leaq 0x16bf8(%rip), %rsi     # 0x2f522
movl $0x24, %edx
movq %rbx, %rdi
callq 0x53f0
movq 0x20(%r13), %rsi
movq 0x28(%r13), %rdx
testq %rdx, %rdx
sete %al
testq %rsi, %rsi
setne %cl
orb %al, %cl
je 0x18f40
addq %rsi, %rdx
movq %rsp, %rdi
callq 0x19035
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %rbx, %rdi
callq 0x53f0
leaq 0x16ada(%rip), %rsi     # 0x2f450
movl $0x2, %edx
movq %rax, %rdi
callq 0x53f0
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x1899e
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x5380
leaq 0x16ba2(%rip), %rsi     # 0x2f547
movl $0x27, %edx
movq %rbx, %rdi
callq 0x53f0
movq 0x40(%r13), %rsi
movq 0x48(%r13), %rdx
testq %rdx, %rdx
sete %al
testq %rsi, %rsi
setne %cl
orb %al, %cl
je 0x18f40
addq %rsi, %rdx
movq %rsp, %rdi
callq 0x19035
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %rbx, %rdi
callq 0x53f0
leaq 0x16a5f(%rip), %rsi     # 0x2f450
movl $0x2, %edx
movq %rax, %rdi
callq 0x53f0
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x18a19
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x5380
leaq 0x16b4f(%rip), %rsi     # 0x2f56f
movl $0x25, %edx
movq %rbx, %rdi
callq 0x53f0
movq 0x60(%r13), %rsi
movq 0x68(%r13), %rdx
testq %rdx, %rdx
sete %al
testq %rsi, %rsi
setne %cl
orb %al, %cl
je 0x18f40
addq %rsi, %rdx
movq %rsp, %rdi
callq 0x19035
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %rbx, %rdi
callq 0x53f0
leaq 0x169e4(%rip), %rsi     # 0x2f450
movl $0x2, %edx
movq %rax, %rdi
callq 0x53f0
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x18a94
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x5380
leaq 0x16afa(%rip), %rsi     # 0x2f595
movl $0x25, %edx
movq %rbx, %rdi
callq 0x53f0
movq 0x80(%r13), %rsi
movq 0x88(%r13), %rdx
testq %rdx, %rdx
sete %al
testq %rsi, %rsi
setne %cl
orb %al, %cl
je 0x18f40
addq %rsi, %rdx
movq %rsp, %rdi
callq 0x19035
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %rbx, %rdi
callq 0x53f0
leaq 0x16963(%rip), %rsi     # 0x2f450
movl $0x2, %edx
movq %rax, %rdi
callq 0x53f0
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x18b15
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x5380
leaq 0x16a9f(%rip), %rsi     # 0x2f5bb
movl $0x27, %edx
movq %rbx, %rdi
callq 0x53f0
movq 0xa0(%r13), %rsi
movq 0xa8(%r13), %rdx
testq %rdx, %rdx
sete %al
testq %rsi, %rsi
setne %cl
orb %al, %cl
je 0x18f40
addq %rsi, %rdx
movq %rsp, %rdi
callq 0x19035
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %rbx, %rdi
callq 0x53f0
leaq 0x168e2(%rip), %rsi     # 0x2f450
movl $0x2, %edx
movq %rax, %rdi
callq 0x53f0
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x18b96
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x5380
leaq 0x16a46(%rip), %rsi     # 0x2f5e3
movl $0x26, %edx
movq %rbx, %rdi
callq 0x53f0
movl 0xd8(%r13), %esi
movq %rbx, %rdi
callq 0x5270
leaq 0x16890(%rip), %rsi     # 0x2f450
movl $0x2, %edx
movq %rax, %rdi
callq 0x53f0
leaq 0x16a36(%rip), %rsi     # 0x2f60a
movl $0x27, %edx
movq %rbx, %rdi
callq 0x53f0
movl 0xdc(%r13), %esi
movq %rbx, %rdi
callq 0x5270
leaq 0x16859(%rip), %rsi     # 0x2f450
movl $0x2, %edx
movq %rax, %rdi
callq 0x53f0
leaq 0x16a27(%rip), %rsi     # 0x2f632
movl $0x27, %edx
movq %rbx, %rdi
callq 0x53f0
movq 0xe8(%r13), %rsi
subq 0xe0(%r13), %rsi
sarq $0x3, %rsi
movabsq $-0x7b425ed097b425ed, %r14 # imm = 0x84BDA12F684BDA13
imulq %r14, %rsi
movq %rbx, %rdi
callq 0x5270
leaq 0x16809(%rip), %rsi     # 0x2f450
movl $0x2, %edx
movq %rax, %rdi
callq 0x53f0
leaq 0x169ff(%rip), %rsi     # 0x2f65a
movl $0x28, %edx
movq %rbx, %rdi
callq 0x53f0
movq 0x100(%r13), %rsi
subq 0xf8(%r13), %rsi
sarq $0x3, %rsi
imulq %r14, %rsi
movq %rbx, %rdi
callq 0x5270
leaq 0x167c3(%rip), %rsi     # 0x2f450
movl $0x2, %edx
movq %rax, %rdi
callq 0x53f0
leaq 0x1586a(%rip), %rsi     # 0x2e50b
movl $0x1, %edx
movq %rbx, %rdi
callq 0x53f0
leaq 0x169ce(%rip), %rsi     # 0x2f683
movl $0x29, %edx
movq %rbx, %rdi
callq 0x53f0
movq 0xc0(%r13), %r12
movq %r13, 0x80(%rsp)
movq 0xc8(%r13), %rbp
cmpq %rbp, %r12
je 0x18e00
leaq 0x16e4a(%rip), %r15     # 0x2fb32
leaq 0x169be(%rip), %r13     # 0x2f6ad
leaq 0x169ba(%rip), %r14     # 0x2f6b0
movq %r15, %rdi
callq 0x51a0
movq %rbx, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x53f0
movl $0x1, %edx
movq %rbx, %rdi
leaq 0x16e3b(%rip), %rsi     # 0x2fb56
callq 0x53f0
movq (%r12), %rsi
movq 0x8(%r12), %rdx
testq %rdx, %rdx
sete %al
testq %rsi, %rsi
setne %cl
orb %al, %cl
je 0x18f40
addq %rsi, %rdx
movq %rsp, %rdi
callq 0x19035
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %rbx, %rdi
callq 0x53f0
movq %rax, %r15
movl $0x2, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x53f0
movq 0x20(%r12), %rsi
movq 0x28(%r12), %rdx
testq %rdx, %rdx
sete %al
testq %rsi, %rsi
setne %cl
orb %al, %cl
je 0x18f40
addq %rsi, %rdx
leaq 0x60(%rsp), %rdi
callq 0x19035
movq 0x60(%rsp), %rsi
movq 0x68(%rsp), %rdx
movq %r15, %rdi
callq 0x53f0
movl $0x1, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x53f0
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0x18dd5
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x5380
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x18df0
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x5380
addq $0x40, %r12
movq %r13, %r15
cmpq %rbp, %r12
jne 0x18cf6
leaq 0x16648(%rip), %rsi     # 0x2f44f
movl $0x3, %edx
movq %rbx, %rdi
callq 0x53f0
movq 0x80(%rsp), %r14
leaq 0x156e8(%rip), %rsi     # 0x2e50b
movl $0x1, %edx
movq %rbx, %rdi
callq 0x53f0
leaq 0xe0(%r14), %rsi
movq %rbx, %rdi
movl $0x1, %edx
callq 0x19196
leaq 0x156c0(%rip), %rsi     # 0x2e50b
movl $0x1, %edx
movq %rbx, %rdi
callq 0x53f0
addq $0xf8, %r14
movq %rbx, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x19196
leaq 0x1683f(%rip), %rsi     # 0x2f6b2
movl $0x2, %edx
movq %rbx, %rdi
callq 0x53f0
leaq 0x15684(%rip), %rsi     # 0x2e50b
movl $0x1, %edx
movq %rbx, %rdi
callq 0x53f0
leaq 0x1681a(%rip), %rsi     # 0x2f6b5
movl $0xf, %edx
movq %rbx, %rdi
callq 0x53f0
leaq 0x1565c(%rip), %rsi     # 0x2e50b
movl $0x1, %edx
movq %rbx, %rdi
callq 0x53f0
leaq 0x16802(%rip), %rsi     # 0x2f6c5
movl $0xc, %edx
movq %rbx, %rdi
callq 0x53f0
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
movq %rbx, %rdi
callq 0x53f0
leaq 0x1646a(%rip), %rsi     # 0x2f353
movl $0x5, %edx
movq %rax, %rdi
callq 0x53f0
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
leaq 0x50(%rsp), %rbx
je 0x18f17
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x5380
movq 0x40(%rsp), %rdi
cmpq %rbx, %rdi
je 0x18f2e
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x5380
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x50e0
jmp 0x18ffc
jmp 0x18ffc
jmp 0x18ffc
jmp 0x18ffc
jmp 0x18ffc
jmp 0x18ffc
jmp 0x18ffc
movq %rax, %rbx
jmp 0x19016
jmp 0x18f78
jmp 0x18f78
jmp 0x18f78
jmp 0x18f78
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x18fff
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x5380
jmp 0x18fff
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
jmp 0x18f84
jmp 0x18fcd
jmp 0x18fcd
jmp 0x18fd2
movq %rax, %rbx
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0x18fd5
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x5380
jmp 0x18fd5
movq %rax, %rbx
jmp 0x18ff0
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x18ff0
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x5380
leaq 0x50(%rsp), %r15
leaq 0x30(%rsp), %r12
jmp 0x18fff
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r12, %rdi
je 0x19016
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x5380
movq 0x40(%rsp), %rdi
cmpq %r15, %rdi
je 0x1902d
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x5380
movq %rbx, %rdi
callq 0x56d0