user: Converte this assembly snippet into its equivalent C code:

```asm
<is_distance_under_recrusively>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %rdi,-0x8(%rbp)
  mov    %esi,-0xc(%rbp)
  mov    %rdx,-0x18(%rbp)
  mov    %ecx,-0x10(%rbp)
  mov    %r8d,-0x1c(%rbp)
  mov    %r9d,-0x20(%rbp)
  mov    0x10(%rbp),%eax
  cmp    0x18(%rbp),%eax
  jl     L157
  mov    $0x0,%eax
  jmp    L17
L157:
  mov    -0x20(%rbp),%eax
  cmp    -0xc(%rbp),%eax
  jne    L42
  mov    -0x1c(%rbp),%eax
  cmp    -0x10(%rbp),%eax
  jne    L42
  mov    $0x1,%eax
  jmp    L17
L118:
  addl   $0x1,-0x1c(%rbp)
  addl   $0x1,-0x20(%rbp)
L42:
  mov    -0x20(%rbp),%eax
  cmp    -0xc(%rbp),%eax
  jge    L111
  mov    -0x1c(%rbp),%eax
  cmp    -0x10(%rbp),%eax
  jge    L111
  mov    -0x20(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%edx
  mov    -0x1c(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x18(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  cmp    %al,%dl
  je     L118
L111:
  mov    -0x20(%rbp),%eax
  cmp    -0xc(%rbp),%eax
  jge    L39
  mov    -0x1c(%rbp),%eax
  cmp    -0x10(%rbp),%eax
  jge    L39
  mov    -0x20(%rbp),%eax
  add    $0x1,%eax
  imul   $0x4b0,%eax,%edx
  mov    -0x1c(%rbp),%eax
  add    $0x1,%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    0x20(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  test   %eax,%eax
  jne    L39
  mov    -0x20(%rbp),%eax
  add    $0x1,%eax
  imul   $0x4b0,%eax,%edx
  mov    -0x1c(%rbp),%eax
  add    $0x1,%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    0x20(%rbp),%rax
  add    %rdx,%rax
  movl   $0x1,(%rax)
  mov    0x10(%rbp),%eax
  lea    0x1(%rax),%r8d
  mov    -0x20(%rbp),%eax
  lea    0x1(%rax),%r9d
  mov    -0x1c(%rbp),%eax
  lea    0x1(%rax),%r10d
  mov    -0x10(%rbp),%ecx
  mov    -0x18(%rbp),%rdx
  mov    -0xc(%rbp),%esi
  mov    -0x8(%rbp),%rax
  sub    $0x8,%rsp
  push   0x20(%rbp)
  mov    0x18(%rbp),%edi
  push   %rdi
  push   %r8
  mov    %r10d,%r8d
  mov    %rax,%rdi
  call   <is_distance_under_recrusively>
  add    $0x20,%rsp
  test   %eax,%eax
  je     L39
  mov    $0x1,%eax
  jmp    L17
L39:
  mov    -0x1c(%rbp),%eax
  cmp    -0x10(%rbp),%eax
  jge    L201
  mov    -0x20(%rbp),%eax
  imul   $0x4b0,%eax,%edx
  mov    -0x1c(%rbp),%eax
  add    $0x1,%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    0x20(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  test   %eax,%eax
  jne    L201
  mov    -0x20(%rbp),%eax
  imul   $0x4b0,%eax,%edx
  mov    -0x1c(%rbp),%eax
  add    $0x1,%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    0x20(%rbp),%rax
  add    %rdx,%rax
  movl   $0x1,(%rax)
  mov    0x10(%rbp),%eax
  lea    0x1(%rax),%r8d
  mov    -0x1c(%rbp),%eax
  lea    0x1(%rax),%r10d
  mov    -0x20(%rbp),%r9d
  mov    -0x10(%rbp),%ecx
  mov    -0x18(%rbp),%rdx
  mov    -0xc(%rbp),%esi
  mov    -0x8(%rbp),%rax
  sub    $0x8,%rsp
  push   0x20(%rbp)
  mov    0x18(%rbp),%edi
  push   %rdi
  push   %r8
  mov    %r10d,%r8d
  mov    %rax,%rdi
  call   <is_distance_under_recrusively>
  add    $0x20,%rsp
  test   %eax,%eax
  je     L201
  mov    $0x1,%eax
  jmp    L17
L201:
  mov    -0x20(%rbp),%eax
  cmp    -0xc(%rbp),%eax
  jge    L128
  mov    -0x20(%rbp),%eax
  add    $0x1,%eax
  imul   $0x4b0,%eax,%edx
  mov    -0x1c(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    0x20(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  test   %eax,%eax
  jne    L128
  mov    -0x20(%rbp),%eax
  add    $0x1,%eax
  imul   $0x4b0,%eax,%edx
  mov    -0x1c(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    0x20(%rbp),%rax
  add    %rdx,%rax
  movl   $0x1,(%rax)
  mov    0x10(%rbp),%eax
  lea    0x1(%rax),%r8d
  mov    -0x20(%rbp),%eax
  lea    0x1(%rax),%r9d
  mov    -0x1c(%rbp),%r10d
  mov    -0x10(%rbp),%ecx
  mov    -0x18(%rbp),%rdx
  mov    -0xc(%rbp),%esi
  mov    -0x8(%rbp),%rax
  sub    $0x8,%rsp
  push   0x20(%rbp)
  mov    0x18(%rbp),%edi
  push   %rdi
  push   %r8
  mov    %r10d,%r8d
  mov    %rax,%rdi
  call   <is_distance_under_recrusively>
  add    $0x20,%rsp
  test   %eax,%eax
  je     L128
  mov    $0x1,%eax
  jmp    L17
L128:
  mov    $0x0,%eax
L17:
  leave
  ret
```

assistant: ```c
int is_distance_under_recrusively(char *a, int al, char *b, int bl, int x, int y, int l, int s, int *d) {
  int right;
  int bottom;
  if (l >= s) {
    return 0;
  }
  if (y == al && x == bl) {
    return 1;
  }
  while (y < al && x < bl && a[y] == b[x]) {
    x++;
    y++;
  }
  if (y < al && x < bl && !d[(y + 1) * 1200 + (x + 1)]) {
    d[(y + 1) * 1200 + (x + 1)] = 1;
    if (is_distance_under_recrusively(a, al, b, bl, x + 1, y + 1, l + 1, s, d)) {
      return 1;
    }
  }
  if (x < bl && !d[y * 1200 + (x + 1)]) {
    d[y * 1200 + (x + 1)] = 1;
    if (is_distance_under_recrusively(a, al, b, bl, x + 1, y, l + 1, s, d)) {
      return 1;
    }
  }
  if (y < al && !d[(y + 1) * 1200 + x]) {
    d[(y + 1) * 1200 + x] = 1;
    if (is_distance_under_recrusively(a, al, b, bl, x, y + 1, l + 1, s, d)) {
      return 1;
    }
  }
  return 0;
}
```