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

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x118,%rsp
  mov    %rsi,%rbx
  mov    %fs:0x28,%rax
  mov    %rax,0x108(%rsp)
  xor    %eax,%eax
  cmp    $0x4,%edi
  jne    L19
L13:
  mov    0x8(%rbx),%rdi
  call   <atoi@plt>
  mov    %eax,%r15d
  mov    %eax,0x4(%rsp)
  mov    0x10(%rbx),%rdi
  lea    D31(%rip),%rsi
  call   <fopen@plt>
  mov    %rax,0x8(%rsp)
  mov    0x18(%rbx),%rdi
  lea    D47(%rip),%rsi
  call   <fopen@plt>
  mov    %rax,0x10(%rsp)
  mov    $0x8,%edi
  call   <malloc@plt>
  mov    %rax,%r13
  mov    $0x8,%edi
  call   <malloc@plt>
  mov    %rax,%r14
  mov    $0x8,%edi
  call   <malloc@plt>
  mov    %rax,0x18(%rsp)
  movl   $0x4030201,(%rax)
  movl   $0x1010203,0x4(%rax)
  movl   $0x0,0x0(%r13)
  movl   $0x0,0x4(%r13)
  movl   $0x0,(%r14)
  movl   $0x0,0x4(%r14)
  test   %r15d,%r15d
  jle    L23
  mov    $0x0,%ebp
  lea    0x30(%rsp),%r15
  lea    0x20(%rsp),%rbx
L14:
  mov    %r15,%rdx
  lea    D44(%rip),%rsi
  mov    0x8(%rsp),%rdi
  call   <fscanf@plt>
  mov    %rbx,%rsi
  mov    %r15,%rdi
  call   <stringToBlock@plt>
  mov    %r13,%rsi
  mov    %rbx,%rdi
  call   <convertToNum@plt>
  mov    0x18(%rsp),%rdx
  mov    %r14,%rsi
  mov    %r13,%rdi
  call   <encrypt@plt>
  mov    %r14,%rsi
  mov    %rbx,%rdi
  call   <convertToBlock@plt>
  lea    0xa0(%rsp),%r12
  mov    %r12,%rsi
  mov    %rbx,%rdi
  call   <blockToString@plt>
  mov    %r12,%rdx
  lea    D0(%rip),%rsi
  mov    0x10(%rsp),%rdi
  call   <fprintf@plt>
  add    $0x1,%ebp
  cmp    %ebp,0x4(%rsp)
  jne    L14
L23:
  mov    0x108(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L45
  mov    $0x0,%eax
  add    $0x118,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L19:
  lea    D8(%rip),%rdi
  call   <perror@plt>
  mov    $0x1,%edi
  call   <exit@plt>
  jmp    L13
L45:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: data_tag: D31
type_infered: string
name: unpack_data
arguments: data_tag: D47
type_infered: string
name: unpack_data
arguments: data_tag: D44
type_infered: string
name: unpack_data
arguments: data_tag: D0
type_infered: string
name: unpack_data
arguments: data_tag: D8
type_infered: string

tool: D31: r

tool: D47: w

tool: D44: %s

tool: D0: %s


tool: D8: Not enough args. eg : ./program <no of samples> <plain text> <cipher text>

assistant: ```c
int main(int argc, char **argv) {
  if (argc != 4) {
    perror("Not enough args. eg : ./program <no of samples> <plain text> <cipher text>");
    exit(1);
  }
  int count = atoi(argv[1]);
  FILE *input = fopen(argv[2], "r");
  FILE *output = fopen(argv[3], "w");
  uint64_t *pt = malloc(sizeof(uint64_t) * 2);
  uint64_t *ct = malloc(sizeof(uint64_t) * 2);
  uint64_t *K = malloc(sizeof(uint64_t) * 2);
  unsigned char block[16];
  K[0] = 0x0807060504030201;
  K[1] = 0x0403020501010203;
  pt[0] = 0;
  pt[1] = 0;
  ct[0] = 0;
  ct[1] = 0;
  char cinp[100];
  char cout[100];
  int i = 0;
  for (i = 0; i < count; i++) {
    fscanf(input, "%s", cinp);
    stringToBlock(cinp, block);
    convertToNum(block, pt);
    encrypt(pt, ct, K);
    convertToBlock(block, ct);
    blockToString(block, cout);
    fprintf(output, "%s\n", cout);
  }
  return 0;
}
```