user: Please show me the C implementation that matches the assembly code listed below:

```asm
<performOperation>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x10,%rsp
  mov    %edi,%ebx
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  cmp    $0x5,%edi
  je     L95
  lea    -0x1(%rdi),%eax
  cmp    $0x4,%eax
  jbe    L59
L148:
  mov    $0x0,%eax
  call   <ErrorMessage@plt>
  mov    $0x0,%eax
  call   <getMenuOption@plt>
  mov    %eax,%ebx
  lea    -0x1(%rax),%eax
  cmp    $0x4,%eax
  ja     L148
L59:
  cmp    $0x3,%ebx
  je     L41
  jg     L173
  cmp    $0x1,%ebx
  je     L32
  cmp    $0x2,%ebx
  jne    L198
  lea    D17(%rip),%rdi
  call   <printf@plt>
  jmp    L198
L95:
  call   <Exit@plt>
L198:
  lea    0x4(%rsp),%r13
  mov    %rsp,%r12
  lea    D43(%rip),%rbp
  lea    D48(%rip),%r14
  jmp    L93
L173:
  cmp    $0x4,%ebx
  jne    L198
  lea    D35(%rip),%rdi
  call   <printf@plt>
  jmp    L198
L32:
  lea    D21(%rip),%rdi
  call   <printf@plt>
  jmp    L198
L41:
  lea    D31(%rip),%rdi
  call   <printf@plt>
  jmp    L198
L211:
  mov    %r14,%rdi
  call   <printf@plt>
  mov    $0x0,%eax
  call   <discardUnnecessaryInput@plt>
L93:
  mov    %r13,%rdx
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <scanf@plt>
  cmp    $0x2,%eax
  jne    L211
  cmp    $0x3,%ebx
  je     L153
  jg     L160
  cmp    $0x1,%ebx
  je     L189
  cmp    $0x2,%ebx
  jne    L30
  movss  0x4(%rsp),%xmm1
  movss  (%rsp),%xmm0
  call   <Subtraction@plt>
  jmp    L30
L160:
  cmp    $0x4,%ebx
  jne    L30
  movss  0x4(%rsp),%xmm1
  movss  (%rsp),%xmm0
  call   <Division@plt>
  jmp    L30
L189:
  movss  0x4(%rsp),%xmm1
  movss  (%rsp),%xmm0
  call   <Add@plt>
L30:
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L16
  add    $0x10,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L153:
  movss  0x4(%rsp),%xmm1
  movss  (%rsp),%xmm0
  call   <Multiplication@plt>
  jmp    L30
L16:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: label: D17
type: string
name: disassemble_data
arguments: label: D43
type: string
name: disassemble_data
arguments: label: D48
type: string
name: disassemble_data
arguments: label: D35
type: string
name: disassemble_data
arguments: label: D21
type: string
name: disassemble_data
arguments: label: D31
type: string

tool: D17: 
Please enter two numbers for Subtraction, separated by a space: 

tool: D43: %f %f

tool: D48: 
Error reading your numbers, please re-enter both numbers: 

tool: D35: 
Please enter two numbers for Division, separated by a space: 

tool: D21: 
Please enter two numbers for Addition, separated by a space: 

tool: D31: 
Please enter two numbers for Multiplication, separated by a space: 

assistant: ```c
void performOperation(int i) {
  if (i == 5) {
    Exit();
  }
  while ((i < 1) || (i > 5)) {
    ErrorMessage();
    i = getMenuOption();
  }
  float num1, num2;
  switch (i) {
  case 1:
    printf("\nPlease enter two numbers for Addition, separated by a space: ");
    break;
  case 2:
    printf("\nPlease enter two numbers for Subtraction, separated by a space: ");
    break;
  case 3:
    printf("\nPlease enter two numbers for Multiplication, separated by a space: ");
    break;
  case 4:
    printf("\nPlease enter two numbers for Division, separated by a space: ");
    break;
  default:
    break;
  }
  while (2 != scanf("%f %f", &num1, &num2)) {
    printf("\nError reading your numbers, please re-enter both numbers: ");
    discardUnnecessaryInput();
  }
  switch (i) {
  case 1:
    Add(num1, num2);
    break;
  case 2:
    Subtraction(num1, num2);
    break;
  case 3:
    Multiplication(num1, num2);
    break;
  case 4:
    Division(num1, num2);
    break;
  default:
    break;
  }
}
```