user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<convert_standard_to_date>:
  endbr64
  push   %r15
  lea    D11(%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    0x10(%rsp),%r12
  movb   $0x0,0x14(%rsp)
  mov    %r12,%rdi
  mov    %eax,0x10(%rsp)
  call   <atoi@plt>
  mov    %r12,%rdi
  movb   $0x0,0x12(%rsp)
  mov    %eax,%r14d
  movzwl 0x5(%rbx),%eax
  mov    %ax,0x10(%rsp)
  call   <atoi@plt>
  mov    %r12,%rdi
  movb   $0x0,0x12(%rsp)
  xor    %r12d,%r12d
  mov    %eax,0x8(%rsp)
  movzwl 0x8(%rbx),%eax
  mov    %rbp,%rbx
  mov    %ax,0x10(%rsp)
  call   <atoi@plt>
  mov    %r13,%rsi
  mov    %rbp,%rdi
  mov    %eax,0xc(%rsp)
  call   <strcpy@plt>
  jmp    L111
  nopw   0x0(%rax,%rax,1)
L68:
  add    $0x1,%r12
  add    $0x1,%rbx
L111:
  mov    %r13,%rdi
  call   <strlen@plt>
  sub    $0x1,%eax
  cmp    %r12d,%eax
  jle    L7
  cmpb   $0x25,0x0(%r13,%r12,1)
  jne    L68
  movzbl 0x1(%r13,%r12,1),%eax
  cmp    $0x6d,%al
  je     L120
L22:
  cmp    $0x64,%al
  je     L3
L63:
  cmp    $0x59,%al
  jne    L68
  mov    %r14d,%edx
  lea    D14(%rip),%rsi
  mov    %rbx,%rdi
  xor    %eax,%eax
  call   <sprintf@plt>
  jmp    L68
  nopl   0x0(%rax)
L7:
  xor    %ebx,%ebx
  jmp    L11
  nopl   0x0(%rax)
L96:
  movzbl 0x0(%r13,%rbx,1),%eax
  lea    -0x2d(%rax),%edx
  cmp    $0x2,%dl
  ja     L91
  mov    %al,0x0(%rbp,%rbx,1)
L91:
  add    $0x1,%rbx
L11:
  mov    %r13,%rdi
  call   <strlen@plt>
  cmp    %ebx,%eax
  jg     L96
  movb   $0x0,0xa(%rbp)
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L67
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   (%rax)
L3:
  mov    0xc(%rsp),%edx
  mov    %r15,%rsi
  mov    %rbx,%rdi
  xor    %eax,%eax
  call   <sprintf@plt>
  movzbl 0x1(%r13,%r12,1),%eax
  jmp    L63
  nopl   0x0(%rax)
L120:
  mov    0x8(%rsp),%edx
  mov    %r15,%rsi
  mov    %rbx,%rdi
  xor    %eax,%eax
  call   <sprintf@plt>
  movzbl 0x1(%r13,%r12,1),%eax
  jmp    L22
L67:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: label: D11
type_guessed: string
name: unpack_data
arguments: label: D14
type_guessed: string

tool: D11: %02d

tool: D14: %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;
}
```