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

```asm
<get_response_type>:
  endbr64
  push   %r15
  push   %r14
  lea    -0x7(%rsi),%r14d
  push   %r13
  push   %r12
  mov    %esi,%r12d
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %rdx,0x8(%rsp)
  test   %r14d,%r14d
  jle    L212
  mov    %rdi,%r13
  xor    %ebx,%ebx
  lea    D28(%rip),%r15
  jmp    L27
  nopl   0x0(%rax,%rax,1)
L43:
  add    $0x1,%ebx
  add    $0x1,%r13
  cmp    %ebx,%r14d
  je     L81
L27:
  mov    $0x7,%edx
  mov    %r15,%rsi
  mov    %r13,%rdi
  call   <memcmp@plt>
  test   %rax,%rax
  jne    L43
  add    $0x7,%ebx
L127:
  cmp    %ebx,%r14d
  je     L81
  movslq %ebx,%rbx
  xor    %eax,%eax
  cmpb   $0x6c,0x0(%rbp,%rbx,1)
  jne    L76
  mov    0x8(%rsp),%rax
  lea    -0x10(%r12),%r14d
  movl   $0x0,(%rax)
  test   %r14d,%r14d
  jle    L174
  mov    %rbp,%r13
  xor    %ebx,%ebx
  lea    D20(%rip),%r15
  jmp    L114
  nopl   0x0(%rax,%rax,1)
L200:
  add    $0x1,%ebx
  add    $0x1,%r13
  cmp    %r14d,%ebx
  je     L98
L114:
  mov    $0x10,%edx
  mov    %r15,%rsi
  mov    %r13,%rdi
  call   <memcmp@plt>
  test   %rax,%rax
  jne    L200
  add    $0x10,%ebx
  cmp    %r14d,%ebx
  je     L98
L136:
  movslq %ebx,%rbx
  xor    %r14d,%r14d
  add    %rbp,%rbx
  jmp    L106
  nopl   0x0(%rax)
L101:
  movsbl (%rbx),%eax
  lea    (%r14,%r14,4),%edx
  add    $0x1,%rbx
  lea    -0x30(%rax,%rdx,2),%r14d
L106:
  movsbl (%rbx),%edi
  call   <isdigit@plt>
  test   %rax,%rax
  jne    L101
  sub    $0x4,%r12d
  xor    %ebx,%ebx
  test   %r12d,%r12d
  jle    L84
  lea    D29(%rip),%r15
  jmp    L130
  nopl   0x0(%rax)
L170:
  add    $0x1,%ebx
  add    $0x1,%rbp
  cmp    %ebx,%r12d
  je     L98
L130:
  mov    $0x4,%edx
  mov    %r15,%rsi
  mov    %rbp,%rdi
  call   <memcmp@plt>
  test   %rax,%rax
  jne    L170
  add    $0x4,%ebx
L84:
  cmp    %r12d,%ebx
  je     L98
  mov    0x8(%rsp),%rax
  add    %r14d,%ebx
  mov    %ebx,(%rax)
  mov    $0x1,%eax
  test   %ebx,%ebx
  je     L81
L76:
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L98:
  mov    0x8(%rsp),%rax
  mov    (%rax),%ebx
  mov    $0x1,%eax
  test   %ebx,%ebx
  jne    L76
L81:
  add    $0x18,%rsp
  mov    $0xffffffff,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L212:
  xor    %ebx,%ebx
  jmp    L127
L174:
  mov    $0x0,%ebx
  jne    L136
  jmp    L81
```

tool_calls: name: retrieve_data
arguments: label: D28
type_guessed: string
name: retrieve_data
arguments: label: D20
type_guessed: string
name: retrieve_data
arguments: label: D29
type_guessed: string

tool: D28: 5:peers

tool: D20: Content-Length: 

tool: D29: 



assistant: ```c
int get_response_type(char *buffer, int len, int *total_length) {
  int i, content_length = 0;
  for (i = 0; i < len - 7; i++) {
    if (memcmp(&buffer[i], "5:peers", 7) == 0) {
      i = i + 7;
      break;
    }
  }
  if (i == len - 7)
    return -1;
  if (buffer[i] != 'l')
    return 0;
  *total_length = 0;
  for (i = 0; i < len - 16; i++) {
    if (memcmp(&buffer[i], "Content-Length: ", 16) == 0) {
      i = i + 16;
      break;
    }
  }
  if (i != len - 16) {
    while (isdigit(buffer[i])) {
      content_length = content_length * 10 + (buffer[i] - '0');
      i++;
    }
    for (i = 0; i < len - 4; i++) {
      if (memcmp(&buffer[i], "\r\n\r\n", 4) == 0) {
        i = i + 4;
        break;
      }
    }
    if (i != len - 4)
      *total_length = content_length + i;
  }
  if (*total_length == 0)
    return -1;
  else
    return 1;
}
```