user: 请将以下的汇编代码转换成C语言代码:

```asm
<draw>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r12
  push   %rbx
  sub    $0x90,%rsp
  mov    %rdi,-0x98(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x18(%rbp)
  xor    %eax,%eax
  lea    D41(%rip),%rax
  mov    %rax,-0x80(%rbp)
  lea    D16(%rip),%rax
  mov    %rax,-0x78(%rbp)
  lea    D41(%rip),%rax
  mov    %rax,-0x70(%rbp)
  lea    D41(%rip),%rax
  mov    %rax,-0x60(%rbp)
  lea    D41(%rip),%rax
  mov    %rax,-0x58(%rbp)
  lea    D41(%rip),%rax
  mov    %rax,-0x50(%rbp)
  movw   $0x0,-0x8e(%rbp)
  movw   $0xeb,-0x40(%rbp)
  movw   $0xe1,-0x3e(%rbp)
  movw   $0xe2,-0x3c(%rbp)
  movw   $0xd7,-0x3a(%rbp)
  movw   $0xd8,-0x38(%rbp)
  movw   $0xd2,-0x36(%rbp)
  movw   $0xd1,-0x34(%rbp)
  movw   $0xde,-0x32(%rbp)
  movw   $0xdf,-0x30(%rbp)
  movw   $0xe0,-0x2e(%rbp)
  movw   $0xdc,-0x2c(%rbp)
  movw   $0xdd,-0x2a(%rbp)
  movw   $0x3b,-0x28(%rbp)
  movw   $0x3b,-0x26(%rbp)
  movl   $0x0,-0x8c(%rbp)
  jmp    L86
L103:
  movl   $0x0,-0x88(%rbp)
  jmp    L94
L75:
  mov    -0x8c(%rbp),%eax
  cltq
  shl    $0x4,%rax
  mov    %rax,%rdx
  mov    -0x98(%rbp),%rax
  add    %rax,%rdx
  mov    -0x88(%rbp),%eax
  cltq
  mov    (%rdx,%rax,4),%eax
  cltq
  mov    %rax,%rdi
  call   <NTZ@plt>
  mov    %ax,-0x8e(%rbp)
  cmpw   $0x20,-0x8e(%rbp)
  je     L42
  movswl -0x8e(%rbp),%eax
  jmp    L44
L42:
  mov    $0x0,%eax
L44:
  cltq
  movzwl -0x40(%rbp,%rax,2),%eax
  cwtl
  mov    %eax,%edi
  call   <COLOR_PAIR@plt>
  mov    %eax,%edi
  call   <attrset@plt>
  movl   $0x0,-0x84(%rbp)
  jmp    L27
L62:
  mov    -0x8c(%rbp),%eax
  cltq
  shl    $0x4,%rax
  mov    %rax,%rdx
  mov    -0x98(%rbp),%rax
  add    %rax,%rdx
  mov    -0x88(%rbp),%eax
  cltq
  mov    (%rdx,%rax,4),%r12d
  mov    -0x8c(%rbp),%eax
  cltq
  shl    $0x4,%rax
  mov    %rax,%rdx
  mov    -0x98(%rbp),%rax
  add    %rax,%rdx
  mov    -0x88(%rbp),%eax
  cltq
  mov    (%rdx,%rax,4),%eax
  test   %eax,%eax
  je     L43
  mov    -0x84(%rbp),%eax
  cltq
  mov    -0x80(%rbp,%rax,8),%rbx
  jmp    L83
L43:
  mov    -0x84(%rbp),%eax
  cltq
  mov    -0x60(%rbp,%rax,8),%rbx
L83:
  mov    -0x60(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  imul   -0x88(%rbp),%eax
  mov    %eax,%esi
  mov    -0x8c(%rbp),%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %eax,%edx
  mov    -0x84(%rbp),%eax
  add    %edx,%eax
  mov    %r12d,%ecx
  mov    %rbx,%rdx
  mov    %eax,%edi
  call   <mvprintw@plt>
  addl   $0x1,-0x84(%rbp)
L27:
  cmpl   $0x2,-0x84(%rbp)
  jle    L62
  mov    $0x0,%eax
  call   <standend@plt>
  addl   $0x1,-0x88(%rbp)
L94:
  cmpl   $0x3,-0x88(%rbp)
  jle    L75
  addl   $0x1,-0x8c(%rbp)
L86:
  cmpl   $0x3,-0x8c(%rbp)
  jle    L103
  mov    $0x0,%eax
  mov    -0x18(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L53
  call   <__stack_chk_fail@plt>
L53:
  add    $0x90,%rsp
  pop    %rbx
  pop    %r12
  pop    %rbp
  ret
```

tool_calls: name: unpack_data
arguments: data_label: D41
type_guessed: string
name: unpack_data
arguments: data_label: D16
type_guessed: string

tool: D41:        

tool: D16:   % 4d 

assistant: ```c
int draw(int field[][4]) {
  char *tile[] = {
      "       ",
      "  % 4d ",
      "       ",
  };
  char *waku[] = {
      "       ",
      "       ",
      "       ",
  };
  short colors = 0, color[] = {
                        235, 225, 226, 215, 216, 210, 209, 222, 223, 224, 220, 221, 59, 59,
                    };
  for (int i = 0; i < 4; i++) {
    for (int j = 0; j < 4; j++) {
      colors = NTZ((unsigned long)field[i][j]);
      attrset(COLOR_PAIR(color[colors == 32 ? 0 : colors]));
      for (int k = 0; k < (int)(sizeof(waku) / sizeof(waku[0])); k++) {
        mvprintw(i * (int)(sizeof(waku) / sizeof(waku[0])) + k, j * strlen(waku[0]), field[i][j] ? tile[k] : waku[k], field[i][j]);
      }
      standend();
    }
  }
  return 0;
}
```