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

```asm
<check_log_len>:
  endbr64
  push   %r13
  push   %r12
  mov    $0x80,%r12d
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  mov    %esi,%ebx
  sub    %ebx,%r12d
  sub    $0x8,%rsp
  call   <strlen@plt>
  cmp    %r12d,%eax
  jg     L27
L41:
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  nopl   0x0(%rax)
L27:
  lea    D44(%rip),%r13
  mov    %r13,%rdi
  call   <strlen@plt>
  mov    %r13,%rsi
  mov    %rbp,%rdi
  mov    %eax,%edx
  call   <strncasecmp@plt>
  mov    %r12d,%edx
  lea    D2(%rip),%rsi
  test   %rax,%rax
  je     L19
  lea    D75(%rip),%r13
  mov    %r13,%rdi
  call   <strlen@plt>
  mov    %r13,%rsi
  mov    %rbp,%rdi
  mov    %eax,%edx
  call   <strncasecmp@plt>
  mov    %r12d,%edx
  lea    D76(%rip),%rsi
  test   %rax,%rax
  je     L19
  lea    D50(%rip),%r13
  mov    %r13,%rdi
  call   <strlen@plt>
  mov    %r13,%rsi
  mov    %rbp,%rdi
  mov    %eax,%edx
  call   <strncasecmp@plt>
  mov    %r12d,%edx
  lea    D82(%rip),%rsi
  test   %rax,%rax
  je     L19
  lea    D12(%rip),%r13
  mov    %r13,%rdi
  call   <strlen@plt>
  mov    %r13,%rsi
  mov    %rbp,%rdi
  mov    %eax,%edx
  call   <strncasecmp@plt>
  test   %rax,%rax
  je     L0
  lea    D68(%rip),%r13
  mov    %r13,%rdi
  call   <strlen@plt>
  mov    %r13,%rsi
  mov    %rbp,%rdi
  mov    %eax,%edx
  call   <strncasecmp@plt>
  test   %rax,%rax
  je     L0
  movslq %r12d,%r12
  movb   $0x0,0x0(%rbp,%r12,1)
  jmp    L41
  nopl   0x0(%rax)
L0:
  mov    %r12d,%edx
  lea    D53(%rip),%rsi
L19:
  add    $0x8,%rsp
  mov    %rbp,%rdi
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  jmp    1080 <cut_log@plt>
```

tool_calls: name: extract_symbolic_data
arguments: label: D44
data_type: string
name: extract_symbolic_data
arguments: label: D2
data_type: string
name: extract_symbolic_data
arguments: label: D75
data_type: string
name: extract_symbolic_data
arguments: label: D76
data_type: string
name: extract_symbolic_data
arguments: label: D50
data_type: string
name: extract_symbolic_data
arguments: label: D82
data_type: string
name: extract_symbolic_data
arguments: label: D12
data_type: string
name: extract_symbolic_data
arguments: label: D68
data_type: string
name: extract_symbolic_data
arguments: label: D53
data_type: string

tool: D44: [Dynamic DNS]

tool: D2:  registration

tool: D75: [USB device attached]

tool: D76:  is attached to the router

tool: D50: [USB device detached]

tool: D82:  is detached from the router

tool: D12: [site allowed:

tool: D68: [site blocked:

tool: D53: ]

assistant: ```c
void check_log_len(char *msg, int time_len) {
  int log_len;
  int log_max_len;
  int log_max_size = 128;
  log_len = strlen(msg);
  log_max_len = log_max_size - time_len;
  if (log_len <= log_max_len)
    return;
  if (strncasecmp(msg, "[Dynamic DNS]", strlen("[Dynamic DNS]")) == 0) {
    cut_log(msg, " registration", log_max_len);
    return;
  }
  if (strncasecmp(msg, "[USB device attached]", strlen("[USB device attached]")) == 0) {
    cut_log(msg, " is attached to the router", log_max_len);
    return;
  }
  if (strncasecmp(msg, "[USB device detached]", strlen("[USB device detached]")) == 0) {
    cut_log(msg, " is detached from the router", log_max_len);
    return;
  }
  if ((strncasecmp(msg, "[site allowed:", strlen("[site allowed:")) == 0) || (strncasecmp(msg, "[site blocked:", strlen("[site blocked:")) == 0)) {
    cut_log(msg, "]", log_max_len);
    return;
  }
  msg[log_max_len] = '\0';
  return;
}
```