user: What is the c source code of the assembly code below:

```asm
<manhattan_distance_erode_2D>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x18(%rbp)
  mov    %esi,-0x1c(%rbp)
  mov    %edx,-0x20(%rbp)
  movl   $0x0,-0x8(%rbp)
  movl   $0x0,-0x4(%rbp)
  movl   $0x0,-0x8(%rbp)
  jmp    L57
L127:
  movl   $0x0,-0x4(%rbp)
  jmp    L28
L104:
  mov    -0x8(%rbp),%eax
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x4(%rbp),%eax
  shl    $0x2,%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  test   %eax,%eax
  je     L30
  mov    -0x8(%rbp),%eax
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x4(%rbp),%eax
  shl    $0x2,%rax
  add    %rdx,%rax
  movl   $0x0,(%rax)
  jmp    L122
L30:
  mov    -0x20(%rbp),%edx
  mov    -0x1c(%rbp),%eax
  add    %eax,%edx
  mov    -0x8(%rbp),%eax
  lea    0x0(,%rax,8),%rcx
  mov    -0x18(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%rcx
  mov    -0x4(%rbp),%eax
  shl    $0x2,%rax
  add    %rcx,%rax
  mov    %edx,(%rax)
  cmpl   $0x0,-0x8(%rbp)
  je     L53
  mov    -0x8(%rbp),%eax
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x4(%rbp),%eax
  shl    $0x2,%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    -0x8(%rbp),%edx
  sub    $0x1,%edx
  mov    %edx,%edx
  lea    0x0(,%rdx,8),%rcx
  mov    -0x18(%rbp),%rdx
  add    %rcx,%rdx
  mov    (%rdx),%rcx
  mov    -0x4(%rbp),%edx
  shl    $0x2,%rdx
  add    %rcx,%rdx
  mov    (%rdx),%edx
  add    $0x1,%edx
  mov    -0x8(%rbp),%ecx
  lea    0x0(,%rcx,8),%rsi
  mov    -0x18(%rbp),%rcx
  add    %rsi,%rcx
  mov    (%rcx),%rsi
  mov    -0x4(%rbp),%ecx
  shl    $0x2,%rcx
  add    %rsi,%rcx
  cmp    %edx,%eax
  cmova  %edx,%eax
  mov    %eax,(%rcx)
L53:
  cmpl   $0x0,-0x4(%rbp)
  je     L122
  mov    -0x8(%rbp),%eax
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x4(%rbp),%eax
  shl    $0x2,%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    -0x8(%rbp),%edx
  lea    0x0(,%rdx,8),%rcx
  mov    -0x18(%rbp),%rdx
  add    %rcx,%rdx
  mov    (%rdx),%rcx
  mov    -0x4(%rbp),%edx
  sub    $0x1,%edx
  mov    %edx,%edx
  shl    $0x2,%rdx
  add    %rcx,%rdx
  mov    (%rdx),%edx
  add    $0x1,%edx
  mov    -0x8(%rbp),%ecx
  lea    0x0(,%rcx,8),%rsi
  mov    -0x18(%rbp),%rcx
  add    %rsi,%rcx
  mov    (%rcx),%rsi
  mov    -0x4(%rbp),%ecx
  shl    $0x2,%rcx
  add    %rsi,%rcx
  cmp    %edx,%eax
  cmova  %edx,%eax
  mov    %eax,(%rcx)
L122:
  addl   $0x1,-0x4(%rbp)
L28:
  mov    -0x1c(%rbp),%eax
  cmp    %eax,-0x4(%rbp)
  jb     L104
  addl   $0x1,-0x8(%rbp)
L57:
  mov    -0x20(%rbp),%eax
  cmp    %eax,-0x8(%rbp)
  jb     L127
  mov    -0x20(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0x8(%rbp)
  jmp    L16
L14:
  mov    -0x1c(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0x4(%rbp)
  jmp    L81
L27:
  mov    -0x8(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    -0x20(%rbp),%eax
  cmp    %eax,%edx
  jae    L83
  mov    -0x8(%rbp),%eax
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x4(%rbp),%eax
  shl    $0x2,%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    -0x8(%rbp),%edx
  add    $0x1,%edx
  mov    %edx,%edx
  lea    0x0(,%rdx,8),%rcx
  mov    -0x18(%rbp),%rdx
  add    %rcx,%rdx
  mov    (%rdx),%rcx
  mov    -0x4(%rbp),%edx
  shl    $0x2,%rdx
  add    %rcx,%rdx
  mov    (%rdx),%edx
  add    $0x1,%edx
  mov    -0x8(%rbp),%ecx
  lea    0x0(,%rcx,8),%rsi
  mov    -0x18(%rbp),%rcx
  add    %rsi,%rcx
  mov    (%rcx),%rsi
  mov    -0x4(%rbp),%ecx
  shl    $0x2,%rcx
  add    %rsi,%rcx
  cmp    %edx,%eax
  cmova  %edx,%eax
  mov    %eax,(%rcx)
L83:
  mov    -0x4(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    -0x1c(%rbp),%eax
  cmp    %eax,%edx
  jae    L103
  mov    -0x8(%rbp),%eax
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x4(%rbp),%eax
  shl    $0x2,%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    -0x8(%rbp),%edx
  lea    0x0(,%rdx,8),%rcx
  mov    -0x18(%rbp),%rdx
  add    %rcx,%rdx
  mov    (%rdx),%rcx
  mov    -0x4(%rbp),%edx
  add    $0x1,%edx
  mov    %edx,%edx
  shl    $0x2,%rdx
  add    %rcx,%rdx
  mov    (%rdx),%edx
  add    $0x1,%edx
  mov    -0x8(%rbp),%ecx
  lea    0x0(,%rcx,8),%rsi
  mov    -0x18(%rbp),%rcx
  add    %rsi,%rcx
  mov    (%rcx),%rsi
  mov    -0x4(%rbp),%ecx
  shl    $0x2,%rcx
  add    %rsi,%rcx
  cmp    %edx,%eax
  cmova  %edx,%eax
  mov    %eax,(%rcx)
L103:
  subl   $0x1,-0x4(%rbp)
L81:
  cmpl   $0x0,-0x4(%rbp)
  je     L27
  subl   $0x1,-0x8(%rbp)
L16:
  cmpl   $0x0,-0x8(%rbp)
  je     L14
  mov    $0x1,%eax
  pop    %rbp
  ret
```

