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

```asm
<conf_parse_int>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %rdx,-0x38(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    -0x10(%rbp),%rdx
  mov    -0x30(%rbp),%rcx
  mov    -0x28(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <conf_parse_int_internal@plt>
  mov    %eax,-0x14(%rbp)
  cmpl   $0x0,-0x14(%rbp)
  jne    L15
  mov    -0x10(%rbp),%rdx
  mov    D4(%rip),%rax
  mov    (%rax),%rax
  cmp    %rax,%rdx
  jg     L45
  mov    -0x10(%rbp),%rdx
  mov    D23(%rip),%rax
  mov    (%rax),%rax
  cmp    %rax,%rdx
  jge    L34
L45:
  mov    D10(%rip),%rax
  mov    (%rax),%eax
  neg    %eax
  mov    %eax,-0x14(%rbp)
  jmp    L15
L34:
  mov    -0x10(%rbp),%rax
  mov    %eax,%edx
  mov    -0x38(%rbp),%rax
  mov    %edx,(%rax)
L15:
  mov    -0x14(%rbp),%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L46
  call   <__stack_chk_fail@plt>
L46:
  leave
  ret
```

assistant: ```c
int conf_parse_int(const char *lvalue, const char *rvalue, void *data) {
  long long int result;
  int err;
  err = conf_parse_int_internal(lvalue, rvalue, &result);
  if (!err) {
    if (result > INT_MAX || result < INT_MIN) {
      err = -ERANGE;
    } else {
      *((int *)data) = result;
    }
  }
  return err;
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<conf_parse_int>:
  endbr64
  push   %rbx
  sub    $0x10,%rsp
  mov    %rdx,%rbx
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  mov    %rsp,%rdx
  call   <conf_parse_int_internal@plt>
  test   %eax,%eax
  jne    L25
  mov    (%rsp),%rdx
  mov    D3(%rip),%rcx
  cmp    (%rcx),%rdx
  jg     L30
  mov    D9(%rip),%rcx
  cmp    (%rcx),%rdx
  jge    L24
L30:
  mov    D4(%rip),%rax
  mov    (%rax),%eax
  neg    %eax
L25:
  mov    0x8(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L18
  add    $0x10,%rsp
  pop    %rbx
  ret
L24:
  mov    %edx,(%rbx)
  jmp    L25
L18:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int conf_parse_int(const char *lvalue, const char *rvalue, void *data) {
  long long int result;
  int err;
  err = conf_parse_int_internal(lvalue, rvalue, &result);
  if (!err) {
    if (result > INT_MAX || result < INT_MIN) {
      err = -ERANGE;
    } else {
      *((int *)data) = result;
    }
  }
  return err;
}
```
user: 提供的汇编代码用C语言表示会是什么样子:

```asm
<conf_parse_int>:
  endbr64
  push   %rbx
  mov    %rdx,%rbx
  sub    $0x10,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  mov    %rsp,%rdx
  call   <conf_parse_int_internal@plt>
  test   %eax,%eax
  jne    L38
  mov    D26(%rip),%rcx
  mov    (%rsp),%rdx
  cmp    (%rcx),%rdx
  jle    L13
L0:
  mov    D20(%rip),%rax
  mov    (%rax),%eax
  neg    %eax
L38:
  mov    0x8(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L30
  add    $0x10,%rsp
  pop    %rbx
  ret
  nopl   0x0(%rax)
L13:
  mov    D8(%rip),%rcx
  cmp    (%rcx),%rdx
  jl     L0
  mov    %edx,(%rbx)
  jmp    L38
L30:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int conf_parse_int(const char *lvalue, const char *rvalue, void *data) {
  long long int result;
  int err;
  err = conf_parse_int_internal(lvalue, rvalue, &result);
  if (!err) {
    if (result > INT_MAX || result < INT_MIN) {
      err = -ERANGE;
    } else {
      *((int *)data) = result;
    }
  }
  return err;
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<conf_parse_int>:
  endbr64
  push   %rbx
  mov    %rdx,%rbx
  sub    $0x10,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  mov    %rsp,%rdx
  call   <conf_parse_int_internal@plt>
  test   %eax,%eax
  jne    L15
  mov    D9(%rip),%rcx
  mov    (%rsp),%rdx
  cmp    (%rcx),%rdx
  jle    L48
L43:
  mov    D6(%rip),%rax
  mov    (%rax),%eax
  neg    %eax
L15:
  mov    0x8(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L29
  add    $0x10,%rsp
  pop    %rbx
  ret
  nopl   0x0(%rax)
L48:
  mov    D25(%rip),%rcx
  cmp    (%rcx),%rdx
  jl     L43
  mov    %edx,(%rbx)
  jmp    L15
L29:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int conf_parse_int(const char *lvalue, const char *rvalue, void *data) {
  long long int result;
  int err;
  err = conf_parse_int_internal(lvalue, rvalue, &result);
  if (!err) {
    if (result > INT_MAX || result < INT_MIN) {
      err = -ERANGE;
    } else {
      *((int *)data) = result;
    }
  }
  return err;
}
```
user: What is the c source code of the assembly code below:

