user: 这段汇编代码用C语言表示是什么样的?

```asm
<MapDspInt>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %edi,-0x34(%rbp)
  mov    %esi,-0x38(%rbp)
  cmpl   $0x3,-0x38(%rbp)
  jle    L15
  cmpl   $0xf,-0x38(%rbp)
  jle    L14
L15:
  lea    D16(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0xffffffff,%eax
  jmp    L7
L14:
  cmpl   $0x80,-0x34(%rbp)
  jle    L24
  lea    D31(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0xffffffff,%eax
  jmp    L7
L24:
  mov    -0x38(%rbp),%eax
  cltd
  shr    $0x1e,%edx
  add    %edx,%eax
  and    $0x3,%eax
  sub    %edx,%eax
  mov    %eax,-0x30(%rbp)
  mov    -0x38(%rbp),%eax
  lea    0x3(%rax),%edx
  test   %eax,%eax
  cmovs  %edx,%eax
  sar    $0x2,%eax
  sub    $0x1,%eax
  mov    %eax,-0x2c(%rbp)
  mov    -0x2c(%rbp),%eax
  add    $0x600041,%eax
  shl    $0x2,%eax
  cltq
  mov    (%rax),%rax
  mov    %rax,-0x28(%rbp)
  mov    -0x28(%rbp),%rax
  mov    %rax,-0x20(%rbp)
  mov    -0x30(%rbp),%eax
  shl    $0x3,%eax
  mov    $0xff,%edx
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%eax
  cltq
  and    -0x20(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x30(%rbp),%eax
  shl    $0x3,%eax
  mov    %eax,%ecx
  shr    %cl,%rdx
  mov    %rdx,%rax
  mov    %rax,-0x18(%rbp)
  mov    -0x30(%rbp),%eax
  shl    $0x3,%eax
  mov    $0xff,%edx
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%eax
  not    %eax
  cltq
  and    %rax,-0x20(%rbp)
  mov    -0x30(%rbp),%eax
  shl    $0x3,%eax
  mov    -0x34(%rbp),%edx
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%eax
  cltq
  or     %rax,-0x20(%rbp)
  mov    -0x20(%rbp),%rax
  mov    %rax,-0x10(%rbp)
  mov    -0x2c(%rbp),%eax
  add    $0x600041,%eax
  shl    $0x2,%eax
  cltq
  mov    %rax,%rdx
  mov    -0x10(%rbp),%rax
  mov    %rax,(%rdx)
  mov    -0x2c(%rbp),%eax
  add    $0x600041,%eax
  lea    0x0(,%rax,4),%ecx
  mov    -0x38(%rbp),%edx
  mov    -0x34(%rbp),%eax
  mov    %eax,%esi
  lea    D29(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x2c(%rbp),%eax
  add    $0x600041,%eax
  shl    $0x2,%eax
  cltq
  mov    (%rax),%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x8(%rbp),%rdx
  mov    -0x2c(%rbp),%eax
  mov    %eax,%esi
  lea    D8(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x18(%rbp),%rax
L7:
  leave
  ret
```

tool_calls: name: read_data
arguments: tag: D16
data_type: string
name: read_data
arguments: tag: D31
data_type: string
name: read_data
arguments: tag: D29
data_type: string
name: read_data
arguments: tag: D8
data_type: string

tool: D16: bad dsp_int

tool: D31: bad efnum 

tool: D29: map %d to dsp %d, in register 0x%08x


tool: D8: COREPAC_INT_MUX_REG(%d) is now 0x%08x


assistant: ```c
int MapDspInt(int efnum, int dspInt) {
  int indx;
  int num;
  unsigned long tmp;
  unsigned long last;
  if (dspInt < 4 || dspInt > 15) {
    printf("bad dsp_int\n");
    return -1;
  }
  if (efnum > 128) {
    printf("bad efnum \n");
    return -1;
  }
  indx = dspInt % 4;
  num = dspInt / 4 - 1;
  tmp = ({
    unsigned long __v = (*(volatile unsigned long *)(((0x01800000 + 0x104) + (num * 4))));
    __v;
  });
  last = ((tmp & (0xff << (indx * 8))) >> (indx * 8));
  tmp &= ~(0xff << (indx * 8));
  tmp |= (efnum << (indx * 8));
  ({
    unsigned long __v = tmp;
    (*(volatile unsigned long *)(((0x01800000 + 0x104) + (num * 4))) = (__v));
    __v;
  });
  printf("map %d to dsp %d, in register 0x%08x\n", efnum, dspInt, ((0x01800000 + 0x104) + (num * 4)));
  printf("COREPAC_INT_MUX_REG(%d) is now 0x%08x\n", num, ({
           unsigned long __v = (*(volatile unsigned long *)(((0x01800000 + 0x104) + (num * 4))));
           __v;
         }));
  return (int)last;
}
```