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

```asm
<gen_move>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xf8,%rsp
  mov    %rdi,%r14
  mov    %esi,%ebx
  mov    %fs:0x28,%rax
  mov    %rax,0xe8(%rsp)
  xor    %eax,%eax
  movl   $0x3,(%rsp)
  movl   $0x0,0x4(%rsp)
  movl   $0x2,0x8(%rsp)
  movl   $0x1,0xc(%rsp)
  mov    %esi,%eax
  sar    $0xc,%eax
  and    $0x3,%eax
  mov    (%rsp,%rax,4),%r13d
  mov    %esi,%ebp
  sar    $0x9,%ebp
  and    $0x7,%ebp
  mov    %esi,%eax
  sar    $0x3,%eax
  and    $0x38,%eax
  or     %eax,%ebp
  mov    %ebp,%edi
  call   <ea_alterable@plt>
  cmp    $0x3,%r13d
  je     L254
  test   %eax,%eax
  je     L254
  mov    %ebx,%edi
  call   <ea_mode@plt>
  test   %r13d,%r13d
  jne    L143
  cmp    $0x1,%eax
  je     L254
L143:
  mov    %ebx,%edi
  call   <ea_mode@plt>
  test   %eax,%eax
  js     L254
  lea    0x10(%rsp),%r15
  mov    %ebx,%ecx
  mov    %r14,%rdx
  lea    D76(%rip),%rsi
  mov    %r15,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  mov    %r15,%rdi
  call   <begin_function@plt>
  mov    %eax,%r12d
  mov    $0x1,%ecx
  mov    %r13d,%edx
  mov    %ebx,%esi
  mov    %r15,%rdi
  call   <get_ea@plt>
  test   %rax,%rax
  js     L213
  mov    %ebx,%edi
  call   <ea_address@plt>
  test   %rax,%rax
  je     L228
  test   %r13d,%r13d
  jne    L202
L257:
  mov    %r13d,%ecx
  shl    $0x6,%ecx
  or     %ebp,%ecx
  lea    0x10(%rsp),%rbx
  mov    %r14,%rdx
  lea    D155(%rip),%rsi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  mov    %r13d,%r8d
  lea    D199(%rip),%rcx
  lea    D31(%rip),%rdx
  lea    D37(%rip),%rsi
  mov    %rbx,%rdi
  call   <print_bus_read_@plt>
  test   %rax,%rax
  js     L215
L228:
  mov    $0x8,%ebx
  mov    %r13d,%ecx
  shl    %cl,%ebx
  mov    %ebx,%esi
  lea    D225(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %ebp,%edi
  call   <ea_mode@plt>
  cmp    $0x1,%eax
  jne    L182
L82:
  mov    %ebp,%edi
  call   <ea_mode@plt>
  test   %eax,%eax
  jne    L119
  mov    %ebp,%edx
  and    $0xf,%edx
  mov    %ebx,%esi
  lea    D205(%rip),%rdi
  call   <printf@plt>
  lea    D27(%rip),%rdi
  call   <puts@plt>
  jmp    L215
L254:
  mov    $0x0,%eax
  call   <invalid@plt>
  mov    %eax,%r12d
L215:
  mov    0xe8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L230
  mov    %r12d,%eax
  add    $0xf8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L202:
  lea    D202(%rip),%rdi
  call   <puts@plt>
  jmp    L257
L182:
  mov    %ebx,%esi
  lea    D186(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %ebx,%esi
  lea    D183(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D7(%rip),%rdi
  call   <puts@plt>
  lea    D17(%rip),%rdi
  call   <puts@plt>
  jmp    L82
L119:
  mov    %ebp,%edi
  call   <ea_mode@plt>
  cmp    $0x1,%eax
  je     L39
  lea    0x10(%rsp),%rdx
  lea    0x80(%rsp),%rbx
  lea    D213(%rip),%rsi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  lea    D152(%rip),%rdi
  call   <puts@plt>
  mov    $0x0,%ecx
  mov    %r13d,%edx
  mov    %ebp,%esi
  mov    %rbx,%rdi
  call   <get_ea@plt>
  test   %rax,%rax
  js     L125
  cmp    $0x1,%r13d
  je     L226
  cmp    $0x2,%r13d
  je     L174
  test   %r13d,%r13d
  jne    L215
  lea    D39(%rip),%rsi
  lea    D54(%rip),%rdi
  call   <print_bus_wait@plt>
  jmp    L215
L39:
  mov    %ebp,%esi
  and    $0xf,%esi
  mov    %ebx,%edx
  lea    D224(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D27(%rip),%rdi
  call   <puts@plt>
  jmp    L215
L226:
  lea    D91(%rip),%rsi
  lea    D86(%rip),%rdi
  call   <print_bus_wait@plt>
  jmp    L215
L174:
  lea    D150(%rip),%rsi
  lea    D143(%rip),%rdi
  call   <print_bus_wait@plt>
  jmp    L215
L213:
  mov    $0xffffffff,%r12d
  jmp    L215
L125:
  mov    $0xffffffff,%r12d
  jmp    L215
L230:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: label: D76
datatype: string
name: unpack_data
arguments: label: D155
datatype: string
name: unpack_data
arguments: label: D199
datatype: string
name: unpack_data
arguments: label: D31
datatype: string
name: unpack_data
arguments: label: D37
datatype: string
name: unpack_data
arguments: label: D225
datatype: string
name: unpack_data
arguments: label: D205
datatype: string
name: unpack_data
arguments: label: D27
datatype: string
name: unpack_data
arguments: label: D202
datatype: string
name: unpack_data
arguments: label: D186
datatype: string
name: unpack_data
arguments: label: D183
datatype: string
name: unpack_data
arguments: label: D7
datatype: string
name: unpack_data
arguments: label: D17
datatype: string
name: unpack_data
arguments: label: D213
datatype: string
name: unpack_data
arguments: label: D152
datatype: string
name: unpack_data
arguments: label: D39
datatype: string
name: unpack_data
arguments: label: D54
datatype: string
name: unpack_data
arguments: label: D224
datatype: string
name: unpack_data
arguments: label: D91
datatype: string
name: unpack_data
arguments: label: D86
datatype: string
name: unpack_data
arguments: label: D150
datatype: string
name: unpack_data
arguments: label: D143
datatype: string

tool: D76: %s_%04X

tool: D155: %s_common_%02X

tool: D199: EV

tool: D31: EA

tool: 

tool: D225: 	{
		uint%d_t result = EV;


tool: D205: 		SET_DN_REG%d(%d, result);
	}


tool: D27: 	FETCH_OPCODE;
}


tool: D202: 	if (EA&1) ADDRESS_EXCEPTION;

tool: D186: 		SET_N_FLAG%d(result);


tool: D183: 		SET_Z_FLAG%d(result);


tool: D7: 		SET_V_FLAG(0);

tool: D17: 		SET_C_FLAG(0);

tool: D213: %s_dest

tool: D152: 		EV = result;
	}

tool: D39: done_write_wb

tool: D54: done_wait_wb

tool: D224: 		REG_D(%d) = (uint32_t)(int%d_t)result;
	}


tool: D91: done_write_ww

tool: D86: done_wait_ww

tool: D150: done_write_wl

tool: D143: done_wait_wl

assistant: ```c
int gen_move(const char *mnemonic, int opcode) {
  char func_name[(100)];
  char access_name[(100)];
  int func_id;
  int op_size;
  int op_dest;
  int sizes[4] = {3, 0, 2, 1};
  op_size = (opcode >> 12) & 3;
  op_size = sizes[op_size];
  op_dest = ((opcode >> 9) & 7) | ((opcode >> 3) & 0x38);
  if (!ea_alterable(op_dest) || op_size == 3 || (ea_mode(opcode) == 1 && op_size == 0) || ea_mode(opcode) < 0)
    return invalid();
  sprintf(func_name, "%s_%04X", mnemonic, opcode);
  func_id = begin_function(func_name);
  if (get_ea(func_name, opcode, op_size, 1) < 0)
    return -1;
  if (ea_address(opcode)) {
    if (op_size)
      printf("\tif (EA&1) ADDRESS_EXCEPTION;\n");
    sprintf(func_name, "%s_common_%02X", mnemonic, (op_size << 6) | op_dest);
    if (print_bus_read_(func_name, "", "EA", "EV", op_size) < 0)
      return func_id;
  }
  printf("\t{\n\t\tuint%d_t result = EV;\n", 8 << op_size);
  if (ea_mode(op_dest) != 1) {
    printf("\t\tSET_N_FLAG%d(result);\n", 8 << op_size);
    printf("\t\tSET_Z_FLAG%d(result);\n", 8 << op_size);
    printf("\t\tSET_V_FLAG(0);\n");
    printf("\t\tSET_C_FLAG(0);\n");
  }
  if (ea_mode(op_dest) == 0) {
    printf("\t\tSET_DN_REG%d(%d, result);\n\t}\n", 8 << op_size, op_dest & 0xF);
    printf("\tFETCH_OPCODE;\n}\n\n");
  } else if (ea_mode(op_dest) == 1) {
    printf("\t\tREG_D(%d) = (uint32_t)(int%d_t)result;\n\t}\n", op_dest & 0xF, 8 << op_size);
    printf("\tFETCH_OPCODE;\n}\n\n");
  } else {
    sprintf(access_name, "%s_dest", func_name);
    printf("\t\tEV = result;\n\t}\n");
    if (get_ea(access_name, op_dest, op_size, 0) < 0)
      return -1;
    switch (op_size) {
    case 0:
      print_bus_wait("done_wait_wb", "done_write_wb");
      break;
    case 1:
      print_bus_wait("done_wait_ww", "done_write_ww");
      break;
    case 2:
      print_bus_wait("done_wait_wl", "done_write_wl");
      break;
    }
  }
  return func_id;
}
```