user: 请将以下的汇编代码转换成C语言代码:

```asm
<parse_uint64>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %rsi,-0x20(%rbp)
  mov    -0x18(%rbp),%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  setne  %al
  movzbl %al,%eax
  mov    %eax,%ecx
  lea    D6(%rip),%rax
  mov    %rax,%rdx
  mov    $0x563,%esi
  lea    D28(%rip),%rax
  mov    %rax,%rdi
  call   <test_true@plt>
  test   %eax,%eax
  jne    L20
  lea    D35(%rip),%rax
  mov    %rax,%rdx
  mov    $0x564,%esi
  lea    D28(%rip),%rax
  mov    %rax,%rdi
  call   <test_info@plt>
  mov    $0xffffffff,%eax
  jmp    L18
L20:
  mov    -0x20(%rbp),%rax
  movl   $0x0,(%rax)
  jmp    L54
L4:
  mov    -0x20(%rbp),%rax
  mov    (%rax),%eax
  test   %eax,%eax
  jle    L36
  mov    -0x18(%rbp),%rax
  mov    %rax,%rcx
  lea    D68(%rip),%rax
  mov    %rax,%rdx
  mov    $0x569,%esi
  lea    D28(%rip),%rax
  mov    %rax,%rdi
  call   <test_error@plt>
  mov    $0xffffffff,%eax
  jmp    L18
L36:
  mov    -0x20(%rbp),%rax
  mov    (%rax),%edx
  mov    %edx,%eax
  shl    $0x2,%eax
  add    %edx,%eax
  add    %eax,%eax
  mov    %eax,%edx
  mov    -0x20(%rbp),%rax
  mov    %edx,(%rax)
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,%edi
  call   <isdigit@plt>
  test   %rax,%rax
  setne  %al
  movzbl %al,%eax
  mov    %eax,%ecx
  lea    D48(%rip),%rax
  mov    %rax,%rdx
  mov    $0x56d,%esi
  lea    D28(%rip),%rax
  mov    %rax,%rdi
  call   <test_true@plt>
  test   %eax,%eax
  jne    L65
  mov    -0x18(%rbp),%rax
  mov    %rax,%rcx
  lea    D39(%rip),%rax
  mov    %rax,%rdx
  mov    $0x56e,%esi
  lea    D28(%rip),%rax
  mov    %rax,%rdi
  call   <test_error@plt>
  mov    $0xffffffff,%eax
  jmp    L18
L65:
  mov    -0x20(%rbp),%rax
  mov    (%rax),%edx
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x30,%eax
  add    %eax,%edx
  mov    -0x20(%rbp),%rax
  mov    %edx,(%rax)
  addq   $0x1,-0x8(%rbp)
L54:
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L4
  mov    $0x1,%eax
L18:
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: tag: D6
data_type: string
name: extract_symbolic_data
arguments: tag: D28
data_type: string
name: extract_symbolic_data
arguments: tag: D35
data_type: string
name: extract_symbolic_data
arguments: tag: D68
data_type: string
name: extract_symbolic_data
arguments: tag: D48
data_type: string
name: extract_symbolic_data
arguments: tag: D39
data_type: string

tool: D6: *p

tool: D28: /scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/papyrussolution/OpenPapyrus/refs/heads/master/Src/OSF/OpenSSL-111/test/evp_test.c

tool: D35: Invalid empty integer value

tool: D68: Integer overflow in string %s

tool: D48: isdigit((unsigned char)*p)

tool: D39: Invalid character in string %s

assistant: ```c
int parse_uint64(const char *value, uint64_t *pr) {
  const char *p = value;
  if (!test_true("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/papyrussolution/OpenPapyrus/refs/heads/master/Src/OSF/OpenSSL-111/test/evp_test.c", 1379, "*p", (*p) != 0)) {
    test_info("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/papyrussolution/OpenPapyrus/refs/heads/master/Src/OSF/OpenSSL-111/test/evp_test.c", 1380, "Invalid empty integer value");
    return -1;
  }
  for (*pr = 0; *p;) {
    if (*pr > ((uint64_t)-1) / 10) {
      test_error("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/papyrussolution/OpenPapyrus/refs/heads/master/Src/OSF/OpenSSL-111/test/evp_test.c", 1385, "Integer overflow in string %s", value);
      return -1;
    }
    *pr *= 10;
    if (!test_true("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/papyrussolution/OpenPapyrus/refs/heads/master/Src/OSF/OpenSSL-111/test/evp_test.c", 1389, "isdigit((unsigned char)*p)", (isdigit((unsigned char)*p)) != 0)) {
      test_error("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/papyrussolution/OpenPapyrus/refs/heads/master/Src/OSF/OpenSSL-111/test/evp_test.c", 1390, "Invalid character in string %s", value);
      return -1;
    }
    *pr += *p - '0';
    p++;
  }
  return 1;
}
```