// File: /workspace/github_c_makefile_star2_O2/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 %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %rbx
testq %rdi, %rdi
je 0x17921
movq %rdi, %r14
pushq $0x7b
popq %rdi
movq %rbx, %rsi
callq 0x4420
leaq 0x8704(%rip), %rsi      # 0x1ffc5
movq %rbx, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x4a30
leaq 0x100(%r14), %rdx
leaq 0x86fb(%rip), %rsi      # 0x1ffd7
movq %rbx, %rdi
xorl %eax, %eax
callq 0x4a30
movl 0x300(%r14), %edx
leaq 0x856b(%rip), %rsi      # 0x1fe5f
movq %rbx, %rdi
xorl %eax, %eax
callq 0x4a30
movl 0x308(%r14), %eax
leaq 0x8349(%rip), %r15      # 0x1fc55
movq %r15, %rdx
testl %eax, %eax
je 0x17954
cmpl $0x2, %eax
jne 0x1793f
leaq 0x8387(%rip), %rdx      # 0x1fca6
jmp 0x17954
leaq 0x85c2(%rip), %rdi      # 0x1feea
pushq $0x4
popq %rsi
pushq $0x1
popq %rdx
movq %rbx, %rcx
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x49e0
cmpl $0x3, %eax
leaq 0x8367(%rip), %rax      # 0x1fcb0
leaq 0x8348(%rip), %rdx      # 0x1fc98
cmoveq %rax, %rdx
leaq 0x8691(%rip), %rsi      # 0x1ffec
movq %rbx, %rdi
xorl %eax, %eax
callq 0x4a30
movl 0x30c(%r14), %eax
testl %eax, %eax
je 0x17993
cmpl $0x2, %eax
jne 0x1797e
leaq 0x832a(%rip), %r15      # 0x1fca6
jmp 0x17993
cmpl $0x3, %eax
leaq 0x8328(%rip), %rax      # 0x1fcb0
leaq 0x8309(%rip), %r15      # 0x1fc98
cmoveq %rax, %r15
leaq 0x8660(%rip), %rsi      # 0x1fffa
movq %rbx, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0x4a30
movl 0x310(%r14), %eax
cmpl $0x1, %eax
leaq 0x835c(%rip), %r12      # 0x1fd14
leaq 0x835d(%rip), %r15      # 0x1fd1c
movq %r15, %rdx
cmoveq %r12, %rdx
testl %eax, %eax
leaq 0x833e(%rip), %r13      # 0x1fd0d
cmoveq %r13, %rdx
leaq 0x8632(%rip), %rsi      # 0x2000c
movq %rbx, %rdi
xorl %eax, %eax
callq 0x4a30
movl 0x314(%r14), %eax
cmpl $0x1, %eax
cmoveq %r12, %r15
testl %eax, %eax
cmoveq %r13, %r15
leaq 0x861b(%rip), %rsi      # 0x2001a
movq %rbx, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0x4a30
leaq 0x7f74(%rip), %r12      # 0x1f987
cmpb $0x0, 0x304(%r14)
leaq 0x7f6a(%rip), %r15      # 0x1f98c
movq %r15, %rdx
cmovneq %r12, %rdx
leaq 0x85fc(%rip), %rsi      # 0x2002c
movq %rbx, %rdi
xorl %eax, %eax
callq 0x4a30
cmpb $0x0, 0x305(%r14)
cmovneq %r12, %r15
leaq 0x85ec(%rip), %rsi      # 0x20039
movq %rbx, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0x4a30
leaq 0x85e4(%rip), %rdi      # 0x20045
pushq $0x11
popq %rsi
pushq $0x1
popq %r15
movq %r15, %rdx
movq %rbx, %rcx
callq 0x49e0
movq 0x320(%r14), %rdi
movq %rbx, %rsi
callq 0x1743e
pushq $0x2c
popq %rdi
movq %rbx, %rsi
callq 0x4420
leaq 0x85c3(%rip), %rdi      # 0x20057
pushq $0x14
popq %rsi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x49e0
movq 0x318(%r14), %rdi
movq %rbx, %rsi
callq 0x1743e
pushq $0x7d
popq %rdi
movq %rbx, %rsi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x4420