// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x58(%rbp)
movq 0x5b8(%rax), %rdi
callq 0x8640
movq %rax, -0x1c(%rbp)
movq %rdx, -0x14(%rbp)
leaq -0x1c(%rbp), %rdi
callq 0x1a340
movq %rax, -0x24(%rbp)
movl -0xc(%rbp), %eax
movl -0x20(%rbp), %ecx
subl $0x76, %ecx
cmpl %ecx, %eax
jle 0x13491
movl -0x20(%rbp), %eax
subl $0x76, %eax
movl %eax, -0xc(%rbp)
cmpl $0x6e, -0xc(%rbp)
jge 0x1349e
movl $0x6e, -0xc(%rbp)
movq -0x58(%rbp), %rax
movq 0x618(%rax), %rdi
callq 0x1a480
cmpl -0xc(%rbp), %eax
jne 0x134c5
movq -0x58(%rbp), %rax
testb $0x1, 0x628(%rax)
jne 0x134c5
jmp 0x1369f
movq -0x58(%rbp), %rax
movq 0x5b8(%rax), %rdi
movq (%rdi), %rax
callq *0x40(%rax)
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rdi
leaq -0x1c(%rbp), %rsi
callq 0x8500
movq -0x58(%rbp), %rax
movq 0x608(%rax), %rdi
movq (%rdi), %rax
callq *0x90(%rax)
movb %al, %cl
movq -0x58(%rbp), %rax
andb $0x1, %cl
movb %cl, -0x31(%rbp)
movq 0x618(%rax), %rdi
movq (%rdi), %rax
callq *0x60(%rax)
movq -0x58(%rbp), %rax
movq 0x600(%rax), %rdi
movq (%rdi), %rax
callq *0x60(%rax)
movq -0x58(%rbp), %rax
movq 0x608(%rax), %rdi
movq (%rdi), %rax
callq *0x60(%rax)
movq -0x58(%rbp), %rax
movq 0x630(%rax), %rdi
movq (%rdi), %rax
callq *0x60(%rax)
movq -0x58(%rbp), %rax
movq 0x600(%rax), %rax
movq %rax, -0x78(%rbp)
movl -0x24(%rbp), %esi
subl $0xe, %esi
movl -0xc(%rbp), %edx
subl $0x2a, %edx
leaq -0x3c(%rbp), %rdi
callq 0x197b0
movq -0x78(%rbp), %rdi
leaq -0x3c(%rbp), %rsi
callq 0x1a370
movq -0x58(%rbp), %rax
movq 0x608(%rax), %rcx
movq %rcx, -0x70(%rbp)
movq 0x600(%rax), %rdi
callq 0x19c80
movq -0x70(%rbp), %rdi
movq %rax, %rsi
callq 0x1a370
movq -0x58(%rbp), %rax
movq 0x610(%rax), %rcx
movq %rcx, -0x68(%rbp)
movq 0x600(%rax), %rdi
callq 0x19c80
movq -0x68(%rbp), %rdi
movq %rax, %rsi
callq 0x1a370
movq -0x58(%rbp), %rax
movq 0x630(%rax), %rdi
movl -0xc(%rbp), %esi
addl $0x2, %esi
callq 0x1a3d0
movq -0x58(%rbp), %rax
movq 0x630(%rax), %rax
movq %rax, -0x60(%rbp)
movl -0xc(%rbp), %edx
addl $0x2, %edx
leaq -0x4c(%rbp), %rdi
xorl %esi, %esi
callq 0x197b0
leaq -0x24(%rbp), %rdi
leaq -0x4c(%rbp), %rsi
callq 0x1a4a0
movq -0x60(%rbp), %rdi
movq %rax, -0x44(%rbp)
leaq -0x44(%rbp), %rsi
callq 0x1a370
movq -0x58(%rbp), %rax
movb $0x0, 0x628(%rax)
cvtsi2sdl -0xc(%rbp), %xmm0
cvtsi2sdl -0x20(%rbp), %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, 0x620(%rax)
movq 0x618(%rax), %rdi
movl -0xc(%rbp), %esi
callq 0x88d0
movq -0x58(%rbp), %rax
movq 0x618(%rax), %rdi
movq (%rdi), %rax
callq *0x58(%rax)
testb $0x1, -0x31(%rbp)
je 0x13674
movq -0x58(%rbp), %rax
movq 0x608(%rax), %rdi
movq (%rdi), %rax
callq *0x58(%rax)
jmp 0x13685
movq -0x58(%rbp), %rax
movq 0x600(%rax), %rdi
movq (%rdi), %rax
callq *0x58(%rax)
movq -0x58(%rbp), %rax
movq 0x630(%rax), %rdi
movq (%rdi), %rax
callq *0x58(%rax)
movq -0x30(%rbp), %rdi
callq 0x8910
addq $0x80, %rsp
popq %rbp
retq
nopl (%rax,%rax)