user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<main>:
  endbr64
  push   %rbp
  lea    D48(%rip),%rdi
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  lea    D46(%rip),%r12
  push   %rbx
  sub    $0x58,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  call   <puts@plt>
  lea    -0x48(%rbp),%rsi
  mov    %r12,%rdi
  call   <scanf@plt>
  lea    D8(%rip),%rdi
  call   <puts@plt>
  lea    -0x44(%rbp),%rsi
  mov    %r12,%rdi
  call   <scanf@plt>
  movslq -0x44(%rbp),%rdx
  mov    %rsp,%rcx
  lea    0x0(,%rdx,4),%rax
  mov    %rax,-0x60(%rbp)
  movslq -0x48(%rbp),%rax
  imul   %rdx,%rax
  lea    0xf(,%rax,4),%rax
  mov    %rax,%rdx
  and    $0xfffffffffffff000,%rax
  sub    %rax,%rcx
  and    $0xfffffffffffffff0,%rdx
  cmp    %rcx,%rsp
  je     L271
L291:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rcx,%rsp
  jne    L291
L271:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  jne    L218
L352:
  lea    D78(%rip),%rdi
  mov    %rsp,-0x58(%rbp)
  call   <puts@plt>
  cmpl   $0x0,-0x48(%rbp)
  jle    L52
  mov    -0x60(%rbp),%rax
  xor    %r14d,%r14d
  xor    %r13d,%r13d
  shr    $0x2,%rax
  mov    %rax,-0x68(%rbp)
  nopw   0x0(%rax,%rax,1)
L252:
  mov    -0x58(%rbp),%rax
  mov    -0x44(%rbp),%r8d
  xor    %r15d,%r15d
  lea    (%rax,%r14,4),%rbx
  test   %r8d,%r8d
  jle    L144
  nopl   0x0(%rax)
L46:
  mov    %rbx,%rsi
  mov    %r12,%rdi
  add    $0x1,%r15d
  add    $0x4,%rbx
  call   <scanf@plt>
  cmp    %r15d,-0x44(%rbp)
  jg     L46
L144:
  add    $0x1,%r13d
  add    -0x68(%rbp),%r14
  cmp    %r13d,-0x48(%rbp)
  jg     L252
L52:
  lea    D107(%rip),%rdi
  call   <puts@plt>
  mov    -0x48(%rbp),%edi
  test   %edi,%edi
  jle    L226
  mov    -0x58(%rbp),%r13
  xor    %r15d,%r15d
  lea    D89(%rip),%r14
  nopl   0x0(%rax,%rax,1)
L286:
  mov    -0x44(%rbp),%esi
  xor    %ebx,%ebx
  test   %esi,%esi
  jle    L30
  nopl   0x0(%rax)
L257:
  mov    0x0(%r13,%rbx,4),%esi
  mov    %r14,%rdi
  xor    %eax,%eax
  add    $0x1,%rbx
  call   <printf@plt>
  cmp    %ebx,-0x44(%rbp)
  jg     L257
L30:
  mov    $0xa,%edi
  add    $0x1,%r15d
  call   <putchar@plt>
  add    -0x60(%rbp),%r13
  cmp    %r15d,-0x48(%rbp)
  jg     L286
L226:
  lea    D77(%rip),%rdi
  call   <puts@plt>
  lea    -0x40(%rbp),%rsi
  mov    %r12,%rdi
  call   <scanf@plt>
  lea    D82(%rip),%rdi
  call   <puts@plt>
  lea    -0x3c(%rbp),%rsi
  mov    %r12,%rdi
  call   <scanf@plt>
  movslq -0x40(%rbp),%rax
  movslq -0x3c(%rbp),%rdx
  mov    %rsp,%rdi
  mov    %rax,%rcx
  imul   %rdx,%rax
  lea    0xf(,%rax,4),%rax
  mov    %rax,%rsi
  and    $0xfffffffffffff000,%rax
  sub    %rax,%rdi
  and    $0xfffffffffffffff0,%rsi
  cmp    %rdi,%rsp
  je     L63
L317:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rdi,%rsp
  jne    L317
L63:
  and    $0xfff,%esi
  sub    %rsi,%rsp
  test   %rsi,%rsi
  jne    L300
L128:
  movslq -0x48(%rbp),%rax
  mov    %rsp,%rdi
  mov    %rsp,%r14
  imul   %rdx,%rax
  lea    0xf(,%rax,4),%rsi
  mov    %rsi,%rax
  and    $0xfffffffffffff000,%rsi
  and    $0xfffffffffffffff0,%rax
  sub    %rsi,%rdi
