ylfeng/ReF-Decompile-dataset huggingface dataset:
user: 下面的汇编指令对应的C源代码是什么:

```asm
<test_float>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x18(%rbp)
  movl   $0x0,-0x4(%rbp)
  jmp    L9
L15:
  mov    -0x4(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movss  D9(%rip),%xmm0
  movss  %xmm0,(%rax)
  addl   $0x1,-0x4(%rbp)
L9:
  mov    -0x4(%rbp),%eax
  cmp    $0x3f,%eax
  jbe    L15
  nop
  nop
  pop    %rbp
  ret
```

tool_calls: name: read_data
arguments: data_tag: D9
data_type: byte[4]

tool: {"D9": [0x00,0x00,0x00,0x40]}

assistant: ```c
void test_float(float *data) {
#pragma omp simd
  for (int i = 0; i < 256 / sizeof(float); ++i)
    data[i] = 2.0f;
}
```
user: Translate the below assembly code into C programming language:

```asm
<test_float>:
  endbr64
  lea    0x100(%rdi),%rax
  movss  D3(%rip),%xmm0
L3:
  movss  %xmm0,(%rdi)
  add    $0x4,%rdi
  cmp    %rax,%rdi
  jne    L3
  ret
```

tool_calls: name: read_data
arguments: label: D3
data_type: byte[4]

tool: {"D3": [0x00,0x00,0x00,0x40]}

assistant: ```c
void test_float(float *data) {
#pragma omp simd
  for (int i = 0; i < 256 / sizeof(float); ++i)
    data[i] = 2.0f;
}
```
user: 下面的汇编指令对应的C源代码是什么：

```asm
<test_float>:
  endbr64
  movss  D9(%rip),%xmm0
  lea    0x100(%rdi),%rax
  nopl   0x0(%rax,%rax,1)
L3:
  movss  %xmm0,(%rdi)
  add    $0x4,%rdi
  cmp    %rax,%rdi
  jne    L3
  ret
```

tool_calls: name: retrieve_data
arguments: tag: D9
type_infered: byte[4]

tool: {"D9": [0x00,0x00,0x00,0x40]}

assistant: ```c
void test_float(float *data) {
#pragma omp simd
  for (int i = 0; i < 256 / sizeof(float); ++i)
    data[i] = 2.0f;
}
```
user: 这段汇编代码用C语言表示是什么样的:

```asm
<test_float>:
  endbr64
  movaps D1(%rip),%xmm0
  movups %xmm0,(%rdi)
  movups %xmm0,0x10(%rdi)
  movups %xmm0,0x20(%rdi)
  movups %xmm0,0x30(%rdi)
  movups %xmm0,0x40(%rdi)
  movups %xmm0,0x50(%rdi)
  movups %xmm0,0x60(%rdi)
  movups %xmm0,0x70(%rdi)
  movups %xmm0,0x80(%rdi)
  movups %xmm0,0x90(%rdi)
  movups %xmm0,0xa0(%rdi)
  movups %xmm0,0xb0(%rdi)
  movups %xmm0,0xc0(%rdi)
  movups %xmm0,0xd0(%rdi)
  movups %xmm0,0xe0(%rdi)
  movups %xmm0,0xf0(%rdi)
  ret
```

tool_calls: name: read_data
arguments: data_label: D1
data_type: byte[16]

tool: {"D1": [0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x40]}

assistant: ```c
void test_float(float *data) {
#pragma omp simd
  for (int i = 0; i < 256 / sizeof(float); ++i)
    data[i] = 2.0f;
}
```
user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<pos_ceil>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  fldt   0x10(%rbp)
  fnstcw -0x12(%rbp)
  movzwl -0x12(%rbp),%eax
  or     $0xc,%ah
  mov    %ax,-0x14(%rbp)
  fldcw  -0x14(%rbp)
  fistpl -0x4(%rbp)
  fldcw  -0x12(%rbp)
  pxor   %xmm0,%xmm0
  cvtsi2ssl -0x4(%rbp),%xmm0
  movss  %xmm0,-0x18(%rbp)
  flds   -0x18(%rbp)
  fldt   0x10(%rbp)
  fucomip %st(1),%st
  jp     L15
  fldt   0x10(%rbp)
  fucomip %st(1),%st
  fstp   %st(0)
  jne    L20
  mov    -0x4(%rbp),%eax
  jmp    L21
