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

```asm
<SENNA_tokenize_alphanumeric>:
  endbr64
  push   %r13
  mov    %rdi,%r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  movzbl (%rsi),%edi
  test   %dil,%dil
  je     L38
  lea    0x1(%rsi),%rbx
  xor    %r12d,%r12d
  jmp    L30
  nopw   0x0(%rax,%rax,1)
L17:
  movzbl (%rbx),%edi
  add    $0x1,%rbx
  add    $0x1,%r12d
  test   %dil,%dil
  je     L46
L30:
  movsbl %dil,%ebp
  mov    %ebp,%edi
  call   <isdigit@plt>
  test   %eax,%eax
  jne    L17
  mov    %ebp,%edi
  call   <isalpha@plt>
  test   %eax,%eax
  jne    L17
L46:
  mov    %r12d,0x0(%r13)
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L38:
  xor    %r12d,%r12d
  jmp    L46
```

assistant: ```c
void SENNA_tokenize_alphanumeric(int *size_, const char *sentence) {
  int size = 0;
  while (1) {
    char c = *sentence++;
    if (c == '\0' || (!isdigit(c) && !isalpha(c)))
      break;
    size++;
  }
  *size_ = size;
}
```
user: 这段汇编代码用C语言表示是什么样的：

```asm
<vsjson_decode_string>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rdi,%rbp
  test   %rdi,%rdi
  je     L11
  call   <strlen@plt>
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,%rbx
  mov    $0x0,%r12d
  test   %rax,%rax
  je     L35
  mov    %rax,%r12
  mov    %rbp,%rdi
  call   <strlen@plt>
  mov    %eax,%edx
  mov    $0x0,%esi
  mov    %rbx,%rdi
  call   <memset@plt>
  cmpb   $0x22,0x0(%rbp)
  jne    L130
  mov    %rbp,%rdi
  call   <strlen@plt>
  cltq
  cmpb   $0x22,-0x1(%rbp,%rax,1)
  jne    L130
  lea    0x1(%rbp),%rcx
  movzbl 0x1(%rbp),%edx
  test   %dl,%dl
  je     L22
  mov    %rbx,%rax
  lea    D6(%rip),%rdi
  jmp    L54
L130:
  mov    %rbx,%rdi
  call   <free@plt>
  mov    $0x0,%r12d
  jmp    L35
L154:
  cmp    $0x22,%cl
  je     L194
  cmp    $0x2f,%cl
  jne    L129
L194:
  mov    %cl,(%rax)
  add    $0x1,%rax
  movb   $0x8,(%rax)
  add    $0x1,%rax
  jmp    L129
  movb   $0xc,(%rax)
  add    $0x1,%rax
  jmp    L129
  movb   $0xa,(%rax)
  add    $0x1,%rax
  jmp    L129
  movb   $0xd,(%rax)
  add    $0x1,%rax
  jmp    L129
  movb   $0x9,(%rax)
  add    $0x1,%rax
  jmp    L129
L161:
  mov    %dl,(%rax)
  add    $0x1,%rax
  mov    %rcx,%rdx
L129:
  lea    0x1(%rdx),%rcx
  movzbl 0x1(%rdx),%edx
  test   %dl,%dl
  je     L172
L54:
  cmp    $0x5c,%dl
  jne    L161
  lea    0x1(%rcx),%rdx
  movzbl 0x1(%rcx),%ecx
  cmp    $0x74,%cl
  jg     L129
  cmp    $0x5b,%cl
  jle    L154
  lea    -0x5c(%rcx),%esi
  cmp    $0x18,%sil
  ja     L129
  movzbl %sil,%esi
  movslq (%rdi,%rsi,4),%rsi
  add    %rdi,%rsi
  notrack jmp *%rsi
L22:
  mov    %rbx,%rax
L172:
  movb   $0x0,-0x1(%rax)
L35:
  mov    %r12,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L11:
  mov    %rdi,%r12
  jmp    L35
```

