user: What is the c source code of the assembly code below:

```asm
<process_go_command_read>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x60,%rsp
  mov    %edi,-0x54(%rbp)
  mov    %esi,-0x58(%rbp)
  mov    %rdx,-0x60(%rbp)
  lea    D119(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    -0x54(%rbp),%eax
  cmp    -0x58(%rbp),%eax
  jl     L83
  lea    D88(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0x0,%eax
  jmp    L155
L83:
  movq   $0x0,-0x38(%rbp)
  mov    -0x54(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x60(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  mov    $0x10,%edx
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <strtoul@plt>
  mov    %rax,-0x30(%rbp)
  cmpq   $0x10000,-0x30(%rbp)
  jbe    L141
  mov    -0x30(%rbp),%rax
  mov    %rax,%rsi
  lea    D114(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%eax
  jmp    L155
L141:
  mov    $0xffffffff,%eax
  mov    %rax,%rdx
  mov    $0x1,%esi
  mov    $0x0,%edi
  call   <crc32@plt>
  mov    %rax,-0x28(%rbp)
  mov    -0x38(%rbp),%rax
  movzbl %al,%eax
  mov    -0x28(%rbp),%rdx
  mov    $0x4,%esi
  mov    %eax,%edi
  call   <crc32@plt>
  mov    %rax,-0x28(%rbp)
  mov    -0x38(%rbp),%rax
  mov    $0x4,%esi
  mov    %rax,%rdi
  call   <reverse_bits@plt>
  mov    %rax,-0x38(%rbp)
  mov    -0x28(%rbp),%rax
  mov    $0x20,%esi
  mov    %rax,%rdi
  call   <reverse_bits@plt>
  mov    %rax,-0x28(%rbp)
  mov    -0x30(%rbp),%rax
  add    $0xa,%eax
  mov    %eax,-0x44(%rbp)
  mov    -0x44(%rbp),%eax
  cltq
  mov    %rax,%rdi
  call   <malloc@plt>
  mov    %rax,-0x20(%rbp)
  cmpq   $0x0,-0x20(%rbp)
  jne    L136
  lea    D68(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0x0,%eax
  jmp    L155
L136:
  mov    -0x44(%rbp),%edx
  mov    -0x20(%rbp),%rax
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <memset@plt>
  mov    -0x20(%rbp),%rax
  movb   $0x0,(%rax)
  mov    -0x20(%rbp),%rax
  movzbl (%rax),%eax
  mov    -0x38(%rbp),%rdx
  add    %edx,%edx
  or     %eax,%edx
  mov    -0x20(%rbp),%rax
  mov    %dl,(%rax)
  mov    -0x20(%rbp),%rax
  movzbl (%rax),%eax
  mov    -0x28(%rbp),%rdx
  shl    $0x5,%edx
  or     %eax,%edx
  mov    -0x20(%rbp),%rax
  mov    %dl,(%rax)
  mov    -0x28(%rbp),%rax
  shr    $0x3,%rax
  mov    %rax,%rdx
  mov    -0x20(%rbp),%rax
  add    $0x1,%rax
  mov    %dl,(%rax)
  mov    -0x28(%rbp),%rax
  shr    $0xb,%rax
  mov    %rax,%rdx
  mov    -0x20(%rbp),%rax
  add    $0x2,%rax
  mov    %dl,(%rax)
  mov    -0x28(%rbp),%rax
  shr    $0x13,%rax
  mov    %rax,%rdx
  mov    -0x20(%rbp),%rax
  add    $0x3,%rax
  mov    %dl,(%rax)
  mov    -0x28(%rbp),%rax
  shr    $0x1b,%rax
  mov    %rax,%rdx
  mov    -0x20(%rbp),%rax
  add    $0x4,%rax
  mov    %dl,(%rax)
  mov    -0x44(%rbp),%edx
  mov    -0x20(%rbp),%rax
  mov    %rax,%rsi
  lea    D37(%rip),%rax
  mov    %rax,%rdi
  call   <dump_jreg@plt>
  mov    -0x30(%rbp),%rax
  add    $0x9,%rax
  shl    $0x3,%eax
  add    $0x1,%eax
  mov    %eax,%edx
  mov    -0x20(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <or1ksim_jtag_shift_dr@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x18(%rbp)
  mov    -0x44(%rbp),%edx
  mov    -0x20(%rbp),%rax
  mov    %rax,%rsi
  lea    D50(%rip),%rax
  mov    %rax,%rdi
  call   <dump_jreg@plt>
  mov    -0x30(%rbp),%rax
  mov    %rax,%rdi
  call   <malloc@plt>
  mov    %rax,-0x10(%rbp)
  cmpq   $0x0,-0x10(%rbp)
  jne    L69
  lea    D70(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    -0x20(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    $0x0,%eax
  jmp    L155
L69:
  movl   $0x0,-0x48(%rbp)
  jmp    L149
L30:
  mov    -0x48(%rbp),%eax
  cltq
  lea    0x4(%rax),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  shr    $0x5,%al
  mov    %eax,%ecx
  mov    -0x48(%rbp),%eax
  cltq
  lea    0x5(%rax),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x3,%eax
  or     %eax,%ecx
  mov    -0x48(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  mov    %ecx,%edx
  mov    %dl,(%rax)
  addl   $0x1,-0x48(%rbp)
L149:
  mov    -0x48(%rbp),%eax
  cltq
  cmp    %rax,-0x30(%rbp)
  ja     L30
  mov    -0x30(%rbp),%rax
  lea    0x4(%rax),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  shr    $0x5,%al
  mov    %eax,%ecx
  mov    -0x30(%rbp),%rax
  lea    0x5(%rax),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x3,%eax
  or     %ecx,%eax
  and    $0xf,%eax
  mov    %al,-0x49(%rbp)
  mov    -0x30(%rbp),%rax
  lea    0x5(%rax),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  shr    %al
  movzbl %al,%edx
  mov    -0x30(%rbp),%rax
  lea    0x6(%rax),%rcx
  mov    -0x20(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x7,%rax
  or     %rax,%rdx
  mov    -0x30(%rbp),%rax
  lea    0x7(%rax),%rcx
  mov    -0x20(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0xf,%rax
  or     %rax,%rdx
  mov    -0x30(%rbp),%rax
  lea    0x8(%rax),%rcx
  mov    -0x20(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x17,%rax
  or     %rax,%rdx
  mov    -0x30(%rbp),%rax
  lea    0x9(%rax),%rcx
  mov    -0x20(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x1f,%rax
  or     %rdx,%rax
  mov    %rax,-0x8(%rbp)
  movl   $0x0,-0x48(%rbp)
  jmp    L133
L46:
  mov    -0x48(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    $0x8,%esi
  mov    %rax,%rdi
  call   <reverse_bits@plt>
  mov    %rax,%rcx
  mov    -0x48(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  mov    %ecx,%edx
  mov    %dl,(%rax)
  addl   $0x1,-0x48(%rbp)
L133:
  mov    -0x48(%rbp),%eax
  cltq
  cmp    %rax,-0x30(%rbp)
  ja     L46
  movzbl -0x49(%rbp),%eax
  mov    $0x4,%esi
  mov    %rax,%rdi
  call   <reverse_bits@plt>
  mov    %al,-0x49(%rbp)
  mov    -0x8(%rbp),%rax
  mov    $0x20,%esi
  mov    %rax,%rdi
  call   <reverse_bits@plt>
  mov    %rax,-0x8(%rbp)
  mov    $0xffffffff,%eax
  mov    %rax,-0x40(%rbp)
  movl   $0x0,-0x48(%rbp)
  jmp    L74
L90:
  mov    -0x48(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    -0x40(%rbp),%rdx
  mov    $0x8,%esi
  mov    %eax,%edi
  call   <crc32@plt>
  mov    %rax,-0x40(%rbp)
  addl   $0x1,-0x48(%rbp)
L74:
  mov    -0x48(%rbp),%eax
  cltq
  cmp    %rax,-0x30(%rbp)
  ja     L90
  movzbl -0x49(%rbp),%eax
  mov    -0x40(%rbp),%rdx
  mov    $0x4,%esi
  mov    %eax,%edi
  call   <crc32@plt>
  mov    %rax,-0x40(%rbp)
  lea    D55(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movl   $0x0,-0x48(%rbp)
  jmp    L130
L15:
  mov    -0x48(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,%esi
  lea    D76(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  addl   $0x1,-0x48(%rbp)
L130:
  mov    -0x48(%rbp),%eax
  cltq
  cmp    %rax,-0x30(%rbp)
  ja     L15
  mov    $0xa,%edi
  call   <putchar@plt>
  movzbl -0x49(%rbp),%eax
  mov    %eax,%esi
  lea    D75(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x8(%rbp),%rax
  cmp    -0x40(%rbp),%rax
  je     L27
  lea    D30(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    -0x8(%rbp),%rax
  mov    %rax,%rsi
  lea    D43(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x40(%rbp),%rax
  mov    %rax,%rsi
  lea    D126(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L27:
  mov    -0x18(%rbp),%rax
  movq   %rax,%xmm0
  lea    D10(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  mov    -0x10(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    -0x20(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    $0x1,%eax
L155:
  leave
  ret
```

