user: 下面的汇编指令对应的C源代码是什么:

```asm
<attrinfo>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x40,%rsp
  mov    %rdi,%rbp
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  lea    0x8(%rsp),%rbx
  mov    %rbx,%rdi
  call   <pthread_attr_init@plt>
  lea    0x28(%rsp),%r12
  lea    0x20(%rsp),%rsi
  mov    %r12,%rdx
  mov    %rbx,%rdi
  call   <pthread_attr_getstack@plt>
  mov    %r12,%rsi
  mov    %rbx,%rdi
  call   <pthread_attr_getstacksize@plt>
  lea    0xc(%rsp),%rsi
  mov    %rbx,%rdi
  call   <pthread_attr_getdetachstate@plt>
  lea    0x10(%rsp),%rsi
  mov    %rbx,%rdi
  call   <pthread_attr_getscope@plt>
  lea    0x14(%rsp),%rsi
  mov    %rbx,%rdi
  call   <pthread_attr_getinheritsched@plt>
  lea    0x18(%rsp),%rsi
  mov    %rbx,%rdi
  call   <pthread_attr_getschedpolicy@plt>
  lea    0x30(%rsp),%rsi
  mov    %rbx,%rdi
  call   <pthread_attr_getguardsize@plt>
  lea    0x1c(%rsp),%rsi
  mov    %rbx,%rdi
  call   <pthread_attr_getschedparam@plt>
  mov    %rbp,%rdi
  call   <pthread_mutex_lock@plt>
  mov    $0x0,%eax
  call   <pthread_self@plt>
  mov    %rax,%rsi
  lea    D73(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    0x20(%rsp),%rsi
  lea    D53(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    0x28(%rsp),%rsi
  lea    D30(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    0x30(%rsp),%rsi
  lea    D82(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    0xc(%rsp),%esi
  mov    $0x64,%edi
  call   <attrstr@plt>
  mov    %rax,%rsi
  lea    D35(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    0x10(%rsp),%esi
  mov    $0x73,%edi
  call   <attrstr@plt>
  mov    %rax,%rsi
  lea    D62(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    0x14(%rsp),%esi
  mov    $0x69,%edi
  call   <attrstr@plt>
  mov    %rax,%rsi
  lea    D68(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    0x18(%rsp),%esi
  mov    $0x70,%edi
  call   <attrstr@plt>
  mov    %rax,%rsi
  lea    D4(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    0x1c(%rsp),%esi
  lea    D11(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    %rbp,%rdi
  call   <pthread_mutex_unlock@plt>
  mov    0x38(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L3
  mov    $0x0,%eax
  add    $0x40,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L3:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: label: D73
datatype: string
name: disassemble_data
arguments: label: D53
datatype: string
name: disassemble_data
arguments: label: D30
datatype: string
name: disassemble_data
arguments: label: D82
datatype: string
name: disassemble_data
arguments: label: D35
datatype: string
name: disassemble_data
arguments: label: D62
datatype: string
name: disassemble_data
arguments: label: D68
datatype: string
name: disassemble_data
arguments: label: D4
datatype: string
name: disassemble_data
arguments: label: D11
datatype: string

tool: D73: thread id: %lx


tool: D53: thread stack addr: %p


tool: D30: thread stack size: %zu bytes


tool: D82: thread guard size: %zu bytes


tool: D35: detach state: %s


tool: D62: scope: %s


tool: D68: inherit sched: %s


tool: D4: sched policy: %s


tool: D11: thread priority: %d


assistant: ```c
void *attrinfo(void *arg) {
  pthread_mutex_t *mutex;
  pthread_attr_t attr;
  void *stackaddr;
  size_t stacksize, guardsize;
  int detach, scope, isched, psched;
  struct sched_param sp;
  pthread_attr_init(&attr);
  pthread_attr_getstack(&attr, &stackaddr, &stacksize);
  pthread_attr_getstacksize(&attr, &stacksize);
  pthread_attr_getdetachstate(&attr, &detach);
  pthread_attr_getscope(&attr, &scope);
  pthread_attr_getinheritsched(&attr, &isched);
  pthread_attr_getschedpolicy(&attr, &psched);
  pthread_attr_getguardsize(&attr, &guardsize);
  pthread_attr_getschedparam(&attr, &sp);
  mutex = arg;
  pthread_mutex_lock(mutex);
  printf("thread id: %lx\n", (unsigned long)pthread_self());
  printf("thread stack addr: %p\n", stackaddr);
  printf("thread stack size: %zu bytes\n", stacksize);
  printf("thread guard size: %zu bytes\n", guardsize);
  printf("detach state: %s\n", attrstr('d', detach));
  printf("scope: %s\n", attrstr('s', scope));
  printf("inherit sched: %s\n", attrstr('i', isched));
  printf("sched policy: %s\n", attrstr('p', psched));
  printf("thread priority: %d\n", sp.sched_priority);
  printf("\n");
  pthread_mutex_unlock(mutex);
  return NULL;
}
```