ylfeng/ReF-Decompile-dataset huggingface dataset:
user: 这段汇编代码用C语言表示是什么样的?

```asm
<_xos_utf8_put_char>:
  endbr64
  mov    %rdi,%rax
  cmp    $0x7f,%esi
  jg     L36
  mov    %sil,(%rdi)
  lea    0x1(%rdi),%r8
L59:
  mov    %r8,%rax
  ret
  nopw   0x0(%rax,%rax,1)
L36:
  mov    %esi,%ecx
  mov    %esi,%edx
  and    $0x3f,%ecx
  sar    $0x6,%edx
  or     $0xffffff80,%ecx
  mov    %ecx,%edi
  cmp    $0x7ff,%esi
  jg     L24
  or     $0xffffffc0,%edx
  lea    0x2(%rax),%r8
  mov    %cl,0x1(%rax)
  mov    %dl,(%rax)
  mov    %r8,%rax
  ret
  nopw   0x0(%rax,%rax,1)
L24:
  mov    %esi,%ecx
  and    $0x3f,%edx
  sar    $0xc,%ecx
  or     $0xffffff80,%edx
  cmp    $0xffff,%esi
  jle    L57
  mov    %esi,%r8d
  and    $0x3f,%ecx
  sar    $0x12,%r8d
  or     $0xffffff80,%ecx
  cmp    $0x1fffff,%esi
  jg     L46
  or     $0xfffffff0,%r8d
  mov    %cl,0x1(%rax)
  mov    %r8b,(%rax)
  lea    0x4(%rax),%r8
  mov    %dl,0x2(%rax)
  mov    %dil,0x3(%rax)
  jmp    L59
  nop
L57:
  or     $0xffffffe0,%ecx
  lea    0x3(%rax),%r8
  mov    %dl,0x1(%rax)
  mov    %cl,(%rax)
  mov    %dil,0x2(%rax)
  mov    %r8,%rax
  ret
  nopl   0x0(%rax)
L46:
  mov    %esi,%r9d
  and    $0x3f,%r8d
  sar    $0x18,%r9d
  or     $0xffffff80,%r8d
  cmp    $0x3ffffff,%esi
  jg     L13
  or     $0xfffffff8,%r9d
  mov    %r8b,0x1(%rax)
  lea    0x5(%rax),%r8
  mov    %r9b,(%rax)
  mov    %cl,0x2(%rax)
  mov    %dl,0x3(%rax)
  mov    %dil,0x4(%rax)
  jmp    L59
  nopl   (%rax)
L13:
  sar    $0x1e,%esi
  and    $0x3f,%r9d
  mov    %r8b,0x2(%rax)
  lea    0x6(%rax),%r8
  or     $0xfffffffc,%esi
  or     $0xffffff80,%r9d
  mov    %cl,0x3(%rax)
  mov    %sil,(%rax)
  mov    %r9b,0x1(%rax)
  mov    %dl,0x4(%rax)
  mov    %dil,0x5(%rax)
  jmp    L59
```

assistant: ```c
char *_xos_utf8_put_char(char *out, int chr) {
  if (chr < 0x80) {
    *out++ = chr;
  } else if (chr < 0x800) {
    *out++ = 0xc0 | ((chr >> 6) & 0x1f);
    *out++ = 0x80 | (chr & 0x3f);
  } else if (chr < 0x10000) {
    *out++ = 0xe0 | ((chr >> 12) & 0x0f);
    *out++ = 0x80 | ((chr >> 6) & 0x3f);
    *out++ = 0x80 | (chr & 0x3f);
  } else if (chr < 0x200000) {
    *out++ = 0xf0 | ((chr >> 18) & 0x07);
    *out++ = 0x80 | ((chr >> 12) & 0x3f);
    *out++ = 0x80 | ((chr >> 6) & 0x3f);
    *out++ = 0x80 | (chr & 0x3f);
  } else if (chr < 0x4000000) {
    *out++ = 0xf8 | ((chr >> 24) & 0x03);
    *out++ = 0x80 | ((chr >> 18) & 0x3f);
    *out++ = 0x80 | ((chr >> 12) & 0x3f);
    *out++ = 0x80 | ((chr >> 6) & 0x3f);
    *out++ = 0x80 | (chr & 0x3f);
  } else if (chr < 0x80000000) {
    *out++ = 0xfc | ((chr >> 30) & 0x01);
    *out++ = 0x80 | ((chr >> 24) & 0x3f);
    *out++ = 0x80 | ((chr >> 18) & 0x3f);
    *out++ = 0x80 | ((chr >> 12) & 0x3f);
    *out++ = 0x80 | ((chr >> 6) & 0x3f);
    *out++ = 0x80 | (chr & 0x3f);
  }
  return out;
}
```
user: What is the c source code of the assembly code below?

