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

```asm
<fill_cost_path>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x68,%rsp
  mov    %rdi,-0x48(%rbp)
  mov    %rsi,-0x50(%rbp)
  mov    %rdx,-0x58(%rbp)
  mov    %ecx,-0x5c(%rbp)
  mov    %r8d,-0x60(%rbp)
  mov    %r9d,-0x64(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x18(%rbp)
  xor    %eax,%eax
  mov    -0x5c(%rbp),%eax
  sub    $0x1,%eax
  imul   -0x64(%rbp),%eax
  mov    %eax,%edx
  mov    -0x60(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0x5c(%rbp),%eax
  imul   -0x64(%rbp),%eax
  mov    %eax,%ecx
  mov    -0x60(%rbp),%eax
  sub    $0x1,%eax
  add    %ecx,%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x48(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  cmp    %eax,%edx
  jge    L17
  mov    -0x5c(%rbp),%eax
  sub    $0x1,%eax
  imul   -0x64(%rbp),%eax
  mov    %eax,%edx
  mov    -0x60(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%ecx
  mov    -0x5c(%rbp),%eax
  imul   -0x64(%rbp),%eax
  mov    %eax,%edx
  mov    -0x60(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0x5c(%rbp),%eax
  imul   -0x64(%rbp),%eax
  mov    %eax,%esi
  mov    -0x60(%rbp),%eax
  add    %esi,%eax
  cltq
  lea    0x0(,%rax,4),%rsi
  mov    -0x48(%rbp),%rax
  add    %rsi,%rax
  add    %ecx,%edx
  mov    %edx,(%rax)
  mov    -0x5c(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    -0x60(%rbp),%ecx
  lea    -0x40(%rbp),%rax
  mov    %ecx,%r8d
  mov    %edx,%ecx
  lea    D3(%rip),%rdx
  mov    $0x20,%esi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <snprintf@plt>
  mov    -0x5c(%rbp),%eax
  imul   -0x64(%rbp),%eax
  mov    %eax,%edx
  mov    -0x60(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x50(%rbp),%rax
  lea    (%rdx,%rax,1),%rbx
  lea    -0x40(%rbp),%rax
  mov    %rax,%rdi
  call   <strdup@plt>
  mov    %rax,(%rbx)
  jmp    L18
L17:
  mov    -0x5c(%rbp),%eax
  imul   -0x64(%rbp),%eax
  mov    %eax,%edx
  mov    -0x60(%rbp),%eax
  add    %edx,%eax
  cltq
  shl    $0x2,%rax
  lea    -0x4(%rax),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%ecx
  mov    -0x5c(%rbp),%eax
  imul   -0x64(%rbp),%eax
  mov    %eax,%edx
  mov    -0x60(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0x5c(%rbp),%eax
  imul   -0x64(%rbp),%eax
  mov    %eax,%esi
  mov    -0x60(%rbp),%eax
  add    %esi,%eax
  cltq
  lea    0x0(,%rax,4),%rsi
  mov    -0x48(%rbp),%rax
  add    %rsi,%rax
  add    %ecx,%edx
  mov    %edx,(%rax)
  mov    -0x60(%rbp),%eax
  lea    -0x1(%rax),%ecx
  mov    -0x5c(%rbp),%edx
  lea    -0x40(%rbp),%rax
  mov    %ecx,%r8d
  mov    %edx,%ecx
  lea    D3(%rip),%rdx
  mov    $0x20,%esi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <snprintf@plt>
  mov    -0x5c(%rbp),%eax
  imul   -0x64(%rbp),%eax
  mov    %eax,%edx
  mov    -0x60(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x50(%rbp),%rax
  lea    (%rdx,%rax,1),%rbx
  lea    -0x40(%rbp),%rax
  mov    %rax,%rdi
  call   <strdup@plt>
  mov    %rax,(%rbx)
  nop
L18:
  mov    -0x18(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L29
  call   <__stack_chk_fail@plt>
L29:
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: label: D3
type_infered: string

tool: D3: %d, %d

assistant: ```c
void fill_cost_path(int *cost_matrix, char **path_matrix, int *questionMatrix, int i, int j, int size) {
  char path[32];
  if (cost_matrix[(i - 1) * size + j] < cost_matrix[i * size + (j - 1)]) {
    cost_matrix[i * size + j] = cost_matrix[(i - 1) * size + j] + questionMatrix[i * size + j];
    snprintf(path, 32, "%d, %d", i - 1, j);
    path_matrix[i * size + j] = strdup(path);
  } else {
    cost_matrix[i * size + j] = cost_matrix[(i)*size + j - 1] + questionMatrix[i * size + j];
    snprintf(path, 32, "%d, %d", i, j - 1);
    path_matrix[i * size + j] = strdup(path);
  }
  return;
}
```