user: 请将以下的汇编代码转换成C语言代码：

```asm
<test_fail_memory_common>:
  endbr64
  push   %r15
  push   %r14
  mov    %r9,%r14
  push   %r13
  mov    %r8,%r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x160,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x150(%rsp)
  xor    %eax,%eax
  mov    0x1a0(%rsp),%r12
  mov    0x1a8(%rsp),%r15
  mov    0x1b0(%rsp),%rbp
  push   0x198(%rsp)
  call   <test_fail_message_prefix@plt>
  pop    %rax
  pop    %rdx
  test   %r12,%r12
  je     L361
  test   %rbp,%rbp
  je     L316
  mov    %r15,%rax
  or     0x1b0(%rsp),%rax
  je     L238
L277:
  cmp    %r15,0x1b0(%rsp)
  jne    L102
L19:
  cmp    %rbp,%r12
  je     L84
  mov    0x1b0(%rsp),%rdx
  mov    %rbp,%rsi
  mov    %r12,%rdi
  call   <memcmp@plt>
  test   %rax,%rax
  jne    L102
  cs nopw 0x0(%rax,%rax,1)
L84:
  mov    %rbp,0x8(%rsp)
  xor    %r14d,%r14d
  mov    %r12,0x10(%rsp)
  mov    %r15,%r12
L362:
  test   %r12,%r12
  jne    L324
  cmpq   $0x0,0x1b0(%rsp)
  je     L125
  mov    0x8(%rsp),%r15
  mov    $0x20,%ebx
  mov    $0x8,%ecx
  cmp    %rbx,0x1b0(%rsp)
  cmovbe 0x1b0(%rsp),%rbx
  lea    0x90(%rsp),%rdx
  mov    %r15,%rdi
  mov    %rdx,0x18(%rsp)
  mov    %rbx,%rsi
  lea    (%r15,%rbx,1),%r15
  call   <hex_convert_memory@plt>
  mov    0x1b0(%rsp),%r13
  sub    %rbx,%r13
  test   %r14d,%r14d
  jne    L220
  mov    0x10(%rsp),%rax
  xor    %ebp,%ebp
  mov    %rax,0x18(%rsp)
L254:
  mov    0x10(%rsp),%rdi
  mov    $0x2d,%esi
  call   <test_memory_null_empty@plt>
  mov    0x18(%rsp),%rax
  cmpq   $0x0,0x8(%rsp)
  mov    %rax,0x10(%rsp)
  jne    L174
  nopl   0x0(%rax)
L393:
  mov    0x8(%rsp),%rdi
  mov    $0x2b,%esi
  call   <test_memory_null_empty@plt>
  mov    %r15,0x8(%rsp)
  mov    %r13,0x1b0(%rsp)
  test   %bpl,%bpl
  je     L351
  nopl   (%rax)
L81:
  xor    %eax,%eax
  lea    0xf0(%rsp),%rdx
  add    $0x20,%r14d
  lea    D1(%rip),%rsi
  lea    D23(%rip),%rdi
  call   <test_printf_stderr@plt>
  or     %r12,%r13
  jne    L362
  nopw   0x0(%rax,%rax,1)
L98:
  xor    %eax,%eax
  call   <test_flush_stderr@plt>
  mov    0x148(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L296
  add    $0x158,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L316:
  test   %r15,%r15
  je     L337
  movq   $0x0,0x1b0(%rsp)
  cmp    %r15,0x1b0(%rsp)
  je     L19
  nopl   0x0(%rax,%rax,1)
L102:
  mov    %r14,%rsi
  mov    %r13,%rdi
  call   <test_diff_header@plt>
  jmp    L84
  nopl   0x0(%rax,%rax,1)
L324:
  mov    $0x20,%ebp
  lea    0x30(%rsp),%r10
  mov    0x10(%rsp),%rdi
  mov    $0x8,%ecx
  cmp    %rbp,%r12
  mov    %r10,%rdx
  mov    %r10,0x18(%rsp)
  cmovbe %r12,%rbp
  mov    %rbp,%rsi
  call   <hex_convert_memory@plt>
  mov    0x18(%rsp),%r10
  cmpq   $0x0,0x1b0(%rsp)
  je     L353
  mov    $0x20,%ebx
  mov    0x8(%rsp),%rdi
  mov    $0x8,%ecx
  cmp    %rbx,0x1b0(%rsp)
  cmovbe 0x1b0(%rsp),%rbx
  lea    0x90(%rsp),%rdx
  mov    %r10,0x28(%rsp)
  mov    $0x5e,%r15d
  mov    $0x20,%r13d
  mov    %rbx,%rsi
  call   <hex_convert_memory@plt>
  cmp    %rbx,%rbp
  mov    %rbx,%r11
  mov    %r14d,0x24(%rsp)
  cmovbe %rbp,%r11
  mov    0x10(%rsp),%r9
  mov    0x8(%rsp),%r14
  xor    %esi,%esi
  mov    0x28(%rsp),%r10
  xor    %eax,%eax
  lea    0xf0(%rsp),%rdx
  mov    $0x1,%r8d
  lea    -0x1(%r11),%rcx
  mov    %rcx,0x18(%rsp)
  jmp    L386
  nopl   0x0(%rax,%rax,1)
L307:
  add    $0x1,%rax
  mov    %rdi,%rdx
  cmp    %rax,%r11
  je     L249
L386:
  movzbl (%r14,%rax,1),%ecx
  cmp    %cl,(%r9,%rax,1)
  mov    %r13d,%ecx
  lea    0x2(%rdx),%rdi
  cmovne %r15d,%ecx
  cmovne %r8d,%esi
  mov    %cl,(%rdx)
  mov    %cl,0x1(%rdx)
  mov    %rax,%rcx
  and    $0x7,%ecx
  cmp    $0x7,%rcx
  jne    L307
  cmp    %rax,0x18(%rsp)
  je     L307
  add    $0x1,%rax
  movb   $0x20,0x2(%rdx)
  add    $0x3,%rdx
  cmp    %rax,%r11
  jne    L386
L249:
  mov    0x8(%rsp),%rax
  mov    0x24(%rsp),%r14d
  movb   $0x0,(%rdx)
  sub    %rbp,%r12
  mov    0x1b0(%rsp),%r13
  lea    (%rax,%rbx,1),%r15
  mov    0x10(%rsp),%rax
  sub    %rbx,%r13
  add    %rbp,%rax
  mov    %rax,0x18(%rsp)
  cmp    %rbx,%rbp
  jne    L37
  test   $0x1,%sil
  je     L187
L37:
  test   %r11,%r11
  setne  %bpl
  and    %esi,%ebp
  test   %r14d,%r14d
  jne    L283
  cmpq   $0x0,0x10(%rsp)
  je     L254
  xor    %esi,%esi
  xor    %eax,%eax
  lea    D48(%rip),%rdi
  mov    %r10,%rdx
  call   <test_printf_stderr@plt>
  mov    0x18(%rsp),%rax
  cmpq   $0x0,0x8(%rsp)
  mov    %rax,0x10(%rsp)
  je     L393
L174:
  cmpq   $0x0,0x1b0(%rsp)
  je     L393
  mov    %r15,0x8(%rsp)
  mov    %r13,0x1b0(%rsp)
  test   %rbx,%rbx
  jne    L224
L260:
  test   %bpl,%bpl
  jne    L81
L351:
  add    $0x20,%r14d
  or     %r12,%r13
  jne    L362
  jmp    L98
  nop
L125:
  xor    %r13d,%r13d
  lea    0x30(%rsp),%r10
L392:
  mov    %r10,%rdx
  mov    %r14d,%esi
  lea    D7(%rip),%rdi
  xor    %eax,%eax
  call   <test_printf_stderr@plt>
  mov    0x1b0(%rsp),%r12
  mov    %r13,0x1b0(%rsp)
  jmp    L351
  xchg   %ax,%ax
L283:
  mov    %r10,%rdx
  mov    %r14d,%esi
  lea    D48(%rip),%rdi
  xor    %eax,%eax
  call   <test_printf_stderr@plt>
  mov    0x18(%rsp),%rax
  mov    %r15,0x8(%rsp)
  mov    %r13,0x1b0(%rsp)
  mov    %rax,0x10(%rsp)
  test   %rbx,%rbx
  je     L260
L224:
  lea    0x90(%rsp),%rdx
L94:
  mov    %r14d,%esi
  lea    D38(%rip),%rdi
  xor    %eax,%eax
  call   <test_printf_stderr@plt>
  jmp    L260
  nopw   0x0(%rax,%rax,1)
L353:
  mov    0x10(%rsp),%rax
  mov    0x8(%rsp),%r15
  sub    %rbp,%r12
  xor    %ebx,%ebx
  xor    %r11d,%r11d
  xor    %r13d,%r13d
  xor    %esi,%esi
  add    %rbp,%rax
  mov    %rax,0x18(%rsp)
  jmp    L37
  nopl   0x0(%rax)
L361:
  test   %rbp,%rbp
  je     L238
  xor    %r15d,%r15d
  cmpq   $0x0,0x1b0(%rsp)
  jne    L277
L337:
  mov    %r14,%rsi
  mov    %r13,%rdi
  call   <test_diff_header@plt>
  mov    %r12,%rdi
  mov    $0x2d,%esi
  call   <test_memory_null_empty@plt>
  mov    $0x2b,%esi
  mov    %rbp,%rdi
  call   <test_memory_null_empty@plt>
  jmp    L98
  nopl   0x0(%rax)
L238:
  mov    $0x20,%esi
  mov    %r12,%rdi
  call   <test_memory_null_empty@plt>
  jmp    L98
  nopw   0x0(%rax,%rax,1)
L220:
  mov    %r15,0x8(%rsp)
  mov    0x18(%rsp),%rdx
  xor    %ebp,%ebp
  mov    %r13,0x1b0(%rsp)
  jmp    L94
L296:
  call   <__stack_chk_fail@plt>
L187:
  mov    %r15,0x8(%rsp)
  mov    %r12,0x1b0(%rsp)
  mov    %rax,0x10(%rsp)
  jmp    L392
```

