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

   // get a plot center line reference value
   edit_buffer[0] = 0;
   val = plot[selected_plot].plot_center;
   if(plot[selected_plot].float_center) {
      sprintf(edit_buffer, "%.6f", val);
   }

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

   sprintf(out, "Enter center line reference for %s graph (in %s, <cr>=auto)",
                 plot[selected_plot].plot_id, u);
   start_edit(CENTER_CMD, out);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
leaq 0x35c761(%rip), %rax    # 0x39e4c0
movb $0x0, (%rax)
leaq 0x35d1cf(%rip), %rax    # 0x39ef38
movslq (%rax), %rcx
leaq 0x17afad(%rip), %rax    # 0x1bcd20
imulq $0xe8, %rcx, %rcx
addq %rcx, %rax
movsd 0x28(%rax), %xmm0
movsd %xmm0, -0x8(%rbp)
leaq 0x35d1aa(%rip), %rax    # 0x39ef38
movslq (%rax), %rcx
leaq 0x17af88(%rip), %rax    # 0x1bcd20
imulq $0xe8, %rcx, %rcx
addq %rcx, %rax
cmpl $0x0, 0x1c(%rax)
je 0x41dc2
movsd -0x8(%rbp), %xmm0
leaq 0x35c70c(%rip), %rdi    # 0x39e4c0
leaq 0x137944(%rip), %rsi    # 0x1796ff
movb $0x1, %al
callq 0x9060
leaq 0x35d16f(%rip), %rax    # 0x39ef38
cmpl $0x3, (%rax)
jne 0x41eb8
leaq 0x32a3ac(%rip), %rax    # 0x36c185
movsbl (%rax), %eax
cmpl $0x46, %eax
jne 0x41df1
leaq 0x137639(%rip), %rax    # 0x179421
movq %rax, -0x10(%rbp)
jmp 0x41eb6
leaq 0x32a38d(%rip), %rax    # 0x36c185
movsbl (%rax), %eax
cmpl $0x52, %eax
jne 0x41e10
leaq 0x13762a(%rip), %rax    # 0x179431
movq %rax, -0x10(%rbp)
jmp 0x41eb4
leaq 0x32a36e(%rip), %rax    # 0x36c185
movsbl (%rax), %eax
cmpl $0x4b, %eax
jne 0x41e2f
leaq 0x13761b(%rip), %rax    # 0x179441
movq %rax, -0x10(%rbp)
jmp 0x41eb2
leaq 0x32a34f(%rip), %rax    # 0x36c185
movsbl (%rax), %eax
cmpl $0x44, %eax
jne 0x41e4b
leaq 0x13760c(%rip), %rax    # 0x179451
movq %rax, -0x10(%rbp)
jmp 0x41eb0
leaq 0x32a333(%rip), %rax    # 0x36c185
movsbl (%rax), %eax
cmpl $0x4e, %eax
jne 0x41e67
leaq 0x137600(%rip), %rax    # 0x179461
movq %rax, -0x10(%rbp)
jmp 0x41eae
leaq 0x32a317(%rip), %rax    # 0x36c185
movsbl (%rax), %eax
cmpl $0x45, %eax
jne 0x41e83
leaq 0x1375f4(%rip), %rax    # 0x179471
movq %rax, -0x10(%rbp)
jmp 0x41eac
leaq 0x32a2fb(%rip), %rax    # 0x36c185
movsbl (%rax), %eax
cmpl $0x4f, %eax
jne 0x41e9f
leaq 0x1375e8(%rip), %rax    # 0x179481
movq %rax, -0x10(%rbp)
jmp 0x41eaa
leaq 0x1391e9(%rip), %rax    # 0x17b08f
movq %rax, -0x10(%rbp)
jmp 0x41eac
jmp 0x41eae
jmp 0x41eb0
jmp 0x41eb2
jmp 0x41eb4
jmp 0x41eb6
jmp 0x41ef6
leaq 0x35d079(%rip), %rax    # 0x39ef38
cmpl $0x2, (%rax)
jne 0x41ed1
leaq 0x1503a5(%rip), %rax    # 0x192270
movq %rax, -0x10(%rbp)
jmp 0x41ef4
leaq 0x35d060(%rip), %rax    # 0x39ef38
movslq (%rax), %rcx
leaq 0x17ae3e(%rip), %rax    # 0x1bcd20
imulq $0xe8, %rcx, %rcx
addq %rcx, %rax
movq 0x8(%rax), %rax
movq %rax, -0x10(%rbp)
jmp 0x41ef6
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x20, %eax
jne 0x41f0e
movq -0x10(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x10(%rbp)
leaq 0x35d023(%rip), %rax    # 0x39ef38
movslq (%rax), %rcx
leaq 0x17ae01(%rip), %rax    # 0x1bcd20
imulq $0xe8, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rdx
movq -0x10(%rbp), %rcx
leaq 0x3594c9(%rip), %rdi    # 0x39b400
leaq 0x13764d(%rip), %rsi    # 0x17958b
movb $0x0, %al
callq 0x9060
movl $0x43, %edi
leaq 0x3594af(%rip), %rsi    # 0x39b400
callq 0x3d470
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax)