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

```asm
<ASAPInfo_ParseDuration>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %rdi,-0x18(%rbp)
  movl   $0x0,-0x10(%rbp)
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0x8(%rbp)
  mov    -0x10(%rbp),%eax
  cmp    -0x8(%rbp),%eax
  jl     L169
  mov    $0xffffffff,%eax
  jmp    L261
L169:
  mov    -0x10(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x30,%eax
  mov    %eax,-0x4(%rbp)
  cmpl   $0x0,-0x4(%rbp)
  js     L284
  cmpl   $0x9,-0x4(%rbp)
  jle    L136
L284:
  mov    $0xffffffff,%eax
  jmp    L261
L136:
  addl   $0x1,-0x10(%rbp)
  mov    -0x4(%rbp),%eax
  mov    %eax,-0xc(%rbp)
  mov    -0x10(%rbp),%eax
  cmp    -0x8(%rbp),%eax
  jge    L177
  mov    -0x10(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x30,%eax
  mov    %eax,-0x4(%rbp)
  cmpl   $0x0,-0x4(%rbp)
  js     L172
  cmpl   $0x9,-0x4(%rbp)
  jg     L172
  addl   $0x1,-0x10(%rbp)
  mov    -0xc(%rbp),%edx
  mov    %edx,%eax
  shl    $0x2,%eax
  add    %edx,%eax
  add    %eax,%eax
  mov    %eax,%edx
  mov    -0x4(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0xc(%rbp)
L172:
  mov    -0x10(%rbp),%eax
  cmp    -0x8(%rbp),%eax
  jge    L177
  mov    -0x10(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x3a,%al
  jne    L177
  addl   $0x1,-0x10(%rbp)
  mov    -0x10(%rbp),%eax
  cmp    -0x8(%rbp),%eax
  jl     L144
  mov    $0xffffffff,%eax
  jmp    L261
L144:
  mov    -0x10(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x30,%eax
  mov    %eax,-0x4(%rbp)
  cmpl   $0x0,-0x4(%rbp)
  js     L207
  cmpl   $0x5,-0x4(%rbp)
  jle    L125
L207:
  mov    $0xffffffff,%eax
  jmp    L261
L125:
  addl   $0x1,-0x10(%rbp)
  mov    -0xc(%rbp),%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  add    %eax,%eax
  mov    %eax,%edx
  mov    -0x4(%rbp),%eax
  add    %eax,%edx
  mov    %edx,%eax
  shl    $0x2,%eax
  add    %edx,%eax
  add    %eax,%eax
  mov    %eax,-0xc(%rbp)
  mov    -0x10(%rbp),%eax
  cmp    -0x8(%rbp),%eax
  jl     L161
  mov    $0xffffffff,%eax
  jmp    L261
L161:
  mov    -0x10(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x30,%eax
  mov    %eax,-0x4(%rbp)
  cmpl   $0x0,-0x4(%rbp)
  js     L273
  cmpl   $0x9,-0x4(%rbp)
  jle    L334
L273:
  mov    $0xffffffff,%eax
  jmp    L261
L334:
  addl   $0x1,-0x10(%rbp)
  mov    -0x4(%rbp),%eax
  add    %eax,-0xc(%rbp)
L177:
  mov    -0xc(%rbp),%eax
  imul   $0x3e8,%eax,%eax
  mov    %eax,-0xc(%rbp)
  mov    -0x10(%rbp),%eax
  cmp    -0x8(%rbp),%eax
  jl     L388
  mov    -0xc(%rbp),%eax
  jmp    L261
L388:
  mov    -0x10(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2e,%al
  je     L212
  mov    $0xffffffff,%eax
  jmp    L261
L212:
  addl   $0x1,-0x10(%rbp)
  mov    -0x10(%rbp),%eax
  cmp    -0x8(%rbp),%eax
  jl     L387
  mov    $0xffffffff,%eax
  jmp    L261
L387:
  mov    -0x10(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x30,%eax
  mov    %eax,-0x4(%rbp)
  cmpl   $0x0,-0x4(%rbp)
  js     L151
  cmpl   $0x9,-0x4(%rbp)
  jle    L300
L151:
  mov    $0xffffffff,%eax
  jmp    L261
L300:
  addl   $0x1,-0x10(%rbp)
  mov    -0x4(%rbp),%eax
  imul   $0x64,%eax,%eax
  add    %eax,-0xc(%rbp)
  mov    -0x10(%rbp),%eax
  cmp    -0x8(%rbp),%eax
  jl     L349
  mov    -0xc(%rbp),%eax
  jmp    L261
L349:
  mov    -0x10(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x30,%eax
  mov    %eax,-0x4(%rbp)
  cmpl   $0x0,-0x4(%rbp)
  js     L149
  cmpl   $0x9,-0x4(%rbp)
  jle    L81
L149:
  mov    $0xffffffff,%eax
  jmp    L261
L81:
  addl   $0x1,-0x10(%rbp)
  mov    -0x4(%rbp),%edx
  mov    %edx,%eax
  shl    $0x2,%eax
  add    %edx,%eax
  add    %eax,%eax
  add    %eax,-0xc(%rbp)
  mov    -0x10(%rbp),%eax
  cmp    -0x8(%rbp),%eax
  jl     L152
  mov    -0xc(%rbp),%eax
  jmp    L261
L152:
  mov    -0x10(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x30,%eax
  mov    %eax,-0x4(%rbp)
  cmpl   $0x0,-0x4(%rbp)
  js     L155
  cmpl   $0x9,-0x4(%rbp)
  jle    L226
L155:
  mov    $0xffffffff,%eax
  jmp    L261
L226:
  addl   $0x1,-0x10(%rbp)
  mov    -0x4(%rbp),%eax
  add    %eax,-0xc(%rbp)
  mov    -0xc(%rbp),%eax
L261:
  leave
  ret
```

assistant: ```c
int ASAPInfo_ParseDuration(const char *s) {
  int i = 0;
  int n = (int)strlen(s);
  int d;
  int r;
  if (i >= n)
    return -1;
  d = s[i] - 48;
  if (d < 0 || d > 9)
    return -1;
  i++;
  r = d;
  if (i < n) {
    d = s[i] - 48;
    if (d >= 0 && d <= 9) {
      i++;
      r = 10 * r + d;
    }
    if (i < n && s[i] == 58) {
      i++;
      if (i >= n)
        return -1;
      d = s[i] - 48;
      if (d < 0 || d > 5)
        return -1;
      i++;
      r = (6 * r + d) * 10;
      if (i >= n)
        return -1;
      d = s[i] - 48;
      if (d < 0 || d > 9)
        return -1;
      i++;
      r += d;
    }
  }
  r *= 1000;
  if (i >= n)
    return r;
  if (s[i] != 46)
    return -1;
  i++;
  if (i >= n)
    return -1;
  d = s[i] - 48;
  if (d < 0 || d > 9)
    return -1;
  i++;
  r += 100 * d;
  if (i >= n)
    return r;
  d = s[i] - 48;
  if (d < 0 || d > 9)
    return -1;
  i++;
  r += 10 * d;
  if (i >= n)
    return r;
  d = s[i] - 48;
  if (d < 0 || d > 9)
    return -1;
  i++;
  r += d;
  return r;
}
```