// File: /workspace/github_c_makefile_star2_O2/enzo1982[P]smooth/samples/test/test.cpp
// Function: Test::OnArrowsValueChange(int)
Void Test::OnArrowsValueChange(Int value)
{
	text_arrows_value->SetText(String::FromInt(value));

	Surface	*surface = mainWnd->GetDrawSurface();

	/* Boxes.
	 */
	surface->Box(Rect(Point(250, 150), Size(10, 10)), Color(255, 0, 0), Rect::Filled);
	surface->Box(Rect(Point(250, 170), Size(10, 10)), Color(255, 0, 0), Rect::Dotted);
	surface->Box(Rect(Point(250, 190), Size(10, 10)), Color(255, 0, 0), Rect::Outlined);

	/* Gradient.
	 */
	surface->Gradient(Rect(Point(300, 150), Size(100, 10)), Color(255, 0, 0), Color(0, 0, 255), OR_HORZ);

	/* Horizontal & vertical lines.
	 */
	surface->Line(Point(300, 170), Point(400, 170), Color(255, 0, 0));
	surface->Line(Point(400, 180), Point(300, 180), Color(255, 0, 0));
	surface->Line(Point(300, 190), Point(300, 200), Color(255, 0, 0));
	surface->Line(Point(290, 200), Point(290, 190), Color(255, 0, 0));

	/* Diagonal lines.
	 */
	surface->Line(Point(310, 190), Point(320, 200), Color(255, 0, 0));
	surface->Line(Point(330, 200), Point(340, 190), Color(255, 0, 0));
	surface->Line(Point(360, 200), Point(350, 190), Color(255, 0, 0));
	surface->Line(Point(380, 190), Point(370, 200), Color(255, 0, 0));

	/* Single pixel.
	 */
	surface->SetPixel(Point(399, 190), Color(255, 0, 0));
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x40, %rsp
movq %rdi, %rbx
movq 0x620(%rdi), %r14
movslq %esi, %rsi
leaq 0x20(%rsp), %r15
movq %r15, %rdi
callq 0x4160
movq (%r14), %rax
movq %r14, %rdi
movq %r15, %rsi
callq *0xa0(%rax)
leaq 0x20(%rsp), %r14
movq %r14, %rdi
callq 0x4260
movq 0x5b8(%rbx), %rdi
movq (%rdi), %rax
callq *0x40(%rax)
movq %rax, %rbx
movl $0xff, %r13d
movq %rsp, %r15
movq %r13, 0x8(%r15)
andl $0x0, (%r15)
movaps 0x212b(%rip), %xmm0     # 0x8010
movaps %xmm0, (%r14)
movq 0x50b0(%rip), %rax      # 0xafa0
movl (%rax), %ecx
leaq 0x10(%rsp), %r14
andq $0x0, (%r14)
leaq 0x20(%rsp), %r12
movq %rbx, %rdi
movq %r12, %rsi
movq %r15, %rdx
movq %r14, %r8
callq 0x41e0
movaps 0x2108(%rip), %xmm0     # 0x8020
movaps %xmm0, (%r12)
movq %r13, 0x8(%r15)
andl $0x0, (%r15)
movq 0x508c(%rip), %rax      # 0xafb8
movl (%rax), %ecx
andq $0x0, (%r14)
leaq 0x20(%rsp), %r14
movq %rsp, %r15
leaq 0x10(%rsp), %r12
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %r12, %r8
callq 0x41e0
movaps 0x20d9(%rip), %xmm0     # 0x8030
movaps %xmm0, (%r14)
movq %r13, 0x8(%r15)
andl $0x0, (%r15)
movq 0x507e(%rip), %rax      # 0xafe8
movl (%rax), %ecx
andq $0x0, (%r12)
leaq 0x20(%rsp), %r14
movq %rsp, %r15
leaq 0x10(%rsp), %r12
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %r12, %r8
callq 0x41e0
movaps 0x20aa(%rip), %xmm0     # 0x8040
movaps %xmm0, (%r14)
movq %r13, 0x8(%r15)
andl $0x0, (%r15)
movq $0xff0000, 0x8(%r12)    # imm = 0xFF0000
andl $0x0, (%r12)
leaq 0x20(%rsp), %r14
movq %rsp, %r15
leaq 0x10(%rsp), %r12
pushq $0x1
popq %r8
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %r12, %rcx
callq 0x4450
movabsq $0xaa0000012c, %rax     # imm = 0xAA0000012C
movq %rax, (%r15)
movabsq $0xaa00000190, %rax     # imm = 0xAA00000190
movq %rax, (%r12)
movq %r13, 0x8(%r14)
andl $0x0, (%r14)
movq %rsp, %r14
leaq 0x10(%rsp), %r15
leaq 0x20(%rsp), %r12
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %r12, %rcx
callq 0x4240
movabsq $0xb400000190, %rax     # imm = 0xB400000190
movq %rax, (%r14)
movabsq $0xb40000012c, %rax     # imm = 0xB40000012C
movq %rax, (%r15)
movq %r13, 0x8(%r12)
andl $0x0, (%r12)
movq %rsp, %r14
leaq 0x10(%rsp), %r15
leaq 0x20(%rsp), %r12
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %r12, %rcx
callq 0x4240
movabsq $0xbe0000012c, %rax     # imm = 0xBE0000012C
movq %rax, (%r14)
movabsq $0xc80000012c, %rax     # imm = 0xC80000012C
movq %rax, (%r15)
movq %r13, 0x8(%r12)
andl $0x0, (%r12)
movq %rsp, %r14
leaq 0x10(%rsp), %r15
leaq 0x20(%rsp), %r12
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %r12, %rcx
callq 0x4240
movabsq $0xc800000122, %rax     # imm = 0xC800000122
movq %rax, (%r14)
movabsq $0xbe00000122, %rax     # imm = 0xBE00000122
movq %rax, (%r15)
movq %r13, 0x8(%r12)
andl $0x0, (%r12)
movq %rsp, %r14
leaq 0x10(%rsp), %r15
leaq 0x20(%rsp), %r12
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %r12, %rcx
callq 0x4240
movabsq $0xbe00000136, %rax     # imm = 0xBE00000136
movq %rax, (%r14)
movabsq $0xc800000140, %rax     # imm = 0xC800000140
movq %rax, (%r15)
movq %r13, 0x8(%r12)
andl $0x0, (%r12)
movq %rsp, %r14
leaq 0x10(%rsp), %r15
leaq 0x20(%rsp), %r12
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %r12, %rcx
callq 0x4240
movabsq $0xc80000014a, %rax     # imm = 0xC80000014A
movq %rax, (%r14)
movabsq $0xbe00000154, %rax     # imm = 0xBE00000154
movq %rax, (%r15)
movq %r13, 0x8(%r12)
andl $0x0, (%r12)
movq %rsp, %r14
leaq 0x10(%rsp), %r15
leaq 0x20(%rsp), %r12
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %r12, %rcx
callq 0x4240
movabsq $0xc800000168, %rax     # imm = 0xC800000168
movq %rax, (%r14)
movabsq $0xbe0000015e, %rax     # imm = 0xBE0000015E
movq %rax, (%r15)
movq %r13, 0x8(%r12)
andl $0x0, (%r12)
movq %rsp, %r14
leaq 0x10(%rsp), %r15
leaq 0x20(%rsp), %r12
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %r12, %rcx
callq 0x4240
movabsq $0xbe0000017c, %rax     # imm = 0xBE0000017C
movq %rax, (%r14)
movabsq $0xc800000172, %rax     # imm = 0xC800000172
movq %rax, (%r15)
movq %r13, 0x8(%r12)
andl $0x0, (%r12)
movq %rsp, %r14
leaq 0x10(%rsp), %rdx
leaq 0x20(%rsp), %r15
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rcx
callq 0x4240
movabsq $0xbe0000018f, %rax     # imm = 0xBE0000018F
movq %rax, (%r14)
movq %r13, 0x8(%r15)
andl $0x0, (%r15)
movq %rsp, %rsi
leaq 0x20(%rsp), %rdx
movq %rbx, %rdi
callq 0x42a0
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x4260
movq %rbx, %rdi
callq 0x4180