// File: /workspace/github_c_makefile_star2_O3/baskerville[P]bspwm/src/query.c
// Function: query_monitor
void query_monitor(monitor_t *m, FILE *rsp)
{
	fprintf(rsp, "{");
	fprintf(rsp, "\"name\":\"%s\",", m->name);
	fprintf(rsp, "\"id\":%u,", m->id);
	fprintf(rsp, "\"randrId\":%u,", m->randr_id);
	fprintf(rsp, "\"wired\":%s,", BOOL_STR(m->wired));
	fprintf(rsp, "\"stickyCount\":%i,", m->sticky_count);
	fprintf(rsp, "\"windowGap\":%i,", m->window_gap);
	fprintf(rsp, "\"borderWidth\":%u,", m->border_width);
	fprintf(rsp, "\"focusedDesktopId\":%u,", m->desk->id);
	fprintf(rsp, "\"padding\":");
	query_padding(m->padding, rsp);
	fprintf(rsp,",");
	fprintf(rsp, "\"rectangle\":");
	query_rectangle(m->rectangle, rsp);
	fprintf(rsp,",");
	fprintf(rsp, "\"desktops\":");
	fprintf(rsp, "[");
	for (desktop_t *d = m->desk_head; d != NULL; d = d->next) {
		query_desktop(d, rsp);
		if (d->next != NULL) {
			fprintf(rsp,",");
		}
	}
	fprintf(rsp, "]");
	fprintf(rsp, "}");
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movl $0x7b, %edi
callq 0x4420
leaq 0x8aa2(%rip), %rsi      # 0x20e0d
movq %rbx, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x4a30
movl 0x20(%r14), %edx
leaq 0x8a97(%rip), %rsi      # 0x20e1a
movq %rbx, %rdi
xorl %eax, %eax
callq 0x4a30
movl 0x24(%r14), %edx
leaq 0x8a8b(%rip), %rsi      # 0x20e23
movq %rbx, %rdi
xorl %eax, %eax
callq 0x4a30
leaq 0x85de(%rip), %rax      # 0x20987
leaq 0x85dc(%rip), %rdx      # 0x2098c
cmpb $0x0, 0x2c(%r14)
cmovneq %rax, %rdx
leaq 0x8a71(%rip), %rsi      # 0x20e31
movq %rbx, %rdi
xorl %eax, %eax
callq 0x4a30
movl 0x40(%r14), %edx
leaq 0x8a68(%rip), %rsi      # 0x20e3d
movq %rbx, %rdi
xorl %eax, %eax
callq 0x4a30
movl 0x44(%r14), %edx
leaq 0x8a65(%rip), %rsi      # 0x20e4f
movq %rbx, %rdi
xorl %eax, %eax
callq 0x4a30
movl 0x48(%r14), %edx
leaq 0x8a60(%rip), %rsi      # 0x20e5f
movq %rbx, %rdi
xorl %eax, %eax
callq 0x4a30
movq 0x58(%r14), %rax
movl 0x20(%rax), %edx
leaq 0x8a5a(%rip), %rsi      # 0x20e71
movq %rbx, %rdi
xorl %eax, %eax
callq 0x4a30
leaq 0x8a60(%rip), %rdi      # 0x20e88
movl $0xa, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x49e0
movq 0x30(%r14), %rdx
movq 0x38(%r14), %r8
movq %rdx, %rcx
shrq $0x20, %rcx
movq %r8, %r9
shrq $0x20, %r9
leaq 0x8c5d(%rip), %rsi      # 0x210b4
movq %rbx, %rdi
xorl %eax, %eax
callq 0x4a30
movl $0x2c, %edi
movq %rbx, %rsi
callq 0x4420
leaq 0x8a1e(%rip), %rdi      # 0x20e93
movl $0xc, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x49e0
movq 0x4c(%r14), %rcx
movq %rcx, %rax
shrq $0x20, %rax
movq %rcx, %r9
shrq $0x30, %r9
movswl %cx, %edx
sarl $0x10, %ecx
movzwl %ax, %r8d
leaq 0x8bc2(%rip), %rsi      # 0x2106c
movq %rbx, %rdi
xorl %eax, %eax
callq 0x4a30
movl $0x2c, %edi
movq %rbx, %rsi
callq 0x4420
leaq 0x89d8(%rip), %rdi      # 0x20ea0
movl $0xb, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x49e0
movl $0x5b, %edi
movq %rbx, %rsi
callq 0x4420
movq 0x60(%r14), %r14
testq %r14, %r14
je 0x18515
movq %r14, %rdi
movq %rbx, %rsi
callq 0x1870a
cmpq $0x0, 0x48(%r14)
je 0x18515
movl $0x2c, %edi
movq %rbx, %rsi
callq 0x4420
movq 0x48(%r14), %r14
jmp 0x184eb
movl $0x5d, %edi
movq %rbx, %rsi
callq 0x4420
movl $0x7d, %edi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x4420