user: 请将以下的汇编代码转换成C语言代码：

```asm
<AIC31SampleRateConfig>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %edi,-0x14(%rbp)
  mov    %esi,-0x18(%rbp)
  mov    %edx,-0x1c(%rbp)
  movb   $0xa,-0x7(%rbp)
  movb   $0x2,-0x5(%rbp)
  movb   $0x1,-0x4(%rbp)
  movb   $0x7,-0x6(%rbp)
  movw   $0x1490,-0x2(%rbp)
  cmpl   $0x17700,-0x1c(%rbp)
  je     L46
  cmpl   $0x17700,-0x1c(%rbp)
  ja     L88
  cmpl   $0xbb80,-0x1c(%rbp)
  je     L166
  cmpl   $0xbb80,-0x1c(%rbp)
  ja     L88
  cmpl   $0xac44,-0x1c(%rbp)
  je     L126
  cmpl   $0xac44,-0x1c(%rbp)
  ja     L88
  cmpl   $0x7d00,-0x1c(%rbp)
  je     L217
  cmpl   $0x7d00,-0x1c(%rbp)
  ja     L88
  cmpl   $0x5dc0,-0x1c(%rbp)
  je     L45
  cmpl   $0x5dc0,-0x1c(%rbp)
  ja     L88
  cmpl   $0x5622,-0x1c(%rbp)
  je     L256
  cmpl   $0x5622,-0x1c(%rbp)
  ja     L88
  cmpl   $0x3e80,-0x1c(%rbp)
  je     L86
  cmpl   $0x3e80,-0x1c(%rbp)
  ja     L88
  cmpl   $0x1f40,-0x1c(%rbp)
  je     L153
  cmpl   $0x2b11,-0x1c(%rbp)
  je     L144
  jmp    L88
L153:
  movb   $0x8,-0x6(%rbp)
  movw   $0x780,-0x2(%rbp)
  movb   $0xaa,-0x8(%rbp)
  jmp    L104
L144:
  movb   $0x66,-0x8(%rbp)
  movb   $0x8a,-0x7(%rbp)
  jmp    L104
L86:
  movb   $0x8,-0x6(%rbp)
  movw   $0x780,-0x2(%rbp)
  movb   $0x44,-0x8(%rbp)
  jmp    L104
L256:
  movb   $0x22,-0x8(%rbp)
  movb   $0x8a,-0x7(%rbp)
  jmp    L104
L45:
  movb   $0x8,-0x6(%rbp)
  movw   $0x780,-0x2(%rbp)
  movb   $0x22,-0x8(%rbp)
  jmp    L104
L217:
  movb   $0x8,-0x6(%rbp)
  movw   $0x780,-0x2(%rbp)
  movb   $0x22,-0x8(%rbp)
  jmp    L104
L126:
  movb   $0x8a,-0x7(%rbp)
  movb   $0x0,-0x8(%rbp)
  jmp    L104
L166:
  movb   $0x8,-0x6(%rbp)
  movw   $0x780,-0x2(%rbp)
  movb   $0x0,-0x8(%rbp)
  jmp    L104
L46:
  movb   $0x8,-0x6(%rbp)
  movw   $0x780,-0x2(%rbp)
  movb   $0x0,-0x8(%rbp)
  jmp    L104
L88:
  movb   $0x0,-0x8(%rbp)
  nop
L104:
  mov    -0x18(%rbp),%eax
  and    -0x8(%rbp),%al
  mov    %al,-0x3(%rbp)
  movzbl -0x3(%rbp),%edx
  mov    -0x14(%rbp),%eax
  mov    $0x2,%esi
  mov    %eax,%edi
  call   <CodecRegWrite@plt>
  movzbl -0x5(%rbp),%eax
  or     $0xffffff80,%eax
  movzbl %al,%edx
  mov    -0x14(%rbp),%eax
  mov    $0x3,%esi
  mov    %eax,%edi
  call   <CodecRegWrite@plt>
  mov    -0x14(%rbp),%eax
  mov    $0x8,%edx
  mov    $0x66,%esi
  mov    %eax,%edi
  call   <CodecRegWrite@plt>
  mov    -0x14(%rbp),%eax
  mov    $0x1,%edx
  mov    $0x65,%esi
  mov    %eax,%edi
  call   <CodecRegBitClr@plt>
  mov    -0x14(%rbp),%eax
  mov    $0x20,%edx
  mov    $0x62,%esi
  mov    %eax,%edi
  call   <CodecRegWrite@plt>
  movzbl -0x6(%rbp),%eax
  shl    $0x2,%eax
  movzbl %al,%edx
  mov    -0x14(%rbp),%eax
  mov    $0x4,%esi
  mov    %eax,%edi
  call   <CodecRegWrite@plt>
  movzwl -0x2(%rbp),%eax
  shr    $0x6,%ax
  movzbl %al,%edx
  mov    -0x14(%rbp),%eax
  mov    $0x5,%esi
  mov    %eax,%edi
  call   <CodecRegWrite@plt>
  movzwl -0x2(%rbp),%eax
  shl    $0x2,%eax
  movzbl %al,%edx
  mov    -0x14(%rbp),%eax
  mov    $0x6,%esi
  mov    %eax,%edi
  call   <CodecRegWrite@plt>
  movzbl -0x4(%rbp),%edx
  mov    -0x14(%rbp),%eax
  mov    $0xb,%esi
  mov    %eax,%edi
  call   <CodecRegWrite@plt>
  mov    -0x14(%rbp),%eax
  mov    $0xd0,%edx
  mov    $0x8,%esi
  mov    %eax,%edi
  call   <CodecRegWrite@plt>
  movzbl -0x7(%rbp),%edx
  mov    -0x14(%rbp),%eax
  mov    $0x7,%esi
  mov    %eax,%edi
  call   <CodecRegWrite@plt>
  nop
  leave
  ret
```

