// File: /workspace/github_c_makefile_star2_O1/baskerville[P]bspwm/src/query.c
// Function: query_node
void query_node(node_t *n, FILE *rsp)
{
	if (n == NULL) {
		fprintf(rsp, "null");
	} else {
		fprintf(rsp, "{");
		fprintf(rsp, "\"id\":%u,", n->id);
		fprintf(rsp, "\"splitType\":\"%s\",", SPLIT_TYPE_STR(n->split_type));
		fprintf(rsp, "\"splitRatio\":%lf,", n->split_ratio);
		fprintf(rsp, "\"vacant\":%s,", BOOL_STR(n->vacant));
		fprintf(rsp, "\"hidden\":%s,", BOOL_STR(n->hidden));
		fprintf(rsp, "\"sticky\":%s,", BOOL_STR(n->sticky));
		fprintf(rsp, "\"private\":%s,", BOOL_STR(n->private));
		fprintf(rsp, "\"locked\":%s,", BOOL_STR(n->locked));
		fprintf(rsp, "\"marked\":%s,", BOOL_STR(n->marked));
		fprintf(rsp, "\"presel\":");
		query_presel(n->presel, rsp);
		fprintf(rsp,",");
		fprintf(rsp, "\"rectangle\":");
		query_rectangle(n->rectangle, rsp);
		fprintf(rsp,",");
		fprintf(rsp, "\"constraints\":");
		query_constraints(n->constraints, rsp);
		fprintf(rsp,",");
		fprintf(rsp, "\"firstChild\":");
		query_node(n->first_child, rsp);
		fprintf(rsp,",");
		fprintf(rsp, "\"secondChild\":");
		query_node(n->second_child, rsp);
		fprintf(rsp,",");
		fprintf(rsp, "\"client\":");
		query_client(n->client, rsp);
		fprintf(rsp, "}");
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %rbx
testq %rdi, %rdi
je 0x18bf0
movq %rdi, %r14
movl $0x7b, %edi
movq %rbx, %rsi
callq 0x4420
movl (%r14), %edx
leaq 0x84e4(%rip), %rsi      # 0x20e66
movq %rbx, %rdi
xorl %eax, %eax
callq 0x4a30
cmpl $0x0, 0x4(%r14)
leaq 0x83d7(%rip), %rax      # 0x20d6f
leaq 0x83dc(%rip), %rdx      # 0x20d7b
cmoveq %rax, %rdx
leaq 0x8591(%rip), %rsi      # 0x20f3b
movq %rbx, %rdi
xorl %eax, %eax
callq 0x4a30
movsd 0x8(%r14), %xmm0
leaq 0x858c(%rip), %rsi      # 0x20f4d
movq %rbx, %rdi
movb $0x1, %al
callq 0x4a30
leaq 0x8001(%rip), %r12      # 0x209d3
cmpb $0x0, 0x24(%r14)
leaq 0x7ffa(%rip), %r15      # 0x209d8
movq %r15, %rdx
cmovneq %r12, %rdx
leaq 0x8573(%rip), %rsi      # 0x20f5f
movq %rbx, %rdi
xorl %eax, %eax
callq 0x4a30
cmpb $0x0, 0x25(%r14)
movq %r15, %rdx
cmovneq %r12, %rdx
leaq 0x8563(%rip), %rsi      # 0x20f6c
movq %rbx, %rdi
xorl %eax, %eax
callq 0x4a30
cmpb $0x0, 0x26(%r14)
movq %r15, %rdx
cmovneq %r12, %rdx
leaq 0x8553(%rip), %rsi      # 0x20f79
movq %rbx, %rdi
xorl %eax, %eax
callq 0x4a30
cmpb $0x0, 0x27(%r14)
movq %r15, %rdx
cmovneq %r12, %rdx
leaq 0x8543(%rip), %rsi      # 0x20f86
movq %rbx, %rdi
xorl %eax, %eax
callq 0x4a30
cmpb $0x0, 0x28(%r14)
movq %r15, %rdx
cmovneq %r12, %rdx
leaq 0x8534(%rip), %rsi      # 0x20f94
movq %rbx, %rdi
xorl %eax, %eax
callq 0x4a30
cmpb $0x0, 0x29(%r14)
cmovneq %r12, %r15
leaq 0x8527(%rip), %rsi      # 0x20fa1
movq %rbx, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0x4a30
leaq 0x8520(%rip), %rdi      # 0x20fae
movl $0x9, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x49e0
movq 0x10(%r14), %rdi
movq %rbx, %rsi
callq 0x18c11
movl $0x2c, %edi
movq %rbx, %rsi
callq 0x4420
leaq 0x841f(%rip), %rdi      # 0x20edf
movl $0xc, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x49e0
movq 0x18(%r14), %rcx
movq %rcx, %r8
shrq $0x20, %r8
movq %rcx, %r9
shrq $0x30, %r9
movswl %cx, %edx
sarl $0x10, %ecx
movl $0xffff, %ebp           # imm = 0xFFFF
andl %ebp, %r8d
leaq 0x85bf(%rip), %rsi      # 0x210b8
movq %rbx, %rdi
xorl %eax, %eax
callq 0x4a30
movl $0x2c, %edi
movq %rbx, %rsi
callq 0x4420
leaq 0x84a1(%rip), %rdi      # 0x20fb8
movl $0xe, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x49e0
movl 0x20(%r14), %edx
movl %edx, %ecx
shrl $0x10, %ecx
andl %ebp, %edx
leaq 0x85a4(%rip), %rsi      # 0x210df
movq %rbx, %rdi
xorl %eax, %eax
callq 0x4a30
movl $0x2c, %edi
movq %rbx, %rsi
callq 0x4420
leaq 0x846e(%rip), %rdi      # 0x20fc7
movl $0xd, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x49e0
movq 0x30(%r14), %rdi
movq %rbx, %rsi
callq 0x18954
movl $0x2c, %edi
movq %rbx, %rsi
callq 0x4420
leaq 0x844a(%rip), %rdi      # 0x20fd5
movl $0xe, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x49e0
movq 0x38(%r14), %rdi
movq %rbx, %rsi
callq 0x18954
movl $0x2c, %edi
movq %rbx, %rsi
callq 0x4420
leaq 0x8427(%rip), %rdi      # 0x20fe4
movl $0x9, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x49e0
movq 0x48(%r14), %rdi
movq %rbx, %rsi
callq 0x18c93
movl $0x7d, %edi
movq %rbx, %rsi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x4420
leaq 0x833f(%rip), %rdi      # 0x20f36
movl $0x4, %esi
movl $0x1, %edx
movq %rbx, %rcx
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x49e0