user: Translate the below assembly code into C programming language:

```asm
<challenge1>:
  endbr64
  push   %rbp
  lea    D31(%rip),%rdi
  mov    %rsp,%rbp
  push   %r14
  push   %r13
  lea    -0x90(%rbp),%r13
  push   %r12
  sub    $0x78,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x28(%rbp)
  xor    %eax,%eax
  call   <puts@plt>
  movdqa D45(%rip),%xmm0
  mov    %r13,%rdi
  movb   $0x0,-0x30(%rbp)
  movaps %xmm0,-0x90(%rbp)
  movdqa D34(%rip),%xmm0
  movaps %xmm0,-0x80(%rbp)
  movdqa D29(%rip),%xmm0
  movaps %xmm0,-0x70(%rbp)
  movdqa D52(%rip),%xmm0
  movaps %xmm0,-0x60(%rbp)
  movdqa D74(%rip),%xmm0
  movaps %xmm0,-0x50(%rbp)
  movdqa D33(%rip),%xmm0
  movaps %xmm0,-0x40(%rbp)
  call   <counthex@plt>
  mov    %rsp,%rcx
  mov    %eax,%r12d
  cltq
  add    $0xf,%rax
  mov    %rax,%rdx
  and    $0xfffffffffffff000,%rax
  sub    %rax,%rcx
  and    $0xfffffffffffffff0,%rdx
  cmp    %rcx,%rsp
  je     L16
L53:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rcx,%rsp
  jne    L53
L16:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  jne    L66
L25:
  mov    %rsp,%rsi
  mov    %r13,%rdi
  mov    %rsp,%r14
  call   <str2hex@plt>
  mov    %r12d,%esi
  mov    %rsp,%rdi
  call   <printhex@plt>
  mov    %r12d,%edi
  call   <base64length@plt>
  mov    %rsp,%rcx
  cltq
  add    $0xf,%rax
  mov    %rax,%rdx
  and    $0xfffffffffffff000,%rax
  sub    %rax,%rcx
  and    $0xfffffffffffffff0,%rdx
  cmp    %rcx,%rsp
  je     L37
L62:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rcx,%rsp
  jne    L62
L37:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  jne    L36
L31:
  mov    %r12d,%esi
  mov    %r14,%rdi
  mov    %rsp,%rdx
  call   <hex2base64@plt>
  xor    %eax,%eax
  mov    %rsp,%rsi
  lea    D51(%rip),%rdi
  call   <printf@plt>
  mov    -0x28(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L63
  lea    -0x18(%rbp),%rsp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %rbp
  ret
  nop
L66:
  orq    $0x0,-0x8(%rsp,%rdx,1)
  jmp    L25
  nopl   0x0(%rax,%rax,1)
L36:
  orq    $0x0,-0x8(%rsp,%rdx,1)
  jmp    L31
L63:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: tag: D31
type: string
name: unpack_data
arguments: tag: D45
type: byte[16]
name: unpack_data
arguments: tag: D34
type: byte[16]
name: unpack_data
arguments: tag: D29
type: byte[16]
name: unpack_data
arguments: tag: D52
type: byte[16]
name: unpack_data
arguments: tag: D74
type: byte[16]
name: unpack_data
arguments: tag: D33
type: byte[16]
name: unpack_data
arguments: tag: D51
type: string

tool: D31: challenge 1:

tool: {"D45": [0x34,0x39,0x32,0x37,0x36,0x64,0x32,0x30,0x36,0x62,0x36,0x39,0x36,0x63,0x36,0x63]}

tool: {"D34": [0x36,0x39,0x36,0x65,0x36,0x37,0x32,0x30,0x37,0x39,0x36,0x66,0x37,0x35,0x37,0x32]}

tool: {"D29": [0x32,0x30,0x36,0x32,0x37,0x32,0x36,0x31,0x36,0x39,0x36,0x65,0x32,0x30,0x36,0x63]}

tool: {"D52": [0x36,0x39,0x36,0x62,0x36,0x35,0x32,0x30,0x36,0x31,0x32,0x30,0x37,0x30,0x36,0x66]}

tool: {"D74": [0x36,0x39,0x37,0x33,0x36,0x66,0x36,0x65,0x36,0x66,0x37,0x35,0x37,0x33,0x32,0x30]}

tool: {"D33": [0x36,0x64,0x37,0x35,0x37,0x33,0x36,0x38,0x37,0x32,0x36,0x66,0x36,0x66,0x36,0x64]}

tool: D51: base64 = '%s'


assistant: ```c
void challenge1() {
  printf("challenge 1:\n");
  char in[] = "49276d206b696c6c696e6720796f757220627261696e206c"
              "696b65206120706f69736f6e6f7573206d757368726f6f6d";
  int size = counthex(in);
  unsigned char hexarray[size];
  str2hex(in, hexarray);
  printhex(hexarray, size);
  char base64[base64length(size)];
  hex2base64(hexarray, size, base64);
  printf("base64 = '%s'\n", base64);
}
```