// File: /workspace/github_c_makefile_star2_O1/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 %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %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
movaps 0x20f5(%rip), %xmm0     # 0x8010
movups %xmm0, (%r14)
movl $0xff, %r13d
movq %rsp, %r14
movq %r13, 0x8(%r14)
xorl %ebp, %ebp
movl %ebp, (%r14)
movq 0x5068(%rip), %rax      # 0xafa0
movl (%rax), %ecx
leaq 0x10(%rsp), %r15
movq %rbp, (%r15)
leaq 0x20(%rsp), %r12
movq %rbx, %rdi
movq %r12, %rsi
movq %r14, %rdx
movq %r15, %r8
callq 0x41e0
movaps 0x20c1(%rip), %xmm0     # 0x8020
movups %xmm0, (%r12)
movq %r13, 0x8(%r14)
movl %ebp, (%r14)
movq 0x5046(%rip), %rax      # 0xafb8
movl (%rax), %ecx
movq %rbp, (%r15)
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 0x2094(%rip), %xmm0     # 0x8030
movups %xmm0, (%r14)
movq %r13, 0x8(%r15)
movl %ebp, (%r15)
movq 0x503a(%rip), %rax      # 0xafe8
movl (%rax), %ecx
movq %rbp, (%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 0x2067(%rip), %xmm0     # 0x8040
movups %xmm0, (%r14)
movq %r13, 0x8(%r15)
movl %ebp, (%r15)
movq $0xff0000, 0x8(%r12)    # imm = 0xFF0000
movl %ebp, (%r12)
leaq 0x20(%rsp), %r14
movq %rsp, %r15
leaq 0x10(%rsp), %r12
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %r12, %rcx
movl $0x1, %r8d
callq 0x4440
movabsq $0xaa0000012c, %rax     # imm = 0xAA0000012C
movq %rax, (%r15)
movabsq $0xaa00000190, %rax     # imm = 0xAA00000190
movq %rax, (%r12)
movq %r13, 0x8(%r14)
movl %ebp, (%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)
movl %ebp, (%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)
movl %ebp, (%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)
movl %ebp, (%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)
movl %ebp, (%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)
movl %ebp, (%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)
movl %ebp, (%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)
movl %ebp, (%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)
movl %ebp, (%r15)
movq %rsp, %rsi
leaq 0x20(%rsp), %rdx
movq %rbx, %rdi
callq 0x42a0
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x4260
movq %rbx, %rdi
callq 0x4180
nop