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

```asm
<test_hex>:
  endbr64
  push   %rbx
  sub    $0x70,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x68(%rsp)
  xor    %eax,%eax
  movabs $0xa380ff83122f04,%rax
  mov    %rax,0x8(%rsp)
  movabs $0x3338323146323430,%rax
  movabs $0x3030334130384646,%rdx
  mov    %rax,0x10(%rsp)
  mov    %rdx,0x18(%rsp)
  movb   $0x0,0x20(%rsp)
  movabs $0x3338323166323430,%rax
  movabs $0x3030336130386666,%rdx
  mov    %rax,0x30(%rsp)
  mov    %rdx,0x38(%rsp)
  movb   $0x0,0x40(%rsp)
  lea    D129(%rip),%rdi
  call   <printf@plt>
  lea    0x8(%rsp),%rsi
  lea    0x50(%rsp),%rbx
  mov    $0x8,%edx
  mov    %rbx,%rdi
  call   <libkeccak_behex_lower@plt>
  lea    0x30(%rsp),%rsi
  mov    %rbx,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L78
  lea    D71(%rip),%rdi
  call   <printf@plt>
  lea    D10(%rip),%rdi
  call   <printf@plt>
  lea    0x8(%rsp),%rsi
  mov    $0x8,%edx
  mov    %rbx,%rdi
  call   <libkeccak_behex_upper@plt>
  lea    0x10(%rsp),%rsi
  mov    %rbx,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L11
  lea    D71(%rip),%rdi
  call   <printf@plt>
  lea    D77(%rip),%rdi
  call   <printf@plt>
  lea    0x10(%rsp),%rsi
  lea    0x50(%rsp),%rbx
  mov    %rbx,%rdi
  call   <libkeccak_unhex@plt>
  lea    0x8(%rsp),%rdi
  mov    $0x8,%edx
  mov    %rbx,%rsi
  call   <memcmp@plt>
  test   %eax,%eax
  jne    L79
  lea    D71(%rip),%rdi
  call   <printf@plt>
  lea    D46(%rip),%rdi
  call   <printf@plt>
  lea    0x30(%rsp),%rsi
  lea    0x50(%rsp),%rbx
  mov    %rbx,%rdi
  call   <libkeccak_unhex@plt>
  lea    0x8(%rsp),%rdi
  mov    $0x8,%edx
  mov    %rbx,%rsi
  call   <memcmp@plt>
  mov    %eax,%ebx
  test   %eax,%eax
  jne    L19
  lea    D71(%rip),%rdi
  call   <printf@plt>
  lea    D26(%rip),%rdi
  call   <printf@plt>
L50:
  mov    0x68(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L75
  mov    %ebx,%eax
  add    $0x70,%rsp
  pop    %rbx
  ret
L78:
  lea    D55(%rip),%rdi
  call   <printf@plt>
  mov    $0xffffffff,%ebx
  jmp    L50
L11:
  lea    D55(%rip),%rdi
  call   <printf@plt>
  mov    $0xffffffff,%ebx
  jmp    L50
L79:
  lea    D55(%rip),%rdi
  call   <printf@plt>
  mov    $0xffffffff,%ebx
  jmp    L50
L19:
  lea    D55(%rip),%rdi
  call   <printf@plt>
  mov    $0xffffffff,%ebx
  jmp    L50
L75:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_label: D129
type_guessed: string
name: parse_data
arguments: data_label: D71
type_guessed: string
name: parse_data
arguments: data_label: D10
type_guessed: string
name: parse_data
arguments: data_label: D77
type_guessed: string
name: parse_data
arguments: data_label: D46
type_guessed: string
name: parse_data
arguments: data_label: D26
type_guessed: string
name: parse_data
arguments: data_label: D55
type_guessed: string

tool: D129: Testing libkeccak_behex_lower: 

tool: D71: OK


tool: D10: Testing libkeccak_behex_upper: 

tool: D77: Testing libkeccak_unhex on uppercase: 

tool: D46: Testing libkeccak_unhex on lowercase: 

tool: D26: 


tool: D55: Fail


assistant: ```c
int test_hex(void) {
  const unsigned char bindata[] = {0x04, 0x2F, 0x12, 0x83, 0xFF, 0x80, 0xA3, 0x00};
  const char hexdata_upper[] = "042F1283FF80A300";
  const char hexdata_lower[] = "042f1283ff80a300";
  char hextest[2 * 8 + 1];
  printf("Testing libkeccak_behex_lower: ");
  libkeccak_behex_lower(hextest, (const char *)bindata, 8);
  if (!strcmp(hextest, hexdata_lower)) {
    printf("OK\n");
  } else {
    printf("Fail\n");
    return -1;
  }
  printf("Testing libkeccak_behex_upper: ");
  libkeccak_behex_upper(hextest, (const char *)bindata, 8);
  if (!strcmp(hextest, hexdata_upper)) {
    printf("OK\n");
  } else {
    printf("Fail\n");
    return -1;
  }
  printf("Testing libkeccak_unhex on uppercase: ");
  libkeccak_unhex(hextest, hexdata_upper);
  if (!memcmp(bindata, hextest, 8 * sizeof(char))) {
    printf("OK\n");
  } else {
    printf("Fail\n");
    return -1;
  }
  printf("Testing libkeccak_unhex on lowercase: ");
  libkeccak_unhex(hextest, hexdata_lower);
  if (!memcmp(bindata, hextest, 8 * sizeof(char))) {
    printf("OK\n");
  } else {
    printf("Fail\n");
    return -1;
  }
  printf("\n");
  return 0;
}
```