// File: /workspace/github_c_makefile_star2_O1/baskerville[P]bspwm/src/query.c
// Function: print_rule_consequence
void print_rule_consequence(char **buf, rule_consequence_t *csq)
{
	char *rect_buf = NULL;
	print_rectangle(&rect_buf, csq->rect);
	if (rect_buf == NULL) {
		rect_buf = malloc(1);
		*rect_buf = '\0';
	}

	asprintf(buf, "monitor=%s desktop=%s node=%s state=%s layer=%s honor_size_hints=%s split_dir=%s split_ratio=%lf hidden=%s sticky=%s private=%s locked=%s marked=%s center=%s follow=%s manage=%s focus=%s border=%s rectangle=%s",
	        csq->monitor_desc, csq->desktop_desc, csq->node_desc,
	        csq->state == NULL ? "" : STATE_STR(*csq->state),
	        csq->layer == NULL ? "" : LAYER_STR(*csq->layer),
	        csq->honor_size_hints == HONOR_SIZE_HINTS_DEFAULT ? "" : HSH_MODE_STR(csq->honor_size_hints),
	        csq->split_dir == NULL ? "" : SPLIT_DIR_STR(*csq->split_dir), csq->split_ratio,
	        ON_OFF_STR(csq->hidden), ON_OFF_STR(csq->sticky), ON_OFF_STR(csq->private),
	        ON_OFF_STR(csq->locked), ON_OFF_STR(csq->marked), ON_OFF_STR(csq->center), ON_OFF_STR(csq->follow),
	        ON_OFF_STR(csq->manage), ON_OFF_STR(csq->focus), ON_OFF_STR(csq->border), rect_buf);
	free(rect_buf);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x8(%rsp), %r15
movq $0x0, (%r15)
movq 0x630(%rsi), %rsi
movq %r15, %rdi
callq 0x1ad10
cmpq $0x0, (%r15)
jne 0x1aadd
movl $0x1, %edi
callq 0x4290
movq %rax, 0x8(%rsp)
movb $0x0, (%rax)
movq 0x618(%r14), %rax
leaq 0x6ab9(%rip), %rdx      # 0x215a4
movq %rdx, %r9
testq %rax, %rax
je 0x1ab25
movl (%rax), %eax
testl %eax, %eax
je 0x1ab07
cmpl $0x2, %eax
jne 0x1ab10
leaq 0x61ed(%rip), %r9       # 0x20cf2
jmp 0x1ab25
leaq 0x6193(%rip), %r9       # 0x20ca1
jmp 0x1ab25
cmpl $0x3, %eax
leaq 0x61e2(%rip), %rax      # 0x20cfc
leaq 0x61c3(%rip), %r9       # 0x20ce4
cmoveq %rax, %r9
movq 0x610(%r14), %rax
testq %rax, %rax
je 0x1ab55
movl (%rax), %eax
testl %eax, %eax
je 0x1ab4e
cmpl $0x1, %eax
leaq 0x621f(%rip), %rax      # 0x20d60
leaq 0x6220(%rip), %rdx      # 0x20d68
cmoveq %rax, %rdx
jmp 0x1ab55
leaq 0x6204(%rip), %rdx      # 0x20d59
movl 0x620(%r14), %eax
leal -0x2(%rax), %ecx
cmpl $0x3, %ecx
jae 0x1ab76
movl %ecx, %eax
leaq 0x625f(%rip), %rcx      # 0x20dcc
movslq (%rcx,%rax,4), %rsi
addq %rcx, %rsi
jmp 0x1ab8a
testl %eax, %eax
leaq 0x5e59(%rip), %rax      # 0x209d8
leaq 0x5e4d(%rip), %rsi      # 0x209d3
cmoveq %rax, %rsi
movq 0x600(%r14), %rax
testq %rax, %rax
movq %rdx, 0x30(%rsp)
movq %rsi, 0x28(%rsp)
je 0x1abb7
movl (%rax), %eax
movq %rbx, %rdi
testl %eax, %eax
je 0x1abc3
cmpl $0x1, %eax
jne 0x1abd0
leaq 0x66d8(%rip), %rax      # 0x2128d
jmp 0x1abca
movq %rbx, %rdi
leaq 0x69e3(%rip), %rax      # 0x215a4
jmp 0x1abca
leaq 0x4aaf(%rip), %rax      # 0x1f679
movq %rax, (%rsp)
jmp 0x1abe9
cmpl $0x2, %eax
leaq 0x4aa5(%rip), %rax      # 0x1f67f
leaq 0x4aa4(%rip), %rcx      # 0x1f685
cmoveq %rax, %rcx
movq %rcx, (%rsp)
leaq 0x5f25(%rip), %rax      # 0x20b15
cmpb $0x0, 0x624(%r14)
leaq 0x4cab(%rip), %r12      # 0x1f8aa
movq %r12, %rcx
cmovneq %rax, %rcx
movq %rcx, 0x20(%rsp)
cmpb $0x0, 0x625(%r14)
movq %r12, %rcx
cmovneq %rax, %rcx
movq %rcx, 0x18(%rsp)
cmpb $0x0, 0x626(%r14)
movq %r12, %rcx
cmovneq %rax, %rcx
movq %rcx, 0x10(%rsp)
cmpb $0x0, 0x627(%r14)
movq %r12, %rbx
cmovneq %rax, %rbx
cmpb $0x0, 0x628(%r14)
movq %r12, %r10
cmovneq %rax, %r10
leaq 0x500(%r14), %r8
cmpb $0x0, 0x629(%r14)
movq %r12, %r11
cmovneq %rax, %r11
cmpb $0x0, 0x62a(%r14)
leaq 0x400(%r14), %rcx
movq %r12, %r15
cmovneq %rax, %r15
leaq 0x300(%r14), %rdx
cmpb $0x0, 0x62b(%r14)
movq %r12, %r13
cmovneq %rax, %r13
cmpb $0x0, 0x62c(%r14)
movsd 0x608(%r14), %xmm0
movq %r12, %rbp
cmovneq %rax, %rbp
cmpb $0x0, 0x62d(%r14)
cmovneq %rax, %r12
leaq 0x64e7(%rip), %rsi      # 0x211a5
movb $0x1, %al
pushq 0x8(%rsp)
pushq %r12
pushq %rbp
pushq %r13
pushq %r15
pushq %r11
pushq %r10
pushq %rbx
pushq 0x50(%rsp)
pushq 0x60(%rsp)
pushq 0x70(%rsp)
pushq 0x58(%rsp)
pushq 0x88(%rsp)
pushq 0x98(%rsp)
callq 0x5f5d
addq $0x70, %rsp
movq 0x8(%rsp), %rdi
callq 0x4460
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq