// File: /workspace/github_cpp_makefile_star2_O1/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
movl $0x9, %ecx
cmovll %edi, %ecx
testl %edi, %edi
movl $0x1, %eax
cmovnsl %ecx, %eax
movl 0x201c3b(%rip), %r15d   # 0x21887c
movl 0x204784(%rip), %r14d   # 0x21b3cc
addl 0x201c31(%rip), %r14d   # 0x218880
testl %eax, %eax
je 0x16cc8
addb $0x30, %al
movl 0x20c8e1(%rip), %ebx    # 0x22353c
movl %ebx, %ecx
shrl $0x1f, %ecx
addl %ebx, %ecx
sarl %ecx
subl %ecx, %r14d
xorl %ecx, %ecx
testl %r14d, %r14d
cmovlel %ecx, %r14d
xorl %ecx, %ecx
cmpl $0x2c6, 0x201b88(%rip)  # imm = 0x2C6
setge %cl
movl %ecx, 0x20c8b7(%rip)    # 0x22353c
cmpb $0x0, 0x20474d(%rip)    # 0x21b3d9
movl $0x0, %ecx
je 0x16c99
movl 0x201b7b(%rip), %ecx    # 0x218814
leal (%r15,%rcx), %esi
addl $0x2, %esi
movzbl %al, %r8d
movl %r14d, %edi
xorl %edx, %edx
movl $0xb, %ecx
callq 0xe211
movl %ebx, 0x20c883(%rip)    # 0x22353c
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpl $0x0, 0x3294a5(%rip)    # 0x340174
setne %al
cmpb $0x0, 0x204545(%rip)    # 0x21b21e
setne %cl
andb %al, %cl
leal 0x5(%r15), %esi
movzbl %cl, %eax
leal (%rax,%rax,2), %ebx
addl $0xb, %ebx
movl %r14d, %edi
movl %ebx, %edx
callq 0xe6a0
leal 0x1(%r14), %edi
movl %edi, -0x50(%rbp)
leal 0x4(%r15), %r12d
movl %r12d, %esi
movl %ebx, %edx
callq 0xe6a0
leal -0x1(%r14), %edi
movl %edi, -0x4c(%rbp)
movl %r12d, %esi
movl %ebx, %edx
callq 0xe6a0
leal 0x2(%r14), %edi
movl %edi, -0x48(%rbp)
leal 0x3(%r15), %r12d
movl %r12d, %esi
movl %ebx, %edx
callq 0xe6a0
leal -0x2(%r14), %edi
movl %edi, -0x44(%rbp)
movl %r12d, %esi
movl %ebx, %edx
callq 0xe6a0
leal 0x3(%r14), %edi
movl %edi, -0x40(%rbp)
leal 0x2(%r15), %r12d
movl %r12d, %esi
movl %ebx, %edx
callq 0xe6a0
leal -0x3(%r14), %edi
movl %edi, -0x3c(%rbp)
movl %r12d, %esi
movl %ebx, %edx
callq 0xe6a0
leal 0x4(%r14), %edi
movl %edi, -0x38(%rbp)
leal 0x1(%r15), %r12d
movl %r12d, %esi
movl %ebx, %edx
callq 0xe6a0
leal -0x4(%r14), %edi
movl %edi, -0x34(%rbp)
movl %r12d, %esi
movl %ebx, %edx
callq 0xe6a0
leal 0x5(%r14), %edi
movl %edi, -0x30(%rbp)
movl %r15d, %esi
movl %ebx, %edx
callq 0xe6a0
leal -0x5(%r14), %edi
movl %edi, -0x2c(%rbp)
movl %r15d, %esi
movl %ebx, %edx
callq 0xe6a0
movl 0x201ac6(%rip), %r12d   # 0x21887c
movl 0x201acb(%rip), %r13d   # 0x218888
leal (%r12,%r13), %r15d
decl %r15d
leal (%r12,%r13), %esi
addl $-0x6, %esi
movl %r14d, %edi
movl %ebx, %edx
callq 0xe6a0
leal (%r12,%r13), %r14d
addl $-0x5, %r14d
movl -0x50(%rbp), %edi
movl %r14d, %esi
movl %ebx, %edx
callq 0xe6a0
movl -0x4c(%rbp), %edi
movl %r14d, %esi
movl %ebx, %edx
callq 0xe6a0
leal (%r12,%r13), %r14d
addl $-0x4, %r14d
movl -0x48(%rbp), %edi
movl %r14d, %esi
movl %ebx, %edx
callq 0xe6a0
movl -0x44(%rbp), %edi
movl %r14d, %esi
movl %ebx, %edx
callq 0xe6a0
leal (%r12,%r13), %r14d
addl $-0x3, %r14d
movl -0x40(%rbp), %edi
movl %r14d, %esi
movl %ebx, %edx
callq 0xe6a0
movl -0x3c(%rbp), %edi
movl %r14d, %esi
movl %ebx, %edx
callq 0xe6a0
leal (%r12,%r13), %r14d
addl $-0x2, %r14d
movl -0x38(%rbp), %edi
movl %r14d, %esi
movl %ebx, %edx
callq 0xe6a0
movl -0x34(%rbp), %edi
movl %r14d, %esi
movl %ebx, %edx
callq 0xe6a0
movl -0x30(%rbp), %edi
movl %r15d, %esi
movl %ebx, %edx
callq 0xe6a0
movl -0x2c(%rbp), %edi
movl %r15d, %esi
movl %ebx, %edx
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xe6a0