ylfeng/ReF-Decompile-dataset huggingface dataset:
user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<BasicSync>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x10,%rsp
  movl   $0x0,-0x8(%rbp)
  mov    $0x0,%eax
  call   <testbreak@plt>
  mov    $0x0,%eax
  call   <sync_test@plt>
  mov    %eax,%esi
  mov    $0x0,%edi
  call   <expect_zng@plt>
  mov    %eax,-0x4(%rbp)
  cmpl   $0x0,-0x4(%rbp)
  je     L2
  lea    D3(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    $0x0,%edi
  call   <fflush@plt>
  movl   $0xffffffff,-0x8(%rbp)
L2:
  mov    $0x0,%eax
  call   <testbreak@plt>
  mov    -0x8(%rbp),%eax
  leave
  ret
```

tool_calls: name: read_data
arguments: label: D3
type: string

tool: D3: 	Failed Phase 2: This call did something unexpected.


assistant: ```c
int BasicSync(void) {
  int passed;
  int block = 0;
  testbreak();
  passed = expect_zng(0, sync_test());
  if (passed != 0) {
    printf("\tFailed Phase 2: This call did something unexpected.\n");
    fflush(NULL);
    block = -1;
  };
  testbreak();
  return block;
}
```
user: Demonstrate the C code that generates the assembly output below:

```asm
<BasicSync>:
  endbr64
  push   %rbx
  mov    $0x0,%eax
  call   <testbreak@plt>
  mov    $0x0,%eax
  call   <sync_test@plt>
  mov    %eax,%esi
  mov    $0x0,%edi
  call   <expect_zng@plt>
  mov    %eax,%ebx
  test   %eax,%eax
  jne    L2
L5:
  mov    $0x0,%eax
  call   <testbreak@plt>
  mov    %ebx,%eax
  pop    %rbx
  ret
L2:
  lea    D2(%rip),%rdi
  call   <printf@plt>
  mov    $0x0,%edi
  call   <fflush@plt>
  mov    $0xffffffff,%ebx
  jmp    L5
```

tool_calls: name: read_data
arguments: data_tag: D2
datatype: string

tool: D2: 	Failed Phase 2: This call did something unexpected.


assistant: ```c
int BasicSync(void) {
  int passed;
  int block = 0;
  testbreak();
  passed = expect_zng(0, sync_test());
  if (passed != 0) {
    printf("\tFailed Phase 2: This call did something unexpected.\n");
    fflush(NULL);
    block = -1;
  };
  testbreak();
  return block;
}
```
user: 请将以下的汇编代码转换成C语言代码:

```asm
<BasicSync>:
  endbr64
  push   %r12
  xor    %eax,%eax
  call   <testbreak@plt>
  xor    %eax,%eax
  call   <sync_test@plt>
  xor    %edi,%edi
  mov    %eax,%esi
  call   <expect_zng@plt>
  test   %eax,%eax
  jne    L15
  mov    %eax,%r12d
L19:
  xor    %eax,%eax
  call   <testbreak@plt>
  mov    %r12d,%eax
  pop    %r12
  ret
L15:
  lea    D1(%rip),%rdi
  mov    $0xffffffff,%r12d
  call   <printf@plt>
  xor    %edi,%edi
  call   <fflush@plt>
  jmp    L19
```

tool_calls: name: retrieve_data
arguments: label: D1
type: string

tool: D1: 	Failed Phase 2: This call did something unexpected.


assistant: ```c
int BasicSync(void) {
  int passed;
  int block = 0;
  testbreak();
  passed = expect_zng(0, sync_test());
  if (passed != 0) {
    printf("\tFailed Phase 2: This call did something unexpected.\n");
    fflush(NULL);
    block = -1;
  };
  testbreak();
  return block;
}
```
user: 下面的汇编指令对应的C源代码是什么:

```asm
<BasicSync>:
  endbr64
  push   %r12
  xor    %eax,%eax
  call   <testbreak@plt>
  xor    %eax,%eax
  call   <sync_test@plt>
  xor    %edi,%edi
  mov    %eax,%esi
  call   <expect_zng@plt>
  test   %eax,%eax
  jne    L1
  mov    %eax,%r12d
L10:
  xor    %eax,%eax
  call   <testbreak@plt>
  mov    %r12d,%eax
  pop    %r12
  ret
L1:
  lea    D6(%rip),%rdi
  mov    $0xffffffff,%r12d
  call   <printf@plt>
  xor    %edi,%edi
  call   <fflush@plt>
  jmp    L10
```

tool_calls: name: read_data
arguments: data_tag: D6
type_guessed: string

tool: D6: 	Failed Phase 2: This call did something unexpected.


assistant: ```c
int BasicSync(void) {
  int passed;
  int block = 0;
  testbreak();
  passed = expect_zng(0, sync_test());
  if (passed != 0) {
    printf("\tFailed Phase 2: This call did something unexpected.\n");
    fflush(NULL);
    block = -1;
  };
  testbreak();
  return block;
}
```
user: 请将以下的汇编代码转换成C语言代码：

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %edi,-0x14(%rbp)
  mov    %rsi,-0x20(%rbp)
  movl   $0x0,-0x4(%rbp)
  mov    -0x4(%rbp),%eax
  pop    %rbp
  ret
```

assistant: ```c
int main(int argc, char **argv) {
  int ret = 0;
  return ret;
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<main>:
  endbr64
  mov    $0x0,%eax
  ret
```

assistant: ```c
int main(int argc, char **argv) {
  int ret = 0;
  return ret;
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<main>:
  endbr64
  xor    %eax,%eax
  ret
```

assistant: ```c
int main(int argc, char **argv) {
  int ret = 0;
  return ret;
}
```
user: Demonstrate the C code that generates the assembly output below:

```asm
<main>:
  endbr64
  xor    %eax,%eax
  ret
```

assistant: ```c
int main(int argc, char **argv) {
  int ret = 0;
  return ret;
}
```
user: Demonstrate the C code that generates the assembly output below:

```asm
<ho_recognize_font_1_nine>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x18(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x8(%rbp)
  movsd  -0x8(%rbp),%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  pop    %rbp
  ret
```

assistant: ```c
double ho_recognize_font_1_nine(const double *array_in) {
  double return_value = 0.0;
  return return_value;
}
```
user: 这段汇编代码用C语言表示是什么样的？

```asm
<ho_recognize_font_1_nine>:
  endbr64
  pxor   %xmm0,%xmm0
  ret
```

assistant: ```c
double ho_recognize_font_1_nine(const double *array_in) {
  double return_value = 0.0;
  return return_value;
}
```
user: 这段汇编代码用C语言表示是什么样的:

```asm
<ho_recognize_font_1_nine>:
  endbr64
  pxor   %xmm0,%xmm0
  ret
```

assistant: ```c
double ho_recognize_font_1_nine(const double *array_in) {
  double return_value = 0.0;
  return return_value;
}
```
user: 请将以下的汇编代码转换成C语言代码：

```asm
<ho_recognize_font_1_nine>:
  endbr64
  pxor   %xmm0,%xmm0
  ret
```

assistant: ```c
double ho_recognize_font_1_nine(const double *array_in) {
  double return_value = 0.0;
  return return_value;
}
```
user: Demonstrate the C code that generates the assembly output below:

```asm
<buffer_write_be32>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x10,%rsp
  mov    %rdi,-0x8(%rbp)
  mov    %esi,-0xc(%rbp)
  mov    -0xc(%rbp),%eax
  shr    $0x18,%eax
  mov    %eax,%edx
  mov    -0x8(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <buffer_write8@plt>
  mov    -0xc(%rbp),%eax
  sar    $0x10,%eax
  movzbl %al,%edx
  mov    -0x8(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <buffer_write8@plt>
  mov    -0xc(%rbp),%eax
  sar    $0x8,%eax
  movzbl %al,%edx
  mov    -0x8(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <buffer_write8@plt>
  mov    -0xc(%rbp),%eax
  movzbl %al,%edx
  mov    -0x8(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <buffer_write8@plt>
  nop
  leave
  ret
```

assistant: ```c
void buffer_write_be32(struct buffer *b, uint32_t x) {
  buffer_write8(b, (x >> 24) & 0xff);
  buffer_write8(b, (x >> 16) & 0xff);
  buffer_write8(b, (x >> 8) & 0xff);
  buffer_write8(b, (x)&0xff);
}
```
user: What would the C source look like for the assembly code provided here:

```asm
<buffer_write_be32>:
  endbr64
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  mov    %rdi,%rbp
  mov    %esi,%ebx
  shr    $0x18,%esi
  call   <buffer_write8@plt>
  mov    %ebx,%esi
  sar    $0x10,%esi
  movzbl %sil,%esi
  mov    %rbp,%rdi
  call   <buffer_write8@plt>
  movzbl %bh,%esi
  mov    %rbp,%rdi
  call   <buffer_write8@plt>
  movzbl %bl,%esi
  mov    %rbp,%rdi
  call   <buffer_write8@plt>
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  ret
```

assistant: ```c
void buffer_write_be32(struct buffer *b, uint32_t x) {
  buffer_write8(b, (x >> 24) & 0xff);
  buffer_write8(b, (x >> 16) & 0xff);
  buffer_write8(b, (x >> 8) & 0xff);
  buffer_write8(b, (x)&0xff);
}
```
user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<buffer_write_be32>:
  endbr64
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  mov    %esi,%ebx
  shr    $0x18,%esi
  sub    $0x8,%rsp
  call   <buffer_write8@plt>
  mov    %ebx,%esi
  mov    %rbp,%rdi
  sar    $0x10,%esi
  movzbl %sil,%esi
  call   <buffer_write8@plt>
  movzbl %bh,%esi
  mov    %rbp,%rdi
  call   <buffer_write8@plt>
  add    $0x8,%rsp
  movzbl %bl,%esi
  mov    %rbp,%rdi
  pop    %rbx
  pop    %rbp
  jmp    1050 <buffer_write8@plt>
```

assistant: ```c
void buffer_write_be32(struct buffer *b, uint32_t x) {
  buffer_write8(b, (x >> 24) & 0xff);
  buffer_write8(b, (x >> 16) & 0xff);
  buffer_write8(b, (x >> 8) & 0xff);
  buffer_write8(b, (x)&0xff);
}
```
user: What would the C source look like for the assembly code provided here?

```asm
<buffer_write_be32>:
  endbr64
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  mov    %esi,%ebx
  shr    $0x18,%esi
  sub    $0x8,%rsp
  call   <buffer_write8@plt>
  mov    %ebx,%esi
  mov    %rbp,%rdi
  sar    $0x10,%esi
  movzbl %sil,%esi
  call   <buffer_write8@plt>
  movzbl %bh,%esi
  mov    %rbp,%rdi
  call   <buffer_write8@plt>
  add    $0x8,%rsp
  movzbl %bl,%esi
  mov    %rbp,%rdi
  pop    %rbx
  pop    %rbp
  jmp    1050 <buffer_write8@plt>
```

assistant: ```c
void buffer_write_be32(struct buffer *b, uint32_t x) {
  buffer_write8(b, (x >> 24) & 0xff);
  buffer_write8(b, (x >> 16) & 0xff);
  buffer_write8(b, (x >> 8) & 0xff);
  buffer_write8(b, (x)&0xff);
}
```
user: 请从给定的汇编指令推导出C源代码:

```asm
<RandomFunc>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    -0x28(%rbp),%rax
  mov    (%rax),%rax
  sub    $0x3f60a4d,%rax
  mov    %rax,-0x10(%rbp)
  movq   $0x0,-0x18(%rbp)
  jmp    L43
L25:
  mov    -0x18(%rbp),%rax
  mov    -0x10(%rbp,%rax,8),%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x10(%rbp)
  addq   $0x1,-0x18(%rbp)
L43:
  mov    -0x28(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%rax
  cmp    %rax,-0x18(%rbp)
  jb     L25
  movq   $0x0,-0x18(%rbp)
  jmp    L37
L33:
  mov    -0x10(%rbp),%rax
  add    %rax,%rax
  mov    %rax,-0x10(%rbp)
  addq   $0x2,-0x18(%rbp)
L37:
  mov    -0x28(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%rax
  cmp    %rax,-0x18(%rbp)
  jb     L33
  mov    -0x10(%rbp),%rax
  lea    -0x5fd42675(%rax),%rdx
  mov    -0x30(%rbp),%rax
  mov    %rdx,(%rax)
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L17
  call   <__stack_chk_fail@plt>
L17:
  leave
  ret
```

assistant: ```c
void RandomFunc(unsigned long input[1], unsigned long output[1]) {
  unsigned long state[1];
  unsigned long local1;
  {
    state[0UL] = (input[0UL] + 914778474UL) - 981234615UL;
    local1 = 0UL;
    while (local1 < input[1UL]) {
      state[0UL] = state[local1] + state[0UL];
      local1++;
    }
    local1 = 0UL;
    while (local1 < input[1UL]) {
      state[0UL] += state[0UL];
      local1 += 2UL;
    }
    output[0UL] = state[0UL] - 1607738997UL;
  }
}
```
user: Demonstrate the C code that generates the assembly output below:

```asm
<RandomFunc>:
  endbr64
  mov    (%rdi),%rax
  sub    $0x3f60a4d,%rax
  mov    0x8(%rdi),%rcx
  test   %rcx,%rcx
  je     L27
  mov    $0x0,%edx
L8:
  add    %rax,%rax
  add    $0x1,%rdx
  cmp    %rcx,%rdx
  jne    L8
  mov    $0x0,%edx
L24:
  add    %rax,%rax
  add    $0x2,%rdx
  cmp    %rcx,%rdx
  jb     L24
L27:
  sub    $0x5fd42675,%rax
  mov    %rax,(%rsi)
  ret
```

assistant: ```c
void RandomFunc(unsigned long input[1], unsigned long output[1]) {
  unsigned long state[1];
  unsigned long local1;
  {
    state[0UL] = (input[0UL] + 914778474UL) - 981234615UL;
    local1 = 0UL;
    while (local1 < input[1UL]) {
      state[0UL] = state[local1] + state[0UL];
      local1++;
    }
    local1 = 0UL;
    while (local1 < input[1UL]) {
      state[0UL] += state[0UL];
      local1 += 2UL;
    }
    output[0UL] = state[0UL] - 1607738997UL;
  }
}
```
user: 请将以下的汇编代码转换成C语言代码：

```asm
<RandomFunc>:
  endbr64
  mov    (%rdi),%rax
  mov    0x8(%rdi),%rcx
  sub    $0x3f60a4d,%rax
  test   %rcx,%rcx
  je     L10
  xor    %edx,%edx
  nopl   0x0(%rax,%rax,1)
L20:
  add    $0x1,%rdx
  add    %rax,%rax
  cmp    %rcx,%rdx
  jne    L20
  xor    %edx,%edx
  xchg   %ax,%ax
L24:
  add    $0x2,%rdx
  add    %rax,%rax
  cmp    %rcx,%rdx
  jb     L24
L10:
  sub    $0x5fd42675,%rax
  mov    %rax,(%rsi)
  ret
```

assistant: ```c
void RandomFunc(unsigned long input[1], unsigned long output[1]) {
  unsigned long state[1];
  unsigned long local1;
  {
    state[0UL] = (input[0UL] + 914778474UL) - 981234615UL;
    local1 = 0UL;
    while (local1 < input[1UL]) {
      state[0UL] = state[local1] + state[0UL];
      local1++;
    }
    local1 = 0UL;
    while (local1 < input[1UL]) {
      state[0UL] += state[0UL];
      local1 += 2UL;
    }
    output[0UL] = state[0UL] - 1607738997UL;
  }
}
```
user: 下面的汇编指令对应的C源代码是什么:

```asm
<RandomFunc>:
  endbr64
  mov    (%rdi),%rax
  mov    0x8(%rdi),%rcx
  sub    $0x3f60a4d,%rax
  test   %rcx,%rcx
  je     L13
  xor    %edx,%edx
  nopl   0x0(%rax,%rax,1)
L26:
  add    $0x1,%rdx
  add    %rax,%rax
  cmp    %rcx,%rdx
  jne    L26
  xor    %edx,%edx
  xchg   %ax,%ax
L3:
  add    $0x2,%rdx
  add    %rax,%rax
  cmp    %rcx,%rdx
  jb     L3
L13:
  sub    $0x5fd42675,%rax
  mov    %rax,(%rsi)
  ret
```

assistant: ```c
void RandomFunc(unsigned long input[1], unsigned long output[1]) {
  unsigned long state[1];
  unsigned long local1;
  {
    state[0UL] = (input[0UL] + 914778474UL) - 981234615UL;
    local1 = 0UL;
    while (local1 < input[1UL]) {
      state[0UL] = state[local1] + state[0UL];
      local1++;
    }
    local1 = 0UL;
    while (local1 < input[1UL]) {
      state[0UL] += state[0UL];
      local1 += 2UL;
    }
    output[0UL] = state[0UL] - 1607738997UL;
  }
}
```
user: 这段汇编代码用C语言表示是什么样的?

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x18(%rbp)
  movl   $0x0,-0x28(%rbp)
  jmp    L127
L119:
  mov    $0x0,%eax
  call   <__VERIFIER_nondet_char@plt>
  mov    -0x28(%rbp),%edx
  movslq %edx,%rdx
  mov    %al,-0x12(%rbp,%rdx,1)
  addl   $0x1,-0x28(%rbp)
L127:
  cmpl   $0x4,-0x28(%rbp)
  jle    L119
  movzbl -0xe(%rbp),%eax
  test   %al,%al
  sete   %al
  movzbl %al,%eax
  mov    %eax,%edi
  call   <__VERIFIER_assume@plt>
  movl   $0x0,-0x28(%rbp)
  jmp    L22
L13:
  mov    $0x0,%eax
  call   <__VERIFIER_nondet_char@plt>
  mov    -0x28(%rbp),%edx
  movslq %edx,%rdx
  mov    %al,-0xd(%rbp,%rdx,1)
  addl   $0x1,-0x28(%rbp)
L22:
  cmpl   $0x4,-0x28(%rbp)
  jle    L13
  movzbl -0x9(%rbp),%eax
  test   %al,%al
  sete   %al
  movzbl %al,%eax
  mov    %eax,%edi
  call   <__VERIFIER_assume@plt>
  movl   $0x0,-0x20(%rbp)
  jmp    L152
L64:
  addl   $0x1,-0x20(%rbp)
L152:
  mov    -0x20(%rbp),%eax
  cltq
  movzbl -0x12(%rbp,%rax,1),%eax
  test   %al,%al
  jne    L64
  movl   $0x0,-0x1c(%rbp)
  jmp    L132
L128:
  addl   $0x1,-0x1c(%rbp)
L132:
  mov    -0x1c(%rbp),%eax
  cltq
  movzbl -0xd(%rbp,%rax,1),%eax
  test   %al,%al
  jne    L128
  mov    -0x1c(%rbp),%eax
  cmp    -0x20(%rbp),%eax
  setge  %al
  movzbl %al,%eax
  mov    %eax,%edi
  call   <__VERIFIER_assume@plt>
  movl   $0x0,-0x24(%rbp)
  mov    -0x24(%rbp),%eax
  mov    %eax,-0x28(%rbp)
  jmp    L54
L0:
  mov    -0x28(%rbp),%eax
  cltq
  movzbl -0x12(%rbp,%rax,1),%edx
  mov    -0x24(%rbp),%eax
  cltq
  movzbl -0xd(%rbp,%rax,1),%eax
  cmp    %al,%dl
  jne    L26
  addl   $0x1,-0x28(%rbp)
  addl   $0x1,-0x24(%rbp)
  jmp    L54
L26:
  mov    -0x28(%rbp),%eax
  sub    -0x24(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x28(%rbp)
  movl   $0x0,-0x24(%rbp)
L54:
  mov    -0x28(%rbp),%eax
  cmp    -0x20(%rbp),%eax
  jge    L16
  mov    -0x24(%rbp),%eax
  cmp    -0x1c(%rbp),%eax
  jl     L0
L16:
  mov    -0x1c(%rbp),%eax
  cmp    -0x24(%rbp),%eax
  setle  %al
  movzbl %al,%eax
  mov    %eax,-0x18(%rbp)
  cmpl   $0x0,-0x18(%rbp)
  je     L85
  cmpl   $0x1,-0x18(%rbp)
  jne    L80
L85:
  mov    $0x1,%eax
  jmp    L79
L80:
  mov    $0x0,%eax
L79:
  mov    %eax,%edi
  call   <__VERIFIER_assert@plt>
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L69
  call   <__stack_chk_fail@plt>
L69:
  leave
  ret
```

assistant: ```c
main() {
  char string_A[5], string_B[5];
  int i, j, nc_A, nc_B, found = 0;
  for (i = 0; i < 5; i++)
    string_A[i] = __VERIFIER_nondet_char();
  __VERIFIER_assume(string_A[5 - 1] == '\0');
  for (i = 0; i < 5; i++)
    string_B[i] = __VERIFIER_nondet_char();
  __VERIFIER_assume(string_B[5 - 1] == '\0');
  nc_A = 0;
  while (string_A[nc_A] != '\0')
    nc_A++;
  nc_B = 0;
  while (string_B[nc_B] != '\0')
    nc_B++;
  __VERIFIER_assume(nc_B >= nc_A);
  i = j = 0;
  while ((i < nc_A) && (j < nc_B)) {
    if (string_A[i] == string_B[j]) {
      i++;
      j++;
    } else {
      i = i - j + 1;
      j = 0;
    }
  }
  found = (j > nc_B - 1);
  __VERIFIER_assert(found == 0 || found == 1);
}
```
user: 这段汇编代码用C语言表示是什么样的?

```asm
<main>:
  endbr64
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  lea    0xe(%rsp),%rbx
  lea    0x13(%rsp),%rbp
L24:
  mov    $0x0,%eax
  call   <__VERIFIER_nondet_char@plt>
  mov    %al,(%rbx)
  add    $0x1,%rbx
  cmp    %rbp,%rbx
  jne    L24
  cmpb   $0x0,0x12(%rsp)
  sete   %dil
  movzbl %dil,%edi
  call   <__VERIFIER_assume@plt>
  lea    0x13(%rsp),%rbx
  lea    0x18(%rsp),%rbp
L46:
  mov    $0x0,%eax
  call   <__VERIFIER_nondet_char@plt>
  mov    %al,(%rbx)
  add    $0x1,%rbx
  cmp    %rbp,%rbx
  jne    L46
  cmpb   $0x0,0x17(%rsp)
  sete   %dil
  movzbl %dil,%edi
  call   <__VERIFIER_assume@plt>
  cmpb   $0x0,0xe(%rsp)
  je     L22
  mov    $0x1,%eax
  lea    0xd(%rsp),%rdx
L50:
  mov    %eax,%ebx
  add    $0x1,%rax
  cmpb   $0x0,(%rdx,%rax,1)
  jne    L50
L89:
  cmpb   $0x0,0x13(%rsp)
  je     L100
  mov    $0x1,%eax
  lea    0x12(%rsp),%rdx
L18:
  mov    %eax,%ebp
  add    $0x1,%rax
  cmpb   $0x0,(%rdx,%rax,1)
  jne    L18
  cmp    %ebx,%ebp
  setge  %dil
  movzbl %dil,%edi
  call   <__VERIFIER_assume@plt>
  test   %ebx,%ebx
  jle    L8
  test   %ebp,%ebp
  jle    L8
  mov    $0x0,%edx
  mov    $0x0,%eax
  jmp    L58
L22:
  mov    $0x0,%ebx
  jmp    L89
L102:
  add    $0x1,%eax
  add    $0x1,%edx
L40:
  cmp    %ebx,%eax
  jge    L8
  cmp    %ebp,%edx
  jge    L8
L58:
  movslq %eax,%rcx
  movslq %edx,%rsi
  movzbl 0x13(%rsp,%rsi,1),%edi
  cmp    %dil,0xe(%rsp,%rcx,1)
  je     L102
  sub    %edx,%eax
  add    $0x1,%eax
  mov    $0x0,%edx
  jmp    L40
L100:
  test   %ebx,%ebx
  setle  %dil
  movzbl %dil,%edi
  call   <__VERIFIER_assume@plt>
L8:
  mov    $0x1,%edi
  call   <__VERIFIER_assert@plt>
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L101
  mov    $0x0,%eax
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  ret
L101:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
main() {
  char string_A[5], string_B[5];
  int i, j, nc_A, nc_B, found = 0;
  for (i = 0; i < 5; i++)
    string_A[i] = __VERIFIER_nondet_char();
  __VERIFIER_assume(string_A[5 - 1] == '\0');
  for (i = 0; i < 5; i++)
    string_B[i] = __VERIFIER_nondet_char();
  __VERIFIER_assume(string_B[5 - 1] == '\0');
  nc_A = 0;
  while (string_A[nc_A] != '\0')
    nc_A++;
  nc_B = 0;
  while (string_B[nc_B] != '\0')
    nc_B++;
  __VERIFIER_assume(nc_B >= nc_A);
  i = j = 0;
  while ((i < nc_A) && (j < nc_B)) {
    if (string_A[i] == string_B[j]) {
      i++;
      j++;
    } else {
      i = i - j + 1;
      j = 0;
    }
  }
  found = (j > nc_B - 1);
  __VERIFIER_assert(found == 0 || found == 1);
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<main>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  lea    0xe(%rsp),%rbx
  lea    0x13(%rsp),%rbp
L99:
  xor    %eax,%eax
  add    $0x1,%rbx
  call   <__VERIFIER_nondet_char@plt>
  mov    %al,-0x1(%rbx)
  cmp    %rbp,%rbx
  jne    L99
  xor    %edi,%edi
  cmpb   $0x0,0x12(%rsp)
  lea    0x18(%rsp),%rbp
  sete   %dil
  call   <__VERIFIER_assume@plt>
L34:
  xor    %eax,%eax
  add    $0x1,%rbx
  call   <__VERIFIER_nondet_char@plt>
  mov    %al,-0x1(%rbx)
  cmp    %rbp,%rbx
  jne    L34
  xor    %edi,%edi
  cmpb   $0x0,0x17(%rsp)
  sete   %dil
  call   <__VERIFIER_assume@plt>
  movzbl 0xe(%rsp),%ebx
  test   %bl,%bl
  je     L68
  mov    $0x1,%eax
  lea    0xd(%rsp),%rdx
L143:
  mov    %eax,%r12d
  add    $0x1,%rax
  cmpb   $0x0,(%rdx,%rax,1)
  jne    L143
L11:
  movzbl 0x13(%rsp),%ebp
  test   %bpl,%bpl
  je     L42
  mov    $0x1,%eax
  lea    0x12(%rsp),%rdx
L14:
  mov    %eax,%r13d
  add    $0x1,%rax
  cmpb   $0x0,(%rdx,%rax,1)
  jne    L14
  xor    %edi,%edi
  cmp    %r12d,%r13d
  setge  %dil
  call   <__VERIFIER_assume@plt>
  test   %r12d,%r12d
  jle    L122
  xor    %edx,%edx
  xor    %eax,%eax
  jmp    L5
  nopl   (%rax)
L105:
  sub    %edx,%eax
  mov    $0x1,%ecx
  xor    %edx,%edx
  add    $0x1,%eax
  cmp    %r12d,%eax
  jge    L122
L107:
  test   %cl,%cl
  je     L122
  movslq %eax,%rcx
  movzbl 0xe(%rsp,%rcx,1),%ebx
  movslq %edx,%rcx
  movzbl 0x13(%rsp,%rcx,1),%ebp
L5:
  cmp    %bpl,%bl
  jne    L105
  add    $0x1,%edx
  add    $0x1,%eax
  cmp    %r13d,%edx
  setl   %cl
  cmp    %r12d,%eax
  jl     L107
  nopl   0x0(%rax,%rax,1)
L122:
  mov    $0x1,%edi
  call   <__VERIFIER_assert@plt>
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L67
  add    $0x28,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L68:
  xor    %r12d,%r12d
  jmp    L11
L42:
  xor    %edi,%edi
  test   %r12d,%r12d
  setle  %dil
  call   <__VERIFIER_assume@plt>
  jmp    L122
L67:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
main() {
  char string_A[5], string_B[5];
  int i, j, nc_A, nc_B, found = 0;
  for (i = 0; i < 5; i++)
    string_A[i] = __VERIFIER_nondet_char();
  __VERIFIER_assume(string_A[5 - 1] == '\0');
  for (i = 0; i < 5; i++)
    string_B[i] = __VERIFIER_nondet_char();
  __VERIFIER_assume(string_B[5 - 1] == '\0');
  nc_A = 0;
  while (string_A[nc_A] != '\0')
    nc_A++;
  nc_B = 0;
  while (string_B[nc_B] != '\0')
    nc_B++;
  __VERIFIER_assume(nc_B >= nc_A);
  i = j = 0;
  while ((i < nc_A) && (j < nc_B)) {
    if (string_A[i] == string_B[j]) {
      i++;
      j++;
    } else {
      i = i - j + 1;
      j = 0;
    }
  }
  found = (j > nc_B - 1);
  __VERIFIER_assert(found == 0 || found == 1);
}
```