user: Converte this assembly snippet into its equivalent C code:

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rsi,%rbx
  sub    $0x238,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x228(%rsp)
  xor    %eax,%eax
  cmp    $0x4,%edi
  je     L2
  lea    D39(%rip),%rdi
  call   <perror@plt>
  mov    $0x1,%edi
  call   <exit@plt>
L2:
  mov    0x8(%rbx),%rdi
  lea    0x60(%rsp),%r15
  call   <atoi@plt>
  mov    0x10(%rbx),%rdi
  lea    D59(%rip),%rsi
  mov    %eax,%r14d
  mov    %eax,0xc(%rsp)
  call   <fopen@plt>
  mov    0x18(%rbx),%rdi
  lea    D44(%rip),%rsi
  mov    %rax,0x10(%rsp)
  call   <fopen@plt>
  movdqa D43(%rip),%xmm0
  lea    0x1c0(%rsp),%rdi
  mov    %r15,%rsi
  mov    %rax,0x18(%rsp)
  movaps %xmm0,0x1c0(%rsp)
  movdqa D61(%rip),%xmm0
  movl   $0x0,0x220(%rsp)
  movaps %xmm0,0x1d0(%rsp)
  pxor   %xmm0,%xmm0
  movaps %xmm0,0x1e0(%rsp)
  movaps %xmm0,0x1f0(%rsp)
  movaps %xmm0,0x200(%rsp)
  movaps %xmm0,0x210(%rsp)
  call   <stringToBlock@plt>
  test   %r14d,%r14d
  jle    L30
  xor    %r14d,%r14d
  lea    0xe0(%rsp),%r13
  lea    0x20(%rsp),%r12
  lea    0xa0(%rsp),%rbp
  lea    0x150(%rsp),%rbx
  nopl   0x0(%rax)
L24:
  mov    0x10(%rsp),%rdi
  mov    %r13,%rdx
  lea    D11(%rip),%rsi
  add    $0x1,%r14d
  call   <fscanf@plt>
  mov    %r12,%rsi
  mov    %r13,%rdi
  call   <stringToBlock@plt>
  mov    %rbp,%rdx
  mov    %r15,%rsi
  mov    %r12,%rdi
  call   <AES128_ECB_encrypt@plt>
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  call   <blockToSTring@plt>
  mov    0x18(%rsp),%rdi
  mov    %rbx,%rdx
  lea    D38(%rip),%rsi
  call   <fprintf@plt>
  cmp    %r14d,0xc(%rsp)
  jne    L24
L30:
  mov    0x228(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L16
  add    $0x238,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L16:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_tag: D39
type_guessed: string
name: parse_data
arguments: data_tag: D59
type_guessed: string
name: parse_data
arguments: data_tag: D44
type_guessed: string
name: parse_data
arguments: data_tag: D43
type_guessed: byte[16]
name: parse_data
arguments: data_tag: D61
type_guessed: byte[16]
name: parse_data
arguments: data_tag: D11
type_guessed: string
name: parse_data
arguments: data_tag: D38
type_guessed: string

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

tool: D59: r

tool: D44: w

tool: {"D43": [0x30,0x31,0x30,0x32,0x30,0x33,0x30,0x34,0x30,0x35,0x30,0x36,0x30,0x37,0x30,0x38]}

tool: {"D61": [0x30,0x39,0x30,0x41,0x30,0x42,0x30,0x43,0x30,0x44,0x30,0x45,0x30,0x46,0x31,0x30]}

tool: D11: %s

tool: D38: %s


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");
  uint8_t inp[16];
  uint8_t key[16];
  uint8_t out[16];
  char cinp[100];
  char cout[100];
  char ckey[100] = "0102030405060708090A0B0C0D0E0F10";
  stringToBlock(ckey, key);
  int i = 0;
  for (i = 0; i < count; i++) {
    fscanf(input, "%s", cinp);
    stringToBlock(cinp, inp);
    AES128_ECB_encrypt(inp, key, out);
    blockToSTring(out, cout);
    fprintf(output, "%s\n", cout);
  }
  return 0;
}
```