tool_calls: name: unpack_data
arguments: data_tag: D1
type_guessed: string
name: unpack_data
arguments: data_tag: D23
type_guessed: string
name: unpack_data
arguments: data_tag: D48
type_guessed: string
name: unpack_data
arguments: data_tag: D7
type_guessed: string
name: unpack_data
arguments: data_tag: D38
type_guessed: string

tool: 

tool: D23: % 4s  %s


tool: D48: %04x:-%s


tool: D7: %04x: %s


tool: D38: %04x:+%s


assistant: ```c
void test_fail_memory_common(const char *prefix, const char *file, int line, const char *type, const char *left, const char *right, const char *op, const unsigned char *m1, size_t l1, const unsigned char *m2, size_t l2) {
  const size_t bytes = ((80) - 9) / 17 * 8;
  char b1[(80) + 1], b2[(80) + 1];
  char *p, bdiff[(80) + 1];
  size_t n1, n2, i;
  unsigned int cnt = 0, diff;
  test_fail_message_prefix(prefix, file, line, type, left, right, op);
  if (m1 == NULL)
    l1 = 0;
  if (m2 == NULL)
    l2 = 0;
  if (l1 == 0 && l2 == 0) {
    if ((m1 == NULL) == (m2 == NULL)) {
      test_memory_null_empty(m1, ' ');
    } else {
      test_diff_header(left, right);
      test_memory_null_empty(m1, '-');
      test_memory_null_empty(m2, '+');
    }
    goto fin;
  }
  if (l1 != l2 || (m1 != m2 && memcmp(m1, m2, l1) != 0))
    test_diff_header(left, right);
  while (l1 > 0 || l2 > 0) {
    n1 = n2 = 0;
    if (l1 > 0) {
      n1 = l1 > bytes ? bytes : l1;
      hex_convert_memory(m1, n1, b1, 8);
    }
    if (l2 > 0) {
      n2 = l2 > bytes ? bytes : l2;
      hex_convert_memory(m2, n2, b2, 8);
    }
    diff = 0;
    i = 0;
    p = bdiff;
    if (n1 > 0 && n2 > 0) {
      const size_t j = n1 < n2 ? n1 : n2;
      for (; i < j; i++) {
        if (m1[i] == m2[i]) {
          *p++ = ' ';
          *p++ = ' ';
        } else {
          *p++ = '^';
          *p++ = '^';
          diff = 1;
        }
        if (i % 8 == 7 && i != j - 1)
          *p++ = ' ';
      }
      *p++ = '\0';
    }
    if (n1 == n2 && !diff) {
      test_printf_stderr("%04x: %s\n", cnt, b1);
    } else {
      if (cnt == 0 && (m1 == NULL || l1 == 0))
        test_memory_null_empty(m1, '-');
      else if (n1 > 0)
        test_printf_stderr("%04x:-%s\n", cnt, b1);
      if (cnt == 0 && (m2 == NULL || l2 == 0))
        test_memory_null_empty(m2, '+');
      else if (n2 > 0)
        test_printf_stderr("%04x:+%s\n", cnt, b2);
      if (diff && i > 0)
        test_printf_stderr("% 4s  %s\n", "", bdiff);
    }
    m1 += n1;
    m2 += n2;
    l1 -= n1;
    l2 -= n2;
    cnt += bytes;
  }
fin:
  test_flush_stderr();
}
```