user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<main>:
  endbr64
  push   %r15
  lea    D111(%rip),%rdi
  lea    D106(%rip),%r15
  push   %r14
  push   %r13
  lea    D119(%rip),%r13
  push   %r12
  push   %rbp
  push   %rbx
  lea    D97(%rip),%rbx
  sub    $0x38,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  mov    D27(%rip),%rax
  lea    0x14(%rsp),%r14
  mov    %rax,0x18(%rsp)
  call   <puts@plt>
  jmp    L13
  cs nopw 0x0(%rax,%rax,1)
L82:
  lea    D70(%rip),%rdi
  call   <puts@plt>
L110:
  cmpl   $0x3,0x14(%rsp)
  je     L73
L13:
  movsd  0x18(%rsp),%xmm0
  mov    %r13,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  lea    D2(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    D10(%rip),%rdi
  call   <puts@plt>
  lea    D108(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r14,%rsi
  mov    %r15,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    0x14(%rsp),%eax
  cmp    $0x1,%eax
  je     L91
  cmp    $0x2,%eax
  je     L78
  cmp    $0x3,%eax
  jne    L82
  lea    D101(%rip),%rdi
  call   <puts@plt>
  cmpl   $0x3,0x14(%rsp)
  jne    L13
L73:
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L25
  add    $0x38,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L91:
  lea    D40(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x18(%rsp),%rsi
  mov    %rbx,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  jmp    L110
  nopw   0x0(%rax,%rax,1)
L78:
  movq   $0x0,0x8(%rsp)
  lea    D35(%rip),%r12
  lea    0x20(%rsp),%rbp
  nopl   (%rax)
L57:
  mov    %r12,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  xor    %eax,%eax
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  movsd  0x20(%rsp),%xmm0
  pxor   %xmm1,%xmm1
  comisd %xmm1,%xmm0
  jb     L65
  addsd  0x8(%rsp),%xmm0
  movsd  %xmm0,0x8(%rsp)
  jmp    L57
  nopl   (%rax)
L65:
  movsd  0x8(%rsp),%xmm0
  lea    D15(%rip),%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  movsd  0x8(%rsp),%xmm0
  mulsd  0x18(%rsp),%xmm0
  lea    D18(%rip),%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  movsd  0x20(%rsp),%xmm0
  pxor   %xmm3,%xmm3
  comisd %xmm3,%xmm0
  jae    L57
  jmp    L110
L25:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: data_label: D111
type_guessed: string
name: retrieve_data
arguments: data_label: D106
type_guessed: string
name: retrieve_data
arguments: data_label: D119
type_guessed: string
name: retrieve_data
arguments: data_label: D97
type_guessed: string
name: retrieve_data
arguments: data_label: D27
type_guessed: f64
name: retrieve_data
arguments: data_label: D70
type_guessed: string
name: retrieve_data
arguments: data_label: D2
type_guessed: string
name: retrieve_data
arguments: data_label: D10
type_guessed: string
name: retrieve_data
arguments: data_label: D108
type_guessed: string
name: retrieve_data
arguments: data_label: D101
type_guessed: string
name: retrieve_data
arguments: data_label: D40
type_guessed: string
name: retrieve_data
arguments: data_label: D35
type_guessed: string
name: retrieve_data
arguments: data_label: D15
type_guessed: string
name: retrieve_data
arguments: data_label: D18
type_guessed: string

tool: D111: Your shopping assistant

tool: D106: %d

tool: D119: 
1. Set exchange rate in SEK (current rate: %.2f)

tool: D97: %lf

tool: D27: 1

tool: D70: Not a valid choice!

tool: D2: 
2. Read prices in the foreign currency

tool: D10: 
3. End

tool: D108: 
Give your choice (1 - 3): 

tool: D101: End of program!


tool: D40: Give exchange rate: 

tool: D35: Give price (finish with < 0): 

tool: D15: 
Sum in foreign currency: %.2f

tool: D18: 
Sum in SEK: %.2f


assistant: ```c
int main() {
  int menuSelection;
  double currencyRate = 1.0;
  printf("Your shopping assistant\n");
  do {
    printf("\n1. Set exchange rate in SEK (current rate: %.2f)", currencyRate);
    printf("\n2. Read prices in the foreign currency");
    printf("\n3. End\n");
    printf("\nGive your choice (1 - 3): ");
    scanf("%d", &menuSelection);
    printf("\n");
    if (menuSelection == 1) {
      printf("Give exchange rate: ");
      scanf("%lf", &currencyRate);
    } else if (menuSelection == 2) {
      double priceSum = 0;
      double price;
      do {
        printf("Give price (finish with < 0): ");
        scanf("%lf", &price);
        if (price >= 0) {
          priceSum = priceSum + price;
        } else {
          printf("\nSum in foreign currency: %.2f", priceSum);
          printf("\nSum in SEK: %.2f\n", (priceSum * currencyRate));
        }
      } while (price >= 0);
    } else if (menuSelection == 3) {
      printf("End of program!\n\n");
    } else {
      printf("Not a valid choice!\n");
    }
  } while (menuSelection != 3);
}
```