```asm
<glmMatrixFromVectors2d>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x8(%rbp)
  mov    %rsi,-0x10(%rbp)
  mov    %rdx,-0x18(%rbp)
  mov    -0x10(%rbp),%rax
  movsd  (%rax),%xmm0
  mov    -0x8(%rbp),%rax
  movsd  %xmm0,(%rax)
  mov    -0x8(%rbp),%rax
  lea    0x10(%rax),%rdx
  mov    -0x18(%rbp),%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,(%rdx)
  mov    -0x10(%rbp),%rax
  lea    0x8(%rax),%rdx
  mov    -0x8(%rbp),%rax
  add    $0x8,%rax
  movsd  (%rdx),%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x18(%rbp),%rax
  lea    0x8(%rax),%rdx
  mov    -0x8(%rbp),%rax
  add    $0x18,%rax
  movsd  (%rdx),%xmm0
  movsd  %xmm0,(%rax)
  nop
  pop    %rbp
  ret
```

assistant: ```c
void glmMatrixFromVectors2d(double m[4], const double v1[2], const double v2[2]) {
  m[0] = v1[0];
  m[2] = v2[0];
  m[1] = v1[1];
  m[3] = v2[1];
}
```
user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<glmMatrixFromVectors2d>:
  endbr64
  movsd  (%rsi),%xmm0
  movsd  %xmm0,(%rdi)
  movsd  (%rdx),%xmm0
  movsd  %xmm0,0x10(%rdi)
  movsd  0x8(%rsi),%xmm0
  movsd  %xmm0,0x8(%rdi)
  movsd  0x8(%rdx),%xmm0
  movsd  %xmm0,0x18(%rdi)
  ret
```

assistant: ```c
void glmMatrixFromVectors2d(double m[4], const double v1[2], const double v2[2]) {
  m[0] = v1[0];
  m[2] = v2[0];
  m[1] = v1[1];
  m[3] = v2[1];
}
```
user: What is the c source code of the assembly code below:

```asm
<glmMatrixFromVectors2d>:
  endbr64
  movsd  (%rsi),%xmm0
  movsd  %xmm0,(%rdi)
  movsd  (%rdx),%xmm0
  movsd  %xmm0,0x10(%rdi)
  movsd  0x8(%rsi),%xmm0
  movsd  %xmm0,0x8(%rdi)
  movsd  0x8(%rdx),%xmm0
  movsd  %xmm0,0x18(%rdi)
  ret
```

assistant: ```c
void glmMatrixFromVectors2d(double m[4], const double v1[2], const double v2[2]) {
  m[0] = v1[0];
  m[2] = v2[0];
  m[1] = v1[1];
  m[3] = v2[1];
}
```
user: Demonstrate the C code that generates the assembly output below:

```asm
<glmMatrixFromVectors2d>:
  endbr64
  movsd  (%rsi),%xmm0
  movsd  %xmm0,(%rdi)
  movsd  (%rdx),%xmm0
  movsd  %xmm0,0x10(%rdi)
  movsd  0x8(%rsi),%xmm0
  movsd  %xmm0,0x8(%rdi)
  movsd  0x8(%rdx),%xmm0
  movsd  %xmm0,0x18(%rdi)
  ret
```

assistant: ```c
void glmMatrixFromVectors2d(double m[4], const double v1[2], const double v2[2]) {
  m[0] = v1[0];
  m[2] = v2[0];
  m[1] = v1[1];
  m[3] = v2[1];
}
```
user: 下面的汇编指令对应的C源代码是什么：

```asm
<trim>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    -0x28(%rbp),%rax
  mov    %rax,-0x10(%rbp)
  mov    -0x28(%rbp),%rax
  mov    %rax,-0x8(%rbp)
  jmp    L37
