ylfeng/ReF-Decompile-dataset huggingface dataset:
user: What is the c source code of the assembly code below:

```asm
<Action>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  lea    D20(%rip),%rax
  mov    %rax,%rsi
  lea    D32(%rip),%rax
  mov    %rax,%rdi
  call   <lr_save_string@plt>
  lea    D22(%rip),%rax
  mov    %rax,%rsi
  lea    D1(%rip),%rax
  mov    %rax,%rdi
  call   <lr_save_string@plt>
  lea    D26(%rip),%rax
  mov    %rax,%rsi
  lea    D45(%rip),%rax
  mov    %rax,%rdi
  call   <lr_save_string@plt>
  mov    $0x0,%eax
  call   <ShareCalculation@plt>
  mov    $0x0,%eax
  pop    %rbp
  ret
```

tool_calls: name: disassemble_data
arguments: data_tag: D20
type_infered: string
name: disassemble_data
arguments: data_tag: D32
type_infered: string
name: disassemble_data
arguments: data_tag: D22
type_infered: string
name: disassemble_data
arguments: data_tag: D1
type_infered: string
name: disassemble_data
arguments: data_tag: D26
type_infered: string
name: disassemble_data
arguments: data_tag: D45
type_infered: string

tool: D20: FundAmount

tool: D32: 1380

tool: D22: OptionPriceInt

tool: D1: 484

tool: D26: OptionPriceDec

tool: D45: 05253284

assistant: ```c
Action() {
  lr_save_string("1380", "FundAmount");
  lr_save_string("484", "OptionPriceInt");
  lr_save_string("05253284", "OptionPriceDec");
  ShareCalculation();
  return 0;
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<Action>:
  endbr64
  sub    $0x8,%rsp
  lea    D4(%rip),%rsi
  lea    D34(%rip),%rdi
  call   <lr_save_string@plt>
  lea    D23(%rip),%rsi
  lea    D54(%rip),%rdi
  call   <lr_save_string@plt>
  lea    D22(%rip),%rsi
  lea    D24(%rip),%rdi
  call   <lr_save_string@plt>
  mov    $0x0,%eax
  call   <ShareCalculation@plt>
  mov    $0x0,%eax
  add    $0x8,%rsp
  ret
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D4
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D34
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D23
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D54
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D22
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D24
type_guessed: string

tool: D4: FundAmount

tool: D34: 1380

tool: D23: OptionPriceInt

tool: D54: 484

tool: D22: OptionPriceDec

tool: D24: 05253284

assistant: ```c
Action() {
  lr_save_string("1380", "FundAmount");
  lr_save_string("484", "OptionPriceInt");
  lr_save_string("05253284", "OptionPriceDec");
  ShareCalculation();
  return 0;
}
```
user: What is the c source code of the assembly code below?

```asm
<Action>:
  endbr64
  sub    $0x8,%rsp
  lea    D26(%rip),%rsi
  lea    D9(%rip),%rdi
  call   <lr_save_string@plt>
  lea    D28(%rip),%rsi
  lea    D27(%rip),%rdi
  call   <lr_save_string@plt>
  lea    D51(%rip),%rsi
  lea    D5(%rip),%rdi
  call   <lr_save_string@plt>
  xor    %eax,%eax
  call   <ShareCalculation@plt>
  xor    %eax,%eax
  add    $0x8,%rsp
  ret
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D26
type: string
name: extract_symbolic_data
arguments: data_tag: D9
type: string
name: extract_symbolic_data
arguments: data_tag: D28
type: string
name: extract_symbolic_data
arguments: data_tag: D27
type: string
name: extract_symbolic_data
arguments: data_tag: D51
type: string
name: extract_symbolic_data
arguments: data_tag: D5
type: string

tool: D26: FundAmount

tool: D9: 1380

tool: D28: OptionPriceInt

tool: D27: 484

tool: D51: OptionPriceDec

tool: D5: 05253284

assistant: ```c
Action() {
  lr_save_string("1380", "FundAmount");
  lr_save_string("484", "OptionPriceInt");
  lr_save_string("05253284", "OptionPriceDec");
  ShareCalculation();
  return 0;
}
```
user: 请将以下的汇编代码转换成C语言代码：