```asm
<poMurmurHash>:
  endbr64
  mov    %rdi,%r8
  mov    %esi,%r9d
  mov    %edx,%esi
  lea    0x3(%r9),%edi
  test   %r9d,%r9d
  cmovns %r9d,%edi
  sar    $0x2,%edi
  cmp    $0x3,%r9d
  jle    L0
  mov    $0x0,%ecx
L14:
  imul   $0xcc9e2d51,(%r8,%rcx,4),%edx
  mov    %edx,%eax
  shl    $0xf,%eax
  sar    $0x11,%edx
  or     %edx,%eax
  imul   $0x1b873593,%eax,%eax
  xor    %esi,%eax
  mov    %eax,%edx
  shl    $0xd,%edx
  sar    $0x13,%eax
  or     %edx,%eax
  lea    -0x19ab949c(%rax,%rax,4),%esi
  add    $0x1,%rcx
  cmp    %ecx,%edi
  jg     L14
L0:
  shl    $0x2,%edi
  movslq %edi,%rdi
  lea    (%r8,%rdi,4),%rdx
  mov    %r9d,%eax
  and    $0x3,%eax
  cmp    $0x2,%eax
  je     L54
  cmp    $0x3,%eax
  je     L56
  cmp    $0x1,%eax
  jne    L37
  mov    $0x0,%eax
  jmp    L59
L56:
  mov    0x8(%rdx),%ecx
  shl    $0x10,%ecx
L62:
  mov    0x4(%rdx),%eax
  shl    $0x8,%eax
  xor    %ecx,%eax
L59:
  xor    (%rdx),%eax
  imul   $0xcc9e2d51,%eax,%eax
  mov    %eax,%edx
  shl    $0xf,%edx
  sar    $0x11,%eax
  or     %edx,%eax
  imul   $0x1b873593,%eax,%eax
  xor    %eax,%esi
L37:
  xor    %r9d,%esi
  mov    %esi,%eax
  sar    $0x10,%eax
  xor    %esi,%eax
  imul   $0x85ebca6b,%eax,%eax
  mov    %eax,%edx
  sar    $0xd,%edx
  xor    %eax,%edx
  imul   $0xc2b2ae35,%edx,%edx
  mov    %edx,%eax
  sar    $0x10,%eax
  xor    %edx,%eax
  ret
L54:
  mov    $0x0,%ecx
  jmp    L62
```

