// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
cmpq $0x0, -0x8(%rbp)
jne 0x2316e
movq -0x10(%rbp), %rdi
leaq 0xbf42(%rip), %rsi      # 0x2f0a4
movb $0x0, %al
callq 0x4a00
jmp 0x23432
movq -0x10(%rbp), %rdi
leaq 0xbdc7(%rip), %rsi      # 0x2ef40
movb $0x0, %al
callq 0x4a00
movq -0x10(%rbp), %rdi
movq -0x8(%rbp), %rax
movl (%rax), %edx
leaq 0xbe43(%rip), %rsi      # 0x2efd4
movb $0x0, %al
callq 0x4a00
movq -0x10(%rbp), %rdi
movq -0x8(%rbp), %rax
movl 0x4(%rax), %ecx
leaq 0xbd63(%rip), %rdx      # 0x2ef0d
leaq 0xbd50(%rip), %rax      # 0x2ef01
cmpl $0x0, %ecx
cmoveq %rax, %rdx
leaq 0xbeea(%rip), %rsi      # 0x2f0a9
movb $0x0, %al
callq 0x4a00
movq -0x10(%rbp), %rdi
movq -0x8(%rbp), %rax
movsd 0x8(%rax), %xmm0
leaq 0xbee1(%rip), %rsi      # 0x2f0bb
movb $0x1, %al
callq 0x4a00
movq -0x10(%rbp), %rdi
movq -0x8(%rbp), %rax
movb 0x24(%rax), %cl
leaq 0xb975(%rip), %rdx      # 0x2eb68
leaq 0xb969(%rip), %rax      # 0x2eb63
testb $0x1, %cl
cmovneq %rax, %rdx
leaq 0xbec5(%rip), %rsi      # 0x2f0cd
movb $0x0, %al
callq 0x4a00
movq -0x10(%rbp), %rdi
movq -0x8(%rbp), %rax
movb 0x25(%rax), %cl
leaq 0xb947(%rip), %rdx      # 0x2eb68
leaq 0xb93b(%rip), %rax      # 0x2eb63
testb $0x1, %cl
cmovneq %rax, %rdx
leaq 0xbea4(%rip), %rsi      # 0x2f0da
movb $0x0, %al
callq 0x4a00
movq -0x10(%rbp), %rdi
movq -0x8(%rbp), %rax
movb 0x26(%rax), %cl
leaq 0xb919(%rip), %rdx      # 0x2eb68
leaq 0xb90d(%rip), %rax      # 0x2eb63
testb $0x1, %cl
cmovneq %rax, %rdx
leaq 0xbe83(%rip), %rsi      # 0x2f0e7
movb $0x0, %al
callq 0x4a00
movq -0x10(%rbp), %rdi
movq -0x8(%rbp), %rax
movb 0x27(%rax), %cl
leaq 0xb8eb(%rip), %rdx      # 0x2eb68
leaq 0xb8df(%rip), %rax      # 0x2eb63
testb $0x1, %cl
cmovneq %rax, %rdx
leaq 0xbe62(%rip), %rsi      # 0x2f0f4
movb $0x0, %al
callq 0x4a00
movq -0x10(%rbp), %rdi
movq -0x8(%rbp), %rax
movb 0x28(%rax), %cl
leaq 0xb8bd(%rip), %rdx      # 0x2eb68
leaq 0xb8b1(%rip), %rax      # 0x2eb63
testb $0x1, %cl
cmovneq %rax, %rdx
leaq 0xbe42(%rip), %rsi      # 0x2f102
movb $0x0, %al
callq 0x4a00
movq -0x10(%rbp), %rdi
movq -0x8(%rbp), %rax
movb 0x29(%rax), %cl
leaq 0xb88f(%rip), %rdx      # 0x2eb68
leaq 0xb883(%rip), %rax      # 0x2eb63
testb $0x1, %cl
cmovneq %rax, %rdx
leaq 0xbe21(%rip), %rsi      # 0x2f10f
movb $0x0, %al
callq 0x4a00
movq -0x10(%rbp), %rdi
leaq 0xbe1c(%rip), %rsi      # 0x2f11c
movb $0x0, %al
callq 0x4a00
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rdi
movq -0x10(%rbp), %rsi
callq 0x23440
movq -0x10(%rbp), %rdi
leaq 0xbe81(%rip), %rsi      # 0x2f1a4
movb $0x0, %al
callq 0x4a00
movq -0x10(%rbp), %rdi
leaq 0xbd18(%rip), %rsi      # 0x2f04d
movb $0x0, %al
callq 0x4a00
movq -0x8(%rbp), %rax
movq -0x10(%rbp), %rsi
movq 0x18(%rax), %rdi
callq 0x22f60
movq -0x10(%rbp), %rdi
leaq 0xbe4c(%rip), %rsi      # 0x2f1a4
movb $0x0, %al
callq 0x4a00
movq -0x10(%rbp), %rdi
leaq 0xbdbc(%rip), %rsi      # 0x2f126
movb $0x0, %al
callq 0x4a00
movq -0x8(%rbp), %rax
movq -0x10(%rbp), %rsi
movl 0x20(%rax), %edi
callq 0x234f0
movq -0x10(%rbp), %rdi
leaq 0xbe18(%rip), %rsi      # 0x2f1a4
movb $0x0, %al
callq 0x4a00
movq -0x10(%rbp), %rdi
leaq 0xbd97(%rip), %rsi      # 0x2f135
movb $0x0, %al
callq 0x4a00
movq -0x8(%rbp), %rax
movq 0x30(%rax), %rdi
movq -0x10(%rbp), %rsi
callq 0x23140
movq -0x10(%rbp), %rdi
leaq 0xbde3(%rip), %rsi      # 0x2f1a4
movb $0x0, %al
callq 0x4a00
movq -0x10(%rbp), %rdi
leaq 0xbd70(%rip), %rsi      # 0x2f143
movb $0x0, %al
callq 0x4a00
movq -0x8(%rbp), %rax
movq 0x38(%rax), %rdi
movq -0x10(%rbp), %rsi
callq 0x23140
movq -0x10(%rbp), %rdi
leaq 0xbdae(%rip), %rsi      # 0x2f1a4
movb $0x0, %al
callq 0x4a00
movq -0x10(%rbp), %rdi
leaq 0xbd4a(%rip), %rsi      # 0x2f152
movb $0x0, %al
callq 0x4a00
movq -0x8(%rbp), %rax
movq 0x48(%rax), %rdi
movq -0x10(%rbp), %rsi
callq 0x23520
movq -0x10(%rbp), %rdi
leaq 0xbd52(%rip), %rsi      # 0x2f17d
movb $0x0, %al
callq 0x4a00
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax,%rax)