```asm
<Action>:
  endbr64
  sub    $0x8,%rsp
  lea    D51(%rip),%rsi
  lea    D7(%rip),%rdi
  call   <lr_save_string@plt>
  lea    D24(%rip),%rsi
  lea    D15(%rip),%rdi
  call   <lr_save_string@plt>
  lea    D34(%rip),%rsi
  lea    D10(%rip),%rdi
  call   <lr_save_string@plt>
  xor    %eax,%eax
  call   <ShareCalculation@plt>
  xor    %eax,%eax
  add    $0x8,%rsp
  ret
```

tool_calls: name: retrieve_data
arguments: data_tag: D51
type_guessed: string
name: retrieve_data
arguments: data_tag: D7
type_guessed: string
name: retrieve_data
arguments: data_tag: D24
type_guessed: string
name: retrieve_data
arguments: data_tag: D15
type_guessed: string
name: retrieve_data
arguments: data_tag: D34
type_guessed: string
name: retrieve_data
arguments: data_tag: D10
type_guessed: string

tool: D51: FundAmount

tool: D7: 1380

tool: D24: OptionPriceInt

tool: D15: 484

tool: D34: OptionPriceDec

tool: D10: 05253284

assistant: ```c
Action() {
  lr_save_string("1380", "FundAmount");
  lr_save_string("484", "OptionPriceInt");
  lr_save_string("05253284", "OptionPriceDec");
  ShareCalculation();
  return 0;
}
```
user: What would the C source look like for the assembly code provided here:

```asm
<RandomFunc>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %rsi,-0x20(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  xor    $0xffffffdb,%eax
  mov    %al,-0x9(%rbp)
  movb   $0x0,-0xa(%rbp)
  jmp    L2
L8:
  movzbl -0x9(%rbp),%eax
  cmp    %al,-0xa(%rbp)
  je     L36
  movzbl -0x9(%rbp),%eax
  movzbl %al,%edx
  movzbl -0x9(%rbp),%eax
  shr    $0x2,%al
  movzbl %al,%eax
  and    $0x6,%eax
  or     $0x1,%eax
  mov    %eax,%ecx
  shl    %cl,%edx
  movzbl -0xa(%rbp),%eax
  cltq
  mov    %dl,-0x9(%rbp,%rax,1)
  jmp    L5
L36:
  movzbl -0xa(%rbp),%eax
  cltq
  movzbl -0x9(%rbp,%rax,1),%eax
  movzbl %al,%edx
  movzbl -0xa(%rbp),%eax
  cltq
  movzbl -0x9(%rbp,%rax,1),%eax
  shr    %al
  movzbl %al,%eax
  and    $0x6,%eax
  or     $0x1,%eax
  mov    %eax,%ecx
  sar    %cl,%edx
  mov    %edx,%eax
  mov    %al,-0x9(%rbp)
L5:
  addb   $0x2,-0xa(%rbp)
L2:
  mov    -0x18(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  cmp    %al,-0xa(%rbp)
  jb     L8
  movzbl -0x9(%rbp),%eax
  and    $0xffffffcb,%eax
  or     $0x20,%eax
  mov    %eax,%edx
  mov    -0x20(%rbp),%rax
  mov    %dl,(%rax)
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L26
  call   <__stack_chk_fail@plt>
L26:
  leave
  ret
```

assistant: ```c
void RandomFunc(unsigned char input[1], unsigned char output[1]) {
  unsigned char state[1];
  unsigned char local1;
  {
    state[0UL] = input[0UL] ^ (unsigned char)219;
    local1 = 0UL;
    while (local1 < input[1UL]) {
      if (state[0UL] != local1) {
        state[local1] = state[0UL] << (((state[0UL] >> (unsigned char)2) & (unsigned char)7) | 1UL);
      } else {
        state[0UL] = state[local1] >> (((state[local1] >> (unsigned char)1) & (unsigned char)7) | 1UL);
      }
      local1 += 2UL;
    }
    output[0UL] = (state[0UL] | 1039116836UL) & (unsigned char)235;
  }
}
```
user: 请将以下的汇编代码转换成C语言代码：

