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

```asm
<ultra_genPoly>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %edi,%eax
  mov    %rsi,-0x20(%rbp)
  mov    %rdx,-0x28(%rbp)
  mov    %rcx,-0x30(%rbp)
  mov    %ax,-0x14(%rbp)
  mov    -0x20(%rbp),%rax
  movw   $0x1,(%rax)
  movl   $0x1,-0x8(%rbp)
  jmp    L131
L53:
  mov    -0x8(%rbp),%eax
  cltq
  lea    (%rax,%rax,1),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movw   $0x0,(%rax)
  addl   $0x1,-0x8(%rbp)
L131:
  movswl -0x14(%rbp),%eax
  cmp    %eax,-0x8(%rbp)
  jle    L53
  movl   $0x0,-0x8(%rbp)
  jmp    L87
L105:
  mov    -0x8(%rbp),%eax
  mov    %eax,-0x4(%rbp)
  jmp    L127
L31:
  mov    -0x4(%rbp),%eax
  cltq
  lea    (%rax,%rax,1),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  movzwl %ax,%edx
  mov    -0x4(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    (%rax,%rax,1),%rcx
  mov    -0x20(%rbp),%rax
  add    %rcx,%rax
  movzwl (%rax),%eax
  test   %ax,%ax
  je     L122
  mov    -0x8(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    (%rax,%rax,1),%rcx
  mov    -0x28(%rbp),%rax
  add    %rcx,%rax
  movzwl (%rax),%eax
  test   %ax,%ax
  je     L122
  mov    -0x4(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    (%rax,%rax,1),%rcx
  mov    -0x20(%rbp),%rax
  add    %rcx,%rax
  movzwl (%rax),%eax
  movzwl %ax,%eax
  lea    (%rax,%rax,1),%rcx
  mov    -0x30(%rbp),%rax
  add    %rcx,%rax
  movzwl (%rax),%eax
  movzwl %ax,%ecx
  mov    -0x8(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    (%rax,%rax,1),%rsi
  mov    -0x28(%rbp),%rax
  add    %rsi,%rax
  movzwl (%rax),%eax
  movzwl %ax,%eax
  lea    (%rax,%rax,1),%rsi
  mov    -0x30(%rbp),%rax
  add    %rsi,%rax
  movzwl (%rax),%eax
  movzwl %ax,%eax
  add    %ecx,%eax
  cltq
  lea    (%rax,%rax,1),%rcx
  mov    -0x28(%rbp),%rax
  add    %rcx,%rax
  movzwl (%rax),%eax
  movzwl %ax,%eax
  jmp    L83
L122:
  mov    $0x0,%eax
L83:
  add    %edx,%eax
  movslq %eax,%rdx
  imul   $0xffffffffe79372e3,%rdx,%rdx
  shr    $0x20,%rdx
  add    %eax,%edx
  sar    $0x8,%edx
  mov    %eax,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%edx
  imul   $0x11b,%edx,%ecx
  sub    %ecx,%eax
  mov    %eax,%edx
  mov    -0x4(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    (%rax,%rax,1),%rcx
  mov    -0x20(%rbp),%rax
  add    %rcx,%rax
  mov    %dx,(%rax)
  subl   $0x1,-0x4(%rbp)
L127:
  cmpl   $0x0,-0x4(%rbp)
  jns    L31
  mov    -0x20(%rbp),%rax
  movzwl (%rax),%eax
  test   %ax,%ax
  je     L46
  mov    -0x8(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    (%rax,%rax,1),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  test   %ax,%ax
  je     L46
  mov    -0x20(%rbp),%rax
  movzwl (%rax),%eax
  movzwl %ax,%eax
  lea    (%rax,%rax,1),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  movzwl %ax,%edx
  mov    -0x8(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    (%rax,%rax,1),%rcx
  mov    -0x28(%rbp),%rax
  add    %rcx,%rax
  movzwl (%rax),%eax
  movzwl %ax,%eax
  lea    (%rax,%rax,1),%rcx
  mov    -0x30(%rbp),%rax
  add    %rcx,%rax
  movzwl (%rax),%eax
  movzwl %ax,%eax
  add    %edx,%eax
  cltq
  lea    (%rax,%rax,1),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  jmp    L58
L46:
  mov    $0x0,%eax
L58:
  mov    -0x20(%rbp),%rdx
  mov    %ax,(%rdx)
  addl   $0x1,-0x8(%rbp)
L87:
  movswl -0x14(%rbp),%eax
  cmp    %eax,-0x8(%rbp)
  jl     L105
  movswl -0x14(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0x8(%rbp)
  jmp    L27
L55:
  mov    -0x8(%rbp),%eax
  cltq
  lea    (%rax,%rax,1),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%ecx
  mov    -0x8(%rbp),%eax
  cltq
  lea    (%rax,%rax,1),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  mov    $0x11b,%edx
  sub    %ecx,%edx
  mov    %dx,(%rax)
  subl   $0x2,-0x8(%rbp)
L27:
  cmpl   $0x0,-0x8(%rbp)
  jns    L55
  nop
  nop
  pop    %rbp
  ret
```

assistant: ```c
void ultra_genPoly(short EccSize, unsigned short gPoly[], unsigned short gfPwr[], unsigned short gfLog[]) {
  int i, j;
  gPoly[0] = 1;
  for (i = 1; i < (EccSize + 1); i++)
    gPoly[i] = 0;
  for (i = 0; i < EccSize; i++) {
    for (j = i; j >= 0; j--)
      gPoly[j + 1] = (gPoly[j] + ((((gPoly[j + 1]) == 0) || ((gfPwr[i + 1]) == 0)) ? 0 : gfPwr[(gfLog[gPoly[j + 1]] + gfLog[gfPwr[i + 1]])])) % 283;
    gPoly[0] = ((((gPoly[0]) == 0) || ((gfPwr[i + 1]) == 0)) ? 0 : gfPwr[(gfLog[gPoly[0]] + gfLog[gfPwr[i + 1]])]);
  }
  for (i = EccSize - 1; i >= 0; i -= 2)
    gPoly[i] = 283 - gPoly[i];
}
```