// File: /workspace/github_c_makefile_star2_O3/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 0x18c2d
movq %rdi, %r14
movl $0x7b, %edi
movq %rbx, %rsi
callq 0x4420
leaq 0x83f8(%rip), %rsi      # 0x20fc5
movq %rbx, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x4a30
leaq 0x100(%r14), %rdx
leaq 0x83ef(%rip), %rsi      # 0x20fd7
movq %rbx, %rdi
xorl %eax, %eax
callq 0x4a30
movl 0x300(%r14), %edx
leaq 0x825f(%rip), %rsi      # 0x20e5f
movq %rbx, %rdi
xorl %eax, %eax
callq 0x4a30
movl 0x308(%r14), %eax
leaq 0x803d(%rip), %r15      # 0x20c55
movq %r15, %rdx
testl %eax, %eax
je 0x18c69
cmpl $0x2, %eax
jne 0x18c54
leaq 0x807b(%rip), %rdx      # 0x20ca6
jmp 0x18c69
leaq 0x82b6(%rip), %rdi      # 0x20eea
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 0x8052(%rip), %rax      # 0x20cb0
leaq 0x8033(%rip), %rdx      # 0x20c98
cmoveq %rax, %rdx
leaq 0x837c(%rip), %rsi      # 0x20fec
movq %rbx, %rdi
xorl %eax, %eax
callq 0x4a30
movl 0x30c(%r14), %eax
testl %eax, %eax
je 0x18ca8
cmpl $0x2, %eax
jne 0x18c93
leaq 0x8015(%rip), %r15      # 0x20ca6
jmp 0x18ca8
cmpl $0x3, %eax
leaq 0x8013(%rip), %rax      # 0x20cb0
leaq 0x7ff4(%rip), %r15      # 0x20c98
cmoveq %rax, %r15
leaq 0x834b(%rip), %rsi      # 0x20ffa
movq %rbx, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0x4a30
movl 0x310(%r14), %eax
cmpl $0x1, %eax
leaq 0x8047(%rip), %r12      # 0x20d14
leaq 0x8048(%rip), %r15      # 0x20d1c
movq %r15, %rdx
cmoveq %r12, %rdx
testl %eax, %eax
leaq 0x8029(%rip), %r13      # 0x20d0d
cmoveq %r13, %rdx
leaq 0x831d(%rip), %rsi      # 0x2100c
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 0x8306(%rip), %rsi      # 0x2101a
movq %rbx, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0x4a30
leaq 0x7c5f(%rip), %r12      # 0x20987
cmpb $0x0, 0x304(%r14)
leaq 0x7c55(%rip), %r15      # 0x2098c
movq %r15, %rdx
cmovneq %r12, %rdx
leaq 0x82e7(%rip), %rsi      # 0x2102c
movq %rbx, %rdi
xorl %eax, %eax
callq 0x4a30
cmpb $0x0, 0x305(%r14)
cmovneq %r12, %r15
leaq 0x82d7(%rip), %rsi      # 0x21039
movq %rbx, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0x4a30
leaq 0x82cf(%rip), %rdi      # 0x21045
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 0x82ba(%rip), %r15      # 0x2106c
movq %rbx, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x4a30
movl $0x2c, %edi
movq %rbx, %rsi
callq 0x4420
leaq 0x8284(%rip), %rdi      # 0x21057
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