user: Translate the below assembly code into C programming language:

```asm
<check_log_len>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rdi,%rbx
  mov    %esi,%r12d
  call   <strlen@plt>
  mov    $0x80,%ebp
  sub    %r12d,%ebp
  cmp    %ebp,%eax
  jg     L12
L109:
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L12:
  lea    D62(%rip),%r12
  mov    %r12,%rdi
  call   <strlen@plt>
  mov    %eax,%edx
  mov    %r12,%rsi
  mov    %rbx,%rdi
  call   <strncasecmp@plt>
  test   %rax,%rax
  je     L39
  lea    D79(%rip),%r12
  mov    %r12,%rdi
  call   <strlen@plt>
  mov    %eax,%edx
  mov    %r12,%rsi
  mov    %rbx,%rdi
  call   <strncasecmp@plt>
  test   %rax,%rax
  je     L75
  lea    D58(%rip),%r12
  mov    %r12,%rdi
  call   <strlen@plt>
  mov    %eax,%edx
  mov    %r12,%rsi
  mov    %rbx,%rdi
  call   <strncasecmp@plt>
  test   %rax,%rax
  je     L15
  lea    D67(%rip),%r12
  mov    %r12,%rdi
  call   <strlen@plt>
  mov    %eax,%edx
  mov    %r12,%rsi
  mov    %rbx,%rdi
  call   <strncasecmp@plt>
  test   %rax,%rax
  je     L32
  lea    D54(%rip),%r12
  mov    %r12,%rdi
  call   <strlen@plt>
  mov    %eax,%edx
  mov    %r12,%rsi
  mov    %rbx,%rdi
  call   <strncasecmp@plt>
  test   %rax,%rax
  je     L32
  movslq %ebp,%rbp
  movb   $0x0,(%rbx,%rbp,1)
  jmp    L109
L39:
  mov    %ebp,%edx
  lea    D36(%rip),%rsi
  mov    %rbx,%rdi
  call   <cut_log@plt>
  jmp    L109
L75:
  mov    %ebp,%edx
  lea    D57(%rip),%rsi
  mov    %rbx,%rdi
  call   <cut_log@plt>
  jmp    L109
L15:
  mov    %ebp,%edx
  lea    D44(%rip),%rsi
  mov    %rbx,%rdi
  call   <cut_log@plt>
  jmp    L109
L32:
  mov    %ebp,%edx
  lea    D74(%rip),%rsi
  mov    %rbx,%rdi
  call   <cut_log@plt>
  jmp    L109
```

tool_calls: name: disassemble_data
arguments: data_label: D62
type: string
name: disassemble_data
arguments: data_label: D79
type: string
name: disassemble_data
arguments: data_label: D58
type: string
name: disassemble_data
arguments: data_label: D67
type: string
name: disassemble_data
arguments: data_label: D54
type: string
name: disassemble_data
arguments: data_label: D36
type: string
name: disassemble_data
arguments: data_label: D57
type: string
name: disassemble_data
arguments: data_label: D44
type: string
name: disassemble_data
arguments: data_label: D74
type: string

tool: D62: [Dynamic DNS]

tool: D79: [USB device attached]

tool: D58: [USB device detached]

tool: D67: [site allowed:

tool: D54: [site blocked:

tool: D36:  registration

tool: D57:  is attached to the router

tool: D44:  is detached from the router

tool: D74: ]

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;
}
```