tool_calls: name: parse_data
arguments: label: D119
data_type: string
name: parse_data
arguments: label: D88
data_type: string
name: parse_data
arguments: label: D114
data_type: string
name: parse_data
arguments: label: D68
data_type: string
name: parse_data
arguments: label: D37
data_type: string
name: parse_data
arguments: label: D50
data_type: string
name: parse_data
arguments: label: D70
data_type: string
name: parse_data
arguments: label: D55
data_type: string
name: parse_data
arguments: label: D76
data_type: string
name: parse_data
arguments: label: D75
data_type: string
name: parse_data
arguments: label: D30
data_type: string
name: parse_data
arguments: label: D43
data_type: string
name: parse_data
arguments: label: D126
data_type: string
name: parse_data
arguments: label: D10
data_type: string

tool: D119: Processing GO_COMMAND_READ.

tool: D88: GO_COMMAND_READ usage: GO_COMMAND_READ <length>

tool: D114: ERROR: GO_COMMAND_READ length 0x%lx too large


tool: D68: ERROR: malloc forGO_COMMAND_READ register failed.

tool: D37:   shifting in

tool: D50:   shifted out

tool: D70: ERROR: data malloc for GO_COMMAND_READ register failed.

tool: D55:   data:         

tool: D76: %02x

tool: D75:   status:       0x%01x


