user: 下面的汇编指令对应的C源代码是什么：

```asm
<bodyswitch>:
  endbr64
  push   %r15
  push   %r14
  mov    %rdx,%r14
  push   %r13
  mov    %rcx,%r13
  push   %r12
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  mov    %rsi,%rbx
  xor    %esi,%esi
  sub    $0x78,%rsp
  mov    %r8,0x8(%rsp)
  lea    0x30(%rsp),%rdi
  lea    0x40(%rsp),%r12
  mov    0xb0(%rsp),%rax
  mov    %r9,0x10(%rsp)
  mov    0xb8(%rsp),%r15
  mov    %rax,0x18(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x68(%rsp)
  xor    %eax,%eax
  movl   $0x3e8,0x30(%rsp)
  movq   $0x0,0x38(%rsp)
  call   <nanosleep@plt>
  xor    %esi,%esi
  lea    0x28(%rsp),%rdi
  call   <gettimeofday@plt>
  mov    0x28(%rsp),%edi
  imul   0x2c(%rsp),%edi
  call   <srand@plt>
  mov    $0x1e,%edx
  xor    %esi,%esi
  mov    %r12,%rdi
  call   <memset@plt>
  lea    D38(%rip),%rsi
  mov    %r12,%rdi
  call   <sprintf@plt>
  mov    %r12,%rcx
  mov    $0x7,%edx
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  call   <magicconsume@plt>
  test   %eax,%eax
  js     L42
  movl   $0xffffffff,0x24(%rsp)
  lea    D12(%rip),%rbp
  lea    0x24(%rsp),%rbx
  cs nopw 0x0(%rax,%rax,1)
L30:
  mov    %rbp,%rdi
  call   <puts@plt>
  mov    %rbx,%rdi
  call   <getint@plt>
  movslq 0x24(%rsp),%rax
  cmp    $0xb,%eax
  ja     L30
  mov    0x0(%r13,%rax,4),%eax
  test   %eax,%eax
  jle    L26
  mov    (%r14),%ebx
  test   %ebx,%ebx
  js     L85
  mov    %r14,%rdi
  call   <shiftarray@plt>
L53:
  mov    %ebx,%esi
  mov    %r12,%rdi
  call   <extendednameenemy@plt>
  mov    %r12,%rsi
  lea    D31(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  movslq 0x24(%rsp),%rdx
  mov    0x8(%rsp),%rcx
  mov    %ebx,0x0(%r13,%rdx,4)
  cmp    (%rcx),%edx
  jne    L74
  mov    0x10(%rsp),%rax
  movl   $0x1,(%rax)
  mov    0x18(%rsp),%rax
  movl   $0x0,(%rax)
L74:
  test   %r15,%r15
  je     L42
  movl   $0x2,(%r15)
L42:
  mov    0x68(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L71
  add    $0x78,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   (%rax)
L85:
  xor    %eax,%eax
  call   <rand@plt>
  movslq %eax,%rbx
  cltd
  imul   $0x4bda12f7,%rbx,%rbx
  sar    $0x24,%rbx
  sub    %edx,%ebx
  imul   $0x36,%ebx,%edx
  sub    %edx,%eax
  mov    %eax,%ebx
  jmp    L53
  nopl   0x0(%rax)
L26:
  lea    D24(%rip),%rdi
  call   <puts@plt>
  jmp    L74
L71:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_label: D38
datatype: string
name: parse_data
arguments: data_label: D12
datatype: string
name: parse_data
arguments: data_label: D31
datatype: string
name: parse_data
arguments: data_label: D24
datatype: string

tool: D38: StealingSpirit

tool: D12: What enemy you want to transmute?

tool: D31: The enemy is transmuted into a %s!


tool: D24: Nothing here...

assistant: ```c
void bodyswitch(int *aces, int *inv, int *future, int *map, int *pos, int *start, int *control, int *nomag) {
  struct timespec a;
  a.tv_sec = 0;
  a.tv_nsec = 1000;
  nanosleep(&a, NULL);
  struct timeval t1;
  gettimeofday(&t1, NULL);
  srand(t1.tv_usec * t1.tv_sec);
  char s[30];
  memset(s, 0, sizeof(s));
  sprintf(s, "StealingSpirit");
  int v = magicconsume(aces, inv, 7, s);
  if (v < 0)
    return;
  v = -1;
  do {
    printf("What enemy you want to transmute?\n");
    getint(&v);
  } while ((v < 0) || (v > 11));
  if (*(map + v) > 0) {
    int c;
    if (*future >= 0) {
      c = *future;
      shiftarray(future);
    } else
      c = rand() % 54;
    extendednameenemy(s, c);
    printf("The enemy is transmuted into a %s!\n", s);
    *(map + v) = c;
    if (v == *pos) {
      *start = 1;
      *control = 0;
    }
  } else
    printf("Nothing here...\n");
  if (nomag)
    *nomag = 2;
}
```