// File: /workspace/github_cpp_makefile_star2_O3/alex-courtis[P]xlayoutdisplay/src/xrandrrutil.cpp
// Function: renderXrandrCmd(std::__cxx11::list<std::shared_ptr<Output>, std::allocator<std::shared_ptr<Output>>> const&, std::shared_ptr<Output> const&, long const&, long const&)
const string renderXrandrCmd(const list<shared_ptr<Output>> &outputs, const shared_ptr<Output> &primary, const long &dpi, const long &rate) {
    stringstream ss;
    ss << "xrandr \\\n --dpi " << dpi;
    for (const auto &output : outputs) {
        ss << " \\\n --output " << output->name;
        if (output->desiredActive && output->desiredMode && output->desiredPos) {
            ss << " --mode " << output->desiredMode->width << "x" << output->desiredMode->height;
            if (rate == 0) {
                ss << " --rate " << output->desiredMode->refresh;
            } else {
                ss << " --rate " << rate;
            }
            ss << " --pos ";
            ss << output->desiredPos->x << "x" << output->desiredPos->y;
            if (output == primary) {
                ss << " --primary";
            }
        } else {
            ss << " --off";
        }
    }
    return ss.str();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1a8, %rsp            # imm = 0x1A8
movq %r8, 0x10(%rsp)
movq %rcx, %rbx
movq %rdx, 0x18(%rsp)
movq %rsi, %r12
movq %rdi, 0x8(%rsp)
leaq 0x20(%rsp), %rdi
callq 0x6290
leaq 0x30(%rsp), %r13
leaq 0x10abc(%rip), %rsi     # 0x1a670
movl $0x10, %edx
movq %r13, %rdi
callq 0x6460
movq (%rbx), %rsi
movq %r13, %rdi
callq 0x6340
movq (%r12), %r15
cmpq %r12, %r15
je 0x9d86
leaq 0x10aa1(%rip), %rbp     # 0x1a681
leaq 0x10acd(%rip), %r14     # 0x1a6b4
movl $0xd, %edx
movq %r13, %rdi
movq %rbp, %rsi
callq 0x6460
movq 0x10(%r15), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq %r13, %rdi
callq 0x6460
movq 0x10(%r15), %rax
movl $0x6, %edx
cmpb $0x1, 0x90(%rax)
jne 0x9cc7
cmpq $0x0, 0x98(%rax)
je 0x9cc7
cmpq $0x0, 0xa8(%rax)
movq %r14, %rsi
je 0x9cca
movl $0x8, %edx
movq %r13, %rdi
leaq 0x10a41(%rip), %rsi     # 0x1a68f
callq 0x6460
movq 0x10(%r15), %rax
movq 0x98(%rax), %rax
movl 0x8(%rax), %esi
movq %r13, %rdi
callq 0x6260
movq %rax, %rbx
movl $0x1, %edx
movq %rax, %rdi
leaq 0x118d0(%rip), %rsi     # 0x1b54b
callq 0x6460
movq 0x10(%r15), %rax
movq 0x98(%rax), %rax
movl 0xc(%rax), %esi
movq %rbx, %rdi
callq 0x6260
movq 0x10(%rsp), %rax
cmpq $0x0, (%rax)
je 0x9ce3
movl $0x8, %edx
movq %r13, %rdi
leaq 0x109e8(%rip), %rsi     # 0x1a698
callq 0x6460
movq 0x10(%rsp), %rax
movq (%rax), %rsi
movq %r13, %rdi
callq 0x6340
jmp 0x9d0d
movq %r14, %rsi
movq %r13, %rdi
callq 0x6460
movq (%r15), %r15
cmpq %r12, %r15
jne 0x9be7
jmp 0x9d86
movl $0x8, %edx
movq %r13, %rdi
leaq 0x109a6(%rip), %rsi     # 0x1a698
callq 0x6460
movq 0x10(%r15), %rax
movq 0x98(%rax), %rax
movl 0x10(%rax), %esi
movq %r13, %rdi
callq 0x6260
movl $0x7, %edx
movq %r13, %rdi
leaq 0x10985(%rip), %rsi     # 0x1a6a1
callq 0x6460
movq 0x10(%r15), %rax
movq 0xa8(%rax), %rax
movl (%rax), %esi
movq %r13, %rdi
callq 0x66d0
movq %rax, %rbx
movl $0x1, %edx
movq %rax, %rdi
leaq 0x11803(%rip), %rsi     # 0x1b54b
callq 0x6460
movq 0x10(%r15), %rax
movq 0xa8(%rax), %rax
movl 0x4(%rax), %esi
movq %rbx, %rdi
callq 0x66d0
movq 0x10(%r15), %rax
movq 0x18(%rsp), %rcx
cmpq (%rcx), %rax
jne 0x9cd2
movl $0xa, %edx
leaq 0x10928(%rip), %rsi     # 0x1a6a9
jmp 0x9cca
leaq 0x38(%rsp), %rsi
movq 0x8(%rsp), %rdi
callq 0x6630
movq 0x1b1ac(%rip), %rsi     # 0x24f48
leaq 0x20(%rsp), %rdi
callq 0x62c0
leaq 0xa0(%rsp), %rdi
callq 0x6110
movq 0x8(%rsp), %rax
addq $0x1a8, %rsp            # imm = 0x1A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x9dcc
movq %rax, %rbx
movq 0x1b172(%rip), %rsi     # 0x24f48
leaq 0x20(%rsp), %rdi
callq 0x62c0
leaq 0xa0(%rsp), %rdi
callq 0x6110
movq %rbx, %rdi
callq 0x6700