assistant: ```c
char *vsjson_decode_string(const char *string) {
  if (!string)
    return NULL;
  char *decoded = (char *)malloc(strlen(string));
  if (!decoded)
    return NULL;
  memset(decoded, 0, strlen(string));
  const char *src = string;
  char *dst = decoded;
  if (string[0] != '"' || string[strlen(string) - 1] != '"') {
    free(decoded);
    return NULL;
  }
  ++src;
  while (*src) {
    switch (*src) {
    case '\\':
      ++src;
      switch (*src) {
      case '\\':
      case '/':
      case '"':
        *dst = *src;
        ++dst;
      case 'b':
        *dst = '\b';
        ++dst;
        break;
      case 'f':
        *dst = '\f';
        ++dst;
        break;
      case 'n':
        *dst = '\n';
        ++dst;
        break;
      case 'r':
        *dst = '\r';
        ++dst;
        break;
      case 't':
        *dst = '\t';
        ++dst;
        break;
      }
      break;
    default:
      *dst = *src;
      ++dst;
    }
    ++src;
  }
  --dst;
  *dst = 0;
  return decoded;
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<vsjson_decode_string>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  test   %rdi,%rdi
  je     L42
  mov    %rdi,%rbx
  call   <strlen@plt>
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,%rbp
  test   %rax,%rax
  je     L42
  mov    %rbx,%rdi
  mov    %rax,%r12
  call   <strlen@plt>
  xor    %esi,%esi
  mov    %rbp,%rdi
  mov    %eax,%edx
  call   <memset@plt>
  cmpb   $0x22,(%rbx)
  jne    L145
  mov    %rbx,%rdi
  call   <strlen@plt>
  cltq
  cmpb   $0x22,-0x1(%rbx,%rax,1)
  jne    L145
  movzbl 0x1(%rbx),%eax
  lea    0x1(%rbx),%rsi
  mov    %rbp,%rcx
  test   %al,%al
  je     L111
  lea    D1(%rip),%rdi
  jmp    L89
  nopl   (%rax)
L11:
  mov    %al,(%rcx)
  mov    %rsi,%rdx
  add    $0x1,%rcx
L59:
  movzbl 0x1(%rdx),%eax
  lea    0x1(%rdx),%rsi
  test   %al,%al
  je     L111
L89:
  lea    0x1(%rsi),%rdx
  cmp    $0x5c,%al
  jne    L11
  movzbl 0x1(%rsi),%eax
  cmp    $0x74,%al
  jg     L59
  cmp    $0x5b,%al
  jle    L46
  lea    -0x5c(%rax),%esi
  cmp    $0x18,%sil
  ja     L59
  movzbl %sil,%esi
  movslq (%rdi,%rsi,4),%rsi
  add    %rdi,%rsi
  notrack jmp *%rsi
  nopl   0x0(%rax,%rax,1)
L145:
  mov    %rbp,%rdi
  call   <free@plt>
L42:
  xor    %r12d,%r12d
  pop    %rbx
  pop    %rbp
  mov    %r12,%rax
  pop    %r12
  ret
  nopl   0x0(%rax,%rax,1)
L46:
  cmp    $0x22,%al
  je     L39
  cmp    $0x2f,%al
  jne    L59
L39:
  mov    %al,(%rcx)
  add    $0x1,%rcx
  movb   $0x8,(%rcx)
  movzbl 0x1(%rdx),%eax
  add    $0x1,%rcx
  lea    0x1(%rdx),%rsi
  test   %al,%al
  jne    L89
L111:
  movb   $0x0,-0x1(%rcx)
  mov    %r12,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
  nopl   (%rax)
  movb   $0x9,(%rcx)
  add    $0x1,%rcx
  jmp    L59
  nopl   0x0(%rax)
  movb   $0xd,(%rcx)
  add    $0x1,%rcx
  jmp    L59
  nopl   0x0(%rax)
  movb   $0xa,(%rcx)
  add    $0x1,%rcx
  jmp    L59
  nopl   0x0(%rax)
  movb   $0xc,(%rcx)
  add    $0x1,%rcx
  jmp    L59
```

assistant: ```c
char *vsjson_decode_string(const char *string) {
  if (!string)
    return NULL;
  char *decoded = (char *)malloc(strlen(string));
  if (!decoded)
    return NULL;
  memset(decoded, 0, strlen(string));
  const char *src = string;
  char *dst = decoded;
  if (string[0] != '"' || string[strlen(string) - 1] != '"') {
    free(decoded);
    return NULL;
  }
  ++src;
  while (*src) {
    switch (*src) {
    case '\\':
      ++src;
      switch (*src) {
      case '\\':
      case '/':
      case '"':
        *dst = *src;
        ++dst;
      case 'b':
        *dst = '\b';
        ++dst;
        break;
      case 'f':
        *dst = '\f';
        ++dst;
        break;
      case 'n':
        *dst = '\n';
        ++dst;
        break;
      case 'r':
        *dst = '\r';
        ++dst;
        break;
      case 't':
        *dst = '\t';
        ++dst;
        break;
      }
      break;
    default:
      *dst = *src;
      ++dst;
    }
    ++src;
  }
  --dst;
  *dst = 0;
  return decoded;
}
```
user: 请将以下的汇编代码转换成C语言代码：

