// File: /workspace/github_c_makefile_star2_O0/enzo1982[P]smooth/classes/gui/window/backends/xlib/windowxlib.cpp
// Function: smooth::GUI::WindowXLib::WindowXLib(void*)
S::GUI::WindowXLib::WindowXLib(Void *iWindow)
{
	type		= WINDOW_XLIB;

	display		= Backends::BackendXLib::GetDisplay();
	im		= Backends::BackendXLib::GetIM();

	if (display == NIL)
	{
		fprintf(stderr, "Error: Unable to open display.\n");

		exit(EXIT_FAILURE);
	}

	wnd		= None;
	oldwnd		= None;

	ic		= NIL;
	iwnd		= None;

	id		= windowBackends.Add(this);

	minSize		= Size(160, 24);

	maximized	= False;

	fontSize	= Surface().GetSurfaceDPI() / 96.0;

	flags		= 0;

	sysIcon		= NIL;
	sysIconSize	= 0;

	xdndTimeStamp	= CurrentTime;
	acceptDrop	= False;
	enableDropFiles	= False;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x48(%rbp)
xorl %eax, %eax
movl %eax, %esi
callq 0xdc3f0
movq -0x48(%rbp), %rdi
leaq 0xe50fc(%rip), %rax     # 0x206968
movq %rax, (%rdi)
addq $0x180, %rdi            # imm = 0x180
callq 0x5b530
jmp 0x12187d
movq -0x48(%rbp), %rdi
addq $0x188, %rdi            # imm = 0x188
callq 0x59230
jmp 0x12188f
movq -0x48(%rbp), %rdi
addq $0x190, %rdi            # imm = 0x190
callq 0x59230
jmp 0x1218a1
movq -0x48(%rbp), %rdi
addq $0x198, %rdi            # imm = 0x198
callq 0x59230
jmp 0x1218b3
movq -0x48(%rbp), %rdi
addq $0x1a4, %rdi            # imm = 0x1A4
callq 0x5c030
jmp 0x1218c5
movq -0x48(%rbp), %rdi
addq $0x1b8, %rdi            # imm = 0x1B8
movq %rdi, -0x50(%rbp)
xorl %esi, %esi
callq 0x5da90
jmp 0x1218dd
movq -0x48(%rbp), %rdi
addq $0x1d0, %rdi            # imm = 0x1D0
movq %rdi, -0x58(%rbp)
xorl %esi, %esi
callq 0x5da90
jmp 0x1218f5
movq -0x48(%rbp), %rax
movw $0x2, 0x8(%rax)
callq 0x11ef70
movq %rax, -0x60(%rbp)
jmp 0x12190a
movq -0x48(%rbp), %rax
movq -0x60(%rbp), %rcx
movq %rcx, 0x120(%rax)
callq 0x11ef80
movq %rax, -0x68(%rbp)
jmp 0x121924
movq -0x48(%rbp), %rax
movq -0x68(%rbp), %rcx
movq %rcx, 0x128(%rax)
cmpq $0x0, 0x120(%rax)
jne 0x121992
movq 0xe6f5c(%rip), %rax     # 0x2088a0
movq (%rax), %rdi
leaq 0x85050(%rip), %rsi     # 0x1a699e
movb $0x0, %al
callq 0x59a90
movl $0x1, %edi
callq 0x5b780
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
jmp 0x121ad5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
jmp 0x121acc
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
jmp 0x121ac3
movq -0x48(%rbp), %rax
movq $0x0, 0x138(%rax)
movq $0x0, 0x140(%rax)
movq $0x0, 0x148(%rax)
movq $0x0, 0x150(%rax)
movq %rax, -0x28(%rbp)
leaq 0xf2e33(%rip), %rdi     # 0x214800
leaq -0x28(%rbp), %rsi
callq 0x128640
movl %eax, -0x6c(%rbp)
jmp 0x1219db
movq -0x48(%rbp), %rax
movl -0x6c(%rbp), %ecx
movl %ecx, 0x130(%rax)
leaq -0x30(%rbp), %rdi
movl $0xa0, %esi
movl $0x18, %edx
callq 0x59260
jmp 0x1219fd
movq -0x48(%rbp), %rax
movq -0x30(%rbp), %rcx
movq %rcx, 0x190(%rax)
movb $0x0, 0x1a0(%rax)
leaq -0x40(%rbp), %rdi
callq 0x59230
jmp 0x121a1e
xorl %eax, %eax
movl %eax, %esi
leaq -0x38(%rbp), %rdi
leaq -0x40(%rbp), %rdx
callq 0x5b7d0
jmp 0x121a31
leaq -0x38(%rbp), %rdi
callq 0x5d470
movw %ax, -0x6e(%rbp)
jmp 0x121a40
movq -0x48(%rbp), %rax
movw -0x6e(%rbp), %cx
movswl %cx, %ecx
cvtsi2sd %ecx, %xmm0
movsd 0x65a69(%rip), %xmm1    # 0x1874c0
divsd %xmm1, %xmm0
movsd %xmm0, 0x178(%rax)
leaq -0x38(%rbp), %rdi
callq 0x5c380
movq -0x48(%rbp), %rax
movl $0x0, 0x1b4(%rax)
movq $0x0, 0x158(%rax)
movl $0x0, 0x160(%rax)
movq $0x0, 0x168(%rax)
movb $0x0, 0x170(%rax)
movb $0x0, 0x171(%rax)
addq $0x70, %rsp
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
leaq -0x38(%rbp), %rdi
callq 0x5c380
movq -0x58(%rbp), %rdi
callq 0x5df00
movq -0x50(%rbp), %rdi
callq 0x5df00
movq -0x48(%rbp), %rdi
callq 0xdc590
movq -0x18(%rbp), %rdi
callq 0x5b6b0
nopw (%rax,%rax)