// File: /workspace/github_c_makefile_star2_O3/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
movq $0x0, (%r15)
movq 0x630(%rsi), %rsi
movq %r15, %rdi
callq 0x1ab39
movq (%r15), %rsi
testq %rsi, %rsi
jne 0x1a8ff
movl $0x1, %edi
callq 0x4290
movq %rax, %rsi
movq %rax, 0x10(%rsp)
movb $0x0, (%rax)
movq 0x618(%r14), %rax
leaq 0x6c4b(%rip), %rdx      # 0x21558
movq %rdx, %r9
testq %rax, %rax
je 0x1a947
movl (%rax), %eax
testl %eax, %eax
je 0x1a929
cmpl $0x2, %eax
jne 0x1a932
leaq 0x637f(%rip), %r9       # 0x20ca6
jmp 0x1a947
leaq 0x6325(%rip), %r9       # 0x20c55
jmp 0x1a947
cmpl $0x3, %eax
leaq 0x6374(%rip), %rax      # 0x20cb0
leaq 0x6355(%rip), %r9       # 0x20c98
cmoveq %rax, %r9
movq 0x610(%r14), %rax
testq %rax, %rax
je 0x1a977
movl (%rax), %eax
testl %eax, %eax
je 0x1a970
cmpl $0x1, %eax
leaq 0x63b1(%rip), %rax      # 0x20d14
leaq 0x63b2(%rip), %rdx      # 0x20d1c
cmoveq %rax, %rdx
jmp 0x1a977
leaq 0x6396(%rip), %rdx      # 0x20d0d
movl 0x620(%r14), %eax
leal -0x2(%rax), %ecx
cmpl $0x3, %ecx
jae 0x1a998
movl %ecx, %eax
leaq 0x63f1(%rip), %rcx      # 0x20d80
movslq (%rcx,%rax,4), %rdi
addq %rcx, %rdi
jmp 0x1a9ac
testl %eax, %eax
leaq 0x5feb(%rip), %rax      # 0x2098c
leaq 0x5fdf(%rip), %rdi      # 0x20987
cmoveq %rax, %rdi
movq 0x600(%r14), %rax
testq %rax, %rax
movq %rdx, 0x40(%rsp)
movq %rsi, 0x38(%rsp)
movq %rdi, 0x30(%rsp)
je 0x1a9de
movl (%rax), %eax
movq %rbx, %rdi
testl %eax, %eax
je 0x1a9ea
cmpl $0x1, %eax
jne 0x1a9f8
leaq 0x6865(%rip), %rax      # 0x21241
jmp 0x1a9f1
movq %rbx, %rdi
leaq 0x6b70(%rip), %rax      # 0x21558
jmp 0x1a9f1
leaq 0x4c78(%rip), %rax      # 0x1f669
movq %rax, 0x8(%rsp)
jmp 0x1aa12
cmpl $0x2, %eax
leaq 0x4c6d(%rip), %rax      # 0x1f66f
leaq 0x4c6c(%rip), %rcx      # 0x1f675
cmoveq %rax, %rcx
movq %rcx, 0x8(%rsp)
leaq 0x60b0(%rip), %rax      # 0x20ac9
cmpb $0x0, 0x624(%r14)
leaq 0x4e72(%rip), %r13      # 0x1f89a
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 0x6672(%rip), %rsi      # 0x21159
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 0x5f1b
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