L230:
  cmp    %rdi,%rsp
  je     L58
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L230
L300:
  orq    $0x0,-0x8(%rsp,%rsi,1)
  jmp    L128
L218:
  orq    $0x0,-0x8(%rsp,%rdx,1)
  jmp    L352
L58:
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  jne    L124
L155:
  mov    %rsp,-0x80(%rbp)
  cmp    %ecx,-0x44(%rbp)
  je     L362
  lea    D41(%rip),%rdi
  call   <puts@plt>
L165:
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L350
  lea    -0x28(%rbp),%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L362:
  lea    0x0(,%rdx,4),%rax
  lea    D111(%rip),%rdi
  mov    %rax,-0x68(%rbp)
  mov    %rax,%rbx
  call   <puts@plt>
  cmpl   $0x0,-0x40(%rbp)
  jle    L302
  mov    %rbx,%rax
  mov    %r14,-0x70(%rbp)
  xor    %r15d,%r15d
  xor    %r13d,%r13d
  shr    $0x2,%rax
  mov    %rax,-0x78(%rbp)
  nopl   0x0(%rax,%rax,1)
L119:
  mov    -0x70(%rbp),%rax
  mov    -0x3c(%rbp),%ecx
  xor    %ebx,%ebx
  lea    (%rax,%r15,4),%r14
  test   %ecx,%ecx
  jle    L129
  nopl   0x0(%rax)
L166:
  mov    %r14,%rsi
  mov    %r12,%rdi
  add    $0x1,%ebx
  add    $0x4,%r14
  call   <scanf@plt>
  cmp    %ebx,-0x3c(%rbp)
  jg     L166
L129:
  add    $0x1,%r13d
  add    -0x78(%rbp),%r15
  cmp    %r13d,-0x40(%rbp)
  jg     L119
  mov    -0x70(%rbp),%r14
L302:
  lea    D138(%rip),%rdi
  call   <puts@plt>
  mov    -0x40(%rbp),%r10d
  test   %r10d,%r10d
  jle    L253
  mov    %r14,-0x70(%rbp)
  mov    -0x68(%rbp),%r15
  mov    %r14,%r12
  xor    %ebx,%ebx
  lea    D89(%rip),%r13
  nopw   0x0(%rax,%rax,1)
L182:
  mov    -0x3c(%rbp),%edx
  xor    %r14d,%r14d
  test   %edx,%edx
  jle    L180
  nopw   0x0(%rax,%rax,1)
L309:
  mov    (%r12,%r14,4),%esi
  mov    %r13,%rdi
  xor    %eax,%eax
  add    $0x1,%r14
  call   <printf@plt>
  cmp    %r14d,-0x3c(%rbp)
  jg     L309
L180:
  mov    $0xa,%edi
  add    $0x1,%ebx
  add    %r15,%r12
  call   <putchar@plt>
  mov    -0x40(%rbp),%r10d
  cmp    %ebx,%r10d
  jg     L182
  mov    -0x70(%rbp),%r14
L253:
  mov    -0x48(%rbp),%eax
  mov    %eax,-0x70(%rbp)
  test   %eax,%eax
  jle    L342
  movslq -0x3c(%rbp),%r13
  mov    -0x68(%rbp),%r9
  xor    %r8d,%r8d
  movslq %r10d,%rdi
  mov    -0x80(%rbp),%r12
  mov    -0x58(%rbp),%rbx
  mov    %r13,%r15
  shr    $0x2,%r9
  nopl   0x0(%rax)
L45:
  test   %r15d,%r15d
  jle    L14
  xor    %r11d,%r11d
L95:
  movslq %r11d,%rsi
  xor    %edx,%edx
  xor    %ecx,%ecx
  test   %r10d,%r10d
  jle    L378
  mov    %r8d,-0x58(%rbp)
L189:
  movslq %edx,%rax
  mov    (%rbx,%rdx,4),%r8d
  add    $0x1,%rdx
  imul   %r9,%rax
  add    %rsi,%rax
  imul   (%r14,%rax,4),%r8d
  add    %r8d,%ecx
  cmp    %rdx,%rdi
  jne    L189
  mov    -0x58(%rbp),%r8d
L378:
  mov    %ecx,(%r12,%r11,4)
  add    $0x1,%r11
  cmp    %r13,%r11
  jne    L95
L14:
  add    $0x1,%r8d
  add    -0x68(%rbp),%r12
  add    -0x60(%rbp),%rbx
  cmp    -0x70(%rbp),%r8d
  jne    L45
L342:
  lea    D32(%rip),%rdi
  call   <puts@plt>
  cmpl   $0x0,-0x48(%rbp)
  jle    L165
  mov    -0x80(%rbp),%r12
  mov    -0x68(%rbp),%r15
  xor    %r14d,%r14d
  lea    D27(%rip),%r13
  nopw   0x0(%rax,%rax,1)
