ylfeng/ReF-Decompile-dataset huggingface dataset:
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<get_path_len>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %esi,-0x2c(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x18(%rbp)
  mov    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <fdt_ro_probe_@plt>
  mov    %eax,-0x14(%rbp)
  cmpl   $0x0,-0x14(%rbp)
  je     L80
  mov    -0x14(%rbp),%eax
  jmp    L67
L80:
  lea    -0x1c(%rbp),%rdx
  mov    -0x2c(%rbp),%ecx
  mov    -0x28(%rbp),%rax
  mov    %ecx,%esi
  mov    %rax,%rdi
  call   <fdt_get_name@plt>
  mov    %rax,-0x10(%rbp)
  cmpq   $0x0,-0x10(%rbp)
  jne    L58
  mov    -0x1c(%rbp),%eax
  jmp    L67
L58:
  mov    -0x1c(%rbp),%eax
  test   %eax,%eax
  je     L8
  mov    -0x2c(%rbp),%edx
  mov    -0x28(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <fdt_parent_offset@plt>
  mov    %eax,-0x2c(%rbp)
  cmpl   $0x0,-0x2c(%rbp)
  jns    L76
  mov    -0x2c(%rbp),%eax
  jmp    L67
L76:
  mov    -0x1c(%rbp),%eax
  add    $0x1,%eax
  add    %eax,-0x18(%rbp)
  jmp    L80
L8:
  nop
  cmpl   $0x0,-0x18(%rbp)
  jne    L48
  addl   $0x1,-0x18(%rbp)
L48:
  mov    -0x18(%rbp),%eax
L67:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L98
  call   <__stack_chk_fail@plt>
L98:
  leave
  ret
```

assistant: ```c
int get_path_len(const void *fdt, int nodeoffset) {
  int len = 0, namelen;
  const char *name;
  {
    int err_;
    if ((err_ = fdt_ro_probe_(fdt)) != 0)
      return err_;
  };
  for (;;) {
    name = fdt_get_name(fdt, nodeoffset, &namelen);
    if (!name)
      return namelen;
    if (namelen == 0)
      break;
    nodeoffset = fdt_parent_offset(fdt, nodeoffset);
    if (nodeoffset < 0)
      return nodeoffset;
    len += namelen + 1;
  }
  if (len == 0)
    len++;
  return len;
}
```
user: Translate the below assembly code into C programming language:

```asm
<get_path_len>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %rdi,%r12
  mov    %esi,%ebx
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  call   <fdt_ro_probe_@plt>
  mov    %eax,%ebp
  test   %eax,%eax
  jne    L16
  lea    0x4(%rsp),%r13
  jmp    L6
L11:
  mov    0x4(%rsp),%ebp
L16:
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L48
  mov    %ebp,%eax
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L18:
  mov    0x4(%rsp),%eax
  lea    0x1(%rbp,%rax,1),%ebp
L6:
  mov    %r13,%rdx
  mov    %ebx,%esi
  mov    %r12,%rdi
  call   <fdt_get_name@plt>
  test   %rax,%rax
  je     L11
  cmpl   $0x0,0x4(%rsp)
  je     L9
  mov    %ebx,%esi
  mov    %r12,%rdi
  call   <fdt_parent_offset@plt>
  mov    %eax,%ebx
  test   %eax,%eax
  jns    L18
  mov    %eax,%ebp
  jmp    L16
L9:
  test   %ebp,%ebp
  mov    $0x1,%eax
  cmove  %eax,%ebp
  jmp    L16
L48:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int get_path_len(const void *fdt, int nodeoffset) {
  int len = 0, namelen;
  const char *name;
  {
    int err_;
    if ((err_ = fdt_ro_probe_(fdt)) != 0)
      return err_;
  };
  for (;;) {
    name = fdt_get_name(fdt, nodeoffset, &namelen);
    if (!name)
      return namelen;
    if (namelen == 0)
      break;
    nodeoffset = fdt_parent_offset(fdt, nodeoffset);
    if (nodeoffset < 0)
      return nodeoffset;
    len += namelen + 1;
  }
  if (len == 0)
    len++;
  return len;
}
```
user: 请将以下的汇编代码转换成C语言代码:

```asm
<get_path_len>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  mov    %esi,%ebp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x18,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  call   <fdt_ro_probe_@plt>
  mov    %eax,%r12d
  test   %eax,%eax
  jne    L47
  lea    0x4(%rsp),%r13
  jmp    L15
  cs nopw 0x0(%rax,%rax,1)
L16:
  mov    0x4(%rsp),%eax
  test   %eax,%eax
  je     L36
  mov    %ebp,%esi
  mov    %rbx,%rdi
  call   <fdt_parent_offset@plt>
  mov    %eax,%ebp
  test   %eax,%eax
  js     L25
  mov    0x4(%rsp),%eax
  lea    0x1(%r12,%rax,1),%r12d
L15:
  mov    %r13,%rdx
  mov    %ebp,%esi
  mov    %rbx,%rdi
  call   <fdt_get_name@plt>
  test   %rax,%rax
  jne    L16
  mov    0x4(%rsp),%r12d
L47:
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L39
  add    $0x18,%rsp
  mov    %r12d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  cs nopw 0x0(%rax,%rax,1)
L36:
  test   %r12d,%r12d
  mov    $0x1,%eax
  cmove  %eax,%r12d
  jmp    L47
  xchg   %ax,%ax
L25:
  mov    %eax,%r12d
  jmp    L47
L39:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int get_path_len(const void *fdt, int nodeoffset) {
  int len = 0, namelen;
  const char *name;
  {
    int err_;
    if ((err_ = fdt_ro_probe_(fdt)) != 0)
      return err_;
  };
  for (;;) {
    name = fdt_get_name(fdt, nodeoffset, &namelen);
    if (!name)
      return namelen;
    if (namelen == 0)
      break;
    nodeoffset = fdt_parent_offset(fdt, nodeoffset);
    if (nodeoffset < 0)
      return nodeoffset;
    len += namelen + 1;
  }
  if (len == 0)
    len++;
  return len;
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<get_path_len>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  mov    %esi,%ebp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x18,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  call   <fdt_ro_probe_@plt>
  mov    %eax,%r12d
  test   %eax,%eax
  jne    L50
  lea    0x4(%rsp),%r13
  jmp    L52
  cs nopw 0x0(%rax,%rax,1)
L46:
  mov    0x4(%rsp),%eax
  test   %eax,%eax
  je     L27
  mov    %ebp,%esi
  mov    %rbx,%rdi
  call   <fdt_parent_offset@plt>
  mov    %eax,%ebp
  test   %eax,%eax
  js     L38
  mov    0x4(%rsp),%eax
  lea    0x1(%r12,%rax,1),%r12d
L52:
  mov    %r13,%rdx
  mov    %ebp,%esi
  mov    %rbx,%rdi
  call   <fdt_get_name@plt>
  test   %rax,%rax
  jne    L46
  mov    0x4(%rsp),%r12d
L50:
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L42
  add    $0x18,%rsp
  mov    %r12d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  cs nopw 0x0(%rax,%rax,1)
L27:
  test   %r12d,%r12d
  mov    $0x1,%eax
  cmove  %eax,%r12d
  jmp    L50
  xchg   %ax,%ax
L38:
  mov    %eax,%r12d
  jmp    L50
L42:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int get_path_len(const void *fdt, int nodeoffset) {
  int len = 0, namelen;
  const char *name;
  {
    int err_;
    if ((err_ = fdt_ro_probe_(fdt)) != 0)
      return err_;
  };
  for (;;) {
    name = fdt_get_name(fdt, nodeoffset, &namelen);
    if (!name)
      return namelen;
    if (namelen == 0)
      break;
    nodeoffset = fdt_parent_offset(fdt, nodeoffset);
    if (nodeoffset < 0)
      return nodeoffset;
    len += namelen + 1;
  }
  if (len == 0)
    len++;
  return len;
}
```
user: 提供的汇编代码用C语言表示会是什么样子:

```asm
<sem_wait>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    $0x0,%eax
  pop    %rbp
  ret
```

assistant: ```c
int sem_wait() {
  ;
  return 0;
}
```
user: 这段汇编代码用C语言表示是什么样的?

```asm
<sem_wait>:
  endbr64
  mov    $0x0,%eax
  ret
```

assistant: ```c
int sem_wait() {
  ;
  return 0;
}
```
user: 请从给定的汇编指令推导出C源代码：

```asm
<sem_wait>:
  endbr64
  xor    %eax,%eax
  ret
```

assistant: ```c
int sem_wait() {
  ;
  return 0;
}
```
user: 这段汇编代码用C语言表示是什么样的?

```asm
<sem_wait>:
  endbr64
  xor    %eax,%eax
  ret
```

assistant: ```c
int sem_wait() {
  ;
  return 0;
}
```
user: 这段汇编代码用C语言表示是什么样的:

```asm
<fn5>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    $0x0,%eax
  pop    %rbp
  ret
```

assistant: ```c
__attribute__((regparm(3), no)) int fn5(void) {
  asm volatile("" : : : "memory");
  return 0;
}
```
user: 请从给定的汇编指令推导出C源代码：

```asm
<fn5>:
  endbr64
  mov    $0x0,%eax
  ret
```

assistant: ```c
__attribute__((regparm(3), no)) int fn5(void) {
  asm volatile("" : : : "memory");
  return 0;
}
```
user: 提供的汇编代码用C语言表示会是什么样子:

```asm
<fn5>:
  endbr64
  xor    %eax,%eax
  ret
```

assistant: ```c
__attribute__((regparm(3), no)) int fn5(void) {
  asm volatile("" : : : "memory");
  return 0;
}
```
user: 下面的汇编指令对应的C源代码是什么:

```asm
<fn5>:
  endbr64
  xor    %eax,%eax
  ret
```

assistant: ```c
__attribute__((regparm(3), no)) int fn5(void) {
  asm volatile("" : : : "memory");
  return 0;
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<squezze_del>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %rsi,-0x20(%rbp)
  movl   $0x0,-0xc(%rbp)
  movl   $0x0,-0x8(%rbp)
  movl   $0x0,-0x4(%rbp)
  movl   $0x0,-0xc(%rbp)
  jmp    L7
L34:
  mov    -0xc(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x63,%al
  jne    L29
  mov    -0xc(%rbp),%eax
  mov    %eax,-0x8(%rbp)
  jmp    L41
L2:
  mov    -0x8(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%edx
  mov    -0x8(%rbp),%eax
  mov    %eax,%esi
  lea    D2(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    -0x8(%rbp),%eax
  cltq
  lea    0x1(%rax),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  mov    -0x8(%rbp),%edx
  movslq %edx,%rcx
  mov    -0x20(%rbp),%rdx
  add    %rcx,%rdx
  movzbl (%rax),%eax
  mov    %al,(%rdx)
  mov    -0x8(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%edx
  mov    -0x8(%rbp),%eax
  mov    %eax,%esi
  lea    D7(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  addl   $0x1,-0x8(%rbp)
L41:
  mov    -0x8(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L2
L29:
  addl   $0x1,-0xc(%rbp)
L7:
  mov    -0xc(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L34
  nop
  nop
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D2
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D7
type_guessed: string

tool: D2: s2[j=%d]=%c;

tool: D7: s2[j=%d]=%c;


assistant: ```c
void squezze_del(char s1[], char s2[]) {
  int i = 0;
  int j = 0;
  int k = 0;
  for (i = 0; s2[i] != '\0'; ++i) {
    if (s2[i] == 'c') {
      j = i;
      while (s2[j] != '\0') {
        printf("s2[j=%d]=%c;", j, s2[j]);
        s2[j] = s2[j + 1];
        printf("s2[j=%d]=%c;\n", j, s2[j]);
        ++j;
      };
    };
  };
}
```
user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<squezze_del>:
  endbr64
  movzbl (%rsi),%eax
  test   %al,%al
  je     L56
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %rsi,%r12
  mov    $0x0,%r14d
  lea    D10(%rip),%r15
  jmp    L23
L20:
  movzbl 0x1(%r12),%eax
  add    $0x1,%r14
  add    $0x1,%r12
  test   %al,%al
  je     L67
L23:
  cmp    $0x63,%al
  jne    L20
  mov    %r12,%rbx
  movzbl (%r12),%edx
  test   %dl,%dl
  je     L20
  lea    0x1(%r12),%rbp
  mov    %r14d,%eax
  sub    %r12d,%eax
  mov    %eax,0xc(%rsp)
L64:
  mov    0xc(%rsp),%eax
  lea    (%rax,%rbx,1),%r13d
  movsbl %dl,%edx
  mov    %r13d,%esi
  mov    %r15,%rdi
  call   <printf@plt>
  movzbl 0x0(%rbp),%edx
  mov    %dl,(%rbx)
  movsbl %dl,%edx
  mov    %r13d,%esi
  lea    D16(%rip),%rdi
  call   <printf@plt>
  add    $0x1,%rbx
  add    $0x1,%rbp
  movzbl -0x1(%rbp),%edx
  test   %dl,%dl
  jne    L64
  jmp    L20
L67:
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L56:
  ret
```

tool_calls: name: retrieve_data
arguments: tag: D10
type_infered: string
name: retrieve_data
arguments: tag: D16
type_infered: string

tool: D10: s2[j=%d]=%c;

tool: D16: s2[j=%d]=%c;


assistant: ```c
void squezze_del(char s1[], char s2[]) {
  int i = 0;
  int j = 0;
  int k = 0;
  for (i = 0; s2[i] != '\0'; ++i) {
    if (s2[i] == 'c') {
      j = i;
      while (s2[j] != '\0') {
        printf("s2[j=%d]=%c;", j, s2[j]);
        s2[j] = s2[j + 1];
        printf("s2[j=%d]=%c;\n", j, s2[j]);
        ++j;
      };
    };
  };
}
```
user: 请从给定的汇编指令推导出C源代码:

```asm
<squezze_del>:
  endbr64
  movzbl (%rsi),%eax
  test   %al,%al
  je     L36
  push   %r15
  lea    D16(%rip),%r15
  push   %r14
  lea    D19(%rip),%r14
  push   %r13
  push   %r12
  mov    %rsi,%r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  movq   $0x0,0x8(%rsp)
  jmp    L53
  nopl   0x0(%rax)
L16:
  movzbl 0x1(%r12),%eax
  addq   $0x1,0x8(%rsp)
  mov    %r13,%r12
  test   %al,%al
  je     L56
L53:
  lea    0x1(%r12),%r13
  cmp    $0x63,%al
  jne    L16
  movsbl (%r12),%edx
  mov    %r12,%rbx
  test   %dl,%dl
  je     L16
  mov    0x8(%rsp),%eax
  mov    %r13,%rbp
  sub    %r12d,%eax
  mov    %eax,0x4(%rsp)
  cs nopw 0x0(%rax,%rax,1)
L15:
  mov    0x4(%rsp),%eax
  mov    %r15,%rdi
  add    $0x1,%rbp
  lea    (%rax,%rbx,1),%esi
  add    $0x1,%rbx
  mov    %esi,(%rsp)
  call   <printf@plt>
  movsbl -0x1(%rbp),%edx
  mov    (%rsp),%esi
  mov    %r14,%rdi
  mov    %dl,-0x1(%rbx)
  call   <printf@plt>
  movsbl -0x1(%rbp),%edx
  test   %dl,%dl
  jne    L15
  jmp    L16
  cs nopw 0x0(%rax,%rax,1)
L56:
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L36:
  ret
```

tool_calls: name: read_data
arguments: label: D16
type_infered: string
name: read_data
arguments: label: D19
type_infered: string

tool: D16: s2[j=%d]=%c;

tool: D19: s2[j=%d]=%c;


assistant: ```c
void squezze_del(char s1[], char s2[]) {
  int i = 0;
  int j = 0;
  int k = 0;
  for (i = 0; s2[i] != '\0'; ++i) {
    if (s2[i] == 'c') {
      j = i;
      while (s2[j] != '\0') {
        printf("s2[j=%d]=%c;", j, s2[j]);
        s2[j] = s2[j + 1];
        printf("s2[j=%d]=%c;\n", j, s2[j]);
        ++j;
      };
    };
  };
}
```
user: 这段汇编代码用C语言表示是什么样的:

```asm
<squezze_del>:
  endbr64
  movzbl (%rsi),%eax
  test   %al,%al
  je     L39
  push   %r15
  lea    D0(%rip),%r15
  push   %r14
  lea    D19(%rip),%r14
  push   %r13
  push   %r12
  mov    %rsi,%r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  movq   $0x0,0x8(%rsp)
  jmp    L50
  nopl   0x0(%rax)
L43:
  movzbl 0x1(%r12),%eax
  addq   $0x1,0x8(%rsp)
  mov    %r13,%r12
  test   %al,%al
  je     L57
L50:
  lea    0x1(%r12),%r13
  cmp    $0x63,%al
  jne    L43
  movsbl (%r12),%edx
  mov    %r12,%rbx
  test   %dl,%dl
  je     L43
  mov    0x8(%rsp),%eax
  mov    %r13,%rbp
  sub    %r12d,%eax
  mov    %eax,0x4(%rsp)
  cs nopw 0x0(%rax,%rax,1)
L59:
  mov    0x4(%rsp),%eax
  mov    %r15,%rdi
  add    $0x1,%rbp
  lea    (%rax,%rbx,1),%esi
  add    $0x1,%rbx
  mov    %esi,(%rsp)
  call   <printf@plt>
  movsbl -0x1(%rbp),%edx
  mov    (%rsp),%esi
  mov    %r14,%rdi
  mov    %dl,-0x1(%rbx)
  call   <printf@plt>
  movsbl -0x1(%rbp),%edx
  test   %dl,%dl
  jne    L59
  jmp    L43
  cs nopw 0x0(%rax,%rax,1)
L57:
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L39:
  ret
```

tool_calls: name: retrieve_data
arguments: tag: D0
datatype: string
name: retrieve_data
arguments: tag: D19
datatype: string

tool: D0: s2[j=%d]=%c;

tool: D19: s2[j=%d]=%c;


assistant: ```c
void squezze_del(char s1[], char s2[]) {
  int i = 0;
  int j = 0;
  int k = 0;
  for (i = 0; s2[i] != '\0'; ++i) {
    if (s2[i] == 'c') {
      j = i;
      while (s2[j] != '\0') {
        printf("s2[j=%d]=%c;", j, s2[j]);
        s2[j] = s2[j + 1];
        printf("s2[j=%d]=%c;\n", j, s2[j]);
        ++j;
      };
    };
  };
}
```
user: 下面的汇编指令对应的C源代码是什么：

```asm
<SSL_Raytrace>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %edi,-0x24(%rbp)
  mov    %esi,-0x28(%rbp)
  mov    %edx,-0x2c(%rbp)
  mov    %ecx,-0x30(%rbp)
  mov    %r8,-0x38(%rbp)
  mov    %r9,-0x40(%rbp)
  mov    -0x2c(%rbp),%eax
  sub    -0x24(%rbp),%eax
  mov    %eax,%edx
  neg    %edx
  cmovns %edx,%eax
  mov    %eax,-0x10(%rbp)
  mov    -0x30(%rbp),%eax
  sub    -0x28(%rbp),%eax
  mov    %eax,%edx
  neg    %edx
  cmovns %edx,%eax
  mov    %eax,-0xc(%rbp)
  mov    -0x24(%rbp),%eax
  mov    %eax,-0x20(%rbp)
  mov    -0x28(%rbp),%eax
  mov    %eax,-0x1c(%rbp)
  mov    -0x10(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    -0xc(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x18(%rbp)
  mov    -0x2c(%rbp),%eax
  cmp    -0x24(%rbp),%eax
  jle    L70
  mov    $0x1,%eax
  jmp    L97
L70:
  mov    $0xffffffff,%eax
L97:
  mov    %eax,-0x8(%rbp)
  mov    -0x30(%rbp),%eax
  cmp    -0x28(%rbp),%eax
  jle    L15
  mov    $0x1,%eax
  jmp    L84
L15:
  mov    $0xffffffff,%eax
L84:
  mov    %eax,-0x4(%rbp)
  mov    -0x10(%rbp),%eax
  sub    -0xc(%rbp),%eax
  mov    %eax,-0x14(%rbp)
  shll   -0x10(%rbp)
  shll   -0xc(%rbp)
  jmp    L66
L72:
  mov    -0x38(%rbp),%rdx
  mov    -0x1c(%rbp),%ecx
  mov    -0x20(%rbp),%eax
  mov    -0x40(%rbp),%r8
  mov    %ecx,%esi
  mov    %eax,%edi
  call   *%r8
  test   %eax,%eax
  je     L80
  mov    $0x1,%eax
  jmp    L93
L80:
  cmpl   $0x0,-0x14(%rbp)
  jle    L30
  mov    -0x8(%rbp),%eax
  add    %eax,-0x20(%rbp)
  mov    -0xc(%rbp),%eax
  sub    %eax,-0x14(%rbp)
  jmp    L74
L30:
  mov    -0x4(%rbp),%eax
  add    %eax,-0x1c(%rbp)
  mov    -0x10(%rbp),%eax
  add    %eax,-0x14(%rbp)
L74:
  subl   $0x1,-0x18(%rbp)
L66:
  cmpl   $0x0,-0x18(%rbp)
  jg     L72
  mov    $0x0,%eax
L93:
  leave
  ret
```

assistant: ```c
int SSL_Raytrace(int x0, int y0, int x1, int y1, void *data, int (*func)(int, int, void *)) {
  int dx = abs(x1 - x0);
  int dy = abs(y1 - y0);
  int x = x0;
  int y = y0;
  int n = 1 + dx + dy;
  int x_inc = (x1 > x0) ? 1 : -1;
  int y_inc = (y1 > y0) ? 1 : -1;
  int error = dx - dy;
  dx *= 2;
  dy *= 2;
  for (; n > 0; --n) {
    if (func(x, y, data)) {
      return (1);
    }
    if (error > 0) {
      x += x_inc;
      error -= dy;
    } else {
      y += y_inc;
      error += dx;
    }
  }
  return (0);
}
```
user: 请从给定的汇编指令推导出C源代码：

```asm
<SSL_Raytrace>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %edi,%r12d
  mov    %esi,%r13d
  mov    %edx,%esi
  mov    %r8,%r15
  mov    %r9,%r14
  mov    %edx,%eax
  sub    %edi,%eax
  mov    %eax,%edx
  neg    %edx
  cmovs  %eax,%edx
  mov    %ecx,%edi
  sub    %r13d,%edi
  mov    %edi,%eax
  neg    %eax
  cmovs  %edi,%eax
  lea    0x1(%rdx,%rax,1),%ebx
  cmp    %r12d,%esi
  setg   %sil
  movzbl %sil,%esi
  lea    -0x1(%rsi,%rsi,1),%edi
  mov    %edi,(%rsp)
  cmp    %r13d,%ecx
  setg   %cl
  movzbl %cl,%ecx
  lea    -0x1(%rcx,%rcx,1),%ecx
  mov    %ecx,0x8(%rsp)
  mov    %edx,%ebp
  sub    %eax,%ebp
  lea    (%rdx,%rdx,1),%ecx
  mov    %ecx,0xc(%rsp)
  add    %eax,%eax
  mov    %eax,0x4(%rsp)
  jmp    L43
L4:
  add    0x8(%rsp),%r13d
  add    0xc(%rsp),%ebp
L0:
  sub    $0x1,%ebx
  je     L46
L43:
  mov    %r15,%rdx
  mov    %r13d,%esi
  mov    %r12d,%edi
  call   *%r14
  test   %eax,%eax
  jne    L18
  test   %ebp,%ebp
  jle    L4
  add    (%rsp),%r12d
  sub    0x4(%rsp),%ebp
  jmp    L0
L18:
  mov    $0x1,%ebx
L46:
  mov    %ebx,%eax
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
int SSL_Raytrace(int x0, int y0, int x1, int y1, void *data, int (*func)(int, int, void *)) {
  int dx = abs(x1 - x0);
  int dy = abs(y1 - y0);
  int x = x0;
  int y = y0;
  int n = 1 + dx + dy;
  int x_inc = (x1 > x0) ? 1 : -1;
  int y_inc = (y1 > y0) ? 1 : -1;
  int error = dx - dy;
  dx *= 2;
  dy *= 2;
  for (; n > 0; --n) {
    if (func(x, y, data)) {
      return (1);
    }
    if (error > 0) {
      x += x_inc;
      error -= dy;
    } else {
      y += y_inc;
      error += dx;
    }
  }
  return (0);
}
```
user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<SSL_Raytrace>:
  endbr64
  mov    %edx,%r10d
  push   %r15
  mov    %ecx,%edx
  push   %r14
  mov    %r10d,%ecx
  mov    %esi,%r14d
  push   %r13
  sub    %edi,%ecx
  mov    %r8,%r13
  push   %r12
  mov    %ecx,%eax
  push   %rbp
  mov    %edi,%ebp
  push   %rbx
  sub    $0x28,%rsp
  neg    %eax
  cmovs  %ecx,%eax
  mov    %edx,%ecx
  mov    %r9,0x8(%rsp)
  sub    %esi,%ecx
  mov    %ecx,%ebx
  mov    %eax,%r15d
  neg    %ebx
  cmovs  %ecx,%ebx
  xor    %esi,%esi
  cmp    %edi,%r10d
  setg   %sil
  lea    -0x1(%rsi,%rsi,1),%edi
  lea    0x1(%rax,%rbx,1),%r12d
  mov    %edi,0x14(%rsp)
  xor    %edi,%edi
  cmp    %r14d,%edx
  setg   %dil
  add    %eax,%eax
  sub    %ebx,%r15d
  add    %ebx,%ebx
  lea    -0x1(%rdi,%rdi,1),%edx
  mov    %eax,0x1c(%rsp)
  mov    %edx,0x18(%rsp)
  jmp    L7
  nopw   0x0(%rax,%rax,1)
L21:
  add    0x14(%rsp),%ebp
  sub    %ebx,%r15d
  sub    $0x1,%r12d
  je     L49
L7:
  mov    0x8(%rsp),%rax
  mov    %r13,%rdx
  mov    %r14d,%esi
  mov    %ebp,%edi
  call   *%rax
  test   %eax,%eax
  jne    L5
  test   %r15d,%r15d
  jg     L21
  add    0x18(%rsp),%r14d
  add    0x1c(%rsp),%r15d
  sub    $0x1,%r12d
  jne    L7
L49:
  add    $0x28,%rsp
  mov    %r12d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nop
L5:
  mov    $0x1,%r12d
  jmp    L49
```

assistant: ```c
int SSL_Raytrace(int x0, int y0, int x1, int y1, void *data, int (*func)(int, int, void *)) {
  int dx = abs(x1 - x0);
  int dy = abs(y1 - y0);
  int x = x0;
  int y = y0;
  int n = 1 + dx + dy;
  int x_inc = (x1 > x0) ? 1 : -1;
  int y_inc = (y1 > y0) ? 1 : -1;
  int error = dx - dy;
  dx *= 2;
  dy *= 2;
  for (; n > 0; --n) {
    if (func(x, y, data)) {
      return (1);
    }
    if (error > 0) {
      x += x_inc;
      error -= dy;
    } else {
      y += y_inc;
      error += dx;
    }
  }
  return (0);
}
```
user: Translate the below assembly code into C programming language:

```asm
<SSL_Raytrace>:
  endbr64
  mov    %edx,%r10d
  push   %r15
  mov    %ecx,%edx
  push   %r14
  mov    %r10d,%ecx
  mov    %esi,%r14d
  push   %r13
  sub    %edi,%ecx
  mov    %r8,%r13
  push   %r12
  mov    %ecx,%eax
  push   %rbp
  mov    %edi,%ebp
  push   %rbx
  sub    $0x28,%rsp
  neg    %eax
  cmovs  %ecx,%eax
  mov    %edx,%ecx
  mov    %r9,0x8(%rsp)
  sub    %esi,%ecx
  mov    %ecx,%ebx
  mov    %eax,%r15d
  neg    %ebx
  cmovs  %ecx,%ebx
  xor    %esi,%esi
  cmp    %edi,%r10d
  setg   %sil
  lea    -0x1(%rsi,%rsi,1),%edi
  lea    0x1(%rax,%rbx,1),%r12d
  mov    %edi,0x14(%rsp)
  xor    %edi,%edi
  cmp    %r14d,%edx
  setg   %dil
  add    %eax,%eax
  sub    %ebx,%r15d
  add    %ebx,%ebx
  lea    -0x1(%rdi,%rdi,1),%edx
  mov    %eax,0x1c(%rsp)
  mov    %edx,0x18(%rsp)
  jmp    L38
  nopw   0x0(%rax,%rax,1)
L2:
  add    0x14(%rsp),%ebp
  sub    %ebx,%r15d
  sub    $0x1,%r12d
  je     L6
L38:
  mov    0x8(%rsp),%rax
  mov    %r13,%rdx
  mov    %r14d,%esi
  mov    %ebp,%edi
  call   *%rax
  test   %eax,%eax
  jne    L33
  test   %r15d,%r15d
  jg     L2
  add    0x18(%rsp),%r14d
  add    0x1c(%rsp),%r15d
  sub    $0x1,%r12d
  jne    L38
L6:
  add    $0x28,%rsp
  mov    %r12d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nop
L33:
  mov    $0x1,%r12d
  jmp    L6
```

assistant: ```c
int SSL_Raytrace(int x0, int y0, int x1, int y1, void *data, int (*func)(int, int, void *)) {
  int dx = abs(x1 - x0);
  int dy = abs(y1 - y0);
  int x = x0;
  int y = y0;
  int n = 1 + dx + dy;
  int x_inc = (x1 > x0) ? 1 : -1;
  int y_inc = (y1 > y0) ? 1 : -1;
  int error = dx - dy;
  dx *= 2;
  dy *= 2;
  for (; n > 0; --n) {
    if (func(x, y, data)) {
      return (1);
    }
    if (error > 0) {
      x += x_inc;
      error -= dy;
    } else {
      y += y_inc;
      error += dx;
    }
  }
  return (0);
}
```