// File: /workspace/github_c_makefile_star2_O0/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 %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x10(%rbp), %rdi
leaq 0xc435(%rip), %rsi      # 0x2ef40
movb $0x0, %al
callq 0x4a00
movq -0x10(%rbp), %rdi
movq -0x8(%rbp), %rdx
leaq 0xc4a6(%rip), %rsi      # 0x2efc7
movb $0x0, %al
callq 0x4a00
movq -0x10(%rbp), %rdi
movq -0x8(%rbp), %rax
movl 0x20(%rax), %edx
leaq 0xc49a(%rip), %rsi      # 0x2efd4
movb $0x0, %al
callq 0x4a00
movq -0x10(%rbp), %rdi
movq -0x8(%rbp), %rax
movl 0x24(%rax), %edx
leaq 0xc48a(%rip), %rsi      # 0x2efdd
movb $0x0, %al
callq 0x4a00
movq -0x10(%rbp), %rdi
movq -0x8(%rbp), %rax
movb 0x2c(%rax), %cl
leaq 0xbffc(%rip), %rdx      # 0x2eb68
leaq 0xbff0(%rip), %rax      # 0x2eb63
testb $0x1, %cl
cmovneq %rax, %rdx
leaq 0xc46a(%rip), %rsi      # 0x2efeb
movb $0x0, %al
callq 0x4a00
movq -0x10(%rbp), %rdi
movq -0x8(%rbp), %rax
movl 0x40(%rax), %edx
leaq 0xc45d(%rip), %rsi      # 0x2eff7
movb $0x0, %al
callq 0x4a00
movq -0x10(%rbp), %rdi
movq -0x8(%rbp), %rax
movl 0x44(%rax), %edx
leaq 0xc456(%rip), %rsi      # 0x2f009
movb $0x0, %al
callq 0x4a00
movq -0x10(%rbp), %rdi
movq -0x8(%rbp), %rax
movl 0x48(%rax), %edx
leaq 0xc44d(%rip), %rsi      # 0x2f019
movb $0x0, %al
callq 0x4a00
movq -0x10(%rbp), %rdi
movq -0x8(%rbp), %rax
movq 0x58(%rax), %rax
movl 0x20(%rax), %edx
leaq 0xc442(%rip), %rsi      # 0x2f02b
movb $0x0, %al
callq 0x4a00
movq -0x10(%rbp), %rdi
leaq 0xc447(%rip), %rsi      # 0x2f042
movb $0x0, %al
callq 0x4a00
movq -0x8(%rbp), %rax
movq -0x10(%rbp), %rdx
movq 0x30(%rax), %rdi
movq 0x38(%rax), %rsi
callq 0x22f20
movq -0x10(%rbp), %rdi
leaq 0xc582(%rip), %rsi      # 0x2f1a4
movb $0x0, %al
callq 0x4a00
movq -0x10(%rbp), %rdi
leaq 0xc419(%rip), %rsi      # 0x2f04d
movb $0x0, %al
callq 0x4a00
movq -0x8(%rbp), %rax
movq -0x10(%rbp), %rsi
movq 0x4c(%rax), %rdi
callq 0x22f60
movq -0x10(%rbp), %rdi
leaq 0xc54d(%rip), %rsi      # 0x2f1a4
movb $0x0, %al
callq 0x4a00
movq -0x10(%rbp), %rdi
leaq 0xc3f1(%rip), %rsi      # 0x2f05a
movb $0x0, %al
callq 0x4a00
movq -0x10(%rbp), %rdi
leaq 0xc314(%rip), %rsi      # 0x2ef8f
movb $0x0, %al
callq 0x4a00
movq -0x8(%rbp), %rax
movq 0x60(%rax), %rax
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x22ccf
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x22fa0
movq -0x18(%rbp), %rax
cmpq $0x0, 0x48(%rax)
je 0x22cbf
movq -0x10(%rbp), %rdi
leaq 0xc4ec(%rip), %rsi      # 0x2f1a4
movb $0x0, %al
callq 0x4a00
jmp 0x22cc1
movq -0x18(%rbp), %rax
movq 0x48(%rax), %rax
movq %rax, -0x18(%rbp)
jmp 0x22c8e
movq -0x10(%rbp), %rdi
leaq 0xc2b7(%rip), %rsi      # 0x2ef91
movb $0x0, %al
callq 0x4a00
movq -0x10(%rbp), %rdi
leaq 0xc491(%rip), %rsi      # 0x2f17d
movb $0x0, %al
callq 0x4a00
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax)