user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<work>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  sub    $0x28,%rsp
  mov    %edi,%ebp
  mov    %rsi,%rbx
  mov    %rdx,%r12
  mov    %fs:0x28,%rax
  mov    %rax,0x1018(%rsp)
  xor    %eax,%eax
  lea    0x10(%rsp),%r13
  mov    $0x1000,%esi
  mov    %r13,%rdi
  call   <bzero@plt>
  mov    $0x1000,%edx
  mov    %r13,%rsi
  mov    %ebp,%edi
  call   <read@plt>
  test   %eax,%eax
  js     L10
L31:
  lea    0x10(%rsp),%rdi
  mov    %rbx,%rsi
  call   <tokenize_input@plt>
  lea    D5(%rip),%rsi
  mov    (%rbx),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L60
  mov    $0xe,%edi
  call   <malloc@plt>
  mov    %rax,%r13
  mov    0x8(%rbx),%rdi
  call   <atoi@plt>
  mov    %eax,%r12d
  mov    0x10(%rbx),%rdi
  call   <atoi@plt>
  lea    (%r12,%rax,1),%ecx
  lea    0x6(%rsp),%rbx
  lea    D35(%rip),%rdx
  mov    $0xa,%esi
  mov    %rbx,%rdi
  call   <snprintf@plt>
  mov    %rbx,%rsi
  mov    %r13,%rdi
  call   <strcpy@plt>
  mov    $0x32,%edx
  mov    %r13,%rsi
  mov    %ebp,%edi
  call   <write@plt>
L88:
  mov    0x1018(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L70
  mov    $0x0,%eax
  add    $0x1028,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L10:
  lea    D36(%rip),%rdi
  call   <error@plt>
  jmp    L31
L60:
  lea    D31(%rip),%rsi
  mov    (%rbx),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L37
  mov    $0xe,%edi
  call   <malloc@plt>
  mov    %rax,%r13
  mov    0x8(%rbx),%rdi
  call   <atoi@plt>
  mov    %eax,%r12d
  mov    0x10(%rbx),%rdi
  call   <atoi@plt>
  mov    %r12d,%ecx
  imul   %eax,%ecx
  lea    0x6(%rsp),%rbx
  lea    D35(%rip),%rdx
  mov    $0xa,%esi
  mov    %rbx,%rdi
  call   <snprintf@plt>
  mov    %rbx,%rsi
  mov    %r13,%rdi
  call   <strcpy@plt>
  mov    $0x32,%edx
  mov    %r13,%rsi
  mov    %ebp,%edi
  call   <write@plt>
  jmp    L88
L37:
  lea    D18(%rip),%rsi
  mov    (%rbx),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L43
  mov    $0x5,%edi
  call   <malloc@plt>
  mov    0x8(%rbx),%rdi
  mov    %r12,%rsi
  call   <BackUpFile@plt>
  mov    %rax,%rbx
  mov    %rax,%rdi
  call   <strlen@plt>
  lea    0x1(%rax),%edx
  mov    %rbx,%rsi
  mov    %ebp,%edi
  call   <write@plt>
  jmp    L88
L43:
  lea    D49(%rip),%rdi
  call   <printf@plt>
  jmp    L88
L70:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: label: D5
type: string
name: retrieve_data
arguments: label: D35
type: string
name: retrieve_data
arguments: label: D36
type: string
name: retrieve_data
arguments: label: D31
type: string
name: retrieve_data
arguments: label: D18
type: string
name: retrieve_data
arguments: label: D49
type: string

tool: D5: add

tool: D35: %d

tool: D36: ERROR !! reading from socket

tool: D31: mult

tool: D18: BackUpFile

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