// File: /workspace/github_c_makefile_star2_O2/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 $0x48, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x10(%rsp), %r15
andq $0x0, (%r15)
movq 0x630(%rsi), %rsi
movq %r15, %rdi
callq 0x196c8
movq (%r15), %rsi
testq %rsi, %rsi
jne 0x1948e
pushq $0x1
popq %rdi
callq 0x4290
movq %rax, %rsi
movq %rax, 0x10(%rsp)
movb $0x0, (%rax)
movq 0x618(%r14), %rax
leaq 0x70bc(%rip), %rdx      # 0x20558
movq %rdx, %r9
testq %rax, %rax
je 0x194d6
movl (%rax), %eax
testl %eax, %eax
je 0x194b8
cmpl $0x2, %eax
jne 0x194c1
leaq 0x67f0(%rip), %r9       # 0x1fca6
jmp 0x194d6
leaq 0x6796(%rip), %r9       # 0x1fc55
jmp 0x194d6
cmpl $0x3, %eax
leaq 0x67e5(%rip), %rax      # 0x1fcb0
leaq 0x67c6(%rip), %r9       # 0x1fc98
cmoveq %rax, %r9
movq 0x610(%r14), %rax
testq %rax, %rax
je 0x19506
movl (%rax), %eax
testl %eax, %eax
je 0x194ff
cmpl $0x1, %eax
leaq 0x6822(%rip), %rax      # 0x1fd14
leaq 0x6823(%rip), %rdx      # 0x1fd1c
cmoveq %rax, %rdx
jmp 0x19506
leaq 0x6807(%rip), %rdx      # 0x1fd0d
movl 0x620(%r14), %eax
leal -0x2(%rax), %ecx
cmpl $0x3, %ecx
jae 0x19527
movl %ecx, %eax
leaq 0x6862(%rip), %rcx      # 0x1fd80
movslq (%rcx,%rax,4), %rdi
addq %rcx, %rdi
jmp 0x1953b
testl %eax, %eax
leaq 0x645c(%rip), %rax      # 0x1f98c
leaq 0x6450(%rip), %rdi      # 0x1f987
cmoveq %rax, %rdi
movq 0x600(%r14), %rax
testq %rax, %rax
movq %rdx, 0x40(%rsp)
movq %rsi, 0x38(%rsp)
movq %rdi, 0x30(%rsp)
je 0x1956d
movl (%rax), %eax
movq %rbx, %rdi
testl %eax, %eax
je 0x19579
cmpl $0x1, %eax
jne 0x19587
leaq 0x6cd6(%rip), %rax      # 0x20241
jmp 0x19580
movq %rbx, %rdi
leaq 0x6fe1(%rip), %rax      # 0x20558
jmp 0x19580
leaq 0x50e9(%rip), %rax      # 0x1e669
movq %rax, 0x8(%rsp)
jmp 0x195a1
cmpl $0x2, %eax
leaq 0x50de(%rip), %rax      # 0x1e66f
leaq 0x50dd(%rip), %rcx      # 0x1e675
cmoveq %rax, %rcx
movq %rcx, 0x8(%rsp)
leaq 0x6521(%rip), %rax      # 0x1fac9
cmpb $0x0, 0x624(%r14)
leaq 0x52e3(%rip), %r13      # 0x1e89a
movq %r13, %rcx
cmovneq %rax, %rcx
movq %rcx, 0x28(%rsp)
cmpb $0x0, 0x625(%r14)
movq %r13, %rcx
cmovneq %rax, %rcx
movq %rcx, 0x20(%rsp)
cmpb $0x0, 0x626(%r14)
movq %r13, %rcx
cmovneq %rax, %rcx
movq %rcx, 0x18(%rsp)
cmpb $0x0, 0x627(%r14)
movq %r13, %r10
cmovneq %rax, %r10
cmpb $0x0, 0x628(%r14)
movq %r13, %r11
cmovneq %rax, %r11
leaq 0x500(%r14), %r8
cmpb $0x0, 0x629(%r14)
movq %r13, %r15
cmovneq %rax, %r15
cmpb $0x0, 0x62a(%r14)
leaq 0x400(%r14), %rcx
movq %r13, %r12
cmovneq %rax, %r12
leaq 0x300(%r14), %rdx
cmpb $0x0, 0x62b(%r14)
movq %r13, %rbp
cmovneq %rax, %rbp
cmpb $0x0, 0x62c(%r14)
movsd 0x608(%r14), %xmm0
movq %r13, %rbx
cmovneq %rax, %rbx
cmpb $0x0, 0x62d(%r14)
cmovneq %rax, %r13
leaq 0x6ae3(%rip), %rsi      # 0x20159
movb $0x1, %al
pushq 0x38(%rsp)
pushq %r13
pushq %rbx
pushq %rbp
pushq %r12
pushq %r15
pushq %r11
pushq %r10
pushq 0x58(%rsp)
pushq 0x68(%rsp)
pushq 0x78(%rsp)
pushq 0x60(%rsp)
pushq 0x90(%rsp)
pushq 0xa8(%rsp)
callq 0x5e6c
addq $0x70, %rsp
movq 0x10(%rsp), %rdi
callq 0x4460
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq