// File: /workspace/github_c_makefile_star2_O3/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, %r14
movq %rdi, %rbx
movl (%rsi), %eax
cmpq $0x4, %rax
ja 0x5337
leaq 0x2f90(%rip), %rcx      # 0x8004
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x8(%r14), %rax
cmpq %rax, 0x6b8(%rbx)
je 0x5124
movq 0x5b8(%rbx), %r15
leaq 0x2fb2(%rip), %rsi      # 0x804e
leaq 0x20(%rsp), %rdi
callq 0x4340
leaq 0x2fb3(%rip), %rsi      # 0x8060
leaq 0x8(%rsp), %rdi
callq 0x4340
leaq 0x20(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x40a0
movq %rax, %r12
leaq 0x2fe3(%rip), %rsi      # 0x80b3
leaq 0x38(%rsp), %rdi
callq 0x4340
leaq 0x38(%rsp), %rsi
movq %r12, %rdi
callq 0x40a0
leaq 0x10(%r14), %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(%r14), %rax
movq %rax, 0x6b8(%rbx)
jmp 0x5337
movq 0x5b8(%rbx), %r15
leaq 0x2f10(%rip), %rsi      # 0x804e
leaq 0x20(%rsp), %rdi
callq 0x4340
leaq 0x2f11(%rip), %rsi      # 0x8060
leaq 0x8(%rsp), %rdi
callq 0x4340
leaq 0x20(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x40a0
movq (%r15), %rcx
movq %r15, %rdi
movq %rax, %rsi
callq *0xa0(%rcx)
jmp 0x5323
movq 0x5d8(%rbx), %r15
leaq 0x2f38(%rip), %rsi      # 0x80c2
leaq 0x20(%rsp), %rdi
callq 0x4340
movslq 0x30(%r14), %rsi
leaq 0x8(%rsp), %rdi
callq 0x4110
leaq 0x20(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x40a0
movq %rax, %r12
leaq 0x2f04(%rip), %rsi      # 0x80bf
leaq 0x38(%rsp), %rdi
callq 0x4340
leaq 0x38(%rsp), %rsi
movq %r12, %rdi
callq 0x40a0
movq %rax, %r12
movslq 0x34(%r14), %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 0x530f
movq 0x5d8(%rbx), %r15
leaq 0x2ebb(%rip), %rsi      # 0x80cd
leaq 0x20(%rsp), %rdi
callq 0x4340
movslq 0x38(%r14), %rsi
leaq 0x8(%rsp), %rdi
callq 0x4110
leaq 0x20(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x40a0
movq %rax, %r12
leaq 0x2e7c(%rip), %rsi      # 0x80bf
leaq 0x38(%rsp), %rdi
callq 0x4340
leaq 0x38(%rsp), %rsi
movq %r12, %rdi
callq 0x40a0
movq %rax, %r12
movslq 0x3c(%r14), %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 0x530f
movq 0x5d8(%rbx), %r15
leaq 0x2e1d(%rip), %rsi      # 0x80b7
leaq 0x20(%rsp), %rdi
callq 0x4340
movslq 0x28(%r14), %rsi
leaq 0x8(%rsp), %rdi
callq 0x4110
leaq 0x20(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x40a0
movq %rax, %r12
leaq 0x2df4(%rip), %rsi      # 0x80bf
leaq 0x38(%rsp), %rdi
callq 0x4340
leaq 0x38(%rsp), %rsi
movq %r12, %rdi
callq 0x40a0
movq %rax, %r12
movslq 0x2c(%r14), %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
movups (%r14), %xmm0
movups %xmm0, 0x618(%rbx)
leaq 0x628(%rbx), %rdi
leaq 0x10(%r14), %rsi
callq 0x4260
movups 0x28(%r14), %xmm0
movups 0x34(%r14), %xmm1
movups %xmm0, 0x640(%rbx)
movups %xmm1, 0x64c(%rbx)
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
jmp 0x53c1
jmp 0x53c1
jmp 0x539a
jmp 0x539f
jmp 0x539f
jmp 0x539f
jmp 0x539f
jmp 0x539f
jmp 0x539f
jmp 0x53c1
jmp 0x53c1
jmp 0x53c1
jmp 0x53c1
jmp 0x53c1
jmp 0x53c1
jmp 0x539a
jmp 0x539a
jmp 0x539a
movq %rax, %rbx
jmp 0x53ce
movq %rax, %rbx
jmp 0x53b5
jmp 0x53a8
jmp 0x53a8
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0x4200
leaq 0x38(%rsp), %rdi
callq 0x4200
jmp 0x53c4
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x4200
leaq 0x20(%rsp), %rdi
callq 0x4200
movq %rbx, %rdi
callq 0x4150