user: What would the C source look like for the assembly code provided here:

```asm
<lcd_test>:
  endbr64
  push   %r15
  xor    %eax,%eax
  lea    D59(%rip),%r15
  push   %r14
  lea    D62(%rip),%r14
  push   %r13
  lea    D7(%rip),%r13
  push   %r12
  push   %rbp
  lea    D65(%rip),%rbp
  push   %rbx
  lea    D23(%rip),%rbx
  sub    $0x8,%rsp
  call   <lcd_init@plt>
  nopl   0x0(%rax)
L50:
  mov    %r15,%rdi
  call   <printf@plt>
  mov    %r14,%rdi
  call   <printf@plt>
  mov    %r13,%rdi
  call   <printf@plt>
  lea    D155(%rip),%rdi
  call   <printf@plt>
  lea    D10(%rip),%rdi
  call   <printf@plt>
  lea    D112(%rip),%rdi
  call   <printf@plt>
  nopl   0x0(%rax)
L91:
  xor    %eax,%eax
  call   <getc@plt>
  mov    %eax,%r12d
  cmp    $0xa,%al
  je     L60
  cmp    $0xd,%al
  je     L60
  movzbl %al,%edi
  call   <putc@plt>
  lea    -0x42(%r12),%edx
  cmp    $0x2f,%dl
  ja     L50
  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    D40(%rip),%edi
  xor    %eax,%eax
  test   %edi,%edi
  jne    L75
  call   <lcd_on@plt>
  lea    D138(%rip),%rdi
  call   <printf@plt>
L3:
  mov    D40(%rip),%esi
  xor    %eax,%eax
  test   %esi,%esi
  sete   %al
  mov    %eax,D164(%rip)
  jmp    L50
  nopl   0x0(%rax)
  xor    %eax,%eax
  call   <display_red@plt>
  jmp    L50
  nopl   0x0(%rax)
  xor    %eax,%eax
  call   <displaycon_on@plt>
  lea    D164(%rip),%rdi
L102:
  call   <printf@plt>
L86:
  mov    D173(%rip),%edx
  xor    %eax,%eax
  test   %edx,%edx
  sete   %al
  mov    %eax,D169(%rip)
  jmp    L50
  nopl   0x0(%rax,%rax,1)
  mov    D169(%rip),%ecx
  xor    %eax,%eax
  test   %ecx,%ecx
  je     L7
  call   <backlight_disable@plt>
  lea    D169(%rip),%rdi
  call   <printf@plt>
  jmp    L86
  nop
L60:
  mov    %rbp,%rdi
  call   <printf@plt>
  jmp    L91
L7:
  call   <backlight_enable@plt>
  lea    D144(%rip),%rdi
  jmp    L102
L75:
  call   <lcd_off@plt>
  lea    D28(%rip),%rdi
  call   <printf@plt>
  jmp    L3
```

tool_calls: name: unpack_data
arguments: data_label: D59
datatype: string
name: unpack_data
arguments: data_label: D62
datatype: string
name: unpack_data
arguments: data_label: D7
datatype: string
name: unpack_data
arguments: data_label: D65
datatype: string
name: unpack_data
arguments: data_label: D155
datatype: string
name: unpack_data
arguments: data_label: D10
datatype: string
name: unpack_data
arguments: data_label: D112
datatype: string
name: unpack_data
arguments: data_label: D138
datatype: string
name: unpack_data
arguments: data_label: D164
datatype: string
name: unpack_data
arguments: data_label: D169
datatype: string
name: unpack_data
arguments: data_label: D144
datatype: string
name: unpack_data
arguments: data_label: D28
datatype: string

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

tool: D62: [L] enable/disable LCD


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

tool: D65: 


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

tool: D10: [D] display color


tool: D112: [Q] quit


tool: D138: LCD on


tool: D164: Display controller on


tool: D169: Backlight off


tool: D144: Backlight on


tool: D28: 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;
    }
    }
  }
}
```