// File: /workspace/github_cpp_makefile_star2_O1/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 0x10a90(%rip), %rsi     # 0x1a660
movl $0x10, %edx
movq %r13, %rdi
callq 0x6460
movq (%rbx), %rsi
movq %r13, %rdi
callq 0x6340
movq (%r12), %r15
cmpq %r12, %r15
je 0x9da2
leaq 0x10a75(%rip), %rbp     # 0x1a671
leaq 0x10aa1(%rip), %r14     # 0x1a6a4
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 0x9ce3
cmpq $0x0, 0x98(%rax)
je 0x9ce3
cmpq $0x0, 0xa8(%rax)
movq %r14, %rsi
je 0x9ce6
movl $0x8, %edx
movq %r13, %rdi
leaq 0x10a15(%rip), %rsi     # 0x1a67f
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 0x118a4(%rip), %rsi     # 0x1b53b
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 0x9cff
movl $0x8, %edx
movq %r13, %rdi
leaq 0x109bc(%rip), %rsi     # 0x1a688
callq 0x6460
movq 0x10(%rsp), %rax
movq (%rax), %rsi
movq %r13, %rdi
callq 0x6340
jmp 0x9d29
movq %r14, %rsi
movq %r13, %rdi
callq 0x6460
movq (%r15), %r15
cmpq %r12, %r15
jne 0x9c03
jmp 0x9da2
movl $0x8, %edx
movq %r13, %rdi
leaq 0x1097a(%rip), %rsi     # 0x1a688
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 0x10959(%rip), %rsi     # 0x1a691
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 0x117d7(%rip), %rsi     # 0x1b53b
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 0x9cee
movl $0xa, %edx
leaq 0x108fc(%rip), %rsi     # 0x1a699
jmp 0x9ce6
leaq 0x38(%rsp), %rsi
movq 0x8(%rsp), %rdi
callq 0x6630
movq 0x1b190(%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 0x9de8
movq %rax, %rbx
movq 0x1b156(%rip), %rsi     # 0x24f48
leaq 0x20(%rsp), %rdi
callq 0x62c0
leaq 0xa0(%rsp), %rdi
callq 0x6110
movq %rbx, %rdi
callq 0x6700