user: 下面的汇编指令对应的C源代码是什么:

```asm
<get_tx_rx_data>:
  endbr64
  push   %r15
  mov    %rdx,%r15
  push   %r14
  mov    %rsi,%r14
  push   %r13
  mov    %rdi,%r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x328,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x318(%rsp)
  movabs $0x656e2f636f72702f,%rax
  movl   $0x0,(%rdx)
  lea    0x112(%rsp),%rdi
  movl   $0x0,(%rsi)
  lea    0xc(%rsp),%rsi
  movl   $0x65642f74,0x11a(%rsp)
  mov    %rax,0x112(%rsp)
  mov    $0x76,%eax
  mov    %ax,0x11e(%rsp)
  call   <stat@plt>
  test   %rax,%rax
  js     L3
  lea    D28(%rip),%rsi
  lea    D21(%rip),%rdi
  xor    %ebx,%ebx
  call   <popen@plt>
  lea    0x120(%rsp),%rbp
  mov    %rax,%r12
  test   %rax,%rax
  je     L68
  nopl   0x0(%rax)
L57:
  mov    %r12,%rdx
  mov    $0x1f3,%esi
  mov    %rbp,%rdi
  call   <fgets@plt>
  test   %rax,%rax
  je     L20
  add    $0x1,%ebx
  cmp    $0x1,%ebx
  je     L57
  mov    %r13,%rsi
  mov    %rbp,%rdi
  call   <strstr@plt>
  test   %rax,%rax
  je     L57
  mov    %r12,%rdi
  call   <pclose@plt>
  mov    $0x3a,%esi
  mov    %rbp,%rdi
  call   <strchr@plt>
  test   %rax,%rax
  je     L30
  movb   $0x20,(%rax)
L30:
  mov    %rbp,%rdi
  call   <strlen@plt>
  lea    D2(%rip),%r8
  lea    0x10(%rsp),%rsi
  mov    %rbp,%rdi
  lea    D7(%rip),%rcx
  mov    %r8,%rdx
  call   <tokenize@plt>
  cmp    $0xc,%eax
  jg     L37
  nopl   0x0(%rax)
L3:
  mov    0x318(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L69
  add    $0x328,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   (%rax)
L20:
  mov    %r12,%rdi
  call   <pclose@plt>
  jmp    L3
  nopw   0x0(%rax,%rax,1)
L37:
  mov    0x20(%rsp),%rdi
  call   <atoi@plt>
  mov    0x60(%rsp),%rdi
  mov    %eax,(%r15)
  call   <atoi@plt>
  mov    %eax,(%r14)
  jmp    L3
  nopl   0x0(%rax)
L68:
  lea    D8(%rip),%rdi
  call   <printf@plt>
  jmp    L3
L69:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: tag: D28
datatype: string
name: read_data
arguments: tag: D21
datatype: string
name: read_data
arguments: tag: D2
datatype: string
name: read_data
arguments: tag: D7
datatype: string
name: read_data
arguments: tag: D8
datatype: string

tool: D28: r

tool: D21: cat /proc/net/dev

tool: D2:  

tool: D7:  	


tool: D8: Failed to open /proc/net/dev


assistant: ```c
void get_tx_rx_data(char *if_name, unsigned int *tx_data, unsigned int *rx_data) {
  char net_dev[] = "/proc/net/dev";
  struct stat file_stat;
  int toknum;
  char *token[32];
  FILE *pipe_fd;
  char line[500];
  int i, len, found = 0;
  char *ptr;
  *tx_data = *rx_data = 0;
  if (stat(net_dev, &file_stat) < 0)
    return;
  pipe_fd = popen("cat /proc/net/dev", "r");
  if (pipe_fd == NULL) {
    printf("Failed to open /proc/net/dev\n");
    return;
  }
  i = 0;
  while (fgets(line, sizeof(line) - 1, pipe_fd)) {
    if (++i < 2)
      continue;
    if (strstr(line, if_name) != NULL) {
      found = 1;
      break;
    }
  }
  pclose(pipe_fd);
  if (!found) {
    return;
  }
  if ((ptr = strchr(line, ':')) != NULL) {
    *ptr = ' ';
  }
  len = strlen(line) + 1;
  toknum = tokenize(line, token, " ", " \t\n", " ");
  if (toknum < 13)
    return;
  *rx_data = atoi(token[2]);
  *tx_data = atoi(token[10]);
  return;
}
```