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

```asm
<get_cpu_interval>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %edi,%r14d
  mov    %edi,0x4(%rsp)
  mov    %rsi,%rdi
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  lea    0x18(%rsp),%rdx
  lea    D3(%rip),%rsi
  call   <strtok_r@plt>
  mov    $0x0,%r15d
  test   %r14d,%r14d
  jle    L145
  mov    %rax,%rbx
  lea    0x0(,%r14,4),%edi
  call   <malloc@plt>
  mov    %rax,%r15
  mov    %rax,%rcx
  mov    %r14d,%eax
  lea    (%r15,%rax,4),%rdx
  mov    %r15,%rax
L56:
  movl   $0xffffffff,(%rax)
  add    $0x4,%rax
  cmp    %rdx,%rax
  jne    L56
  test   %rbx,%rbx
  je     L105
  lea    0x20(%rsp),%r13
  lea    D4(%rip),%r12
  lea    0x4(%rcx),%rax
  mov    %rax,0x8(%rsp)
  lea    D3(%rip),%r14
  jmp    L11
L139:
  lea    0x18(%rsp),%rdx
  mov    %r14,%rsi
  mov    $0x0,%edi
  call   <strtok_r@plt>
  mov    %rax,%rbx
  test   %rax,%rax
  je     L145
L11:
  mov    %rbx,%rdi
  call   <strlen@plt>
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,%rbp
  mov    %rbx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
  mov    %r13,%rdx
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <strtok_r@plt>
  mov    %rax,%rbx
  test   %rax,%rax
  je     L139
  mov    %r13,%rdx
  mov    %r12,%rsi
  mov    $0x0,%edi
  call   <strtok_r@plt>
  mov    %rax,%rbp
  test   %rax,%rax
  je     L139
  mov    %rbx,%rdi
  call   <atoi@plt>
  mov    %eax,%ebx
  mov    %rbp,%rdi
  call   <atoi@plt>
  test   %ebx,%ebx
  mov    $0x0,%edx
  cmovns %ebx,%edx
  cmp    %eax,%edx
  jge    L139
  test   %ebx,%ebx
  js     L139
  mov    0x4(%rsp),%ecx
  cmp    %eax,%ecx
  jle    L139
  cmp    %eax,%ebx
  mov    %eax,%edx
  cmovge %ebx,%edx
  cmp    %edx,%ecx
  jle    L139
  cmp    %eax,%ebx
  jg     L139
  movslq %ebx,%rcx
  lea    (%r15,%rcx,4),%rdx
  sub    %ebx,%eax
  add    %rcx,%rax
  mov    0x8(%rsp),%rcx
  lea    (%rcx,%rax,4),%rax
L123:
  movl   $0x1,(%rdx)
  add    $0x4,%rdx
  cmp    %rax,%rdx
  jne    L123
  jmp    L139
L105:
  mov    %rbx,%r15
L145:
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L39
  mov    %r15,%rax
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L39:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D3
type_infered: string
name: extract_symbolic_data
arguments: data_label: D4
type_infered: string

tool: D3: ,

tool: D4: -

assistant: ```c
int *get_cpu_interval(int max_cores, char *siblings) {
  int *sibling_array, i;
  char *savep1, *savep2;
  char *tok = strtok_r(siblings, ",", &savep1), *tokcpy;
  int high, low;
  char *interval1, *interval2;
  if (max_cores < 1)
    return NULL;
  sibling_array = malloc(sizeof(int) * max_cores);
  for (i = 0; i < max_cores; i++)
    sibling_array[i] = -1;
  if (tok == NULL)
    return 0;
  do {
    tokcpy = (char *)malloc(sizeof(char) * strlen(tok));
    strcpy(tokcpy, tok);
    interval1 = strtok_r(tokcpy, "-", &savep2);
    if (interval1 != NULL) {
      interval2 = strtok_r(NULL, "-", &savep2);
      if (interval2 != NULL) {
        low = atoi(interval1);
        high = atoi(interval2);
        if (low < high && high > 0 && low >= 0 && high < max_cores && low < max_cores && high < max_cores) {
          for (i = low; i <= high; i++)
            sibling_array[i] = 1;
        }
      }
    }
    tok = strtok_r(NULL, ",", &savep1);
  } while (tok != NULL);
  return sibling_array;
}
```