// File: /workspace/github_c_makefile_star2_O0/enzo1982[P]smooth/samples/testkey/testkey.cpp
// Function: TestKey::TestKey()
TestKey::TestKey()
{
	Point	 pos;

	pos.x = 85;
	pos.y = 28;

	wnd	= new GUI::Window("TestKey - by Robert Kausch 2000-2020", Point(80, 80), Size(300, 160));
	title	= new Titlebar(TB_MINBUTTON | TB_CLOSEBUTTON);
	text	= new Text("ASCII code: 000\nUnicode character: 00000\n\nScan code: 000\nVirtual keycode: 000", pos);

	Add(wnd);

	wnd->Add(title);
	wnd->Add(text);

	wnd->onEvent.Connect(&TestKey::EventProc, this);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xd0, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0xb0(%rbp)
leaq -0x20(%rbp), %rdi
movq %rdi, -0xa8(%rbp)
xorl %esi, %esi
callq 0x31a0
movq -0xb0(%rbp), %rdi
movq -0xa8(%rbp), %rsi
callq 0x3290
jmp 0x36e1
leaq -0x20(%rbp), %rdi
callq 0x3190
movq -0xb0(%rbp), %rax
leaq 0x53b8(%rip), %rcx      # 0x8ab0
movq %rcx, (%rax)
leaq -0x34(%rbp), %rdi
callq 0x4080
jmp 0x3706
movl $0x55, -0x34(%rbp)
movl $0x1c, -0x30(%rbp)
movl $0x6d8, %edi            # imm = 0x6D8
callq 0x31d0
movq %rax, -0xb8(%rbp)
jmp 0x3727
movb $0x1, -0x61(%rbp)
leaq 0x28ec(%rip), %rsi      # 0x601e
leaq -0x50(%rbp), %rdi
callq 0x32a0
jmp 0x373d
leaq -0x58(%rbp), %rdi
movl $0x50, %edx
movl %edx, %esi
callq 0x40a0
jmp 0x374f
leaq -0x60(%rbp), %rdi
movl $0x12c, %esi            # imm = 0x12C
movl $0xa0, %edx
callq 0x40c0
jmp 0x3764
movq -0xb8(%rbp), %rdi
xorl %eax, %eax
movl %eax, %r8d
leaq -0x50(%rbp), %rsi
leaq -0x58(%rbp), %rdx
leaq -0x60(%rbp), %rcx
callq 0x3110
jmp 0x3783
movq -0xb0(%rbp), %rax
movq -0xb8(%rbp), %rcx
movb $0x0, -0x61(%rbp)
movq %rcx, 0x5b8(%rax)
leaq -0x50(%rbp), %rdi
callq 0x3190
movl $0x5c8, %edi            # imm = 0x5C8
callq 0x31d0
movq %rax, -0xc0(%rbp)
jmp 0x37b8
movq -0xc0(%rbp), %rdi
movl $0x5, %esi
callq 0x30c0
jmp 0x37cb
movq -0xb0(%rbp), %rax
movq -0xc0(%rbp), %rcx
movq %rcx, 0x5c0(%rax)
movl $0x5c0, %edi            # imm = 0x5C0
callq 0x31d0
movq %rax, -0xc8(%rbp)
jmp 0x37f3
movb $0x1, -0x89(%rbp)
leaq 0x2842(%rip), %rsi      # 0x6043
leaq -0x80(%rbp), %rdi
callq 0x32a0
jmp 0x380c
leaq -0x88(%rbp), %rdi
xorl %edx, %edx
movl %edx, %esi
callq 0x40c0
jmp 0x381e
movq -0xc8(%rbp), %rdi
leaq -0x80(%rbp), %rsi
leaq -0x34(%rbp), %rdx
leaq -0x88(%rbp), %rcx
callq 0x3080
jmp 0x383b
movq -0xb0(%rbp), %rax
movq -0xc8(%rbp), %rcx
movb $0x0, -0x89(%rbp)
movq %rcx, 0x5c8(%rax)
leaq -0x80(%rbp), %rdi
callq 0x3190
movq -0xb0(%rbp), %rdi
movq 0x5b8(%rdi), %rsi
movq (%rdi), %rax
movq 0x30(%rax), %rax
callq *%rax
jmp 0x3879
movq -0xb0(%rbp), %rax
movq 0x5b8(%rax), %rdi
movq 0x5c0(%rax), %rsi
movq (%rdi), %rax
movq 0x30(%rax), %rax
callq *%rax
jmp 0x3899
movq -0xb0(%rbp), %rax
movq 0x5b8(%rax), %rdi
movq 0x5c8(%rax), %rsi
movq (%rdi), %rax
movq 0x30(%rax), %rax
callq *%rax
jmp 0x38b9
movq -0xb0(%rbp), %rcx
movq 0x5b8(%rcx), %rdi
addq $0x668, %rdi            # imm = 0x668
leaq 0x11b(%rip), %rax       # 0x39f0
movq %rax, -0xa0(%rbp)
movq $0x0, -0x98(%rbp)
movq -0xa0(%rbp), %rsi
movq -0x98(%rbp), %rdx
callq 0x40e0
jmp 0x38fc
addq $0xd0, %rsp
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
leaq -0x20(%rbp), %rdi
callq 0x3190
jmp 0x39da
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0x39ce
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0x3953
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
leaq -0x50(%rbp), %rdi
callq 0x3190
testb $0x1, -0x61(%rbp)
jne 0x395b
jmp 0x396c
movq -0xb8(%rbp), %rdi
movl $0x6d8, %esi            # imm = 0x6D8
callq 0x3040
jmp 0x39ce
movq -0xc0(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
movl $0x5c8, %esi            # imm = 0x5C8
callq 0x3040
jmp 0x39ce
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0x39b0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
leaq -0x80(%rbp), %rdi
callq 0x3190
testb $0x1, -0x89(%rbp)
jne 0x39bb
jmp 0x39cc
movq -0xc8(%rbp), %rdi
movl $0x5c0, %esi            # imm = 0x5C0
callq 0x3040
jmp 0x39ce
movq -0xb0(%rbp), %rdi
callq 0x31b0
movq -0x28(%rbp), %rdi
callq 0x3100
nopw %cs:(%rax,%rax)