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

```asm
<ASAP_ParseDuration>:
  endbr64
  push   %rbx
  mov    %rdi,%rbx
  call   <strlen@plt>
  test   %eax,%eax
  jle    L159
  mov    %eax,%edx
  movsbl (%rbx),%eax
  sub    $0x30,%eax
  cmp    $0x9,%eax
  ja     L269
  cmp    $0x1,%edx
  jle    L25
  movsbl 0x1(%rbx),%ecx
  sub    $0x30,%ecx
  cmp    $0x9,%ecx
  ja     L314
  lea    (%rax,%rax,4),%eax
  lea    (%rcx,%rax,2),%eax
  cmp    $0x2,%edx
  jg     L281
L25:
  imul   $0x3e8,%eax,%eax
L120:
  pop    %rbx
  ret
L281:
  mov    $0x2,%edi
  jmp    L231
L314:
  mov    $0x1,%edi
L231:
  movslq %edi,%rcx
  cmpb   $0x3a,(%rbx,%rcx,1)
  je     L271
  imul   $0x3e8,%eax,%eax
  jmp    L239
L271:
  lea    0x1(%rdi),%ecx
  cmp    %ecx,%edx
  jle    L203
  movslq %ecx,%rcx
  movsbl (%rbx,%rcx,1),%ecx
  sub    $0x30,%ecx
  cmp    $0x5,%ecx
  ja     L23
  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    L194
  movslq %esi,%rsi
  movsbl (%rbx,%rsi,1),%ecx
  sub    $0x30,%ecx
  cmp    $0x9,%ecx
  ja     L251
  add    $0x3,%edi
  add    %ecx,%eax
  imul   $0x3e8,%eax,%eax
  cmp    %edi,%edx
  jle    L120
L239:
  movslq %edi,%rcx
  cmpb   $0x2e,(%rbx,%rcx,1)
  jne    L184
  lea    0x1(%rdi),%ecx
  cmp    %ecx,%edx
  jle    L76
  movslq %ecx,%rcx
  movsbl (%rbx,%rcx,1),%ecx
  sub    $0x30,%ecx
  cmp    $0x9,%ecx
  ja     L272
  lea    0x2(%rdi),%esi
  imul   $0x64,%ecx,%ecx
  add    %ecx,%eax
  cmp    %esi,%edx
  jle    L120
  movslq %esi,%rsi
  movsbl (%rbx,%rsi,1),%ecx
  sub    $0x30,%ecx
  cmp    $0x9,%ecx
  ja     L221
  add    $0x3,%edi
  lea    (%rcx,%rcx,4),%ecx
  lea    (%rax,%rcx,2),%eax
  cmp    %edi,%edx
  jle    L120
  movslq %edi,%rdi
  movsbl (%rbx,%rdi,1),%edx
  sub    $0x30,%edx
  cmp    $0x9,%edx
  ja     L110
  add    %edx,%eax
  jmp    L120
L159:
  mov    $0xffffffff,%eax
  jmp    L120
L269:
  mov    $0xffffffff,%eax
  jmp    L120
L203:
  mov    $0xffffffff,%eax
  jmp    L120
L23:
  mov    $0xffffffff,%eax
  jmp    L120
L194:
  mov    $0xffffffff,%eax
  jmp    L120
L251:
  mov    $0xffffffff,%eax
  jmp    L120
L184:
  mov    $0xffffffff,%eax
  jmp    L120
L76:
  mov    $0xffffffff,%eax
  jmp    L120
L272:
  mov    $0xffffffff,%eax
  jmp    L120
L221:
  mov    $0xffffffff,%eax
  jmp    L120
L110:
  mov    $0xffffffff,%eax
  jmp    L120
```

assistant: ```c
int ASAP_ParseDuration(const char *s) {
  int i = 0;
  int r;
  int d;
  int n = strlen(s);
  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] == ':') {
      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] != '.')
    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;
}
```