// File: /workspace/github_c_makefile_star2_O2/enzo1982[P]smooth/tools/designer/designer.cpp
// Function: Designer::ReportStatus(Designer_Status)
void Designer::ReportStatus(Designer_Status stat)
{
	switch (stat.event)
	{
		case STATUS_EVENT_REPORT_NAME:
			if (active_dlg != stat.dlg) wnd->SetText(String("smooth Designer v").Append(SMOOTH_VERSION).Append(" - ").Append(stat.currdlgname));

			active_dlg = stat.dlg;

			break;
		case STATUS_EVENT_REPORT_MOUSEPOSITION:
			statusbar->SetText(String("Mouse: ").Append(String::FromInt(stat.mousex)).Append(", ").Append(String::FromInt(stat.mousey)));

			break;
		case STATUS_EVENT_REPORT_WINDOWPOSITION:
			statusbar->SetText(String("Position: ").Append(String::FromInt(stat.wndposx)).Append(", ").Append(String::FromInt(stat.wndposy)));

			break;
		case STATUS_EVENT_REPORT_WINDOWSIZE:
			statusbar->SetText(String("Size: ").Append(String::FromInt(stat.wndsizex)).Append(", ").Append(String::FromInt(stat.wndsizey)));

			break;
		case STATUS_EVENT_REPORT_QUIT:
			wnd->SetText(String("smooth Designer v").Append(SMOOTH_VERSION));

			break;
	}

	status = stat;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movl (%rsi), %eax
cmpq $0x4, %rax
ja 0x5343
leaq 0x1f84(%rip), %rcx      # 0x7004
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x8(%rbx), %rax
cmpq %rax, 0x6b8(%r14)
je 0x5130
movq 0x5b8(%r14), %r15
leaq 0x1fa6(%rip), %rsi      # 0x704e
leaq 0x20(%rsp), %rdi
callq 0x4350
leaq 0x1fa7(%rip), %rsi      # 0x7060
leaq 0x8(%rsp), %rdi
callq 0x4350
leaq 0x20(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x40a0
movq %rax, %r12
leaq 0x1fd7(%rip), %rsi      # 0x70b3
leaq 0x38(%rsp), %rdi
callq 0x4350
leaq 0x38(%rsp), %rsi
movq %r12, %rdi
callq 0x40a0
leaq 0x10(%rbx), %rsi
movq %rax, %rdi
callq 0x40a0
movq (%r15), %rcx
movq %r15, %rdi
movq %rax, %rsi
callq *0xa0(%rcx)
leaq 0x38(%rsp), %rdi
callq 0x4200
leaq 0x8(%rsp), %rdi
callq 0x4200
leaq 0x20(%rsp), %rdi
callq 0x4200
movq 0x8(%rbx), %rax
movq %rax, 0x6b8(%r14)
jmp 0x5343
movq 0x5b8(%r14), %r15
leaq 0x1f04(%rip), %rsi      # 0x704e
leaq 0x20(%rsp), %rdi
callq 0x4350
leaq 0x1f05(%rip), %rsi      # 0x7060
leaq 0x8(%rsp), %rdi
callq 0x4350
leaq 0x20(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x40a0
movq (%r15), %rcx
movq %r15, %rdi
movq %rax, %rsi
callq *0xa0(%rcx)
jmp 0x532f
movq 0x5d8(%r14), %r15
leaq 0x1f2c(%rip), %rsi      # 0x70c2
leaq 0x20(%rsp), %rdi
callq 0x4350
movslq 0x30(%rbx), %rsi
leaq 0x8(%rsp), %rdi
callq 0x4110
leaq 0x20(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x40a0
movq %rax, %r12
leaq 0x1ef8(%rip), %rsi      # 0x70bf
leaq 0x38(%rsp), %rdi
callq 0x4350
leaq 0x38(%rsp), %rsi
movq %r12, %rdi
callq 0x40a0
movq %rax, %r12
movslq 0x34(%rbx), %rsi
leaq 0x50(%rsp), %rdi
callq 0x4110
leaq 0x50(%rsp), %rsi
movq %r12, %rdi
callq 0x40a0
movq (%r15), %rcx
movq %r15, %rdi
movq %rax, %rsi
callq *0xa0(%rcx)
jmp 0x531b
movq 0x5d8(%r14), %r15
leaq 0x1eaf(%rip), %rsi      # 0x70cd
leaq 0x20(%rsp), %rdi
callq 0x4350
movslq 0x38(%rbx), %rsi
leaq 0x8(%rsp), %rdi
callq 0x4110
leaq 0x20(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x40a0
movq %rax, %r12
leaq 0x1e70(%rip), %rsi      # 0x70bf
leaq 0x38(%rsp), %rdi
callq 0x4350
leaq 0x38(%rsp), %rsi
movq %r12, %rdi
callq 0x40a0
movq %rax, %r12
movslq 0x3c(%rbx), %rsi
leaq 0x50(%rsp), %rdi
callq 0x4110
leaq 0x50(%rsp), %rsi
movq %r12, %rdi
callq 0x40a0
movq (%r15), %rcx
movq %r15, %rdi
movq %rax, %rsi
callq *0xa0(%rcx)
jmp 0x531b
movq 0x5d8(%r14), %r15
leaq 0x1e11(%rip), %rsi      # 0x70b7
leaq 0x20(%rsp), %rdi
callq 0x4350
movslq 0x28(%rbx), %rsi
leaq 0x8(%rsp), %rdi
callq 0x4110
leaq 0x20(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x40a0
movq %rax, %r12
leaq 0x1de8(%rip), %rsi      # 0x70bf
leaq 0x38(%rsp), %rdi
callq 0x4350
leaq 0x38(%rsp), %rsi
movq %r12, %rdi
callq 0x40a0
movq %rax, %r12
movslq 0x2c(%rbx), %rsi
leaq 0x50(%rsp), %rdi
callq 0x4110
leaq 0x50(%rsp), %rsi
movq %r12, %rdi
callq 0x40a0
movq (%r15), %rcx
movq %r15, %rdi
movq %rax, %rsi
callq *0xa0(%rcx)
leaq 0x50(%rsp), %rdi
callq 0x4200
leaq 0x38(%rsp), %rdi
callq 0x4200
leaq 0x8(%rsp), %rdi
callq 0x4200
leaq 0x20(%rsp), %rdi
callq 0x4200
addq $0x618, %r14            # imm = 0x618
movq %r14, %rdi
movq %rbx, %rsi
callq 0x5606
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
jmp 0x53ac
jmp 0x53ac
jmp 0x5385
jmp 0x538a
jmp 0x538a
jmp 0x538a
jmp 0x538a
jmp 0x538a
jmp 0x538a
jmp 0x53ac
jmp 0x53ac
jmp 0x53ac
jmp 0x53ac
jmp 0x53ac
jmp 0x53ac
jmp 0x5385
jmp 0x5385
jmp 0x5385
movq %rax, %rbx
jmp 0x53b9
movq %rax, %rbx
jmp 0x53a0
jmp 0x5393
jmp 0x5393
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0x4200
leaq 0x38(%rsp), %rdi
callq 0x4200
jmp 0x53af
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x4200
leaq 0x20(%rsp), %rdi
callq 0x4200
movq %rbx, %rdi
callq 0x4150
nop