assistant: ```c
uint32_t poMurmurHash(const void *key, uint32_t len, uint32_t hash) {
  const int nblocks = len / 4;
  int i;
  for (i = 0; i < nblocks; i++) {
    uint32_t k = ((const uint32_t *)key)[i];
    k *= 0xcc9e2d51;
    k = (k << 15) | (k >> (32 - 15));
    k *= 0x1b873593;
    hash ^= k;
    hash = ((hash << 13) | (hash >> (32 - 13))) * 5 + 0xe6546b64;
  }
  const uint8_t *tail = (const uint8_t *)(((uint8_t *)key) + nblocks * 4);
  uint32_t k1 = 0;
  switch (len & 3) {
  case 3:
    k1 ^= tail[2] << 16;
  case 2:
    k1 ^= tail[1] << 8;
  case 1:
    k1 ^= tail[0];
    k1 *= 0xcc9e2d51;
    k1 = (k1 << 15) | (k1 >> (32 - 15));
    k1 *= 0x1b873593;
    hash ^= k1;
  }
  hash ^= len;
  hash ^= (hash >> 16);
  hash *= 0x85ebca6b;
  hash ^= (hash >> 13);
  hash *= 0xc2b2ae35;
  hash ^= (hash >> 16);
  return hash;
}
```
user: Translate the below assembly code into C programming language:

```asm
<poMurmurHash>:
  endbr64
  mov    %esi,%r9d
  mov    %rdi,%r8
  mov    %edx,%esi
  test   %r9d,%r9d
  lea    0x3(%r9),%edi
  cmovns %r9d,%edi
  sar    $0x2,%edi
  cmp    $0x3,%r9d
  jle    L48
  xor    %ecx,%ecx
  nopw   0x0(%rax,%rax,1)
L7:
  imul   $0xcc9e2d51,(%r8,%rcx,4),%edx
  add    $0x1,%rcx
  mov    %edx,%eax
  sar    $0x11,%edx
  shl    $0xf,%eax
  or     %edx,%eax
  imul   $0x1b873593,%eax,%eax
  xor    %esi,%eax
  mov    %eax,%edx
  sar    $0x13,%eax
  shl    $0xd,%edx
  or     %edx,%eax
  lea    -0x19ab949c(%rax,%rax,4),%esi
  cmp    %ecx,%edi
  jg     L7
L48:
  shl    $0x2,%edi
  mov    %r9d,%eax
  movslq %edi,%rdi
  and    $0x3,%eax
  lea    (%r8,%rdi,4),%rdx
  cmp    $0x2,%eax
  je     L69
  cmp    $0x3,%eax
  je     L65
  cmp    $0x1,%eax
  je     L2
L32:
  xor    %r9d,%esi
  mov    %esi,%eax
  sar    $0x10,%eax
  xor    %esi,%eax
  imul   $0x85ebca6b,%eax,%eax
  mov    %eax,%edx
  sar    $0xd,%edx
  xor    %eax,%edx
  imul   $0xc2b2ae35,%edx,%edx
  mov    %edx,%eax
  sar    $0x10,%eax
  xor    %edx,%eax
  ret
  nop
L2:
  xor    %eax,%eax
L79:
  xor    (%rdx),%eax
  imul   $0xcc9e2d51,%eax,%eax
  mov    %eax,%edx
  sar    $0x11,%eax
  shl    $0xf,%edx
  or     %edx,%eax
  imul   $0x1b873593,%eax,%eax
  xor    %eax,%esi
  jmp    L32
  xchg   %ax,%ax
L65:
  mov    0x8(%rdx),%ecx
  shl    $0x10,%ecx
L21:
  mov    0x4(%rdx),%eax
  shl    $0x8,%eax
  xor    %ecx,%eax
  jmp    L79
L69:
  xor    %ecx,%ecx
  jmp    L21
```

