// File: /workspace/github_c_makefile_star2_O3/baskerville[P]bspwm/src/subscribe.c
// Function: print_report
int print_report(FILE *stream)
{
	fprintf(stream, "%s", status_prefix);
	for (monitor_t *m = mon_head; m != NULL; m = m->next) {
		fprintf(stream, "%c%s", (mon == m ? 'M' : 'm'), m->name);
		for (desktop_t *d = m->desk_head; d != NULL; d = d->next) {
			char c = (is_urgent(d) ? 'u' : (d->root == NULL ? 'f' : 'o'));
			if (m->desk == d) {
				c = toupper(c);
			}
			fprintf(stream, ":%c%s", c, d->name);
		}
		if (m->desk != NULL) {
			fprintf(stream, ":L%c", LAYOUT_CHR(m->desk->layout));
			if (m->desk->focus != NULL) {
				node_t *n = m->desk->focus;
				if (n->client != NULL) {
					fprintf(stream, ":T%c", STATE_CHR(n->client->state));
				} else {
					fprintf(stream, ":T@");
				}
				int i = 0;
				char flags[5];
				if (n->sticky) {
					flags[i++] = 'S';
				}
				if (n->private) {
					flags[i++] = 'P';
				}
				if (n->locked) {
					flags[i++] = 'L';
				}
				if (n->marked) {
					flags[i++] = 'M';
				}
				flags[i] = '\0';
				fprintf(stream, ":G%s", flags);
			}
		}
		if (m != mon_tail) {
			fprintf(stream, "%s", ":");
		}
	}
	fprintf(stream, "%s", "\n");
	return fflush(stream);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0xb3e5(%rip), %rdi      # 0x298a0
movq %rbx, %rsi
callq 0x4670
leaq 0xb23e(%rip), %rax      # 0x29708
movq (%rax), %r14
testq %r14, %r14
je 0x1e692
leaq 0xb223(%rip), %r13      # 0x29700
leaq 0x30e1(%rip), %rbp      # 0x215c5
xorl %edx, %edx
leaq 0xb223(%rip), %rax      # 0x29710
cmpq %r14, (%rax)
setne %dl
shll $0x5, %edx
orl $0x4d, %edx
movq %rbx, %rdi
leaq 0x30c3(%rip), %rsi      # 0x215c6
movq %r14, %rcx
xorl %eax, %eax
callq 0x4a30
movq 0x60(%r14), %r12
testq %r12, %r12
je 0x1e569
movq %r12, %rdi
callq 0x891e
movb $0x75, %r15b
testb %al, %al
jne 0x1e538
xorl %eax, %eax
cmpq $0x0, 0x30(%r12)
setne %al
leal (%rax,%rax,8), %r15d
addl $0x66, %r15d
cmpq %r12, 0x58(%r14)
jne 0x1e54e
callq 0x4400
movq (%rax), %rax
movzbl %r15b, %ecx
movb (%rax,%rcx,4), %r15b
movsbl %r15b, %edx
movq %rbx, %rdi
movq %rbp, %rsi
movq %r12, %rcx
xorl %eax, %eax
callq 0x4a30
movq 0x48(%r12), %r12
jmp 0x1e511
movq 0x58(%r14), %rax
testq %rax, %rax
je 0x1e670
cmpl $0x0, 0x24(%rax)
movl $0x4d, %edx
movl $0x54, %eax
cmovel %eax, %edx
movq %rbx, %rdi
leaq 0x303a(%rip), %rsi      # 0x215cb
xorl %eax, %eax
callq 0x4a30
movq 0x58(%r14), %rax
movq 0x38(%rax), %r12
testq %r12, %r12
je 0x1e670
movq 0x48(%r12), %rax
testq %rax, %rax
je 0x1e5c9
movl 0x308(%rax), %eax
testl %eax, %eax
je 0x1e5e4
cmpl $0x2, %eax
jne 0x1e5eb
movl $0x46, %edx
jmp 0x1e5fb
movl $0x3, %esi
movl $0x1, %edx
leaq 0x2ffb(%rip), %rdi      # 0x215d5
movq %rbx, %rcx
callq 0x49e0
jmp 0x1e60c
movl $0x54, %edx
jmp 0x1e5fb
cmpl $0x3, %eax
movl $0x50, %edx
movl $0x3d, %eax
cmovel %eax, %edx
movq %rbx, %rdi
leaq 0x2fcb(%rip), %rsi      # 0x215d0
xorl %eax, %eax
callq 0x4a30
xorl %eax, %eax
cmpb $0x1, 0x26(%r12)
jne 0x1e620
movb $0x53, 0x3(%rsp)
movl $0x1, %eax
cmpb $0x1, 0x27(%r12)
jne 0x1e631
movl %eax, %ecx
incl %eax
movb $0x50, 0x3(%rsp,%rcx)
cmpb $0x1, 0x28(%r12)
jne 0x1e642
movl %eax, %ecx
incl %eax
movb $0x4c, 0x3(%rsp,%rcx)
cmpb $0x1, 0x29(%r12)
jne 0x1e653
movl %eax, %ecx
incl %eax
movb $0x4d, 0x3(%rsp,%rcx)
movl %eax, %eax
movb $0x0, 0x3(%rsp,%rax)
movq %rbx, %rdi
leaq 0x2f75(%rip), %rsi      # 0x215d9
leaq 0x3(%rsp), %rdx
xorl %eax, %eax
callq 0x4a30
cmpq (%r13), %r14
je 0x1e685
leaq 0x2919(%rip), %rdi      # 0x20f96
movq %rbx, %rsi
callq 0x4670
movq 0x78(%r14), %r14
testq %r14, %r14
jne 0x1e4e4
leaq 0x2ebe(%rip), %rdi      # 0x21557
movq %rbx, %rsi
callq 0x4670
movq %rbx, %rdi
callq 0x4b00
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq