user: 请从给定的汇编指令推导出C源代码：

```asm
<Logarithm>:
  endbr64
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  lea    D101(%rip),%rdi
  call   <printf@plt>
  lea    0xc(%rsp),%rsi
  lea    D87(%rip),%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    0xc(%rsp),%eax
  cmp    $0x1,%eax
  je     L58
  cmp    $0x2,%eax
  je     L51
  cmp    $0x3,%eax
  je     L68
L45:
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L66
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  ret
L58:
  lea    D93(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0xc(%rsp),%rsi
  lea    D87(%rip),%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    0xc(%rsp),%edi
  call   <log10@plt>
  mov    0xc(%rsp),%esi
  lea    D52(%rip),%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  jmp    L45
L51:
  lea    D93(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0xc(%rsp),%rsi
  lea    D87(%rip),%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    0xc(%rsp),%ebx
  pxor   %xmm0,%xmm0
  cvtsi2sd %ebx,%xmm0
  call   <log@plt>
  mov    %ebx,%esi
  lea    D15(%rip),%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  jmp    L45
L68:
  lea    D79(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0xc(%rsp),%rsi
  lea    D87(%rip),%rbx
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  lea    D57(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x10(%rsp),%rsi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    0xc(%rsp),%ebp
  pxor   %xmm0,%xmm0
  cvtsi2sd %ebp,%xmm0
  call   <log@plt>
  movq   %xmm0,%rbx
  movsd  0x10(%rsp),%xmm0
  call   <log@plt>
  movapd %xmm0,%xmm1
  movq   %rbx,%xmm0
  divsd  %xmm1,%xmm0
  call   <log@plt>
  mov    %ebp,%esi
  lea    D15(%rip),%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  jmp    L45
L66:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: data_tag: D101
type: string
name: unpack_data
arguments: data_tag: D87
type: string
name: unpack_data
arguments: data_tag: D93
type: string
name: unpack_data
arguments: data_tag: D52
type: string
name: unpack_data
arguments: data_tag: D15
type: string
name: unpack_data
arguments: data_tag: D79
type: string
name: unpack_data
arguments: data_tag: D57
type: string

tool: D101: 1-Compute log base 10 
2- calculate natural logarithm 
3-Custom Log 

 Enter Choice
>>

tool: D87: %d

tool: D93: Enter Number

>>

tool: D52: Logarithm %d to the base 10 = %f

tool: D15: Logarithm %d to the base e = %f

tool: D79: Enter base

>>

tool: D57: Enter number

>>

assistant: ```c
void Logarithm() {
  int input, output;
  double i, x;
  printf("1-Compute log base 10 \n2- calculate natural logarithm \n3-Custom Log \n\n Enter Choice\n>>");
  scanf("%d", &input);
  if (input == 1) {
    printf("Enter Number\n\n>>");
    scanf("%d", &input);
    printf("Logarithm %d to the base 10 = %f", input, log10(input));
  } else if (input == 2) {
    printf("Enter Number\n\n>>");
    scanf("%d", &input);
    printf("Logarithm %d to the base e = %f", input, log(input));
  } else if (input == 3) {
    printf("Enter base\n\n>>");
    scanf("%d", &input);
    printf("Enter number\n\n>>");
    scanf("%d", &x);
    i = log(input) / log(x);
    printf("Logarithm %d to the base e = %f", input, log(i));
  }
}
```