user: 请从给定的汇编指令推导出C源代码:

```asm
<lcd_test>:
  endbr64
  push   %r15
  xor    %eax,%eax
  lea    D139(%rip),%r15
  push   %r14
  lea    D165(%rip),%r14
  push   %r13
  lea    D116(%rip),%r13
  push   %r12
  push   %rbp
  lea    D15(%rip),%rbp
  push   %rbx
  lea    D54(%rip),%rbx
  sub    $0x8,%rsp
  call   <lcd_init@plt>
  nopl   0x0(%rax)
L65:
  mov    %r15,%rdi
  call   <printf@plt>
  mov    %r14,%rdi
  call   <printf@plt>
  mov    %r13,%rdi
  call   <printf@plt>
  lea    D104(%rip),%rdi
  call   <printf@plt>
  lea    D62(%rip),%rdi
  call   <printf@plt>
  lea    D111(%rip),%rdi
  call   <printf@plt>
  lea    D85(%rip),%rdi
  call   <printf@plt>
  nopl   0x0(%rax,%rax,1)
L99:
  xor    %eax,%eax
  call   <getc@plt>
  mov    %eax,%r12d
  cmp    $0xa,%al
  je     L43
  cmp    $0xd,%al
  je     L43
  movzbl %al,%edi
  call   <putc@plt>
  lea    -0x42(%r12),%edx
  cmp    $0x2f,%dl
  ja     L65
  movzbl %dl,%edx
  movslq (%rbx,%rdx,4),%rax
  add    %rbx,%rax
  notrack jmp *%rax
  nopl   0x0(%rax)
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nop
  mov    D33(%rip),%edi
  xor    %eax,%eax
  test   %edi,%edi
  je     L82
  call   <lcd_off@plt>
  lea    D130(%rip),%rdi
  call   <printf@plt>
L64:
  mov    D33(%rip),%esi
  xor    %eax,%eax
  test   %esi,%esi
  sete   %al
  mov    %eax,D174(%rip)
  jmp    L65
  nopl   0x0(%rax)
  xor    %eax,%eax
  call   <draw_line@plt>
  jmp    L65
  nopl   0x0(%rax)
  xor    %eax,%eax
  call   <display_red@plt>
  jmp    L65
  nopl   0x0(%rax)
  xor    %eax,%eax
  call   <displaycon_on@plt>
  lea    D174(%rip),%rdi
L40:
  call   <printf@plt>
L31:
  mov    D1(%rip),%edx
  xor    %eax,%eax
  test   %edx,%edx
  sete   %al
  mov    %eax,D63(%rip)
  jmp    L65
  nopl   0x0(%rax,%rax,1)
  mov    D63(%rip),%ecx
  xor    %eax,%eax
  test   %ecx,%ecx
  je     L58
  call   <backlight_disable@plt>
  lea    D63(%rip),%rdi
  call   <printf@plt>
  jmp    L31
  nop
L43:
  mov    %rbp,%rdi
  call   <printf@plt>
  jmp    L99
L82:
  call   <lcd_on@plt>
  lea    D143(%rip),%rdi
  call   <printf@plt>
  jmp    L64
L58:
  call   <backlight_enable@plt>
  lea    D103(%rip),%rdi
  jmp    L40
```

tool_calls: name: disassemble_data
arguments: data_label: D139
type: string
name: disassemble_data
arguments: data_label: D165
type: string
name: disassemble_data
arguments: data_label: D116
type: string
name: disassemble_data
arguments: data_label: D15
type: string
name: disassemble_data
arguments: data_label: D104
type: string
name: disassemble_data
arguments: data_label: D62
type: string
name: disassemble_data
arguments: data_label: D111
type: string
name: disassemble_data
arguments: data_label: D85
type: string
name: disassemble_data
arguments: data_label: D130
type: string
name: disassemble_data
arguments: data_label: D174
type: string
name: disassemble_data
arguments: data_label: D63
type: string
name: disassemble_data
arguments: data_label: D143
type: string
name: disassemble_data
arguments: data_label: D103
type: string

tool: D139: ********LCD TEST MENU********


tool: D165: [L] enable/disable LCD


tool: D116: [B] enable/disable back light


tool: D15: 


tool: D104: [C] enable/disable s3c6410 display controller


tool: D62: [D] display color


tool: D111: [I]  draw line


tool: D85: [Q] quit


tool: D130: LCD off


tool: D174: Display controller on


tool: D63: Backlight off


tool: D143: LCD on


tool: D103: Backlight on


assistant: ```c
void lcd_test(void) {
  unsigned char c;
  static int lcdon = 0;
  static int blon = 0;
  static int dispon = 0;
  lcd_init();
  while (1) {
    printf("********LCD TEST MENU********\n\r");
    printf("[L] enable/disable LCD\n\r");
    printf("[B] enable/disable back light\n\r");
    printf("[C] enable/disable s3c6410 display controller\n\r");
    printf("[D] display color\n\r");
    printf("[I]  draw line\n\r");
    printf("[Q] quit\n\r");
    do {
      c = getc();
      if (c == '\n' || c == '\r') {
        printf("\n\r");
      } else {
        putc(c);
      }
    } while (c == '\n' || c == '\r');
    switch (c) {
    case 'l':
    case 'L': {
      if (lcdon) {
        lcd_off();
        printf("LCD off\n\r");
      } else {
        lcd_on();
        printf("LCD on\n\r");
      }
      lcdon = !lcdon;
      break;
    }
    case 'b':
    case 'B': {
      if (blon) {
        backlight_disable();
        printf("Backlight off\n\r");
      } else {
        backlight_enable();
        printf("Backlight on\n\r");
      }
      blon = !blon;
      break;
    }
    case 'c':
    case 'C': {
      if (dispon) {
        displaycon_off();
        printf("Display controller off\n\r");
      } else {
        displaycon_on();
        printf("Display controller on\n\r");
      }
      blon = !blon;
      break;
    }
    case 'd':
    case 'D': {
      display_red();
      break;
    }
    case 'i':
    case 'I': {
      draw_line();
      break;
    }
    case 'q':
    case 'Q': {
      return;
      break;
    }
    }
  }
}
```