assistant: ```c
uint32_t poMurmurHash(const void *key, uint32_t len, uint32_t hash) {
  const int nblocks = len / 4;
  int i;
  for (i = 0; i < nblocks; i++) {
    uint32_t k = ((const uint32_t *)key)[i];
    k *= 0xcc9e2d51;
    k = (k << 15) | (k >> (32 - 15));
    k *= 0x1b873593;
    hash ^= k;
    hash = ((hash << 13) | (hash >> (32 - 13))) * 5 + 0xe6546b64;
  }
  const uint8_t *tail = (const uint8_t *)(((uint8_t *)key) + nblocks * 4);
  uint32_t k1 = 0;
  switch (len & 3) {
  case 3:
    k1 ^= tail[2] << 16;
  case 2:
    k1 ^= tail[1] << 8;
  case 1:
    k1 ^= tail[0];
    k1 *= 0xcc9e2d51;
    k1 = (k1 << 15) | (k1 >> (32 - 15));
    k1 *= 0x1b873593;
    hash ^= k1;
  }
  hash ^= len;
  hash ^= (hash >> 16);
  hash *= 0x85ebca6b;
  hash ^= (hash >> 13);
  hash *= 0xc2b2ae35;
  hash ^= (hash >> 16);
  return hash;
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<poMurmurHash>:
  endbr64
  mov    %esi,%r9d
  mov    %rdi,%r8
  mov    %edx,%esi
  test   %r9d,%r9d
  lea    0x3(%r9),%edi
  cmovns %r9d,%edi
  sar    $0x2,%edi
  cmp    $0x3,%r9d
  jle    L22
  xor    %ecx,%ecx
  nopw   0x0(%rax,%rax,1)
L61:
  imul   $0xcc9e2d51,(%r8,%rcx,4),%edx
  add    $0x1,%rcx
  mov    %edx,%eax
  sar    $0x11,%edx
  shl    $0xf,%eax
  or     %edx,%eax
  imul   $0x1b873593,%eax,%eax
  xor    %esi,%eax
  mov    %eax,%edx
  sar    $0x13,%eax
  shl    $0xd,%edx
  or     %edx,%eax
  lea    -0x19ab949c(%rax,%rax,4),%esi
  cmp    %ecx,%edi
  jg     L61
L22:
  shl    $0x2,%edi
  mov    %r9d,%eax
  movslq %edi,%rdi
  and    $0x3,%eax
  lea    (%r8,%rdi,4),%rdx
  cmp    $0x2,%eax
  je     L35
  cmp    $0x3,%eax
  je     L70
  cmp    $0x1,%eax
  je     L20
L52:
  xor    %r9d,%esi
  mov    %esi,%eax
  sar    $0x10,%eax
  xor    %esi,%eax
  imul   $0x85ebca6b,%eax,%eax
  mov    %eax,%edx
  sar    $0xd,%edx
  xor    %eax,%edx
  imul   $0xc2b2ae35,%edx,%edx
  mov    %edx,%eax
  sar    $0x10,%eax
  xor    %edx,%eax
  ret
  nop
L20:
  xor    %eax,%eax
L0:
  xor    (%rdx),%eax
  imul   $0xcc9e2d51,%eax,%eax
  mov    %eax,%edx
  sar    $0x11,%eax
  shl    $0xf,%edx
  or     %edx,%eax
  imul   $0x1b873593,%eax,%eax
  xor    %eax,%esi
  jmp    L52
  xchg   %ax,%ax
L70:
  mov    0x8(%rdx),%ecx
  shl    $0x10,%ecx
L73:
  mov    0x4(%rdx),%eax
  shl    $0x8,%eax
  xor    %ecx,%eax
  jmp    L0
L35:
  xor    %ecx,%ecx
  jmp    L73
```

assistant: ```c
uint32_t poMurmurHash(const void *key, uint32_t len, uint32_t hash) {
  const int nblocks = len / 4;
  int i;
  for (i = 0; i < nblocks; i++) {
    uint32_t k = ((const uint32_t *)key)[i];
    k *= 0xcc9e2d51;
    k = (k << 15) | (k >> (32 - 15));
    k *= 0x1b873593;
    hash ^= k;
    hash = ((hash << 13) | (hash >> (32 - 13))) * 5 + 0xe6546b64;
  }
  const uint8_t *tail = (const uint8_t *)(((uint8_t *)key) + nblocks * 4);
  uint32_t k1 = 0;
  switch (len & 3) {
  case 3:
    k1 ^= tail[2] << 16;
  case 2:
    k1 ^= tail[1] << 8;
  case 1:
    k1 ^= tail[0];
    k1 *= 0xcc9e2d51;
    k1 = (k1 << 15) | (k1 >> (32 - 15));
    k1 *= 0x1b873593;
    hash ^= k1;
  }
  hash ^= len;
  hash ^= (hash >> 16);
  hash *= 0x85ebca6b;
  hash ^= (hash >> 13);
  hash *= 0xc2b2ae35;
  hash ^= (hash >> 16);
  return hash;
}
```
user: Translate the below assembly code into C programming language:

