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

```asm
<_test_iclass_key_permutation>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  sub    $0x98,%rsp
  movdqa D34(%rip),%xmm0
  movdqa D39(%rip),%xmm1
  mov    %fs:0x28,%rax
  mov    %rax,0x88(%rsp)
  xor    %eax,%eax
  lea    0x20(%rsp),%rbp
  mov    %rsp,%r13
  lea    0x60(%rsp),%r12
  movaps %xmm0,(%rsp)
  mov    %rbp,%rsi
  mov    %r13,%rdi
  lea    0x40(%rsp),%r14
  movdqa D77(%rip),%xmm0
  movaps %xmm1,0x40(%rsp)
  movdqa D41(%rip),%xmm1
  movaps %xmm0,0x10(%rsp)
  pxor   %xmm0,%xmm0
  movaps %xmm0,0x20(%rsp)
  movaps %xmm0,0x30(%rsp)
  movaps %xmm1,0x50(%rsp)
  movaps %xmm0,0x60(%rsp)
  movaps %xmm0,0x70(%rsp)
  call   <permutekey@plt>
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <permutekey_rev@plt>
  mov    $0x8,%edx
  mov    %r14,%rsi
  mov    %rbp,%rdi
  call   <memcmp@plt>
  test   %rax,%rax
  jne    L20
  mov    $0x8,%edx
  mov    %r12,%rsi
  mov    %r13,%rdi
  call   <memcmp@plt>
  test   %rax,%rax
  jne    L17
  lea    D42(%rip),%rdi
  call   <prnlog@plt>
  xor    %eax,%eax
L31:
  mov    0x88(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L23
  add    $0x98,%rsp
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
  nopw   0x0(%rax,%rax,1)
L17:
  lea    D27(%rip),%rdi
  call   <prnlog@plt>
  mov    $0x8,%edx
  mov    %r13,%rsi
  lea    D35(%rip),%rdi
  call   <printarr@plt>
  mov    $0x8,%edx
  mov    %r12,%rsi
  lea    D60(%rip),%rdi
  call   <printarr@plt>
  mov    $0x1,%eax
  jmp    L31
  nopl   0x0(%rax,%rax,1)
L20:
  lea    D99(%rip),%rdi
  call   <prnlog@plt>
  mov    $0x8,%edx
  mov    %rbp,%rsi
  lea    D3(%rip),%rdi
  call   <printarr@plt>
  mov    $0x8,%edx
  mov    %r14,%rsi
  lea    D97(%rip),%rdi
  call   <printarr@plt>
  mov    $0x1,%eax
  jmp    L31
L23:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: data_tag: D34
type_infered: byte[16]
name: read_data
arguments: data_tag: D39
type_infered: byte[16]
name: read_data
arguments: data_tag: D77
type_infered: byte[16]
name: read_data
arguments: data_tag: D41
type_infered: byte[16]
name: read_data
arguments: data_tag: D42
type_infered: string
name: read_data
arguments: data_tag: D27
type_infered: string
name: read_data
arguments: data_tag: D35
type_infered: string
name: read_data
arguments: data_tag: D60
type_infered: string
name: read_data
arguments: data_tag: D99
type_infered: string
name: read_data
arguments: data_tag: D3
type_infered: string
name: read_data
arguments: data_tag: D97
type_infered: string

tool: {"D34": [0x6c,0x00,0x00,0x00,0x8d,0x00,0x00,0x00,0x44,0x00,0x00,0x00,0xf9,0x00,0x00,0x00]}

tool: {"D39": [0x8a,0x00,0x00,0x00,0x0d,0x00,0x00,0x00,0xb9,0x00,0x00,0x00,0x88,0x00,0x00,0x00]}

tool: {"D77": [0x2a,0x00,0x00,0x00,0x2d,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0xbf,0x00,0x00,0x00]}

tool: {"D41": [0xbb,0x00,0x00,0x00,0xa7,0x00,0x00,0x00,0x90,0x00,0x00,0x00,0xea,0x00,0x00,0x00]}

tool: D42: [+] Iclass key permutation OK!

tool: D27: Error with reverse iclass key permute

tool: D35: testcase

tool: D60: testcase_output_rev

tool: D99: Error with iclass key permute!

tool: D3: testcase_output

tool: D97: testcase_output_correct

assistant: ```c
int _test_iclass_key_permutation() {
  uint8_t testcase[8] = {0x6c, 0x8d, 0x44, 0xf9, 0x2a, 0x2d, 0x01, 0xbf};
  uint8_t testcase_output[8] = {0};
  uint8_t testcase_output_correct[8] = {0x8a, 0x0d, 0xb9, 0x88, 0xbb, 0xa7, 0x90, 0xea};
  uint8_t testcase_output_rev[8] = {0};
  permutekey(testcase, testcase_output);
  permutekey_rev(testcase_output, testcase_output_rev);
  if (memcmp(testcase_output, testcase_output_correct, 8) != 0) {
    prnlog("Error with iclass key permute!");
    printarr("testcase_output", testcase_output, 8);
    printarr("testcase_output_correct", testcase_output_correct, 8);
    return 1;
  }
  if (memcmp(testcase, testcase_output_rev, 8) != 0) {
    prnlog("Error with reverse iclass key permute");
    printarr("testcase", testcase, 8);
    printarr("testcase_output_rev", testcase_output_rev, 8);
    return 1;
  }
  prnlog("[+] Iclass key permutation OK!");
  return 0;
}
```