```asm
<RandomFunc>:
  endbr64
  movzbl (%rdi),%eax
  xor    $0xffffffdb,%eax
  movzbl 0x1(%rdi),%edi
  test   %dil,%dil
  je     L15
  mov    $0x0,%edx
  jmp    L49
L13:
  movzbl %al,%r8d
  shr    %al
  mov    %eax,%ecx
  and    $0x6,%ecx
  or     $0x1,%ecx
  sar    %cl,%r8d
  mov    %r8d,%eax
L45:
  add    $0x2,%edx
  cmp    %dil,%dl
  jae    L15
L49:
  cmp    %al,%dl
  je     L13
  mov    %eax,%ecx
  shr    $0x2,%cl
  and    $0x6,%ecx
  or     $0x1,%ecx
  shl    %cl,%eax
  jmp    L45
L15:
  and    $0xffffffcb,%eax
  or     $0x20,%eax
  mov    %al,(%rsi)
  ret
```

assistant: ```c
void RandomFunc(unsigned char input[1], unsigned char output[1]) {
  unsigned char state[1];
  unsigned char local1;
  {
    state[0UL] = input[0UL] ^ (unsigned char)219;
    local1 = 0UL;
    while (local1 < input[1UL]) {
      if (state[0UL] != local1) {
        state[local1] = state[0UL] << (((state[0UL] >> (unsigned char)2) & (unsigned char)7) | 1UL);
      } else {
        state[0UL] = state[local1] >> (((state[local1] >> (unsigned char)1) & (unsigned char)7) | 1UL);
      }
      local1 += 2UL;
    }
    output[0UL] = (state[0UL] | 1039116836UL) & (unsigned char)235;
  }
}
```
user: 请从给定的汇编指令推导出C源代码:

```asm
<RandomFunc>:
  endbr64
  movzbl (%rdi),%ecx
  movzbl 0x1(%rdi),%edi
  xor    $0xffffffdb,%ecx
  test   %dil,%dil
  je     L4
  xor    %eax,%eax
  jmp    L38
  nopw   0x0(%rax,%rax,1)
L45:
  shr    $0x2,%cl
  add    $0x2,%eax
  and    $0x6,%ecx
  or     $0x1,%ecx
  shl    %cl,%edx
  mov    %edx,%ecx
  cmp    %dil,%al
  jae    L4
L38:
  movzbl %cl,%edx
  cmp    %cl,%al
  jne    L45
  mov    %eax,%ecx
  add    $0x2,%eax
  shr    %cl
  and    $0x6,%ecx
  or     $0x1,%ecx
  sar    %cl,%edx
  mov    %edx,%ecx
  cmp    %dil,%al
  jb     L38
L4:
  and    $0xffffffcb,%ecx
  or     $0x20,%ecx
  mov    %cl,(%rsi)
  ret
```

assistant: ```c
void RandomFunc(unsigned char input[1], unsigned char output[1]) {
  unsigned char state[1];
  unsigned char local1;
  {
    state[0UL] = input[0UL] ^ (unsigned char)219;
    local1 = 0UL;
    while (local1 < input[1UL]) {
      if (state[0UL] != local1) {
        state[local1] = state[0UL] << (((state[0UL] >> (unsigned char)2) & (unsigned char)7) | 1UL);
      } else {
        state[0UL] = state[local1] >> (((state[local1] >> (unsigned char)1) & (unsigned char)7) | 1UL);
      }
      local1 += 2UL;
    }
    output[0UL] = (state[0UL] | 1039116836UL) & (unsigned char)235;
  }
}
```
user: What would the C source look like for the assembly code provided here?

```asm
<RandomFunc>:
  endbr64
  movzbl (%rdi),%ecx
  movzbl 0x1(%rdi),%edi
  xor    $0xffffffdb,%ecx
  test   %dil,%dil
  je     L21
  xor    %eax,%eax
  nopl   (%rax)
L17:
  movzbl %cl,%edx
  cmp    %al,%cl
  je     L12
  shr    $0x2,%cl
  add    $0x2,%eax
  and    $0x6,%ecx
  or     $0x1,%ecx
  shl    %cl,%edx
  mov    %edx,%ecx
  cmp    %dil,%al
  jb     L17
L21:
  and    $0xffffffcb,%ecx
  or     $0x20,%ecx
  mov    %cl,(%rsi)
  ret
  nopl   (%rax)
L12:
  shr    %cl
  add    $0x2,%eax
  and    $0x6,%ecx
  or     $0x1,%ecx
  sar    %cl,%edx
  mov    %edx,%ecx
  cmp    %al,%dil
  ja     L17
  and    $0xffffffcb,%ecx
  or     $0x20,%ecx
  mov    %cl,(%rsi)
  ret
```

