user: What would the C source look like for the assembly code provided here:

```asm
<ur_stringToDate>:
  endbr64
  push   %r14
  push   %r13
  mov    %rsi,%r13
  push   %r12
  sub    %rdi,%r13
  push   %rbp
  mov    %rdx,%rbp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x50,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x48(%rsp)
  xor    %eax,%eax
  cmp    $0x9,%r13d
  jle    L77
  cmpb   $0x2d,0x4(%rdi)
  je     L357
L77:
  pxor   %xmm0,%xmm0
  test   %rbp,%rbp
  je     L84
  mov    %rbx,0x0(%rbp)
L84:
  mov    0x48(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L92
  add    $0x50,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
  cs nopw 0x0(%rax,%rax,1)
L357:
  cmpb   $0x2d,0x7(%rdi)
  jne    L77
  mov    %rsi,(%rsp)
  call   <twoInt@plt>
  lea    0x2(%rbx),%rdi
  mov    %eax,%r14d
  call   <twoInt@plt>
  imul   $0x64,%r14d,%r14d
  lea    0x5(%rbx),%rdi
  lea    -0x76c(%r14,%rax,1),%eax
  mov    %eax,0x20(%rsp)
  call   <twoInt@plt>
  lea    0x8(%rbx),%rdi
  sub    $0x1,%eax
  mov    %eax,0x24(%rsp)
  call   <twoInt@plt>
  movl   $0x0,0x2c(%rsp)
  mov    %eax,0x28(%rsp)
  movabs $0xffffffff00000000,%rax
  mov    %rax,0x30(%rsp)
  lea    0xa(%rbx),%rax
  movq   $0x0,0x38(%rsp)
  mov    %rax,0x18(%rsp)
  cmp    $0xc,%r13d
  jle    L81
  movzbl 0xa(%rbx),%edx
  mov    (%rsp),%rsi
  cmp    $0x54,%dl
  je     L297
  pxor   %xmm2,%xmm2
  movsd  %xmm2,(%rsp)
  cmp    $0x2f,%dl
  je     L297
L119:
  test   %rbp,%rbp
  je     L220
  mov    %rax,0x0(%rbp)
L220:
  lea    0x20(%rsp),%rdi
  call   <mktime@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
L311:
  addsd  (%rsp),%xmm0
  jmp    L84
  nopl   0x0(%rax)
L297:
  add    $0xb,%rbx
  mov    %rsi,(%rsp)
  mov    %rbx,%rdi
  mov    %rbx,0x18(%rsp)
  call   <twoInt@plt>
  mov    (%rsp),%rsi
  mov    0x18(%rsp),%rdx
  mov    %eax,0x2c(%rsp)
  mov    %rsi,%rcx
  lea    0x2(%rdx),%rax
  sub    %rbx,%rcx
  mov    %rax,0x18(%rsp)
  cmp    $0x4,%ecx
  jle    L133
  pxor   %xmm4,%xmm4
  cmpb   $0x3a,0x2(%rdx)
  movsd  %xmm4,(%rsp)
  jne    L119
  lea    0x3(%rdx),%rdi
  mov    %rsi,0x8(%rsp)
  mov    %rdi,0x18(%rsp)
  call   <twoInt@plt>
  mov    0x18(%rsp),%rcx
  mov    0x8(%rsp),%rsi
  mov    %eax,0x30(%rsp)
  lea    0x2(%rcx),%rax
  mov    %rax,0x18(%rsp)
  cmp    %rsi,%rax
  je     L65
  movzbl 0x2(%rcx),%edx
  cmp    $0x3a,%dl
  je     L16
L11:
  cmp    $0x2d,%dl
  je     L34
  cmp    $0x5a,%dl
  je     L19
  cmp    $0x2b,%dl
  jne    L119
  lea    0x1(%rax),%rdi
  sub    %rdi,%rsi
  mov    %rdi,0x18(%rsp)
  mov    %esi,%ebx
  cmp    $0x1,%esi
  jle    L249
  call   <twoInt@plt>
  mov    0x2c(%rsp),%edx
  mov    $0x1,%r12d
  neg    %eax
L232:
  add    %edx,%eax
  mov    0x18(%rsp),%rdx
  mov    %eax,0x2c(%rsp)
  lea    0x2(%rdx),%rax
  mov    %rax,0x18(%rsp)
  cmp    $0x4,%ebx
  jle    L36
  cmpb   $0x3a,0x2(%rdx)
  je     L227
L36:
  test   %rbp,%rbp
  je     L330
  mov    %rax,0x0(%rbp)
L330:
  test   %r12d,%r12d
  je     L220
L229:
  lea    0x20(%rsp),%rdi
  call   <timegm@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  jmp    L311
  nopl   0x0(%rax)
L81:
  pxor   %xmm3,%xmm3
  movsd  %xmm3,(%rsp)
  jmp    L119
  xchg   %ax,%ax
L133:
  pxor   %xmm5,%xmm5
  movsd  %xmm5,(%rsp)
  jmp    L119
L65:
  mov    %rsi,%rax
  jmp    L119
L19:
  add    $0x1,%rax
  mov    %rax,0x18(%rsp)
  test   %rbp,%rbp
  je     L229
  mov    %rax,0x0(%rbp)
  jmp    L229
L34:
  lea    0x1(%rax),%rdi
  sub    %rdi,%rsi
  mov    %rdi,0x18(%rsp)
  mov    %esi,%ebx
  cmp    $0x1,%esi
  jg     L355
L249:
  test   %rbp,%rbp
  je     L229
  mov    %rdi,0x0(%rbp)
  jmp    L229
L16:
  lea    0x3(%rcx),%rdi
  lea    0x18(%rsp),%rdx
  mov    %rdi,0x18(%rsp)
  call   <str_toDouble@plt>
  mov    0x18(%rsp),%rax
  mov    0x8(%rsp),%rsi
  movsd  %xmm0,(%rsp)
  cmp    %rsi,%rax
  je     L65
  movzbl (%rax),%edx
  jmp    L11
L355:
  call   <twoInt@plt>
  or     $0xffffffff,%r12d
  mov    0x2c(%rsp),%edx
  jmp    L232
L227:
  lea    0x3(%rdx),%rdi
  mov    %rdi,0x18(%rsp)
  call   <twoInt@plt>
  mov    0x30(%rsp),%edx
  cmp    $0xffffffff,%r12d
  je     L54
  neg    %eax
L54:
  add    %edx,%eax
  mov    %eax,0x30(%rsp)
  mov    0x18(%rsp),%rax
  add    $0x2,%rax
  mov    %rax,0x18(%rsp)
  jmp    L36
L92:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
double ur_stringToDate(const char *start, const char *end, const char **pos) {
  struct tm tmp;
  const char *it;
  double sec = 0.0;
  int utc = 0;
  int offset;
  int len = end - start;
  if ((len < 10) || (start[4] != '-') || (start[7] != '-')) {
    if (pos)
      *pos = start;
    return 0.0;
  }
  tmp.tm_year = (twoInt(start) * 100 + twoInt(start + 2)) - 1900;
  tmp.tm_mon = twoInt(start + 5) - 1;
  tmp.tm_mday = twoInt(start + 8);
  tmp.tm_hour = 0;
  tmp.tm_min = 0;
  tmp.tm_sec = 0;
  tmp.tm_isdst = -1;
  it = start + 10;
  if ((len < 13) || (*it != 'T' && *it != '/'))
    goto done;
  ++it;
  len = end - it;
  tmp.tm_hour = twoInt(it);
  it += 2;
  if ((len < 5) || (*it != ':'))
    goto done;
  tmp.tm_min = twoInt(++it);
  it += 2;
  if (it == end)
    goto done;
  if (*it == ':') {
    ++it;
    sec = str_toDouble(it, end, &it);
    if (it == end)
      goto done;
  }
  switch (*it) {
  case '+':
    utc = 1;
    break;
  case '-':
    utc = -1;
    break;
  case 'Z':
    utc = 1;
    ++it;
  default:
    goto done;
  }
  ++it;
  len = end - it;
  if (len < 2)
    goto done;
  offset = twoInt(it);
  tmp.tm_hour += (utc < 0) ? offset : -offset;
  it += 2;
  if ((len < 5) || (*it != ':'))
    goto done;
  ++it;
  offset = twoInt(it);
  tmp.tm_min += (utc < 0) ? offset : -offset;
  it += 2;
done:
  if (pos)
    *pos = it;
  return sec + (double)(utc ? timegm(&tmp) : mktime(&tmp));
}
```