```asm
<MINUS>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %edi,-0x14(%rbp)
  mov    %esi,-0x18(%rbp)
  movl   $0x0,-0x8(%rbp)
  mov    -0x14(%rbp),%eax
  cmp    -0x18(%rbp),%eax
  jl     L4
  mov    -0x14(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x4(%rbp)
  jmp    L44
L35:
  mov    -0x8(%rbp),%edx
  mov    -0x18(%rbp),%eax
  add    %edx,%eax
  cmp    %eax,-0x14(%rbp)
  je     L57
  addl   $0x1,-0x8(%rbp)
  subl   $0x1,-0x4(%rbp)
L44:
  cmpl   $0x0,-0x4(%rbp)
  jg     L35
  jmp    L51
L4:
  nop
  jmp    L51
L57:
  nop
L51:
  mov    -0x8(%rbp),%eax
  pop    %rbp
  ret
```

assistant: ```c
int MINUS(int M, int N) {
  int output = 0;
  if (M < N)
    goto quit0;
  {
    int ctr1;
    for (ctr1 = (M + 1); ctr1 > 0; ctr1--) {
      if ((output + N) == M)
        goto abort1;
      output = (output + 1);
    }
  }
abort1:
quit0:
  return output;
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<MINUS>:
  endbr64
  mov    $0x0,%ecx
  cmp    %esi,%edi
  jl     L27
  test   %edi,%edi
  js     L60
  cmp    %esi,%edi
  je     L30
  lea    0x1(%rdi),%ecx
  mov    $0x0,%eax
L39:
  add    $0x1,%eax
  cmp    %ecx,%eax
  je     L27
  lea    (%rsi,%rax,1),%edx
  cmp    %edx,%edi
  jne    L39
  mov    %eax,%ecx
L27:
  mov    %ecx,%eax
  ret
L60:
  mov    $0x0,%ecx
  jmp    L27
L30:
  mov    $0x0,%ecx
  jmp    L27
```

assistant: ```c
int MINUS(int M, int N) {
  int output = 0;
  if (M < N)
    goto quit0;
  {
    int ctr1;
    for (ctr1 = (M + 1); ctr1 > 0; ctr1--) {
      if ((output + N) == M)
        goto abort1;
      output = (output + 1);
    }
  }
abort1:
quit0:
  return output;
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<MINUS>:
  endbr64
  xor    %eax,%eax
  cmp    %esi,%edi
  jl     L42
  lea    0x1(%rdi),%edx
  test   %edx,%edx
  jle    L42
  cmp    %esi,%edi
  jne    L44
  jmp    L0
  nopw   0x0(%rax,%rax,1)
L16:
  lea    (%rsi,%rax,1),%edx
  cmp    %edx,%edi
  je     L42
L44:
  mov    %eax,%edx
  add    $0x1,%eax
  cmp    %edx,%edi
  jne    L16
L42:
  ret
L0:
  ret
```

assistant: ```c
int MINUS(int M, int N) {
  int output = 0;
  if (M < N)
    goto quit0;
  {
    int ctr1;
    for (ctr1 = (M + 1); ctr1 > 0; ctr1--) {
      if ((output + N) == M)
        goto abort1;
      output = (output + 1);
    }
  }
abort1:
quit0:
  return output;
}
```
user: 提供的汇编代码用C语言表示会是什么样子：

