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

```asm
<find_path_aux>:
  endbr64
  push   %r15
  lea    -0x1(%rdx),%rax
  push   %r14
  push   %r13
  mov    %rsi,%r13
  push   %r12
  mov    %rdi,%r12
  push   %rbp
  mov    %rcx,%rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %rdx,0x20(%rsp)
  lea    0x1(%rdi),%rdx
  mov    0x70(%rsp),%r15
  mov    %rdx,%rbx
  mov    %r8,0x28(%rsp)
  imul   %rcx,%rbx
  mov    %r9,(%rsp)
  mov    %rdx,0x18(%rsp)
  lea    (%r8,%rbx,1),%rcx
  sub    %rbp,%rbx
  mov    %rcx,0x8(%rsp)
  add    %r8,%rbx
  cmp    %rdi,%rax
  je     L83
  lea    D15(%rip),%r14
  jbe    L122
  mov    %r15,0x70(%rsp)
  mov    %rsi,%r12
  mov    0x70(%rsp),%r13
  mov    %rdi,%r15
  mov    %rbx,0x10(%rsp)
  mov    (%rsp),%rbx
  jmp    L112
  nopw   0x0(%rax,%rax,1)
L40:
  lea    -0x1(%rbp),%rax
  cmp    %rax,%r12
  jae    L79
  mov    0x10(%rsp),%rax
  add    $0x1,%r12
  cmpb   $0x0,(%rax,%r12,1)
  jne    L79
  lea    (%rbx,%r13,1),%rdi
  mov    %r12,%rcx
  mov    %r15,%rdx
  mov    %r14,%rsi
  call   <sprintf@plt>
  cltq
  add    %rax,%r13
L112:
  mov    0x8(%rsp),%rax
  cmpb   $0x0,(%rax,%r12,1)
  jne    L40
  mov    0x18(%rsp),%rdx
  lea    (%rbx,%r13,1),%rdi
  mov    %r12,%rcx
  mov    %r14,%rsi
  call   <sprintf@plt>
  sub    $0x8,%rsp
  mov    %rbp,%rcx
  mov    %rbx,%r9
  cltq
  mov    %r12,%rsi
  add    %r13,%rax
  push   %rax
  mov    0x38(%rsp),%r8
  mov    0x30(%rsp),%rdx
  mov    0x28(%rsp),%rdi
  call   <find_path_aux>
  pop    %rdx
  pop    %rcx
  test   %eax,%eax
  je     L40
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L122:
  sub    $0x1,%rbp
  jmp    L113
  cs nopw 0x0(%rax,%rax,1)
L13:
  add    $0x1,%r13
  cmpb   $0x0,(%rbx,%r13,1)
  jne    L79
  mov    (%rsp),%rax
  mov    %r13,%rcx
  mov    %r12,%rdx
  mov    %r14,%rsi
  lea    (%rax,%r15,1),%rdi
  call   <sprintf@plt>
  cltq
  add    %rax,%r15
L113:
  cmp    %rbp,%r13
  jb     L13
L79:
  add    $0x38,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L83:
  sub    $0x1,%rbp
  lea    D15(%rip),%r14
  jmp    L78
  nopl   (%rax)
L92:
  jae    L79
  add    $0x1,%r13
  cmpb   $0x0,(%rbx,%r13,1)
  jne    L79
  mov    (%rsp),%rax
  mov    %r13,%rcx
  mov    %r12,%rdx
  mov    %r14,%rsi
  lea    (%rax,%r15,1),%rdi
  call   <sprintf@plt>
  cltq
  add    %rax,%r15
L78:
  cmp    %rbp,%r13
  jne    L92
  mov    (%rsp),%rax
  movb   $0x0,(%rax,%r15,1)
  add    $0x38,%rsp
  mov    $0x1,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: unpack_data
arguments: data_label: D15
type_infered: string

tool: D15:  -> (%zu, %zu)

assistant: ```c
int find_path_aux(size_t curr_x, size_t curr_y, size_t x, size_t y, unsigned char bad_pos[x][y], char *path, size_t path_i) {
  if (curr_x == x - 1 && curr_y == y - 1) {
    path[path_i] = '\0';
    return 1;
  }
  int found_path = 0;
  if (curr_x < x - 1 && !bad_pos[curr_x + 1][curr_y]) {
    int written = sprintf(path + path_i, " -> (%zu, %zu)", curr_x + 1, curr_y);
    found_path = find_path_aux(curr_x + 1, curr_y, x, y, bad_pos, path, path_i + written);
  }
  if (!found_path && curr_y < y - 1 && !bad_pos[curr_x][curr_y + 1]) {
    int written = sprintf(path + path_i, " -> (%zu, %zu)", curr_x, curr_y + 1);
    found_path = find_path_aux(curr_x, curr_y + 1, x, y, bad_pos, path, path_i + written);
  }
  return found_path;
}
```