user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<outxwords>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x20,%rsp
  mov    %rdi,%r12
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  mov    %rsi,%r13
  shr    $0x3,%r13
  je     L148
  and    $0xfffffffffffffff8,%rsi
  lea    -0x8(%rdi,%rsi,1),%rdx
L43:
  cmpq   $0x0,(%rdx)
  jne    L112
  add    $0x1,%rax
  sub    $0x8,%rdx
  cmp    %rax,%r13
  jne    L43
L170:
  lea    D24(%rip),%rdi
  call   <out@plt>
  jmp    L71
L112:
  cmp    %rax,%r13
  je     L170
  cmp    $0xfe,%rax
  jle    L177
  lea    0x0(,%rax,4),%rdx
  cmp    %r13,%rdx
  mov    $0x0,%edx
  cmovl  %rdx,%rax
L167:
  and    $0xfffffffffffffffc,%rax
  mov    %rax,%rbx
  sub    %rax,%r13
  test   %r13,%r13
  jle    L42
  mov    %r12,%rax
  lea    (%r12,%r13,8),%rsi
  mov    $0x0,%edx
L121:
  mov    (%rax),%rcx
  cmp    %rcx,%rdx
  cmovb  %rcx,%rdx
  add    $0x8,%rax
  cmp    %rsi,%rax
  jne    L121
  mov    %rdx,%rax
  shr    $0x20,%rax
  je     L198
  mov    $0x1,%edi
  call   <beginblock@plt>
  lea    D45(%rip),%r14
L164:
  mov    $0x0,%ebp
L94:
  mov    (%r12,%rbp,8),%rsi
  mov    %r14,%rdi
  call   <outf@plt>
  add    $0x1,%rbp
  cmp    %rbp,%r13
  jg     L94
L79:
  test   %rbx,%rbx
  jne    L44
L196:
  mov    $0x0,%eax
  call   <endblock@plt>
L71:
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L153
  add    $0x20,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L177:
  mov    $0x0,%eax
  jmp    L167
L198:
  lea    D14(%rip),%r14
  cmp    $0xffff,%rdx
  jbe    L200
L83:
  mov    $0x1,%edi
  call   <beginblock@plt>
  jmp    L164
L200:
  lea    D23(%rip),%r14
  cmp    $0xff,%rdx
  ja     L83
  cmp    $0x63,%rdx
  lea    D10(%rip),%r14
  lea    D43(%rip),%rax
  cmovbe %rax,%r14
  jmp    L83
L44:
  mov    %rsp,%rbp
  mov    %r14,%rdx
  lea    D36(%rip),%rsi
  mov    %rbp,%rdi
  call   <sprintf@plt>
  mov    %rbx,%rdx
  mov    $0x0,%esi
  mov    %rbp,%rdi
  call   <strf@plt>
  mov    %eax,%edi
  call   <outcomment@plt>
  jmp    L196
L42:
  mov    $0x1,%edi
  call   <beginblock@plt>
  lea    D43(%rip),%r14
  jmp    L79
L148:
  test   %r13,%r13
  je     L170
  mov    $0x0,%eax
  jmp    L167
L153:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: data_tag: D24
type_guessed: string
name: retrieve_data
arguments: data_tag: D45
type_guessed: string
name: retrieve_data
arguments: data_tag: D14
type_guessed: string
name: retrieve_data
arguments: data_tag: D23
type_guessed: string
name: retrieve_data
arguments: data_tag: D10
type_guessed: string
name: retrieve_data
arguments: data_tag: D43
type_guessed: string
name: retrieve_data
arguments: data_tag: D36
type_guessed: string

tool: D24: { 0 }

tool: D45: 0x%016lX

tool: D14: 0x%08lX

tool: D23: 0x%04lX

tool: D10: 0x%02lX

tool: D43: %lu

tool: D36: %s x %%ld

assistant: ```c
void outxwords(void const *ptr, long size, int ndx) {
  Elf64_Xword const *xwords = ptr;
  long count = size / sizeof *xwords;
  char fmtbuf[16];
  char const *fmt = NULL;
  unsigned long max;
  long zeroes, i;
  (void)ndx;
  for (zeroes = 0; zeroes < count; ++zeroes)
    if (xwords[count - zeroes - 1])
      break;
  if (zeroes == count) {
    out("{ 0 }");
    return;
  }
  if (zeroes < 255 || zeroes * 4 < count)
    zeroes = 0;
  zeroes &= ~3;
  count -= zeroes;
  max = 0;
  for (i = 0; i < count; ++i) {
    if (max < xwords[i])
      max = xwords[i];
  }
  fmt = max > 0xFFFFFFFF ? "0x%016lX" : max > 0x0000FFFF ? "0x%08lX" : max > 0x000000FF ? "0x%04lX" : max > 99 ? "0x%02lX" : "%lu";
  beginblock(1);
  for (i = 0; i < count; ++i)
    outf(fmt, xwords[i]);
  if (zeroes) {
    sprintf(fmtbuf, "%s x %%ld", fmt);
    outcomment(strf(fmtbuf, 0, zeroes));
  }
  endblock();
}
```