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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x60,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movabs $0x7379732f20746163,%rax
  movabs $0x736563697665642f,%rdx
  mov    %rax,-0x40(%rbp)
  mov    %rdx,-0x38(%rbp)
  movabs $0x6c6175747269762f,%rax
  movabs $0x6c616d726568742f,%rdx
  mov    %rax,-0x30(%rbp)
  mov    %rdx,-0x28(%rbp)
  movabs $0x6c616d726568742f,%rax
  movabs $0x742f30656e6f7a5f,%rdx
  mov    %rax,-0x20(%rbp)
  mov    %rdx,-0x18(%rbp)
  movl   $0x706d65,-0x10(%rbp)
  movl   $0x0,-0x58(%rbp)
  movss  D64(%rip),%xmm0
  movss  %xmm0,-0x60(%rbp)
  movl   $0x0,-0x5c(%rbp)
  lea    D53(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
L16:
  lea    -0x40(%rbp),%rax
  lea    D8(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <popen@plt>
  mov    %rax,-0x50(%rbp)
  cmpq   $0x0,-0x50(%rbp)
  jne    L6
  lea    D68(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0xffffffff,%eax
  jmp    L32
L6:
  mov    -0x50(%rbp),%rdx
  lea    -0x48(%rbp),%rax
  mov    $0x8,%esi
  mov    %rax,%rdi
  call   <fgets@plt>
  lea    -0x48(%rbp),%rax
  mov    %rax,%rdi
  call   <atoi@plt>
  mov    %eax,-0x58(%rbp)
  pxor   %xmm0,%xmm0
  cvtsi2ssl -0x58(%rbp),%xmm0
  movss  D23(%rip),%xmm1
  divss  %xmm1,%xmm0
  movss  %xmm0,-0x54(%rbp)
  pxor   %xmm2,%xmm2
  cvtss2sd -0x54(%rbp),%xmm2
  movq   %xmm2,%rax
  movq   %rax,%xmm0
  lea    D2(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  mov    -0x50(%rbp),%rax
  mov    %rax,%rdi
  call   <pclose@plt>
  movss  -0x60(%rbp),%xmm0
  comiss -0x54(%rbp),%xmm0
  jbe    L52
  addl   $0x1,-0x5c(%rbp)
  jmp    L15
L52:
  movl   $0x0,-0x5c(%rbp)
L15:
  movss  -0x54(%rbp),%xmm0
  movss  %xmm0,-0x60(%rbp)
  lea    D60(%rip),%rax
  mov    %rax,%rdi
  call   <system@plt>
  cmpl   $0x1,-0x5c(%rbp)
  jle    L16
  mov    $0x0,%eax
L32:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L48
  call   <__stack_chk_fail@plt>
L48:
  leave
  ret
```

tool_calls: name: unpack_data
arguments: tag: D64
datatype: byte[4]
name: unpack_data
arguments: tag: D53
datatype: string
name: unpack_data
arguments: tag: D8
datatype: string
name: unpack_data
arguments: tag: D68
datatype: string
name: unpack_data
arguments: tag: D23
datatype: f32
name: unpack_data
arguments: tag: D2
datatype: string
name: unpack_data
arguments: tag: D60
datatype: string

tool: {"D64": [0xcd,0xcc,0xc7,0xc2]}

tool: D53: Practice 08

tool: D8: r

tool: D68: ERROR

tool: D23: 1000

tool: D2: Temp=%.1f[C]


tool: D60: sleep 1

assistant: ```c
int main() {
  FILE *pp;
  char cmd[] = "cat /sys/devices/virtual/thermal/thermal_zone0/temp";
  int in = 0;
  float temp;
  float prev = -99.9;
  int count = 0;
  char s[8];
  printf("Practice 08\n");
  do {
    pp = popen(cmd, "r");
    if (pp == NULL) {
      printf("ERROR\n");
      return -1;
    }
    fgets(s, 8, pp);
    in = atoi(s);
    temp = (float)in / 1000.;
    printf("Temp=%.1f[C]\n", temp);
    pclose(pp);
    if (temp < prev) {
      count++;
    } else {
      count = 0;
    }
    prev = temp;
    system("sleep 1");
  } while (count < 2);
  return 0;
}
```