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

```asm
<recipe>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r12
  push   %rbx
  sub    $0x50,%rsp
  mov    %edi,-0x64(%rbp)
  movsd  %xmm0,-0x70(%rbp)
  mov    %fs:0x28,%rsi
  mov    %rsi,-0x28(%rbp)
  xor    %esi,%esi
  mov    %rsp,%rsi
  mov    %rsi,%r12
  mov    -0x64(%rbp),%esi
  movslq %esi,%rdi
  sub    $0x1,%rdi
  mov    %rdi,-0x48(%rbp)
  movslq %esi,%rdi
  mov    %rdi,%rax
  mov    $0x0,%edx
  imul   $0xa8,%rdx,%r8
  imul   $0x0,%rax,%rdi
  add    %r8,%rdi
  mov    $0xa8,%r8d
  mul    %r8
  add    %rdx,%rdi
  mov    %rdi,%rdx
  movslq %esi,%rax
  mov    %rax,%rcx
  mov    $0x0,%ebx
  imul   $0xa8,%rbx,%rdx
  imul   $0x0,%rcx,%rax
  lea    (%rdx,%rax,1),%rdi
  mov    $0xa8,%eax
  mul    %rcx
  lea    (%rdi,%rdx,1),%rcx
  mov    %rcx,%rdx
  movslq %esi,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  shl    $0x2,%rax
  add    %rax,%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%ebx
  mov    $0x0,%edx
  div    %rbx
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L105:
  cmp    %rdx,%rsp
  je     L57
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L105
L57:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L129
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L129:
  mov    %rsp,%rax
  add    $0x0,%rax
  mov    %rax,-0x40(%rbp)
  mov    -0x64(%rbp),%eax
  movslq %eax,%rdx
  sub    $0x1,%rdx
  mov    %rdx,-0x38(%rbp)
  movslq %eax,%rdx
  mov    %rdx,%r14
  mov    $0x0,%r15d
  movslq %eax,%rdx
  mov    %rdx,%r10
  mov    $0x0,%r11d
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%ebx
  mov    $0x0,%edx
  div    %rbx
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L101:
  cmp    %rdx,%rsp
  je     L45
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L101
L45:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L11
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L11:
  mov    %rsp,%rax
  add    $0x7,%rax
  shr    $0x3,%rax
  shl    $0x3,%rax
  mov    %rax,-0x30(%rbp)
  movsd  D27(%rip),%xmm0
  movsd  %xmm0,-0x50(%rbp)
  movl   $0x0,-0x60(%rbp)
  jmp    L32
L55:
  mov    -0x60(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x60(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  mov    -0x40(%rbp),%rdx
  lea    (%rax,%rdx,1),%rsi
  lea    -0x58(%rbp),%rax
  mov    %rax,%rdx
  lea    D8(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  mov    -0x30(%rbp),%rax
  mov    -0x60(%rbp),%edx
  movslq %edx,%rdx
  movsd  (%rax,%rdx,8),%xmm0
  ucomisd D41(%rip),%xmm0
  jp     L48
  ucomisd D41(%rip),%xmm0
  jne    L48
  movsd  -0x58(%rbp),%xmm0
  movsd  -0x70(%rbp),%xmm1
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x50(%rbp)
L48:
  mov    -0x30(%rbp),%rax
  mov    -0x60(%rbp),%edx
  movslq %edx,%rdx
  movsd  (%rax,%rdx,8),%xmm0
  movsd  D41(%rip),%xmm1
  divsd  %xmm1,%xmm0
  mov    -0x30(%rbp),%rax
  mov    -0x60(%rbp),%edx
  movslq %edx,%rdx
  movsd  %xmm0,(%rax,%rdx,8)
  addl   $0x1,-0x60(%rbp)
L32:
  mov    -0x60(%rbp),%eax
  cmp    -0x64(%rbp),%eax
  jl     L55
  movl   $0x0,-0x5c(%rbp)
  jmp    L36
L84:
  mov    -0x30(%rbp),%rax
  mov    -0x5c(%rbp),%edx
  movslq %edx,%rdx
  movsd  (%rax,%rdx,8),%xmm0
  mulsd  -0x50(%rbp),%xmm0
  movq   %xmm0,%rcx
  mov    -0x5c(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  mov    -0x40(%rbp),%rdx
  add    %rdx,%rax
  movq   %rcx,%xmm0
  mov    %rax,%rsi
  lea    D30(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  addl   $0x1,-0x5c(%rbp)
L36:
  mov    -0x5c(%rbp),%eax
  cmp    -0x64(%rbp),%eax
  jl     L84
  mov    %r12,%rsp
  nop
  mov    -0x28(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L99
  call   <__stack_chk_fail@plt>
L99:
  lea    -0x20(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
```

tool_calls: name: extract_symbolic_data
arguments: tag: D27
type_guessed: byte[8]
name: extract_symbolic_data
arguments: tag: D8
type_guessed: string
name: extract_symbolic_data
arguments: tag: D41
type_guessed: f64
name: extract_symbolic_data
arguments: tag: D30
type_guessed: string

tool: {"D27": [0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0xbf]}

tool: D8: %s %lf %lf

tool: D41: 100

tool: D30: %s %.1lf


assistant: ```c
void recipe(int ingredients, double scale) {
  char names[ingredients][21];
  double percentage[ingredients];
  double migs = -1;
  for (int i = 0; i < ingredients; i++) {
    double g;
    scanf("%s %lf %lf", names[i], &g, percentage + i);
    if (percentage[i] == 100.0)
      migs = g * scale;
    percentage[i] /= 100.0;
  }
  for (int i = 0; i < ingredients; i++)
    printf("%s %.1lf\n", names[i], migs * percentage[i]);
}
```