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

```asm
<outsym32>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %rdi,%rbp
  mov    %rsi,0x8(%rsp)
  mov    %edx,%edi
  movabs $0xcccccccccccccccd,%rdx
  mov    %rsi,%rax
  mul    %rdx
  mov    %rdx,%r14
  shr    $0x5,%r14
  lea    0x8(%rsp),%rsi
  call   <getpiecestrtable@plt>
  mov    %rax,(%rsp)
  mov    $0x1,%edi
  call   <beginblock@plt>
  test   %r14,%r14
  jle    L55
  mov    $0x0,%r13d
  lea    D41(%rip),%r15
  jmp    L1
L95:
  mov    $0x0,%eax
  call   <linebreak@plt>
  mov    (%rsp),%rdi
  add    0x0(%rbp),%rdi
  call   <outcomment@plt>
  jmp    L75
L45:
  mov    0x8(%rbx),%rdi
  call   <ELF32_ST_BIND@plt>
  mov    %rax,%rdi
  mov    %r15,%rsi
  call   <strdefint@plt>
  mov    %rax,%rdi
  call   <strallocate@plt>
  mov    %rax,%r12
  mov    0x8(%rbx),%rdi
  call   <ELF32_ST_TYPE@plt>
  mov    %rax,%rdi
  lea    D2(%rip),%rsi
  call   <strdefint@plt>
  mov    %rax,%rdx
  mov    %r12,%rsi
  lea    D17(%rip),%rdi
  call   <outf@plt>
  mov    %r12,%rdi
  call   <deallocate@plt>
  mov    0x10(%rbx),%rdi
  lea    D1(%rip),%rsi
  call   <strdefint@plt>
  mov    %rax,%rdi
  call   <out@plt>
L94:
  mov    0x18(%rbx),%edi
  call   <getsectionid@plt>
  mov    %rax,%rdi
  call   <out@plt>
  mov    $0x0,%eax
  call   <endblock@plt>
  add    $0x1,%r13
  add    $0x28,%rbp
  cmp    %r13,%r14
  je     L55
L1:
  mov    %rbp,%rbx
  mov    0x0(%rbp),%rax
  cmp    0x8(%rsp),%rax
  jae    L75
  mov    (%rsp),%rcx
  cmpb   $0x0,(%rcx,%rax,1)
  jne    L95
L75:
  mov    $0x0,%edi
  call   <beginblock@plt>
  mov    (%rbx),%edi
  call   <strdec@plt>
  mov    %rax,%rdi
  call   <out@plt>
  mov    0x20(%rbx),%edi
  call   <straddress@plt>
  mov    %rax,%rdi
  call   <out@plt>
  mov    0x18(%rbx),%edi
  call   <getindexfromsection@plt>
  mov    %eax,%esi
  mov    0x1c(%rbx),%edi
  call   <getsizestr@plt>
  mov    %rax,%rdi
  call   <out@plt>
  test   %r13,%r13
  jne    L45
  cmpq   $0x0,0x8(%rbx)
  jne    L45
  cmpq   $0x0,0x10(%rbx)
  jne    L45
  lea    D18(%rip),%r12
  mov    %r12,%rdi
  call   <out@plt>
  mov    %r12,%rdi
  call   <out@plt>
  jmp    L94
L55:
  mov    $0x0,%eax
  call   <endblock@plt>
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: disassemble_data
arguments: tag: D41
type_guessed: string
name: disassemble_data
arguments: tag: D2
type_guessed: string
name: disassemble_data
arguments: tag: D17
type_guessed: string
name: disassemble_data
arguments: tag: D1
type_guessed: string
name: disassemble_data
arguments: tag: D18
type_guessed: string

tool: D41: STB_

tool: D2: STT_

tool: D17: ELF32_ST_INFO(%s, %s)

tool: D1: STV_

tool: D18: 0

assistant: ```c
void outsym32(void const *ptr, long size, int ndx) {
  Elf32_Sym const *syms = ptr;
  long count = size / sizeof *syms;
  char const *strtab;
  char *bind;
  long i;
  strtab = getpiecestrtable(ndx, &size);
  beginblock(1);
  for (i = 0; i < count; ++i) {
    if (syms[i].st_name < (Elf32_Word)size && strtab[syms[i].st_name]) {
      linebreak();
      outcomment(strtab + syms[i].st_name);
    }
    beginblock(0);
    (out(strdec(syms[i].st_name)));
    (out(straddress(syms[i].st_value)));
    out(getsizestr(syms[i].st_size, getindexfromsection(syms[i].st_shndx)));
    if (i == 0 && syms[i].st_info == 0 && syms[i].st_other == 0) {
      out("0");
      out("0");
    } else {
      bind = strallocate(strdefint(ELF32_ST_BIND(syms[i].st_info), "STB_"));
      outf("ELF32_ST_INFO(%s, %s)", bind, strdefint(ELF32_ST_TYPE(syms[i].st_info), "STT_"));
      deallocate(bind);
      (out(strdefint(syms[i].st_other, "STV_")));
    }
    out(getsectionid(syms[i].st_shndx));
    endblock();
  }
  endblock();
}
```