assistant: ```c
void RandomFunc(unsigned char input[1], unsigned char output[1]) {
  unsigned char state[1];
  unsigned char local1;
  {
    state[0UL] = input[0UL] ^ (unsigned char)219;
    local1 = 0UL;
    while (local1 < input[1UL]) {
      if (state[0UL] != local1) {
        state[local1] = state[0UL] << (((state[0UL] >> (unsigned char)2) & (unsigned char)7) | 1UL);
      } else {
        state[0UL] = state[local1] >> (((state[local1] >> (unsigned char)1) & (unsigned char)7) | 1UL);
      }
      local1 += 2UL;
    }
    output[0UL] = (state[0UL] | 1039116836UL) & (unsigned char)235;
  }
}
```
user: 请从给定的汇编指令推导出C源代码：

```asm
<receive_message>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x430,%rsp
  mov    %edi,-0x424(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
L5:
  lea    -0x410(%rbp),%rax
  mov    $0x400,%edx
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <memset@plt>
  lea    -0x410(%rbp),%rcx
  mov    -0x424(%rbp),%eax
  mov    $0x400,%edx
  mov    %rcx,%rsi
  mov    %eax,%edi
  call   <read@plt>
  mov    %eax,-0x414(%rbp)
  mov    D0(%rip),%rax
  mov    (%rax),%edx
  lea    -0x410(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <fputs@plt>
  mov    -0x414(%rbp),%edx
  lea    -0x410(%rbp),%rcx
  mov    -0x424(%rbp),%eax
  mov    %rcx,%rsi
  mov    %eax,%edi
  call   <write@plt>
  jmp    L5
```

assistant: ```c
void receive_message(int conn) {
  char recvbuf[1024];
  while (1) {
    memset(recvbuf, 0, sizeof(recvbuf));
    int ret = read(conn, recvbuf, sizeof(recvbuf));
    fputs(recvbuf, stdout);
    write(conn, recvbuf, ret);
  }
}
```
user: 请从给定的汇编指令推导出C源代码：

```asm
<receive_message>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x410,%rsp
  mov    %edi,%r12d
  mov    %fs:0x28,%rax
  mov    %rax,0x408(%rsp)
  xor    %eax,%eax
  mov    %rsp,%rbx
L2:
  mov    $0x400,%edx
  mov    $0x0,%esi
  mov    %rbx,%rdi
  call   <memset@plt>
  mov    $0x400,%edx
  mov    %rbx,%rsi
  mov    %r12d,%edi
  call   <read@plt>
  mov    %eax,%ebp
  mov    D2(%rip),%rax
  mov    (%rax),%esi
  mov    %rbx,%rdi
  call   <fputs@plt>
  mov    %ebp,%edx
  mov    %rbx,%rsi
  mov    %r12d,%edi
  call   <write@plt>
  jmp    L2
```

assistant: ```c
void receive_message(int conn) {
  char recvbuf[1024];
  while (1) {
    memset(recvbuf, 0, sizeof(recvbuf));
    int ret = read(conn, recvbuf, sizeof(recvbuf));
    fputs(recvbuf, stdout);
    write(conn, recvbuf, ret);
  }
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<receive_message>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  mov    %edi,%ebp
  push   %rbx
  sub    $0x418,%rsp
  mov    D4(%rip),%r13
  mov    %fs:0x28,%rax
  mov    %rax,0x408(%rsp)
  xor    %eax,%eax
  mov    %rsp,%rbx
L9:
  xor    %esi,%esi
  mov    %rbx,%rdi
  mov    $0x400,%edx
  call   <memset@plt>
  mov    $0x400,%edx
  mov    %rbx,%rsi
  mov    %ebp,%edi
  call   <read@plt>
  mov    0x0(%r13),%esi
  mov    %rbx,%rdi
  mov    %eax,%r12d
  call   <fputs@plt>
  mov    %r12d,%edx
  mov    %rbx,%rsi
  mov    %ebp,%edi
  call   <write@plt>
  jmp    L9
```

