user: 请从给定的汇编指令推导出C源代码：

```asm
<Iso2Raw_generateCue>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x210,%rsp
  mov    %rdi,%r12
  mov    %fs:0x28,%rax
  mov    %rax,0x208(%rsp)
  xor    %eax,%eax
  call   <strlen@plt>
  sub    $0x1,%eax
  mov    %eax,%ebp
  js     L76
  movslq %eax,%rdx
  add    %r12,%rdx
  movabs $0x200000000801,%rcx
  jmp    L44
L14:
  sub    $0x1,%ebp
  sub    $0x1,%rdx
  cmp    $0xffffffff,%ebp
  je     L76
L44:
  movzbl (%rdx),%eax
  sub    $0x2f,%eax
  cmp    $0x2d,%al
  ja     L14
  bt     %rax,%rcx
  jae    L14
L76:
  lea    0x1(%rbp),%ebx
  movslq %ebx,%rbx
  mov    %rsp,%r14
  movslq %ebp,%rax
  sub    %rax,%r14
  jmp    L39
L77:
  movzbl (%r12,%rbx,1),%eax
  mov    %al,-0x1(%r14,%rbx,1)
  add    $0x1,%rbx
L39:
  mov    %ebx,%eax
  sub    %ebp,%eax
  lea    -0x1(%rax),%r13d
  mov    %r12,%rdi
  call   <strlen@plt>
  cmp    %ebx,%eax
  jg     L77
  movslq %r13d,%rax
  movb   $0x0,(%rsp,%rax,1)
  mov    $0x0,%ebx
  jmp    L66
L41:
  mov    %al,0x100(%rsp,%rbx,1)
  add    $0x1,%rbx
L66:
  mov    %ebx,%ebp
  mov    %r12,%rdi
  call   <strlen@plt>
  cmp    %ebx,%eax
  jle    L34
  movzbl (%r12,%rbx,1),%eax
  cmp    $0x2e,%al
  jne    L41
L34:
  movslq %ebp,%rbp
  movb   $0x0,0x100(%rsp,%rbp,1)
  lea    0x100(%rsp),%rbx
  lea    D47(%rip),%rsi
  mov    %rbx,%rdi
  call   <strcat@plt>
  lea    D27(%rip),%rsi
  mov    %rbx,%rdi
  call   <fopen@plt>
  mov    %rax,%rbx
  mov    %rsp,%rdx
  lea    D49(%rip),%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  mov    %rbx,%rcx
  mov    $0x14,%edx
  mov    $0x1,%esi
  lea    D29(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbx,%rcx
  mov    $0x16,%edx
  mov    $0x1,%esi
  lea    D3(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbx,%rdi
  call   <fclose@plt>
  mov    0x208(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L59
  add    $0x210,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L59:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_label: D47
type_guessed: string
name: parse_data
arguments: data_label: D27
type_guessed: string
name: parse_data
arguments: data_label: D49
type_guessed: string
name: parse_data
arguments: data_label: D29
type_guessed: string
name: parse_data
arguments: data_label: D3
type_guessed: string

tool: D47: .cue

tool: D27: wb

tool: D49: FILE "%s" BINARY


tool: D29: TRACK 01 MODE2/2352


tool: D3:     INDEX 01 00:00:00


assistant: ```c
void Iso2Raw_generateCue(char *binFileName) {
  int x, y;
  char binBaseName[256];
  char cueFileName[256];
  FILE *cue_file;
  for (x = (strlen(binFileName) - 1); x >= 0; x--) {
    if (binFileName[x] == '/' || binFileName[x] == '\\' || binFileName[x] == ':')
      break;
  }
  x++;
  y = 0;
  for (; x < strlen(binFileName); x++)
    binBaseName[y++] = binFileName[x];
  binBaseName[y] = 0;
  y = 0;
  for (x = 0; x < strlen(binFileName); x++) {
    if (binFileName[x] == '.')
      break;
    else
      cueFileName[y++] = binFileName[x];
  }
  cueFileName[y] = 0;
  strcat(cueFileName, ".cue");
  cue_file = fopen(cueFileName, "wb");
  fprintf(cue_file, "FILE \"%s\" BINARY\n", binBaseName);
  fprintf(cue_file, "TRACK 01 MODE2/2352\n");
  fprintf(cue_file, "    INDEX 01 00:00:00\n");
  fclose(cue_file);
}
```