user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<check_tldline>:
  endbr64
  cmpb   $0x2f,(%rdi)
  jne    L135
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  movzbl 0x1(%rdi),%eax
  mov    %rdi,%rbx
  sub    $0x41,%eax
  cmp    $0x19,%al
  ja     L121
  lea    D5(%rip),%rdx
  movzbl %al,%eax
  movslq (%rdx,%rax,4),%rax
  add    %rdx,%rax
  notrack jmp *%rax
  nopl   0x0(%rax,%rax,1)
L135:
  lea    D43(%rip),%rdi
  jmp    10b0 <error@plt>
  nopl   0x0(%rax)
L121:
  lea    D25(%rip),%rdi
L84:
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  jmp    10b0 <error@plt>
  nopl   0x0(%rax)
  mov    $0x1c,%r13d
  xor    %r14d,%r14d
  nopl   0x0(%rax)
L21:
  movsbl 0x2(%rbx),%edi
  call   <xtoi@plt>
  lea    0x3(%rbx),%rdi
  mov    $0x4,%esi
  mov    %eax,%r12d
  call   <get_nibbles@plt>
  lea    D34(%rip),%rdi
  mov    %eax,%ebp
  cmp    $0xffffffff,%eax
  je     L84
  xor    %r13d,%ebp
  lea    D18(%rip),%rdi
  cmp    $0xffffffff,%r12d
  je     L84
  test   %r14b,%r14b
  jne    L1
L200:
  movsbl 0x7(%rbx),%edi
  call   <xtoi@plt>
  cmp    $0xffffffff,%eax
  je     L210
  test   %eax,%eax
  jle    L175
  sub    $0x1,%eax
  lea    0xc(%rbx),%r12
  lea    0x10(%rbx,%rax,4),%r13
  jmp    L204
  nopl   0x0(%rax)
L4:
  mov    %ebp,%edi
  mov    $0x1,%esi
  add    $0x4,%r12
  call   <rotl16@plt>
  xor    %ebx,%eax
  mov    %eax,%ebp
  cmp    %r13,%r12
  je     L175
L204:
  mov    $0x4,%esi
  mov    %r12,%rdi
  call   <get_nibbles@plt>
  mov    %eax,%ebx
  cmp    $0xffffffff,%eax
  jne    L4
  pop    %rbx
  lea    D51(%rip),%rdi
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  jmp    10b0 <error@plt>
  nopl   (%rax)
  mov    $0x10,%r13d
  xor    %r14d,%r14d
  jmp    L21
  cs nopw 0x0(%rax,%rax,1)
  mov    $0x12,%r13d
  xor    %r14d,%r14d
  jmp    L21
  movsbl 0x5(%rdi),%eax
  xor    %r14d,%r14d
  lea    -0x4c(%rax,%rax,1),%r13d
  jmp    L21
  mov    $0x16,%r13d
  xor    %r14d,%r14d
  jmp    L21
  mov    $0xc,%r13d
  mov    $0x1,%r14d
  jmp    L21
  mov    $0x14,%r13d
  xor    %r14d,%r14d
  jmp    L21
  mov    $0x1c,%r13d
  mov    $0x1,%r14d
  jmp    L21
  nopl   (%rax)
L175:
  pop    %rbx
  mov    %ebp,%eax
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
  nopl   0x0(%rax,%rax,1)
L1:
  mov    %ebp,%edi
  mov    $0x1,%esi
  call   <rotl16@plt>
  xor    %r12d,%eax
  mov    %eax,%ebp
  jmp    L200
  cs nopw 0x0(%rax,%rax,1)
L210:
  lea    D67(%rip),%rdi
  jmp    L84
  mov    $0x10,%ebp
  jmp    L200
  mov    $0x12,%r13d
  mov    $0x1,%r14d
  jmp    L21
  mov    $0xc,%ebp
  jmp    L200
```

tool_calls: name: parse_data
arguments: label: D43
type: string
name: parse_data
arguments: label: D25
type: string
name: parse_data
arguments: label: D34
type: string
name: parse_data
arguments: label: D18
type: string
name: parse_data
arguments: label: D51
type: string
name: parse_data
arguments: label: D67
type: string

tool: D43: ldm: illegal start character for LDM line

tool: D25: illegal Command type in TLD LDM line

tool: D34: ldm: illegal char in address field

tool: D18: ldm: illegal char in MS-nibble of address

tool: D51: ldm: illegal char in data word

tool: D67: ldm: illegal character in data count

assistant: ```c
int check_tldline(char *line) {
  int i, code, datacnt;
  char address_field_used = (!0), cmd_m_c_t = 0;
  if (line[0] != '/')
    return error("ldm: illegal start character for LDM line");
  switch (line[1]) {
  case 'M':
    cmd_m_c_t = (!0);
  case 'I':
  case 'O':
    code = 0x9;
    break;
  case 'N':
    code = 0xA;
    break;
  case 'L':
    code = 0xA + (*(line + 5) - '0');
    break;
  case 'Q':
    code = 0xB;
    break;
  case 'A':
    address_field_used = 0;
    code = 0x6;
    break;
  case 'T':
    code = 0x6;
    cmd_m_c_t = (!0);
    break;
  case 'Z':
    address_field_used = 0;
  case 'G':
  case 'H':
    code = 0x8;
    break;
  case 'C':
    cmd_m_c_t = (!0);
  case 'B':
  case 'P':
    code = 0xE;
    break;
  default:
    return error("illegal Command type in TLD LDM line");
  }
  code <<= 1;
  if (address_field_used) {
    int addr_hinibble = xtoi(line[2]);
    int addr16 = get_nibbles(line + 2 + 1, 4);
    if (addr16 == -1)
      return error("ldm: illegal char in address field");
    code ^= (int)addr16;
    if (addr_hinibble == -1)
      return error("ldm: illegal char in MS-nibble of address");
    if (cmd_m_c_t)
      code = rotl16(code, 1) ^ addr_hinibble;
  }
  if ((datacnt = xtoi(line[7])) == -1)
    return error("ldm: illegal character in data count");
  for (i = 0; i < datacnt; i++) {
    int dataword = get_nibbles(line + 12 + (4 * i), 4);
    if (dataword == -1)
      return error("ldm: illegal char in data word");
    code = rotl16(code, 1) ^ (int)dataword;
  }
  return code;
}
```