```asm
<MINUS>:
  endbr64
  xor    %eax,%eax
  cmp    %esi,%edi
  jl     L57
  lea    0x1(%rdi),%edx
  test   %edx,%edx
  jle    L57
  cmp    %esi,%edi
  jne    L42
  jmp    L55
  nopw   0x0(%rax,%rax,1)
L23:
  lea    (%rsi,%rax,1),%edx
  cmp    %edx,%edi
  je     L57
L42:
  mov    %eax,%edx
  add    $0x1,%eax
  cmp    %edx,%edi
  jne    L23
L57:
  ret
L55:
  ret
```

assistant: ```c
int MINUS(int M, int N) {
  int output = 0;
  if (M < N)
    goto quit0;
  {
    int ctr1;
    for (ctr1 = (M + 1); ctr1 > 0; ctr1--) {
      if ((output + N) == M)
        goto abort1;
      output = (output + 1);
    }
  }
abort1:
quit0:
  return output;
}
```
user: Demonstrate the C code that generates the assembly output below:

```asm
<SparseCompRow_num_flops>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %edi,-0x14(%rbp)
  mov    %esi,-0x18(%rbp)
  mov    %edx,-0x1c(%rbp)
  mov    -0x18(%rbp),%eax
  cltd
  idivl  -0x14(%rbp)
  mov    %eax,%edx
  mov    -0x14(%rbp),%eax
  imul   %edx,%eax
  mov    %eax,-0x4(%rbp)
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x4(%rbp),%xmm0
  movapd %xmm0,%xmm1
  addsd  %xmm0,%xmm1
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x1c(%rbp),%xmm0
  mulsd  %xmm1,%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  pop    %rbp
  ret
```

assistant: ```c
double SparseCompRow_num_flops(int N, int nz, int num_iterations) {
  int actual_nz = (nz / N) * N;
  return ((double)actual_nz) * 2.0 * ((double)num_iterations);
}
```
user: 请将以下的汇编代码转换成C语言代码：

```asm
<SparseCompRow_num_flops>:
  endbr64
  mov    %edx,%ecx
  mov    %esi,%eax
  cltd
  idiv   %edi
  mov    %eax,%esi
  imul   %edi,%esi
  pxor   %xmm0,%xmm0
  cvtsi2sd %esi,%xmm0
  addsd  %xmm0,%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2sd %ecx,%xmm1
  mulsd  %xmm1,%xmm0
  ret
```

assistant: ```c
double SparseCompRow_num_flops(int N, int nz, int num_iterations) {
  int actual_nz = (nz / N) * N;
  return ((double)actual_nz) * 2.0 * ((double)num_iterations);
}
```
user: 这段汇编代码用C语言表示是什么样的？

```asm
<SparseCompRow_num_flops>:
  endbr64
  mov    %esi,%eax
  pxor   %xmm0,%xmm0
  pxor   %xmm1,%xmm1
  mov    %edx,%r8d
  cltd
  cvtsi2sd %r8d,%xmm1
  idiv   %edi
  mov    %eax,%esi
  imul   %edi,%esi
  cvtsi2sd %esi,%xmm0
  addsd  %xmm0,%xmm0
  mulsd  %xmm1,%xmm0
  ret
```

