user: What is the c source code of the assembly code below:

```asm
<attrinfo>:
  endbr64
  push   %r13
  push   %r12
  mov    %rdi,%r12
  push   %rbp
  sub    $0x40,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  lea    0x8(%rsp),%rbp
  lea    0x28(%rsp),%r13
  mov    %rbp,%rdi
  call   <pthread_attr_init@plt>
  mov    %r13,%rdx
  lea    0x20(%rsp),%rsi
  mov    %rbp,%rdi
  call   <pthread_attr_getstack@plt>
  mov    %r13,%rsi
  mov    %rbp,%rdi
  call   <pthread_attr_getstacksize@plt>
  lea    0xc(%rsp),%rsi
  mov    %rbp,%rdi
  call   <pthread_attr_getdetachstate@plt>
  lea    0x10(%rsp),%rsi
  mov    %rbp,%rdi
  call   <pthread_attr_getscope@plt>
  lea    0x14(%rsp),%rsi
  mov    %rbp,%rdi
  call   <pthread_attr_getinheritsched@plt>
  lea    0x18(%rsp),%rsi
  mov    %rbp,%rdi
  call   <pthread_attr_getschedpolicy@plt>
  lea    0x30(%rsp),%rsi
  mov    %rbp,%rdi
  call   <pthread_attr_getguardsize@plt>
  lea    0x1c(%rsp),%rsi
  mov    %rbp,%rdi
  call   <pthread_attr_getschedparam@plt>
  mov    %r12,%rdi
  call   <pthread_mutex_lock@plt>
  xor    %eax,%eax
  call   <pthread_self@plt>
  lea    D54(%rip),%rdi
  mov    %rax,%rsi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x20(%rsp),%rsi
  lea    D7(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x28(%rsp),%rsi
  lea    D58(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x30(%rsp),%rsi
  lea    D26(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0xc(%rsp),%esi
  mov    $0x64,%edi
  call   <attrstr@plt>
  lea    D65(%rip),%rdi
  mov    %rax,%rsi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x10(%rsp),%esi
  mov    $0x73,%edi
  call   <attrstr@plt>
  lea    D68(%rip),%rdi
  mov    %rax,%rsi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x14(%rsp),%esi
  mov    $0x69,%edi
  call   <attrstr@plt>
  lea    D30(%rip),%rdi
  mov    %rax,%rsi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x18(%rsp),%esi
  mov    $0x70,%edi
  call   <attrstr@plt>
  lea    D67(%rip),%rdi
  mov    %rax,%rsi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x1c(%rsp),%esi
  lea    D46(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    %r12,%rdi
  call   <pthread_mutex_unlock@plt>
  mov    0x38(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L1
  add    $0x40,%rsp
  xor    %eax,%eax
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L1:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: tag: D54
type_infered: string
name: unpack_data
arguments: tag: D7
type_infered: string
name: unpack_data
arguments: tag: D58
type_infered: string
name: unpack_data
arguments: tag: D26
type_infered: string
name: unpack_data
arguments: tag: D65
type_infered: string
name: unpack_data
arguments: tag: D68
type_infered: string
name: unpack_data
arguments: tag: D30
type_infered: string
name: unpack_data
arguments: tag: D67
type_infered: string
name: unpack_data
arguments: tag: D46
type_infered: string

tool: D54: thread id: %lx


tool: D7: thread stack addr: %p


tool: D58: thread stack size: %zu bytes


tool: D26: thread guard size: %zu bytes


tool: D65: detach state: %s


tool: D68: scope: %s


tool: D30: inherit sched: %s


tool: D67: sched policy: %s


tool: D46: 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;
}
```