user: Demonstrate the C code that generates the assembly output below:

```asm
<searchttl>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x48,%rsp
  mov    %rdi,-0x68(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  mov    %rsp,%rax
  mov    %rax,%rbx
  mov    -0x68(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  add    $0x1,%eax
  movslq %eax,%rdx
  sub    $0x1,%rdx
  mov    %rdx,-0x50(%rbp)
  movslq %eax,%rdx
  mov    %rdx,%r14
  mov    $0x0,%r15d
  movslq %eax,%rdx
  mov    %rdx,%r12
  mov    $0x0,%r13d
  cltq
  mov    $0x10,%edx
  sub    $0x1,%rdx
  add    %rdx,%rax
  mov    $0x10,%esi
  mov    $0x0,%edx
  div    %rsi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L111:
  cmp    %rdx,%rsp
  je     L131
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L111
L131:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L101
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L101:
  mov    %rsp,%rax
  add    $0x0,%rax
  mov    %rax,-0x48(%rbp)
  mov    -0x68(%rbp),%rax
  lea    D4(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strstr@plt>
  mov    %rax,-0x58(%rbp)
  cmpq   $0x0,-0x58(%rbp)
  jne    L143
  mov    $0xa8c0,%eax
  jmp    L60
L143:
  addq   $0x4,-0x58(%rbp)
  movl   $0x0,-0x5c(%rbp)
  jmp    L23
L43:
  addl   $0x1,-0x5c(%rbp)
L23:
  mov    -0x5c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L136
  mov    -0x5c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x3a,%al
  jne    L43
L136:
  cmpl   $0x0,-0x5c(%rbp)
  jne    L39
  mov    $0xa8c0,%eax
  jmp    L60
L39:
  mov    -0x5c(%rbp),%edx
  mov    -0x58(%rbp),%rcx
  mov    -0x48(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncpy@plt>
  mov    -0x48(%rbp),%rdx
  mov    -0x5c(%rbp),%eax
  cltq
  movb   $0x0,(%rdx,%rax,1)
  movl   $0x0,-0x60(%rbp)
  mov    -0x48(%rbp),%rax
  mov    %rax,-0x58(%rbp)
  mov    -0x58(%rbp),%rax
  mov    $0x64,%esi
  mov    %rax,%rdi
  call   <strchr@plt>
  mov    %rax,-0x40(%rbp)
  cmpq   $0x0,-0x40(%rbp)
  je     L25
  mov    -0x40(%rbp),%rax
  movb   $0x0,(%rax)
  addq   $0x1,-0x40(%rbp)
  mov    -0x58(%rbp),%rax
  mov    %rax,%rdi
  call   <atoi@plt>
  imul   $0x15180,%eax,%eax
  add    %eax,-0x60(%rbp)
  mov    -0x40(%rbp),%rax
  mov    %rax,-0x58(%rbp)
L25:
  mov    -0x58(%rbp),%rax
  mov    $0x68,%esi
  mov    %rax,%rdi
  call   <strchr@plt>
  mov    %rax,-0x40(%rbp)
  cmpq   $0x0,-0x40(%rbp)
  je     L148
  mov    -0x40(%rbp),%rax
  movb   $0x0,(%rax)
  addq   $0x1,-0x40(%rbp)
  mov    -0x58(%rbp),%rax
  mov    %rax,%rdi
  call   <atoi@plt>
  imul   $0xe10,%eax,%eax
  add    %eax,-0x60(%rbp)
  mov    -0x40(%rbp),%rax
  mov    %rax,-0x58(%rbp)
L148:
  mov    -0x58(%rbp),%rax
  mov    $0x6d,%esi
  mov    %rax,%rdi
  call   <strchr@plt>
  mov    %rax,-0x40(%rbp)
  cmpq   $0x0,-0x40(%rbp)
  je     L6
  mov    -0x40(%rbp),%rax
  movb   $0x0,(%rax)
  addq   $0x1,-0x40(%rbp)
  mov    -0x58(%rbp),%rax
  mov    %rax,%rdi
  call   <atoi@plt>
  imul   $0x3c,%eax,%eax
  add    %eax,-0x60(%rbp)
  mov    -0x40(%rbp),%rax
  mov    %rax,-0x58(%rbp)
L6:
  mov    -0x58(%rbp),%rax
  mov    $0x73,%esi
  mov    %rax,%rdi
  call   <strchr@plt>
  mov    %rax,-0x40(%rbp)
  cmpq   $0x0,-0x40(%rbp)
  je     L58
  mov    -0x40(%rbp),%rax
  movb   $0x0,(%rax)
L58:
  mov    -0x58(%rbp),%rax
  mov    %rax,%rdi
  call   <atoi@plt>
  add    %eax,-0x60(%rbp)
  mov    -0x60(%rbp),%eax
L60:
  mov    %rbx,%rsp
  mov    -0x38(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L126
  call   <__stack_chk_fail@plt>
L126:
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
```

tool_calls: name: extract_symbolic_data
arguments: label: D4
datatype: string

tool: D4: ttl=

assistant: ```c
uint32_t searchttl(char *str) {
  char buf[strlen(str) + 1];
  char *cptr, *dptr;
  uint32_t time;
  int i;
  dptr = strstr(str, "ttl=");
  if (dptr == NULL)
    return 43200;
  ;
  dptr += 4;
  i = 0;
  while (dptr[i] != '\0' && dptr[i] != ':')
    i++;
  if (i == 0)
    return 43200;
  strncpy(buf, dptr, i);
  buf[i] = '\0';
  time = 0;
  dptr = buf;
  cptr = strchr(dptr, 'd');
  if (cptr != NULL) {
    *cptr = '\0';
    cptr++;
    time += atoi(dptr) * 60 * 60 * 24;
    dptr = cptr;
  }
  cptr = strchr(dptr, 'h');
  if (cptr != NULL) {
    *cptr = '\0';
    cptr++;
    time += atoi(dptr) * 60 * 60;
    dptr = cptr;
  }
  cptr = strchr(dptr, 'm');
  if (cptr != NULL) {
    *cptr = '\0';
    cptr++;
    time += atoi(dptr) * 60;
    dptr = cptr;
  }
  cptr = strchr(dptr, 's');
  if (cptr != NULL)
    *cptr = '\0';
  time += atoi(dptr);
  return time;
}
```