// File: /workspace/github_c_makefile_star2_O0/enzo1982[P]smooth/classes/gui/dialogs/splashscreen.cpp
// Function: smooth::GUI::Dialogs::SplashScreen::SplashScreen(smooth::GUI::Bitmap const&, int)
S::GUI::Dialogs::SplashScreen::SplashScreen(const GUI::Bitmap &iBitmap, Int iTime)
{
	timer	= new System::Timer();
	time	= iTime;

	bitmap	= iBitmap;

	Rect	 workArea    = System::Screen::GetActiveScreenWorkArea();
	Float	 scaleFactor = Surface().GetSurfaceDPI() / 96.0;

	Size	 size = bitmap.GetSize();

	splashscreen = new Window("Splash screen", Point(), size + Size(2, 2));

	splashscreen->SetPosition(workArea.GetPosition() + Point((workArea.GetWidth()  - Math::Round((size.cx + 2) * scaleFactor)) / 2,
								 (workArea.GetHeight() - Math::Round((size.cy + 2) * scaleFactor)) / 2));

	splashscreen->onPaint.Connect(&SplashScreen::SplashPaintProc, this);
	splashscreen->doClose.Connect(&SplashScreen::SplashKillProc, this);

	splashscreen->SetFlags(WF_NORESIZE | WF_TOPMOST);

	Add(splashscreen);

	timer->onInterval.Connect(&SplashScreen::TimerProc, this);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x170, %rsp            # imm = 0x170
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0xe8(%rbp)
callq 0x5bda0
movq -0xe8(%rbp), %rdi
leaq 0x17b6f4(%rip), %rax    # 0x1fdb98
movq %rax, (%rdi)
addq $0x5f0, %rdi            # imm = 0x5F0
movq %rdi, -0xe0(%rbp)
xorl %esi, %esi
callq 0x5d4a0
jmp 0x824be
movl $0x68, %edi
callq 0x59820
movq %rax, -0xf0(%rbp)
jmp 0x824d1
movq -0xf0(%rbp), %rdi
callq 0x59db0
jmp 0x824df
movq -0xe8(%rbp), %rdi
movq -0xf0(%rbp), %rax
movq %rax, 0x600(%rdi)
movl -0x14(%rbp), %eax
movl %eax, 0x5e8(%rdi)
movq -0x10(%rbp), %rsi
addq $0x5f0, %rdi            # imm = 0x5F0
callq 0x5cca0
jmp 0x8250f
callq 0x5c790
movq %rdx, -0x100(%rbp)
movq %rax, -0xf8(%rbp)
jmp 0x82524
movq -0x100(%rbp), %rax
movq -0xf8(%rbp), %rcx
movq %rcx, -0x34(%rbp)
movq %rax, -0x2c(%rbp)
leaq -0x50(%rbp), %rdi
callq 0x59230
jmp 0x82545
xorl %eax, %eax
movl %eax, %esi
leaq -0x48(%rbp), %rdi
leaq -0x50(%rbp), %rdx
callq 0x5b7d0
jmp 0x82558
leaq -0x48(%rbp), %rdi
callq 0x5d470
movw %ax, -0x102(%rbp)
jmp 0x8256a
movw -0x102(%rbp), %ax
cwtl
cvtsi2sd %eax, %xmm0
movsd 0x104f42(%rip), %xmm1   # 0x1874c0
divsd %xmm1, %xmm0
movsd %xmm0, -0x118(%rbp)
leaq -0x48(%rbp), %rdi
callq 0x5c380
movsd -0x118(%rbp), %xmm0
movq -0xe8(%rbp), %rdi
movsd %xmm0, -0x40(%rbp)
addq $0x5f0, %rdi            # imm = 0x5F0
callq 0x5ce60
movq %rax, -0x110(%rbp)
jmp 0x825bc
movq -0x110(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x58(%rbp)
movl $0x6d8, %edi            # imm = 0x6D8
callq 0x59820
movq %rax, -0x120(%rbp)
jmp 0x825dd
movb $0x1, -0x89(%rbp)
leaq 0x105425(%rip), %rsi    # 0x187a10
leaq -0x70(%rbp), %rdi
callq 0x5c1f0
jmp 0x825f6
leaq -0x78(%rbp), %rdi
callq 0x5b530
jmp 0x82601
leaq -0x88(%rbp), %rdi
movl $0x2, %edx
movl %edx, %esi
callq 0x59260
jmp 0x82616
leaq -0x58(%rbp), %rdi
leaq -0x88(%rbp), %rsi
callq 0x590b0
movq %rax, -0x128(%rbp)
jmp 0x8262f
movq -0x120(%rbp), %rdi
movq -0x128(%rbp), %rax
movq %rax, -0x80(%rbp)
xorl %eax, %eax
movl %eax, %r8d
leaq -0x70(%rbp), %rsi
leaq -0x78(%rbp), %rdx
leaq -0x80(%rbp), %rcx
callq 0x5b5d0
jmp 0x82659
movq -0xe8(%rbp), %rax
movq -0x120(%rbp), %rcx
movb $0x0, -0x89(%rbp)
movq %rcx, 0x5f8(%rax)
leaq -0x70(%rbp), %rdi
callq 0x5df00
movq -0xe8(%rbp), %rax
movq 0x5f8(%rax), %rax
movq %rax, -0x138(%rbp)
leaq -0x34(%rbp), %rdi
callq 0x5d510
movq %rax, -0x130(%rbp)
jmp 0x826a5
movq -0x130(%rbp), %rax
movq %rax, -0x9c(%rbp)
leaq -0x34(%rbp), %rdi
callq 0x5a5a0
movl %eax, -0x13c(%rbp)
jmp 0x826c4
movl -0x13c(%rbp), %eax
cltq
movq %rax, -0x150(%rbp)
movl -0x58(%rbp), %eax
addl $0x2, %eax
cvtsi2sd %eax, %xmm0
movsd -0x40(%rbp), %xmm1
mulsd %xmm1, %xmm0
callq 0x5a970
movq %rax, -0x148(%rbp)
jmp 0x826f4
movq -0x148(%rbp), %rcx
movq -0x150(%rbp), %rax
subq %rcx, %rax
movq %rax, %rcx
shrq $0x3f, %rcx
addq %rcx, %rax
shrq %rax
movl %eax, -0x158(%rbp)
leaq -0x34(%rbp), %rdi
callq 0x591a0
movl %eax, -0x154(%rbp)
jmp 0x82729
movl -0x154(%rbp), %eax
cltq
movq %rax, -0x168(%rbp)
movl -0x54(%rbp), %eax
addl $0x2, %eax
cvtsi2sd %eax, %xmm0
movsd -0x40(%rbp), %xmm1
mulsd %xmm1, %xmm0
callq 0x5a970
movq %rax, -0x160(%rbp)
jmp 0x82759
movl -0x158(%rbp), %esi
movq -0x160(%rbp), %rcx
movq -0x168(%rbp), %rax
subq %rcx, %rax
movq %rax, %rcx
shrq $0x3f, %rcx
addq %rcx, %rax
shrq %rax
movl %eax, %edx
leaq -0xa4(%rbp), %rdi
callq 0x5c2c0
jmp 0x8278d
leaq -0x9c(%rbp), %rdi
leaq -0xa4(%rbp), %rsi
callq 0x5ca20
movq %rax, -0x170(%rbp)
jmp 0x827a9
movq -0x138(%rbp), %rdi
movq -0x170(%rbp), %rax
movq %rax, -0x94(%rbp)
leaq -0x94(%rbp), %rsi
callq 0x5d8c0
jmp 0x827cc
movq -0xe8(%rbp), %rcx
movq 0x5f8(%rcx), %rdi
addq $0x648, %rdi            # imm = 0x648
leaq 0x1a8(%rip), %rax       # 0x82990
movq %rax, -0xb8(%rbp)
movq $0x0, -0xb0(%rbp)
movq -0xb8(%rbp), %rsi
movq -0xb0(%rbp), %rdx
callq 0x82c10
jmp 0x8280f
movq -0xe8(%rbp), %rcx
movq 0x5f8(%rcx), %rdi
addq $0x688, %rdi            # imm = 0x688
leaq 0x245(%rip), %rax       # 0x82a70
movq %rax, -0xc8(%rbp)
movq $0x0, -0xc0(%rbp)
movq -0xc8(%rbp), %rsi
movq -0xc0(%rbp), %rdx
callq 0x82d50
jmp 0x82852
movq -0xe8(%rbp), %rax
movq 0x5f8(%rax), %rdi
movl $0x6, %esi
callq 0x59730
jmp 0x8286c
movq -0xe8(%rbp), %rdi
movq 0x5f8(%rdi), %rsi
movq (%rdi), %rax
movq 0x30(%rax), %rax
callq *%rax
jmp 0x82885
movq -0xe8(%rbp), %rcx
movq 0x600(%rcx), %rdi
addq $0x48, %rdi
leaq 0x202(%rip), %rax       # 0x82aa0
movq %rax, -0xd8(%rbp)
movq $0x0, -0xd0(%rbp)
movq -0xd8(%rbp), %rsi
movq -0xd0(%rbp), %rdx
callq 0x82c10
jmp 0x828c5
addq $0x170, %rsp            # imm = 0x170
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
jmp 0x82970
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
jmp 0x82964
movq -0xf0(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
movl $0x68, %esi
callq 0x595b0
jmp 0x82964
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
leaq -0x48(%rbp), %rdi
callq 0x5c380
jmp 0x82964
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
jmp 0x82946
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
leaq -0x70(%rbp), %rdi
callq 0x5df00
testb $0x1, -0x89(%rbp)
jne 0x82951
jmp 0x82962
movq -0x120(%rbp), %rdi
movl $0x6d8, %esi            # imm = 0x6D8
callq 0x595b0
jmp 0x82964
movq -0xe0(%rbp), %rdi
callq 0x5de40
movq -0xe8(%rbp), %rdi
callq 0x59d10
movq -0x20(%rbp), %rdi
callq 0x5b6b0
nopw %cs:(%rax,%rax)