user: Converte this assembly snippet into its equivalent C code:

```asm
<micro_setup_grid>:
  endbr64
  push   %r12
  push   %rbp
  mov    %esi,%ebp
  push   %rbx
  mov    %rdi,%rbx
  test   %esi,%esi
  jle    L49
  cmp    $0x1,%esi
  jne    L12
  movb   $0x21,(%rdi)
  xor    %ecx,%ecx
  xor    %edx,%edx
  mov    $0x1,%esi
  call   <place_finder@plt>
  addb   $0x40,0xf(%rbx)
  movabs $0x1010101010101010,%rax
  mov    %rax,0x7(%rbx)
  mov    $0x8,%eax
  addb   $0x40,0x8(%rbx)
  addb   $0x40,0x9(%rbx)
  addb   $0x40,0xa(%rbx)
  addb   $0x40,0xb(%rbx)
  addb   $0x40,0xc(%rbx)
  addb   $0x40,0xd(%rbx)
  addb   $0x40,0xe(%rbx)
  addb   $0x14,0x8(%rbx,%rax,1)
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
  nopl   0x0(%rax,%rax,1)
L12:
  lea    (%rsi,%rsi,1),%ecx
  shr    %esi
  mov    %rdi,%rdx
  xor    %eax,%eax
  movslq %ecx,%rcx
  add    %rsi,%rsi
  movslq %ebp,%r12
  nopl   0x0(%rax,%rax,1)
L37:
  movb   $0x21,(%rbx,%rax,1)
  movb   $0x21,(%rdx)
  cmp    %rax,%rsi
  je     L27
  movb   $0x20,0x1(%rbx,%rax,1)
  add    $0x2,%rax
  movb   $0x20,(%rdx,%r12,1)
  add    %rcx,%rdx
  cmp    %eax,%ebp
  jg     L37
L27:
  xor    %ecx,%ecx
  xor    %edx,%edx
  mov    %ebp,%esi
  mov    %rbx,%rdi
  call   <place_finder@plt>
  lea    0x0(,%rbp,8),%eax
  sub    %ebp,%eax
L35:
  lea    0x1(%rax),%edx
  movslq %eax,%rsi
  lea    0x3(%rax),%ecx
  movslq %edx,%rdx
  movb   $0x10,(%rbx,%rsi,1)
  movslq %ecx,%rcx
  lea    0x5(%rax),%edi
  movb   $0x10,0x7(%rbx)
  movslq %edi,%rdi
  movb   $0x10,(%rbx,%rdx,1)
  lea    0x2(%rax),%edx
  movslq %edx,%rdx
  movb   $0x10,0x7(%rbx,%r12,1)
  movb   $0x10,(%rbx,%rdx,1)
  lea    0x0(%rbp,%rbp,1),%edx
  movslq %edx,%r10
  add    %ebp,%edx
  movb   $0x10,0x7(%rbx,%r10,1)
  movslq %edx,%r9
  add    %edx,%edx
  movb   $0x10,(%rbx,%rcx,1)
  lea    0x4(%rax),%ecx
  add    $0x6,%eax
  movslq %edx,%rdx
  movslq %ecx,%rcx
  movb   $0x10,0x7(%rbx,%r9,1)
  cltq
  movb   $0x10,(%rbx,%rcx,1)
  lea    0x0(,%rbp,4),%ecx
  movslq %ecx,%r8
  add    %ebp,%ecx
  shl    $0x3,%ebp
  movb   $0x10,0x7(%rbx,%r8,1)
  movslq %ecx,%rcx
  movb   $0x10,(%rbx,%rdi,1)
  lea    0x1(%rbp),%edi
  movb   $0x10,0x7(%rbx,%rcx,1)
  movslq %edi,%rdi
  movb   $0x10,(%rbx,%rax,1)
  movslq %ebp,%rax
  movb   $0x10,0x7(%rbx,%rdx,1)
  movb   $0x10,0x7(%rbx,%rsi,1)
  addb   $0x20,(%rbx,%rax,1)
  addb   $0x20,0x8(%rbx)
  addb   $0x20,(%rbx,%rdi,1)
  lea    0x2(%rbp),%edi
  movslq %edi,%rdi
  addb   $0x20,0x8(%rbx,%r12,1)
  addb   $0x20,(%rbx,%rdi,1)
  lea    0x3(%rbp),%edi
  movslq %edi,%rdi
  addb   $0x20,0x8(%rbx,%r10,1)
  addb   $0x20,(%rbx,%rdi,1)
  lea    0x4(%rbp),%edi
  movslq %edi,%rdi
  addb   $0x20,0x8(%rbx,%r9,1)
  addb   $0x20,(%rbx,%rdi,1)
  lea    0x5(%rbp),%edi
  movslq %edi,%rdi
  addb   $0x20,0x8(%rbx,%r8,1)
  addb   $0x20,(%rbx,%rdi,1)
  addb   $0x20,0x8(%rbx,%rcx,1)
  lea    0x6(%rbp),%ecx
  add    $0x7,%ebp
  movslq %ebp,%rbp
  movslq %ecx,%rcx
  addb   $0x20,(%rbx,%rcx,1)
  addb   $0x20,0x8(%rbx,%rdx,1)
  addb   $0x20,(%rbx,%rbp,1)
  addb   $0x20,0x8(%rbx,%rsi,1)
  addb   $0x14,0x8(%rbx,%rax,1)
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
  nopw   0x0(%rax,%rax,1)
L49:
  xor    %ecx,%ecx
  xor    %edx,%edx
  movslq %ebp,%r12
  call   <place_finder@plt>
  lea    0x0(,%rbp,8),%eax
  sub    %ebp,%eax
  jmp    L35
```

assistant: ```c
void micro_setup_grid(unsigned char *grid, const int size) {
  int i, toggle = 1;
  for (i = 0; i < size; i++) {
    if (toggle == 1) {
      grid[i] = 0x21;
      grid[(i * size)] = 0x21;
      toggle = 0;
    } else {
      grid[i] = 0x20;
      grid[(i * size)] = 0x20;
      toggle = 1;
    }
  }
  place_finder(grid, size, 0, 0);
  for (i = 0; i < 7; i++) {
    grid[(7 * size) + i] = 0x10;
    grid[(i * size) + 7] = 0x10;
  }
  grid[(7 * size) + 7] = 0x10;
  for (i = 0; i < 8; i++) {
    grid[(8 * size) + i] += 0x20;
    grid[(i * size) + 8] += 0x20;
  }
  grid[(8 * size) + 8] += 20;
}
```