// File: /workspace/github_cpp_makefile_star2_O2/jkingan[P]ladyheather/heather.cpp
// Function: plot_mark(int)
void plot_mark(int symbol)
{
int x;
int y;
int temp;
char c;

   // draw the plot marker chars at the top of the plot area

   if(symbol < 0) symbol = 1;
   else if(symbol >= MAX_MARKER) symbol = (MAX_MARKER - 1);

   if(symbol < 10) c = ('0' + symbol);
   else            c = ('A' + symbol - 10);

   // draw user set data markers in the plot
   y = PLOT_ROW;
   x = PLOT_COL+plot_column;

   if(symbol == 0) {   // the mouse click marker
      temp = MARKER_COLOR;
if(button_lock && touch_screen) temp = YELLOW;
      dot(x+0, y+5, temp);
      dot(x+1, y+4, temp);    dot(x-1, y+4, temp);
      dot(x+2, y+3, temp);    dot(x-2, y+3, temp);
      dot(x+3, y+2, temp);    dot(x-3, y+2, temp);
      dot(x+4, y+1, temp);    dot(x-4, y+1, temp);
      dot(x+5, y+0, temp);    dot(x-5, y+0, temp);

      y = PLOT_ROW+PLOT_HEIGHT-1;
      dot(x+0, y-5, temp);
      dot(x+1, y-4, temp);    dot(x-1, y-4, temp);
      dot(x+2, y-3, temp);    dot(x-2, y-3, temp);
      dot(x+3, y-2, temp);    dot(x-3, y-2, temp);
      dot(x+4, y-1, temp);    dot(x-4, y-1, temp);
      dot(x+5, y-0, temp);    dot(x-5, y-0, temp);
   }
   else {   // the numeric markers
      #ifdef DIGITAL_CLOCK
         // we can use the vector character code to draw the markers
         x -= VCHAR_SCALE/2;
         if(x < 0) x = 0;
         temp = VCHAR_SCALE;
         if(SCREEN_HEIGHT < MEDIUM_HEIGHT) VCHAR_SCALE = 0;
         else VCHAR_SCALE = 1;
if(plot_adev_data) y += TEXT_HEIGHT;
         vchar(x,y+2, 0, MARKER_COLOR, c);
         VCHAR_SCALE = temp;
      #else
         // use text chars for the markers (may not go exactly where we want in DOS)
         #ifdef WIN_VFX
            graphics_coords = 1;
            x -= TEXT_WIDTH/2;
            if(x < 0) x = 0;
            y += 2;
         #endif
if(plot_adev_data) y += TEXT_HEIGHT;
         sprintf(out, "%c", c);
         vidstr(y,x, MARKER_COLOR, out);
         graphics_coords = 0;
      #endif
   }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
cmpl $0x9, %edi
pushq $0x9
popq %rax
cmovbl %edi, %eax
testl %edi, %edi
pushq $0x1
popq %rcx
cmovnsl %eax, %ecx
movl 0x1ec58a(%rip), %r14d   # 0x20287c
movl 0x1ef0d3(%rip), %r15d   # 0x2053cc
addl 0x1ec580(%rip), %r15d   # 0x202880
testl %ecx, %ecx
je 0x16374
orb $0x30, %cl
movl 0x1f722f(%rip), %ebx    # 0x20d53c
pushq $-0x2
popq %rsi
movl %ebx, %eax
cltd
idivl %esi
addl %r15d, %eax
xorl %edx, %edx
testl %eax, %eax
cmovlel %edx, %eax
xorl %edx, %edx
cmpl $0x2c6, 0x1ec4d9(%rip)  # imm = 0x2C6
setge %dl
movl %edx, 0x1f7208(%rip)    # 0x20d53c
cmpb $0x0, 0x1ef09e(%rip)    # 0x2053d9
movl $0x0, %edx
je 0x16348
movl 0x1ec4cc(%rip), %edx    # 0x202814
leal (%r14,%rdx), %esi
addl $0x2, %esi
movzbl %cl, %r8d
pushq $0xb
popq %rcx
movl %eax, %edi
xorl %edx, %edx
callq 0xdd47
movl %ebx, 0x1f71d7(%rip)    # 0x20d53c
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpl $0x0, 0x313df9(%rip)    # 0x32a174
setne %al
cmpb $0x0, 0x1eee99(%rip)    # 0x20521e
setne %cl
andb %al, %cl
leal 0x5(%r14), %esi
movzbl %cl, %eax
leal (%rax,%rax,2), %ebx
addl $0xb, %ebx
movl %r15d, %edi
movl %ebx, %edx
callq 0xe1a7
leal 0x1(%r15), %edi
movl %edi, -0x50(%rbp)
leal 0x4(%r14), %r12d
movl %r12d, %esi
movl %ebx, %edx
callq 0xe1a7
leal -0x1(%r15), %edi
movl %edi, -0x4c(%rbp)
movl %r12d, %esi
movl %ebx, %edx
callq 0xe1a7
leal 0x2(%r15), %edi
movl %edi, -0x48(%rbp)
leal 0x3(%r14), %r12d
movl %r12d, %esi
movl %ebx, %edx
callq 0xe1a7
leal -0x2(%r15), %edi
movl %edi, -0x44(%rbp)
movl %r12d, %esi
movl %ebx, %edx
callq 0xe1a7
leal 0x3(%r15), %edi
movl %edi, -0x40(%rbp)
leal 0x2(%r14), %r12d
movl %r12d, %esi
movl %ebx, %edx
callq 0xe1a7
leal -0x3(%r15), %edi
movl %edi, -0x3c(%rbp)
movl %r12d, %esi
movl %ebx, %edx
callq 0xe1a7
leal 0x4(%r15), %edi
movl %edi, -0x38(%rbp)
leal 0x1(%r14), %r12d
movl %r12d, %esi
movl %ebx, %edx
callq 0xe1a7
leal -0x4(%r15), %edi
movl %edi, -0x34(%rbp)
movl %r12d, %esi
movl %ebx, %edx
callq 0xe1a7
leal 0x5(%r15), %edi
movl %edi, -0x30(%rbp)
movl %r14d, %esi
movl %ebx, %edx
callq 0xe1a7
leal -0x5(%r15), %edi
movl %edi, -0x2c(%rbp)
movl %r14d, %esi
movl %ebx, %edx
callq 0xe1a7
movl 0x1ec41a(%rip), %r12d   # 0x20287c
movl 0x1ec41f(%rip), %r13d   # 0x202888
leal (%r12,%r13), %r14d
decl %r14d
leal (%r12,%r13), %esi
addl $-0x6, %esi
movl %r15d, %edi
movl %ebx, %edx
callq 0xe1a7
leal (%r12,%r13), %r15d
addl $-0x5, %r15d
movl -0x50(%rbp), %edi
movl %r15d, %esi
movl %ebx, %edx
callq 0xe1a7
movl -0x4c(%rbp), %edi
movl %r15d, %esi
movl %ebx, %edx
callq 0xe1a7
leal (%r12,%r13), %r15d
addl $-0x4, %r15d
movl -0x48(%rbp), %edi
movl %r15d, %esi
movl %ebx, %edx
callq 0xe1a7
movl -0x44(%rbp), %edi
movl %r15d, %esi
movl %ebx, %edx
callq 0xe1a7
leal (%r12,%r13), %r15d
addl $-0x3, %r15d
movl -0x40(%rbp), %edi
movl %r15d, %esi
movl %ebx, %edx
callq 0xe1a7
movl -0x3c(%rbp), %edi
movl %r15d, %esi
movl %ebx, %edx
callq 0xe1a7
leal (%r12,%r13), %r15d
addl $-0x2, %r15d
movl -0x38(%rbp), %edi
movl %r15d, %esi
movl %ebx, %edx
callq 0xe1a7
movl -0x34(%rbp), %edi
movl %r15d, %esi
movl %ebx, %edx
callq 0xe1a7
movl -0x30(%rbp), %edi
movl %r14d, %esi
movl %ebx, %edx
callq 0xe1a7
movl -0x2c(%rbp), %edi
movl %r14d, %esi
movl %ebx, %edx
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xe1a7