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

```asm
<select_task>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %rdi,-0x48(%rbp)
  mov    %esi,-0x4c(%rbp)
  mov    %edx,-0x50(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x18(%rbp)
  xor    %eax,%eax
  mov    %rsp,%rax
  mov    %rax,%rbx
  movl   $0x0,-0x30(%rbp)
  mov    -0x4c(%rbp),%eax
  mov    %eax,-0x2c(%rbp)
  mov    -0x4c(%rbp),%eax
  movslq %eax,%rdx
  sub    $0x1,%rdx
  mov    %rdx,-0x28(%rbp)
  movslq %eax,%rdx
  mov    %rdx,%r10
  mov    $0x0,%r11d
  movslq %eax,%rdx
  mov    %rdx,%r8
  mov    $0x0,%r9d
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%esi
  mov    $0x0,%edx
  div    %rsi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L5:
  cmp    %rdx,%rsp
  je     L35
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L5
L35:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L3
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L3:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0x20(%rbp)
  movl   $0x0,-0x34(%rbp)
  jmp    L126
L56:
  mov    -0x20(%rbp),%rax
  mov    -0x34(%rbp),%edx
  movslq %edx,%rdx
  movl   $0x1,(%rax,%rdx,4)
  addl   $0x1,-0x34(%rbp)
L126:
  mov    -0x34(%rbp),%eax
  cmp    -0x4c(%rbp),%eax
  jl     L56
  jmp    L68
L13:
  movl   $0x1,-0x34(%rbp)
  jmp    L125
L133:
  mov    -0x30(%rbp),%edx
  mov    -0x20(%rbp),%rcx
  mov    -0x4c(%rbp),%eax
  mov    %rcx,%rsi
  mov    %eax,%edi
  call   <cycle_next@plt>
  mov    %eax,-0x30(%rbp)
  addl   $0x1,-0x34(%rbp)
L125:
  mov    -0x34(%rbp),%eax
  cmp    -0x50(%rbp),%eax
  jl     L133
  mov    -0x20(%rbp),%rax
  mov    -0x30(%rbp),%edx
  movslq %edx,%rdx
  movl   $0x0,(%rax,%rdx,4)
  mov    -0x30(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  mov    %rax,%rsi
  lea    D3(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  subl   $0x1,-0x2c(%rbp)
  mov    -0x30(%rbp),%edx
  mov    -0x20(%rbp),%rcx
  mov    -0x4c(%rbp),%eax
  mov    %rcx,%rsi
  mov    %eax,%edi
  call   <cycle_next@plt>
  mov    %eax,-0x30(%rbp)
L68:
  cmpl   $0x1,-0x2c(%rbp)
  jg     L13
  movl   $0x0,-0x34(%rbp)
  jmp    L7
L4:
  mov    -0x20(%rbp),%rax
  mov    -0x34(%rbp),%edx
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%eax
  test   %eax,%eax
  je     L48
  mov    -0x34(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  jmp    L134
L48:
  addl   $0x1,-0x34(%rbp)
L7:
  mov    -0x34(%rbp),%eax
  cmp    -0x4c(%rbp),%eax
  jl     L4
  mov    $0x0,%eax
L134:
  mov    %rbx,%rsp
  mov    -0x18(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L101
  call   <__stack_chk_fail@plt>
L101:
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: tag: D3
type: string

tool: D3: drop %s


assistant: ```c
char *select_task(char *tasks[], int size, int steps) {
  int i, curr = 0, tasks_left = size;
  bool used[size];
  for (i = 0; i < size; i++)
    used[i] = true;
  while (tasks_left > 1) {
    for (i = 1; i < steps; i++) {
      curr = cycle_next(size, used, curr);
    }
    used[curr] = false;
    printf("drop %s\n", tasks[curr]);
    tasks_left--;
    curr = cycle_next(size, used, curr);
  }
  for (i = 0; i < size; i++)
    if (used[i])
      return tasks[i];
  return NULL;
}
```