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

```asm
<convert_standard_to_date>:
  endbr64
  push   %r15
  lea    D14(%rip),%r15
  push   %r14
  push   %r13
  mov    %rsi,%r13
  push   %r12
  push   %rbp
  mov    %rdx,%rbp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  mov    (%rdi),%eax
  lea    0x13(%rsp),%r12
  movb   $0x0,0x17(%rsp)
  mov    %r12,%rdi
  mov    %eax,0x13(%rsp)
  call   <atoi@plt>
  mov    %r12,%rdi
  movb   $0x0,0x15(%rsp)
  mov    %eax,%r14d
  movzwl 0x5(%rbx),%eax
  mov    %ax,0x13(%rsp)
  call   <atoi@plt>
  mov    %r12,%rdi
  movb   $0x0,0x15(%rsp)
  xor    %r12d,%r12d
  mov    %eax,0x8(%rsp)
  movzwl 0x8(%rbx),%eax
  mov    %rbp,%rbx
  mov    %ax,0x13(%rsp)
  call   <atoi@plt>
  mov    %r13,%rsi
  mov    %rbp,%rdi
  mov    %eax,0xc(%rsp)
  call   <strcpy@plt>
  jmp    L128
  nopw   0x0(%rax,%rax,1)
L59:
  add    $0x1,%r12
  add    $0x1,%rbx
L128:
  mov    %r13,%rdi
  call   <strlen@plt>
  sub    $0x1,%eax
  cmp    %r12d,%eax
  jle    L85
  cmpb   $0x25,0x0(%r13,%r12,1)
  jne    L59
  movzbl 0x1(%r13,%r12,1),%eax
  cmp    $0x6d,%al
  je     L108
L32:
  cmp    $0x64,%al
  je     L56
L10:
  cmp    $0x59,%al
  jne    L59
  mov    %r14d,%edx
  lea    D7(%rip),%rsi
  mov    %rbx,%rdi
  xor    %eax,%eax
  call   <sprintf@plt>
  jmp    L59
  nopl   0x0(%rax)
L85:
  xor    %ebx,%ebx
  jmp    L66
  nopl   0x0(%rax)
L46:
  movzbl 0x0(%r13,%rbx,1),%eax
  lea    -0x2d(%rax),%edx
  cmp    $0x2,%dl
  ja     L0
  mov    %al,0x0(%rbp,%rbx,1)
L0:
  add    $0x1,%rbx
L66:
  mov    %r13,%rdi
  call   <strlen@plt>
  cmp    %ebx,%eax
  jg     L46
  movb   $0x0,0xa(%rbp)
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L120
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   (%rax)
L56:
  mov    0xc(%rsp),%edx
  mov    %r15,%rsi
  mov    %rbx,%rdi
  xor    %eax,%eax
  call   <sprintf@plt>
  movzbl 0x1(%r13,%r12,1),%eax
  jmp    L10
  nopl   0x0(%rax)
L108:
  mov    0x8(%rsp),%edx
  mov    %r15,%rsi
  mov    %rbx,%rdi
  xor    %eax,%eax
  call   <sprintf@plt>
  movzbl 0x1(%r13,%r12,1),%eax
  jmp    L32
L120:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: data_label: D14
type_guessed: string
name: disassemble_data
arguments: data_label: D7
type_guessed: string

tool: D14: %02d

tool: D7: %04d

assistant: ```c
void convert_standard_to_date(char standard[], char date_format[], char date[]) {
  char str[5];
  int day, month, year, i;
  str[0] = standard[0];
  str[1] = standard[1];
  str[2] = standard[2];
  str[3] = standard[3];
  str[4] = 0;
  year = atoi((char *)str);
  str[0] = standard[5];
  str[1] = standard[6];
  str[2] = 0;
  month = atoi((char *)str);
  str[0] = standard[8];
  str[1] = standard[9];
  str[2] = 0;
  day = atoi((char *)str);
  sprintf(date, "%s", date_format);
  for (i = 0; i < strlen(date_format) - 1; i++) {
    if (date_format[i] == '%') {
      if (date_format[i + 1] == 'm')
        sprintf((char *)&date[i], "%02d", month);
      if (date_format[i + 1] == 'd')
        sprintf((char *)&date[i], "%02d", day);
      if (date_format[i + 1] == 'Y')
        sprintf((char *)&date[i], "%04d", year);
    }
  }
  for (i = 0; i < strlen(date_format); i++) {
    if ((date_format[i] == '/') || (date_format[i] == '-') || (date_format[i] == '.'))
      date[i] = date_format[i];
  }
  date[10] = 0;
}
```