```asm
<vsjson_decode_string>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  test   %rdi,%rdi
  je     L28
  mov    %rdi,%rbx
  call   <strlen@plt>
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,%rbp
  test   %rax,%rax
  je     L28
  mov    %rbx,%rdi
  mov    %rax,%r12
  call   <strlen@plt>
  xor    %esi,%esi
  mov    %rbp,%rdi
  mov    %eax,%edx
  call   <memset@plt>
  cmpb   $0x22,(%rbx)
  jne    L102
  mov    %rbx,%rdi
  call   <strlen@plt>
  cltq
  cmpb   $0x22,-0x1(%rbx,%rax,1)
  jne    L102
  movzbl 0x1(%rbx),%eax
  lea    0x1(%rbx),%rsi
  mov    %rbp,%rcx
  test   %al,%al
  je     L170
  lea    D4(%rip),%rdi
  jmp    L173
  nopl   (%rax)
L89:
  mov    %al,(%rcx)
  mov    %rsi,%rdx
  add    $0x1,%rcx
L100:
  movzbl 0x1(%rdx),%eax
  lea    0x1(%rdx),%rsi
  test   %al,%al
  je     L170
L173:
  lea    0x1(%rsi),%rdx
  cmp    $0x5c,%al
  jne    L89
  movzbl 0x1(%rsi),%eax
  cmp    $0x74,%al
  jg     L100
  cmp    $0x5b,%al
  jle    L124
  lea    -0x5c(%rax),%esi
  cmp    $0x18,%sil
  ja     L100
  movzbl %sil,%esi
  movslq (%rdi,%rsi,4),%rsi
  add    %rdi,%rsi
  notrack jmp *%rsi
  nopl   0x0(%rax,%rax,1)
L102:
  mov    %rbp,%rdi
  call   <free@plt>
L28:
  xor    %r12d,%r12d
  pop    %rbx
  pop    %rbp
  mov    %r12,%rax
  pop    %r12
  ret
  nopl   0x0(%rax,%rax,1)
L124:
  cmp    $0x22,%al
  je     L136
  cmp    $0x2f,%al
  jne    L100
L136:
  mov    %al,(%rcx)
  add    $0x1,%rcx
  movb   $0x8,(%rcx)
  movzbl 0x1(%rdx),%eax
  add    $0x1,%rcx
  lea    0x1(%rdx),%rsi
  test   %al,%al
  jne    L173
L170:
  movb   $0x0,-0x1(%rcx)
  mov    %r12,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
  nopl   (%rax)
  movb   $0x9,(%rcx)
  add    $0x1,%rcx
  jmp    L100
  nopl   0x0(%rax)
  movb   $0xd,(%rcx)
  add    $0x1,%rcx
  jmp    L100
  nopl   0x0(%rax)
  movb   $0xa,(%rcx)
  add    $0x1,%rcx
  jmp    L100
  nopl   0x0(%rax)
  movb   $0xc,(%rcx)
  add    $0x1,%rcx
  jmp    L100
```

assistant: ```c
char *vsjson_decode_string(const char *string) {
  if (!string)
    return NULL;
  char *decoded = (char *)malloc(strlen(string));
  if (!decoded)
    return NULL;
  memset(decoded, 0, strlen(string));
  const char *src = string;
  char *dst = decoded;
  if (string[0] != '"' || string[strlen(string) - 1] != '"') {
    free(decoded);
    return NULL;
  }
  ++src;
  while (*src) {
    switch (*src) {
    case '\\':
      ++src;
      switch (*src) {
      case '\\':
      case '/':
      case '"':
        *dst = *src;
        ++dst;
      case 'b':
        *dst = '\b';
        ++dst;
        break;
      case 'f':
        *dst = '\f';
        ++dst;
        break;
      case 'n':
        *dst = '\n';
        ++dst;
        break;
      case 'r':
        *dst = '\r';
        ++dst;
        break;
      case 't':
        *dst = '\t';
        ++dst;
        break;
      }
      break;
    default:
      *dst = *src;
      ++dst;
    }
    ++src;
  }
  --dst;
  *dst = 0;
  return decoded;
}
```
user: 请将以下的汇编代码转换成C语言代码：

