// File: /workspace/github_c_makefile_star2_O1/enzo1982[P]smooth/tools/translator/translator.cpp
// Function: Translator::OnDragSplitter(int)
Void Translator::OnDragSplitter(Int splitterPos)
{
	Rect	 clientRect = wnd->GetClientRect();
	Size	 clientSize = clientRect.GetSize();

	if (splitterPos > clientSize.cy - 118) splitterPos = clientSize.cy - 118;
	if (splitterPos <		  110) splitterPos =		     110;

	if (splitter->GetPos() == splitterPos && !updateSplitter) return;

	Surface	*surface = wnd->GetDrawSurface();

	surface->StartPaint(clientRect);

	Bool	 filtered = list_filtered->IsVisible();

	splitter->Hide();
	list_entries->Hide();
	list_filtered->Hide();
	layer_edit->Hide();

	list_entries->SetSize(Size(clientSize.cx - 14, splitterPos - 42));
	list_filtered->SetSize(list_entries->GetSize());

	droparea->SetSize(list_entries->GetSize());

	layer_edit->SetY(splitterPos + 2);
	layer_edit->SetSize(clientSize - Size(0, splitterPos + 2));

	updateSplitter = False;
	splitFactor    = Float(splitterPos) / clientSize.cy;

	splitter->SetPos(splitterPos);
	splitter->Show();

	if (filtered) list_filtered->Show();
	else	      list_entries->Show();

	layer_edit->Show();

	surface->EndPaint();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %esi, %ebp
movq %rdi, %rbx
movq 0x5b8(%rdi), %rdi
callq 0x7630
movq %rax, 0x10(%rsp)
movq %rdx, 0x18(%rsp)
movl 0x1c(%rsp), %esi
subl 0x14(%rsp), %esi
leal -0x76(%rsi), %ecx
cmpl %ebp, %ecx
cmovll %ecx, %ebp
cmpl $0x6f, %ebp
movl $0x6e, %r15d
cmovgel %ebp, %r15d
movq 0x618(%rbx), %rcx
cmpl %r15d, 0x5c8(%rcx)
jne 0xcb23
cmpb $0x1, 0x628(%rbx)
jne 0xccf0
subl %eax, %edx
movq 0x5b8(%rbx), %rdi
movq (%rdi), %rax
movq %rsi, 0x28(%rsp)
movq %rdx, %r14
movq %rdx, 0x20(%rsp)
callq *0x40(%rax)
movq %rax, 0x40(%rsp)
leaq 0x10(%rsp), %rsi
movq %rax, %rdi
callq 0x74f0
leaq 0x608(%rbx), %rax
movq %rax, 0x38(%rsp)
movq 0x608(%rbx), %rdi
movq (%rdi), %rax
callq *0x90(%rax)
movb %al, 0x7(%rsp)
movq 0x618(%rbx), %rdi
movq (%rdi), %rax
callq *0x60(%rax)
leaq 0x600(%rbx), %rax
movq %rax, 0x30(%rsp)
movq 0x600(%rbx), %rdi
movq (%rdi), %rax
callq *0x60(%rax)
movq 0x608(%rbx), %rdi
movq (%rdi), %rax
callq *0x60(%rax)
movq 0x630(%rbx), %rdi
movq (%rdi), %rax
callq *0x60(%rax)
movq 0x600(%rbx), %rdi
leal -0xe(%r14), %eax
leal -0x2a(%r15), %ecx
leaq 0x8(%rsp), %rbp
movl %eax, (%rbp)
movl %ecx, 0x4(%rbp)
movl $0xa8, %r13d
leaq (%rdi,%r13), %rsi
movq (%rdi), %rax
movq %rbp, %rdx
callq *0x150(%rax)
movq 0x608(%rbx), %rdi
movl $0xb0, %r14d
movq 0x600(%rbx), %rdx
addq %r14, %rdx
leaq (%rdi,%r13), %rsi
movq (%rdi), %rax
callq *0x150(%rax)
movq 0x610(%rbx), %rdi
movq 0x600(%rbx), %rdx
addq %r14, %rdx
leaq (%rdi,%r13), %rsi
movq (%rdi), %rax
callq *0x150(%rax)
movq 0x630(%rbx), %rdi
leal 0x2(%r15), %r12d
movl 0xa8(%rdi), %eax
movl %eax, (%rbp)
movl %r12d, 0x4(%rbp)
addq %rdi, %r14
movq (%rdi), %rax
leaq 0x8(%rsp), %rbp
movq %rbp, %rsi
movq %r14, %rdx
callq *0x150(%rax)
movq 0x630(%rbx), %rdi
movq 0x28(%rsp), %r14
movl %r14d, %eax
subl %r12d, %eax
shlq $0x20, %rax
movl 0x20(%rsp), %ecx
orq %rax, %rcx
movq %rcx, (%rbp)
addq %rdi, %r13
movq (%rdi), %rax
leaq 0x8(%rsp), %rdx
movq %r13, %rsi
callq *0x150(%rax)
cvtsi2sd %r15d, %xmm0
cvtsi2sd %r14d, %xmm1
movb $0x0, 0x628(%rbx)
divsd %xmm1, %xmm0
movsd %xmm0, 0x620(%rbx)
movq 0x618(%rbx), %rdi
movl %r15d, %esi
callq 0x78c0
movq 0x618(%rbx), %rdi
movq (%rdi), %rax
callq *0x58(%rax)
cmpb $0x0, 0x7(%rsp)
movq 0x30(%rsp), %rax
cmovneq 0x38(%rsp), %rax
movq (%rax), %rdi
movq (%rdi), %rax
callq *0x58(%rax)
movq 0x630(%rbx), %rdi
movq (%rdi), %rax
callq *0x58(%rax)
movq 0x40(%rsp), %rdi
callq 0x7900
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop