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

```asm
<dump_memory>:
  endbr64
  push   %r15
  lea    D21(%rip),%rax
  lea    D112(%rip),%rdx
  push   %r14
  lea    D65(%rip),%r9
  mov    %esi,%r14d
  lea    D3(%rip),%r8
  push   %r13
  lea    D38(%rip),%rcx
  lea    D50(%rip),%rsi
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rdi,%rbx
  lea    D53(%rip),%rdi
  sub    $0x18,%rsp
  push   %rax
  lea    D13(%rip),%rax
  push   %rax
  xor    %eax,%eax
  call   <printf@plt>
  pop    %rax
  pop    %rdx
  test   %r14d,%r14d
  jle    L24
  xor    %ebp,%ebp
  jmp    L70
  nopl   0x0(%rax,%rax,1)
L22:
  lea    D121(%rip),%rdi
  xor    %eax,%eax
  mov    %r15d,%ecx
  mov    %r15d,%edx
  mov    %rbx,%rsi
  call   <printf@plt>
  mov    %ebp,%edi
  call   <hasShort@plt>
  test   %rax,%rax
  jne    L34
L80:
  mov    %ebp,%edi
  call   <hasIntAndFloat@plt>
  test   %rax,%rax
  jne    L9
L5:
  mov    %ebp,%edi
  call   <hasDouble@plt>
  test   %rax,%rax
  jne    L31
L43:
  mov    $0xa,%edi
  add    $0x1,%ebp
  add    $0x1,%rbx
  call   <putchar@plt>
  cmp    %ebp,%r14d
  je     L24
L70:
  movzbl (%rbx),%r15d
  movsd  (%rbx),%xmm1
  movzwl (%rbx),%r12d
  mov    (%rbx),%r13d
  mov    %r15d,%edi
  movsd  %xmm1,0x8(%rsp)
  call   <isCharVisible@plt>
  test   %rax,%rax
  jne    L22
  lea    D71(%rip),%rdi
  xor    %eax,%eax
  mov    %r15d,%edx
  mov    %rbx,%rsi
  call   <printf@plt>
  mov    %ebp,%edi
  call   <hasShort@plt>
  test   %rax,%rax
  je     L80
L34:
  lea    D119(%rip),%rdi
  xor    %eax,%eax
  movzwl %r12w,%esi
  call   <printf@plt>
  mov    %ebp,%edi
  call   <hasIntAndFloat@plt>
  test   %rax,%rax
  je     L5
L9:
  movd   %r13d,%xmm2
  pxor   %xmm0,%xmm0
  mov    %r13d,%esi
  mov    $0x1,%eax
  lea    D69(%rip),%rdi
  cvtss2sd %xmm2,%xmm0
  call   <printf@plt>
  mov    %ebp,%edi
  call   <hasDouble@plt>
  test   %rax,%rax
  je     L43
L31:
  movsd  0x8(%rsp),%xmm0
  lea    D4(%rip),%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  jmp    L43
  xchg   %ax,%ax
L24:
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: unpack_data
arguments: data_tag: D21
type_guessed: string
name: unpack_data
arguments: data_tag: D112
type_guessed: string
name: unpack_data
arguments: data_tag: D65
type_guessed: string
name: unpack_data
arguments: data_tag: D3
type_guessed: string
name: unpack_data
arguments: data_tag: D38
type_guessed: string
name: unpack_data
arguments: data_tag: D50
type_guessed: string
name: unpack_data
arguments: data_tag: D53
type_guessed: string
name: unpack_data
arguments: data_tag: D13
type_guessed: string
name: unpack_data
arguments: data_tag: D121
type_guessed: string
name: unpack_data
arguments: data_tag: D71
type_guessed: string
name: unpack_data
arguments: data_tag: D119
type_guessed: string
name: unpack_data
arguments: data_tag: D69
type_guessed: string
name: unpack_data
arguments: data_tag: D4
type_guessed: string

tool: D21: doubleFloat

tool: D112: char

tool: D65: integer

tool: D3: short

tool: D38: hexCh

tool: D50: address

tool: D53: %s		%s	%s	%s	%s		%s		%s


tool: D13: float

tool: D121: %8p:	%c	0x%02x	

tool: D71: %8p:	?	0x%02x	

tool: D119: %+5hu	

tool: D69: %+10d	%+e	

tool: D4: %+e

assistant: ```c
void dump_memory(void *p, int len) {
  void *memAddress;
  unsigned char mChar;
  unsigned short mShort;
  unsigned int mInt;
  float mFloat;
  double mDouble;
  int i;
  printf("%s\t\t%s\t%s\t%s\t%s\t\t%s\t\t%s\n", "address", "char", "hexCh", "short", "integer", "float", "doubleFloat");
  for (i = 0; i < len; i++) {
    memAddress = p + i;
    mChar = *(unsigned char *)(p + i);
    mShort = *(unsigned short *)(p + i);
    mInt = *(unsigned int *)(p + i);
    mFloat = *(float *)(p + i);
    mDouble = *(double *)(p + i);
    if (isCharVisible(mChar))
      printf("%8p:\t%c\t0x%02x\t", memAddress, mChar, mChar);
    else
      printf("%8p:\t?\t0x%02x\t", memAddress, mChar);
    if (hasShort(i))
      printf("%+5hu\t", mShort);
    if (hasIntAndFloat(i))
      printf("%+10d\t%+e\t", mInt, mFloat);
    if (hasDouble(i))
      printf("%+e", mDouble);
    printf("\n");
  }
}
```