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

```asm
<work>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  sub    $0x28,%rsp
  lea    0x10(%rsp),%r12
  mov    %edi,%ebp
  mov    %rsi,%rbx
  mov    $0x1000,%esi
  mov    %fs:0x28,%rax
  mov    %rax,0x1018(%rsp)
  xor    %eax,%eax
  mov    %r12,%rdi
  mov    %rdx,%r13
  call   <bzero@plt>
  mov    $0x1000,%edx
  mov    %r12,%rsi
  mov    %ebp,%edi
  call   <read@plt>
  test   %eax,%eax
  js     L21
L37:
  mov    %rbx,%rsi
  mov    %r12,%rdi
  call   <tokenize_input@plt>
  mov    (%rbx),%rdi
  lea    D45(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L54
  mov    $0xe,%edi
  call   <malloc@plt>
  mov    0x8(%rbx),%rdi
  mov    %rax,%r13
  call   <atoi@plt>
  mov    0x10(%rbx),%rdi
  mov    %eax,%r12d
  call   <atoi@plt>
  lea    (%r12,%rax,1),%ecx
L53:
  lea    0x6(%rsp),%r12
  lea    D14(%rip),%rdx
  mov    $0xa,%esi
  mov    %r12,%rdi
  call   <snprintf@plt>
  mov    %r12,%rsi
  mov    %r13,%rdi
  call   <strcpy@plt>
  mov    $0x32,%edx
  mov    %r13,%rsi
  mov    %ebp,%edi
  call   <write@plt>
L69:
  mov    0x1018(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L6
  add    $0x1028,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  nopl   0x0(%rax)
L54:
  mov    (%rbx),%rdi
  lea    D32(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L20
  mov    $0xe,%edi
  call   <malloc@plt>
  mov    0x8(%rbx),%rdi
  mov    %rax,%r13
  call   <atoi@plt>
  mov    0x10(%rbx),%rdi
  mov    %eax,%r12d
  call   <atoi@plt>
  mov    %r12d,%ecx
  imul   %eax,%ecx
  jmp    L53
  nopl   0x0(%rax)
L20:
  mov    (%rbx),%rdi
  lea    D30(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L42
  mov    $0x5,%edi
  call   <malloc@plt>
  mov    0x8(%rbx),%rdi
  mov    %r13,%rsi
  call   <BackUpFile@plt>
  mov    %rax,%rdi
  mov    %rax,%r12
  call   <strlen@plt>
  mov    %r12,%rsi
  mov    %ebp,%edi
  lea    0x1(%rax),%edx
  call   <write@plt>
  jmp    L69
  nopw   0x0(%rax,%rax,1)
L21:
  lea    D12(%rip),%rdi
  call   <error@plt>
  jmp    L37
  nopl   0x0(%rax)
L42:
  lea    D0(%rip),%rdi
  call   <printf@plt>
  jmp    L69
L6:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: label: D45
datatype: string
name: parse_data
arguments: label: D14
datatype: string
name: parse_data
arguments: label: D32
datatype: string
name: parse_data
arguments: label: D30
datatype: string
name: parse_data
arguments: label: D12
datatype: string
name: parse_data
arguments: label: D0
datatype: string

tool: D45: add

tool: D14: %d

tool: D32: mult

tool: D30: BackUpFile

tool: D12: ERROR !! reading from socket

tool: D0: 
Service not Hosted by Server

assistant: ```c
int work(int sock, char *arr[], char *file_buffer) {
  int n, i, x;
  char buffer[4096], *path, *temp, no_buf[10];
  bzero(buffer, 4096);
  n = read(sock, buffer, 4096);
  if (n < 0)
    error("ERROR !! reading from socket");
  tokenize_input(buffer, arr);
  if ((strcmp(arr[0], "add")) == 0) {
    temp = malloc(sizeof(strlen("\nAddition = ")) + 10);
    x = atoi(arr[1]) + atoi(arr[2]);
    snprintf(no_buf, 10, "%d", x);
    strcpy(temp, no_buf);
    n = write(sock, temp, 50);
  } else if ((strcmp(arr[0], "mult")) == 0) {
    temp = malloc(sizeof(strlen("\nProduct = ")) + 10);
    x = atoi(arr[1]) * atoi(arr[2]);
    snprintf(no_buf, 10, "%d", x);
    strcpy(temp, no_buf);
    n = write(sock, temp, 50);
  } else if ((strcmp(arr[0], "BackUpFile")) == 0) {
    path = (char *)malloc(sizeof(strlen(arr[1])) + 1);
    path = (char *)arr[1];
    file_buffer = (char *)BackUpFile(path, file_buffer);
    n = write(sock, file_buffer, strlen(file_buffer) + 1);
  } else
    printf("\nService not Hosted by Server");
}
```