user: 提供的汇编代码用C语言表示会是什么样子：

```asm
<fc8300b_tuner_set_pll>:
  endbr64
  push   %r15
  xor    %ecx,%ecx
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  mov    %esi,%ebx
  sub    $0x48,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  movabs $0x6040302018100c08,%rax
  lea    0x31(%rsp),%rdi
  movb   $0x0,0x2e(%rsp)
  movb   $0x0,0x2f(%rsp)
  mov    %rax,0x30(%rsp)
  mov    $0xc,%eax
  jmp    L41
  nopl   0x0(%rax)
L146:
  movzbl (%rdi,%rcx,1),%eax
L41:
  imul   %edx,%eax
  mov    %ecx,%esi
  cmp    $0x5b8d80,%eax
  ja     L92
  add    $0x1,%rcx
  cmp    $0x7,%rcx
  jne    L146
  movl   $0xf,0xc(%rsp)
  mov    $0x60,%eax
  mov    $0x7,%esi
L47:
  imul   %eax,%edx
  and    $0x1,%esi
  movb   $0x4,0x1e(%rsp)
  movzwl %bx,%ebx
  mov    %sil,0x1f(%rsp)
  lea    0x2e(%rsp),%r12
  lea    0x2f(%rsp),%r14
  mov    %edx,%r13d
  mov    %r13,%rax
  mov    %r13d,0x18(%rsp)
  imul   $0x1b4e81b5,%r13,%r13
  mov    %r13,%rdi
  shr    $0x2e,%r13
  shr    $0x2b,%rdi
  and    $0x20,%r13d
  imul   $0x4b00,%edi,%ecx
  mov    %rdi,%rdx
  sub    %ecx,%eax
  shl    $0x10,%eax
  imul   $0x1b4e81b5,%rax,%rax
  shr    $0x27,%rax
  movzbl %ah,%edi
  mov    %eax,%ecx
  movzbl %al,%eax
  mov    %edi,0x8(%rsp)
  or     $0x1,%eax
  movzbl %dl,%edi
  shr    $0x10,%ecx
  mov    %edi,0x10(%rsp)
  add    %ecx,%r13d
  mov    %eax,0x14(%rsp)
  movzbl %r13b,%r13d
L103:
  mov    $0x31,%ecx
  mov    $0x75,%edx
  mov    %ebx,%esi
  mov    %rbp,%rdi
  call   <fc8300b_write@plt>
  xor    %ecx,%ecx
  mov    $0x77,%edx
  mov    %ebx,%esi
  mov    %rbp,%rdi
  mov    $0x2,%r15d
  call   <fc8300b_write@plt>
  mov    0xc(%rsp),%ecx
  mov    $0x51,%edx
  mov    %ebx,%esi
  mov    %rbp,%rdi
  call   <fc8300b_write@plt>
  mov    %r13d,%ecx
  mov    $0x57,%edx
  mov    %ebx,%esi
  mov    %rbp,%rdi
  call   <fc8300b_write@plt>
  mov    0x10(%rsp),%ecx
  mov    $0x5a,%edx
  mov    %ebx,%esi
  mov    %rbp,%rdi
  call   <fc8300b_write@plt>
  mov    $0xe3,%ecx
  mov    %ebx,%esi
  mov    %rbp,%rdi
  mov    $0x50,%edx
  call   <fc8300b_write@plt>
  mov    $0xff,%ecx
  mov    %ebx,%esi
  mov    %rbp,%rdi
  mov    $0x50,%edx
  call   <fc8300b_write@plt>
  mov    0x8(%rsp),%ecx
  mov    $0x58,%edx
  mov    %ebx,%esi
  mov    %rbp,%rdi
  call   <fc8300b_write@plt>
  mov    0x14(%rsp),%ecx
  mov    $0x59,%edx
  mov    %ebx,%esi
  mov    %rbp,%rdi
  call   <fc8300b_write@plt>
  mov    $0x2,%edi
  call   <msWait@plt>
L104:
  mov    %r12,%rcx
  mov    $0x64,%edx
  mov    %ebx,%esi
  mov    %rbp,%rdi
  call   <fc8300b_read@plt>
  mov    %r14,%rcx
  mov    $0x65,%edx
  mov    %ebx,%esi
  mov    %rbp,%rdi
  call   <fc8300b_read@plt>
  movzbl 0x2e(%rsp),%eax
  and    $0x11,%eax
  cmp    $0x11,%al
  je     L66
  cmp    $0x5,%r15b
  je     L129
L142:
  add    $0x1,%r15d
  jmp    L104
  nopw   0x0(%rax,%rax,1)
L66:
  cmpb   $0x1,0x2f(%rsp)
  ja     L100
  cmp    $0x5,%r15b
  jne    L142
  nopl   (%rax)
L38:
  mov    0x38(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L42
  add    $0x48,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   (%rax)
L100:
  mov    %r14,%rcx
  mov    $0x76,%edx
  mov    %ebx,%esi
  mov    %rbp,%rdi
  call   <fc8300b_read@plt>
  cmpb   $0x3d,0x2f(%rsp)
  jbe    L127
L48:
  movzbl 0x2e(%rsp),%eax
  and    $0x11,%eax
  cmp    $0x11,%al
  je     L38
  nopl   (%rax)
L129:
  mov    %r12,%rcx
  mov    $0x74,%edx
  mov    %ebx,%esi
  mov    %rbp,%rdi
  call   <fc8300b_read@plt>
  movzbl 0x2e(%rsp),%edx
  mov    %ebx,%esi
  mov    %rbp,%rdi
  call   <vco_cal@plt>
  subb   $0x1,0x1e(%rsp)
  jne    L103
  jmp    L38
  cs nopw 0x0(%rax,%rax,1)
L92:
  lea    0x1(%rsi,%rsi,1),%r15d
  movzbl %cl,%eax
  movzbl %r15b,%edi
  movzbl 0x30(%rsp,%rax,1),%eax
  mov    %edi,0xc(%rsp)
  jmp    L47
L127:
  cmpl   $0x5e9ac0,0x18(%rsp)
  ja     L123
  cmpb   $0x0,0x1f(%rsp)
  je     L48
L123:
  mov    %ebx,%esi
  mov    %rbp,%rdi
  mov    $0x2,%ecx
  mov    $0x77,%edx
  call   <fc8300b_write@plt>
  mov    %ebx,%esi
  mov    %rbp,%rdi
  mov    $0xe3,%ecx
  mov    $0x50,%edx
  call   <fc8300b_write@plt>
  mov    $0xff,%ecx
  mov    %ebx,%esi
  mov    %rbp,%rdi
  mov    $0x50,%edx
  call   <fc8300b_write@plt>
  jmp    L48
L42:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int fc8300b_tuner_set_pll(void *handle, unsigned short devid, unsigned int freq, unsigned int offset) {
  unsigned char data_0x51, data_0x57, lo_select;
  unsigned int f_diff, f_diff_shifted, n_val, k_val, f_vco;
  unsigned int f_vco_max = 6000000;
  unsigned char lo_divide_ratio[8] = {8, 12, 16, 24, 32, 48, 64, 96};
  unsigned char pre_shift_bits = 4;
  unsigned char lock_detect = 0;
  unsigned char lock_bank = 0;
  unsigned char lock_condition = 0x11;
  unsigned char i, j;
  for (lo_select = 0; lo_select < 7; lo_select++)
    if (f_vco_max < freq * lo_divide_ratio[lo_select + 1])
      break;
  f_vco = freq * lo_divide_ratio[lo_select];
  n_val = f_vco / 19200;
  f_diff = f_vco - 19200 * n_val;
  f_diff_shifted = f_diff << (20 - pre_shift_bits);
  k_val = f_diff_shifted / (19200 >> pre_shift_bits);
  k_val = k_val | 1;
  data_0x57 = ((n_val >> 3) & 0x20);
  data_0x57 += (k_val >> 16);
  data_0x51 = 0x00;
  data_0x51 += (lo_select * 2) + 1;
  for (j = 0; j < 4; j++) {
    fc8300b_write(handle, devid, 0x75, 0x31);
    fc8300b_write(handle, devid, 0x77, 0x00);
    fc8300b_write(handle, devid, 0x51, data_0x51);
    fc8300b_write(handle, devid, 0x57, data_0x57);
    fc8300b_write(handle, devid, 0x5a, (unsigned char)n_val);
    fc8300b_write(handle, devid, 0x50, 0xe3);
    fc8300b_write(handle, devid, 0x50, 0xff);
    fc8300b_write(handle, devid, 0x58, (unsigned char)((k_val >> 8) & 0xff));
    fc8300b_write(handle, devid, 0x59, (unsigned char)((k_val)&0xff));
    msWait(2);
    for (i = 1; i < 5; i++) {
      fc8300b_read(handle, devid, 0x64, &lock_detect);
      fc8300b_read(handle, devid, 0x65, &lock_bank);
      if (((lock_detect & lock_condition) == lock_condition) && (lock_bank > 1)) {
        fc8300b_read(handle, devid, 0x76, &lock_bank);
        if (lock_bank < 62) {
          if (((lo_select % 2) != 0) || (f_vco > 6200000)) {
            fc8300b_write(handle, devid, 0x77, 0x02);
            fc8300b_write(handle, devid, 0x50, 0xe3);
            fc8300b_write(handle, devid, 0x50, 0xff);
          }
        }
        break;
      }
    }
    if ((lock_detect & lock_condition) != lock_condition) {
      fc8300b_read(handle, devid, 0x74, &lock_detect);
      vco_cal(handle, devid, lock_detect);
    } else {
      break;
    }
  }
  return 0;
}
```