```asm
<ibm2flt>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x38(%rbp)
  mov    -0x38(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x10,%eax
  mov    %eax,%edx
  mov    -0x38(%rbp),%rax
  add    $0x2,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x8,%eax
  add    %eax,%edx
  mov    -0x38(%rbp),%rax
  add    $0x3,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  add    %edx,%eax
  cltq
  mov    %rax,-0x8(%rbp)
  cmpq   $0x0,-0x8(%rbp)
  jne    L40
  pxor   %xmm0,%xmm0
  jmp    L12
L40:
  mov    -0x38(%rbp),%rax
  movzbl (%rax),%eax
  not    %eax
  shr    $0x7,%al
  movzbl %al,%eax
  mov    %eax,-0x20(%rbp)
  mov    -0x38(%rbp),%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  and    $0x7f,%eax
  sub    $0x40,%eax
  mov    %eax,-0x1c(%rbp)
  mov    -0x1c(%rbp),%eax
  mov    %eax,%edx
  neg    %edx
  cmovns %edx,%eax
  mov    %eax,-0x24(%rbp)
  movsd  D16(%rip),%xmm0
  movsd  %xmm0,-0x10(%rbp)
  movsd  D30(%rip),%xmm0
  movsd  %xmm0,-0x18(%rbp)
  jmp    L26
L17:
  mov    -0x24(%rbp),%eax
  and    $0x1,%eax
  test   %eax,%eax
  je     L34
  movsd  -0x18(%rbp),%xmm0
  mulsd  -0x10(%rbp),%xmm0
  movsd  %xmm0,-0x18(%rbp)
L34:
  movsd  -0x10(%rbp),%xmm0
  mulsd  %xmm0,%xmm0
  movsd  %xmm0,-0x10(%rbp)
  shrl   -0x24(%rbp)
L26:
  cmpl   $0x0,-0x24(%rbp)
  jne    L17
  cmpl   $0x0,-0x1c(%rbp)
  jns    L65
  movsd  D30(%rip),%xmm0
  divsd  -0x18(%rbp),%xmm0
  movsd  %xmm0,-0x18(%rbp)
L65:
  pxor   %xmm0,%xmm0
  cvtsi2sdq -0x8(%rbp),%xmm0
  mulsd  -0x18(%rbp),%xmm0
  movsd  D2(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  cmpl   $0x0,-0x20(%rbp)
  jne    L56
  movsd  -0x18(%rbp),%xmm0
  movq   D40(%rip),%xmm1
  xorpd  %xmm1,%xmm0
  movsd  %xmm0,-0x18(%rbp)
L56:
  movsd  -0x18(%rbp),%xmm0
L12:
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  pop    %rbp
  ret
```

tool_calls: name: extract_symbolic_data
arguments: label: D16
type_guessed: f64
name: extract_symbolic_data
arguments: label: D30
type_guessed: f64
name: extract_symbolic_data
arguments: label: D2
type_guessed: f64
name: extract_symbolic_data
arguments: label: D40
type_guessed: f32[2]

tool: D16: 16

tool: D30: 1

tool: D2: 16777216

tool: {"D40": [0.0,-0.0]}

