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

```asm
<ASAPInfo_ParseDuration>:
  endbr64
  push   %rbx
  mov    %rdi,%rbx
  call   <strlen@plt>
  test   %eax,%eax
  jle    L148
  mov    %rax,%rdx
  movsbl (%rbx),%eax
  sub    $0x30,%eax
  cmp    $0x9,%eax
  ja     L182
  cmp    $0x1,%edx
  jle    L230
  movsbl 0x1(%rbx),%ecx
  sub    $0x30,%ecx
  cmp    $0x9,%ecx
  ja     L39
  lea    (%rax,%rax,4),%eax
  lea    (%rcx,%rax,2),%eax
  cmp    $0x2,%edx
  jg     L253
L230:
  imul   $0x3e8,%eax,%eax
L261:
  pop    %rbx
  ret
L253:
  mov    $0x2,%edi
  jmp    L196
L39:
  mov    $0x1,%edi
L196:
  movslq %edi,%rcx
  cmpb   $0x3a,(%rbx,%rcx,1)
  je     L37
  imul   $0x3e8,%eax,%eax
  jmp    L119
L37:
  lea    0x1(%rdi),%ecx
  cmp    %ecx,%edx
  jle    L271
  movslq %ecx,%rcx
  movsbl (%rbx,%rcx,1),%ecx
  sub    $0x30,%ecx
  cmp    $0x5,%ecx
  ja     L30
  lea    0x2(%rdi),%esi
  lea    (%rax,%rax,2),%eax
  lea    (%rcx,%rax,2),%eax
  lea    (%rax,%rax,4),%eax
  add    %eax,%eax
  cmp    %esi,%edx
  jle    L264
  movslq %esi,%rsi
  movsbl (%rbx,%rsi,1),%ecx
  sub    $0x30,%ecx
  cmp    $0x9,%ecx
  ja     L92
  add    $0x3,%edi
  add    %ecx,%eax
  imul   $0x3e8,%eax,%eax
  cmp    %edi,%edx
  jle    L261
L119:
  movslq %edi,%rcx
  cmpb   $0x2e,(%rbx,%rcx,1)
  jne    L170
  lea    0x1(%rdi),%ecx
  cmp    %ecx,%edx
  jle    L1
  movslq %ecx,%rcx
  movsbl (%rbx,%rcx,1),%ecx
  sub    $0x30,%ecx
  cmp    $0x9,%ecx
  ja     L118
  lea    0x2(%rdi),%esi
  imul   $0x64,%ecx,%ecx
  add    %ecx,%eax
  cmp    %esi,%edx
  jle    L261
  movslq %esi,%rsi
  movsbl (%rbx,%rsi,1),%ecx
  sub    $0x30,%ecx
  cmp    $0x9,%ecx
  ja     L202
  add    $0x3,%edi
  lea    (%rcx,%rcx,4),%ecx
  lea    (%rax,%rcx,2),%eax
  cmp    %edi,%edx
  jle    L261
  movslq %edi,%rdi
  movsbl (%rbx,%rdi,1),%edx
  sub    $0x30,%edx
  cmp    $0x9,%edx
  ja     L104
  add    %edx,%eax
  jmp    L261
L148:
  mov    $0xffffffff,%eax
  jmp    L261
L182:
  mov    $0xffffffff,%eax
  jmp    L261
L271:
  mov    $0xffffffff,%eax
  jmp    L261
L30:
  mov    $0xffffffff,%eax
  jmp    L261
L264:
  mov    $0xffffffff,%eax
  jmp    L261
L92:
  mov    $0xffffffff,%eax
  jmp    L261
L170:
  mov    $0xffffffff,%eax
  jmp    L261
L1:
  mov    $0xffffffff,%eax
  jmp    L261
L118:
  mov    $0xffffffff,%eax
  jmp    L261
L202:
  mov    $0xffffffff,%eax
  jmp    L261
L104:
  mov    $0xffffffff,%eax
  jmp    L261
```

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;
}
```