user: 请将以下的汇编代码转换成C语言代码:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x140,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    D35(%rip),%rax
  mov    %rax,%rsi
  lea    D19(%rip),%rax
  mov    %rax,%rdi
  call   <popen@plt>
  mov    %rax,-0x138(%rbp)
  jmp    L190
L175:
  lea    -0x110(%rbp),%rax
  mov    %rax,-0x140(%rbp)
  mov    -0x140(%rbp),%rax
  mov    %rax,-0x130(%rbp)
  jmp    L230
L122:
  addq   $0x1,-0x140(%rbp)
L230:
  mov    -0x140(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L46
  mov    -0x140(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x7c,%al
  jne    L122
L46:
  cmpq   $0x0,-0x140(%rbp)
  je     L88
  mov    -0x140(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x140(%rbp)
  movb   $0x0,(%rax)
  jmp    L1
L88:
  nop
L1:
  mov    -0x140(%rbp),%rax
  mov    %rax,-0x128(%rbp)
  jmp    L20
L197:
  addq   $0x1,-0x140(%rbp)
L20:
  mov    -0x140(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L108
  mov    -0x140(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x7c,%al
  jne    L197
L108:
  cmpq   $0x0,-0x140(%rbp)
  je     L56
  mov    -0x140(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x140(%rbp)
  movb   $0x0,(%rax)
  jmp    L226
L56:
  nop
L226:
  mov    -0x140(%rbp),%rax
  mov    %rax,-0x120(%rbp)
  jmp    L234
L132:
  addq   $0x1,-0x140(%rbp)
L234:
  mov    -0x140(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L223
  mov    -0x140(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x7c,%al
  jne    L132
L223:
  cmpq   $0x0,-0x140(%rbp)
  je     L215
  mov    -0x140(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x140(%rbp)
  movb   $0x0,(%rax)
  jmp    L140
L215:
  nop
L140:
  mov    -0x140(%rbp),%rax
  mov    %rax,-0x118(%rbp)
  jmp    L97
L35:
  addq   $0x1,-0x140(%rbp)
L97:
  mov    -0x140(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L173
  mov    -0x140(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x7c,%al
  jne    L35
L173:
  cmpq   $0x0,-0x140(%rbp)
  je     L13
  mov    -0x140(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x140(%rbp)
  movb   $0x0,(%rax)
  jmp    L145
L13:
  nop
L145:
  mov    -0x130(%rbp),%rax
  mov    %rax,%rdi
  call   <trim_clean@plt>
  mov    %rax,-0x130(%rbp)
  mov    -0x128(%rbp),%rax
  mov    %rax,%rdi
  call   <trim_clean@plt>
  mov    %rax,-0x128(%rbp)
  mov    -0x118(%rbp),%rax
  mov    %rax,%rdi
  call   <trim_clean@plt>
  mov    %rax,-0x118(%rbp)
  mov    -0x130(%rbp),%rax
  mov    %rax,-0x140(%rbp)
  jmp    L12
L41:
  mov    -0x140(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isspace@plt>
  test   %rax,%rax
  je     L39
  mov    -0x140(%rbp),%rax
  movb   $0x3a,(%rax)
L39:
  addq   $0x1,-0x140(%rbp)
L12:
  mov    -0x140(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L41
  mov    -0x128(%rbp),%rdx
  mov    -0x130(%rbp),%rax
  lea    D34(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <print_line@plt>
  mov    -0x118(%rbp),%rdx
  mov    -0x130(%rbp),%rax
  lea    D38(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <print_line@plt>
L190:
  mov    -0x138(%rbp),%rdx
  lea    -0x110(%rbp),%rax
  mov    $0x100,%esi
  mov    %rax,%rdi
  call   <fgets@plt>
  test   %rax,%rax
  jne    L175
  mov    -0x138(%rbp),%rax
  mov    %rax,%rdi
  call   <pclose@plt>
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L34
  call   <__stack_chk_fail@plt>
L34:
  leave
  ret
```

tool_calls: name: parse_data
arguments: data_label: D35
datatype: string
name: parse_data
arguments: data_label: D19
datatype: string
name: parse_data
arguments: data_label: D34
datatype: string
name: parse_data
arguments: data_label: D38
datatype: string

tool: D35: r

tool: D19: /usr/sbin/ipmitool sensor

tool: D34: value

tool: D38: status

assistant: ```c
int main() {
  FILE *output;
  char buf[256];
  output = popen("/usr/sbin/ipmitool sensor", "r");
  while (NULL != fgets(buf, sizeof(buf), output)) {
    char *col1, *col2, *col3, *col4, *cp;
    cp = buf;
    do {
      col1 = cp;
      while (*cp && *cp != '|')
        cp++;
      if (!cp)
        continue;
      *cp++ = '\0';
    } while (0);
    do {
      col2 = cp;
      while (*cp && *cp != '|')
        cp++;
      if (!cp)
        continue;
      *cp++ = '\0';
    } while (0);
    do {
      col3 = cp;
      while (*cp && *cp != '|')
        cp++;
      if (!cp)
        continue;
      *cp++ = '\0';
    } while (0);
    do {
      col4 = cp;
      while (*cp && *cp != '|')
        cp++;
      if (!cp)
        continue;
      *cp++ = '\0';
    } while (0);
    col1 = trim_clean(col1);
    col2 = trim_clean(col2);
    col4 = trim_clean(col4);
    cp = col1;
    while (*cp) {
      if (isspace(*cp))
        *cp = ':';
      cp++;
    }
    print_line(col1, "value", col2);
    print_line(col1, "status", col4);
  }
  pclose(output);
  return 0;
}
```