L26:
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  add    $0x1,%eax
  mov    %eax,%edx
  mov    -0x10(%rbp),%rax
  mov    %dl,(%rax)
L37:
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x20,%al
  je     L26
  mov    -0x10(%rbp),%rax
  cmp    -0x28(%rbp),%rax
  je     L15
  jmp    L27
L59:
  mov    -0x10(%rbp),%rdx
  lea    0x1(%rdx),%rax
  mov    %rax,-0x10(%rbp)
  mov    -0x8(%rbp),%rax
  lea    0x1(%rax),%rcx
  mov    %rcx,-0x8(%rbp)
  movzbl (%rdx),%edx
  mov    %dl,(%rax)
L27:
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L59
  mov    -0x10(%rbp),%rax
  add    $0x1,%rax
  movb   $0x0,(%rax)
L15:
  mov    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  cltq
  lea    -0x1(%rax),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x18(%rbp)
  jmp    L50
L52:
  subq   $0x1,-0x18(%rbp)
L50:
  mov    -0x18(%rbp),%rax
  cmp    -0x28(%rbp),%rax
  jbe    L53
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x20,%al
  je     L52
L53:
  mov    -0x18(%rbp),%rax
  add    $0x1,%rax
  movb   $0x0,(%rax)
  nop
  leave
  ret
```

assistant: ```c
void trim(char *str) {
  char *end, *leading = str, *trailing = str;
  while (*leading == ' ')
    (*leading)++;
  if (leading != str) {
    while (*leading != '\0')
      *trailing++ = *leading++;
    *(leading + 1) = '\0';
  }
  end = str + strlen(str) - 1;
  while (end > str && *end == ' ')
    end--;
  *(end + 1) = '\0';
}
```
user: What is the c source code of the assembly code below:

```asm
<trim>:
  endbr64
  push   %rbx
  mov    %rdi,%rbx
  cmpb   $0x20,(%rdi)
  jne    L0
  movb   $0x21,(%rdi)
L0:
  mov    %rbx,%rdi
  call   <strlen@plt>
  cltq
  lea    -0x1(%rbx,%rax,1),%rax
  cmp    %rax,%rbx
  jae    L21
L34:
  cmpb   $0x20,(%rax)
  jne    L21
  sub    $0x1,%rax
  cmp    %rax,%rbx
  jne    L34
  mov    %rbx,%rax
L21:
  movb   $0x0,0x1(%rax)
  pop    %rbx
  ret
```

assistant: ```c
void trim(char *str) {
  char *end, *leading = str, *trailing = str;
  while (*leading == ' ')
    (*leading)++;
  if (leading != str) {
    while (*leading != '\0')
      *trailing++ = *leading++;
    *(leading + 1) = '\0';
  }
  end = str + strlen(str) - 1;
  while (end > str && *end == ' ')
    end--;
  *(end + 1) = '\0';
}
```
user: What is the c source code of the assembly code below?

```asm
<trim>:
  endbr64
  push   %rbx
  cmpb   $0x20,(%rdi)
  mov    %rdi,%rbx
  jne    L0
  movb   $0x21,(%rdi)
L0:
  mov    %rbx,%rdi
  call   <strlen@plt>
  cltq
  lea    -0x1(%rbx,%rax,1),%rax
  cmp    %rax,%rbx
  jb     L6
  jmp    L40
  cs nopw 0x0(%rax,%rax,1)
L37:
  sub    $0x1,%rax
  cmp    %rax,%rbx
  je     L40
L6:
  cmpb   $0x20,(%rax)
  je     L37
L40:
  movb   $0x0,0x1(%rax)
  pop    %rbx
  ret
```

assistant: ```c
void trim(char *str) {
  char *end, *leading = str, *trailing = str;
  while (*leading == ' ')
    (*leading)++;
  if (leading != str) {
    while (*leading != '\0')
      *trailing++ = *leading++;
    *(leading + 1) = '\0';
  }
  end = str + strlen(str) - 1;
  while (end > str && *end == ' ')
    end--;
  *(end + 1) = '\0';
}
```
user: What is the c source code of the assembly code below?

```asm
<trim>:
  endbr64
  push   %rbx
  cmpb   $0x20,(%rdi)
  mov    %rdi,%rbx
  jne    L1
  movb   $0x21,(%rdi)
