user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x48,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  lea    D78(%rip),%rdi
  call   <printf@plt>
  lea    -0x3c(%rbp),%rsi
  lea    D29(%rip),%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    -0x3c(%rbp),%esi
  lea    0x1(%rsi),%ecx
  movslq %ecx,%rax
  lea    0x0(,%rax,4),%rdx
  mov    %rdx,-0x48(%rbp)
  sub    $0x4,%rdx
  imul   %rdx,%rax
  add    $0xf,%rax
  mov    %rax,%rdi
  and    $0xfffffffffffffff0,%rdi
  and    $0xfffffffffffff000,%rax
  mov    %rsp,%r8
  sub    %rax,%r8
L347:
  cmp    %r8,%rsp
  je     L256
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L347
L256:
  mov    %rdi,%rax
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  je     L349
  orq    $0x0,-0x8(%rsp,%rax,1)
L349:
  mov    %rsp,%r15
  lea    0xf(%rdx),%rax
  mov    %rax,%rdx
  and    $0xfffffffffffffff0,%rdx
  and    $0xfffffffffffff000,%rax
  mov    %rsp,%rdi
  sub    %rax,%rdi
L324:
  cmp    %rdi,%rsp
  je     L186
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L324
L186:
  mov    %rdx,%rax
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  je     L107
  orq    $0x0,-0x8(%rsp,%rax,1)
