user: 请将以下的汇编代码转换成C语言代码:

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  movl   $0x0,0x20(%rsp)
  movl   $0x0,0x24(%rsp)
  lea    D72(%rip),%rdi
  call   <system@plt>
  mov    $0xbb,%edx
  mov    $0xc9,%esi
  lea    D138(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0xb9,%edx
  mov    $0xcc,%esi
  lea    D99(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0xbc,%edx
  mov    $0xc8,%esi
  lea    D131(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D54(%rip),%rdi
  call   <system@plt>
  lea    D77(%rip),%r12
  lea    0x20(%rsp),%rbp
  lea    D95(%rip),%rbx
  lea    D31(%rip),%r13
  jmp    L65
L28:
  cmpl   $0x0,0x20(%rsp)
  jg     L51
L65:
  mov    %r12,%rdi
  call   <puts@plt>
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  cmpl   $0x0,0x20(%rsp)
  jg     L28
  mov    %r13,%rdi
  call   <puts@plt>
  jmp    L28
L51:
  lea    D13(%rip),%r12
  lea    0x24(%rsp),%rbp
  lea    D95(%rip),%rbx
  lea    D31(%rip),%r13
  jmp    L182
L98:
  mov    %r13,%rdi
  call   <puts@plt>
  mov    0x24(%rsp),%eax
  test   %eax,%eax
  jg     L96
L182:
  mov    %r12,%rdi
  call   <puts@plt>
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  mov    0x24(%rsp),%eax
  test   %eax,%eax
  jle    L98
L96:
  imul   0x20(%rsp),%eax
  lea    0x0(,%rax,4),%edi
  call   <malloc@plt>
  mov    %rax,0x18(%rsp)
  mov    %rax,%r12
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    $0x1,%r14d
  movq   $0x0,0x10(%rsp)
  movl   $0x0,0x8(%rsp)
  lea    D150(%rip),%r15
  mov    $0x0,%ebp
  cmpl   $0x0,0x20(%rsp)
  jg     L146
L23:
  mov    %ebp,%esi
  lea    D82(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D54(%rip),%rdi
  call   <system@plt>
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L148
  mov    $0x0,%eax
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L59:
  movslq 0x8(%rsp),%rax
  add    0x10(%rsp),%rax
  mov    0x18(%rsp),%rcx
  lea    (%rcx,%rax,4),%r13
  mov    $0x0,%ebp
L174:
  mov    %ebp,%ebx
  add    $0x1,%ebp
  mov    %ebp,%edx
  mov    %r14d,%esi
  mov    %r15,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %r13,%rsi
  lea    D95(%rip),%rdi
  call   <scanf@plt>
  mov    0x8(%rsp),%eax
  lea    (%rax,%rbx,1),%esi
  add    0xc(%rsp),%esi
  mov    %r12,%rdx
  lea    D48(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    0x24(%rsp),%eax
  add    $0x4,%r13
  cmp    %eax,%ebp
  jl     L174
L191:
  mov    0x8(%rsp),%ecx
  lea    -0x1(%rax,%rcx,1),%eax
  mov    %eax,0x8(%rsp)
  mov    0x20(%rsp),%eax
  addq   $0x1,0x10(%rsp)
  mov    0x10(%rsp),%rcx
  add    $0x1,%r14d
  cmp    %ecx,%eax
  jle    L147
L146:
  mov    0x10(%rsp),%eax
  mov    %eax,0xc(%rsp)
  mov    0x24(%rsp),%eax
  test   %eax,%eax
  jg     L59
  jmp    L191
L147:
  test   %eax,%eax
  jle    L160
  mov    $0x0,%ebp
  mov    $0x0,%r14d
  lea    D64(%rip),%r13
  jmp    L108
L160:
  mov    $0x0,%ebp
  jmp    L23
L187:
  mov    (%r12),%esi
  cmp    $0x1,%esi
  adc    $0x0,%ebp
  mov    %r13,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  add    $0x4,%r12
  add    $0x1,%ebx
  cmp    %ebx,0x24(%rsp)
  jg     L187
L15:
  mov    $0xa,%edi
  call   <putchar@plt>
  add    $0x1,%r14d
  cmp    %r14d,0x20(%rsp)
  jle    L23
L108:
  mov    $0x0,%ebx
  cmpl   $0x0,0x24(%rsp)
  jg     L187
  jmp    L15
L148:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: tag: D72
type_infered: string
name: disassemble_data
arguments: tag: D138
type_infered: string
name: disassemble_data
arguments: tag: D99
type_infered: string
name: disassemble_data
arguments: tag: D131
type_infered: string
name: disassemble_data
arguments: tag: D54
type_infered: string
name: disassemble_data
arguments: tag: D77
type_infered: string
name: disassemble_data
arguments: tag: D95
type_infered: string
name: disassemble_data
arguments: tag: D31
type_infered: string
name: disassemble_data
arguments: tag: D13
type_infered: string
name: disassemble_data
arguments: tag: D150
type_infered: string
name: disassemble_data
arguments: tag: D82
type_infered: string
name: disassemble_data
arguments: tag: D48
type_infered: string
name: disassemble_data
arguments: tag: D64
type_infered: string

tool: D72: cls

tool: D138: %c==========================================%c


tool: D99: %c===========     BIENVENIDO     ===========%c


tool: D131: %c==========================================%c



tool: D54: pause

tool: D77: 
Cuantos renglones tiene su matriz?

tool: D95: %d

tool: D31: Inserte un valor entero positivo...

tool: D13: 
Cuantas columnas tiene su matriz?

tool: D150: Ingrese el valor de M[%d][%d]:  

tool: D82: 

	Se ingresaron %d ceros



tool: D48: %d-----%p


tool: D64:  %d 

assistant: ```c
int main() {
  int *M;
  int m = 0, n = 0;
  int i, j;
  int total = 0;
  int columnas = 0;
  system("cls");
  printf("%c==========================================%c\n", 201, 187);
  printf("%c===========     BIENVENIDO     ===========%c\n", 204, 185);
  printf("%c==========================================%c\n\n", 200, 188);
  system("pause");
  do {
    printf("\nCuantos renglones tiene su matriz?\n");
    scanf("%d", &m);
    if (m <= 0)
      printf("Inserte un valor entero positivo...\n");
  } while (m <= 0);
  do {
    printf("\nCuantas columnas tiene su matriz?\n");
    scanf("%d", &n);
    if (n <= 0)
      printf("Inserte un valor entero positivo...\n");
  } while (n <= 0);
  M = (int *)malloc((m * n) * sizeof(int));
  printf("\n");
  for (i = 0; i < m; i++) {
    for (j = 0; j < n; j++) {
      printf("Ingrese el valor de M[%d][%d]:  ", i + 1, j + 1);
      scanf("%d", M + i + j + columnas);
      printf("%d-----%p\n", i + j + columnas, M);
    }
    columnas = columnas + (n - 1);
  }
  columnas = 0;
  for (i = 0; i < m; i++) {
    for (j = 0; j < n; j++) {
      if (*M == 0)
        total = total + 1;
      printf(" %d ", *M);
      M++;
    }
    printf("\n");
  }
  printf("\n\n\tSe ingresaron %d ceros\n\n", total);
  system("pause");
  return 0;
}
```