user: Please show me the C implementation that matches the assembly code listed below:

```asm
<handle_get_command>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0xf0,%rsp
  mov    %rdi,-0xd8(%rbp)
  mov    %rsi,-0xe0(%rbp)
  mov    %edx,-0xe4(%rbp)
  mov    %rcx,-0xf0(%rbp)
  mov    %r8d,-0xe8(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  cmpl   $0x27,-0xe8(%rbp)
  jg     L36
  mov    -0xe0(%rbp),%rdx
  mov    -0xd8(%rbp),%rax
  mov    $0x1,%r8d
  lea    D3(%rip),%rcx
  mov    $0x2,%esi
  mov    %rax,%rdi
  call   <send_err@plt>
  mov    $0x1,%eax
  jmp    L34
L36:
  lea    -0xb0(%rbp),%rcx
  mov    -0xf0(%rbp),%rax
  mov    $0x28,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <evbuffer_remove@plt>
  lea    -0xb0(%rbp),%rax
  sub    $0xffffffffffffff80,%rax
  mov    %rax,%rdi
  call   <get_uint32@plt>
  mov    %eax,-0xc4(%rbp)
  lea    -0xb0(%rbp),%rax
  add    $0x90,%rax
  mov    %rax,%rdi
  call   <get_uint32@plt>
  mov    %eax,-0xc0(%rbp)
  mov    -0xc4(%rbp),%eax
  add    $0x7,%eax
  lea    0x7(%rax),%edx
  test   %eax,%eax
  cmovs  %edx,%eax
  sar    $0x3,%eax
  mov    %eax,-0xbc(%rbp)
  mov    -0xe8(%rbp),%eax
  sub    $0x27,%eax
  cmp    %eax,-0xbc(%rbp)
  jl     L20
  mov    -0xe0(%rbp),%rdx
  mov    -0xd8(%rbp),%rax
  mov    $0x1,%r8d
  lea    D16(%rip),%rcx
  mov    $0x3,%esi
  mov    %rax,%rdi
  call   <send_err@plt>
  mov    $0x1,%eax
  jmp    L34
L20:
  mov    -0xbc(%rbp),%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0xb8(%rbp)
  cmpq   $0x0,-0xb8(%rbp)
  jne    L66
  mov    -0xe0(%rbp),%rdx
  mov    -0xd8(%rbp),%rax
  mov    $0x1,%r8d
  lea    D19(%rip),%rcx
  mov    $0x4,%esi
  mov    %rax,%rdi
  call   <send_err@plt>
  mov    $0x1,%eax
  jmp    L34
L66:
  mov    -0xbc(%rbp),%edx
  mov    -0xb8(%rbp),%rcx
  mov    -0xf0(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <evbuffer_remove@plt>
  mov    -0xe8(%rbp),%eax
  sub    $0x28,%eax
  sub    -0xbc(%rbp),%eax
  mov    %eax,%edx
  mov    -0xf0(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <evbuffer_drain@plt>
  mov    -0xb8(%rbp),%r8
  mov    -0xc0(%rbp),%edi
  mov    -0xc4(%rbp),%ecx
  mov    -0xd8(%rbp),%rdx
  mov    -0xe0(%rbp),%rsi
  lea    -0xb0(%rbp),%rax
  mov    %r8,%r9
  mov    %edi,%r8d
  mov    %rax,%rdi
  call   <start_request@plt>
  mov    $0x0,%eax
L34:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L31
  call   <__stack_chk_fail@plt>
L31:
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: tag: D3
type_guessed: string
name: extract_symbolic_data
arguments: tag: D16
type_guessed: string
name: extract_symbolic_data
arguments: tag: D19
type_guessed: string

tool: D3: GET too short

tool: D16: No room for bitfield

tool: D19: Internal error

assistant: ```c
int handle_get_command(struct conn *conn, const uint8_t *req_id, uint32_t flags, struct evbuffer *input, uint32_t cmd_len) {
  if (cmd_len < 40) {
    send_err(conn, 2, req_id, "GET too short", 1);
    return 1;
  }
  uint8_t get_header[40];
  evbuffer_remove(input, get_header, 40);
  uint32_t n_bits = get_uint32(get_header + 32);
  uint32_t block_size = get_uint32(get_header + 36);
  uint32_t bf_len = (n_bits + 7) / 8;
  if (bf_len > cmd_len - 40) {
    send_err(conn, 3, req_id, "No room for bitfield", 1);
    return 1;
  }
  uint8_t *bits = malloc(bf_len);
  if (!bits) {
    send_err(conn, 4, req_id, "Internal error", 1);
    return 1;
  }
  evbuffer_remove(input, bits, bf_len);
  evbuffer_drain(input, cmd_len - 40 - bf_len);
  start_request(get_header, req_id, conn, n_bits, block_size, bits);
  return 0;
}
```