assistant: ```c
double ibm2flt(unsigned char *ibm) {
  int positive, power;
  unsigned int abspower;
  long int mant;
  double value, exp;
  mant = (ibm[1] << 16) + (ibm[2] << 8) + ibm[3];
  if (mant == 0)
    return 0.0;
  positive = (ibm[0] & 0x80) == 0;
  power = (int)(ibm[0] & 0x7f) - 64;
  abspower = power > 0 ? power : -power;
  exp = 16.0;
  value = 1.0;
  while (abspower) {
    if (abspower & 1) {
      value *= exp;
    }
    exp = exp * exp;
    abspower >>= 1;
  }
  if (power < 0)
    value = 1.0 / value;
  value = value * mant / 16777216.0;
  if (positive == 0)
    value = -value;
  return value;
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<ibm2flt>:
  endbr64
  movzbl 0x1(%rdi),%eax
  shl    $0x10,%eax
  movzbl 0x2(%rdi),%edx
  shl    $0x8,%edx
  add    %edx,%eax
  movzbl 0x3(%rdi),%edx
  pxor   %xmm0,%xmm0
  add    %eax,%edx
  je     L66
  movzbl (%rdi),%esi
  mov    %esi,%ecx
  and    $0x7f,%ecx
  sub    $0x40,%ecx
  mov    %ecx,%eax
  neg    %eax
  cmovs  %ecx,%eax
  test   %eax,%eax
  je     L77
  movsd  D59(%rip),%xmm1
  movsd  D13(%rip),%xmm2
  jmp    L1
L43:
  mulsd  %xmm1,%xmm1
  shr    %eax
  je     L67
L1:
  test   $0x1,%al
  je     L43
  mulsd  %xmm1,%xmm2
  jmp    L43
L77:
  movsd  D13(%rip),%xmm2
L67:
  test   %ecx,%ecx
  js     L3
L12:
  pxor   %xmm0,%xmm0
  cvtsi2sd %edx,%xmm0
  mulsd  %xmm2,%xmm0
  mulsd  D37(%rip),%xmm0
  test   %sil,%sil
  js     L28
L66:
  ret
L3:
  movsd  D13(%rip),%xmm0
  divsd  %xmm2,%xmm0
  movapd %xmm0,%xmm2
  jmp    L12
L28:
  xorpd  D1(%rip),%xmm0
  jmp    L66
```

tool_calls: name: disassemble_data
arguments: data_tag: D59
data_type: f64
name: disassemble_data
arguments: data_tag: D13
data_type: f64
name: disassemble_data
arguments: data_tag: D37
data_type: f32[2]
name: disassemble_data
arguments: data_tag: D1
data_type: f32[4]

tool: D59: 16

tool: D13: 1

tool: {"D37": [0.0,0.234375]}

tool: {"D1": [0.0,-0.0,0.0,0.0]}

assistant: ```c
double ibm2flt(unsigned char *ibm) {
  int positive, power;
  unsigned int abspower;
  long int mant;
  double value, exp;
  mant = (ibm[1] << 16) + (ibm[2] << 8) + ibm[3];
  if (mant == 0)
    return 0.0;
  positive = (ibm[0] & 0x80) == 0;
  power = (int)(ibm[0] & 0x7f) - 64;
  abspower = power > 0 ? power : -power;
  exp = 16.0;
  value = 1.0;
  while (abspower) {
    if (abspower & 1) {
      value *= exp;
    }
    exp = exp * exp;
    abspower >>= 1;
  }
  if (power < 0)
    value = 1.0 / value;
  value = value * mant / 16777216.0;
  if (positive == 0)
    value = -value;
  return value;
}
```
user: What is the c source code of the assembly code below:

```asm
<ibm2flt>:
  endbr64
  movzbl 0x1(%rdi),%eax
  movzbl 0x2(%rdi),%edx
  pxor   %xmm0,%xmm0
  shl    $0x8,%edx
  shl    $0x10,%eax
  add    %edx,%eax
  movzbl 0x3(%rdi),%edx
  add    %eax,%edx
  je     L34
  movzbl (%rdi),%esi
  mov    %esi,%ecx
  and    $0x7f,%ecx
  sub    $0x40,%ecx
  mov    %ecx,%eax
  neg    %eax
  cmovs  %ecx,%eax
  test   %ecx,%ecx
  je     L72
  mov    D37(%rip),%rdi
  movsd  D29(%rip),%xmm1
  movq   %rdi,%xmm2
  nopw   0x0(%rax,%rax,1)
L69:
  test   $0x1,%al
  je     L29
  mulsd  %xmm1,%xmm2
L29:
  mulsd  %xmm1,%xmm1
  shr    %eax
  jne    L69
  test   %ecx,%ecx
  js     L0
L57:
  pxor   %xmm0,%xmm0
  cvtsi2sd %edx,%xmm0
  mulsd  %xmm2,%xmm0
  mulsd  D2(%rip),%xmm0
  test   %sil,%sil
  js     L25
L34:
  ret
  xchg   %ax,%ax
L25:
  xorpd  D32(%rip),%xmm0
  ret
  nopl   0x0(%rax)
L0:
  movsd  D37(%rip),%xmm3
  divsd  %xmm2,%xmm3
  movapd %xmm3,%xmm2
  jmp    L57
  nopw   0x0(%rax,%rax,1)
L72:
  movsd  D37(%rip),%xmm2
  jmp    L57
```