L15:
  fstp   %st(0)
L20:
  mov    -0x4(%rbp),%eax
  add    $0x1,%eax
L21:
  pop    %rbp
  ret
```

assistant: ```c
unsigned int pos_ceil(long double num) {
  int inum = (int)num;
  if (num == (float)inum)
    return inum;
  return ((unsigned int)inum + 1);
}
```
user: 请从给定的汇编指令推导出C源代码:

```asm
<pos_ceil>:
  endbr64
  fldt   0x8(%rsp)
  fnstcw -0xa(%rsp)
  movzwl -0xa(%rsp),%eax
  or     $0xc,%ah
  mov    %ax,-0xc(%rsp)
  fld    %st(0)
  fldcw  -0xc(%rsp)
  fistpl -0x10(%rsp)
  fldcw  -0xa(%rsp)
  mov    -0x10(%rsp),%eax
  pxor   %xmm0,%xmm0
  cvtsi2ss %eax,%xmm0
  movss  %xmm0,-0x10(%rsp)
  flds   -0x10(%rsp)
  fucomip %st(1),%st
  fstp   %st(0)
  jp     L14
  mov    %eax,%edx
  je     L19
L14:
  lea    0x1(%rax),%edx
L19:
  mov    %edx,%eax
  ret
```

assistant: ```c
unsigned int pos_ceil(long double num) {
  int inum = (int)num;
  if (num == (float)inum)
    return inum;
  return ((unsigned int)inum + 1);
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<pos_ceil>:
  endbr64
  fnstcw -0xa(%rsp)
  fldt   0x8(%rsp)
  pxor   %xmm0,%xmm0
  movzwl -0xa(%rsp),%eax
  or     $0xc,%ah
  mov    %ax,-0xc(%rsp)
  fld    %st(0)
  fldcw  -0xc(%rsp)
  fistpl -0x10(%rsp)
  fldcw  -0xa(%rsp)
  mov    -0x10(%rsp),%eax
  cvtsi2ss %eax,%xmm0
  mov    %eax,%r8d
  movss  %xmm0,-0x10(%rsp)
  flds   -0x10(%rsp)
  fucomip %st(1),%st
  fstp   %st(0)
  jp     L3
  je     L15
L3:
  lea    0x1(%rax),%r8d
L15:
  mov    %r8d,%eax
  ret
```

assistant: ```c
unsigned int pos_ceil(long double num) {
  int inum = (int)num;
  if (num == (float)inum)
    return inum;
  return ((unsigned int)inum + 1);
}
```
user: 请从给定的汇编指令推导出C源代码：

```asm
<pos_ceil>:
  endbr64
  fnstcw -0xa(%rsp)
  fldt   0x8(%rsp)
  pxor   %xmm0,%xmm0
  movzwl -0xa(%rsp),%eax
  or     $0xc,%ah
  mov    %ax,-0xc(%rsp)
  fld    %st(0)
  fldcw  -0xc(%rsp)
  fistpl -0x10(%rsp)
  fldcw  -0xa(%rsp)
  mov    -0x10(%rsp),%eax
  cvtsi2ss %eax,%xmm0
  mov    %eax,%r8d
  movss  %xmm0,-0x10(%rsp)
  flds   -0x10(%rsp)
  fucomip %st(1),%st
  fstp   %st(0)
  jp     L13
  je     L16
L13:
  lea    0x1(%rax),%r8d
L16:
  mov    %r8d,%eax
  ret
```

assistant: ```c
unsigned int pos_ceil(long double num) {
  int inum = (int)num;
  if (num == (float)inum)
    return inum;
  return ((unsigned int)inum + 1);
}
```
user: What would the C source look like for the assembly code provided here?

```asm
<any>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x18(%rbp)
  mov    %rsi,-0x20(%rbp)
  movl   $0x0,-0x4(%rbp)
  mov    -0x4(%rbp),%eax
  mov    %eax,-0x8(%rbp)
  jmp    L23
L45:
  mov    -0x8(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%edx
  mov    -0x4(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x20(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  cmp    %al,%dl
  jne    L31
  mov    -0x8(%rbp),%eax
  jmp    L37
L31:
  mov    -0x4(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x4(%rbp)
  movslq %eax,%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L45
  movl   $0x0,-0x4(%rbp)
  addl   $0x1,-0x8(%rbp)
L23:
  mov    -0x8(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L31
  mov    $0xffffffff,%eax
L37:
  pop    %rbp
  ret
```

assistant: ```c
int any(char s1[], char s2[]) {
  int i, j;
  for (i = j = 0; s1[i] != '\0'; ++i) {
    while (s2[j++] != '\0') {
      if (s1[i] == s2[j]) {
        return i;
      }
    }
    j = 0;
  }
  return -1;
}
```
user: Translate the below assembly code into C programming language:

```asm
<any>:
  endbr64
  movzbl (%rdi),%edx
  mov    $0x0,%ecx
  mov    $0xffffffff,%r8d
  test   %dl,%dl
  je     L37
L44:
  mov    %ecx,%r8d
  mov    %rsi,%rax
L46:
  cmpb   $0x0,(%rax)
  je     L24
  add    $0x1,%rax
  cmp    %dl,(%rax)
  jne    L46
L37:
  mov    %r8d,%eax
  ret
L24:
  add    $0x1,%rcx
  movzbl (%rdi,%rcx,1),%edx
  test   %dl,%dl
  jne    L44
  mov    $0xffffffff,%r8d
  jmp    L37
```

assistant: ```c
int any(char s1[], char s2[]) {
  int i, j;
  for (i = j = 0; s1[i] != '\0'; ++i) {
    while (s2[j++] != '\0') {
      if (s1[i] == s2[j]) {
        return i;
      }
    }
    j = 0;
  }
  return -1;
}
```
user: 请从给定的汇编指令推导出C源代码：

```asm
<any>:
  endbr64
  movzbl (%rdi),%ecx
  test   %cl,%cl
  je     L0
  movzbl (%rsi),%r10d
  xor    %r8d,%r8d
  add    $0x1,%rsi
L38:
  mov    %r8d,%r9d
  mov    %rsi,%rdx
  mov    %r10d,%eax
  jmp    L32
  nopl   0x0(%rax)
L27:
  movzbl (%rdx),%eax
  add    $0x1,%rdx
  cmp    %cl,%al
  je     L39
L32:
  test   %al,%al
  jne    L27
  add    $0x1,%r8
  movzbl (%rdi,%r8,1),%ecx
  test   %cl,%cl
  jne    L38
L0:
  mov    $0xffffffff,%r9d
L39:
  mov    %r9d,%eax
  ret
```

assistant: ```c
int any(char s1[], char s2[]) {
  int i, j;
  for (i = j = 0; s1[i] != '\0'; ++i) {
    while (s2[j++] != '\0') {
      if (s1[i] == s2[j]) {
        return i;
      }
    }
    j = 0;
  }
  return -1;
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<any>:
  endbr64
  movzbl (%rdi),%edx
  xor    %ecx,%ecx
  test   %dl,%dl
  je     L9
L19:
  mov    %ecx,%r8d
  mov    %rsi,%rax
  jmp    L44
  nopl   (%rax)
L11:
  add    $0x1,%rax
  cmp    %dl,(%rax)
  je     L8
L44:
  cmpb   $0x0,(%rax)
  jne    L11
  add    $0x1,%rcx
  movzbl (%rdi,%rcx,1),%edx
  test   %dl,%dl
  jne    L19
L9:
  mov    $0xffffffff,%r8d
L8:
  mov    %r8d,%eax
  ret
```

assistant: ```c
int any(char s1[], char s2[]) {
  int i, j;
  for (i = j = 0; s1[i] != '\0'; ++i) {
    while (s2[j++] != '\0') {
      if (s1[i] == s2[j]) {
        return i;
      }
    }
    j = 0;
  }
  return -1;
}
```
user: 下面的汇编指令对应的C源代码是什么:

```asm
<quicly_encode_max_data_frame>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x10,%rsp
  mov    %rdi,-0x8(%rbp)
  mov    %esi,-0xc(%rbp)
  mov    -0x8(%rbp),%rax
  lea    0x4(%rax),%rdx
  mov    %rdx,-0x8(%rbp)
  movl   $0x10,(%rax)
  mov    -0xc(%rbp),%edx
  mov    -0x8(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <ptls_encode_quicint@plt>
  mov    %rax,-0x8(%rbp)
  mov    -0x8(%rbp),%rax
  leave
  ret
```

assistant: ```c
uint8_t *quicly_encode_max_data_frame(uint8_t *dst, uint64_t max_data) {
  *dst++ = 16;
  dst = ptls_encode_quicint(dst, max_data);
  return dst;
}
```
user: Translate the below assembly code into C programming language:

```asm
<quicly_encode_max_data_frame>:
  endbr64
  sub    $0x8,%rsp
  lea    0x4(%rdi),%rax
  movl   $0x10,(%rdi)
  mov    %rax,%rdi
  call   <ptls_encode_quicint@plt>
  add    $0x8,%rsp
  ret
```

assistant: ```c
uint8_t *quicly_encode_max_data_frame(uint8_t *dst, uint64_t max_data) {
  *dst++ = 16;
  dst = ptls_encode_quicint(dst, max_data);
  return dst;
}
```
user: 下面的汇编指令对应的C源代码是什么:

```asm
<quicly_encode_max_data_frame>:
  endbr64
  movl   $0x10,(%rdi)
  lea    0x4(%rdi),%r8
  mov    %r8,%rdi
  jmp    1050 <ptls_encode_quicint@plt>
```

assistant: ```c
uint8_t *quicly_encode_max_data_frame(uint8_t *dst, uint64_t max_data) {
  *dst++ = 16;
  dst = ptls_encode_quicint(dst, max_data);
  return dst;
}
```
user: What is the c source code of the assembly code below?

```asm
<quicly_encode_max_data_frame>:
  endbr64
  movl   $0x10,(%rdi)
  lea    0x4(%rdi),%r8
  mov    %r8,%rdi
  jmp    1050 <ptls_encode_quicint@plt>
```

assistant: ```c
uint8_t *quicly_encode_max_data_frame(uint8_t *dst, uint64_t max_data) {
  *dst++ = 16;
  dst = ptls_encode_quicint(dst, max_data);
  return dst;
}
```
user: 提供的汇编代码用C语言表示会是什么样子:

```asm
<cras_expr_expression_parse>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x10,%rsp
  mov    %rdi,-0x8(%rbp)
  mov    -0x8(%rbp),%rax
  test   %rax,%rax
  jne    L7
  mov    $0x0,%eax
  jmp    L19
L7:
  lea    -0x8(%rbp),%rax
  mov    %rax,%rdi
  call   <parse_one_expr@plt>
L19:
  leave
  ret
```

assistant: ```c
struct cras_expr_expression *cras_expr_expression_parse(const char *str) {
  if (!str)
    return NULL;
  return parse_one_expr(&str);
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<cras_expr_expression_parse>:
  endbr64
  sub    $0x18,%rsp
  mov    %rdi,%rax
  mov    %rdi,0x8(%rsp)
  test   %rdi,%rdi
  je     L6
  lea    0x8(%rsp),%rdi
  call   <parse_one_expr@plt>
L6:
  add    $0x18,%rsp
  ret
```

assistant: ```c
struct cras_expr_expression *cras_expr_expression_parse(const char *str) {
  if (!str)
    return NULL;
  return parse_one_expr(&str);
}
```
user: 这段汇编代码用C语言表示是什么样的：

```asm
<cras_expr_expression_parse>:
  endbr64
  sub    $0x18,%rsp
  mov    %rdi,0x8(%rsp)
  test   %rdi,%rdi
  je     L1
  lea    0x8(%rsp),%rdi
  call   <parse_one_expr@plt>
  add    $0x18,%rsp
  ret
  nopl   0x0(%rax)
L1:
  mov    %rdi,%rax
  add    $0x18,%rsp
  ret
```

assistant: ```c
struct cras_expr_expression *cras_expr_expression_parse(const char *str) {
  if (!str)
    return NULL;
  return parse_one_expr(&str);
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<cras_expr_expression_parse>:
  endbr64
  sub    $0x18,%rsp
  mov    %rdi,0x8(%rsp)
  test   %rdi,%rdi
  je     L6
  lea    0x8(%rsp),%rdi
  call   <parse_one_expr@plt>
  add    $0x18,%rsp
  ret
  nopl   0x0(%rax)
L6:
  mov    %rdi,%rax
  add    $0x18,%rsp
  ret
```

assistant: ```c
struct cras_expr_expression *cras_expr_expression_parse(const char *str) {
  if (!str)
    return NULL;
  return parse_one_expr(&str);
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<PINT_dotconf_star_match>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %rdx,-0x38(%rbp)
  movl   $0xffffffff,-0x14(%rbp)
  mov    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0x10(%rbp)
  mov    -0x30(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0xc(%rbp)
  mov    -0x38(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0x8(%rbp)
  mov    -0x38(%rbp),%rax
  lea    D22(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcspn@plt>
  mov    %eax,-0x4(%rbp)
  mov    -0x4(%rbp),%eax
  cmp    -0x8(%rbp),%eax
  jge    L12
  mov    -0xc(%rbp),%edx
  mov    -0x30(%rbp),%rcx
  mov    -0x28(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  jne    L12
  mov    -0x28(%rbp),%rax
  lea    D32(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L12
  mov    -0x28(%rbp),%rax
  lea    D0(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L12
  movl   $0x1,-0x14(%rbp)
  jmp    L94
L12:
  mov    -0x8(%rbp),%edx
  mov    -0xc(%rbp),%eax
  add    %edx,%eax
  cmp    %eax,-0x10(%rbp)
  jl     L94
  mov    -0x38(%rbp),%rdx
  mov    -0x28(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <PINT_dotconf_strcmp_from_back@plt>
  test   %rax,%rax
  jne    L94
  mov    -0xc(%rbp),%edx
  mov    -0x30(%rbp),%rcx
  mov    -0x28(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  jne    L94
  mov    -0x28(%rbp),%rax
  lea    D32(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L94
  mov    -0x28(%rbp),%rax
  lea    D0(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L94
  movl   $0x0,-0x14(%rbp)
L94:
  mov    -0x14(%rbp),%eax
  leave
  ret
```

tool_calls: name: parse_data
arguments: label: D22
data_type: string
name: parse_data
arguments: label: D32
data_type: string
name: parse_data
arguments: label: D0
data_type: string

tool: D22: *?

tool: D32: .

tool: D0: ..

assistant: ```c
int PINT_dotconf_star_match(char *dir_name, char *pre, char *ext) {
  int retval = -1;
  int dir_name_len = strlen(dir_name);
  int pre_len = strlen(pre);
  int ext_len = strlen(ext);
  int w_card_check = strcspn(ext, "*?");
  if ((w_card_check < ext_len) && (strncmp(dir_name, pre, pre_len) == 0) && (strcmp(dir_name, ".") != 0) && (strcmp(dir_name, "..") != 0)) {
    retval = 1;
  } else {
    if ((dir_name_len >= (ext_len + pre_len)) && (PINT_dotconf_strcmp_from_back(dir_name, ext) == 0) && (strncmp(dir_name, pre, pre_len) == 0) && (strcmp(dir_name, ".") != 0) && (strcmp(dir_name, "..") != 0)) {
      retval = 0;
    }
  }
  return retval;
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<PINT_dotconf_star_match>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  mov    %rdi,%r12
  mov    %rsi,%r13
  mov    %rdx,%rbp
  call   <strlen@plt>
  mov    %eax,%r15d
  mov    %r13,%rdi
  call   <strlen@plt>
  mov    %eax,%r14d
  mov    %rbp,%rdi
  call   <strlen@plt>
  mov    %eax,%ebx
  lea    D25(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcspn@plt>
  cmp    %eax,%ebx
  jg     L83
L42:
  add    %r14d,%ebx
  mov    $0xffffffff,%eax
  cmp    %r15d,%ebx
  jle    L53
L49:
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L83:
  mov    %r14d,%edx
  mov    %r13,%rsi
  mov    %r12,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  jne    L42
  lea    D49(%rip),%rsi
  mov    %r12,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L42
  lea    D16(%rip),%rsi
  mov    %r12,%rdi
  call   <strcmp@plt>
  mov    %rax,%rdx
  mov    $0x1,%eax
  test   %rdx,%rdx
  jne    L49
  jmp    L42
L53:
  mov    %rbp,%rsi
  mov    %r12,%rdi
  call   <PINT_dotconf_strcmp_from_back@plt>
  mov    %rax,%rdx
  mov    $0xffffffff,%eax
  test   %rdx,%rdx
  jne    L49
  mov    %r14d,%edx
  mov    %r13,%rsi
  mov    %r12,%rdi
  call   <strncmp@plt>
  mov    %rax,%rdx
  mov    $0xffffffff,%eax
  test   %rdx,%rdx
  jne    L49
  lea    D49(%rip),%rsi
  mov    %r12,%rdi
  call   <strcmp@plt>
  mov    %rax,%rdx
  mov    $0xffffffff,%eax
  test   %rdx,%rdx
  je     L49
  lea    D16(%rip),%rsi
  mov    %r12,%rdi
  call   <strcmp@plt>
  cmp    $0x1,%rax
  sbb    %eax,%eax
  jmp    L49
```

tool_calls: name: parse_data
arguments: data_label: D25
datatype: string
name: parse_data
arguments: data_label: D49
datatype: string
name: parse_data
arguments: data_label: D16
datatype: string

tool: D25: *?

tool: D49: .

tool: D16: ..

assistant: ```c
int PINT_dotconf_star_match(char *dir_name, char *pre, char *ext) {
  int retval = -1;
  int dir_name_len = strlen(dir_name);
  int pre_len = strlen(pre);
  int ext_len = strlen(ext);
  int w_card_check = strcspn(ext, "*?");
  if ((w_card_check < ext_len) && (strncmp(dir_name, pre, pre_len) == 0) && (strcmp(dir_name, ".") != 0) && (strcmp(dir_name, "..") != 0)) {
    retval = 1;
  } else {
    if ((dir_name_len >= (ext_len + pre_len)) && (PINT_dotconf_strcmp_from_back(dir_name, ext) == 0) && (strncmp(dir_name, pre, pre_len) == 0) && (strcmp(dir_name, ".") != 0) && (strcmp(dir_name, "..") != 0)) {
      retval = 0;
    }
  }
  return retval;
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<PINT_dotconf_star_match>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  mov    %rsi,%r13
  push   %r12
  mov    %rdi,%r12
  push   %rbp
  mov    %rdx,%rbp
  push   %rbx
  sub    $0x8,%rsp
  call   <strlen@plt>
  mov    %r13,%rdi
  mov    %eax,%r15d
  call   <strlen@plt>
  mov    %rbp,%rdi
  mov    %eax,%r14d
  call   <strlen@plt>
  lea    D9(%rip),%rsi
  mov    %rbp,%rdi
  mov    %eax,%ebx
  call   <strcspn@plt>
  cmp    %eax,%ebx
  jg     L63
L49:
  add    %r14d,%ebx
  cmp    %r15d,%ebx
  jle    L71
L83:
  mov    $0xffffffff,%eax
L50:
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L63:
  mov    %r14d,%edx
  mov    %r13,%rsi
  mov    %r12,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  jne    L49
  lea    D40(%rip),%rsi
  mov    %r12,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L49
  lea    D32(%rip),%rsi
  mov    %r12,%rdi
  call   <strcmp@plt>
  mov    %rax,%r8
  mov    $0x1,%eax
  test   %r8,%r8
  jne    L50
  jmp    L49
  nopl   (%rax)
L71:
  mov    %rbp,%rsi
  mov    %r12,%rdi
  call   <PINT_dotconf_strcmp_from_back@plt>
  test   %rax,%rax
  jne    L83
  mov    %r14d,%edx
  mov    %r13,%rsi
  mov    %r12,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  jne    L83
  lea    D40(%rip),%rsi
  mov    %r12,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L83
  lea    D32(%rip),%rsi
  mov    %r12,%rdi
  call   <strcmp@plt>
  cmp    $0x1,%rax
  sbb    %eax,%eax
  jmp    L50
```

tool_calls: name: extract_symbolic_data
arguments: label: D9
data_type: string
name: extract_symbolic_data
arguments: label: D40
data_type: string
name: extract_symbolic_data
arguments: label: D32
data_type: string

tool: D9: *?

tool: D40: .

tool: D32: ..

assistant: ```c
int PINT_dotconf_star_match(char *dir_name, char *pre, char *ext) {
  int retval = -1;
  int dir_name_len = strlen(dir_name);
  int pre_len = strlen(pre);
  int ext_len = strlen(ext);
  int w_card_check = strcspn(ext, "*?");
  if ((w_card_check < ext_len) && (strncmp(dir_name, pre, pre_len) == 0) && (strcmp(dir_name, ".") != 0) && (strcmp(dir_name, "..") != 0)) {
    retval = 1;
  } else {
    if ((dir_name_len >= (ext_len + pre_len)) && (PINT_dotconf_strcmp_from_back(dir_name, ext) == 0) && (strncmp(dir_name, pre, pre_len) == 0) && (strcmp(dir_name, ".") != 0) && (strcmp(dir_name, "..") != 0)) {
      retval = 0;
    }
  }
  return retval;
}
```
user: 提供的汇编代码用C语言表示会是什么样子：

```asm
<PINT_dotconf_star_match>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  mov    %rsi,%r13
  push   %r12
  mov    %rdi,%r12
  push   %rbp
  mov    %rdx,%rbp
  push   %rbx
  sub    $0x8,%rsp
  call   <strlen@plt>
  mov    %r13,%rdi
  mov    %eax,%r15d
  call   <strlen@plt>
  mov    %rbp,%rdi
  mov    %eax,%r14d
  call   <strlen@plt>
  lea    D18(%rip),%rsi
  mov    %rbp,%rdi
  mov    %eax,%ebx
  call   <strcspn@plt>
  cmp    %eax,%ebx
  jg     L54
L50:
  add    %r14d,%ebx
  cmp    %r15d,%ebx
  jle    L56
L23:
  mov    $0xffffffff,%eax
L46:
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L54:
  mov    %r14d,%edx
  mov    %r13,%rsi
  mov    %r12,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  jne    L50
  lea    D30(%rip),%rsi
  mov    %r12,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L50
  lea    D12(%rip),%rsi
  mov    %r12,%rdi
  call   <strcmp@plt>
  mov    %rax,%r8
  mov    $0x1,%eax
  test   %r8,%r8
  jne    L46
  jmp    L50
  nopl   (%rax)
L56:
  mov    %rbp,%rsi
  mov    %r12,%rdi
  call   <PINT_dotconf_strcmp_from_back@plt>
  test   %rax,%rax
  jne    L23
  mov    %r14d,%edx
  mov    %r13,%rsi
  mov    %r12,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  jne    L23
  lea    D30(%rip),%rsi
  mov    %r12,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L23
  lea    D12(%rip),%rsi
  mov    %r12,%rdi
  call   <strcmp@plt>
  cmp    $0x1,%rax
  sbb    %eax,%eax
  jmp    L46
```

tool_calls: name: extract_symbolic_data
arguments: label: D18
type: string
name: extract_symbolic_data
arguments: label: D30
type: string
name: extract_symbolic_data
arguments: label: D12
type: string

tool: D18: *?

tool: D30: .

tool: D12: ..

assistant: ```c
int PINT_dotconf_star_match(char *dir_name, char *pre, char *ext) {
  int retval = -1;
  int dir_name_len = strlen(dir_name);
  int pre_len = strlen(pre);
  int ext_len = strlen(ext);
  int w_card_check = strcspn(ext, "*?");
  if ((w_card_check < ext_len) && (strncmp(dir_name, pre, pre_len) == 0) && (strcmp(dir_name, ".") != 0) && (strcmp(dir_name, "..") != 0)) {
    retval = 1;
  } else {
    if ((dir_name_len >= (ext_len + pre_len)) && (PINT_dotconf_strcmp_from_back(dir_name, ext) == 0) && (strncmp(dir_name, pre, pre_len) == 0) && (strcmp(dir_name, ".") != 0) && (strcmp(dir_name, "..") != 0)) {
      retval = 0;
    }
  }
  return retval;
}
```
user: Translate the below assembly code into C programming language:

```asm
<GTServer_Filter>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %rsi,-0x20(%rbp)
  mov    -0x18(%rbp),%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0xc(%rbp)
  movl   $0x0,-0x10(%rbp)
  jmp    L20
L5:
  mov    -0x10(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%edx
  mov    -0x20(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <strchr@plt>
  test   %rax,%rax
  je     L21
  mov    -0x10(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x8(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x8(%rbp)
  movzbl (%rcx),%edx
  mov    %dl,(%rax)
L21:
  addl   $0x1,-0x10(%rbp)
L20:
  mov    -0x10(%rbp),%eax
  cmp    -0xc(%rbp),%eax
  jl     L5
  mov    -0x8(%rbp),%rax
  movb   $0x0,(%rax)
  mov    $0x0,%eax
  leave
  ret
```

assistant: ```c
int GTServer_Filter(char *s, const char *filter) {
  int i;
  char *next = s;
  const int len = strlen(s);
  for (i = 0; i < len; i++) {
    if (strchr(filter, s[i])) {
      *(next++) = s[i];
    }
  }
  *next = '\0';
  return 0;
}
```