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

```asm
<str2dd>:
  endbr64
  push   %r14
  push   %r13
  mov    %rsi,%r13
  push   %r12
  push   %rbp
  mov    %rdx,%rbp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x10,%rsp
  movsbl (%rdi),%edi
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  call   <toupper@plt>
  cmp    $0x2b,%al
  je     L289
  xor    %r14d,%r14d
  cmp    $0x4e,%al
  je     L289
L358:
  cmp    $0x2d,%al
  je     L111
  cmp    $0x53,%al
  je     L111
L174:
  mov    %rsp,%r12
  mov    %rbx,%rdi
  mov    %r12,%rsi
  call   <parse_dd_or_dms@plt>
  movsd  %xmm0,0x0(%r13)
  call   <isnan@plt>
  test   %rax,%rax
  jne    L221
  mov    (%rsp),%rax
  cmp    %rbx,%rax
  je     L221
  test   %rax,%rax
  je     L221
  movsbl (%rax),%edi
  test   %dil,%dil
  je     L221
  test   %r14d,%r14d
  je     L372
  cmp    $0xffffffff,%r14d
  jne    L349
  jmp    L240
  nopl   0x0(%rax)
L361:
  mov    (%rsp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,(%rsp)
  movsbl 0x1(%rax),%edi
L349:
  call   <isspace@plt>
  test   %rax,%rax
  jne    L361
  mov    (%rsp),%rbx
  movsbl (%rbx),%edi
  test   %dil,%dil
  je     L221
  call   <toupper@plt>
  cmp    $0x2b,%al
  je     L72
  xor    %r13d,%r13d
  cmp    $0x57,%al
  je     L72
L107:
  cmp    $0x2d,%al
  je     L226
  cmp    $0x45,%al
  je     L226
L140:
  mov    %r12,%rsi
  mov    %rbx,%rdi
  call   <parse_dd_or_dms@plt>
  movsd  %xmm0,0x0(%rbp)
  call   <isnan@plt>
  test   %rax,%rax
  jne    L221
  mov    (%rsp),%rdx
  cmp    %rbx,%rdx
  je     L221
  test   %rdx,%rdx
  je     L244
  movzbl (%rdx),%ecx
  mov    $0x1,%eax
  test   %cl,%cl
  je     L128
  test   %r13d,%r13d
  je     L317
  cmp    $0xffffffff,%r13d
  je     L75
L78:
  xor    %eax,%eax
  test   %cl,%cl
  sete   %al
  jmp    L128
  cs nopw 0x0(%rax,%rax,1)
L111:
  add    $0x1,%rbx
  mov    $0xffffffff,%r14d
  jmp    L174
  nop
L289:
  add    $0x1,%rbx
  mov    $0x1,%r14d
  jmp    L358
  nop
L221:
  xor    %eax,%eax
L128:
  mov    0x8(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L299
  add    $0x10,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
  nopl   0x0(%rax,%rax,1)
L372:
  call   <toupper@plt>
  cmp    $0x4e,%al
  je     L361
  mov    (%rsp),%rdx
  cmp    $0x53,%al
  je     L247
  movsbl (%rdx),%edi
  jmp    L349
L247:
  lea    0x1(%rdx),%rax
  mov    %rax,(%rsp)
L240:
  movsd  0x0(%r13),%xmm0
  xorpd  D11(%rip),%xmm0
  movsd  %xmm0,0x0(%r13)
  movsbl (%rax),%edi
  jmp    L349
  nopl   0x0(%rax)
L226:
  add    $0x1,%rbx
  mov    $0xffffffff,%r13d
  jmp    L140
  nop
L72:
  add    $0x1,%rbx
  mov    $0x1,%r13d
  jmp    L107
L317:
  movsbl %cl,%edi
  call   <toupper@plt>
  cmp    $0x57,%al
  je     L54
  mov    (%rsp),%rdx
  cmp    $0x45,%al
  jne    L180
  add    $0x1,%rdx
  mov    %rdx,(%rsp)
L75:
  movsd  0x0(%rbp),%xmm0
  xorpd  D11(%rip),%xmm0
  movsd  %xmm0,0x0(%rbp)
L180:
  movzbl (%rdx),%ecx
  jmp    L78
L244:
  mov    $0x1,%eax
  jmp    L128
L54:
  mov    (%rsp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,(%rsp)
  movzbl 0x1(%rax),%ecx
  jmp    L78
L299:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: label: D11
type_guessed: byte[16]

tool: {"D11": [0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00]}

assistant: ```c
int str2dd(char *s, double *lat, double *lon) {
  char *e;
  int dir = 0;
  char c;
  c = toupper(*s);
  if (c == '+' || c == 'N') {
    s++;
    dir = 1;
  }
  if (c == '-' || c == 'S') {
    s++;
    dir = -1;
  }
  *lat = parse_dd_or_dms(s, &e);
  if (isnan(*lat) || e == NULL || e == s || *e == '\0')
    return 0;
  if (!dir) {
    c = toupper(*e);
    if (c == 'N')
      dir = 1;
    if (c == 'S')
      dir = -1;
    if (dir)
      e++;
  }
  if (dir < 0)
    *lat = -*lat;
  while (isspace(*e))
    e++;
  if (*e == '\0')
    return 0;
  s = e;
  dir = 0;
  c = toupper(*s);
  if (c == '+' || c == 'W') {
    s++;
    dir = 1;
  }
  if (c == '-' || c == 'E') {
    s++;
    dir = -1;
  }
  *lon = parse_dd_or_dms(s, &e);
  if (isnan(*lon) || e == s)
    return 0;
  if (e == NULL || *e == '\0')
    return 1;
  if (dir == 0) {
    c = toupper(*e);
    if (c == 'W')
      dir = 1;
    if (c == 'E')
      dir = -1;
    if (dir != 0)
      e++;
  }
  if (dir < 0)
    *lon = -*lon;
  return (*e == '\0');
}
```