tool_calls: name: extract_symbolic_data
arguments: label: D37
type_guessed: f64
name: extract_symbolic_data
arguments: label: D29
type_guessed: f64
name: extract_symbolic_data
arguments: label: D2
type_guessed: f32[2]
name: extract_symbolic_data
arguments: label: D32
type_guessed: f32[4]

tool: D37: 1

tool: D29: 16

tool: {"D2": [0.0,0.234375]}

tool: {"D32": [0.0,-0.0,0.0,0.0]}

assistant: ```c
double ibm2flt(unsigned char *ibm) {
  int positive, power;
  unsigned int abspower;
  long int mant;
  double value, exp;
  mant = (ibm[1] << 16) + (ibm[2] << 8) + ibm[3];
  if (mant == 0)
    return 0.0;
  positive = (ibm[0] & 0x80) == 0;
  power = (int)(ibm[0] & 0x7f) - 64;
  abspower = power > 0 ? power : -power;
  exp = 16.0;
  value = 1.0;
  while (abspower) {
    if (abspower & 1) {
      value *= exp;
    }
    exp = exp * exp;
    abspower >>= 1;
  }
  if (power < 0)
    value = 1.0 / value;
  value = value * mant / 16777216.0;
  if (positive == 0)
    value = -value;
  return value;
}
```
user: 这段汇编代码用C语言表示是什么样的?

```asm
<ibm2flt>:
  endbr64
  movzbl 0x1(%rdi),%eax
  movzbl 0x2(%rdi),%edx
  pxor   %xmm0,%xmm0
  shl    $0x8,%edx
  shl    $0x10,%eax
  add    %edx,%eax
  movzbl 0x3(%rdi),%edx
  add    %eax,%edx
  je     L48
  movzbl (%rdi),%esi
  mov    %esi,%ecx
  and    $0x7f,%ecx
  sub    $0x40,%ecx
  mov    %ecx,%eax
  neg    %eax
  cmovs  %ecx,%eax
  test   %ecx,%ecx
  je     L71
  mov    D25(%rip),%rdi
  movsd  D54(%rip),%xmm1
  movq   %rdi,%xmm2
  nopw   0x0(%rax,%rax,1)
L74:
  test   $0x1,%al
  je     L56
  mulsd  %xmm1,%xmm2
L56:
  mulsd  %xmm1,%xmm1
  shr    %eax
  jne    L74
  test   %ecx,%ecx
  js     L3
L25:
  pxor   %xmm0,%xmm0
  cvtsi2sd %edx,%xmm0
  mulsd  %xmm2,%xmm0
  mulsd  D1(%rip),%xmm0
  test   %sil,%sil
  js     L55
L48:
  ret
  xchg   %ax,%ax
L55:
  xorpd  D52(%rip),%xmm0
  ret
  nopl   0x0(%rax)
L3:
  movsd  D25(%rip),%xmm3
  divsd  %xmm2,%xmm3
  movapd %xmm3,%xmm2
  jmp    L25
  nopw   0x0(%rax,%rax,1)
L71:
  movsd  D25(%rip),%xmm2
  jmp    L25
```

tool_calls: name: disassemble_data
arguments: data_tag: D25
data_type: f64
name: disassemble_data
arguments: data_tag: D54
data_type: f64
name: disassemble_data
arguments: data_tag: D1
data_type: f32[2]
name: disassemble_data
arguments: data_tag: D52
data_type: f32[4]

tool: D25: 1

tool: D54: 16

tool: {"D1": [0.0,0.234375]}

tool: {"D52": [0.0,-0.0,0.0,0.0]}

assistant: ```c
double ibm2flt(unsigned char *ibm) {
  int positive, power;
  unsigned int abspower;
  long int mant;
  double value, exp;
  mant = (ibm[1] << 16) + (ibm[2] << 8) + ibm[3];
  if (mant == 0)
    return 0.0;
  positive = (ibm[0] & 0x80) == 0;
  power = (int)(ibm[0] & 0x7f) - 64;
  abspower = power > 0 ? power : -power;
  exp = 16.0;
  value = 1.0;
  while (abspower) {
    if (abspower & 1) {
      value *= exp;
    }
    exp = exp * exp;
    abspower >>= 1;
  }
  if (power < 0)
    value = 1.0 / value;
  value = value * mant / 16777216.0;
  if (positive == 0)
    value = -value;
  return value;
}
```
user: What is the c source code of the assembly code below?