L107:
  mov    %rsp,-0x70(%rbp)
  mov    %ecx,%edx
  lea    D73(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x3c(%rbp),%edx
  test   %edx,%edx
  jle    L211
  mov    -0x48(%rbp),%rax
  shr    $0x2,%rax
  mov    %rax,-0x58(%rbp)
  mov    $0x0,%eax
  mov    $0x0,%r14d
  lea    D54(%rip),%r13
  mov    %r15,-0x50(%rbp)
  mov    %rax,%r15
  jmp    L45
L391:
  mov    %r12,%rsi
  mov    %r13,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  add    $0x1,%ebx
  add    $0x4,%r12
  cmp    %ebx,-0x3c(%rbp)
  jge    L391
L369:
  add    $0x1,%r14d
  mov    -0x3c(%rbp),%edi
  add    -0x58(%rbp),%r15
  cmp    %r14d,%edi
  jle    L392
L45:
  mov    -0x50(%rbp),%rax
  lea    (%rax,%r15,4),%r12
  mov    $0x0,%ebx
  cmpl   $0x0,-0x3c(%rbp)
  jns    L391
  jmp    L369
L392:
  mov    -0x50(%rbp),%r15
  test   %edi,%edi
  jle    L302
  movq   $0x0,-0x60(%rbp)
  movq   $0x0,-0x50(%rbp)
  mov    -0x58(%rbp),%rax
  add    $0x1,%rax
  mov    %rax,-0x68(%rbp)
  lea    D19(%rip),%r13
  jmp    L156
L288:
  test   %edi,%edi
  js     L239
  movslq %ecx,%rcx
  mov    -0x48(%rbp),%rax
  imul   %rcx,%rax
  add    %r15,%rax
  mov    -0x58(%rbp),%rbx
  mov    %rbx,%rdx
  imul   %rcx,%rdx
  mov    %edi,%esi
  add    %rsi,%rdx
  lea    0x4(%r15,%rdx,4),%rsi
  mov    -0x50(%rbp),%rdx
  sub    %rcx,%rdx
  imul   %rbx,%rdx
L301:
  movss  (%rax),%xmm0
  movss  (%rax,%rdx,4),%xmm1
  movss  %xmm1,(%rax)
  movss  %xmm0,(%rax,%rdx,4)
  add    $0x4,%rax
  cmp    %rsi,%rax
  jne    L301
  jmp    L239
L204:
  add    $0x1,%esi
  sub    %r11,%rcx
  add    -0x48(%rbp),%rdx
  cmp    %edi,%esi
  je     L52
L87:
  cmp    %ebx,%esi
  je     L204
  movslq %esi,%rax
  imul   %r11,%rax
  add    %r9,%rax
  movss  (%r15,%rax,4),%xmm2
  divss  (%r15,%r10,4),%xmm2
  cmp    %ebx,%edi
  jl     L204
  lea    (%r8,%rdx,1),%rax
L109:
  movaps %xmm2,%xmm1
  mulss  (%rax,%rcx,4),%xmm1
  movss  (%rax),%xmm0
  subss  %xmm1,%xmm0
  movss  %xmm0,(%rax)
  add    $0x4,%rax
  cmp    %rdx,%rax
  jne    L109
  jmp    L204
L52:
  lea    D47(%rip),%rdi
  call   <puts@plt>
  cmpl   $0x0,-0x3c(%rbp)
  jle    L311
  mov    %r15,%r12
  mov    $0x0,%r14d
  jmp    L265
L145:
  pxor   %xmm0,%xmm0
  cvtss2sd (%r12,%rbx,4),%xmm0
  mov    %r13,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  add    $0x1,%rbx
  cmp    %ebx,-0x3c(%rbp)
  jge    L145
L92:
  mov    $0xa,%edi
  call   <putchar@plt>
  add    $0x1,%r14d
  add    -0x48(%rbp),%r12
  cmp    %r14d,-0x3c(%rbp)
  jle    L311
L265:
  mov    $0x0,%ebx
  cmpl   $0x0,-0x3c(%rbp)
  jns    L145
  jmp    L92
L311:
  mov    -0x3c(%rbp),%edi
  addq   $0x1,-0x50(%rbp)
  mov    -0x50(%rbp),%rax
  mov    -0x58(%rbp),%rcx
  add    %rcx,-0x60(%rbp)
  cmp    %eax,%edi
  jle    L302
L156:
  mov    -0x50(%rbp),%rsi
  mov    %esi,%r10d
  mov    %esi,%r9d
  movslq %esi,%rax
  imul   -0x68(%rbp),%rax
  movss  (%r15,%rax,4),%xmm0
  lea    0x1(%rsi),%edx
  cmp    %edx,%edi
  jle    L239
  mov    $0x0,%ecx
  movslq %esi,%rsi
  mov    -0x58(%rbp),%r8
L148:
  movslq %edx,%rax
  imul   %r8,%rax
  add    %rsi,%rax
  movss  (%r15,%rax,4),%xmm1
  comiss %xmm0,%xmm1
  maxss  %xmm0,%xmm1
  movaps %xmm1,%xmm0
  cmova  %edx,%ecx
  add    $0x1,%edx
  cmp    %edi,%edx
  jne    L148
  test   %ecx,%ecx
  jne    L288
L239:
  test   %edi,%edi
  jle    L52
  mov    %edi,%r8d
  sub    %r10d,%r8d
  mov    -0x50(%rbp),%rbx
  lea    (%r8,%rbx,1),%rax
  lea    0x4(%r15,%rax,4),%rdx
  mov    -0x60(%rbp),%rcx
  mov    $0x0,%esi
  movslq %r9d,%r9
  mov    -0x68(%rbp),%r10
  imul   %r9,%r10
  not    %r8
  shl    $0x2,%r8
  mov    -0x58(%rbp),%r11
  jmp    L87
L302:
  mov    -0x48(%rbp),%rsi
  shr    $0x2,%rsi
  lea    -0x1(%rdi),%eax
  cltq
  movslq %edi,%rdx
  mov    %rax,%rcx
  imul   %rsi,%rcx
  add    %rcx,%rdx
  lea    0x1(%rsi),%rcx
  imul   %rax,%rcx
  movss  (%r15,%rdx,4),%xmm0
  divss  (%r15,%rcx,4),%xmm0
  mov    -0x70(%rbp),%r9
  movss  %xmm0,(%r9,%rax,4)
  mov    %edi,%eax
  sub    $0x2,%eax
  js     L231
  cltq
  movslq %edi,%rdi
  lea    0x1(%rsi),%r8
L300:
  movslq %eax,%rdx
  mov    %rdx,%rcx
  imul   %rsi,%rcx
  add    %rdi,%rcx
  imul   %r8,%rdx
  movss  (%r15,%rcx,4),%xmm0
  divss  (%r15,%rdx,4),%xmm0
  movss  %xmm0,(%r9,%rax,4)
  sub    $0x1,%rax
  test   %eax,%eax
  jns    L300
L231:
  lea    D9(%rip),%rdi
  call   <puts@plt>
  cmpl   $0x0,-0x3c(%rbp)
  jle    L125
  mov    $0x0,%ebx
  lea    D59(%rip),%r12
  mov    -0x70(%rbp),%r13
L273:
  pxor   %xmm0,%xmm0
  cvtss2sd 0x0(%r13,%rbx,4),%xmm0
  mov    %ebx,%esi
  mov    %r12,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  add    $0x1,%rbx
  cmp    %ebx,-0x3c(%rbp)
  jg     L273
L125:
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L384
  mov    $0x0,%eax
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L211:
  mov    -0x48(%rbp),%rax
  shr    $0x2,%rax
  lea    -0x1(%rdx),%ecx
  movslq %ecx,%rcx
  movslq %edx,%rdx
  mov    %rcx,%rsi
  imul   %rax,%rsi
  add    %rsi,%rdx
  add    $0x1,%rax
  imul   %rcx,%rax
  movss  (%r15,%rdx,4),%xmm0
  divss  (%r15,%rax,4),%xmm0
  mov    -0x70(%rbp),%rax
  movss  %xmm0,(%rax,%rcx,4)
  jmp    L231
L384:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: tag: D78
datatype: string
name: retrieve_data
arguments: tag: D29
datatype: string
name: retrieve_data
arguments: tag: D73
datatype: string
name: retrieve_data
arguments: tag: D54
datatype: string
name: retrieve_data
arguments: tag: D19
datatype: string
name: retrieve_data
arguments: tag: D47
datatype: string
name: retrieve_data
arguments: tag: D9
datatype: string
name: retrieve_data
arguments: tag: D59
datatype: string

tool: D78: Enter the number of equations:	

tool: D29: %d

tool: D73: Enter the %d x %d matrix:


tool: D54: %f

tool: D19: %.4f	

tool: D47: 
Modified Matrix

tool: D9: 
Solution of the Given System:

tool: D59: x_%d = %.6f


assistant: ```c
int main(void) {
  int n, i, j, k, l, flag;
  printf("Enter the number of equations:\t");
  scanf("%d", &n);
  float a[n][n + 1], factor, x[n], max, var;
  printf("Enter the %d x %d matrix:\n", n, n + 1);
  for (i = 0; i < n; i++) {
    for (j = 0; j < n + 1; j++)
      scanf("%f", &a[i][j]);
  }
  for (k = 0; k < n; k++) {
    max = a[k][k];
    flag = 0;
    for (l = k + 1; l < n; l++) {
      if (a[l][k] > max) {
        max = a[l][k];
        flag = l;
      }
    }
    if (flag) {
      for (j = 0; j < n + 1; j++) {
        var = a[flag][j];
        a[flag][j] = a[k][j];
        a[k][j] = var;
      }
    }
    for (i = 0; i < n; i++) {
      if (i == k)
        continue;
      factor = a[i][k] / a[k][k];
      for (j = k; j <= n; j++) {
        a[i][j] = (a[i][j] - (factor * a[k][j]));
      }
    }
    printf("\nModified Matrix\n");
    for (i = 0; i < n; i++) {
      for (j = 0; j < n + 1; j++) {
        printf("%.4f\t", a[i][j]);
      }
      printf("\n");
    }
  }
  x[n - 1] = a[n - 1][n] / a[n - 1][n - 1];
  for (i = n - 2; i >= 0; i--) {
    x[i] = a[i][n] / a[i][i];
  }
  printf("\nSolution of the Given System:\n");
  for (i = 0; i < n; i++) {
    printf("x_%d = %.6f\n", i, x[i]);
  }
  return 0;
}
```