L62:
  mov    -0x3c(%rbp),%eax
  xor    %ebx,%ebx
  test   %eax,%eax
  jle    L117
  nopl   0x0(%rax)
L163:
  mov    (%r12,%rbx,4),%esi
  mov    %r13,%rdi
  xor    %eax,%eax
  add    $0x1,%rbx
  call   <printf@plt>
  cmp    %ebx,-0x3c(%rbp)
  jg     L163
L117:
  mov    $0xa,%edi
  add    $0x1,%r14d
  add    %r15,%r12
  call   <putchar@plt>
  cmp    %r14d,-0x48(%rbp)
  jg     L62
  jmp    L165
L124:
  orq    $0x0,-0x8(%rsp,%rax,1)
  jmp    L155
L350:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: label: D48
type: string
name: extract_symbolic_data
arguments: label: D46
type: string
name: extract_symbolic_data
arguments: label: D8
type: string
name: extract_symbolic_data
arguments: label: D78
type: string
name: extract_symbolic_data
arguments: label: D107
type: string
name: extract_symbolic_data
arguments: label: D89
type: string
name: extract_symbolic_data
arguments: label: D77
type: string
name: extract_symbolic_data
arguments: label: D82
type: string
name: extract_symbolic_data
arguments: label: D41
type: string
name: extract_symbolic_data
arguments: label: D111
type: string
name: extract_symbolic_data
arguments: label: D138
type: string
name: extract_symbolic_data
arguments: label: D32
type: string
name: extract_symbolic_data
arguments: label: D27
type: string

tool: D48: Wprowadz liczbe wierszy pierwszej macierzy!

tool: D46: %d

tool: D8: Wprowadz liczbe kolumn pierwszej macierzy!

tool: D78: Wprowadz elementy macierzy 1

tool: D107: 
Twoja macierz 1 to:

tool: D89: %d 

tool: D77: Wprowadz liczbe wierszy drugiej macierzy!

tool: D82: Wprowadz liczbe kolumn drugiej macierzy!

tool: D41: Macierze nie moga byc pomnozone! Kolumny macierzy 1 nie sa rowne liczbie wierszy macierzy 2!

tool: D111: Wprowadz ilosc elementow macierzy 2

tool: D138: 
Twoja macierz 2 to :

tool: D32: Wynik mnozenia macierzy: 

tool: D27: %d	

assistant: ```c
int main() {
  int m, n, p, q, y, x, k, sum = 0;
  printf("Wprowadz liczbe wierszy pierwszej macierzy!\n");
  scanf("%d", &m);
  printf("Wprowadz liczbe kolumn pierwszej macierzy!\n");
  scanf("%d", &n);
  int pierwsza[m][n];
  printf("Wprowadz elementy macierzy 1\n");
  for (y = 0; y < m; y++)
    for (x = 0; x < n; x++)
      scanf("%d", &pierwsza[y][x]);
  printf("\nTwoja macierz 1 to:\n");
  for (y = 0; y < m; y++) {
    for (x = 0; x < n; x++) {
      printf("%d ", pierwsza[y][x]);
    }
    printf("\n");
  }
  printf("Wprowadz liczbe wierszy drugiej macierzy!\n");
  scanf("%d", &p);
  printf("Wprowadz liczbe kolumn drugiej macierzy!\n");
  scanf("%d", &q);
  int druga[p][q];
  int mnozenie[m][q];
  if (n != p)
    printf("Macierze nie moga byc pomnozone! Kolumny macierzy 1 nie sa rowne liczbie wierszy macierzy 2!\n");
  else {
    printf("Wprowadz ilosc elementow macierzy 2\n");
    for (y = 0; y < p; y++)
      for (x = 0; x < q; x++)
        scanf("%d", &druga[y][x]);
    printf("\nTwoja macierz 2 to :\n");
    for (y = 0; y < p; y++) {
      for (x = 0; x < q; x++) {
        printf("%d ", druga[y][x]);
      }
      printf("\n");
    }
    for (y = 0; y < m; y++) {
      for (x = 0; x < q; x++) {
        for (k = 0; k < p; k++) {
          sum = sum + pierwsza[y][k] * druga[k][x];
        }
        mnozenie[y][x] = sum;
        sum = 0;
      }
    }
    printf("Wynik mnozenia macierzy: \n");
    for (y = 0; y < m; y++) {
      for (x = 0; x < q; x++)
        printf("%d\t", mnozenie[y][x]);
      printf("\n");
    }
  }
  return 0;
}
```