tool: D30:   CRC mismatch

tool: D43:     CRC out:      0x%08lx


tool: D126:     CRC computed: 0x%08lx


tool: D10:   time taken:   %.12fs


assistant: ```c
int process_go_command_read(int next_jreg, int argc, char *argv[]) {
  printf("Processing GO_COMMAND_READ.\n");
  if (next_jreg >= argc) {
    printf("GO_COMMAND_READ usage: GO_COMMAND_READ <length>\n");
    return 0;
  }
  unsigned long int cmd = 0;
  unsigned long int data_bytes = strtoul(argv[next_jreg], NULL, 16);
  if (data_bytes < 0) {
    printf("ERROR: GO_COMMAND_READ length 0x%lx too small\n", data_bytes);
    return 0;
  } else if (data_bytes > 0x10000) {
    printf("ERROR: GO_COMMAND_READ length 0x%lx too large\n", data_bytes);
    return 0;
  }
  unsigned long int crc_in;
  crc_in = crc32(0, 1, 0xffffffff);
  crc_in = crc32(cmd, 4, crc_in);
  cmd = reverse_bits(cmd, 4);
  crc_in = reverse_bits(crc_in, 32);
  int num_bytes = 10 + data_bytes;
  unsigned char *jreg = malloc(num_bytes);
  if (NULL == jreg) {
    printf("ERROR: malloc forGO_COMMAND_READ register failed.\n");
    return 0;
  }
  memset(jreg, 0, num_bytes);
  jreg[0] = 0x0;
  jreg[0] |= cmd << 1;
  jreg[0] |= crc_in << 5;
  jreg[1] = crc_in >> 3;
  jreg[2] = crc_in >> 11;
  jreg[3] = crc_in >> 19;
  jreg[4] = crc_in >> 27;
  dump_jreg("  shifting in", jreg, num_bytes);
  double t = or1ksim_jtag_shift_dr(jreg, 32 + 4 + data_bytes * 8 + 32 + 4 + 1);
  dump_jreg("  shifted out", jreg, num_bytes);
  unsigned char *data = malloc(data_bytes);
  unsigned char status;
  unsigned long int crc_out;
  if (NULL == data) {
    printf("ERROR: data malloc for GO_COMMAND_READ register failed.\n");
    free(jreg);
    return 0;
  }
  int i;
  for (i = 0; i < data_bytes; i++) {
    data[i] = ((jreg[i + 4] >> 5) | (jreg[i + 5] << 3)) & 0xff;
  }
  status = ((jreg[data_bytes + 4] >> 5) | (jreg[data_bytes + 5] << 3)) & 0xf;
  crc_out = ((unsigned long int)jreg[data_bytes + 5] >> 1) | ((unsigned long int)jreg[data_bytes + 6] << 7) | ((unsigned long int)jreg[data_bytes + 7] << 15) | ((unsigned long int)jreg[data_bytes + 8] << 23) | ((unsigned long int)jreg[data_bytes + 9] << 31);
  for (i = 0; i < data_bytes; i++) {
    data[i] = reverse_bits(data[i], 8);
  }
  status = reverse_bits(status, 4);
  crc_out = reverse_bits(crc_out, 32);
  unsigned long int crc_computed = 0xffffffff;
  for (i = 0; i < data_bytes; i++) {
    crc_computed = crc32(data[i], 8, crc_computed);
  }
  crc_computed = crc32(status, 4, crc_computed);
  printf("  data:         ");
  for (i = 0; i < data_bytes; i++) {
    printf("%02x", data[i]);
  }
  printf("\n");
  printf("  status:       0x%01x\n", status);
  if (crc_out != crc_computed) {
    printf("  CRC mismatch\n");
    printf("    CRC out:      0x%08lx\n", crc_out);
    printf("    CRC computed: 0x%08lx\n", crc_computed);
  }
  printf("  time taken:   %.12fs\n", t);
  free(data);
  free(jreg);
  return 1;
}
```