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

```asm
<main>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  lea    D48(%rip),%rdi
  call   <printf@plt>
  lea    0x4(%rsp),%rsi
  lea    D14(%rip),%rdi
  call   <scanf@plt>
  mov    $0x0,%ebp
  cmpl   $0x0,0x4(%rsp)
  jg     L108
L1:
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    $0x0,%ebp
  lea    D20(%rip),%r12
  cmpl   $0x0,0x4(%rsp)
  jg     L66
L107:
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    $0x0,%ebp
  lea    D1(%rip),%r12
  cmpl   $0x0,0x4(%rsp)
  jg     L138
L154:
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    $0x1,%ebp
  mov    $0x0,%r12d
  lea    D40(%rip),%r13
  cmpl   $0x0,0x4(%rsp)
  jns    L48
L68:
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L94
  mov    $0x0,%eax
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L141:
  mov    $0x2a,%edi
  call   <putchar@plt>
  add    $0x1,%ebx
  cmp    %ebp,%ebx
  jle    L141
L203:
  mov    $0xa,%edi
  call   <putchar@plt>
  add    $0x1,%ebp
  cmp    %ebp,0x4(%rsp)
  jle    L1
L108:
  mov    $0x0,%ebx
  test   %ebp,%ebp
  jns    L141
  jmp    L203
L174:
  add    $0x1,%ebx
  mov    %ebx,%esi
  mov    %r12,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  cmp    %ebp,%ebx
  jle    L174
L118:
  mov    $0xa,%edi
  call   <putchar@plt>
  add    $0x1,%ebp
  cmp    %ebp,0x4(%rsp)
  jle    L107
L66:
  mov    $0x0,%ebx
  test   %ebp,%ebp
  jns    L174
  jmp    L118
L56:
  lea    0x41(%rbx),%esi
  mov    %r12,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  add    $0x1,%ebx
  cmp    %ebp,%ebx
  jle    L56
L102:
  mov    $0xa,%edi
  call   <putchar@plt>
  add    $0x1,%ebp
  cmp    %ebp,0x4(%rsp)
  jle    L154
L138:
  mov    $0x0,%ebx
  test   %ebp,%ebp
  jns    L56
  jmp    L102
L20:
  mov    %ebp,%esi
  add    $0x1,%ebp
  mov    %r13,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  add    $0x1,%ebx
  cmp    %r12d,%ebx
  jle    L20
L131:
  mov    $0xa,%edi
  call   <putchar@plt>
  add    $0x1,%r12d
  cmp    %r12d,0x4(%rsp)
  jl     L68
L48:
  mov    $0x0,%ebx
  test   %r12d,%r12d
  jns    L20
  jmp    L131
L94:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D48
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D14
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D20
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D1
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D40
type_guessed: string

tool: D48: Visina?

tool: D14: %d

tool: D20: %d 

tool: D1: %c 

tool: D40: %2d 

assistant: ```c
int main() {
  int v;
  printf("Visina?");
  scanf("%d", &v);
  int niz[v], i;
  for (i = 0; i < v; i++) {
    int j;
    for (j = 0; j <= i; j++)
      printf("*");
    printf("\n");
  }
  printf("\n");
  for (i = 0; i < v; i++) {
    int j;
    for (j = 0; j <= i; j++)
      printf("%d ", j + 1);
    printf("\n");
  }
  printf("\n");
  for (i = 0; i < v; i++) {
    int j;
    for (j = 0; j <= i; j++)
      printf("%c ", 'A' + j);
    printf("\n");
  }
  printf("\n");
  int k = 1;
  for (i = 0; i <= v; i++) {
    int j;
    for (j = 0; j <= i; ++j) {
      printf("%2d ", k++);
    }
    printf("\n");
  }
  printf("\n");
  return 0;
}
```