user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<jitter_in>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r12
  push   %rbx
  sub    $0x30,%rsp
  mov    %rdi,%r12
  mov    %esi,-0x34(%rbp)
  mov    %edx,-0x38(%rbp)
  movw   $0x3,-0x24(%rbp)
  jmp    L126
L197:
  movswq -0x24(%rbp),%rax
  add    $0x8,%rax
  lea    (%r12,%rax,1),%rbx
  jmp    L59
L209:
  movzbl (%rbx),%eax
  cbtw
  mov    %ax,-0x22(%rbp)
  lea    -0x4(%rbx),%rax
  movzbl (%rax),%eax
  cbtw
  mov    %ax,-0x20(%rbp)
  lea    0x4(%rbx),%rax
  movzbl (%rax),%eax
  cbtw
  mov    %ax,-0x1e(%rbp)
  movzwl -0x22(%rbp),%eax
  movzwl -0x1e(%rbp),%edx
  sub    %edx,%eax
  mov    %ax,-0x1c(%rbp)
  movswl -0x1c(%rbp),%eax
  mov    %eax,%edi
  call   <abs@plt>
  mov    %ax,-0x1a(%rbp)
  movswl -0x1a(%rbp),%eax
  cmp    %eax,-0x38(%rbp)
  jge    L41
  movzwl -0x20(%rbp),%eax
  movzwl -0x22(%rbp),%edx
  sub    %edx,%eax
  mov    %ax,-0x18(%rbp)
  movswl -0x18(%rbp),%eax
  mov    %eax,%edi
  call   <abs@plt>
  mov    %ax,-0x1a(%rbp)
  movswl -0x1a(%rbp),%eax
  cmp    %eax,-0x38(%rbp)
  jge    L3
  movzwl -0x20(%rbp),%eax
  cmp    -0x22(%rbp),%ax
  jge    L206
  movzwl -0x22(%rbp),%eax
  cmp    -0x1e(%rbp),%ax
  jl     L100
L206:
  movzwl -0x1e(%rbp),%eax
  cmp    -0x22(%rbp),%ax
  jge    L7
  movzwl -0x22(%rbp),%eax
  cmp    -0x20(%rbp),%ax
  jl     L100
L7:
  movl   $0xfffffff8,-0x14(%rbp)
  jmp    L253
L114:
  mov    -0x14(%rbp),%eax
  cltq
  add    %rbx,%rax
  movzbl (%rax),%eax
  cbtw
  mov    -0x14(%rbp),%edx
  movslq %edx,%rdx
  add    $0xc,%rdx
  add    %rbx,%rdx
  movzbl (%rdx),%edx
  movsbw %dl,%dx
  sub    %edx,%eax
  mov    %ax,-0x16(%rbp)
  cmpw   $0x0,-0x16(%rbp)
  jle    L28
  cmpw   $0x0,-0x1c(%rbp)
  jle    L141
  movzwl -0x1c(%rbp),%eax
  cmp    -0x16(%rbp),%ax
  jl     L244
L141:
  cmpw   $0x0,-0x18(%rbp)
  jle    L28
  movzwl -0x18(%rbp),%eax
  cmp    -0x16(%rbp),%ax
  jl     L244
L28:
  cmpw   $0x0,-0x16(%rbp)
  jns    L204
  cmpw   $0x0,-0x1c(%rbp)
  jns    L189
  movzwl -0x1c(%rbp),%eax
  cmp    -0x16(%rbp),%ax
  jg     L154
L189:
  cmpw   $0x0,-0x18(%rbp)
  jns    L204
  movzwl -0x18(%rbp),%eax
  cmp    -0x16(%rbp),%ax
  jg     L154
L204:
  addl   $0x4,-0x14(%rbp)
L253:
  cmpl   $0x0,-0x14(%rbp)
  jne    L114
  lea    0x4(%rbx),%rax
  movzbl (%rax),%eax
  movsbl %al,%edx
  lea    -0x4(%rbx),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  add    %edx,%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  mov    %al,(%rbx)
  mov    $0x0,%esi
  mov    $0xb,%edi
  call   <view_status@plt>
  jmp    L20
L41:
  nop
  jmp    L20
L3:
  nop
  jmp    L20
L100:
  nop
  jmp    L20
L244:
  nop
  jmp    L20
L154:
  nop
L20:
  add    $0x4,%rbx
L59:
  mov    %rbx,%rdx
  sub    %r12,%rdx
  mov    -0x34(%rbp),%eax
  sub    $0x8,%eax
  cltq
  cmp    %rax,%rdx
  jl     L209
  movzwl -0x24(%rbp),%eax
  sub    $0x2,%eax
  mov    %ax,-0x24(%rbp)
L126:
  cmpw   $0x0,-0x24(%rbp)
  jg     L197
  nop
  nop
  add    $0x30,%rsp
  pop    %rbx
  pop    %r12
  pop    %rbp
  ret
```

assistant: ```c
void jitter_in(register char *pp, int length, int opt_delta) {
  signed short m, l, r, h, hr, hl, hll, which;
  register char *p;
  int i;
  for (which = 3; which > 0; which -= 2)
    for (p = pp + which + 2 * 4; (p - pp) < length - 2 * 4; p += 4) {
      m = *p;
      l = *(p - 4);
      r = *(p + 4);
      h = abs(hr = m - r);
      if (h <= opt_delta)
        continue;
      h = abs(hl = l - m);
      if (h <= opt_delta)
        continue;
      if ((l < m && m < r) || (r < m && m < l))
        continue;
      for (i = -2 * 4; i; i += 4) {
        hll = *(p + i) - *(p + i + 3 * 4);
        if (hll > 0)
          if ((hr > 0 && hr < hll) || (hl > 0 && hl < hll))
            goto is_ok;
        if (hll < 0)
          if ((hr < 0 && hr > hll) || (hl < 0 && hl > hll))
            goto is_ok;
      }
      *p = (*(p + 4) + *(p - 4)) / 2;
      view_status(11, NULL);
    is_ok:;
    }
}
```