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

```asm
<GetDoubleArg>:
  endbr64
  push   %r15
  push   %r14
  mov    $0x1,%r14d
  push   %r13
  push   %r12
  mov    %rdx,%r12
  push   %rbp
  mov    %rsi,%rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    (%rdi),%r13d
  mov    %rdi,(%rsp)
  mov    %rcx,0x8(%rsp)
  cmp    $0x1,%r13d
  jg     L22
  jmp    L123
  nopl   (%rax)
L20:
  mov    (%rsp),%rax
  mov    %ebx,%r14d
  mov    (%rax),%r13d
L131:
  cmp    %r14d,%r13d
  jle    L123
L22:
  movslq %r14d,%rax
  mov    %r12,%rdi
  lea    0x1(%r14),%ebx
  mov    0x0(%rbp,%rax,8),%rsi
  lea    0x0(,%rax,8),%r15
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L20
  cmp    %ebx,%r13d
  mov    $0x1,%esi
  lea    0x8(%r15),%r13
  jg     L32
L95:
  mov    (%rsp),%rax
  mov    (%rax),%edx
  cmp    %ebx,%edx
  jle    L33
L129:
  movslq %ebx,%r11
  movslq %esi,%rcx
  lea    0x8(%r13),%rax
  mov    %edx,%edi
  mov    %r11,%r10
  sub    %ebx,%edi
  sub    %rcx,%r10
  shl    $0x3,%r10
  cmp    %r10,%rax
  je     L73
  lea    -0x1(%rdi),%eax
  cmp    $0x2,%eax
  jbe    L73
  mov    %edi,%ecx
  lea    0x0(%rbp,%r13,1),%r9
  add    %rbp,%r10
  xor    %eax,%eax
  shr    %ecx
  shl    $0x4,%rcx
  nopw   0x0(%rax,%rax,1)
L117:
  movdqu (%r9,%rax,1),%xmm0
  movups %xmm0,(%r10,%rax,1)
  add    $0x10,%rax
  cmp    %rcx,%rax
  jne    L117
  mov    %edi,%eax
  and    $0xfffffffe,%eax
  add    %eax,%ebx
  cmp    %eax,%edi
  je     L119
  movslq %ebx,%rax
  sub    %esi,%ebx
  mov    0x0(%rbp,%rax,8),%rax
  movslq %ebx,%rbx
  mov    %rax,0x0(%rbp,%rbx,8)
L119:
  mov    %edx,%r14d
L46:
  mov    (%rsp),%rax
  sub    %esi,%edx
  mov    %edx,%r13d
  mov    %edx,(%rax)
  cmp    $0x2,%esi
  jne    L131
  add    $0x18,%rsp
  mov    $0x1,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L32:
  mov    0x8(%rbp,%r15,1),%rdi
  mov    0x8(%rsp),%rdx
  lea    D0(%rip),%rsi
  xor    %eax,%eax
  call   <sscanf@plt>
  mov    $0x1,%esi
  test   %eax,%eax
  je     L95
  mov    (%rsp),%rax
  lea    0x2(%r14),%ebx
  lea    0x10(%r15),%r13
  mov    $0x2,%esi
  mov    (%rax),%edx
  cmp    %ebx,%edx
  jg     L129
L33:
  mov    %ebx,%r14d
  jmp    L46
  nopl   (%rax)
L123:
  add    $0x18,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L73:
  lea    -0x1(%rdx),%edi
  neg    %rcx
  lea    0x0(%rbp,%r13,1),%rax
  sub    %ebx,%edi
  shl    $0x3,%rcx
  add    %r11,%rdi
  lea    0x8(%rbp,%rdi,8),%r9
  nopl   0x0(%rax)
L90:
  mov    (%rax),%rdi
  add    $0x8,%rax
  mov    %rdi,-0x8(%rax,%rcx,1)
  cmp    %rax,%r9
  jne    L90
  jmp    L119
```

tool_calls: name: extract_symbolic_data
arguments: tag: D0
type_guessed: string

tool: D0: %lf

assistant: ```c
GetDoubleArg(argc, argv, switchName, val) int *argc;
double *val;
char **argv, *switchName;
{
  int i, nremove, j;
  for (i = 1; i < *argc; i++) {
    if (!strcmp(switchName, argv[i])) {
      if (i + 1 < *argc) {
        if (sscanf(argv[i + 1], "%lf", val)) {
          nremove = 2;
        } else {
          nremove = 1;
        }
      } else {
        nremove = 1;
      }
      for (i += nremove; i < *argc; i++) {
        argv[i - nremove] = argv[i];
      }
      (*argc) -= nremove;
      if (nremove == 2)
        return 1;
      i--;
    }
  }
  return 0;
}
```