```asm
<qurt_sqrt>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  movss  %xmm0,-0x24(%rbp)
  movss  -0x24(%rbp),%xmm0
  movss  D13(%rip),%xmm1
  divss  %xmm1,%xmm0
  movss  %xmm0,-0x18(%rbp)
  movss  D4(%rip),%xmm0
  movss  %xmm0,-0xc(%rbp)
  movl   $0x0,-0x10(%rbp)
  pxor   %xmm0,%xmm0
  ucomiss -0x24(%rbp),%xmm0
  jp     L1
  pxor   %xmm0,%xmm0
  ucomiss -0x24(%rbp),%xmm0
  jne    L1
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0x18(%rbp)
  jmp    L62
L1:
  movl   $0x1,-0x14(%rbp)
  jmp    L16
L44:
  cmpl   $0x0,-0x10(%rbp)
  jne    L45
  movss  -0x18(%rbp),%xmm0
  movaps %xmm0,%xmm1
  mulss  %xmm0,%xmm1
  movss  -0x24(%rbp),%xmm0
  subss  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  cvtss2sd %xmm0,%xmm1
  pxor   %xmm0,%xmm0
  cvtss2sd -0x18(%rbp),%xmm0
  addsd  %xmm0,%xmm0
  divsd  %xmm0,%xmm1
  pxor   %xmm0,%xmm0
  cvtsd2ss %xmm1,%xmm0
  movss  %xmm0,-0x8(%rbp)
  movss  -0x18(%rbp),%xmm0
  addss  -0x8(%rbp),%xmm0
  movss  %xmm0,-0x18(%rbp)
  movss  -0x18(%rbp),%xmm0
  movaps %xmm0,%xmm1
  mulss  %xmm0,%xmm1
  movss  -0x24(%rbp),%xmm0
  subss  %xmm1,%xmm0
  movss  %xmm0,-0x4(%rbp)
  mov    -0x4(%rbp),%eax
  movd   %eax,%xmm0
  call   <qurt_fabs@plt>
  movss  -0xc(%rbp),%xmm1
  comiss %xmm0,%xmm1
  jb     L45
  movl   $0x1,-0x10(%rbp)
L45:
  addl   $0x1,-0x14(%rbp)
L16:
  cmpl   $0x13,-0x14(%rbp)
  jle    L44
L62:
  movss  -0x18(%rbp),%xmm0
  leave
  ret
```

tool_calls: name: parse_data
arguments: data_label: D13
data_type: f32
name: parse_data
arguments: data_label: D4
data_type: f32

tool: D13: 10

tool: D4: 1e-05

assistant: ```c
float qurt_sqrt(float val) {
  float x = val / 10;
  float dx;
  float diff;
  float min_tol = 0.00001;
  int i, flag;
  flag = 0;
  if (val == 0)
    x = 0;
  else {
    for (i = 1; i < 20; i++) {
      if (!flag) {
        dx = (val - (x * x)) / (2.0 * x);
        x = x + dx;
        diff = val - (x * x);
        if (qurt_fabs(diff) <= min_tol)
          flag = 1;
      } else {
      }
    }
  }
  return (x);
}
```
user: Translate the below assembly code into C programming language:

```asm
<qurt_sqrt>:
  endbr64
  push   %rbx
  sub    $0x10,%rsp
  movss  %xmm0,0xc(%rsp)
  ucomiss D4(%rip),%xmm0
  jp     L29
  pxor   %xmm6,%xmm6
  movss  %xmm6,0x8(%rsp)
  jne    L29
L53:
  movss  0x8(%rsp),%xmm0
  add    $0x10,%rsp
  pop    %rbx
  ret
L29:
  movss  0xc(%rsp),%xmm7
  divss  D29(%rip),%xmm7
  movss  %xmm7,0x8(%rsp)
  mov    $0x13,%ebx
  mov    $0x0,%eax
  jmp    L7
L21:
  sub    $0x1,%ebx
  je     L53
L7:
  test   %eax,%eax
  jne    L21
  movss  0x8(%rsp),%xmm2
  movaps %xmm2,%xmm1
  mulss  %xmm2,%xmm1
  movss  0xc(%rsp),%xmm3
  movaps %xmm3,%xmm0
  subss  %xmm1,%xmm0
  cvtss2sd %xmm0,%xmm0
  pxor   %xmm1,%xmm1
  cvtss2sd %xmm2,%xmm1
  addsd  %xmm1,%xmm1
  divsd  %xmm1,%xmm0
  cvtsd2ss %xmm0,%xmm0
  addss  %xmm2,%xmm0
  movss  %xmm0,0x8(%rsp)
  movaps %xmm0,%xmm1
  mulss  %xmm0,%xmm1
  subss  %xmm1,%xmm3
  movaps %xmm3,%xmm0
  call   <qurt_fabs@plt>
  movss  D25(%rip),%xmm4
  comiss %xmm0,%xmm4
  setae  %al
  movzbl %al,%eax
  jmp    L21
```

