// File: /workspace/github_c_makefile_star2_O1/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 0x89fe(%rip), %rsi      # 0x20e59
movq %rbx, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x4a30
movl 0x20(%r14), %edx
leaq 0x89f3(%rip), %rsi      # 0x20e66
movq %rbx, %rdi
xorl %eax, %eax
callq 0x4a30
movl 0x24(%r14), %edx
leaq 0x89e7(%rip), %rsi      # 0x20e6f
movq %rbx, %rdi
xorl %eax, %eax
callq 0x4a30
leaq 0x853a(%rip), %rax      # 0x209d3
leaq 0x8538(%rip), %rdx      # 0x209d8
cmpb $0x0, 0x2c(%r14)
cmovneq %rax, %rdx
leaq 0x89cd(%rip), %rsi      # 0x20e7d
movq %rbx, %rdi
xorl %eax, %eax
callq 0x4a30
movl 0x40(%r14), %edx
leaq 0x89c4(%rip), %rsi      # 0x20e89
movq %rbx, %rdi
xorl %eax, %eax
callq 0x4a30
movl 0x44(%r14), %edx
leaq 0x89c1(%rip), %rsi      # 0x20e9b
movq %rbx, %rdi
xorl %eax, %eax
callq 0x4a30
movl 0x48(%r14), %edx
leaq 0x89bc(%rip), %rsi      # 0x20eab
movq %rbx, %rdi
xorl %eax, %eax
callq 0x4a30
movq 0x58(%r14), %rax
movl 0x20(%rax), %edx
leaq 0x89b6(%rip), %rsi      # 0x20ebd
movq %rbx, %rdi
xorl %eax, %eax
callq 0x4a30
leaq 0x89bc(%rip), %rdi      # 0x20ed4
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 0x8bb9(%rip), %rsi      # 0x21100
movq %rbx, %rdi
xorl %eax, %eax
callq 0x4a30
movl $0x2c, %edi
movq %rbx, %rsi
callq 0x4420
leaq 0x897a(%rip), %rdi      # 0x20edf
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 0x8b1e(%rip), %rsi      # 0x210b8
movq %rbx, %rdi
xorl %eax, %eax
callq 0x4a30
movl $0x2c, %edi
movq %rbx, %rsi
callq 0x4420
leaq 0x8934(%rip), %rdi      # 0x20eec
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 0x18605
movq %r14, %rdi
movq %rbx, %rsi
callq 0x187fa
cmpq $0x0, 0x48(%r14)
je 0x185ff
movl $0x2c, %edi
movq %rbx, %rsi
callq 0x4420
movq 0x48(%r14), %r14
jmp 0x185db
movl $0x5d, %edi
movq %rbx, %rsi
callq 0x4420
movl $0x7d, %edi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x4420