user: Translate the below assembly code into C programming language:

```asm
<get_screen>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x70,%rsp
  mov    %edi,-0x54(%rbp)
  mov    %esi,-0x58(%rbp)
  mov    %edx,-0x5c(%rbp)
  mov    %ecx,-0x60(%rbp)
  mov    %r8,-0x68(%rbp)
  mov    $0x0,%edi
  call   <XOpenDisplay@plt>
  mov    %rax,-0x30(%rbp)
  mov    -0x30(%rbp),%rax
  mov    %rax,%rdi
  call   <DefaultRootWindow@plt>
  mov    %eax,-0x38(%rbp)
  mov    -0x30(%rbp),%rax
  mov    %rax,%rdi
  call   <XFlush@plt>
  mov    D11(%rip),%rax
  mov    (%rax),%ecx
  mov    D13(%rip),%rax
  mov    (%rax),%edx
  mov    -0x38(%rbp),%esi
  mov    -0x30(%rbp),%rax
  push   %rcx
  push   %rdx
  mov    $0x438,%r9d
  mov    $0x780,%r8d
  mov    $0x0,%ecx
  mov    $0x0,%edx
  mov    %rax,%rdi
  call   <XGetImage@plt>
  add    $0x10,%rsp
  mov    %rax,-0x28(%rbp)
  mov    -0x28(%rbp),%rax
  mov    (%rax),%rax
  mov    %rax,-0x20(%rbp)
  mov    -0x28(%rbp),%rax
  mov    0x8(%rax),%rax
  mov    %rax,-0x18(%rbp)
  mov    -0x28(%rbp),%rax
  mov    0x10(%rax),%rax
  mov    %rax,-0x10(%rbp)
  movl   $0x0,-0x40(%rbp)
  jmp    L33
L14:
  movl   $0x0,-0x3c(%rbp)
  jmp    L31
L24:
  mov    -0x58(%rbp),%edx
  mov    -0x3c(%rbp),%eax
  add    %eax,%edx
  mov    -0x54(%rbp),%ecx
  mov    -0x40(%rbp),%eax
  add    %eax,%ecx
  mov    -0x28(%rbp),%rax
  mov    %ecx,%esi
  mov    %rax,%rdi
  call   <XGetPixel@plt>
  mov    %rax,-0x8(%rbp)
  mov    -0x5c(%rbp),%eax
  imul   -0x3c(%rbp),%eax
  mov    %eax,%edx
  mov    -0x40(%rbp),%eax
  add    %eax,%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  mov    %eax,-0x34(%rbp)
  mov    -0x8(%rbp),%rax
  mov    %eax,%edx
  mov    -0x10(%rbp),%rax
  and    %edx,%eax
  mov    %al,-0x43(%rbp)
  mov    -0x8(%rbp),%rax
  and    -0x18(%rbp),%rax
  shr    $0x8,%rax
  mov    %al,-0x42(%rbp)
  mov    -0x8(%rbp),%rax
  and    -0x20(%rbp),%rax
  shr    $0x10,%rax
  mov    %al,-0x41(%rbp)
  mov    -0x34(%rbp),%eax
  cltq
  lea    0x2(%rax),%rdx
  mov    -0x68(%rbp),%rax
  add    %rax,%rdx
  movzbl -0x43(%rbp),%eax
  mov    %al,(%rdx)
  mov    -0x34(%rbp),%eax
  cltq
  lea    0x1(%rax),%rdx
  mov    -0x68(%rbp),%rax
  add    %rax,%rdx
  movzbl -0x42(%rbp),%eax
  mov    %al,(%rdx)
  mov    -0x34(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x68(%rbp),%rax
  add    %rax,%rdx
  movzbl -0x41(%rbp),%eax
  mov    %al,(%rdx)
  addl   $0x1,-0x3c(%rbp)
L31:
  mov    -0x3c(%rbp),%eax
  cmp    -0x60(%rbp),%eax
  jl     L24
  addl   $0x1,-0x40(%rbp)
L33:
  mov    -0x40(%rbp),%eax
  cmp    -0x5c(%rbp),%eax
  jl     L14
  mov    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <XDestroyImage@plt>
  mov    -0x38(%rbp),%edx
  mov    -0x30(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <XDestroyWindow@plt>
  mov    -0x30(%rbp),%rax
  mov    %rax,%rdi
  call   <XCloseDisplay@plt>
  nop
  leave
  ret
```

assistant: ```c
void get_screen(const int xx, const int yy, const int W, const int H, unsigned char *data) {
  Display *display = XOpenDisplay(NULL);
  Window root = DefaultRootWindow(display);
  XFlush(display);
  XImage *image = XGetImage(display, root, 0, 0, 1920, 1080, AllPlanes, ZPixmap);
  unsigned long red_mask = image->red_mask;
  unsigned long green_mask = image->green_mask;
  unsigned long blue_mask = image->blue_mask;
  int x, y;
  for (x = 0; x < W; x++) {
    for (y = 0; y < H; y++) {
      unsigned long pixel = XGetPixel(image, xx + x, yy + y);
      int ii = (x + W * y) * 3;
      unsigned char blue = (pixel & blue_mask);
      unsigned char green = (pixel & green_mask) >> 8;
      unsigned char red = (pixel & red_mask) >> 16;
      data[ii + 2] = blue;
      data[ii + 1] = green;
      data[ii + 0] = red;
    }
  }
  XDestroyImage(image);
  XDestroyWindow(display, root);
  XCloseDisplay(display);
}
```