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

```asm
<main>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  lea    D10(%rip),%rbp
  push   %rbx
  mov    %rbp,%rdi
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  lea    0xc(%rsp),%rsi
  call   <scanf@plt>
  lea    0x10(%rsp),%rsi
  mov    %rbp,%rdi
  call   <scanf@plt>
  lea    0x14(%rsp),%rsi
  mov    %rbp,%rdi
  call   <scanf@plt>
  mov    0x10(%rsp),%eax
  cmp    $0x1,%eax
  je     L21
  cmpl   $0x1,0x14(%rsp)
  je     L128
  xor    %ebx,%ebx
  test   %eax,%eax
  jle    L7
  nopw   0x0(%rax,%rax,1)
L158:
  mov    0xc(%rsp),%esi
  mov    %rbp,%rdi
  xor    %eax,%eax
  add    $0x1,%ebx
  call   <printf@plt>
  cmp    %ebx,0x10(%rsp)
  jg     L158
L7:
  mov    $0xa,%edi
  call   <putchar@plt>
  cmpl   $0x2,0x14(%rsp)
  jle    L52
  xor    %r12d,%r12d
  lea    D20(%rip),%r13
  nopw   0x0(%rax,%rax,1)
L13:
  mov    0xc(%rsp),%esi
  xor    %eax,%eax
  mov    %rbp,%rdi
  call   <printf@plt>
  cmpl   $0x2,0x10(%rsp)
  jle    L85
  xor    %ebx,%ebx
  nop
L9:
  mov    $0x20,%edi
  add    $0x1,%ebx
  call   <putchar@plt>
  mov    0x10(%rsp),%eax
  sub    $0x2,%eax
  cmp    %ebx,%eax
  jg     L9
L85:
  mov    0xc(%rsp),%esi
  mov    %r13,%rdi
  xor    %eax,%eax
  add    $0x1,%r12d
  call   <printf@plt>
  mov    0x14(%rsp),%eax
  sub    $0x2,%eax
  cmp    %r12d,%eax
  jg     L13
L52:
  cmpl   $0x0,0x10(%rsp)
  jle    L121
  xor    %ebx,%ebx
  nop
L55:
  mov    0xc(%rsp),%esi
  mov    %rbp,%rdi
  xor    %eax,%eax
  add    $0x1,%ebx
  call   <printf@plt>
  cmp    %ebx,0x10(%rsp)
  jg     L55
L121:
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L163
  add    $0x28,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L21:
  mov    0x14(%rsp),%eax
  cmp    $0x1,%eax
  je     L69
  xor    %ebx,%ebx
  lea    D20(%rip),%r13
  test   %eax,%eax
  jle    L121
  xchg   %ax,%ax
L116:
  mov    0xc(%rsp),%esi
  mov    %r13,%rdi
  xor    %eax,%eax
  add    $0x1,%ebx
  call   <printf@plt>
  cmp    %ebx,0x14(%rsp)
  jg     L116
  jmp    L121
L128:
  mov    0xc(%rsp),%esi
  xor    %eax,%eax
  mov    %rbp,%rdi
  call   <printf@plt>
  cmpl   $0x2,0x10(%rsp)
  jle    L69
  xor    %ebx,%ebx
L70:
  mov    $0x20,%edi
  add    $0x1,%ebx
  call   <putchar@plt>
  mov    0x10(%rsp),%eax
  sub    $0x2,%eax
  cmp    %ebx,%eax
  jg     L70
L69:
  mov    0xc(%rsp),%esi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L121
L163:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_label: D10
type_guessed: string
name: parse_data
arguments: data_label: D20
type_guessed: string

tool: D10: %d

tool: D20: %d


assistant: ```c
int main() {
  int N, w, h, i, j, k, l, m, n;
  scanf("%d", &N);
  scanf("%d", &w);
  scanf("%d", &h);
  if (w == 1) {
    if (h == 1) {
      printf("%d", N);
    } else {
      for (m = 0; m < h; m++) {
        printf("%d\n", N);
      }
    }
  } else {
    if (h == 1) {
      printf("%d", N);
      for (n = 0; n < w - 2; n++) {
        printf(" ");
      }
      printf("%d", N);
    } else {
      {
        for (i = 0; i < w; i++) {
          printf("%d", N);
        }
        printf("\n");
      }
      {
        for (j = 0; j < (h - 2); j++) {
          printf("%d", N);
          {
            for (k = 0; k < (w - 2); k++) {
              printf(" ");
            }
          }
          printf("%d\n", N);
        }
      }
      {
        for (l = 0; l < w; l++) {
          printf("%d", N);
        }
      }
    }
  }
  return 0;
}
```