assistant: ```c
double SparseCompRow_num_flops(int N, int nz, int num_iterations) {
  int actual_nz = (nz / N) * N;
  return ((double)actual_nz) * 2.0 * ((double)num_iterations);
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<mfu_mul_src>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %edi,-0x14(%rbp)
  mov    %esi,-0x18(%rbp)
  mov    -0x18(%rbp),%eax
  cltq
  shl    $0x4,%rax
  mov    %rax,%rdx
  lea    D7(%rip),%rax
  add    %rdx,%rax
  mov    %rax,-0x8(%rbp)
  cmpl   $0xd,-0x14(%rbp)
  ja     L71
  mov    -0x14(%rbp),%eax
  lea    0x0(,%rax,4),%rdx
  lea    D8(%rip),%rax
  mov    (%rdx,%rax,1),%eax
  cltq
  lea    D8(%rip),%rdx
  add    %rdx,%rax
  notrack jmp *%rax
  lea    D122(%rip),%rax
  jmp    L30
  lea    D31(%rip),%rax
  jmp    L30
  lea    D91(%rip),%rax
  jmp    L30
  lea    D34(%rip),%rax
  jmp    L30
  lea    D42(%rip),%rax
  jmp    L30
  lea    D98(%rip),%rax
  jmp    L30
  lea    D76(%rip),%rax
  jmp    L30
  lea    D104(%rip),%rax
  jmp    L30
L71:
  mov    -0x14(%rbp),%edx
  mov    -0x8(%rbp),%rax
  lea    D68(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <sprintf@plt>
  nop
  mov    -0x18(%rbp),%eax
  cltq
  shl    $0x4,%rax
  mov    %rax,%rdx
  lea    D7(%rip),%rax
  add    %rdx,%rax
L30:
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: label: D122
type: string
name: extract_symbolic_data
arguments: label: D31
type: string
name: extract_symbolic_data
arguments: label: D91
type: string
name: extract_symbolic_data
arguments: label: D34
type: string
name: extract_symbolic_data
arguments: label: D42
type: string
name: extract_symbolic_data
arguments: label: D98
type: string
name: extract_symbolic_data
arguments: label: D76
type: string
name: extract_symbolic_data
arguments: label: D104
type: string
name: extract_symbolic_data
arguments: label: D68
type: string

tool: D122: r0

tool: D31: r1

tool: D91: r2

tool: D34: r3

tool: D42: sfu

tool: D98: bar0

tool: D76: bar1

tool: D104: #1

tool: D68: src%d

assistant: ```c
const char *mfu_mul_src(unsigned src, int mul_idx) {
  static char ret[2][16];
  char *buf = ret[mul_idx];
  switch (src) {
  case 0:
    return "r0";
  case 1:
    return "r1";
  case 2:
    return "r2";
  case 3:
    return "r3";
  case 10:
    return "sfu";
  case 11:
    return "bar0";
  case 12:
    return "bar1";
  case 13:
    return "#1";
  default:
    sprintf(buf, "src%d", src);
    break;
  }
  return ret[mul_idx];
}
```
user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<mfu_mul_src>:
  endbr64
  push   %rbx
  cmp    $0xd,%edi
  ja     L88
  mov    %edi,%eax
  lea    D13(%rip),%rdx
  movslq (%rdx,%rax,4),%rax
  add    %rdx,%rax
  notrack jmp *%rax
  lea    D22(%rip),%rbx
  jmp    L2
  lea    D81(%rip),%rbx
L2:
  mov    %rbx,%rax
  pop    %rbx
  ret
  lea    D18(%rip),%rbx
  jmp    L2
  lea    D34(%rip),%rbx
  jmp    L2
  lea    D96(%rip),%rbx
  jmp    L2
  lea    D74(%rip),%rbx
  jmp    L2
  lea    D31(%rip),%rbx
  jmp    L2
L88:
  movslq %esi,%rsi
  shl    $0x4,%rsi
  lea    D91(%rip),%rax
  lea    (%rsi,%rax,1),%rbx
  mov    %edi,%edx
  lea    D23(%rip),%rsi
  mov    %rbx,%rdi
  call   <sprintf@plt>
  jmp    L2
  lea    D37(%rip),%rbx
  jmp    L2
```

tool_calls: name: retrieve_data
arguments: tag: D22
type_infered: string
name: retrieve_data
arguments: tag: D81
type_infered: string
name: retrieve_data
arguments: tag: D18
type_infered: string
name: retrieve_data
arguments: tag: D34
type_infered: string
name: retrieve_data
arguments: tag: D96
type_infered: string
name: retrieve_data
arguments: tag: D74
type_infered: string
name: retrieve_data
arguments: tag: D31
type_infered: string
name: retrieve_data
arguments: tag: D23
type_infered: string
name: retrieve_data
arguments: tag: D37
type_infered: string

