user: Please show me the C implementation that matches the assembly code listed below:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x14(%rbp)
  lea    -0x20(%rbp),%rax
  mov    %rax,%rsi
  lea    D14(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  mov    -0x20(%rbp),%edx
  mov    -0x20(%rbp),%eax
  imul   %edx,%eax
  mov    -0x20(%rbp),%edx
  lea    -0x1(%rdx),%ecx
  mov    -0x20(%rbp),%edx
  add    %edx,%ecx
  mov    -0x20(%rbp),%edx
  sub    $0x2,%edx
  add    %edx,%edx
  add    %ecx,%edx
  add    $0x1,%edx
  sub    %edx,%eax
  mov    %eax,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  mov    %eax,%esi
  lea    D3(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movl   $0x0,-0x18(%rbp)
  jmp    L89
L76:
  mov    -0x20(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    -0x20(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x10(%rbp)
  movl   $0x0,-0x1c(%rbp)
  jmp    L135
L128:
  mov    -0x18(%rbp),%eax
  add    %eax,%eax
  add    $0x1,%eax
  mov    %eax,-0xc(%rbp)
  cmpl   $0x0,-0x18(%rbp)
  jne    L100
  mov    -0x20(%rbp),%eax
  lea    -0x2(%rax),%edx
  mov    -0x20(%rbp),%eax
  add    %edx,%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  cmp    %eax,-0x1c(%rbp)
  jne    L100
  mov    $0x2a,%edi
  call   <putchar@plt>
  jmp    L48
L100:
  mov    -0x20(%rbp),%eax
  sub    $0x1,%eax
  cmp    %eax,-0x18(%rbp)
  jne    L51
  mov    $0x2a,%edi
  call   <putchar@plt>
  jmp    L48
L51:
  mov    -0x10(%rbp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  mov    %eax,%ecx
  mov    -0xc(%rbp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  neg    %eax
  add    %ecx,%eax
  cmp    %eax,-0x1c(%rbp)
  je     L10
  mov    -0x10(%rbp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  mov    %eax,%ecx
  mov    -0xc(%rbp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  add    %ecx,%eax
  cmp    %eax,-0x1c(%rbp)
  jne    L110
L10:
  mov    $0x2a,%edi
  call   <putchar@plt>
  jmp    L48
L110:
  mov    -0x10(%rbp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  mov    %eax,%ecx
  mov    -0xc(%rbp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  neg    %eax
  add    %ecx,%eax
  cmp    %eax,-0x1c(%rbp)
  jle    L80
  mov    -0x10(%rbp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  mov    %eax,%ecx
  mov    -0xc(%rbp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  add    %ecx,%eax
  cmp    %eax,-0x1c(%rbp)
  jge    L80
  mov    $0x23,%edi
  call   <putchar@plt>
  jmp    L48
L80:
  mov    $0x20,%edi
  call   <putchar@plt>
L48:
  addl   $0x1,-0x1c(%rbp)
L135:
  mov    -0x20(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    -0x20(%rbp),%eax
  add    %edx,%eax
  cmp    %eax,-0x1c(%rbp)
  jl     L128
  mov    $0xa,%edi
  call   <putchar@plt>
  addl   $0x1,-0x18(%rbp)
L89:
  mov    -0x20(%rbp),%eax
  cmp    %eax,-0x18(%rbp)
  jl     L76
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L144
  call   <__stack_chk_fail@plt>
L144:
  leave
  ret
```

tool_calls: name: unpack_data
arguments: label: D14
data_type: string
name: unpack_data
arguments: label: D3
data_type: string

tool: D14: %d

tool: D3: 
%d


assistant: ```c
int main() {
  int j;
  int i;
  int height;
  int number = 0;
  scanf("%d", &height);
  number = (height * height) - (height + (height - 1) + (height - 2) * 2 + 1);
  printf("\n%d\n", number);
  for (i = 0; i < height; i++) {
    int all_symbols = height + (height - 1);
    for (j = 0; j < height + (height - 1); j++) {
      int symbols = (i * 2) + 1;
      if (i == 0 && j == (height + (height - 2)) / 2) {
        printf("*");
      } else if (i == height - 1) {
        printf("*");
      } else if (j == all_symbols / 2 - symbols / 2 || j == all_symbols / 2 + symbols / 2) {
        printf("*");
      } else if (j > all_symbols / 2 - symbols / 2 && j < all_symbols / 2 + symbols / 2) {
        printf("#");
      } else {
        printf(" ");
      }
    }
    printf("\n");
  }
  return 0;
}
```