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

```asm
<compact_int>:
  endbr64
  push   %r15
  mov    %rdx,%r15
  push   %r14
  mov    %rdi,%r14
  push   %r13
  mov    %rsi,%r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    0x4(%rdi),%eax
  sub    (%rdi),%eax
  mov    %eax,%r12d
  mov    0x4(%rsi),%eax
  sub    (%rsi),%eax
  mov    %rcx,0x28(%rsp)
  mov    %eax,%ebp
  movslq (%rcx),%rax
  cmp    $0x2,%eax
  jle    L36
  mov    $0x2,%edx
  xor    %r10d,%r10d
  xor    %r11d,%r11d
  mov    %r13,%r8
  mov    %r15,%r9
  mov    %r12d,0x20(%rsp)
  mov    %rdi,%rsi
  mov    %rdx,%r14
  mov    %ebp,0x24(%rsp)
  mov    %r10d,%r13d
  mov    %r11d,%r15d
  jmp    L11
  nopl   0x0(%rax,%rax,1)
L48:
  mov    -0x4(%rsi,%r14,4),%eax
  mov    %ebx,0x24(%rsp)
  add    $0x2,%r13d
  mov    %r14d,%r15d
  mov    %ecx,0x20(%rsp)
  mov    %eax,0x4(%rsi,%rbp,1)
  mov    -0x4(%r8,%r14,4),%eax
  mov    %eax,0x4(%r8,%rbp,1)
  mov    -0x4(%r9,%r14,4),%eax
  mov    %eax,0x4(%r9,%rbp,1)
L72:
  mov    0x28(%rsp),%rax
  add    $0x1,%r14
  movslq (%rax),%rax
  cmp    %r14d,%eax
  jle    L8
L11:
  mov    (%rsi,%r14,4),%ecx
  sub    -0x4(%rsi,%r14,4),%ecx
  xor    %eax,%eax
  mov    %r9,0x18(%rsp)
  mov    %ecx,%edi
  sub    0x20(%rsp),%edi
  mov    (%r8,%r14,4),%ebx
  mov    %rsi,0x10(%rsp)
  sub    -0x4(%r8,%r14,4),%ebx
  mov    %r8,0x8(%rsp)
  mov    %r14d,%r12d
  mov    %ecx,0x4(%rsp)
  call   <ABS@plt>
  mov    %ebx,%edi
  sub    0x24(%rsp),%edi
  mov    %eax,%ebp
  xor    %eax,%eax
  call   <ABS@plt>
  mov    0x4(%rsp),%ecx
  mov    0x8(%rsp),%r8
  add    %ebp,%eax
  mov    0x10(%rsp),%rsi
  mov    0x18(%rsp),%r9
  jne    L34
  mov    (%r9,%r14,4),%eax
  test   %eax,%eax
  je     L72
L34:
  movslq %r15d,%rdi
  movslq %r13d,%rax
  sub    $0x1,%r12d
  mov    (%rsi,%rdi,4),%edx
  lea    0x0(,%rax,4),%rbp
  mov    %edx,(%rsi,%rax,4)
  mov    (%r8,%rdi,4),%edx
  mov    %edx,(%r8,%rax,4)
  mov    (%r9,%rdi,4),%edi
  mov    %edi,(%r9,%rax,4)
  lea    0x1(%r13),%eax
  cmp    %r12d,%r15d
  jne    L48
  mov    %ebx,0x24(%rsp)
  mov    %eax,%r13d
  mov    %r14d,%r15d
  mov    %ecx,0x20(%rsp)
  jmp    L72
  nopl   0x0(%rax)
L8:
  movslq %r13d,%rdx
  mov    %rsi,%r14
  mov    %r8,%r13
  mov    %r9,%r15
  mov    %rdx,%r10
  shl    $0x2,%rdx
  lea    (%rsi,%rdx,1),%rdi
  lea    (%r8,%rdx,1),%rcx
  add    $0x1,%r10d
  add    %r9,%rdx
L57:
  mov    -0x4(%r14,%rax,4),%eax
  mov    0x28(%rsp),%rbx
  mov    %eax,(%rdi)
  movslq (%rbx),%rax
  mov    -0x4(%r13,%rax,4),%eax
  mov    %eax,(%rcx)
  movslq (%rbx),%rax
  mov    -0x4(%r15,%rax,4),%eax
  mov    %eax,(%rdx)
  mov    (%rbx),%eax
  mov    %r10d,(%rbx)
  add    $0x38,%rsp
  pop    %rbx
  sub    %r10d,%eax
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L36:
  mov    %rsi,%rcx
  mov    $0x1,%r10d
  jmp    L57
```

assistant: ```c
int compact_int(xp, yp, isa_move, size)
int xp[], yp[], isa_move[], *size;
{
  int dx, dy, old_dx, old_dy, start, index, i, old_size;
  start = index = 0;
  old_dx = xp[1] - xp[0];
  old_dy = yp[1] - yp[0];
  for (i = 2; i < *size; i++) {
    dx = xp[i] - xp[i - 1];
    dy = yp[i] - yp[i - 1];
    if ((ABS(dx - old_dx) + ABS(dy - old_dy) != 0) || (isa_move[i])) {
      xp[index] = xp[start];
      yp[index] = yp[start];
      isa_move[index] = isa_move[start];
      index++;
      if (start != i - 1) {
        xp[index] = xp[i - 1];
        yp[index] = yp[i - 1];
        isa_move[index] = isa_move[i - 1];
        index++;
      }
      start = i;
      old_dx = dx;
      old_dy = dy;
    }
  }
  xp[index] = xp[*size - 1];
  yp[index] = yp[*size - 1];
  isa_move[index] = isa_move[*size - 1];
  index++;
  old_size = *size;
  *size = index;
  return (old_size - *size);
}
```