user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<phredQStr2Int>:
  endbr64
  push   %rbp
  mov    %rdi,%rbp
  mov    %rsi,%rdi
  push   %rbx
  mov    %rsi,%rbx
  sub    $0x8,%rsp
  call   <strlen@plt>
  test   %eax,%eax
  jle    L31
  mov    %eax,%ecx
  cltq
  lea    0x0(%rbp,%rax,4),%rdx
  cmp    %rdx,%rbx
  setae  %dl
  add    %rbx,%rax
  cmp    %rax,%rbp
  setae  %al
  or     %al,%dl
  je     L8
  lea    -0x1(%rcx),%eax
  cmp    $0xe,%eax
  jbe    L8
  mov    %ecx,%esi
  movdqa D4(%rip),%xmm4
  mov    %rbx,%rdx
  mov    %rbp,%rax
  shr    $0x4,%esi
  pxor   %xmm6,%xmm6
  pxor   %xmm3,%xmm3
  sub    $0x1,%esi
  shl    $0x4,%rsi
  lea    0x10(%rbx,%rsi,1),%rsi
  nopl   0x0(%rax,%rax,1)
L139:
  movdqu (%rdx),%xmm0
  movdqa %xmm6,%xmm2
  add    $0x10,%rdx
  add    $0x40,%rax
  pcmpgtb %xmm0,%xmm2
  movdqa %xmm0,%xmm1
  punpcklbw %xmm2,%xmm1
  punpckhbw %xmm2,%xmm0
  movdqa %xmm3,%xmm2
  paddw  %xmm4,%xmm1
  paddw  %xmm4,%xmm0
  pcmpgtw %xmm1,%xmm2
  movdqa %xmm1,%xmm5
  punpckhwd %xmm2,%xmm1
  punpcklwd %xmm2,%xmm5
  movdqa %xmm0,%xmm2
  movups %xmm1,-0x30(%rax)
  movdqa %xmm3,%xmm1
  pcmpgtw %xmm0,%xmm1
  movups %xmm5,-0x40(%rax)
  punpcklwd %xmm1,%xmm2
  punpckhwd %xmm1,%xmm0
  movups %xmm2,-0x20(%rax)
  movups %xmm0,-0x10(%rax)
  cmp    %rsi,%rdx
  jne    L139
  mov    %ecx,%eax
  and    $0xfffffff0,%eax
  test   $0xf,%cl
  je     L31
  mov    %eax,%esi
  movsbl (%rbx,%rsi,1),%edi
  lea    0x0(,%rsi,4),%rdx
  sub    $0x21,%edi
  mov    %edi,0x0(%rbp,%rsi,4)
  lea    0x1(%rax),%esi
  cmp    %esi,%ecx
  jle    L31
  movslq %esi,%rsi
  movsbl (%rbx,%rsi,1),%esi
  sub    $0x21,%esi
  mov    %esi,0x4(%rbp,%rdx,1)
  lea    0x2(%rax),%esi
  cmp    %esi,%ecx
  jle    L31
  movslq %esi,%rsi
  movsbl (%rbx,%rsi,1),%esi
  sub    $0x21,%esi
  mov    %esi,0x8(%rbp,%rdx,1)
  lea    0x3(%rax),%esi
  cmp    %esi,%ecx
  jle    L31
  movslq %esi,%rsi
  movsbl (%rbx,%rsi,1),%esi
  sub    $0x21,%esi
  mov    %esi,0xc(%rbp,%rdx,1)
  lea    0x4(%rax),%esi
  cmp    %esi,%ecx
  jle    L31
  movslq %esi,%rsi
  movsbl (%rbx,%rsi,1),%esi
  sub    $0x21,%esi
  mov    %esi,0x10(%rbp,%rdx,1)
  lea    0x5(%rax),%esi
  cmp    %esi,%ecx
  jle    L31
  movslq %esi,%rsi
  movsbl (%rbx,%rsi,1),%esi
  sub    $0x21,%esi
  mov    %esi,0x14(%rbp,%rdx,1)
  lea    0x6(%rax),%esi
  cmp    %esi,%ecx
  jle    L31
  movslq %esi,%rsi
  movsbl (%rbx,%rsi,1),%esi
  sub    $0x21,%esi
  mov    %esi,0x18(%rbp,%rdx,1)
  lea    0x7(%rax),%esi
  cmp    %esi,%ecx
  jle    L31
  movslq %esi,%rsi
  movsbl (%rbx,%rsi,1),%esi
  sub    $0x21,%esi
  mov    %esi,0x1c(%rbp,%rdx,1)
  lea    0x8(%rax),%esi
  cmp    %esi,%ecx
  jle    L31
  movslq %esi,%rsi
  movsbl (%rbx,%rsi,1),%esi
  sub    $0x21,%esi
  mov    %esi,0x20(%rbp,%rdx,1)
  lea    0x9(%rax),%esi
  cmp    %esi,%ecx
  jle    L31
  movslq %esi,%rsi
  movsbl (%rbx,%rsi,1),%esi
  sub    $0x21,%esi
  mov    %esi,0x24(%rbp,%rdx,1)
  lea    0xa(%rax),%esi
  cmp    %esi,%ecx
  jle    L31
  movslq %esi,%rsi
  movsbl (%rbx,%rsi,1),%esi
  sub    $0x21,%esi
  mov    %esi,0x28(%rbp,%rdx,1)
  lea    0xb(%rax),%esi
  cmp    %esi,%ecx
  jle    L31
  movslq %esi,%rsi
  movsbl (%rbx,%rsi,1),%esi
  sub    $0x21,%esi
  mov    %esi,0x2c(%rbp,%rdx,1)
  lea    0xc(%rax),%esi
  cmp    %esi,%ecx
  jle    L31
  movslq %esi,%rsi
  movsbl (%rbx,%rsi,1),%esi
  sub    $0x21,%esi
  mov    %esi,0x30(%rbp,%rdx,1)
  lea    0xd(%rax),%esi
  cmp    %esi,%ecx
  jle    L31
  movslq %esi,%rsi
  add    $0xe,%eax
  movsbl (%rbx,%rsi,1),%esi
  sub    $0x21,%esi
  mov    %esi,0x34(%rbp,%rdx,1)
  cmp    %eax,%ecx
  jle    L31
  cltq
  movsbl (%rbx,%rax,1),%eax
  sub    $0x21,%eax
  mov    %eax,0x38(%rbp,%rdx,1)
L31:
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  ret
  nopl   0x0(%rax)
L8:
  mov    %ecx,%ecx
  xor    %eax,%eax
  nopl   0x0(%rax)
L107:
  movsbl (%rbx,%rax,1),%edx
  sub    $0x21,%edx
  mov    %edx,0x0(%rbp,%rax,4)
  add    $0x1,%rax
  cmp    %rax,%rcx
  jne    L107
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  ret
```

tool_calls: name: retrieve_data
arguments: label: D4
type_guessed: byte[16]

tool: {"D4": [0xdf,0xff,0xdf,0xff,0xdf,0xff,0xdf,0xff,0xdf,0xff,0xdf,0xff,0xdf,0xff,0xdf,0xff]}

assistant: ```c
void phredQStr2Int(int *dest, char *src) {
  int i, n;
  n = strlen(src);
  for (i = 0; i < n; i++) {
    dest[i] = (int)src[i] - 33;
  }
}
```