assistant: ```c
void receive_message(int conn) {
  char recvbuf[1024];
  while (1) {
    memset(recvbuf, 0, sizeof(recvbuf));
    int ret = read(conn, recvbuf, sizeof(recvbuf));
    fputs(recvbuf, stdout);
    write(conn, recvbuf, ret);
  }
}
```
user: 这段汇编代码用C语言表示是什么样的？

```asm
<receive_message>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  mov    %edi,%ebp
  push   %rbx
  sub    $0x418,%rsp
  mov    D2(%rip),%r13
  mov    %fs:0x28,%rax
  mov    %rax,0x408(%rsp)
  xor    %eax,%eax
  mov    %rsp,%rbx
L6:
  xor    %esi,%esi
  mov    %rbx,%rdi
  mov    $0x400,%edx
  call   <memset@plt>
  mov    $0x400,%edx
  mov    %rbx,%rsi
  mov    %ebp,%edi
  call   <read@plt>
  mov    0x0(%r13),%esi
  mov    %rbx,%rdi
  mov    %eax,%r12d
  call   <fputs@plt>
  mov    %r12d,%edx
  mov    %rbx,%rsi
  mov    %ebp,%edi
  call   <write@plt>
  jmp    L6
```

assistant: ```c
void receive_message(int conn) {
  char recvbuf[1024];
  while (1) {
    memset(recvbuf, 0, sizeof(recvbuf));
    int ret = read(conn, recvbuf, sizeof(recvbuf));
    fputs(recvbuf, stdout);
    write(conn, recvbuf, ret);
  }
}
```
user: Demonstrate the C code that generates the assembly output below:

```asm
<vtune_low_to_norm>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x50,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %rdx,-0x38(%rbp)
  mov    %rcx,-0x40(%rbp)
  mov    %r8,-0x48(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movq   $0xff,-0x10(%rbp)
  movl   $0x0,-0x18(%rbp)
  jmp    L26
L40:
  cmpq   $0x0,-0x38(%rbp)
  jne    L0
  mov    -0x48(%rbp),%rax
  movq   $0x0,(%rax)
  mov    $0x0,%eax
  jmp    L51
L0:
  subq   $0x1,-0x38(%rbp)
  mov    -0x40(%rbp),%rcx
  mov    -0x38(%rbp),%rdx
  mov    -0x30(%rbp),%rsi
  mov    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <write_vcocap@plt>
  mov    %eax,-0x14(%rbp)
  cmpl   $0x0,-0x14(%rbp)
  je     L41
  mov    -0x14(%rbp),%eax
  jmp    L51
L41:
  lea    -0x10(%rbp),%rdx
  mov    -0x30(%rbp),%rsi
  mov    -0x28(%rbp),%rax
  mov    %rdx,%rcx
  mov    $0x19,%edx
  mov    %rax,%rdi
  call   <get_vtune@plt>
  mov    %eax,-0x14(%rbp)
  cmpl   $0x0,-0x14(%rbp)
  je     L70
  mov    -0x14(%rbp),%eax
  jmp    L51
L70:
  mov    -0x10(%rbp),%rax
  test   %rax,%rax
  jne    L101
  mov    -0x38(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    -0x48(%rbp),%rax
  mov    %rdx,(%rax)
  mov    $0x0,%eax
  jmp    L51
L101:
  addl   $0x1,-0x18(%rbp)
L26:
  cmpl   $0x13,-0x18(%rbp)
  jbe    L40
  mov    $0xffffffff,%eax
L51:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L105
  call   <__stack_chk_fail@plt>
L105:
  leave
  ret
```

