// File: /workspace/github_cpp_makefile_star2_O1/WayfireWM[P]wf-utils/wayfire/rule/lambda_rule.cpp
// Function: wf::lambda_rule_t::to_string[abi:cxx11]() const
std::string lambda_rule_t::to_string() const
{
    std::string out = "lambda rule: [signal: ";
    out.append(_signal).append(", condition: ");
    if (_condition)
    {
        out.append(_condition->to_string());
    }
    else
    {
        out.append("nullptr");
    }
    out.append(", if_lambda: ");
    if (_if_lambda)
    {
        auto uint_ptr = reinterpret_cast<std::uintptr_t>(&_if_lambda);
        std::stringstream ss;
        ss << "0x" << std::hex << uint_ptr;
        out.append(ss.str());
    }
    else
    {
        out.append("nullptr");
    }
    out.append(", else_lambda: ");
    if (_else_lambda)
    {
        auto uint_ptr = reinterpret_cast<std::uintptr_t>(&_else_lambda);
        std::stringstream ss;
        ss << "0x" << std::hex << uint_ptr;
        out.append(ss.str());
    }
    else
    {
        out.append("nullptr");
    }
    out.append("]");
    return out;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x1a8, %rsp            # imm = 0x1A8
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x10(%rdi), %r12
movq %r12, (%rdi)
leaq 0x29c6(%rip), %rsi      # 0xdbec
leaq 0x29d5(%rip), %rdx      # 0xdc02
callq 0x6382
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %rbx, %rdi
callq 0x5090
leaq 0x29bb(%rip), %rsi      # 0xdc03
movq %rax, %rdi
callq 0x53b0
movq 0x20(%r14), %rsi
testq %rsi, %rsi
je 0xb293
movq (%rsi), %rax
leaq 0x20(%rsp), %rdi
callq *0x18(%rax)
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
movq %rbx, %rdi
callq 0x5090
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb2a2
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x5230
jmp 0xb2a2
leaq 0x1dc2(%rip), %rsi      # 0xd05c
movq %rbx, %rdi
callq 0x53b0
leaq 0x2968(%rip), %rsi      # 0xdc11
movq %rbx, %rdi
callq 0x53b0
cmpq $0x0, 0x40(%r14)
je 0xb35b
leaq 0x20(%rsp), %rdi
callq 0x5180
leaq 0x30(%rsp), %r15
leaq 0x294d(%rip), %rsi      # 0xdc1f
movl $0x2, %edx
movq %r15, %rdi
callq 0x5270
leaq 0x30(%r14), %rsi
movq 0x30(%rsp), %rax
movq -0x18(%rax), %rax
movl 0x48(%rsp,%rax), %ecx
andl $-0x4b, %ecx
orl $0x8, %ecx
movl %ecx, 0x48(%rsp,%rax)
movq %r15, %rdi
callq 0x5150
leaq 0x38(%rsp), %rsi
movq %rsp, %rdi
callq 0x5330
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %rbx, %rdi
callq 0x5090
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb33b
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x5230
movq 0x8c56(%rip), %rsi      # 0x13f98
leaq 0x20(%rsp), %rdi
callq 0x51b0
leaq 0xa0(%rsp), %rdi
callq 0x50a0
jmp 0xb36a
leaq 0x1cfa(%rip), %rsi      # 0xd05c
movq %rbx, %rdi
callq 0x53b0
leaq 0x28b1(%rip), %rsi      # 0xdc22
movq %rbx, %rdi
callq 0x53b0
cmpq $0x0, 0x60(%r14)
je 0xb426
leaq 0x20(%rsp), %rdi
callq 0x5180
leaq 0x30(%rsp), %r15
leaq 0x2885(%rip), %rsi      # 0xdc1f
movl $0x2, %edx
movq %r15, %rdi
callq 0x5270
addq $0x50, %r14
movq 0x30(%rsp), %rax
movq -0x18(%rax), %rax
movl 0x48(%rsp,%rax), %ecx
andl $-0x4b, %ecx
orl $0x8, %ecx
movl %ecx, 0x48(%rsp,%rax)
movq %r15, %rdi
movq %r14, %rsi
callq 0x5150
leaq 0x38(%rsp), %rsi
movq %rsp, %rdi
callq 0x5330
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %rbx, %rdi
callq 0x5090
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb406
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x5230
movq 0x8b8b(%rip), %rsi      # 0x13f98
leaq 0x20(%rsp), %rdi
callq 0x51b0
leaq 0xa0(%rsp), %rdi
callq 0x50a0
jmp 0xb435
leaq 0x1c2f(%rip), %rsi      # 0xd05c
movq %rbx, %rdi
callq 0x53b0
leaq 0x1be1(%rip), %rsi      # 0xd01d
movq %rbx, %rdi
callq 0x53b0
movq %rbx, %rax
addq $0x1a8, %rsp            # imm = 0x1A8
popq %rbx
popq %r12
popq %r14
popq %r15
retq
jmp 0xb45c
jmp 0xb4a4
jmp 0xb4c7
movq %rax, %r14
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb4a7
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x5230
jmp 0xb4a7
jmp 0xb4a4
jmp 0xb4c7
movq %rax, %r14
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb4ca
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x5230
jmp 0xb4ca
jmp 0xb4c7
jmp 0xb4a4
movq %rax, %r14
movq 0x8aea(%rip), %rsi      # 0x13f98
leaq 0x20(%rsp), %rdi
callq 0x51b0
leaq 0xa0(%rsp), %rdi
callq 0x50a0
jmp 0xb4ca
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r12, %rdi
je 0xb4de
movq (%r12), %rsi
incq %rsi
callq 0x5230
movq %r14, %rdi
callq 0x5390