user: 下面的汇编指令对应的C源代码是什么：

```asm
<check_log_len>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %esi,-0x1c(%rbp)
  movl   $0x80,-0xc(%rbp)
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0x8(%rbp)
  mov    -0xc(%rbp),%eax
  sub    -0x1c(%rbp),%eax
  mov    %eax,-0x4(%rbp)
  mov    -0x8(%rbp),%eax
  cmp    -0x4(%rbp),%eax
  jle    L29
  lea    D138(%rip),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,%edx
  mov    -0x18(%rbp),%rax
  lea    D138(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncasecmp@plt>
  test   %rax,%rax
  jne    L102
  mov    -0x4(%rbp),%edx
  mov    -0x18(%rbp),%rax
  lea    D99(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <cut_log@plt>
  jmp    L76
L102:
  lea    D56(%rip),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,%edx
  mov    -0x18(%rbp),%rax
  lea    D56(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncasecmp@plt>
  test   %rax,%rax
  jne    L0
  mov    -0x4(%rbp),%edx
  mov    -0x18(%rbp),%rax
  lea    D40(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <cut_log@plt>
  jmp    L76
L0:
  lea    D85(%rip),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,%edx
  mov    -0x18(%rbp),%rax
  lea    D85(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncasecmp@plt>
  test   %rax,%rax
  jne    L82
  mov    -0x4(%rbp),%edx
  mov    -0x18(%rbp),%rax
  lea    D29(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <cut_log@plt>
  jmp    L76
L82:
  lea    D47(%rip),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,%edx
  mov    -0x18(%rbp),%rax
  lea    D47(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncasecmp@plt>
  test   %rax,%rax
  je     L85
  lea    D82(%rip),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,%edx
  mov    -0x18(%rbp),%rax
  lea    D82(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncasecmp@plt>
  test   %rax,%rax
  jne    L96
L85:
  mov    -0x4(%rbp),%edx
  mov    -0x18(%rbp),%rax
  lea    D45(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <cut_log@plt>
  jmp    L76
L96:
  mov    -0x4(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  jmp    L76
L29:
  nop
L76:
  leave
  ret
```

tool_calls: name: unpack_data
arguments: label: D138
type_guessed: string
name: unpack_data
arguments: label: D99
type_guessed: string
name: unpack_data
arguments: label: D56
type_guessed: string
name: unpack_data
arguments: label: D40
type_guessed: string
name: unpack_data
arguments: label: D85
type_guessed: string
name: unpack_data
arguments: label: D29
type_guessed: string
name: unpack_data
arguments: label: D47
type_guessed: string
name: unpack_data
arguments: label: D82
type_guessed: string
name: unpack_data
arguments: label: D45
type_guessed: string

tool: D138: [Dynamic DNS]

tool: D99:  registration

tool: D56: [USB device attached]

tool: D40:  is attached to the router

tool: D85: [USB device detached]

tool: D29:  is detached from the router

tool: D47: [site allowed:

tool: D82: [site blocked:

tool: D45: ]

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