user: 请从给定的汇编指令推导出C源代码：

```asm
<aaip_set_attr_list>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %rcx,0x8(%rsp)
  mov    %r9d,(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  test   %rsi,%rsi
  je     L92
  mov    %r9d,%eax
  mov    %r9d,%ebp
  mov    %rsi,%r12
  mov    %rdx,%r13
  and    $0x8,%eax
  mov    %r8,%r14
  mov    $0x1,%r15d
  xor    %ebx,%ebx
  mov    %eax,0x4(%rsp)
  and    $0x4,%ebp
  jmp    L159
  nopw   0x0(%rax,%rax,1)
L25:
  test   %ebp,%ebp
  jne    L47
  mov    $0x6,%edx
  lea    D10(%rip),%rsi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L47
  mov    0x4(%rsp),%edi
  test   %edi,%edi
  jne    L96
  mov    -0x8(%r13,%r15,8),%rdi
  mov    $0x5,%edx
  lea    D9(%rip),%rsi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L96
  nopl   (%rax)
L47:
  lea    0x1(%r15),%rax
  cmp    %r15,%r12
  jbe    L31
L44:
  mov    %rax,%r15
L159:
  mov    -0x8(%r13,%r15,8),%rdi
  test   %rdi,%rdi
  je     L47
  cmpq   $0x0,-0x8(%r14,%r15,8)
  je     L47
  cmpb   $0x0,(%rdi)
  jne    L25
  testb  $0x1,(%rsp)
  lea    0x1(%r15),%rax
  cmovne %r15,%rbx
  cmp    %r15,%r12
  ja     L44
L31:
  test   %rbx,%rbx
  je     L92
  lea    -0x8(,%rbx,8),%rax
  mov    0x8(%rsp),%rbx
  lea    0x20(%rsp),%r15
  xor    %ecx,%ecx
  lea    (%r14,%rax,1),%r13
  lea    0x18(%rsp),%r14
  sub    $0x8,%rsp
  mov    %r15,%r9
  push   $0x1
  add    %rax,%rbx
  mov    0x0(%r13),%rdi
  xor    %r8d,%r8d
  mov    (%rbx),%rsi
  mov    %r14,%rdx
  call   <aaip_decode_acl@plt>
  pop    %rcx
  pop    %rsi
  mov    %eax,%r12d
  cmp    $0xfffffffd,%eax
  jl     L122
  test   %eax,%eax
  jle    L50
  mov    0x20(%rsp),%rdi
  mov    $0x1,%esi
  mov    $0xffffffff,%r12d
  call   <calloc@plt>
  mov    %rax,%rbp
  test   %rax,%rax
  je     L122
  sub    $0x8,%rsp
  mov    (%rbx),%rsi
  mov    0x0(%r13),%rdi
  mov    %r14,%rdx
  push   $0x0
  mov    0x30(%rsp),%r8
  mov    %r15,%r9
  mov    %rax,%rcx
  call   <aaip_decode_acl@plt>
  mov    %eax,%r12d
  pop    %rax
  pop    %rdx
  cmp    $0xfffffffd,%r12d
  jl     L4
  test   %r12d,%r12d
  setle  %r12b
  movzbl %r12b,%r12d
  lea    -0x7(%r12,%r12,4),%r12d
L4:
  mov    %rbp,%rdi
  call   <free@plt>
  jmp    L122
  nopl   0x0(%rax)
L92:
  mov    $0x1,%r12d
L122:
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L88
  add    $0x38,%rsp
  mov    %r12d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L96:
  mov    $0xfffffffa,%r12d
  jmp    L122
L50:
  mov    $0xfffffffe,%r12d
  jmp    L122
L88:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_label: D10
type_guessed: string
name: parse_data
arguments: data_label: D9
type_guessed: string

tool: D10: isofs.

tool: D9: user.

assistant: ```c
int aaip_set_attr_list(char *path, size_t num_attrs, char **names, size_t *value_lengths, char **values, int flag) {
  int ret, has_default_acl = 0;
  size_t i, consumed, acl_text_fill, acl_idx = 0, h_consumed;
  char *acl_text = NULL, *list = NULL;
  for (i = 0; i < num_attrs; i++) {
    if (names[i] == NULL || values[i] == NULL)
      continue;
    if (names[i][0] == 0) {
      if (flag & 1)
        acl_idx = i + 1;
      continue;
    }
    if (flag & 4)
      continue;
    if (strncmp(names[i], "isofs.", 6) == 0)
      continue;
    if (!(flag & 8))
      if (strncmp(names[i], "user.", 5))
        continue;
    {
      ret = -6;
      goto ex;
    }
  }
  if (acl_idx == 0) {
    ret = 1;
    goto ex;
  }
  i = acl_idx - 1;
  ret = aaip_decode_acl((unsigned char *)values[i], value_lengths[i], &consumed, NULL, 0, &acl_text_fill, 1);
  if (ret < -3)
    goto ex;
  if (ret <= 0) {
    ret = -2;
    goto ex;
  }
  acl_text = calloc(acl_text_fill, 1);
  if (acl_text == NULL) {
    ret = -1;
    goto ex;
  }
  ret = aaip_decode_acl((unsigned char *)values[i], value_lengths[i], &consumed, acl_text, acl_text_fill, &acl_text_fill, 0);
  if (ret < -3)
    goto ex;
  if (ret <= 0) {
    ret = -2;
    goto ex;
  }
  has_default_acl = (ret == 2);
  {
    ret = -7;
    goto ex;
  }
  if (has_default_acl) {
    free(acl_text);
    acl_text = NULL;
    ret = aaip_decode_acl((unsigned char *)(values[i] + consumed), value_lengths[i] - consumed, &h_consumed, NULL, 0, &acl_text_fill, 1);
    if (ret < -3)
      goto ex;
    if (ret <= 0) {
      ret = -2;
      goto ex;
    }
    acl_text = calloc(acl_text_fill, 1);
    if (acl_text == NULL) {
      ret = -1;
      goto ex;
    }
    ret = aaip_decode_acl((unsigned char *)(values[i] + consumed), value_lengths[i] - consumed, &h_consumed, acl_text, acl_text_fill, &acl_text_fill, 0);
    if (ret < -3)
      goto ex;
    if (ret <= 0) {
      ret = -2;
      goto ex;
    }
    ret = aaip_set_acl_text(path, acl_text, 1 | (flag & 32));
    if (ret <= 0) {
      ret = -3;
      goto ex;
    }
  } else {
    if (!(flag & 64)) {
      ;
    }
  }
  ret = 1;
ex:;
  if (acl_text != NULL)
    free(acl_text);
  if (list != NULL)
    free(list);
  return (ret);
}
```