user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<outnote32>:
  endbr64
  push   %r15
  shr    $0x2,%rsi
  push   %r14
  push   %r13
  mov    %rsi,%r13
  push   %r12
  mov    %rdi,%r12
  mov    $0x1,%edi
  push   %rbp
  push   %rbx
  xor    %ebx,%ebx
  sub    $0x28,%rsp
  call   <beginblock@plt>
  lea    0x10(%r12),%rax
  mov    %rax,0x18(%rsp)
  nopw   0x0(%rax,%rax,1)
L94:
  lea    0x3(%rbx),%rcx
  cmp    %r13,%rcx
  jge    L139
L135:
  lea    0x0(,%rbx,4),%r14
  lea    (%r12,%r14,1),%rsi
  lea    0x4(%r12,%r14,1),%r15
  mov    (%rsi),%eax
  mov    (%r15),%edx
  lea    0x6(%rax),%ebp
  add    $0x3,%eax
  cmovns %eax,%ebp
  lea    0x6(%rdx),%eax
  sar    $0x2,%ebp
  add    $0x3,%edx
  cmovns %edx,%eax
  movslq %ebp,%rdx
  add    %rbx,%rdx
  sar    $0x2,%eax
  cmp    %r13,%rdx
  jle    L34
  mov    %r13d,%ebp
  sub    %ebx,%ebp
  movslq %ebp,%rdx
  add    %rbx,%rdx
L34:
  movslq %eax,%rdi
  mov    %rcx,0x10(%rsp)
  add    %rdx,%rdi
  mov    %r13d,%edx
  mov    %rsi,0x8(%rsp)
  sub    %ebx,%edx
  sub    %ebp,%edx
  cmp    %r13,%rdi
  cmovg  %edx,%eax
  mov    %eax,0x4(%rsp)
  xor    %eax,%eax
  call   <linebreak@plt>
  mov    0x8(%rsp),%rsi
  mov    (%rsi),%edi
  call   <strdec@plt>
  mov    %eax,%edi
  call   <out@plt>
  mov    (%r15),%edi
  call   <strdec@plt>
  mov    %eax,%edi
  call   <out@plt>
  mov    0x8(%r12,%r14,1),%r15d
  lea    D6(%rip),%rsi
  mov    %r15d,%edi
  call   <strdefint@plt>
  mov    %eax,%edi
  call   <out@plt>
  test   %ebp,%ebp
  mov    0x10(%rsp),%rcx
  je     L138
  lea    -0x1(%rbp),%eax
  mov    0x18(%rsp),%rcx
  lea    0xc(%r12,%r14,1),%r14
  mov    %rax,0x8(%rsp)
  add    %rbx,%rax
  lea    (%rcx,%rax,4),%rbp
  nopl   0x0(%rax)
L58:
  mov    (%r14),%edi
  add    $0x4,%r14
  call   <strhex@plt>
  mov    %eax,%edi
  call   <out@plt>
  cmp    %rbp,%r14
  jne    L58
  mov    0x8(%rsp),%rax
  lea    0x4(%rbx,%rax,1),%rbx
L12:
  mov    0x4(%rsp),%eax
  test   %eax,%eax
  je     L94
  cmp    $0x6,%r15d
  je     L15
L67:
  mov    0x4(%rsp),%eax
  lea    (%r12,%rbx,4),%r15
  lea    -0x1(%rax),%r14d
  lea    (%r14,%rbx,1),%rax
  lea    0x4(%r12,%rax,4),%rbp
  nopl   (%rax)
L48:
  mov    (%r15),%edi
  add    $0x4,%r15
  call   <strhex@plt>
  mov    %eax,%edi
  call   <out@plt>
  cmp    %r15,%rbp
  jne    L48
  lea    0x1(%rbx,%r14,1),%rbx
  lea    0x3(%rbx),%rcx
  cmp    %r13,%rcx
  jl     L135
L139:
  cmp    %r13,%rbx
  jge    L71
L118:
  add    $0x1,%rbx
  mov    -0x4(%r12,%rbx,4),%edi
  call   <strhex@plt>
  mov    %eax,%edi
  call   <out@plt>
  cmp    %rbx,%r13
  jne    L118
L71:
  add    $0x28,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    10f0 <endblock@plt>
  cs nopw 0x0(%rax,%rax,1)
L138:
  mov    %rcx,%rbx
  jmp    L12
L15:
  cmpl   $0x2,0x4(%rsp)
  jle    L67
  mov    0x4(%rsp),%eax
  lea    (%r12,%rbx,4),%r15
  sub    $0x3,%eax
  shr    %eax
  mov    %eax,%r14d
  mov    %eax,0x8(%rsp)
  lea    (%rbx,%r14,2),%rax
  lea    0x8(%r12,%rax,4),%rbp
L81:
  mov    (%r15),%edi
  lea    D19(%rip),%rsi
  add    $0x8,%r15
  call   <strdefint@plt>
  mov    %eax,%edi
  call   <out@plt>
  mov    -0x4(%r15),%edi
  call   <strhex@plt>
  mov    %eax,%edi
  call   <out@plt>
  cmp    %rbp,%r15
  jne    L81
  mov    0x8(%rsp),%r15d
  mov    0x4(%rsp),%eax
  lea    0x2(%rbx,%r14,2),%rbx
  neg    %r15d
  lea    -0x2(%rax,%r15,2),%eax
  mov    %eax,0x4(%rsp)
  jmp    L67
```

tool_calls: name: unpack_data
arguments: data_label: D6
datatype: string
name: unpack_data
arguments: data_label: D19
datatype: string

tool: D6: NT_

tool: D19: AT_

assistant: ```c
void outnote32(void const *ptr, long size, int ndx) {
  Elf64_Word const *words = ptr;
  long count = size / sizeof *words;
  long i;
  int namesize, descsize, tag;
  (void)ndx;
  beginblock(1);
  i = 0;
  while (i + 3 < count) {
    namesize = (words[i] + 3) / 4;
    descsize = (words[i + 1] + 3) / 4;
    if (i + namesize > count)
      namesize = count - i;
    if (i + namesize + descsize > count)
      descsize = count - i - namesize;
    linebreak();
    (out(strdec(words[i++])));
    (out(strdec(words[i++])));
    tag = words[i++];
    (out(strdefint(tag, "NT_")));
    while (namesize--)
      (out(strhex(words[i++])));
    if (!descsize)
      continue;
    if (tag == 6) {
      for (; descsize > 2; descsize -= 2) {
        (out(strdefint(words[i++], "AT_")));
        (out(strhex(words[i++])));
      }
    }
    while (descsize--)
      (out(strhex(words[i++])));
  }
  while (i < count)
    (out(strhex(words[i++])));
  endblock();
}
```