assistant: ```c
void AIC31SampleRateConfig(unsigned int baseAddr, unsigned int mode, unsigned int sampleRate) {
  unsigned char fs;
  unsigned char ref = 0x0Au;
  unsigned char temp;
  unsigned char pllPval = 2u;
  unsigned char pllRval = 1u;
  unsigned char pllJval = 7u;
  unsigned short pllDval = 5264u;
  switch (sampleRate) {
  case 8000:
    pllJval = 8u;
    pllDval = 1920u;
    fs = 0xAAu;
    break;
  case 11025:
    fs = 0x66u;
    ref = 0x8Au;
    break;
  case 16000:
    pllJval = 8u;
    pllDval = 1920u;
    fs = 0x44u;
    break;
  case 22050:
    fs = 0x22u;
    ref = 0x8Au;
    break;
  case 24000:
    pllJval = 8u;
    pllDval = 1920u;
    fs = 0x22u;
    break;
  case 32000:
    pllJval = 8u;
    pllDval = 1920u;
    fs = 0x22u;
    break;
  case 44100:
    ref = 0x8Au;
    fs = 0x00u;
    break;
  case 48000:
    pllJval = 8u;
    pllDval = 1920u;
    fs = 0x00u;
    break;
  case 96000:
    pllJval = 8u;
    pllDval = 1920u;
    fs = 0x00u;
    break;
  default:
    fs = 0x00u;
    break;
  }
  temp = (mode & fs);
  CodecRegWrite(baseAddr, (2), temp);
  CodecRegWrite(baseAddr, (3), 0x80 | pllPval);
  CodecRegWrite(baseAddr, (102), 0x08);
  CodecRegBitClr(baseAddr, (101), 0x01);
  CodecRegWrite(baseAddr, (98), 0x20);
  CodecRegWrite(baseAddr, (4), pllJval << 2);
  CodecRegWrite(baseAddr, (5), (pllDval >> 6) & 0xFF);
  CodecRegWrite(baseAddr, (6), (pllDval & 0x3F) << 2);
  CodecRegWrite(baseAddr, (11), pllRval);
  CodecRegWrite(baseAddr, (8), 0xD0);
  CodecRegWrite(baseAddr, (7), ref);
}
```