L1:
  mov    %rbx,%rdi
  call   <strlen@plt>
  cltq
  lea    -0x1(%rbx,%rax,1),%rax
  cmp    %rax,%rbx
  jb     L8
  jmp    L45
  cs nopw 0x0(%rax,%rax,1)
L39:
  sub    $0x1,%rax
  cmp    %rax,%rbx
  je     L45
L8:
  cmpb   $0x20,(%rax)
  je     L39
L45:
  movb   $0x0,0x1(%rax)
  pop    %rbx
  ret
```

assistant: ```c
void trim(char *str) {
  char *end, *leading = str, *trailing = str;
  while (*leading == ' ')
    (*leading)++;
  if (leading != str) {
    while (*leading != '\0')
      *trailing++ = *leading++;
    *(leading + 1) = '\0';
  }
  end = str + strlen(str) - 1;
  while (end > str && *end == ' ')
    end--;
  *(end + 1) = '\0';
}
```
user: 这段汇编代码用C语言表示是什么样的：

```asm
<cshake128_256simple>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x1b0,%rsp
  mov    %rdi,-0x198(%rbp)
  mov    %rsi,-0x1a0(%rbp)
  mov    %rdx,-0x1a8(%rbp)
  mov    %rcx,-0x1b0(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    -0x180(%rbp),%rax
  mov    %rax,-0x188(%rbp)
  movl   $0x0,-0x18c(%rbp)
  jmp    L13
L35:
  mov    -0x18c(%rbp),%eax
  movq   $0x0,-0x180(%rbp,%rax,8)
  addl   $0x1,-0x18c(%rbp)
L13:
  cmpl   $0x18,-0x18c(%rbp)
  jbe    L35
  mov    -0x188(%rbp),%rax
  movb   $0x1,(%rax)
  mov    -0x188(%rbp),%rax
  add    $0x1,%rax
  movb   $0xa8,(%rax)
  mov    -0x188(%rbp),%rax
  add    $0x2,%rax
  movb   $0x1,(%rax)
  mov    -0x188(%rbp),%rax
  add    $0x3,%rax
  movb   $0x0,(%rax)
  mov    -0x188(%rbp),%rax
  add    $0x4,%rax
  movb   $0x1,(%rax)
  mov    -0x1a0(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,%edx
  mov    -0x188(%rbp),%rax
  add    $0x5,%rax
  shl    $0x3,%edx
  mov    %dl,(%rax)
  movl   $0x0,-0x18c(%rbp)
  jmp    L29
L6:
  mov    -0x18c(%rbp),%edx
  mov    -0x1a0(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%edx
  mov    -0x18c(%rbp),%eax
  add    $0x6,%eax
  mov    %eax,%ecx
  mov    -0x188(%rbp),%rax
  add    %rcx,%rax
  mov    %dl,(%rax)
  addl   $0x1,-0x18c(%rbp)
L29:
  mov    -0x1a0(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  cmp    %eax,-0x18c(%rbp)
  jb     L6
  lea    -0x180(%rbp),%rax
  mov    %rax,%rdi
  call   <KeccakF1600_StatePermute@plt>
  mov    -0x1b0(%rbp),%rcx
  mov    -0x1a8(%rbp),%rdx
  lea    -0x180(%rbp),%rax
  mov    $0x4,%r8d
  mov    $0xa8,%esi
  mov    %rax,%rdi
  call   <keccak_absorb@plt>
  lea    -0x180(%rbp),%rdx
  lea    -0xb0(%rbp),%rax
  mov    $0xa8,%ecx
  mov    $0x1,%esi
  mov    %rax,%rdi
  call   <keccak_squeezeblocks@plt>
  movl   $0x0,-0x18c(%rbp)
  jmp    L25
L66:
  mov    -0x18c(%rbp),%edx
  mov    -0x198(%rbp),%rax
  add    %rax,%rdx
  mov    -0x18c(%rbp),%eax
  movzbl -0xb0(%rbp,%rax,1),%eax
  mov    %al,(%rdx)
  addl   $0x1,-0x18c(%rbp)
L25:
  cmpl   $0x1f,-0x18c(%rbp)
  jbe    L66
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L48
  call   <__stack_chk_fail@plt>
L48:
  leave
  ret
```

assistant: ```c
void cshake128_256simple(unsigned char *output, const char *custom, const unsigned char *in, unsigned long long inlen) {
  uint64_t s[25];
  unsigned char *sep = (unsigned char *)s;
  unsigned char t[168];
  unsigned int i;
  for (i = 0; i < 25; i++)
    s[i] = 0;
  sep[0] = 0x01;
  sep[1] = 0xa8;
  sep[2] = 0x01;
  sep[3] = 0x00;
  sep[4] = 0x01;
  sep[5] = 8 * strlen(custom);
  for (i = 0; i < strlen(custom); i++)
    sep[i + 6] = custom[i];
  KeccakF1600_StatePermute(s);
  keccak_absorb(s, 168, in, inlen, 0x04);
  keccak_squeezeblocks(t, 1, s, 168);
  for (i = 0; i < 32; i++)
    output[i] = t[i];
}
```
user: 提供的汇编代码用C语言表示会是什么样子：

```asm
<cshake128_256simple>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x180,%rsp
  mov    %rdi,%rbp
  mov    %rsi,%r12
  mov    %rdx,%r13
  mov    %rcx,%r14
  mov    %fs:0x28,%rax
  mov    %rax,0x178(%rsp)
  xor    %eax,%eax
  mov    %rsp,%rax
  lea    0xc8(%rsp),%rdx
L2:
  movq   $0x0,(%rax)
  add    $0x8,%rax
  cmp    %rdx,%rax
  jne    L2
  movb   $0x1,(%rsp)
  movb   $0xa8,0x1(%rsp)
  movb   $0x1,0x2(%rsp)
  movb   $0x0,0x3(%rsp)
  movb   $0x1,0x4(%rsp)
  mov    %r12,%rdi
  call   <strlen@plt>
  shl    $0x3,%eax
  mov    %al,0x5(%rsp)
  mov    $0x0,%ebx
  jmp    L1
L4:
  lea    0x6(%rbx),%eax
  mov    %ebx,%edx
  movzbl (%r12,%rdx,1),%edx
  mov    %dl,(%rsp,%rax,1)
  add    $0x1,%ebx
L1:
  mov    %r12,%rdi
  call   <strlen@plt>
  cmp    %ebx,%eax
  ja     L4
  mov    %rsp,%rbx
  mov    %rbx,%rdi
  call   <KeccakF1600_StatePermute@plt>
  mov    $0x4,%r8d
  mov    %r14,%rcx
  mov    %r13,%rdx
  mov    $0xa8,%esi
  mov    %rbx,%rdi
  call   <keccak_absorb@plt>
  lea    0xd0(%rsp),%rdi
  mov    $0xa8,%ecx
  mov    %rbx,%rdx
  mov    $0x1,%esi
  call   <keccak_squeezeblocks@plt>
  mov    $0x0,%eax
L48:
  movzbl 0xd0(%rsp,%rax,1),%edx
  mov    %dl,0x0(%rbp,%rax,1)
  add    $0x1,%rax
  cmp    $0x20,%rax
  jne    L48
  mov    0x178(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L35
  add    $0x180,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L35:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void cshake128_256simple(unsigned char *output, const char *custom, const unsigned char *in, unsigned long long inlen) {
  uint64_t s[25];
  unsigned char *sep = (unsigned char *)s;
  unsigned char t[168];
  unsigned int i;
  for (i = 0; i < 25; i++)
    s[i] = 0;
  sep[0] = 0x01;
  sep[1] = 0xa8;
  sep[2] = 0x01;
  sep[3] = 0x00;
  sep[4] = 0x01;
  sep[5] = 8 * strlen(custom);
  for (i = 0; i < strlen(custom); i++)
    sep[i + 6] = custom[i];
  KeccakF1600_StatePermute(s);
  keccak_absorb(s, 168, in, inlen, 0x04);
  keccak_squeezeblocks(t, 1, s, 168);
  for (i = 0; i < 32; i++)
    output[i] = t[i];
}
```
user: What is the c source code of the assembly code below:

```asm
<cshake128_256simple>:
  endbr64
  push   %r15
  mov    %rcx,%r15
  mov    $0x19,%ecx
  push   %r14
  mov    %rdx,%r14
  push   %r13
  mov    %rdi,%r13
  push   %r12
  push   %rbp
  mov    %rsi,%rbp
  push   %rbx
  xor    %ebx,%ebx
  sub    $0x188,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x178(%rsp)
  xor    %eax,%eax
  mov    %rsp,%r12
  mov    %r12,%rdi
  rep stos %rax,%es:(%rdi)
  mov    $0xffffa801,%eax
  mov    %rsi,%rdi
  movb   $0x1,0x2(%rsp)
  mov    %ax,(%rsp)
  movb   $0x1,0x4(%rsp)
  call   <strlen@plt>
  shl    $0x3,%eax
  mov    %al,0x5(%rsp)
  jmp    L22
  nopl   0x0(%rax,%rax,1)
L15:
  mov    %ebx,%edx
  lea    0x6(%rbx),%eax
  add    $0x1,%ebx
  movzbl 0x0(%rbp,%rdx,1),%edx
  mov    %dl,(%rsp,%rax,1)
L22:
  mov    %rbp,%rdi
  call   <strlen@plt>
  cmp    %ebx,%eax
  ja     L15
  mov    %r12,%rdi
  call   <KeccakF1600_StatePermute@plt>
  mov    %r15,%rcx
  mov    %r14,%rdx
  mov    $0xa8,%esi
  mov    $0x4,%r8d
  mov    %r12,%rdi
  call   <keccak_absorb@plt>
  lea    0xd0(%rsp),%rdi
  mov    $0xa8,%ecx
  mov    %r12,%rdx
  mov    $0x1,%esi
  call   <keccak_squeezeblocks@plt>
  movdqa 0xd0(%rsp),%xmm0
  movdqa 0xe0(%rsp),%xmm1
  movups %xmm0,0x0(%r13)
  movups %xmm1,0x10(%r13)
  mov    0x178(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L19
  add    $0x188,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L19:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void cshake128_256simple(unsigned char *output, const char *custom, const unsigned char *in, unsigned long long inlen) {
  uint64_t s[25];
  unsigned char *sep = (unsigned char *)s;
  unsigned char t[168];
  unsigned int i;
  for (i = 0; i < 25; i++)
    s[i] = 0;
  sep[0] = 0x01;
  sep[1] = 0xa8;
  sep[2] = 0x01;
  sep[3] = 0x00;
  sep[4] = 0x01;
  sep[5] = 8 * strlen(custom);
  for (i = 0; i < strlen(custom); i++)
    sep[i + 6] = custom[i];
  KeccakF1600_StatePermute(s);
  keccak_absorb(s, 168, in, inlen, 0x04);
  keccak_squeezeblocks(t, 1, s, 168);
  for (i = 0; i < 32; i++)
    output[i] = t[i];
}
```
user: Translate the below assembly code into C programming language:

```asm
<cshake128_256simple>:
  endbr64
  push   %r15
  mov    %rcx,%r15
  mov    $0x19,%ecx
  push   %r14
  mov    %rdx,%r14
  push   %r13
  mov    %rdi,%r13
  push   %r12
  push   %rbp
  mov    %rsi,%rbp
  push   %rbx
  xor    %ebx,%ebx
  sub    $0x188,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x178(%rsp)
  xor    %eax,%eax
  mov    %rsp,%r12
  mov    %r12,%rdi
  rep stos %rax,%es:(%rdi)
  mov    %rsi,%rdi
  movl   $0x1a801,(%rsp)
  movb   $0x1,0x4(%rsp)
  call   <strlen@plt>
  shl    $0x3,%eax
  mov    %al,0x5(%rsp)
  jmp    L18
  nopl   0x0(%rax)
L1:
  mov    %ebx,%edx
  lea    0x6(%rbx),%eax
  add    $0x1,%ebx
  movzbl 0x0(%rbp,%rdx,1),%edx
  mov    %dl,(%rsp,%rax,1)
L18:
  mov    %rbp,%rdi
  call   <strlen@plt>
  cmp    %ebx,%eax
  ja     L1
  mov    %r12,%rdi
  call   <KeccakF1600_StatePermute@plt>
  mov    %r15,%rcx
  mov    %r14,%rdx
  mov    $0xa8,%esi
  mov    $0x4,%r8d
  mov    %r12,%rdi
  call   <keccak_absorb@plt>
  lea    0xd0(%rsp),%rdi
  mov    $0xa8,%ecx
  mov    %r12,%rdx
  mov    $0x1,%esi
  call   <keccak_squeezeblocks@plt>
  movdqa 0xd0(%rsp),%xmm0
  movdqa 0xe0(%rsp),%xmm1
  movups %xmm0,0x0(%r13)
  movups %xmm1,0x10(%r13)
  mov    0x178(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L29
  add    $0x188,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L29:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void cshake128_256simple(unsigned char *output, const char *custom, const unsigned char *in, unsigned long long inlen) {
  uint64_t s[25];
  unsigned char *sep = (unsigned char *)s;
  unsigned char t[168];
  unsigned int i;
  for (i = 0; i < 25; i++)
    s[i] = 0;
  sep[0] = 0x01;
  sep[1] = 0xa8;
  sep[2] = 0x01;
  sep[3] = 0x00;
  sep[4] = 0x01;
  sep[5] = 8 * strlen(custom);
  for (i = 0; i < strlen(custom); i++)
    sep[i + 6] = custom[i];
  KeccakF1600_StatePermute(s);
  keccak_absorb(s, 168, in, inlen, 0x04);
  keccak_squeezeblocks(t, 1, s, 168);
  for (i = 0; i < 32; i++)
    output[i] = t[i];
}
```
user: 请将以下的汇编代码转换成C语言代码：

```asm
<log_are_strs_in_line>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  movl   $0x0,-0x14(%rbp)
  cmpq   $0x0,-0x28(%rbp)
  jne    L59
  mov    $0x1,%eax
  jmp    L4
L84:
  mov    -0x30(%rbp),%rax
  mov    %rax,-0x8(%rbp)
  movl   $0x0,-0x10(%rbp)
  movl   $0x1,-0xc(%rbp)
  jmp    L0
L66:
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x10(%rbp),%eax
  cltq
  shl    $0x3,%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x8(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strstr@plt>
  mov    %rax,-0x8(%rbp)
  cmpq   $0x0,-0x8(%rbp)
  jne    L38
  movl   $0x0,-0xc(%rbp)
  jmp    L46
L38:
  addl   $0x1,-0x10(%rbp)
L0:
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x10(%rbp),%eax
  cltq
  shl    $0x3,%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  test   %rax,%rax
  jne    L66
L46:
  cmpl   $0x0,-0xc(%rbp)
  je     L60
  mov    $0x1,%eax
  jmp    L4
L60:
  addl   $0x1,-0x14(%rbp)
L59:
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  test   %rax,%rax
  jne    L84
  mov    $0x0,%eax
L4:
  leave
  ret
```

assistant: ```c
int log_are_strs_in_line(const char **find_str_arr[], const char *line) {
  int i2c_drvr = 0;
  if (!find_str_arr)
    return 1;
  for (; find_str_arr[i2c_drvr]; ++i2c_drvr) {
    const char *found_str = line;
    int i = 0;
    bool all_found = true;
    for (; find_str_arr[i2c_drvr][i]; ++i) {
      found_str = strstr(found_str, find_str_arr[i2c_drvr][i]);
      if (!found_str) {
        all_found = false;
        break;
      }
    }
    if (all_found)
      return 1;
  }
  return 0;
}
```
user: What is the c source code of the assembly code below?

```asm
<log_are_strs_in_line>:
  endbr64
  test   %rdi,%rdi
  je     L82
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rsi,%r12
  mov    (%rdi),%rbx
  lea    0x8(%rdi),%rbp
  mov    $0x0,%eax
  test   %rbx,%rbx
  jne    L46
  jmp    L52
L70:
  mov    $0x1,%eax
  jmp    L52
L82:
  mov    $0x1,%eax
  ret
L88:
  add    $0x8,%rbp
  mov    -0x8(%rbp),%rbx
  test   %rbx,%rbx
  je     L36
L46:
  mov    (%rbx),%rsi
  test   %rsi,%rsi
  je     L70
  add    $0x8,%rbx
  mov    %r12,%rdi
L53:
  call   <strstr@plt>
  mov    %rax,%rdi
  test   %rax,%rax
  je     L88
  add    $0x8,%rbx
  mov    -0x8(%rbx),%rsi
  test   %rsi,%rsi
  jne    L53
  mov    $0x1,%eax
L52:
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L36:
  mov    $0x0,%eax
  jmp    L52
```

assistant: ```c
int log_are_strs_in_line(const char **find_str_arr[], const char *line) {
  int i2c_drvr = 0;
  if (!find_str_arr)
    return 1;
  for (; find_str_arr[i2c_drvr]; ++i2c_drvr) {
    const char *found_str = line;
    int i = 0;
    bool all_found = true;
    for (; find_str_arr[i2c_drvr][i]; ++i) {
      found_str = strstr(found_str, find_str_arr[i2c_drvr][i]);
      if (!found_str) {
        all_found = false;
        break;
      }
    }
    if (all_found)
      return 1;
  }
  return 0;
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<log_are_strs_in_line>:
  endbr64
  test   %rdi,%rdi
  je     L33
  push   %r12
  push   %rbp
  push   %rbx
  mov    (%rdi),%rbx
  test   %rbx,%rbx
  je     L8
  mov    %rsi,%r12
  lea    0x8(%rdi),%rbp
  nopl   0x0(%rax)
L27:
  mov    (%rbx),%rsi
  test   %rsi,%rsi
  je     L68
  add    $0x8,%rbx
  mov    %r12,%rdi
  jmp    L46
  nopl   0x0(%rax)
L52:
  mov    (%rbx),%rsi
  add    $0x8,%rbx
  test   %rsi,%rsi
  je     L68
L46:
  call   <strstr@plt>
  mov    %rax,%rdi
  test   %rax,%rax
  jne    L52
  mov    0x0(%rbp),%rbx
  add    $0x8,%rbp
  test   %rbx,%rbx
  jne    L27
L8:
  pop    %rbx
  xor    %eax,%eax
  pop    %rbp
  pop    %r12
  ret
  nopl   (%rax)
L68:
  pop    %rbx
  mov    $0x1,%eax
  pop    %rbp
  pop    %r12
  ret
L33:
  mov    $0x1,%eax
  ret
```

assistant: ```c
int log_are_strs_in_line(const char **find_str_arr[], const char *line) {
  int i2c_drvr = 0;
  if (!find_str_arr)
    return 1;
  for (; find_str_arr[i2c_drvr]; ++i2c_drvr) {
    const char *found_str = line;
    int i = 0;
    bool all_found = true;
    for (; find_str_arr[i2c_drvr][i]; ++i) {
      found_str = strstr(found_str, find_str_arr[i2c_drvr][i]);
      if (!found_str) {
        all_found = false;
        break;
      }
    }
    if (all_found)
      return 1;
  }
  return 0;
}
```
user: Translate the below assembly code into C programming language:

```asm
<log_are_strs_in_line>:
  endbr64
  test   %rdi,%rdi
  je     L9
  push   %r12
  push   %rbp
  push   %rbx
  mov    (%rdi),%rbx
  test   %rbx,%rbx
  je     L25
  mov    %rsi,%r12
  lea    0x8(%rdi),%rbp
  nopl   0x0(%rax)
L57:
  mov    (%rbx),%rsi
  test   %rsi,%rsi
  je     L69
  add    $0x8,%rbx
  mov    %r12,%rdi
  jmp    L4
  nopl   0x0(%rax)
L49:
  mov    (%rbx),%rsi
  add    $0x8,%rbx
  test   %rsi,%rsi
  je     L69
L4:
  call   <strstr@plt>
  mov    %rax,%rdi
  test   %rax,%rax
  jne    L49
  mov    0x0(%rbp),%rbx
  add    $0x8,%rbp
  test   %rbx,%rbx
  jne    L57
L25:
  pop    %rbx
  xor    %eax,%eax
  pop    %rbp
  pop    %r12
  ret
  nopl   (%rax)
L69:
  pop    %rbx
  mov    $0x1,%eax
  pop    %rbp
  pop    %r12
  ret
L9:
  mov    $0x1,%eax
  ret
```

assistant: ```c
int log_are_strs_in_line(const char **find_str_arr[], const char *line) {
  int i2c_drvr = 0;
  if (!find_str_arr)
    return 1;
  for (; find_str_arr[i2c_drvr]; ++i2c_drvr) {
    const char *found_str = line;
    int i = 0;
    bool all_found = true;
    for (; find_str_arr[i2c_drvr][i]; ++i) {
      found_str = strstr(found_str, find_str_arr[i2c_drvr][i]);
      if (!found_str) {
        all_found = false;
        break;
      }
    }
    if (all_found)
      return 1;
  }
  return 0;
}
```