user: Translate the below assembly code into C programming language:

```asm
<maze_to_fig_solution>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  mov    %rdi,%r13
  mov    %rsi,%r14
  mov    %edx,%ebx
  mov    %ecx,%ebp
  mov    %r8d,%r12d
  mov    %ecx,%edx
  mov    %ebx,%esi
  mov    %r14,%rdi
  call   <maze_get_cell@plt>
  test   $0x4000000,%eax
  jne    L98
L46:
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L98:
  lea    -0x1(%rbx),%r15d
  mov    %ebp,%r8d
  mov    %r15d,%ecx
  mov    %ebp,%edx
  mov    %ebx,%esi
  mov    %r14,%rdi
  call   <maze_cells_connected@plt>
  test   %rax,%rax
  jne    L108
L4:
  lea    0x1(%rbx),%r15d
  mov    %ebp,%r8d
  mov    %r15d,%ecx
  mov    %ebp,%edx
  mov    %ebx,%esi
  mov    %r14,%rdi
  call   <maze_cells_connected@plt>
  test   %rax,%rax
  jne    L39
L18:
  lea    -0x1(%rbp),%r15d
  mov    %r15d,%r8d
  mov    %ebx,%ecx
  mov    %ebp,%edx
  mov    %ebx,%esi
  mov    %r14,%rdi
  call   <maze_cells_connected@plt>
  test   %rax,%rax
  jne    L73
L124:
  lea    0x1(%rbp),%r15d
  mov    %r15d,%r8d
  mov    %ebx,%ecx
  mov    %ebp,%edx
  mov    %ebx,%esi
  mov    %r14,%rdi
  call   <maze_cells_connected@plt>
  test   %rax,%rax
  je     L46
  mov    %r15d,%edx
  mov    %ebx,%esi
  mov    %r14,%rdi
  call   <maze_get_cell@plt>
  test   $0x4000000,%eax
  je     L46
  mov    %r12d,%esi
  shr    $0x1f,%esi
  add    %r12d,%esi
  sar    %esi
  imul   %r12d,%ebx
  lea    (%rbx,%rsi,1),%edx
  imul   %r12d,%ebp
  lea    0x0(%rbp,%r12,1),%ecx
  add    %ebp,%esi
  sub    $0x8,%rsp
  push   $0x33
  mov    $0xe,%r9d
  mov    %edx,%r8d
  mov    %r13,%rdi
  call   <maze_to_fig_line@plt>
  add    $0x10,%rsp
  jmp    L46
L108:
  mov    %ebp,%edx
  mov    %r15d,%esi
  mov    %r14,%rdi
  call   <maze_get_cell@plt>
  test   $0x4000000,%eax
  je     L4
  mov    %ebx,%edx
  imul   %r12d,%edx
  mov    %r12d,%eax
  shr    $0x1f,%eax
  add    %r12d,%eax
  sar    %eax
  mov    %ebp,%esi
  imul   %r12d,%esi
  add    %eax,%esi
  sub    $0x8,%rsp
  push   $0x33
  mov    $0xe,%r9d
  lea    (%rdx,%rax,1),%r8d
  mov    %esi,%ecx
  mov    %r13,%rdi
  call   <maze_to_fig_line@plt>
  add    $0x10,%rsp
  jmp    L4
L39:
  mov    %ebp,%edx
  mov    %r15d,%esi
  mov    %r14,%rdi
  call   <maze_get_cell@plt>
  test   $0x4000000,%eax
  je     L18
  mov    %ebx,%eax
  imul   %r12d,%eax
  mov    %r12d,%edx
  shr    $0x1f,%edx
  add    %r12d,%edx
  sar    %edx
  mov    %ebp,%esi
  imul   %r12d,%esi
  add    %edx,%esi
  add    %eax,%edx
  sub    $0x8,%rsp
  push   $0x33
  mov    $0xe,%r9d
  lea    (%rax,%r12,1),%r8d
  mov    %esi,%ecx
  mov    %r13,%rdi
  call   <maze_to_fig_line@plt>
  add    $0x10,%rsp
  jmp    L18
L73:
  mov    %r15d,%edx
  mov    %ebx,%esi
  mov    %r14,%rdi
  call   <maze_get_cell@plt>
  test   $0x4000000,%eax
  je     L124
  mov    %r12d,%ecx
  shr    $0x1f,%ecx
  add    %r12d,%ecx
  sar    %ecx
  mov    %ebx,%edx
  imul   %r12d,%edx
  add    %ecx,%edx
  mov    %ebp,%esi
  imul   %r12d,%esi
  add    %esi,%ecx
  sub    $0x8,%rsp
  push   $0x33
  mov    $0xe,%r9d
  mov    %edx,%r8d
  mov    %r13,%rdi
  call   <maze_to_fig_line@plt>
  add    $0x10,%rsp
  jmp    L124
```

assistant: ```c
void maze_to_fig_solution(FILE *fp, struct maze *mp, int row, int col, int upc) {
  if ((maze_get_cell(mp, row, col) & 0x04000000) == 0)
    return;
  if (maze_cells_connected(mp, row, col, row - 1, col) && (maze_get_cell(mp, row - 1, col) & 0x04000000))
    maze_to_fig_line(fp, col * upc + upc / 2, row * upc, col * upc + upc / 2, row * upc + upc / 2, 14, 51);
  if (maze_cells_connected(mp, row, col, row + 1, col) && (maze_get_cell(mp, row + 1, col) & 0x04000000))
    maze_to_fig_line(fp, col * upc + upc / 2, row * upc + upc / 2, col * upc + upc / 2, row * upc + upc, 14, 51);
  if (maze_cells_connected(mp, row, col, row, col - 1) && (maze_get_cell(mp, row, col - 1) & 0x04000000))
    maze_to_fig_line(fp, col * upc, row * upc + upc / 2, col * upc + upc / 2, row * upc + upc / 2, 14, 51);
  if (maze_cells_connected(mp, row, col, row, col + 1) && (maze_get_cell(mp, row, col + 1) & 0x04000000))
    maze_to_fig_line(fp, col * upc + upc / 2, row * upc + upc / 2, col * upc + upc, row * upc + upc / 2, 14, 51);
}
```