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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  lea    -0x14000(%rsp),%r11
L83:
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  cmp    %r11,%rsp
  jne    L83
  sub    $0x210,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    -0x14204(%rbp),%rcx
  lea    -0x14208(%rbp),%rdx
  lea    -0x1420c(%rbp),%rax
  mov    %rax,%rsi
  lea    D4(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  jmp    L3
L22:
  movl   $0x0,-0x14200(%rbp)
  jmp    L38
L40:
  movl   $0x0,-0x141fc(%rbp)
  jmp    L75
L56:
  lea    -0x141f8(%rbp),%rax
  mov    %rax,%rsi
  lea    D38(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  movsd  -0x141f8(%rbp),%xmm0
  mov    -0x141fc(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x14200(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  add    %rax,%rax
  add    %rcx,%rax
  movsd  %xmm0,-0x141f0(%rbp,%rax,8)
  mov    -0x141fc(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x14200(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  add    %rax,%rax
  add    %rcx,%rax
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x13ed0(%rbp,%rax,8)
  addl   $0x1,-0x141fc(%rbp)
L75:
  mov    -0x1420c(%rbp),%eax
  cmp    %eax,-0x141fc(%rbp)
  jl     L56
  addl   $0x1,-0x14200(%rbp)
L38:
  mov    -0x14208(%rbp),%eax
  cmp    %eax,-0x14200(%rbp)
  jl     L40
  mov    -0x14204(%rbp),%ecx
  mov    -0x14208(%rbp),%edx
  mov    -0x1420c(%rbp),%esi
  lea    -0x13ed0(%rbp),%rax
  mov    %rax,%rdi
  call   <find_factors@plt>
  mov    -0x14204(%rbp),%r8d
  mov    -0x14208(%rbp),%edi
  mov    -0x1420c(%rbp),%ecx
  lea    -0x141f0(%rbp),%rdx
  lea    -0x13ed0(%rbp),%rsi
  lea    -0x13bb0(%rbp),%rax
  mov    %r8d,%r9d
  mov    %edi,%r8d
  mov    %rax,%rdi
  call   <build_solver@plt>
  mov    -0x1420c(%rbp),%edx
  mov    -0x14208(%rbp),%eax
  imul   %eax,%edx
  lea    -0x13bb0(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <makeLowerDiag@plt>
  mov    -0x1420c(%rbp),%edx
  mov    -0x14208(%rbp),%eax
  imul   %eax,%edx
  lea    -0x13bb0(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <finishSolvingmakeLowerDiag@plt>
  mov    -0x14208(%rbp),%edx
  mov    -0x1420c(%rbp),%ecx
  lea    -0x13bb0(%rbp),%rax
  mov    %ecx,%esi
  mov    %rax,%rdi
  call   <final_print@plt>
  lea    D10(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    -0x14204(%rbp),%rcx
  lea    -0x14208(%rbp),%rdx
  lea    -0x1420c(%rbp),%rax
  mov    %rax,%rsi
  lea    D4(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
L3:
  mov    -0x1420c(%rbp),%eax
  test   %eax,%eax
  jne    L22
  mov    -0x14208(%rbp),%eax
  test   %eax,%eax
  jne    L22
  mov    -0x14204(%rbp),%eax
  test   %eax,%eax
  jne    L22
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L41
  call   <__stack_chk_fail@plt>
L41:
  leave
  ret
```

tool_calls: name: parse_data
arguments: label: D4
datatype: string
name: parse_data
arguments: label: D38
datatype: string
name: parse_data
arguments: label: D10
datatype: string

tool: D4: %d %d %d

tool: D38: %lf

tool: D10: 


assistant: ```c
int main() {
  int cols, rows, distance;
  int i, j;
  double image[10][10];
  double factors[10][10];
  double solver[10 * 10][10 * 10 + 1];
  double temp;
  scanf("%d %d %d", &cols, &rows, &distance);
  while (!(cols == 0 && rows == 0 && distance == 0)) {
    for (i = 0; i < rows; i++) {
      for (j = 0; j < cols; j++) {
        scanf("%lf", &temp);
        image[i][j] = temp;
        factors[i][j] = 0.0;
      }
    }
    find_factors(factors, cols, rows, distance);
    build_solver(solver, factors, image, cols, rows, distance);
    makeLowerDiag(solver, cols * rows);
    finishSolvingmakeLowerDiag(solver, cols * rows);
    final_print(solver, cols, rows);
    printf("\n");
    scanf("%d %d %d", &cols, &rows, &distance);
  }
  return 0;
}
```