// File: jkingan[P]ladyheather/heathui.cpp
// Function: edit_option_switch()
void edit_option_switch()
{
int cmd_err;
char *s;
int i;
char cmd[256+1];

   // process what is normally command line only options from the keyboard
   not_safe = 0;
   keyboard_cmd = 1;
   s = &edit_buffer[0];

   while(*s) {
      while(*s) {  // skip leading white space
         if(*s == 0) break;
         else if(*s == ' ') ++s;
         else if(*s == '\t') ++s;
         else break;
      }
      if(*s == 0) break;

      i = 0;
      cmd[i] = 0;
      while(*s) {  // extract the next option string
         if(*s == ' ') break;
         else if(*s == '\t') break;
         else if(i >= 256) break;

         cmd[i++] = *s;
         cmd[i] = 0;
         ++s;
      }

      if(1) ;
      else if(cmd[0] == '-');
      else if(cmd[0] == '/');
      else if(cmd[0]) {
         strcpy(out, "/");
         strcat(out, cmd);
         strcpy(cmd, out);
      }

      cmd_err = option_switch(&cmd[0]);  // process the option

      if(cmd_err) {
         sprintf(out, "Unknown or bad command line option: %s.  Type ? for command line help.", &cmd[0]);
         edit_error(out);
         break;
      }
//    else if(not_safe == 1) {
      else if(not_safe) {      // xyzzy
         config_options();
      }
   }

   need_redraw = 1200;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x120, %rsp            # imm = 0x120
leaq 0x3262fb(%rip), %rax    # 0x36d04d
movb $0x0, (%rax)
leaq 0x3262f0(%rip), %rax    # 0x36d04c
movb $0x1, (%rax)
leaq 0x35775a(%rip), %rax    # 0x39e4c0
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
cmpb $0x0, (%rax)
je 0x46eaf
jmp 0x46d79
movq -0x10(%rbp), %rax
cmpb $0x0, (%rax)
je 0x46dcc
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
jne 0x46d90
jmp 0x46dcc
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x20, %eax
jne 0x46daa
movq -0x10(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x10(%rbp)
jmp 0x46dc8
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x9, %eax
jne 0x46dc4
movq -0x10(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x10(%rbp)
jmp 0x46dc6
jmp 0x46dcc
jmp 0x46dc8
jmp 0x46dca
jmp 0x46d79
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
jne 0x46ddd
jmp 0x46eaf
movl $0x0, -0x14(%rbp)
movslq -0x14(%rbp), %rax
movb $0x0, -0x120(%rbp,%rax)
movq -0x10(%rbp), %rax
cmpb $0x0, (%rax)
je 0x46e58
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x20, %eax
jne 0x46e07
jmp 0x46e58
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x9, %eax
jne 0x46e15
jmp 0x46e58
cmpl $0x100, -0x14(%rbp)     # imm = 0x100
jl 0x46e20
jmp 0x46e58
jmp 0x46e22
jmp 0x46e24
movq -0x10(%rbp), %rax
movb (%rax), %cl
movl -0x14(%rbp), %eax
movl %eax, %edx
addl $0x1, %edx
movl %edx, -0x14(%rbp)
cltq
movb %cl, -0x120(%rbp,%rax)
movslq -0x14(%rbp), %rax
movb $0x0, -0x120(%rbp,%rax)
movq -0x10(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x10(%rbp)
jmp 0x46df0
leaq -0x120(%rbp), %rdi
callq 0x46ed0
movl %eax, -0x4(%rbp)
cmpl $0x0, -0x4(%rbp)
je 0x46e97
leaq -0x120(%rbp), %rdx
leaq 0x354585(%rip), %rdi    # 0x39b400
leaq 0x132d40(%rip), %rsi    # 0x179bc2
movb $0x0, %al
callq 0x9060
leaq 0x354570(%rip), %rdi    # 0x39b400
callq 0x30d60
jmp 0x46eaf
leaq 0x3261af(%rip), %rax    # 0x36d04d
cmpb $0x0, (%rax)
je 0x46ea8
callq 0xfcd0
jmp 0x46eaa
jmp 0x46d6a
leaq 0x230b6e(%rip), %rax    # 0x277a24
movl $0x4b0, (%rax)          # imm = 0x4B0
addq $0x120, %rsp            # imm = 0x120
popq %rbp
retq
nopw %cs:(%rax,%rax)