user: 这段汇编代码用C语言表示是什么样的?

```asm
<draw_selection>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %esi,-0x1c(%rbp)
  mov    %edx,-0x20(%rbp)
  mov    %ecx,-0x24(%rbp)
  mov    %r8d,-0x28(%rbp)
  mov    $0x2,%edi
  call   <COLOR_PAIR@plt>
  mov    %eax,%edi
  call   <attron@plt>
  movl   $0x0,-0xc(%rbp)
  jmp    L92
L42:
  movl   $0x0,-0x8(%rbp)
  jmp    L50
L17:
  mov    -0x8(%rbp),%edx
  mov    -0x1c(%rbp),%eax
  add    %edx,%eax
  movslq %eax,%rdx
  imul   $0xffffffffd20d20d3,%rdx,%rdx
  shr    $0x20,%rdx
  add    %eax,%edx
  sar    $0x6,%edx
  mov    %eax,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%edx
  imul   $0x4e,%edx,%ecx
  sub    %ecx,%eax
  mov    %eax,%edx
  lea    0x1(%rdx),%esi
  mov    -0xc(%rbp),%edx
  mov    -0x20(%rbp),%eax
  lea    (%rdx,%rax,1),%ecx
  movslq %ecx,%rax
  imul   $0x6bca1af3,%rax,%rax
  shr    $0x20,%rax
  sar    $0x3,%eax
  mov    %ecx,%edi
  sar    $0x1f,%edi
  sub    %edi,%eax
  mov    %eax,%edx
  mov    %edx,%eax
  shl    $0x3,%eax
  add    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  sub    %eax,%ecx
  mov    %ecx,%edx
  lea    0x2(%rdx),%eax
  mov    %eax,%edi
  call   <move@plt>
  mov    -0xc(%rbp),%edx
  mov    -0x20(%rbp),%eax
  lea    (%rdx,%rax,1),%ecx
  movslq %ecx,%rax
  imul   $0x6bca1af3,%rax,%rax
  shr    $0x20,%rax
  sar    $0x3,%eax
  mov    %ecx,%esi
  sar    $0x1f,%esi
  sub    %esi,%eax
  mov    %eax,%edx
  mov    %edx,%eax
  shl    $0x3,%eax
  add    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  sub    %eax,%ecx
  mov    %ecx,%edx
  imul   $0x4e,%edx,%ecx
  mov    -0x8(%rbp),%edx
  mov    -0x1c(%rbp),%eax
  add    %edx,%eax
  movslq %eax,%rdx
  imul   $0xffffffffd20d20d3,%rdx,%rdx
  shr    $0x20,%rdx
  add    %eax,%edx
  sar    $0x6,%edx
  mov    %eax,%esi
  sar    $0x1f,%esi
  sub    %esi,%edx
  imul   $0x4e,%edx,%esi
  sub    %esi,%eax
  mov    %eax,%edx
  lea    (%rcx,%rdx,1),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x4(%rbp)
  cmpl   $0x0,-0x4(%rbp)
  jne    L43
  mov    $0x2e,%edi
  call   <addch@plt>
  jmp    L62
L43:
  cmpl   $0x1,-0x4(%rbp)
  jne    L28
  mov    $0x78,%edi
  call   <addch@plt>
  jmp    L62
L28:
  cmpl   $0x2,-0x4(%rbp)
  jne    L74
  mov    D3(%rip),%rax
  mov    (%rax),%eax
  mov    %eax,%edi
  call   <addch@plt>
  jmp    L62
L74:
  mov    -0x4(%rbp),%eax
  mov    %eax,%edi
  call   <addch@plt>
L62:
  addl   $0x1,-0x8(%rbp)
L50:
  mov    -0x8(%rbp),%eax
  cmp    -0x24(%rbp),%eax
  jl     L17
  addl   $0x1,-0xc(%rbp)
L92:
  mov    -0xc(%rbp),%eax
  cmp    -0x28(%rbp),%eax
  jl     L42
  mov    $0x2,%edi
  call   <COLOR_PAIR@plt>
  mov    %eax,%edi
  call   <attroff@plt>
  nop
  leave
  ret
```

assistant: ```c
void draw_selection(uint8_t map[], int selectedX, int selectedY, int selectedWidth, int selectedHeight) {
  int i, j;
  attron(COLOR_PAIR(2));
  for (i = 0; i < selectedHeight; i++) {
    for (j = 0; j < selectedWidth; j++) {
      move(2 + ((i + selectedY) % 19), 1 + ((j + selectedX) % 78));
      uint8_t val = map[((i + selectedY) % 19) * 78 + ((j + selectedX) % 78)];
      if (val == 0) {
        addch('.');
      } else if (val == 1) {
        addch('x');
      } else if (val == 2) {
        addch(ACS_CKBOARD);
      } else {
        addch(val);
      }
    }
  }
  attroff(COLOR_PAIR(2));
}
```