// File: /workspace/github_c_makefile_star2_O1/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
testq %rdi, %rdi
je 0x18d1d
movq %rdi, %r14
movl $0x7b, %edi
movq %rbx, %rsi
callq 0x4420
leaq 0x8354(%rip), %rsi      # 0x21011
movq %rbx, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x4a30
leaq 0x100(%r14), %rdx
leaq 0x834b(%rip), %rsi      # 0x21023
movq %rbx, %rdi
xorl %eax, %eax
callq 0x4a30
movl 0x300(%r14), %edx
leaq 0x81bb(%rip), %rsi      # 0x20eab
movq %rbx, %rdi
xorl %eax, %eax
callq 0x4a30
movl 0x308(%r14), %eax
leaq 0x7f99(%rip), %r15      # 0x20ca1
movq %r15, %rdx
testl %eax, %eax
je 0x18d59
cmpl $0x2, %eax
jne 0x18d44
leaq 0x7fd7(%rip), %rdx      # 0x20cf2
jmp 0x18d59
leaq 0x8212(%rip), %rdi      # 0x20f36
movl $0x4, %esi
movl $0x1, %edx
movq %rbx, %rcx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x49e0
cmpl $0x3, %eax
leaq 0x7fae(%rip), %rax      # 0x20cfc
leaq 0x7f8f(%rip), %rdx      # 0x20ce4
cmoveq %rax, %rdx
leaq 0x82d8(%rip), %rsi      # 0x21038
movq %rbx, %rdi
xorl %eax, %eax
callq 0x4a30
movl 0x30c(%r14), %eax
testl %eax, %eax
je 0x18d98
cmpl $0x2, %eax
jne 0x18d83
leaq 0x7f71(%rip), %r15      # 0x20cf2
jmp 0x18d98
cmpl $0x3, %eax
leaq 0x7f6f(%rip), %rax      # 0x20cfc
leaq 0x7f50(%rip), %r15      # 0x20ce4
cmoveq %rax, %r15
leaq 0x82a7(%rip), %rsi      # 0x21046
movq %rbx, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0x4a30
movl 0x310(%r14), %eax
cmpl $0x1, %eax
leaq 0x7fa3(%rip), %r12      # 0x20d60
leaq 0x7fa4(%rip), %r15      # 0x20d68
movq %r15, %rdx
cmoveq %r12, %rdx
testl %eax, %eax
leaq 0x7f85(%rip), %r13      # 0x20d59
cmoveq %r13, %rdx
leaq 0x8279(%rip), %rsi      # 0x21058
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 0x8262(%rip), %rsi      # 0x21066
movq %rbx, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0x4a30
leaq 0x7bbb(%rip), %r12      # 0x209d3
cmpb $0x0, 0x304(%r14)
leaq 0x7bb1(%rip), %r15      # 0x209d8
movq %r15, %rdx
cmovneq %r12, %rdx
leaq 0x8243(%rip), %rsi      # 0x21078
movq %rbx, %rdi
xorl %eax, %eax
callq 0x4a30
cmpb $0x0, 0x305(%r14)
cmovneq %r12, %r15
leaq 0x8233(%rip), %rsi      # 0x21085
movq %rbx, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0x4a30
leaq 0x822b(%rip), %rdi      # 0x21091
movl $0x11, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x49e0
movq 0x320(%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 0x8216(%rip), %r15      # 0x210b8
movq %rbx, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x4a30
movl $0x2c, %edi
movq %rbx, %rsi
callq 0x4420
leaq 0x81e0(%rip), %rdi      # 0x210a3
movl $0x14, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x49e0
movq 0x318(%r14), %rcx
movq %rcx, %r8
shrq $0x20, %r8
movq %rcx, %r9
shrq $0x30, %r9
movswl %cx, %edx
sarl $0x10, %ecx
andl %ebp, %r8d
movq %rbx, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x4a30
movl $0x7d, %edi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x4420