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

```asm
<draw>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  mov    %edi,%r14d
  push   %r13
  push   %r12
  push   %rbx
  lea    (%rdi,%rdi,1),%ebx
  lea    0x1(%rbx),%edi
  movslq %ebx,%r8
  movslq %edi,%r13
  sub    $0x38,%rsp
  mov    %esi,-0x54(%rbp)
  mov    %rsp,%rcx
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  mov    %r8,%rax
  imul   %r13,%rax
  add    $0xf,%rax
  mov    %rax,%rdx
  and    $0xfffffffffffff000,%rax
  sub    %rax,%rcx
  and    $0xfffffffffffffff0,%rdx
  cmp    %rcx,%rsp
  je     L286
L257:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rcx,%rsp
  jne    L257
L286:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  jne    L290
L110:
  mov    %rsp,%r12
  xor    %esi,%esi
  xor    %ecx,%ecx
  test   %ebx,%ebx
  jle    L78
  nop
L3:
  imul   %r13,%rcx
  xor    %edx,%edx
  xor    %eax,%eax
  nopl   0x0(%rax,%rax,1)
L282:
  add    %r12,%rax
  add    $0x1,%edx
  movb   $0x20,(%rax,%rcx,1)
  movsbq %dl,%rax
  cmp    %eax,%ebx
  jge    L282
  add    $0x1,%esi
  movsbq %sil,%rcx
  cmp    %ecx,%ebx
  jg     L3
  mov    %edi,%eax
  mov    %r14d,-0x58(%rbp)
  xor    %esi,%esi
  lea    -0x1(%rbx),%r11d
  shr    $0x1f,%eax
  add    %edi,%eax
  xor    %edi,%edi
  sar    %eax
  mov    %eax,%r15d
  lea    (%r12,%r8,1),%rax
  mov    %rax,-0x48(%rbp)
  lea    0x1(%r13),%rax
  mov    %rax,-0x50(%rbp)
  nopl   (%rax)
L112:
  movslq %esi,%r10
  mov    -0x48(%rbp),%r9
  mov    %ebx,%r14d
  xor    %edx,%edx
  mov    %r10,%rcx
  imul   -0x50(%rbp),%r10
  xor    %eax,%eax
  sub    %esi,%r14d
  imul   %r13,%rcx
  lea    (%r9,%rcx,1),%r8
  mov    %r11d,%r9d
  sub    %esi,%r9d
  movslq %r9d,%r9
  add    %r12,%r9
  add    %rcx,%r9
  jmp    L284
  nopw   0x0(%rax,%rax,1)
L107:
  cmp    %esi,%r11d
  je     L54
  cmp    %esi,%r15d
  jle    L254
  lea    0x1(%rsi),%eax
  cltq
  add    %r12,%rax
  movb   $0x2a,(%rax,%rcx,1)
  movb   $0x2a,(%r9)
L239:
  add    $0x1,%edx
  movsbq %dl,%rax
  cmp    %eax,%ebx
  jl     L43
L284:
  movb   $0x2a,(%r12,%rcx,1)
  movb   $0x2a,(%r8)
  test   %dil,%dil
  jne    L107
L54:
  cmp    %eax,%ebx
  je     L144
  test   $0x1,%dl
  jne    L144
  add    %r12,%rax
  add    $0x1,%edx
  movb   $0x20,(%rax,%rcx,1)
  movsbq %dl,%rax
  cmp    %eax,%ebx
  jge    L284
L43:
  add    $0x1,%edi
  movsbl %dil,%esi
  cmp    %esi,%ebx
  jg     L112
  mov    -0x58(%rbp),%r14d
  lea    -0x1(%rbx),%edi
  xor    %esi,%esi
  xor    %ecx,%ecx
  mov    %edi,%r15d
  sub    -0x54(%rbp),%r15d
  lea    -0x1(%r14),%r10d
  nop
L26:
  movslq %ecx,%r8
  xor    %r9d,%r9d
  xor    %eax,%eax
  xor    %edx,%edx
  imul   %r13,%r8
  xchg   %ax,%ax
L133:
  test   %sil,%sil
  je     L235
  cmp    %ecx,%edi
  je     L235
  cmp    %ecx,%r14d
  je     L235
  cmp    %ecx,%r10d
  je     L235
  cmp    %ecx,%r14d
  jle    L316
  cmp    %ecx,-0x54(%rbp)
  jl     L177
L316:
  cmp    %ecx,%r15d
  jg     L235
L177:
  add    %r12,%rdx
  add    %r8,%rdx
  movzbl (%rdx),%r11d
  cmp    $0x2a,%r11b
  je     L125
  cmp    $0x2,%r9d
  je     L52
L235:
  add    $0x1,%eax
  movsbq %al,%rdx
  cmp    %edx,%ebx
  jge    L133
  add    $0x1,%esi
  movsbl %sil,%ecx
  cmp    %ecx,%ebx
  jg     L26
  mov    %r13,-0x48(%rbp)
  xor    %r15d,%r15d
  xor    %r14d,%r14d
L46:
  imul   -0x48(%rbp),%r14
  xor    %r13d,%r13d
  xor    %eax,%eax
  nopw   0x0(%rax,%rax,1)
L325:
  add    %r12,%rax
  add    $0x1,%r13d
  movsbl (%rax,%r14,1),%edi
  call   <putchar@plt>
  movsbq %r13b,%rax
  cmp    %eax,%ebx
  jge    L325
  add    $0x1,%r15d
  mov    $0xa,%edi
  call   <putchar@plt>
  movsbq %r15b,%r14
  cmp    %r14d,%ebx
  jg     L46
L78:
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L71
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
  xchg   %ax,%ax
L254:
  movb   $0x2a,(%r12,%r10,1)
  movslq %r14d,%rax
L144:
  add    %r12,%rax
  movb   $0x2a,(%rax,%rcx,1)
  jmp    L239
  nopl   0x0(%rax)
L125:
  add    $0x1,%r9d
  jmp    L235
  nopl   0x0(%rax)
L52:
  cmp    $0x20,%r11b
  jne    L235
  movb   $0x2e,(%rdx)
  jmp    L235
L290:
  orq    $0x0,-0x8(%rsp,%rdx,1)
  jmp    L110
L71:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void draw(int size, int sand) {
  char a[(size * 2)][((size * 2) + 1)], i, j;
  int flag = 0;
  for (i = 0; i < (size * 2); i++) {
    for (j = 0; j < ((size * 2) + 1); j++) {
      a[i][j] = ' ';
    }
  }
  for (i = 0; i < (size * 2); i++) {
    for (j = 0; j < ((size * 2) + 1); j++) {
      a[i][0] = '*';
      a[i][((size * 2) + 1) - 1] = '*';
      if ((i == 0) || (i == (size * 2) - 1)) {
        if (((j % 2) == 0) && (j != ((size * 2) + 1) - 1)) {
          a[i][j] = ' ';
        } else {
          a[i][j] = '*';
        }
      } else {
        if (i < ((size * 2) + 1) / 2) {
          a[i][i + 1] = '*';
          a[i][(((size * 2) + 1) - 2) - i] = '*';
        } else {
          a[i][i] = '*';
          a[i][(((size * 2) + 1) - 2) - (i - 1)] = '*';
        }
      }
    }
  }
  for (i = 0; i < (size * 2); i++) {
    flag = 0;
    for (j = 0; j < ((size * 2) + 1); j++) {
      if ((i != 0) && (i != ((size * 2) - 1)) && (i != ((size * 2) / 2)) && (i != ((size * 2) / 2) - 1)) {
        if (((!(i <= sand)) && (i < (size * 2) / 2)) || (i >= ((size * 2) - 1) - sand)) {
          if (a[i][j] == '*') {
            flag++;
          }
          if ((flag == 2) && (a[i][j] != '*') && (a[i][j] == ' ')) {
            a[i][j] = '.';
          }
        }
      }
    }
  }
  for (i = 0; i < (size * 2); i++) {
    for (j = 0; j < ((size * 2) + 1); j++) {
      printf("%c", a[i][j]);
    }
    printf("\n");
  }
}
```