// File: /workspace/github_c_makefile_star2_O0/baskerville[P]bspwm/src/query.c
// Function: query_client
void query_client(client_t *c, FILE *rsp)
{
	if (c == NULL) {
		fprintf(rsp, "null");
	} else {
		fprintf(rsp, "{");
		fprintf(rsp, "\"className\":\"%s\",", c->class_name);
		fprintf(rsp, "\"instanceName\":\"%s\",", c->instance_name);
		fprintf(rsp, "\"borderWidth\":%u,", c->border_width);
		fprintf(rsp, "\"state\":\"%s\",", STATE_STR(c->state));
		fprintf(rsp, "\"lastState\":\"%s\",", STATE_STR(c->last_state));
		fprintf(rsp, "\"layer\":\"%s\",", LAYER_STR(c->layer));
		fprintf(rsp, "\"lastLayer\":\"%s\",", LAYER_STR(c->last_layer));
		fprintf(rsp, "\"urgent\":%s,", BOOL_STR(c->urgent));
		fprintf(rsp, "\"shown\":%s,", BOOL_STR(c->shown));
		fprintf(rsp, "\"tiledRectangle\":");
		query_rectangle(c->tiled_rectangle, rsp);
		fprintf(rsp,",");
		fprintf(rsp, "\"floatingRectangle\":");
		query_rectangle(c->floating_rectangle, rsp);
		fprintf(rsp, "}");
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
cmpq $0x0, -0x8(%rbp)
jne 0x2354e
movq -0x10(%rbp), %rdi
leaq 0xbb62(%rip), %rsi      # 0x2f0a4
movb $0x0, %al
callq 0x4a00
jmp 0x23831
movq -0x10(%rbp), %rdi
leaq 0xb9e7(%rip), %rsi      # 0x2ef40
movb $0x0, %al
callq 0x4a00
movq -0x10(%rbp), %rdi
movq -0x8(%rbp), %rdx
leaq 0xbc10(%rip), %rsi      # 0x2f17f
movb $0x0, %al
callq 0x4a00
movq -0x10(%rbp), %rdi
movq -0x8(%rbp), %rdx
addq $0x100, %rdx            # imm = 0x100
leaq 0xbc05(%rip), %rsi      # 0x2f191
movb $0x0, %al
callq 0x4a00
movq -0x10(%rbp), %rdi
movq -0x8(%rbp), %rax
movl 0x300(%rax), %edx
leaq 0xba71(%rip), %rsi      # 0x2f019
movb $0x0, %al
callq 0x4a00
movq -0x10(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x8(%rbp), %rax
cmpl $0x0, 0x308(%rax)
jne 0x235d1
leaq 0xb868(%rip), %rax      # 0x2ee33
movq %rax, -0x20(%rbp)
jmp 0x23616
movq -0x8(%rbp), %rax
cmpl $0x2, 0x308(%rax)
jne 0x235eb
leaq 0xb89f(%rip), %rax      # 0x2ee84
movq %rax, -0x28(%rbp)
jmp 0x2360e
movq -0x8(%rbp), %rax
movl 0x308(%rax), %edx
leaq 0xb87a(%rip), %rax      # 0x2ee76
leaq 0xb88b(%rip), %rcx      # 0x2ee8e
cmpl $0x3, %edx
cmoveq %rcx, %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rdx
leaq 0xbb81(%rip), %rsi      # 0x2f1a6
movb $0x0, %al
callq 0x4a00
movq -0x10(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x8(%rbp), %rax
cmpl $0x0, 0x30c(%rax)
jne 0x2364e
leaq 0xb7eb(%rip), %rax      # 0x2ee33
movq %rax, -0x38(%rbp)
jmp 0x23693
movq -0x8(%rbp), %rax
cmpl $0x2, 0x30c(%rax)
jne 0x23668
leaq 0xb822(%rip), %rax      # 0x2ee84
movq %rax, -0x40(%rbp)
jmp 0x2368b
movq -0x8(%rbp), %rax
movl 0x30c(%rax), %edx
leaq 0xb7fd(%rip), %rax      # 0x2ee76
leaq 0xb80e(%rip), %rcx      # 0x2ee8e
cmpl $0x3, %edx
cmoveq %rcx, %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x30(%rbp), %rdi
movq -0x38(%rbp), %rdx
leaq 0xbb12(%rip), %rsi      # 0x2f1b4
movb $0x0, %al
callq 0x4a00
movq -0x10(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x8(%rbp), %rax
cmpl $0x0, 0x310(%rax)
jne 0x236cb
leaq 0xb826(%rip), %rax      # 0x2eeeb
movq %rax, -0x50(%rbp)
jmp 0x236ee
movq -0x8(%rbp), %rax
movl 0x310(%rax), %edx
leaq 0xb81e(%rip), %rax      # 0x2eefa
leaq 0xb80f(%rip), %rcx      # 0x2eef2
cmpl $0x1, %edx
cmoveq %rcx, %rax
movq %rax, -0x50(%rbp)
movq -0x48(%rbp), %rdi
movq -0x50(%rbp), %rdx
leaq 0xbac9(%rip), %rsi      # 0x2f1c6
movb $0x0, %al
callq 0x4a00
movq -0x10(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x8(%rbp), %rax
cmpl $0x0, 0x314(%rax)
jne 0x23726
leaq 0xb7cb(%rip), %rax      # 0x2eeeb
movq %rax, -0x60(%rbp)
jmp 0x23749
movq -0x8(%rbp), %rax
movl 0x314(%rax), %edx
leaq 0xb7c3(%rip), %rax      # 0x2eefa
leaq 0xb7b4(%rip), %rcx      # 0x2eef2
cmpl $0x1, %edx
cmoveq %rcx, %rax
movq %rax, -0x60(%rbp)
movq -0x58(%rbp), %rdi
movq -0x60(%rbp), %rdx
leaq 0xba7c(%rip), %rsi      # 0x2f1d4
movb $0x0, %al
callq 0x4a00
movq -0x10(%rbp), %rdi
movq -0x8(%rbp), %rax
movb 0x304(%rax), %cl
leaq 0xb3f4(%rip), %rdx      # 0x2eb68
leaq 0xb3e8(%rip), %rax      # 0x2eb63
testb $0x1, %cl
cmovneq %rax, %rdx
leaq 0xba5d(%rip), %rsi      # 0x2f1e6
movb $0x0, %al
callq 0x4a00
movq -0x10(%rbp), %rdi
movq -0x8(%rbp), %rax
movb 0x305(%rax), %cl
leaq 0xb3c3(%rip), %rdx      # 0x2eb68
leaq 0xb3b7(%rip), %rax      # 0x2eb63
testb $0x1, %cl
cmovneq %rax, %rdx
leaq 0xba39(%rip), %rsi      # 0x2f1f3
movb $0x0, %al
callq 0x4a00
movq -0x10(%rbp), %rdi
leaq 0xba33(%rip), %rsi      # 0x2f1ff
movb $0x0, %al
callq 0x4a00
movq -0x8(%rbp), %rax
movq -0x10(%rbp), %rsi
movq 0x320(%rax), %rdi
callq 0x22f60
movq -0x10(%rbp), %rdi
leaq 0xb9b2(%rip), %rsi      # 0x2f1a4
movb $0x0, %al
callq 0x4a00
movq -0x10(%rbp), %rdi
leaq 0xba0d(%rip), %rsi      # 0x2f211
movb $0x0, %al
callq 0x4a00
movq -0x8(%rbp), %rax
movq -0x10(%rbp), %rsi
movq 0x318(%rax), %rdi
callq 0x22f60
movq -0x10(%rbp), %rdi
leaq 0xb953(%rip), %rsi      # 0x2f17d
movb $0x0, %al
callq 0x4a00
addq $0x60, %rsp
popq %rbp
retq
nopw (%rax,%rax)