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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %edi,-0x24(%rbp)
  mov    %rsi,-0x30(%rbp)
  cmpl   $0x4,-0x24(%rbp)
  je     L22
  lea    D38(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0x1,%eax
  jmp    L90
L22:
  mov    -0x30(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%rax
  mov    %rax,%rdi
  call   <atoi@plt>
  mov    %eax,-0x1c(%rbp)
  mov    -0x30(%rbp),%rax
  add    $0x18,%rax
  mov    (%rax),%rax
  mov    %rax,%rdi
  call   <atoi@plt>
  mov    %eax,-0x18(%rbp)
  mov    -0x30(%rbp),%rax
  add    $0x10,%rax
  mov    (%rax),%rax
  movzbl (%rax),%eax
  mov    %al,-0x1d(%rbp)
  cmpb   $0x2b,-0x1d(%rbp)
  jne    L25
  mov    -0x1c(%rbp),%edx
  mov    -0x18(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x4(%rbp)
  mov    -0x4(%rbp),%eax
  mov    %eax,%esi
  lea    D61(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L57
L25:
  cmpb   $0x2d,-0x1d(%rbp)
  jne    L33
  mov    -0x1c(%rbp),%eax
  sub    -0x18(%rbp),%eax
  mov    %eax,-0x8(%rbp)
  mov    -0x8(%rbp),%eax
  mov    %eax,%esi
  lea    D61(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L57
L33:
  cmpb   $0x2f,-0x1d(%rbp)
  jne    L50
  cmpl   $0x0,-0x18(%rbp)
  jne    L73
  lea    D38(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0x1,%eax
  jmp    L90
L73:
  mov    -0x1c(%rbp),%eax
  cltd
  idivl  -0x18(%rbp)
  mov    %eax,-0xc(%rbp)
  mov    -0xc(%rbp),%eax
  mov    %eax,%esi
  lea    D61(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L57
L50:
  cmpb   $0x2a,-0x1d(%rbp)
  jne    L99
  mov    -0x1c(%rbp),%eax
  imul   -0x18(%rbp),%eax
  mov    %eax,-0x10(%rbp)
  mov    -0x10(%rbp),%eax
  mov    %eax,%esi
  lea    D61(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L57
L99:
  cmpb   $0x25,-0x1d(%rbp)
  jne    L119
  mov    -0x1c(%rbp),%eax
  cltd
  idivl  -0x18(%rbp)
  mov    %edx,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  mov    %eax,%esi
  lea    D61(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L57
L119:
  lea    D38(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0x1,%eax
  jmp    L90
L57:
  mov    $0x0,%eax
L90:
  leave
  ret
```

tool_calls: name: unpack_data
arguments: label: D38
datatype: string
name: unpack_data
arguments: label: D61
datatype: string

tool: D38: expression invalide

tool: D61: %d

assistant: ```c
int main(int argc, char **argv) {
  if (argc != 4) {
    printf("expression invalide\n");
    return 1;
  }
  int value1 = atoi(argv[1]);
  int value2 = atoi(argv[3]);
  char operateur = *argv[2];
  if (operateur == '+') {
    int result = value1 + value2;
    printf("%d", result);
  } else if (operateur == '-') {
    int result = value1 - value2;
    printf("%d", result);
  } else if (operateur == '/') {
    if (value2 == 0) {
      printf("expression invalide\n");
      return 1;
    }
    int result = value1 / value2;
    printf("%d", result);
  } else if (operateur == '*') {
    int result = value1 * value2;
    printf("%d", result);
  } else if (operateur == '%') {
    int result = value1 % value2;
    printf("%d", result);
  } else {
    printf("expression invalide\n");
    return 1;
  }
  return 0;
}
```