user: Translate the below assembly code into C programming language:

```asm
<prdec>:
  endbr64
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  mov    %esi,%ebx
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  test   %esi,%esi
  js     L99
L129:
  mov    %ebx,%eax
  mov    $0xcccccccd,%ecx
  movb   $0x0,0x17(%rsp)
  imul   %rcx,%rax
  shr    $0x23,%rax
  lea    (%rax,%rax,4),%edx
  add    %edx,%edx
  sub    %edx,%ebx
  lea    0x30(%rbx),%esi
  mov    %sil,0x16(%rsp)
  test   %eax,%eax
  je     L77
  mov    %eax,%edx
  imul   %rcx,%rdx
  shr    $0x23,%rdx
  lea    (%rdx,%rdx,4),%esi
  add    %esi,%esi
  sub    %esi,%eax
  lea    0x30(%rax),%esi
  mov    %sil,0x15(%rsp)
  test   %edx,%edx
  je     L80
  mov    %edx,%eax
  imul   %rcx,%rax
  shr    $0x23,%rax
  lea    (%rax,%rax,4),%esi
  add    %esi,%esi
  sub    %esi,%edx
  lea    0x30(%rdx),%esi
  mov    %sil,0x14(%rsp)
  test   %eax,%eax
  je     L141
  mov    %eax,%edx
  imul   %rcx,%rdx
  shr    $0x23,%rdx
  lea    (%rdx,%rdx,4),%esi
  add    %esi,%esi
  sub    %esi,%eax
  lea    0x30(%rax),%esi
  mov    %sil,0x13(%rsp)
  test   %edx,%edx
  je     L210
  mov    %edx,%eax
  imul   %rcx,%rax
  shr    $0x23,%rax
  lea    (%rax,%rax,4),%esi
  add    %esi,%esi
  sub    %esi,%edx
  lea    0x30(%rdx),%esi
  mov    %sil,0x12(%rsp)
  test   %eax,%eax
  je     L157
  mov    %eax,%edx
  imul   %rcx,%rdx
  shr    $0x23,%rdx
  lea    (%rdx,%rdx,4),%esi
  add    %esi,%esi
  sub    %esi,%eax
  lea    0x30(%rax),%esi
  mov    %sil,0x11(%rsp)
  test   %edx,%edx
  je     L12
  mov    %edx,%eax
  imul   %rcx,%rax
  shr    $0x23,%rax
  lea    (%rax,%rax,4),%esi
  add    %esi,%esi
  sub    %esi,%edx
  lea    0x30(%rdx),%esi
  mov    %sil,0x10(%rsp)
  test   %eax,%eax
  je     L67
  mov    %eax,%edx
  imul   %rcx,%rdx
  shr    $0x23,%rdx
  lea    (%rdx,%rdx,4),%esi
  add    %esi,%esi
  sub    %esi,%eax
  lea    0x30(%rax),%esi
  mov    %sil,0xf(%rsp)
  test   %edx,%edx
  je     L32
  mov    %edx,%eax
  imul   %rcx,%rax
  shr    $0x23,%rax
  lea    (%rax,%rax,4),%ecx
  add    %ecx,%ecx
  sub    %ecx,%edx
  lea    0x30(%rdx),%esi
  mov    %sil,0xe(%rsp)
  test   %eax,%eax
  je     L40
  lea    0x30(%rax),%esi
  xor    %eax,%eax
L154:
  lea    0xd(%rsp,%rax,1),%rbx
  nopl   0x0(%rax)
L178:
  movsbl %sil,%esi
  mov    %rbp,%rdi
  add    $0x1,%rbx
  call   <pc@plt>
  movzbl (%rbx),%esi
  test   %sil,%sil
  jne    L178
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L51
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  ret
  nopl   0x0(%rax,%rax,1)
L99:
  mov    $0x2d,%esi
  neg    %ebx
  call   <pc@plt>
  jmp    L129
L12:
  mov    $0x4,%eax
  jmp    L154
  nopl   0x0(%rax,%rax,1)
L77:
  mov    $0x9,%eax
  jmp    L154
  nopw   0x0(%rax,%rax,1)
L80:
  mov    $0x8,%eax
  jmp    L154
L141:
  mov    $0x7,%eax
  jmp    L154
L210:
  mov    $0x6,%eax
  jmp    L154
L157:
  mov    $0x5,%eax
  jmp    L154
L67:
  mov    $0x3,%eax
  jmp    L154
L32:
  mov    $0x2,%eax
  jmp    L154
L40:
  mov    $0x1,%eax
  jmp    L154
L51:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void prdec(struct _pfr *r, int v) {
  if (v < 0) {
    pc(r, '-');
    v = -v;
  }
  char digs[11];
  int i = 10;
  digs[i--] = 0;
  while (v || i == 9) {
    digs[i--] = '0' + (v % 10);
    v /= 10;
  }
  while (digs[++i])
    pc(r, digs[i]);
}
```