user: Translate the below assembly code into C programming language:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x50,%rsp
  mov    %edi,-0x44(%rbp)
  mov    %rsi,-0x50(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    D87(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0x40(%rbp),%rax
  mov    %rax,%rsi
  lea    D14(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  lea    D45(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0x3c(%rbp),%rax
  mov    %rax,%rsi
  lea    D14(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    -0x3c(%rbp),%edx
  mov    -0x40(%rbp),%eax
  add    %edx,%eax
  mov    %eax,%esi
  lea    D95(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x40(%rbp),%eax
  mov    %eax,-0x38(%rbp)
  mov    -0x3c(%rbp),%eax
  mov    %eax,-0x34(%rbp)
  mov    -0x34(%rbp),%edx
  mov    -0x38(%rbp),%eax
  cmp    %eax,%edx
  cmovge %edx,%eax
  mov    %eax,%ecx
  mov    -0x40(%rbp),%eax
  mov    %eax,-0x30(%rbp)
  mov    -0x3c(%rbp),%eax
  mov    %eax,-0x2c(%rbp)
  mov    -0x2c(%rbp),%edx
  mov    -0x30(%rbp),%eax
  cmp    %eax,%edx
  cmovg  %eax,%edx
  mov    %ecx,%eax
  sub    %edx,%eax
  mov    %eax,%esi
  lea    D50(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x40(%rbp),%edx
  mov    -0x3c(%rbp),%eax
  imul   %edx,%eax
  mov    %eax,%esi
  lea    D84(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x40(%rbp),%eax
  mov    %eax,-0x28(%rbp)
  mov    -0x3c(%rbp),%eax
  mov    %eax,-0x24(%rbp)
  mov    -0x24(%rbp),%edx
  mov    -0x28(%rbp),%eax
  cmp    %eax,%edx
  cmovge %edx,%eax
  mov    %eax,%ecx
  mov    -0x40(%rbp),%eax
  mov    %eax,-0x20(%rbp)
  mov    -0x3c(%rbp),%eax
  mov    %eax,-0x1c(%rbp)
  mov    -0x1c(%rbp),%edx
  mov    -0x20(%rbp),%eax
  cmp    %eax,%edx
  cmovle %edx,%eax
  mov    %eax,%esi
  mov    %ecx,%eax
  cltd
  idiv   %esi
  mov    %eax,%esi
  lea    D73(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x40(%rbp),%eax
  mov    %eax,-0x18(%rbp)
  mov    -0x3c(%rbp),%eax
  mov    %eax,-0x14(%rbp)
  mov    -0x14(%rbp),%edx
  mov    -0x18(%rbp),%eax
  cmp    %eax,%edx
  cmovge %edx,%eax
  mov    %eax,%ecx
  mov    -0x40(%rbp),%eax
  mov    %eax,-0x10(%rbp)
  mov    -0x3c(%rbp),%eax
  mov    %eax,-0xc(%rbp)
  mov    -0xc(%rbp),%edx
  mov    -0x10(%rbp),%eax
  cmp    %eax,%edx
  cmovle %edx,%eax
  mov    %eax,%esi
  mov    %ecx,%eax
  cltd
  idiv   %esi
  mov    %edx,%eax
  mov    %eax,%esi
  lea    D71(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x40(%rbp),%edx
  mov    -0x3c(%rbp),%eax
  add    %edx,%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  pxor   %xmm0,%xmm0
  cvtsi2ss %eax,%xmm0
  pxor   %xmm1,%xmm1
  cvtss2sd %xmm0,%xmm1
  movq   %xmm1,%rax
  movq   %rax,%xmm0
  lea    D2(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L1
  call   <__stack_chk_fail@plt>
L1:
  leave
  ret
```

tool_calls: name: unpack_data
arguments: label: D87
datatype: string
name: unpack_data
arguments: label: D14
datatype: string
name: unpack_data
arguments: label: D45
datatype: string
name: unpack_data
arguments: label: D95
datatype: string
name: unpack_data
arguments: label: D50
datatype: string
name: unpack_data
arguments: label: D84
datatype: string
name: unpack_data
arguments: label: D73
datatype: string
name: unpack_data
arguments: label: D71
datatype: string
name: unpack_data
arguments: label: D2
datatype: string

tool: D87: Hello. Please enter your first integer: 

tool: D14: %d

tool: D45: Hello. Please enter your second integer: 

tool: D95: Sum: %d


tool: D50: Difference: %d


tool: D84: Product: %d


tool: D73: Quotient: %d


tool: D71: Remainder: %d


tool: D2: Average: %f


assistant: ```c
int main(int argc, char **argv) {
  int a, b;
  printf("Hello. Please enter your first integer: ");
  scanf("%d", &a);
  printf("Hello. Please enter your second integer: ");
  scanf("%d", &b);
  printf("Sum: %d\n", b + a);
  printf("Difference: %d\n", ({
                               __typeof__(a) _a = (a);
                               __typeof__(b) _b = (b);
                               _a > _b ? _a : _b;
                             }) - ({
                               __typeof__(a) _a = (a);
                               __typeof__(b) _b = (b);
                               _a < _b ? _a : _b;
                             }));
  printf("Product: %d\n", a * b);
  printf("Quotient: %d\n", ({
                             __typeof__(a) _a = (a);
                             __typeof__(b) _b = (b);
                             _a > _b ? _a : _b;
                           }) / ({
                             __typeof__(a) _a = (a);
                             __typeof__(b) _b = (b);
                             _a < _b ? _a : _b;
                           }));
  printf("Remainder: %d\n", ({
                              __typeof__(a) _a = (a);
                              __typeof__(b) _b = (b);
                              _a > _b ? _a : _b;
                            }) % ({
                              __typeof__(a) _a = (a);
                              __typeof__(b) _b = (b);
                              _a < _b ? _a : _b;
                            }));
  printf("Average: %f\n", (float)((a + b) / 2));
  return 0;
}
```