assistant: ```c
int vtune_low_to_norm(struct bladerf *dev, uint8_t base, uint8_t vcocap, uint8_t vcocap_reg_state, uint8_t *vtune_low_limit) {
  int status;
  unsigned int i;
  uint8_t vtune = 0xff;
  for (i = 0; i < 20; i++) {
    if (vcocap == 0) {
      *vtune_low_limit = 0;
      do {
        do {
        } while (0);
      } while (0);
      return 0;
    }
    vcocap--;
    status = write_vcocap(dev, base, vcocap, vcocap_reg_state);
    if (status != 0) {
      return status;
    }
    status = get_vtune(dev, base, 25, &vtune);
    if (status != 0) {
      return status;
    }
    if (vtune == 0x00) {
      *vtune_low_limit = vcocap + 1;
      do {
        do {
        } while (0);
      } while (0);
      do {
        do {
        } while (0);
      } while (0);
      return 0;
    }
  }
  do {
    do {
    } while (0);
  } while (0);
  return (-1);
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<vtune_low_to_norm>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %r8,0x8(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  movq   $0xff,0x10(%rsp)
  test   %rdx,%rdx
  je     L61
  mov    %rdi,%rbp
  mov    %rsi,%r12
  mov    %rdx,%rbx
  mov    %rcx,%r13
  lea    -0x14(%rdx),%r15
  lea    0x10(%rsp),%r14
L28:
  mov    %rbx,(%rsp)
  sub    $0x1,%rbx
  mov    %r13,%rcx
  mov    %rbx,%rdx
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <write_vcocap@plt>
  test   %eax,%eax
  jne    L83
  mov    %r14,%rcx
  mov    $0x19,%edx
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <get_vtune@plt>
  test   %eax,%eax
  jne    L83
  cmpq   $0x0,0x10(%rsp)
  je     L59
  cmp    %r15,%rbx
  je     L75
  test   %rbx,%rbx
  jne    L28
L61:
  mov    0x8(%rsp),%rax
  movq   $0x0,(%rax)
  mov    $0x0,%eax
  jmp    L83
L59:
  mov    0x8(%rsp),%rcx
  mov    (%rsp),%rsi
  mov    %rsi,(%rcx)
  jmp    L83
L75:
  mov    $0xffffffff,%eax
L83:
  mov    0x18(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L39
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L39:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int vtune_low_to_norm(struct bladerf *dev, uint8_t base, uint8_t vcocap, uint8_t vcocap_reg_state, uint8_t *vtune_low_limit) {
  int status;
  unsigned int i;
  uint8_t vtune = 0xff;
  for (i = 0; i < 20; i++) {
    if (vcocap == 0) {
      *vtune_low_limit = 0;
      do {
        do {
        } while (0);
      } while (0);
      return 0;
    }
    vcocap--;
    status = write_vcocap(dev, base, vcocap, vcocap_reg_state);
    if (status != 0) {
      return status;
    }
    status = get_vtune(dev, base, 25, &vtune);
    if (status != 0) {
      return status;
    }
    if (vtune == 0x00) {
      *vtune_low_limit = vcocap + 1;
      do {
        do {
        } while (0);
      } while (0);
      do {
        do {
        } while (0);
      } while (0);
      return 0;
    }
  }
  do {
    do {
    } while (0);
  } while (0);
  return (-1);
}
```
user: 请从给定的汇编指令推导出C源代码：

