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

```asm
<get_cpu_interval>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  lea    D1(%rip),%r12
  push   %rbp
  push   %rbx
  mov    %edi,%ebx
  sub    $0x48,%rsp
  mov    %edi,0x14(%rsp)
  lea    0x28(%rsp),%r13
  mov    %rsi,%rdi
  mov    %r12,%rsi
  mov    %r13,%rdx
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  call   <strtok_r@plt>
  test   %ebx,%ebx
  jle    L43
  lea    0x0(,%rbx,4),%edi
  mov    %rax,%r14
  call   <malloc@plt>
  movslq %ebx,%rdx
  mov    $0xff,%esi
  shl    $0x2,%rdx
  mov    %rax,%rdi
  mov    %rax,0x8(%rsp)
  mov    %rax,%r15
  call   <memset@plt>
  test   %r14,%r14
  je     L43
  lea    0x4(%r15),%rax
  lea    0x30(%rsp),%rbp
  mov    %rax,0x18(%rsp)
  lea    D3(%rip),%rbx
  nopl   0x0(%rax,%rax,1)
L27:
  mov    %r14,%rdi
  call   <strlen@plt>
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %r14,%rsi
  mov    %rax,%r15
  mov    %rax,%rdi
  call   <strcpy@plt>
  mov    %rbp,%rdx
  mov    %rbx,%rsi
  mov    %r15,%rdi
  call   <strtok_r@plt>
  mov    %rax,%r14
  test   %rax,%rax
  je     L51
  xor    %edi,%edi
  mov    %rbp,%rdx
  mov    %rbx,%rsi
  call   <strtok_r@plt>
  test   %rax,%rax
  mov    %rax,(%rsp)
  je     L51
  mov    %r14,%rdi
  call   <atoi@plt>
  mov    (%rsp),%rdi
  mov    %eax,%r14d
  call   <atoi@plt>
  xor    %ecx,%ecx
  test   %r14d,%r14d
  cmovns %r14d,%ecx
  cmp    %eax,%ecx
  jge    L51
  test   %r14d,%r14d
  js     L51
  mov    0x14(%rsp),%edx
  cmp    %eax,%edx
  jle    L51
  cmp    %eax,%r14d
  mov    %eax,%ecx
  cmovge %r14d,%ecx
  cmp    %ecx,%edx
  jg     L30
  nopl   0x0(%rax)
L51:
  mov    %r13,%rdx
  mov    %r12,%rsi
  xor    %edi,%edi
  call   <strtok_r@plt>
  mov    %rax,%r14
  test   %rax,%rax
  jne    L27
L124:
  mov    0x38(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L36
  mov    0x8(%rsp),%rax
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   (%rax)
L43:
  movq   $0x0,0x8(%rsp)
  jmp    L124
  nopl   0x0(%rax,%rax,1)
L30:
  cmp    %eax,%r14d
  jg     L51
  movslq %r14d,%rsi
  mov    0x8(%rsp),%rcx
  mov    0x18(%rsp),%rdx
  sub    %r14d,%eax
  add    %rsi,%rax
  lea    (%rcx,%rsi,4),%rcx
  lea    (%rdx,%rax,4),%rax
L9:
  movl   $0x1,(%rcx)
  add    $0x4,%rcx
  cmp    %rcx,%rax
  jne    L9
  jmp    L51
L36:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: label: D1
type_guessed: string
name: extract_symbolic_data
arguments: label: D3
type_guessed: string

tool: D1: ,

tool: D3: -

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;
}
```