user: What is the c source code of the assembly code 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     L77
L24:
  mov    %rbx,%rsi
  mov    %r12,%rdi
  call   <tokenize_input@plt>
  mov    (%rbx),%rdi
  lea    D14(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L57
  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
L58:
  lea    0x6(%rsp),%r12
  lea    D38(%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>
L17:
  mov    0x1018(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L10
  add    $0x1028,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  nopl   0x0(%rax)
L57:
  mov    (%rbx),%rdi
  lea    D46(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L38
  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    L58
  nopl   0x0(%rax)
L38:
  mov    (%rbx),%rdi
  lea    D57(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L51
  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    L17
  nopw   0x0(%rax,%rax,1)
L77:
  lea    D37(%rip),%rdi
  call   <error@plt>
  jmp    L24
  nopl   0x0(%rax)
L51:
  lea    D51(%rip),%rdi
  call   <printf@plt>
  jmp    L17
L10:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D14
data_type: string
name: extract_symbolic_data
arguments: data_tag: D38
data_type: string
name: extract_symbolic_data
arguments: data_tag: D46
data_type: string
name: extract_symbolic_data
arguments: data_tag: D57
data_type: string
name: extract_symbolic_data
arguments: data_tag: D37
data_type: string
name: extract_symbolic_data
arguments: data_tag: D51
data_type: string

tool: D14: add

tool: D38: %d

tool: D46: mult

tool: D57: BackUpFile

tool: D37: ERROR !! reading from socket

tool: D51: 
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");
}
```