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

```asm
<lcd_test>:
  endbr64
  push   %r15
  xor    %eax,%eax
  lea    D59(%rip),%r15
  push   %r14
  lea    D48(%rip),%r14
  push   %r13
  lea    D63(%rip),%r13
  push   %r12
  push   %rbp
  lea    D152(%rip),%rbp
  push   %rbx
  lea    D166(%rip),%rbx
  sub    $0x8,%rsp
  call   <lcd_init@plt>
  nopl   0x0(%rax)
L76:
  mov    %r15,%rdi
  call   <printf@plt>
  mov    %r14,%rdi
  call   <printf@plt>
  mov    %r13,%rdi
  call   <printf@plt>
  lea    D176(%rip),%rdi
  call   <printf@plt>
  lea    D153(%rip),%rdi
  call   <printf@plt>
  lea    D47(%rip),%rdi
  call   <printf@plt>
  nopl   0x0(%rax)
L13:
  xor    %eax,%eax
  call   <getc@plt>
  mov    %eax,%r12d
  cmp    $0xa,%al
  je     L89
  cmp    $0xd,%al
  je     L89
  movzbl %al,%edi
  call   <putc@plt>
  lea    -0x42(%r12),%edx
  cmp    $0x2f,%dl
  ja     L76
  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    D70(%rip),%edi
  xor    %eax,%eax
  test   %edi,%edi
  jne    L59
  call   <lcd_on@plt>
  lea    D53(%rip),%rdi
  call   <printf@plt>
L55:
  mov    D70(%rip),%esi
  xor    %eax,%eax
  test   %esi,%esi
  sete   %al
  mov    %eax,D10(%rip)
  jmp    L76
  nopl   0x0(%rax)
  xor    %eax,%eax
  call   <display_red@plt>
  jmp    L76
  nopl   0x0(%rax)
  xor    %eax,%eax
  call   <displaycon_on@plt>
  lea    D10(%rip),%rdi
L114:
  call   <printf@plt>
L78:
  mov    D158(%rip),%edx
  xor    %eax,%eax
  test   %edx,%edx
  sete   %al
  mov    %eax,D73(%rip)
  jmp    L76
  nopl   0x0(%rax,%rax,1)
  mov    D73(%rip),%ecx
  xor    %eax,%eax
  test   %ecx,%ecx
  je     L0
  call   <backlight_disable@plt>
  lea    D73(%rip),%rdi
  call   <printf@plt>
  jmp    L78
  nop
L89:
  mov    %rbp,%rdi
  call   <printf@plt>
  jmp    L13
L0:
  call   <backlight_enable@plt>
  lea    D50(%rip),%rdi
  jmp    L114
L59:
  call   <lcd_off@plt>
  lea    D154(%rip),%rdi
  call   <printf@plt>
  jmp    L55
```

tool_calls: name: unpack_data
arguments: data_tag: D59
type: string
name: unpack_data
arguments: data_tag: D48
type: string
name: unpack_data
arguments: data_tag: D63
type: string
name: unpack_data
arguments: data_tag: D152
type: string
name: unpack_data
arguments: data_tag: D176
type: string
name: unpack_data
arguments: data_tag: D153
type: string
name: unpack_data
arguments: data_tag: D47
type: string
name: unpack_data
arguments: data_tag: D53
type: string
name: unpack_data
arguments: data_tag: D10
type: string
name: unpack_data
arguments: data_tag: D73
type: string
name: unpack_data
arguments: data_tag: D50
type: string
name: unpack_data
arguments: data_tag: D154
type: string

tool: D59: ********LCD TEST MENU********


tool: D48: [L] enable/disable LCD


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

tool: D152: 


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

tool: D153: [D] display color


tool: D47: [Q] quit


tool: D53: LCD on


tool: D10: Display controller on


tool: D73: Backlight off


tool: D50: Backlight on


tool: D154: LCD off


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("[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 'q':
    case 'Q': {
      return;
      break;
    }
    }
  }
}
```