// File: /workspace/github_cpp_makefile_star2_O3/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
leaq 0x10(%rdi), %r12
leaq 0x1b56(%rip), %rsi      # 0xcbd4
leaq 0x1b65(%rip), %rdx      # 0xcbea
movq %rdi, %rbx
movq %r12, (%rdi)
callq 0x6386
movq 0x8(%r14), %rdx
movq (%r14), %rsi
movq %rbx, %rdi
callq 0x5090
leaq 0x1b45(%rip), %rsi      # 0xcbeb
movq %rax, %rdi
callq 0x53b0
movq 0x20(%r14), %rsi
testq %rsi, %rsi
je 0xb0f1
movq (%rsi), %rax
leaq 0x20(%rsp), %rdi
callq *0x18(%rax)
movq 0x28(%rsp), %rdx
movq 0x20(%rsp), %rsi
movq %rbx, %rdi
callq 0x5090
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb100
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x5230
jmp 0xb100
leaq 0xf64(%rip), %rsi       # 0xc05c
movq %rbx, %rdi
callq 0x53b0
leaq 0x1af2(%rip), %rsi      # 0xcbf9
movq %rbx, %rdi
callq 0x53b0
cmpq $0x0, 0x40(%r14)
je 0xb1b9
leaq 0x20(%rsp), %rdi
callq 0x5180
leaq 0x30(%rsp), %r15
leaq 0x1ad7(%rip), %rsi      # 0xcc07
movl $0x2, %edx
movq %r15, %rdi
callq 0x5270
movq 0x30(%rsp), %rax
leaq 0x30(%r14), %rsi
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 0x8(%rsp), %rdx
movq (%rsp), %rsi
movq %rbx, %rdi
callq 0x5090
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb199
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x5230
movq 0x7df8(%rip), %rsi      # 0x12f98
leaq 0x20(%rsp), %rdi
callq 0x51b0
leaq 0xa0(%rsp), %rdi
callq 0x50a0
jmp 0xb1c8
leaq 0xe9c(%rip), %rsi       # 0xc05c
movq %rbx, %rdi
callq 0x53b0
leaq 0x1a3b(%rip), %rsi      # 0xcc0a
movq %rbx, %rdi
callq 0x53b0
cmpq $0x0, 0x60(%r14)
je 0xb284
leaq 0x20(%rsp), %rdi
callq 0x5180
leaq 0x30(%rsp), %r15
leaq 0x1a0f(%rip), %rsi      # 0xcc07
movl $0x2, %edx
movq %r15, %rdi
callq 0x5270
movq 0x30(%rsp), %rax
addq $0x50, %r14
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 0x8(%rsp), %rdx
movq (%rsp), %rsi
movq %rbx, %rdi
callq 0x5090
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb264
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x5230
movq 0x7d2d(%rip), %rsi      # 0x12f98
leaq 0x20(%rsp), %rdi
callq 0x51b0
leaq 0xa0(%rsp), %rdi
callq 0x50a0
jmp 0xb293
leaq 0xdd1(%rip), %rsi       # 0xc05c
movq %rbx, %rdi
callq 0x53b0
leaq 0xd83(%rip), %rsi       # 0xc01d
movq %rbx, %rdi
callq 0x53b0
movq %rbx, %rax
addq $0x1a8, %rsp            # imm = 0x1A8
popq %rbx
popq %r12
popq %r14
popq %r15
retq
jmp 0xb2ba
jmp 0xb302
jmp 0xb325
leaq 0x10(%rsp), %rcx
movq %rax, %r14
movq -0x10(%rcx), %rdi
cmpq %rcx, %rdi
je 0xb305
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x5230
jmp 0xb305
jmp 0xb302
jmp 0xb325
leaq 0x30(%rsp), %rcx
movq %rax, %r14
movq -0x10(%rcx), %rdi
cmpq %rcx, %rdi
je 0xb328
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x5230
jmp 0xb328
jmp 0xb325
jmp 0xb302
movq %rax, %r14
movq 0x7c8c(%rip), %rsi      # 0x12f98
leaq 0x20(%rsp), %rdi
callq 0x51b0
leaq 0xa0(%rsp), %rdi
callq 0x50a0
jmp 0xb328
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r12, %rdi
je 0xb33c
movq (%r12), %rsi
incq %rsi
callq 0x5230
movq %r14, %rdi
callq 0x5390