user: 请将以下的汇编代码转换成C语言代码：

```asm
<lcd_test>:
  endbr64
  push   %r15
  xor    %eax,%eax
  lea    D19(%rip),%r15
  push   %r14
  lea    D25(%rip),%r14
  push   %r13
  lea    D23(%rip),%r13
  push   %r12
  push   %rbp
  lea    D70(%rip),%rbp
  push   %rbx
  lea    D62(%rip),%rbx
  sub    $0x8,%rsp
  call   <lcd_init@plt>
  nopl   0x0(%rax)
L69:
  mov    %r15,%rdi
  call   <printf@plt>
  mov    %r14,%rdi
  call   <printf@plt>
  mov    %r13,%rdi
  call   <printf@plt>
  lea    D69(%rip),%rdi
  call   <printf@plt>
  lea    D98(%rip),%rdi
  call   <printf@plt>
  lea    D157(%rip),%rdi
  call   <printf@plt>
  lea    D6(%rip),%rdi
  call   <printf@plt>
  nopl   0x0(%rax,%rax,1)
L14:
  xor    %eax,%eax
  call   <getc@plt>
  mov    %eax,%r12d
  cmp    $0xa,%al
  je     L26
  cmp    $0xd,%al
  je     L26
  movzbl %al,%edi
  call   <putc@plt>
  lea    -0x42(%r12),%edx
  cmp    $0x2f,%dl
  ja     L69
  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    D140(%rip),%esi
  xor    %eax,%eax
  test   %esi,%esi
  je     L41
  call   <lcd_off@plt>
  lea    D61(%rip),%rdi
  call   <printf@plt>
L11:
  mov    D140(%rip),%ecx
  xor    %eax,%eax
  test   %ecx,%ecx
  sete   %al
  mov    %eax,D68(%rip)
  jmp    L69
  nopl   0x0(%rax)
  xor    %eax,%eax
  call   <draw_line@plt>
  jmp    L69
  nopl   0x0(%rax)
  xor    %eax,%eax
  call   <display_red@plt>
  jmp    L69
  nopl   0x0(%rax)
  xor    %eax,%eax
  call   <displaycon_on@plt>
  lea    D68(%rip),%rdi
  call   <printf@plt>
  mov    D1(%rip),%edx
  xor    %eax,%eax
  test   %edx,%edx
  sete   %al
  mov    %eax,D159(%rip)
  jmp    L69
  nopl   0x0(%rax,%rax,1)
  xor    %eax,%eax
  call   <pwm_menu@plt>
  jmp    L69
  nopl   0x0(%rax)
L26:
  mov    %rbp,%rdi
  call   <printf@plt>
  jmp    L14
L41:
  call   <lcd_on@plt>
  lea    D159(%rip),%rdi
  call   <printf@plt>
  jmp    L11
```

tool_calls: name: parse_data
arguments: label: D19
datatype: string
name: parse_data
arguments: label: D25
datatype: string
name: parse_data
arguments: label: D23
datatype: string
name: parse_data
arguments: label: D70
datatype: string
name: parse_data
arguments: label: D69
datatype: string
name: parse_data
arguments: label: D98
datatype: string
name: parse_data
arguments: label: D157
datatype: string
name: parse_data
arguments: label: D6
datatype: string
name: parse_data
arguments: label: D61
datatype: string
name: parse_data
arguments: label: D68
datatype: string
name: parse_data
arguments: label: D159
datatype: string

tool: D19: ********LCD TEST MENU********


tool: D25: [L] enable/disable LCD


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

tool: D70: 


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

tool: D98: [D] display color


tool: D157: [I]  draw line


tool: D6: [Q] quit


tool: D61: LCD off


tool: D68: Display controller on


tool: D159: LCD 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': {
      pwm_menu();
      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;
    }
    }
  }
}
```