user: What would the C source look like for the assembly code provided here?

```asm
<proc_get_jiffies_stat>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r12
  push   %rbx
  sub    $0x110,%rsp
  mov    %edi,-0x114(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x18(%rbp)
  xor    %eax,%eax
  movq   $0x0,-0xb8(%rbp)
  movq   $0x0,-0xb0(%rbp)
  lea    D40(%rip),%rax
  mov    %rax,%rsi
  lea    D20(%rip),%rax
  mov    %rax,%rdi
  call   <fopen@plt>
  mov    %rax,-0xb8(%rbp)
  cmpq   $0x0,-0xb8(%rbp)
  jne    L123
  lea    D32(%rip),%rax
  mov    %rax,%rdi
  call   <perror@plt>
  mov    $0x0,%edi
  call   <exit@plt>
L123:
  mov    -0xb8(%rbp),%rdx
  lea    -0xa0(%rbp),%rax
  mov    $0x80,%esi
  mov    %rax,%rdi
  call   <fgets@plt>
  test   %eax,%eax
  je     L113
  lea    -0xa0(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  cmp    $0xf5,%eax
  jg     L112
  movl   $0x0,-0x10c(%rbp)
  jmp    L146
L117:
  mov    -0xb8(%rbp),%rdx
  lea    -0xa0(%rbp),%rax
  mov    $0x80,%esi
  mov    %rax,%rdi
  call   <fgets@plt>
  test   %eax,%eax
  je     L109
  lea    -0xa0(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  cmp    $0xf5,%eax
  jg     L82
  mov    -0x10c(%rbp),%eax
  cmp    -0x114(%rbp),%eax
  jne    L76
  lea    -0xf8(%rbp),%r8
  lea    -0x100(%rbp),%rdi
  lea    -0x108(%rbp),%rcx
  lea    -0xa6(%rbp),%rdx
  lea    -0xa0(%rbp),%rax
  sub    $0x8,%rsp
  lea    -0xc0(%rbp),%rsi
  push   %rsi
  lea    -0xc8(%rbp),%rsi
  push   %rsi
  lea    -0xd0(%rbp),%rsi
  push   %rsi
  lea    -0xd8(%rbp),%rsi
  push   %rsi
  lea    -0xe0(%rbp),%rsi
  push   %rsi
  lea    -0xe8(%rbp),%rsi
  push   %rsi
  lea    -0xf0(%rbp),%rsi
  push   %rsi
  mov    %r8,%r9
  mov    %rdi,%r8
  lea    D8(%rip),%rsi
  mov    %rax,%rdi
  call   <sscanf@plt>
  add    $0x40,%rsp
  mov    -0xb8(%rbp),%rax
  mov    %rax,%rdi
  call   <fclose@plt>
  jmp    L44
L76:
  nop
L44:
  addl   $0x1,-0x10c(%rbp)
L146:
  mov    -0x10c(%rbp),%eax
  cmp    -0x114(%rbp),%eax
  ja     L102
  mov    -0xb8(%rbp),%rax
  mov    %rax,%rdi
  call   <feof@plt>
  test   %eax,%eax
  je     L117
L102:
  mov    -0xc0(%rbp),%r11
  mov    -0xc8(%rbp),%r10
  mov    -0xd0(%rbp),%r9
  mov    -0xd8(%rbp),%r8
  mov    -0xe0(%rbp),%rdi
  mov    -0xe8(%rbp),%r12
  mov    -0xf0(%rbp),%rbx
  mov    -0xf8(%rbp),%rcx
  mov    -0x100(%rbp),%rdx
  mov    -0x108(%rbp),%rsi
  lea    -0xa6(%rbp),%rax
  sub    $0x8,%rsp
  push   $0x0
  push   $0x0
  push   %r11
  push   %r10
  push   %r9
  push   %r8
  push   %rdi
  mov    %r12,%r9
  mov    %rbx,%r8
  mov    %rax,%rdi
  call   <cpuusage_set_jiffies_stat@plt>
  add    $0x40,%rsp
  mov    %rax,-0xb0(%rbp)
  cmpq   $0x0,-0xb0(%rbp)
  jne    L38
  lea    D17(%rip),%rax
  mov    %rax,%rdi
  call   <perror@plt>
  mov    $0xffffffff,%edi
  call   <exit@plt>
L38:
  mov    -0xb0(%rbp),%rax
  jmp    L154
L113:
  nop
  jmp    L105
L112:
  nop
  jmp    L105
L109:
  nop
  jmp    L105
L82:
  nop
L105:
  mov    -0xb8(%rbp),%rax
  mov    %rax,%rdi
  call   <fclose@plt>
  mov    $0x0,%eax
L154:
  mov    -0x18(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L119
  call   <__stack_chk_fail@plt>
L119:
  lea    -0x10(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %rbp
  ret
```

tool_calls: name: disassemble_data
arguments: data_tag: D40
type: string
name: disassemble_data
arguments: data_tag: D20
type: string
name: disassemble_data
arguments: data_tag: D32
type: string
name: disassemble_data
arguments: data_tag: D8
type: string
name: disassemble_data
arguments: data_tag: D17
type: string

tool: D40: r

tool: D20: /proc/stat

tool: D32: fopen:

tool: D8: %s%ld%ld%ld%ld%ld%ld%ld%ld%ld%ld

tool: D17: error 

assistant: ```c
struct cpuusage_jiffies_stat *proc_get_jiffies_stat(unsigned int cpuid) {
  FILE *fp = NULL;
  char buf[128];
  char cpu[6];
  long int user, nice, system, idle, iowait, irq, softirq, steal, guest, guest_nice;
  struct cpuusage_jiffies_stat *jiffies_stat = NULL;
  fp = fopen("/proc/stat", "r");
  if (fp == NULL) {
    perror("fopen:");
    exit(0);
  }
  if (!fgets(buf, sizeof(buf), fp)) {
    goto error;
  }
  if (strlen(buf) > (255 - 10)) {
    goto error;
  }
  for (unsigned int id = 0; id <= cpuid && !feof(fp); id++) {
    if (!fgets(buf, sizeof(buf), fp)) {
      goto error;
    }
    if (strlen(buf) > (255 - 10)) {
      goto error;
    }
    if (id != cpuid) {
      continue;
    }
    sscanf(buf, "%s%ld%ld%ld%ld%ld%ld%ld%ld%ld%ld", cpu, &user, &nice, &system, &idle, &iowait, &irq, &softirq, &steal, &guest, &guest_nice);
    fclose(fp);
  }
  if ((jiffies_stat = cpuusage_set_jiffies_stat(cpu, user, nice, system, idle, iowait, irq, softirq, steal, guest, guest_nice, NULL, NULL)) == NULL) {
    perror("error ");
    exit(-1);
  }
  return jiffies_stat;
error:
  fclose(fp);
  return NULL;
}
```