```asm
<vtune_low_to_norm>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  mov    %rcx,%r13
  push   %r12
  mov    %rdi,%r12
  push   %rbp
  mov    %rsi,%rbp
  push   %rbx
  mov    %rdx,%rbx
  sub    $0x28,%rsp
  mov    %r8,0x8(%rsp)
  lea    0x10(%rsp),%r14
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  lea    -0x14(%rdx),%rax
  movq   $0xff,0x10(%rsp)
  mov    %rax,(%rsp)
  jmp    L24
  nopl   0x0(%rax,%rax,1)
L12:
  mov    %r15,%rbx
L24:
  test   %rbx,%rbx
  je     L49
  lea    -0x1(%rbx),%r15
  mov    %r13,%rcx
  mov    %rbp,%rsi
  mov    %r12,%rdi
  mov    %r15,%rdx
  call   <write_vcocap@plt>
  test   %eax,%eax
  jne    L56
  mov    %r14,%rcx
  mov    $0x19,%edx
  mov    %rbp,%rsi
  mov    %r12,%rdi
  call   <get_vtune@plt>
  test   %eax,%eax
  jne    L56
  cmpq   $0x0,0x10(%rsp)
  je     L27
  cmp    (%rsp),%r15
  jne    L12
  mov    $0xffffffff,%eax
L56:
  mov    0x18(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L20
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L49:
  mov    0x8(%rsp),%rax
  movq   $0x0,(%rax)
  xor    %eax,%eax
  jmp    L56
L27:
  mov    0x8(%rsp),%rcx
  mov    %rbx,(%rcx)
  jmp    L56
L20:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int vtune_low_to_norm(struct bladerf *dev, uint8_t base, uint8_t vcocap, uint8_t vcocap_reg_state, uint8_t *vtune_low_limit) {
  int status;
  unsigned int i;
  uint8_t vtune = 0xff;
  for (i = 0; i < 20; i++) {
    if (vcocap == 0) {
      *vtune_low_limit = 0;
      do {
        do {
        } while (0);
      } while (0);
      return 0;
    }
    vcocap--;
    status = write_vcocap(dev, base, vcocap, vcocap_reg_state);
    if (status != 0) {
      return status;
    }
    status = get_vtune(dev, base, 25, &vtune);
    if (status != 0) {
      return status;
    }
    if (vtune == 0x00) {
      *vtune_low_limit = vcocap + 1;
      do {
        do {
        } while (0);
      } while (0);
      do {
        do {
        } while (0);
      } while (0);
      return 0;
    }
  }
  do {
    do {
    } while (0);
  } while (0);
  return (-1);
}
```
user: 请从给定的汇编指令推导出C源代码：

```asm
<vtune_low_to_norm>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  mov    %rcx,%r13
  push   %r12
  mov    %rdi,%r12
  push   %rbp
  mov    %rsi,%rbp
  push   %rbx
  mov    %rdx,%rbx
  sub    $0x28,%rsp
  mov    %r8,0x8(%rsp)
  lea    0x10(%rsp),%r14
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  lea    -0x14(%rdx),%rax
  movq   $0xff,0x10(%rsp)
  mov    %rax,(%rsp)
  jmp    L66
  nopl   0x0(%rax,%rax,1)
L12:
  mov    %r15,%rbx
L66:
  test   %rbx,%rbx
  je     L71
  lea    -0x1(%rbx),%r15
  mov    %r13,%rcx
  mov    %rbp,%rsi
  mov    %r12,%rdi
  mov    %r15,%rdx
  call   <write_vcocap@plt>
  test   %eax,%eax
  jne    L20
  mov    %r14,%rcx
  mov    $0x19,%edx
  mov    %rbp,%rsi
  mov    %r12,%rdi
  call   <get_vtune@plt>
  test   %eax,%eax
  jne    L20
  cmpq   $0x0,0x10(%rsp)
  je     L50
  cmp    (%rsp),%r15
  jne    L12
  mov    $0xffffffff,%eax
L20:
  mov    0x18(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L54
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L71:
  mov    0x8(%rsp),%rax
  movq   $0x0,(%rax)
  xor    %eax,%eax
  jmp    L20
L50:
  mov    0x8(%rsp),%rcx
  mov    %rbx,(%rcx)
  jmp    L20
L54:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int vtune_low_to_norm(struct bladerf *dev, uint8_t base, uint8_t vcocap, uint8_t vcocap_reg_state, uint8_t *vtune_low_limit) {
  int status;
  unsigned int i;
  uint8_t vtune = 0xff;
  for (i = 0; i < 20; i++) {
    if (vcocap == 0) {
      *vtune_low_limit = 0;
      do {
        do {
        } while (0);
      } while (0);
      return 0;
    }
    vcocap--;
    status = write_vcocap(dev, base, vcocap, vcocap_reg_state);
    if (status != 0) {
      return status;
    }
    status = get_vtune(dev, base, 25, &vtune);
    if (status != 0) {
      return status;
    }
    if (vtune == 0x00) {
      *vtune_low_limit = vcocap + 1;
      do {
        do {
        } while (0);
      } while (0);
      do {
        do {
        } while (0);
      } while (0);
      return 0;
    }
  }
  do {
    do {
    } while (0);
  } while (0);
  return (-1);
}
```