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

```asm
<Strptime_Strptime>:
  endbr64
  push   %r15
  pxor   %xmm0,%xmm0
  push   %r14
  mov    %rdi,%r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x128,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x118(%rsp)
  xor    %eax,%eax
  movq   $0x0,0x28(%rdx)
  movq   $0x0,(%rdx)
  movl   $0x1,0x8(%rdx)
  movq   $0x0,0x30(%rdx)
  movq   $0x0,0x10(%rdx)
  movq   $0x0,0x38(%rdx)
  movq   $0x0,0x40(%rdx)
  movups %xmm0,0x18(%rdx)
  cmpb   $0x0,(%rsi)
  je     L929
  movl   $0x0,0x8(%rsp)
  mov    %rsi,%rbx
  mov    %rdx,%r12
  lea    0x10(%rsp),%rbp
  movl   $0x0,0xc(%rsp)
  lea    D2(%rip),%r13
  jmp    L8
  cs nopw 0x0(%rax,%rax,1)
L946:
  cmp    (%r14),%al
  jne    L929
  add    $0x1,%r14
  add    $0x1,%rbx
L648:
  cmpb   $0x0,(%rbx)
  je     L929
L8:
  mov    $0x100,%edx
  xor    %esi,%esi
  mov    %rbp,%rdi
  call   <memset@plt>
  movzbl (%rbx),%eax
  cmp    $0x25,%al
  jne    L946
  movzbl 0x1(%rbx),%edx
  cmp    $0x79,%dl
  jg     L638
  cmp    $0x69,%dl
  jg     L233
  cmp    $0x53,%dl
  jg     L903
  cmp    $0x40,%dl
  jle    L638
  lea    -0x41(%rdx),%eax
  cmp    $0x12,%al
  ja     L638
  lea    D10(%rip),%rcx
  movzbl %al,%eax
  movslq (%rcx,%rax,4),%rax
  add    %rcx,%rax
  notrack jmp *%rax
  nopw   0x0(%rax,%rax,1)
L903:
  lea    -0x54(%rdx),%ecx
  cmp    $0x14,%cl
  ja     L638
  mov    $0x1,%eax
  shl    %cl,%rax
  mov    %rax,%rsi
  and    $0x10e01b,%esi
  jne    L929
  and    $0x30000,%eax
  mov    %rax,%r15
  jne    L995
  cmp    $0x5,%cl
  je     L158
L638:
  cmp    (%r14),%dl
  je     L311
  nopl   0x0(%rax,%rax,1)
L929:
  mov    0x118(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L548
  add    $0x128,%rsp
  mov    %r14,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L233:
  lea    -0x6a(%rdx),%eax
  cmp    $0xf,%al
  ja     L638
  movzbl %al,%eax
  movslq 0x0(%r13,%rax,4),%rax
  add    %r13,%rax
  notrack jmp *%rax
  nopl   (%rax)
L650:
  call   <isspace@plt>
  test   %eax,%eax
  je     L924
  add    $0x1,%r14
  movsbl (%r14),%edi
  test   %dil,%dil
  jne    L650
L924:
  add    $0x2,%rbx
  jmp    L648
  nopw   0x0(%rax,%rax,1)
L975:
  call   <isspace@plt>
  test   %eax,%eax
  je     L924
  add    $0x1,%r14
  movsbl (%r14),%edi
  test   %dil,%dil
  jne    L975
  jmp    L924
  nopl   0x0(%rax,%rax,1)
  movsbl (%r14),%edi
  xor    %r15d,%r15d
  xor    %edx,%edx
  test   %dil,%dil
  jne    L14
  jmp    L784
L878:
  movzbl (%r14),%eax
  movsbl 0x1(%r14),%edi
  lea    0x1(%r15),%edx
  add    $0x1,%r14
  mov    %al,0x0(%rbp,%r15,1)
  add    $0x1,%r15
  test   %dil,%dil
  je     L784
L14:
  mov    %r15d,(%rsp)
  call   <isdigit@plt>
  mov    (%rsp),%edx
  test   %eax,%eax
  jne    L878
L784:
  movslq %edx,%rdx
  mov    %rbp,%rdi
  movb   $0x0,0x10(%rsp,%rdx,1)
  call   <strlen@plt>
  test   %eax,%eax
  jle    L929
  mov    %rbp,%rdi
  add    $0x2,%rbx
  call   <atoi@plt>
  mov    0xc(%rsp),%edx
  test   %edx,%edx
  jne    L96
  lea    0x64(%rax),%rdx
  cmp    $0x44,%rax
  cmovbe %rdx,%rax
  mov    %rax,0x10(%r12)
  jmp    L648
  nopl   (%rax)
  movsbl (%r14),%edi
  xor    %r15d,%r15d
  xor    %edx,%edx
  test   %dil,%dil
  jne    L485
  jmp    L561
  nopl   0x0(%rax,%rax,1)
L136:
  movzbl (%r14),%eax
  movsbl 0x1(%r14),%edi
  lea    0x1(%r15),%edx
  add    $0x1,%r14
  mov    %al,0x0(%rbp,%r15,1)
  add    $0x1,%r15
  test   %dil,%dil
  je     L561
L485:
  mov    %r15d,(%rsp)
  call   <isdigit@plt>
  mov    (%rsp),%edx
  test   %eax,%eax
  jne    L136
L561:
  movslq %edx,%rdx
  mov    %rbp,%rdi
  movb   $0x0,0x10(%rsp,%rdx,1)
  call   <strlen@plt>
  test   %eax,%eax
  jle    L929
  mov    %rbp,%rdi
  add    $0x2,%rbx
  call   <atoi@plt>
  mov    %rax,0x38(%r12)
  jmp    L648
  nopl   (%rax)
  movsbl (%r14),%edi
  xor    %r15d,%r15d
  xor    %edx,%edx
  test   %dil,%dil
  jne    L597
  jmp    L362
L438:
  movzbl (%r14),%eax
  movsbl 0x1(%r14),%edi
  lea    0x1(%r15),%edx
  add    $0x1,%r14
  mov    %al,0x0(%rbp,%r15,1)
  add    $0x1,%r15
  test   %dil,%dil
  je     L362
L597:
  mov    %r15d,(%rsp)
  call   <isdigit@plt>
  mov    (%rsp),%edx
  test   %eax,%eax
  jne    L438
L362:
  movslq %edx,%rdx
  mov    %rbp,%rdi
  movb   $0x0,0x10(%rsp,%rdx,1)
  call   <strlen@plt>
  test   %eax,%eax
  jle    L929
  mov    %rbp,%rdi
  add    $0x2,%rbx
  call   <atoi@plt>
  sub    $0x1,%rax
  mov    %rax,0x30(%r12)
  jmp    L648
  nopl   0x0(%rax)
  movsbl (%r14),%edi
  movl   $0x0,(%rsp)
  mov    %rbp,%r15
  test   %dil,%dil
  jne    L417
  jmp    L539
  nopl   (%rax)
L943:
  movzbl (%r14),%eax
  addl   $0x1,(%rsp)
  add    $0x1,%r14
  add    $0x1,%r15
  movsbl (%r14),%edi
  mov    %al,-0x1(%r15)
  test   %dil,%dil
  je     L539
L417:
  call   <isdigit@plt>
  test   %eax,%eax
  jne    L943
L539:
  movslq (%rsp),%r15
  mov    %rbp,%rdi
  movb   $0x0,0x10(%rsp,%r15,1)
  call   <strlen@plt>
  test   %eax,%eax
  jle    L929
  mov    %rbp,%rdi
  add    $0x2,%rbx
  call   <atoi@plt>
  mov    %rax,%r9
  mov    0x8(%rsp),%eax
  lea    (%rax,%rax,2),%eax
  shl    $0x2,%eax
  cltq
  add    %r9,%rax
  mov    %rax,(%r12)
  jmp    L648
  nopw   0x0(%rax,%rax,1)
  movsbl (%r14),%edi
  movl   $0x0,(%rsp)
  mov    %rbp,%r15
  test   %dil,%dil
  jne    L565
  jmp    L661
  nopl   (%rax)
L421:
  movzbl (%r14),%eax
  addl   $0x1,(%rsp)
  add    $0x1,%r14
  add    $0x1,%r15
  movsbl (%r14),%edi
  mov    %al,-0x1(%r15)
  test   %dil,%dil
  je     L661
L565:
  call   <isalpha@plt>
  test   %eax,%eax
  jne    L421
L661:
  movslq (%rsp),%r15
  mov    $0x2,%edx
  mov    %rbp,%rsi
  lea    D12(%rip),%rdi
  movb   $0x0,0x10(%rsp,%r15,1)
  call   <strncmp@plt>
  xor    %edx,%edx
  test   %eax,%eax
  jne    L219
L299:
  mov    (%r12),%rcx
  add    $0x2,%rbx
  test   %rcx,%rcx
  jg     L37
  mov    %eax,0x8(%rsp)
  jmp    L648
  movsbl (%r14),%edi
  movl   $0x0,(%rsp)
  mov    %rbp,%r15
  test   %dil,%dil
  jne    L626
  jmp    L166
  nopl   (%rax)
L795:
  movzbl (%r14),%eax
  addl   $0x1,(%rsp)
  add    $0x1,%r14
  add    $0x1,%r15
  movsbl (%r14),%edi
  mov    %al,-0x1(%r15)
  test   %dil,%dil
  je     L166
L626:
  call   <isdigit@plt>
  test   %eax,%eax
  jne    L795
L166:
  movslq (%rsp),%r15
  mov    %rbp,%rdi
  movb   $0x0,0x10(%rsp,%r15,1)
  call   <strlen@plt>
  test   %eax,%eax
  jle    L929
  mov    %rbp,%rdi
  add    $0x2,%rbx
  call   <atoi@plt>
  mov    %rax,0x18(%r12)
  jmp    L648
  xchg   %ax,%ax
  movsbl (%r14),%edi
  xor    %r15d,%r15d
  xor    %edx,%edx
  test   %dil,%dil
  jne    L183
  jmp    L250
L702:
  movzbl (%r14),%eax
  movsbl 0x1(%r14),%edi
  lea    0x1(%r15),%edx
  add    $0x1,%r14
  mov    %al,0x0(%rbp,%r15,1)
  add    $0x1,%r15
  test   %dil,%dil
  je     L250
L183:
  mov    %r15d,(%rsp)
  call   <isdigit@plt>
  mov    (%rsp),%edx
  test   %eax,%eax
  jne    L702
L250:
  movslq %edx,%rdx
  mov    %rbp,%rdi
  movb   $0x0,0x10(%rsp,%rdx,1)
  call   <strlen@plt>
  test   %eax,%eax
  jle    L929
  mov    %rbp,%rdi
  add    $0x2,%rbx
  call   <atoi@plt>
  mov    %eax,0xc(%rsp)
  jmp    L648
  nopl   0x0(%rax)
  movsbl (%r14),%edi
  movl   $0x0,(%rsp)
  mov    %rbp,%r15
  test   %dil,%dil
  jne    L750
  jmp    L437
  nopl   (%rax)
L801:
  movzbl (%r14),%eax
  addl   $0x1,(%rsp)
  add    $0x1,%r14
  add    $0x1,%r15
  movsbl (%r14),%edi
  mov    %al,-0x1(%r15)
  test   %dil,%dil
  je     L437
L750:
  call   <isdigit@plt>
  test   %eax,%eax
  jne    L801
L437:
  movslq (%rsp),%r15
  mov    %rbp,%rdi
  movb   $0x0,0x10(%rsp,%r15,1)
  call   <strlen@plt>
  test   %eax,%eax
  jle    L929
  mov    %rbp,%rdi
  add    $0x2,%rbx
  call   <atoi@plt>
  mov    %rax,(%r12)
  jmp    L648
  nopl   (%rax)
  movsbl (%r14),%edi
  movl   $0x0,(%rsp)
  mov    %rbp,%r15
  test   %dil,%dil
  jne    L207
  jmp    L517
  nopl   (%rax)
L932:
  movzbl (%r14),%eax
  addl   $0x1,(%rsp)
  add    $0x1,%r14
  add    $0x1,%r15
  movsbl (%r14),%edi
  mov    %al,-0x1(%r15)
  test   %dil,%dil
  je     L517
L207:
  call   <isdigit@plt>
  test   %eax,%eax
  jne    L932
L517:
  movslq (%rsp),%r15
  mov    %rbp,%rdi
  movb   $0x0,0x10(%rsp,%r15,1)
  call   <strlen@plt>
  test   %eax,%eax
  jle    L929
  mov    %rbp,%rdi
  add    $0x2,%rbx
  call   <atoi@plt>
  mov    %rax,0x20(%r12)
  jmp    L648
  xchg   %ax,%ax
  movsbl (%r14),%edi
  movl   $0x0,(%rsp)
  mov    %rbp,%r15
  test   %dil,%dil
  jne    L446
  jmp    L360
  nopl   (%rax)
L680:
  movzbl (%r14),%eax
  addl   $0x1,(%rsp)
  add    $0x1,%r14
  add    $0x1,%r15
  movsbl (%r14),%edi
  mov    %al,-0x1(%r15)
  test   %dil,%dil
  je     L360
L446:
  call   <isdigit@plt>
  test   %eax,%eax
  jne    L680
L360:
  movslq (%rsp),%r15
  mov    %rbp,%rdi
  movb   $0x0,0x10(%rsp,%r15,1)
  call   <strlen@plt>
  test   %eax,%eax
  jle    L929
  mov    %rbp,%rdi
  add    $0x2,%rbx
  call   <atoi@plt>
  mov    %rax,0x28(%r12)
  jmp    L648
L311:
  add    $0x1,%r14
  add    $0x3,%rbx
  jmp    L648
  nopl   0x0(%rax,%rax,1)
L995:
  movsbl (%r14),%edi
  xor    %r15d,%r15d
  test   %dil,%dil
  jne    L81
  jmp    L265
  xchg   %ax,%ax
L669:
  movzbl (%r14),%eax
  mov    (%rsp),%rsi
  add    $0x1,%r14
  movsbl (%r14),%edi
  mov    %al,0x0(%rbp,%rsi,1)
  lea    0x1(%rsi),%r15d
  add    $0x1,%rsi
  test   %dil,%dil
  je     L265
L81:
  mov    %rsi,(%rsp)
  mov    %esi,%r15d
  call   <isdigit@plt>
  test   %eax,%eax
  jne    L669
L265:
  movslq %r15d,%r15
  mov    %rbp,%rdi
  movb   $0x0,0x10(%rsp,%r15,1)
  call   <strlen@plt>
  test   %eax,%eax
  jle    L929
  mov    %rbp,%rdi
  add    $0x2,%rbx
  call   <atoi@plt>
  mov    %eax,0x8(%r12)
  jmp    L648
L158:
  movsbl (%r14),%edi
  xor    %edx,%edx
  test   %dil,%dil
  jne    L322
  jmp    L496
  nopl   (%rax)
L543:
  movzbl (%r14),%eax
  movsbl 0x1(%r14),%edi
  lea    0x1(%r15),%edx
  add    $0x1,%r14
  mov    %al,0x0(%rbp,%r15,1)
  add    $0x1,%r15
  test   %dil,%dil
  je     L496
L322:
  mov    %r15d,(%rsp)
  call   <isdigit@plt>
  mov    (%rsp),%edx
  test   %eax,%eax
  jne    L543
L496:
  movslq %edx,%rdx
  mov    %rbp,%rdi
  movb   $0x0,0x10(%rsp,%rdx,1)
  call   <strlen@plt>
  test   %eax,%eax
  jle    L929
  mov    %rbp,%rdi
  add    $0x2,%rbx
  call   <atoi@plt>
  sub    $0x76c,%rax
  mov    %rax,0x10(%r12)
  jmp    L648
L37:
  add    %rcx,%rdx
  mov    %eax,0x8(%rsp)
  mov    %rdx,(%r12)
  jmp    L648
L219:
  mov    $0x2,%edx
  mov    %rbp,%rsi
  lea    D17(%rip),%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  je     L331
  mov    (%r12),%rdx
  test   %rdx,%rdx
  jle    L929
  mov    0x8(%rsp),%eax
  lea    (%rax,%rax,2),%eax
  shl    $0x2,%eax
  cltq
  add    %rdx,%rax
  mov    %rax,(%r12)
  jmp    L929
L96:
  imul   $0x64,0xc(%rsp),%edx
  movslq %edx,%rdx
  add    %rdx,%rax
  mov    %rax,0x10(%r12)
  jmp    L648
L331:
  mov    $0xc,%edx
  mov    $0x1,%eax
  jmp    L299
L548:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: label: D12
type_guessed: string
name: unpack_data
arguments: label: D17
type_guessed: string

tool: D12: am

tool: D17: pm

assistant: ```c
char *Strptime_Strptime(char *s, char *format, struct tm *tm) {
  char *t;
  char *m;
  char buffer[256];
  int i;
  int century;
  int period;
  int error;
  t = s;
  m = format;
  tm->tm_sec = 0;
  tm->tm_min = 0;
  tm->tm_hour = 0;
  tm->tm_mday = 1;
  tm->tm_mon = 0;
  tm->tm_year = 0;
  tm->tm_wday = 0;
  tm->tm_yday = 0;
  tm->tm_isdst = 0;
  century = 0;
  period = 0;
  error = 0;
  while (*m) {
    memset(buffer, 0, sizeof(buffer));
    if (*m == '%') {
      m++;
      switch (*m) {
      case 'a':
        error = 1;
        break;
      case 'A':
        error = 1;
        break;
      case 'b':
        error = 1;
        break;
      case 'B':
        error = 1;
        break;
      case 'h':
        error = 1;
        break;
      case 'c':
        error = 1;
        break;
      case 'C':
        i = 0;
        while (*t) {
          if (isdigit(*t)) {
            buffer[i] = *t;
            i++;
            t++;
          } else {
            break;
          }
        }
        buffer[i] = '\0';
        if (strlen(buffer) > 0) {
          century = atoi(buffer);
        } else {
          error = 1;
        }
        break;
      case 'd':
      case 'e':
        i = 0;
        while (*t) {
          if (isdigit(*t)) {
            buffer[i] = *t;
            i++;
            t++;
          } else {
            break;
          }
        }
        buffer[i] = '\0';
        if (strlen(buffer) > 0) {
          tm->tm_mday = atoi(buffer);
        } else {
          error = 1;
        }
        break;
      case 'D':
        error = 1;
        break;
      case 'H':
        i = 0;
        while (*t) {
          if (isdigit(*t)) {
            buffer[i] = *t;
            i++;
            t++;
          } else {
            break;
          }
        }
        buffer[i] = '\0';
        if (strlen(buffer) > 0) {
          tm->tm_hour = atoi(buffer);
        } else {
          error = 1;
        }
        break;
      case 'I':
        error = 1;
        break;
      case 'j':
        i = 0;
        while (*t) {
          if (isdigit(*t)) {
            buffer[i] = *t;
            i++;
            t++;
          } else {
            break;
          }
        }
        buffer[i] = '\0';
        if (strlen(buffer) > 0) {
          tm->tm_yday = atoi(buffer);
        } else {
          error = 1;
        }
        break;
      case 'm':
        i = 0;
        while (*t) {
          if (isdigit(*t)) {
            buffer[i] = *t;
            i++;
            t++;
          } else {
            break;
          }
        }
        buffer[i] = '\0';
        if (strlen(buffer) > 0) {
          tm->tm_mon = atoi(buffer) - 1;
        } else {
          error = 1;
        }
        break;
      case 'M':
        i = 0;
        while (*t) {
          if (isdigit(*t)) {
            buffer[i] = *t;
            i++;
            t++;
          } else {
            break;
          }
        }
        buffer[i] = '\0';
        if (strlen(buffer) > 0) {
          tm->tm_min = atoi(buffer);
        } else {
          error = 1;
        }
        break;
      case 'n':
        while (*t) {
          if (isspace(*t)) {
            t++;
          } else {
            break;
          }
        }
        break;
      case 'p':
        i = 0;
        while (*t) {
          if (isalpha(*t)) {
            buffer[i] = *t;
            i++;
            t++;
          } else {
            break;
          }
        }
        buffer[i] = '\0';
        if (strncmp("am", buffer, 2) == 0) {
          period = 0;
        } else if (strncmp("pm", buffer, 2) == 0) {
          period = 1;
        } else {
          error = 1;
        }
        if (tm->tm_hour > 0) {
          tm->tm_hour = tm->tm_hour + 12 * period;
        }
        break;
      case 'r':
        i = 0;
        while (*t) {
          if (isdigit(*t)) {
            buffer[i] = *t;
            i++;
            t++;
          } else {
            break;
          }
        }
        buffer[i] = '\0';
        if (strlen(buffer) > 0) {
          tm->tm_hour = atoi(buffer) + 12 * period;
        } else {
          error = 1;
        }
        break;
      case 'R':
        error = 1;
        break;
      case 'S':
        i = 0;
        while (*t) {
          if (isdigit(*t)) {
            buffer[i] = *t;
            i++;
            t++;
          } else {
            break;
          }
        }
        buffer[i] = '\0';
        if (strlen(buffer) > 0) {
          tm->tm_sec = atoi(buffer);
        } else {
          error = 1;
        }
        break;
      case 't':
        while (*t) {
          if (isspace(*t)) {
            t++;
          } else {
            break;
          }
        }
        break;
      case 'T':
        error = 1;
        break;
      case 'U':
        error = 1;
        break;
      case 'w':
        i = 0;
        while (*t) {
          if (isdigit(*t)) {
            buffer[i] = *t;
            i++;
            t++;
          } else {
            break;
          }
        }
        buffer[i] = '\0';
        if (strlen(buffer) > 0) {
          tm->tm_wday = atoi(buffer);
        } else {
          error = 1;
        }
        break;
      case 'W':
        error = 1;
        break;
      case 'x':
        error = 1;
        break;
      case 'X':
        error = 1;
        break;
      case 'y':
        i = 0;
        while (*t) {
          if (isdigit(*t)) {
            buffer[i] = *t;
            i++;
            t++;
          } else {
            break;
          }
        }
        buffer[i] = '\0';
        if (strlen(buffer) > 0) {
          tm->tm_year = atoi(buffer);
          if (century == 0) {
            if ((tm->tm_year >= 0) && (tm->tm_year <= 68)) {
              tm->tm_year = tm->tm_year + 100;
            } else if ((tm->tm_year >= 69) && (tm->tm_year <= 99)) {
              tm->tm_year = tm->tm_year;
            }
          } else {
            tm->tm_year = tm->tm_year + century * 100;
          }
        } else {
          error = 1;
        }
        break;
      case 'Y':
        i = 0;
        while (*t) {
          if (isdigit(*t)) {
            buffer[i] = *t;
            i++;
            t++;
          } else {
            break;
          }
        }
        buffer[i] = '\0';
        if (strlen(buffer) > 0) {
          tm->tm_year = atoi(buffer) - 1900;
        } else {
          error = 1;
        }
        break;
      default:
        if (*t == *m) {
          t++;
          m++;
        } else {
          error = 1;
        }
        break;
      }
      m++;
    } else {
      if (*t == *m) {
        t++;
        m++;
      } else {
        error = 1;
      }
    }
    if (error) {
      break;
    }
  }
  return t;
}
```