assistant: ```c
int manhattan_distance_erode_2D(unsigned int **image_data_2D_uint, int width, int height) {
  unsigned int i = 0, j = 0;
  for (i = 0; i < height; i++) {
    for (j = 0; j < width; j++) {
      if (image_data_2D_uint[i][j])
        image_data_2D_uint[i][j] = 0;
      else {
        image_data_2D_uint[i][j] = height + width;
        if (i > 0)
          image_data_2D_uint[i][j] = ((image_data_2D_uint[i][j]) <= (image_data_2D_uint[i - 1][j] + 1) ? (image_data_2D_uint[i][j]) : (image_data_2D_uint[i - 1][j] + 1));
        if (j > 0)
          image_data_2D_uint[i][j] = ((image_data_2D_uint[i][j]) <= (image_data_2D_uint[i][j - 1] + 1) ? (image_data_2D_uint[i][j]) : (image_data_2D_uint[i][j - 1] + 1));
      }
    }
  }
  for (i = (height - 1); i <= 0; i--) {
    for (j = (width - 1); j <= 0; j--) {
      if (i + 1 < height)
        image_data_2D_uint[i][j] = ((image_data_2D_uint[i][j]) <= (image_data_2D_uint[i + 1][j] + 1) ? (image_data_2D_uint[i][j]) : (image_data_2D_uint[i + 1][j] + 1));
      if (j + 1 < width)
        image_data_2D_uint[i][j] = ((image_data_2D_uint[i][j]) <= (image_data_2D_uint[i][j + 1] + 1) ? (image_data_2D_uint[i][j]) : (image_data_2D_uint[i][j + 1] + 1));
    }
  }
  return 1;
}
```