// File: /workspace/github_cpp_makefile_star2_O2/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, %r14
movq %rdi, 0x8(%rsp)
leaq 0x20(%rsp), %rdi
callq 0x62a0
leaq 0x30(%rsp), %r13
leaq 0xf0ff(%rip), %rsi      # 0x18660
movq %r13, %rdi
callq 0x6370
movq (%rbx), %rsi
movq %rax, %rdi
callq 0x6360
leaq 0xf0f6(%rip), %rbp      # 0x18671
leaq 0xf122(%rip), %r15      # 0x186a4
leaq 0xffb2(%rip), %rbx      # 0x1953b
movq %r14, %r12
movq (%r12), %r12
cmpq %r14, %r12
je 0x96f0
movq %r13, %rdi
movq %rbp, %rsi
callq 0x6370
movq 0x10(%r12), %rsi
movq %rax, %rdi
callq 0x6340
movq 0x10(%r12), %rax
cmpb $0x1, 0x90(%rax)
movq %r15, %rsi
jne 0x96e3
cmpq $0x0, 0x98(%rax)
movq %r15, %rsi
je 0x96e3
cmpq $0x0, 0xa8(%rax)
movq %r15, %rsi
je 0x96e3
movq %r13, %rdi
leaq 0xf08d(%rip), %rsi      # 0x1867f
callq 0x6370
movq 0x10(%r12), %rcx
movq 0x98(%rcx), %rcx
movl 0x8(%rcx), %esi
movq %rax, %rdi
callq 0x6280
movq %rax, %rdi
movq %rbx, %rsi
callq 0x6370
movq 0x10(%r12), %rcx
movq 0x98(%rcx), %rcx
movl 0xc(%rcx), %esi
movq %rax, %rdi
callq 0x6280
movq 0x10(%rsp), %rax
cmpq $0x0, (%rax)
je 0x965c
movq %r13, %rdi
leaq 0xf043(%rip), %rsi      # 0x18688
callq 0x6370
movq 0x10(%rsp), %rcx
movq (%rcx), %rsi
movq %rax, %rdi
callq 0x6360
jmp 0x9682
movq %r13, %rdi
leaq 0xf022(%rip), %rsi      # 0x18688
callq 0x6370
movq 0x10(%r12), %rcx
movq 0x98(%rcx), %rcx
movl 0x10(%rcx), %esi
movq %rax, %rdi
callq 0x6280
movq %r13, %rdi
leaq 0xf005(%rip), %rsi      # 0x18691
callq 0x6370
movq 0x10(%r12), %rax
movq 0xa8(%rax), %rax
movl (%rax), %esi
movq %r13, %rdi
callq 0x66d0
movq %rax, %rdi
movq %rbx, %rsi
callq 0x6370
movq 0x10(%r12), %rcx
movq 0xa8(%rcx), %rcx
movl 0x4(%rcx), %esi
movq %rax, %rdi
callq 0x66d0
movq 0x10(%r12), %rax
leaq 0xefc4(%rip), %rsi      # 0x18699
movq 0x18(%rsp), %rcx
cmpq (%rcx), %rax
jne 0x958c
movq %r13, %rdi
callq 0x6370
jmp 0x958c
leaq 0x38(%rsp), %rsi
movq 0x8(%rsp), %rdi
callq 0x6620
leaq 0x20(%rsp), %rdi
callq 0x62d0
movq 0x8(%rsp), %rax
addq $0x1a8, %rsp            # imm = 0x1A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x9722
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x62d0
movq %rbx, %rdi
callq 0x6710