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

```asm
<Decode_xorriso_timestamp>:
  endbr64
  push   %r14
  mov    $0x1c,%edx
  mov    %rsi,%r14
  xor    %esi,%esi
  push   %r13
  push   %r12
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  sub    $0x40,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  movl   $0x0,0x14(%rsp)
  movl   $0x0,0x18(%rsp)
  movl   $0x0,0x1c(%rsp)
  call   <memset@plt>
  movl   $0xffffffff,0x0(%rbp)
  mov    %r14,%rdi
  call   <strlen@plt>
  mov    %eax,%r12d
  sub    $0xa,%eax
  cmp    $0x7,%eax
  jbe    L262
L272:
  xor    %eax,%eax
L75:
  mov    0x38(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L277
  add    $0x40,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
  nopw   0x0(%rax,%rax,1)
L262:
  lea    0x20(%rsp),%r13
  mov    %r14,%rsi
  mov    %r13,%rdi
  call   <strcpy@plt>
  movsbl 0x20(%rsp),%edi
  test   %dil,%dil
  je     L180
  mov    $0x1,%ebx
L33:
  call   <isdigit@plt>
  test   %rax,%rax
  je     L272
  movsbl 0x0(%r13,%rbx,1),%edi
  test   %dil,%dil
  setne  %dl
  cmp    $0x4,%ebx
  setne  %al
  add    $0x1,%rbx
  test   %al,%dl
  jne    L33
L180:
  cmpb   $0x2e,0x24(%rsp)
  jne    L272
  lea    D6(%rip),%r14
  lea    0x8(%rsp),%rdx
  mov    %r13,%rdi
  movb   $0x0,0x24(%rsp)
  mov    %r14,%rsi
  call   <sscanf@plt>
  mov    0x8(%rsp),%eax
  sub    $0x76c,%eax
  cmp    $0x44c,%eax
  ja     L272
  movsbl 0x25(%rsp),%edi
  call   <isdigit@plt>
  test   %rax,%rax
  je     L272
  movsbl 0x26(%rsp),%edi
  call   <isdigit@plt>
  test   %rax,%rax
  je     L272
  cmpb   $0x2e,0x27(%rsp)
  jne    L272
  lea    0xc(%rsp),%rdx
  lea    0x25(%rsp),%rdi
  mov    %r14,%rsi
  movb   $0x0,0x27(%rsp)
  call   <sscanf@plt>
  mov    0xc(%rsp),%eax
  sub    $0x1,%eax
  cmp    $0xb,%eax
  ja     L272
  movsbl 0x28(%rsp),%edi
  call   <isdigit@plt>
  test   %rax,%rax
  je     L272
  movsbl 0x29(%rsp),%edi
  call   <isdigit@plt>
  test   %rax,%rax
  je     L272
  movzbl 0x2a(%rsp),%eax
  cmp    $0x2e,%al
  je     L30
  test   %al,%al
  jne    L272
L30:
  lea    0x10(%rsp),%rdx
  lea    0x28(%rsp),%rdi
  mov    %r14,%rsi
  movb   $0x0,0x2a(%rsp)
  call   <sscanf@plt>
  mov    0x10(%rsp),%eax
  lea    -0x1(%rax),%edx
  cmp    $0x1e,%edx
  ja     L272
  cmp    $0xa,%r12d
  je     L186
  movsbl 0x2b(%rsp),%edi
  call   <isdigit@plt>
  test   %rax,%rax
  je     L272
  movsbl 0x2c(%rsp),%edi
  call   <isdigit@plt>
  test   %rax,%rax
  je     L272
  movsbl 0x2d(%rsp),%edi
  call   <isdigit@plt>
  test   %rax,%rax
  jne    L157
  cmpb   $0x0,0x2d(%rsp)
  jne    L272
L157:
  movzbl 0x2d(%rsp),%ebx
  lea    0x14(%rsp),%rdx
  lea    0x2b(%rsp),%rdi
  mov    %r14,%rsi
  movb   $0x0,0x2d(%rsp)
  call   <sscanf@plt>
  cmpl   $0x17,0x14(%rsp)
  mov    %bl,0x2d(%rsp)
  ja     L272
  cmp    $0xd,%r12d
  je     L264
  movsbl %bl,%edi
  call   <isdigit@plt>
  test   %rax,%rax
  je     L272
  movsbl 0x2e(%rsp),%edi
  call   <isdigit@plt>
  test   %rax,%rax
  je     L272
  movsbl 0x2f(%rsp),%edi
  call   <isdigit@plt>
  test   %rax,%rax
  jne    L45
  cmpb   $0x0,0x2f(%rsp)
  jne    L272
L45:
  movzbl 0x2f(%rsp),%ebx
  lea    0x18(%rsp),%rdx
  lea    0x2d(%rsp),%rdi
  mov    %r14,%rsi
  movb   $0x0,0x2f(%rsp)
  call   <sscanf@plt>
  cmpl   $0x3b,0x18(%rsp)
  mov    %bl,0x2f(%rsp)
  ja     L272
  cmp    $0xf,%r12d
  je     L264
  movsbl %bl,%edi
  call   <isdigit@plt>
  test   %rax,%rax
  je     L272
  movsbl 0x30(%rsp),%edi
  call   <isdigit@plt>
  test   %rax,%rax
  je     L272
  cmpb   $0x0,0x31(%rsp)
  jne    L272
  lea    0x1c(%rsp),%rdx
  lea    0x2f(%rsp),%rdi
  mov    %r14,%rsi
  call   <sscanf@plt>
  cmpl   $0x3b,0x1c(%rsp)
  ja     L272
L264:
  mov    0x10(%rsp),%eax
L186:
  mov    %eax,0xc(%rbp)
  mov    0x14(%rsp),%eax
  mov    0x8(%rsp),%ecx
  mov    %eax,0x10(%rbp)
  mov    0x18(%rsp),%eax
  lea    -0x76c(%rcx),%edx
  mov    0xc(%rsp),%ecx
  mov    %eax,0x14(%rbp)
  mov    0x1c(%rsp),%eax
  mov    %edx,0x4(%rbp)
  lea    -0x1(%rcx),%edx
  mov    %eax,0x18(%rbp)
  mov    $0x1,%eax
  mov    %edx,0x8(%rbp)
  jmp    L75
L277:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: tag: D6
type_guessed: string

tool: D6: %d

assistant: ```c
int Decode_xorriso_timestamp(struct tm *erg, char *code, int flag) {
  char buf[20];
  int year, month, day, hour = 0, minute = 0, second = 0, i, l, mem;
  memset(erg, 0, sizeof(*erg));
  erg->tm_isdst = -1;
  l = strlen(code);
  if (l > 17 || l < 10)
    return (0);
  strcpy(buf, code);
  for (i = 0; buf[i] != 0 && i < 4; i++)
    if (!isdigit(buf[i]))
      return (0);
  if (buf[4] != '.')
    return (0);
  buf[4] = 0;
  sscanf(buf, "%d", &year);
  if (year < 1900 || year > 3000)
    return (0);
  if (!(isdigit(buf[5]) && isdigit(buf[6]) && buf[7] == '.'))
    return (0);
  buf[7] = 0;
  sscanf(buf + 5, "%d", &month);
  if (month < 1 || month > 12)
    return (0);
  if (!(isdigit(buf[8]) && isdigit(buf[9]) && (buf[10] == '.' || buf[10] == 0)))
    return (0);
  buf[10] = 0;
  sscanf(buf + 8, "%d", &day);
  if (day < 1 || day > 31)
    return (0);
  if (l == 10)
    goto done;
  if (!(isdigit(buf[11]) && isdigit(buf[12]) && (isdigit(buf[13]) || buf[13] == 0)))
    return (0);
  mem = buf[13];
  buf[13] = 0;
  sscanf(buf + 11, "%d", &hour);
  buf[13] = mem;
  if (hour < 0 || hour > 23)
    return (0);
  if (l == 13)
    goto done;
  if (!(isdigit(buf[13]) && isdigit(buf[14]) && (isdigit(buf[15]) || buf[15] == 0)))
    return (0);
  mem = buf[15];
  buf[15] = 0;
  sscanf(buf + 13, "%d", &minute);
  buf[15] = mem;
  if (minute < 0 || minute > 59)
    return (0);
  if (l == 15)
    goto done;
  if (!(isdigit(buf[15]) && isdigit(buf[16]) && buf[17] == 0))
    return (0);
  sscanf(buf + 15, "%d", &second);
  if (second < 0 || second > 59)
    return (0);
done:;
  erg->tm_year = year - 1900;
  erg->tm_mon = month - 1;
  erg->tm_mday = day;
  erg->tm_hour = hour;
  erg->tm_min = minute;
  erg->tm_sec = second;
  return (1);
}
```