tool: D22: r1

tool: D81: r2

tool: D18: r3

tool: D34: sfu

tool: D96: bar0

tool: D74: bar1

tool: D31: #1

tool: D23: src%d

tool: D37: r0

assistant: ```c
const char *mfu_mul_src(unsigned src, int mul_idx) {
  static char ret[2][16];
  char *buf = ret[mul_idx];
  switch (src) {
  case 0:
    return "r0";
  case 1:
    return "r1";
  case 2:
    return "r2";
  case 3:
    return "r3";
  case 10:
    return "sfu";
  case 11:
    return "bar0";
  case 12:
    return "bar1";
  case 13:
    return "#1";
  default:
    sprintf(buf, "src%d", src);
    break;
  }
  return ret[mul_idx];
}
```
user: 这段汇编代码用C语言表示是什么样的?

```asm
<mfu_mul_src>:
  endbr64
  push   %r12
  cmp    $0xd,%edi
  ja     L6
  lea    D13(%rip),%rcx
  mov    %edi,%eax
  movslq (%rcx,%rax,4),%rax
  add    %rcx,%rax
  notrack jmp *%rax
  xchg   %ax,%ax
L6:
  movslq %esi,%rsi
  lea    D33(%rip),%rax
  mov    %edi,%edx
  shl    $0x4,%rsi
  lea    (%rsi,%rax,1),%r12
  lea    D26(%rip),%rsi
  mov    %r12,%rdi
  call   <sprintf@plt>
L24:
  mov    %r12,%rax
  pop    %r12
  ret
  nopl   0x0(%rax)
  lea    D27(%rip),%r12
  mov    %r12,%rax
  pop    %r12
  ret
  nopl   (%rax)
  lea    D76(%rip),%r12
  mov    %r12,%rax
  pop    %r12
  ret
  nopl   (%rax)
  lea    D36(%rip),%r12
  mov    %r12,%rax
  pop    %r12
  ret
  nopl   (%rax)
  lea    D52(%rip),%r12
  mov    %r12,%rax
  pop    %r12
  ret
  nopl   (%rax)
  lea    D41(%rip),%r12
  mov    %r12,%rax
  pop    %r12
  ret
  nopl   (%rax)
  lea    D56(%rip),%r12
  mov    %r12,%rax
  pop    %r12
  ret
  nopl   (%rax)
  lea    D78(%rip),%r12
  jmp    L24
  nopl   0x0(%rax)
  lea    D100(%rip),%r12
  jmp    L24
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D26
data_type: string
name: extract_symbolic_data
arguments: data_label: D27
data_type: string
name: extract_symbolic_data
arguments: data_label: D76
data_type: string
name: extract_symbolic_data
arguments: data_label: D36
data_type: string
name: extract_symbolic_data
arguments: data_label: D52
data_type: string
name: extract_symbolic_data
arguments: data_label: D41
data_type: string
name: extract_symbolic_data
arguments: data_label: D56
data_type: string
name: extract_symbolic_data
arguments: data_label: D78
data_type: string
name: extract_symbolic_data
arguments: data_label: D100
data_type: string

tool: D26: src%d

tool: D27: r2

tool: D76: r3

tool: D36: sfu

tool: D52: bar0

tool: D41: bar1

tool: D56: #1

tool: D78: r0

tool: D100: r1

assistant: ```c
const char *mfu_mul_src(unsigned src, int mul_idx) {
  static char ret[2][16];
  char *buf = ret[mul_idx];
  switch (src) {
  case 0:
    return "r0";
  case 1:
    return "r1";
  case 2:
    return "r2";
  case 3:
    return "r3";
  case 10:
    return "sfu";
  case 11:
    return "bar0";
  case 12:
    return "bar1";
  case 13:
    return "#1";
  default:
    sprintf(buf, "src%d", src);
    break;
  }
  return ret[mul_idx];
}
```