// File: jkingan[P]ladyheather/heathui.cpp
// Function: edit_scale()
void edit_scale()
{
DATA_SIZE val;
char *u;

   // get a plot scale factor
   if(plot[selected_plot].user_scale) val = 0.0;
   else                               val = plot[selected_plot].scale_factor;

   if(selected_plot == TEMP) {
      if     (DEG_SCALE == 'F')  u = "milli degrees F";
      else if(DEG_SCALE == 'R')  u = "milli degrees R";
      else if(DEG_SCALE == 'K')  u = "milli degrees K";
      else if(DEG_SCALE == 'D')  u = "milli degrees D";
      else if(DEG_SCALE == 'N')  u = "milli degrees N";
      else if(DEG_SCALE == 'E')  u = "milli degrees E";
      else if(DEG_SCALE == 'O')  u = "milli degrees O";
      else                       u = "milli degrees C";
   }
   else u = plot[selected_plot].units;
   if(u[0] == ' ') ++u;

   sprintf(edit_buffer, "%.0f", val);

   sprintf(out, "Enter scale factor for %s graph (%s/div, 0=auto scale)",
                 plot[selected_plot].plot_id, u);
   start_edit(SCALE_CMD, out);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
leaq 0x35d679(%rip), %rax    # 0x39ef38
movslq (%rax), %rcx
leaq 0x17b457(%rip), %rax    # 0x1bcd20
imulq $0xe8, %rcx, %rcx
addq %rcx, %rax
cmpl $0x0, 0x30(%rax)
je 0x418e3
xorps %xmm0, %xmm0
movsd %xmm0, -0x8(%rbp)
jmp 0x41908
leaq 0x35d64e(%rip), %rax    # 0x39ef38
movslq (%rax), %rcx
leaq 0x17b42c(%rip), %rax    # 0x1bcd20
imulq $0xe8, %rcx, %rcx
addq %rcx, %rax
movsd 0x38(%rax), %xmm0
movsd %xmm0, -0x8(%rbp)
leaq 0x35d629(%rip), %rax    # 0x39ef38
cmpl $0x3, (%rax)
jne 0x419fe
leaq 0x32a866(%rip), %rax    # 0x36c185
movsbl (%rax), %eax
cmpl $0x46, %eax
jne 0x41937
leaq 0x137aed(%rip), %rax    # 0x17941b
movq %rax, -0x10(%rbp)
jmp 0x419fc
leaq 0x32a847(%rip), %rax    # 0x36c185
movsbl (%rax), %eax
cmpl $0x52, %eax
jne 0x41956
leaq 0x137ade(%rip), %rax    # 0x17942b
movq %rax, -0x10(%rbp)
jmp 0x419fa
leaq 0x32a828(%rip), %rax    # 0x36c185
movsbl (%rax), %eax
cmpl $0x4b, %eax
jne 0x41975
leaq 0x137acf(%rip), %rax    # 0x17943b
movq %rax, -0x10(%rbp)
jmp 0x419f8
leaq 0x32a809(%rip), %rax    # 0x36c185
movsbl (%rax), %eax
cmpl $0x44, %eax
jne 0x41991
leaq 0x137ac0(%rip), %rax    # 0x17944b
movq %rax, -0x10(%rbp)
jmp 0x419f6
leaq 0x32a7ed(%rip), %rax    # 0x36c185
movsbl (%rax), %eax
cmpl $0x4e, %eax
jne 0x419ad
leaq 0x137ab4(%rip), %rax    # 0x17945b
movq %rax, -0x10(%rbp)
jmp 0x419f4
leaq 0x32a7d1(%rip), %rax    # 0x36c185
movsbl (%rax), %eax
cmpl $0x45, %eax
jne 0x419c9
leaq 0x137aa8(%rip), %rax    # 0x17946b
movq %rax, -0x10(%rbp)
jmp 0x419f2
leaq 0x32a7b5(%rip), %rax    # 0x36c185
movsbl (%rax), %eax
cmpl $0x4f, %eax
jne 0x419e5
leaq 0x137a9c(%rip), %rax    # 0x17947b
movq %rax, -0x10(%rbp)
jmp 0x419f0
leaq 0x137a9f(%rip), %rax    # 0x17948b
movq %rax, -0x10(%rbp)
jmp 0x419f2
jmp 0x419f4
jmp 0x419f6
jmp 0x419f8
jmp 0x419fa
jmp 0x419fc
jmp 0x41a21
leaq 0x35d533(%rip), %rax    # 0x39ef38
movslq (%rax), %rcx
leaq 0x17b311(%rip), %rax    # 0x1bcd20
imulq $0xe8, %rcx, %rcx
addq %rcx, %rax
movq 0x8(%rax), %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x20, %eax
jne 0x41a39
movq -0x10(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x10(%rbp)
movsd -0x8(%rbp), %xmm0
leaq 0x35ca7b(%rip), %rdi    # 0x39e4c0
leaq 0x1561e8(%rip), %rsi    # 0x197c34
movb $0x1, %al
callq 0x9060
leaq 0x35d4de(%rip), %rax    # 0x39ef38
movslq (%rax), %rcx
leaq 0x17b2bc(%rip), %rax    # 0x1bcd20
imulq $0xe8, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rdx
movq -0x10(%rbp), %rcx
leaq 0x359984(%rip), %rdi    # 0x39b400
leaq 0x137a18(%rip), %rsi    # 0x17949b
movb $0x0, %al
callq 0x9060
movl $0x64, %edi
leaq 0x35996a(%rip), %rsi    # 0x39b400
callq 0x3d470
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)