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

```asm
<recs_per_track>:
  endbr64
  push   %r12
  push   %rbp
  mov    %esi,%ebp
  push   %rbx
  mov    %edx,%ebx
  cmp    $0x3390,%di
  je     L40
  cmp    $0x9345,%di
  je     L10
  xor    %eax,%eax
  cmp    $0x3380,%di
  je     L15
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
  nopl   0x0(%rax)
L40:
  lea    0x6(%rdx),%edi
  mov    $0xe8,%esi
  call   <ceil_quot@plt>
  lea    0x1(%rax),%r12d
  test   %ebp,%ebp
  je     L48
  lea    0x6(%rbp),%edi
  mov    $0xe8,%esi
  call   <ceil_quot@plt>
  mov    $0x22,%esi
  lea    0x3(%rax,%rax,2),%eax
  lea    0x0(%rbp,%rax,2),%edi
  call   <ceil_quot@plt>
  mov    $0x22,%esi
  mov    %eax,%ebp
  lea    (%r12,%r12,2),%eax
  lea    (%rbx,%rax,2),%edi
  call   <ceil_quot@plt>
  pop    %rbx
  lea    0x1c(%rbp,%rax,1),%ecx
  mov    $0x6c1,%eax
  pop    %rbp
  pop    %r12
  cltd
  idiv   %ecx
  ret
  nopl   0x0(%rax)
L15:
  lea    0xc(%rdx),%r12d
  test   %esi,%esi
  je     L29
  lea    0xc(%rsi),%edi
  mov    $0x20,%esi
  call   <ceil_quot@plt>
  mov    %r12d,%edi
  mov    $0x20,%esi
  mov    %eax,%ebx
  call   <ceil_quot@plt>
  lea    0x16(%rbx,%rax,1),%ecx
  mov    $0x5db,%eax
  pop    %rbx
  pop    %rbp
  cltd
  pop    %r12
  idiv   %ecx
  ret
  nopl   0x0(%rax)
L10:
  lea    0x6(%rdx),%edi
  mov    $0xe8,%esi
  call   <ceil_quot@plt>
  lea    0x1(%rax),%r12d
  test   %ebp,%ebp
  je     L2
  lea    0x6(%rbp),%edi
  mov    $0xe8,%esi
  call   <ceil_quot@plt>
  mov    $0x22,%esi
  lea    0x3(%rax,%rax,2),%eax
  lea    0x0(%rbp,%rax,2),%edi
  call   <ceil_quot@plt>
  mov    $0x22,%esi
  mov    %eax,%ebp
  lea    (%r12,%r12,2),%eax
  lea    (%rbx,%rax,2),%edi
  call   <ceil_quot@plt>
  pop    %rbx
  lea    0x19(%rbp,%rax,1),%ecx
  mov    $0x58c,%eax
  pop    %rbp
  pop    %r12
  cltd
  idiv   %ecx
  ret
  nopl   0x0(%rax,%rax,1)
L2:
  lea    (%r12,%r12,2),%eax
  mov    $0x22,%esi
  lea    (%rbx,%rax,2),%edi
  call   <ceil_quot@plt>
  pop    %rbx
  pop    %rbp
  lea    0x19(%rax),%ecx
  mov    $0x58c,%eax
  pop    %r12
  cltd
  idiv   %ecx
  ret
  nopl   0x0(%rax)
L29:
  mov    %r12d,%edi
  mov    $0x20,%esi
  call   <ceil_quot@plt>
  pop    %rbx
  pop    %rbp
  lea    0xf(%rax),%ecx
  mov    $0x5db,%eax
  pop    %r12
  cltd
  idiv   %ecx
  ret
  nopl   (%rax)
L48:
  lea    (%r12,%r12,2),%eax
  mov    $0x22,%esi
  lea    (%rbx,%rax,2),%edi
  call   <ceil_quot@plt>
  pop    %rbx
  pop    %rbp
  lea    0x13(%rax),%ecx
  mov    $0x6c1,%eax
  pop    %r12
  cltd
  idiv   %ecx
  ret
```

assistant: ```c
unsigned int recs_per_track(unsigned short dev_type, unsigned int kl, unsigned int dl) {
  int dn, kn;
  switch (dev_type) {
  case 13184:
    if (kl)
      return 1499 / (15 + 7 + ceil_quot(kl + 12, 32) + ceil_quot(dl + 12, 32));
    else
      return 1499 / (15 + ceil_quot(dl + 12, 32));
  case 13200:
    dn = ceil_quot(dl + 6, 232) + 1;
    if (kl) {
      kn = ceil_quot(kl + 6, 232) + 1;
      return 1729 / (10 + 9 + ceil_quot(kl + 6 * kn, 34) + 9 + ceil_quot(dl + 6 * dn, 34));
    } else
      return 1729 / (10 + 9 + ceil_quot(dl + 6 * dn, 34));
  case 37701:
    dn = ceil_quot(dl + 6, 232) + 1;
    if (kl) {
      kn = ceil_quot(kl + 6, 232) + 1;
      return 1420 / (18 + 7 + ceil_quot(kl + 6 * kn, 34) + ceil_quot(dl + 6 * dn, 34));
    } else
      return 1420 / (18 + 7 + ceil_quot(dl + 6 * dn, 34));
  }
  return 0;
}
```