tool_calls: name: disassemble_data
arguments: label: D4
type_guessed: byte[4]
name: disassemble_data
arguments: label: D29
type_guessed: f32
name: disassemble_data
arguments: label: D25
type_guessed: f32

tool: {"D4": [0x00,0x00,0x00,0x00]}

tool: D29: 10

tool: D25: 1e-05

assistant: ```c
float qurt_sqrt(float val) {
  float x = val / 10;
  float dx;
  float diff;
  float min_tol = 0.00001;
  int i, flag;
  flag = 0;
  if (val == 0)
    x = 0;
  else {
    for (i = 1; i < 20; i++) {
      if (!flag) {
        dx = (val - (x * x)) / (2.0 * x);
        x = x + dx;
        diff = val - (x * x);
        if (qurt_fabs(diff) <= min_tol)
          flag = 1;
      } else {
      }
    }
  }
  return (x);
}
```
user: Translate the below assembly code into C programming language:

```asm
<qurt_sqrt>:
  endbr64
  pxor   %xmm6,%xmm6
  movaps %xmm0,%xmm4
  ucomiss %xmm6,%xmm0
  jp     L10
  pxor   %xmm2,%xmm2
  jne    L10
  movaps %xmm2,%xmm0
  ret
  nopw   0x0(%rax,%rax,1)
L10:
  push   %rbx
  movaps %xmm4,%xmm2
  mov    $0x1,%ebx
  sub    $0x10,%rsp
  divss  D14(%rip),%xmm2
  movaps %xmm2,%xmm3
  mulss  %xmm2,%xmm3
L14:
  movaps %xmm4,%xmm1
  movaps %xmm4,%xmm0
  movss  %xmm4,0xc(%rsp)
  add    $0x1,%ebx
  subss  %xmm3,%xmm1
  pxor   %xmm3,%xmm3
  cvtss2sd %xmm2,%xmm3
  addsd  %xmm3,%xmm3
  cvtss2sd %xmm1,%xmm1
  divsd  %xmm3,%xmm1
  cvtsd2ss %xmm1,%xmm1
  addss  %xmm1,%xmm2
  movaps %xmm2,%xmm3
  movss  %xmm2,0x4(%rsp)
  mulss  %xmm2,%xmm3
  subss  %xmm3,%xmm0
  movss  %xmm3,0x8(%rsp)
  call   <qurt_fabs@plt>
  movss  D17(%rip),%xmm5
  movss  0x4(%rsp),%xmm2
  comiss %xmm0,%xmm5
  jb     L13
L27:
  add    $0x10,%rsp
  movaps %xmm2,%xmm0
  pop    %rbx
  ret
  nopl   0x0(%rax,%rax,1)
L13:
  cmp    $0x14,%ebx
  movss  0x8(%rsp),%xmm3
  movss  0xc(%rsp),%xmm4
  jne    L14
  jmp    L27
```

tool_calls: name: disassemble_data
arguments: data_label: D14
type_infered: f32
name: disassemble_data
arguments: data_label: D17
type_infered: f32

tool: D14: 10

tool: D17: 1e-05

assistant: ```c
float qurt_sqrt(float val) {
  float x = val / 10;
  float dx;
  float diff;
  float min_tol = 0.00001;
  int i, flag;
  flag = 0;
  if (val == 0)
    x = 0;
  else {
    for (i = 1; i < 20; i++) {
      if (!flag) {
        dx = (val - (x * x)) / (2.0 * x);
        x = x + dx;
        diff = val - (x * x);
        if (qurt_fabs(diff) <= min_tol)
          flag = 1;
      } else {
      }
    }
  }
  return (x);
}
```