user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<f2m_calculateInverse>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r12
  push   %rbx
  sub    $0x120,%rsp
  mov    %edi,-0x94(%rbp)
  mov    %rsi,-0xa0(%rbp)
  mov    %rdx,-0xa8(%rbp)
  mov    %rcx,-0xb0(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x28(%rbp)
  xor    %eax,%eax
  mov    %rsp,%rax
  mov    %rax,%r12
  mov    -0x94(%rbp),%edx
  movslq %edx,%rax
  sub    $0x1,%rax
  mov    %rax,-0x88(%rbp)
  movslq %edx,%rax
  mov    %rax,%r8
  mov    $0x0,%r9d
  movslq %edx,%rax
  mov    %rax,%r10
  mov    $0x0,%r11d
  movslq %edx,%rax
  lea    0x0(,%rax,4),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%ebx
  mov    $0x0,%edx
  div    %rbx
  imul   $0x10,%rax,%rdx
  mov    %rdx,%rax
  and    $0xfffffffffffff000,%rax
  mov    %rsp,%rcx
  sub    %rax,%rcx
L209:
  cmp    %rcx,%rsp
  je     L163
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L209
L163:
  mov    %rdx,%rax
  and    $0xfff,%eax
  sub    %rax,%rsp
  mov    %rdx,%rax
  and    $0xfff,%eax
  test   %rax,%rax
  je     L119
  mov    %rdx,%rax
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L119:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0x80(%rbp)
  mov    -0x94(%rbp),%edx
  movslq %edx,%rax
  sub    $0x1,%rax
  mov    %rax,-0x78(%rbp)
  movslq %edx,%rax
  mov    %rax,%r14
  mov    $0x0,%r15d
  movslq %edx,%rax
  mov    %rax,-0xc0(%rbp)
  movq   $0x0,-0xb8(%rbp)
  movslq %edx,%rax
  lea    0x0(,%rax,4),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%ebx
  mov    $0x0,%edx
  div    %rbx
  imul   $0x10,%rax,%rdx
  mov    %rdx,%rax
  and    $0xfffffffffffff000,%rax
  mov    %rsp,%rcx
  sub    %rax,%rcx
L172:
  cmp    %rcx,%rsp
  je     L31
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L172
L31:
  mov    %rdx,%rax
  and    $0xfff,%eax
  sub    %rax,%rsp
  mov    %rdx,%rax
  and    $0xfff,%eax
  test   %rax,%rax
  je     L39
  mov    %rdx,%rax
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L39:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0x70(%rbp)
  mov    -0x94(%rbp),%edx
  movslq %edx,%rax
  sub    $0x1,%rax
  mov    %rax,-0x68(%rbp)
  movslq %edx,%rax
  mov    %rax,-0xd0(%rbp)
  movq   $0x0,-0xc8(%rbp)
  movslq %edx,%rax
  mov    %rax,-0xe0(%rbp)
  movq   $0x0,-0xd8(%rbp)
  movslq %edx,%rax
  lea    0x0(,%rax,4),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%ebx
  mov    $0x0,%edx
  div    %rbx
  imul   $0x10,%rax,%rdx
  mov    %rdx,%rax
  and    $0xfffffffffffff000,%rax
  mov    %rsp,%rcx
  sub    %rax,%rcx
L36:
  cmp    %rcx,%rsp
  je     L87
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L36
L87:
  mov    %rdx,%rax
  and    $0xfff,%eax
  sub    %rax,%rsp
  mov    %rdx,%rax
  and    $0xfff,%eax
  test   %rax,%rax
  je     L79
  mov    %rdx,%rax
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L79:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0x60(%rbp)
  mov    -0x94(%rbp),%edx
  movslq %edx,%rax
  sub    $0x1,%rax
  mov    %rax,-0x58(%rbp)
  movslq %edx,%rax
  mov    %rax,-0xf0(%rbp)
  movq   $0x0,-0xe8(%rbp)
  movslq %edx,%rax
  mov    %rax,-0x100(%rbp)
  movq   $0x0,-0xf8(%rbp)
  movslq %edx,%rax
  lea    0x0(,%rax,4),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%ebx
  mov    $0x0,%edx
  div    %rbx
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L279:
  cmp    %rdx,%rsp
  je     L52
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L279
L52:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L162
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L162:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0x50(%rbp)
  mov    -0x94(%rbp),%eax
  movslq %eax,%rdx
  sub    $0x1,%rdx
  mov    %rdx,-0x48(%rbp)
  movslq %eax,%rdx
  mov    %rdx,-0x110(%rbp)
  movq   $0x0,-0x108(%rbp)
  movslq %eax,%rdx
  mov    %rdx,-0x120(%rbp)
  movq   $0x0,-0x118(%rbp)
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%ebx
  mov    $0x0,%edx
  div    %rbx
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L203:
  cmp    %rdx,%rsp
  je     L311
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L203
L311:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L308
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L308:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0x40(%rbp)
  mov    -0x94(%rbp),%eax
  movslq %eax,%rdx
  sub    $0x1,%rdx
  mov    %rdx,-0x38(%rbp)
  movslq %eax,%rdx
  mov    %rdx,-0x130(%rbp)
  movq   $0x0,-0x128(%rbp)
  movslq %eax,%rdx
  mov    %rdx,-0x140(%rbp)
  movq   $0x0,-0x138(%rbp)
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%ebx
  mov    $0x0,%edx
  div    %rbx
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L98:
  cmp    %rdx,%rsp
  je     L225
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L98
L225:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L241
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L241:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0x30(%rbp)
  movl   $0x0,-0x8c(%rbp)
  jmp    L370
L168:
  mov    -0x8c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0xa0(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%ecx
  mov    -0x80(%rbp),%rax
  mov    -0x8c(%rbp),%edx
  movslq %edx,%rdx
  mov    %ecx,(%rax,%rdx,4)
  mov    -0x8c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0xa8(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%ecx
  mov    -0x70(%rbp),%rax
  mov    -0x8c(%rbp),%edx
  movslq %edx,%rdx
  mov    %ecx,(%rax,%rdx,4)
  mov    -0x60(%rbp),%rax
  mov    -0x8c(%rbp),%edx
  movslq %edx,%rdx
  movl   $0x0,(%rax,%rdx,4)
  mov    -0x50(%rbp),%rax
  mov    -0x8c(%rbp),%edx
  movslq %edx,%rdx
  movl   $0x0,(%rax,%rdx,4)
  mov    -0x30(%rbp),%rax
  mov    -0x8c(%rbp),%edx
  movslq %edx,%rdx
  movl   $0x0,(%rax,%rdx,4)
  mov    -0x40(%rbp),%rax
  mov    -0x8c(%rbp),%edx
  movslq %edx,%rdx
  movl   $0x0,(%rax,%rdx,4)
  addl   $0x1,-0x8c(%rbp)
L370:
  mov    -0x8c(%rbp),%eax
  cmp    -0x94(%rbp),%eax
  jl     L168
  mov    -0x30(%rbp),%rdx
  mov    -0xa0(%rbp),%rcx
  mov    -0x94(%rbp),%eax
  mov    %rcx,%rsi
  mov    %eax,%edi
  call   <f2m_is_equal@plt>
  test   %rax,%rax
  je     L101
  mov    -0xb0(%rbp),%rdx
  mov    -0x30(%rbp),%rcx
  mov    -0x94(%rbp),%eax
  mov    %rcx,%rsi
  mov    %eax,%edi
  call   <copy@plt>
  mov    %r12,%rsp
  jmp    L344
L101:
  mov    -0x60(%rbp),%rax
  movl   $0x1,(%rax)
  mov    -0x40(%rbp),%rax
  movl   $0x1,(%rax)
  jmp    L180
L178:
  mov    -0x80(%rbp),%rdx
  mov    -0x94(%rbp),%eax
  mov    %rdx,%rsi
  mov    %eax,%edi
  call   <shiftRight@plt>
  mov    -0x60(%rbp),%rax
  mov    (%rax),%eax
  and    $0x1,%eax
  test   %eax,%eax
  jne    L298
  mov    -0x60(%rbp),%rdx
  mov    -0x94(%rbp),%eax
  mov    %rdx,%rsi
  mov    %eax,%edi
  call   <shiftRight@plt>
  jmp    L35
L298:
  mov    -0x60(%rbp),%rcx
  mov    -0xa8(%rbp),%rdx
  mov    -0x60(%rbp),%rsi
  mov    -0x94(%rbp),%eax
  mov    %eax,%edi
  call   <f2m_Add@plt>
  mov    -0x60(%rbp),%rdx
  mov    -0x94(%rbp),%eax
  mov    %rdx,%rsi
  mov    %eax,%edi
  call   <shiftRight@plt>
L35:
  mov    -0x30(%rbp),%rdx
  mov    -0x80(%rbp),%rcx
  mov    -0x94(%rbp),%eax
  mov    %rcx,%rsi
  mov    %eax,%edi
  call   <f2m_is_equal@plt>
  test   %rax,%rax
  jne    L215
  mov    -0x80(%rbp),%rax
  mov    (%rax),%eax
  and    $0x1,%eax
  test   %eax,%eax
  je     L178
  jmp    L215
L280:
  mov    -0x70(%rbp),%rdx
  mov    -0x94(%rbp),%eax
  mov    %rdx,%rsi
  mov    %eax,%edi
  call   <shiftRight@plt>
  mov    -0x50(%rbp),%rax
  mov    (%rax),%eax
  and    $0x1,%eax
  test   %eax,%eax
  jne    L324
  mov    -0x50(%rbp),%rdx
  mov    -0x94(%rbp),%eax
  mov    %rdx,%rsi
  mov    %eax,%edi
  call   <shiftRight@plt>
  jmp    L215
L324:
  mov    -0x50(%rbp),%rcx
  mov    -0xa8(%rbp),%rdx
  mov    -0x50(%rbp),%rsi
  mov    -0x94(%rbp),%eax
  mov    %eax,%edi
  call   <f2m_Add@plt>
  mov    -0x50(%rbp),%rdx
  mov    -0x94(%rbp),%eax
  mov    %rdx,%rsi
  mov    %eax,%edi
  call   <shiftRight@plt>
L215:
  mov    -0x30(%rbp),%rdx
  mov    -0x70(%rbp),%rcx
  mov    -0x94(%rbp),%eax
  mov    %rcx,%rsi
  mov    %eax,%edi
  call   <f2m_is_equal@plt>
  test   %rax,%rax
  jne    L88
  mov    -0x70(%rbp),%rax
  mov    (%rax),%eax
  and    $0x1,%eax
  test   %eax,%eax
  je     L280
L88:
  mov    -0x80(%rbp),%rdx
  mov    -0x94(%rbp),%eax
  mov    %rdx,%rsi
  mov    %eax,%edi
  call   <getDegree@plt>
  mov    %rax,%rbx
  mov    -0x70(%rbp),%rdx
  mov    -0x94(%rbp),%eax
  mov    %rdx,%rsi
  mov    %eax,%edi
  call   <getDegree@plt>
  cmp    %rax,%rbx
  jle    L188
  mov    -0x80(%rbp),%rcx
  mov    -0x70(%rbp),%rdx
  mov    -0x80(%rbp),%rsi
  mov    -0x94(%rbp),%eax
  mov    %eax,%edi
  call   <f2m_Add@plt>
  mov    -0x60(%rbp),%rcx
  mov    -0x50(%rbp),%rdx
  mov    -0x60(%rbp),%rsi
  mov    -0x94(%rbp),%eax
  mov    %eax,%edi
  call   <f2m_Add@plt>
  jmp    L180
L188:
  mov    -0x70(%rbp),%rcx
  mov    -0x80(%rbp),%rdx
  mov    -0x70(%rbp),%rsi
  mov    -0x94(%rbp),%eax
  mov    %eax,%edi
  call   <f2m_Add@plt>
  mov    -0x50(%rbp),%rcx
  mov    -0x60(%rbp),%rdx
  mov    -0x50(%rbp),%rsi
  mov    -0x94(%rbp),%eax
  mov    %eax,%edi
  call   <f2m_Add@plt>
L180:
  mov    -0x40(%rbp),%rdx
  mov    -0x80(%rbp),%rcx
  mov    -0x94(%rbp),%eax
  mov    %rcx,%rsi
  mov    %eax,%edi
  call   <f2m_is_equal@plt>
  test   %rax,%rax
  jne    L360
  mov    -0x40(%rbp),%rdx
  mov    -0x70(%rbp),%rcx
  mov    -0x94(%rbp),%eax
  mov    %rcx,%rsi
  mov    %eax,%edi
  call   <f2m_is_equal@plt>
  test   %rax,%rax
  je     L35
L360:
  mov    -0x40(%rbp),%rdx
  mov    -0x80(%rbp),%rcx
  mov    -0x94(%rbp),%eax
  mov    %rcx,%rsi
  mov    %eax,%edi
  call   <f2m_is_equal@plt>
  test   %rax,%rax
  je     L319
  mov    -0xb0(%rbp),%rdx
  mov    -0x60(%rbp),%rcx
  mov    -0x94(%rbp),%eax
  mov    %rcx,%rsi
  mov    %eax,%edi
  call   <copy@plt>
  jmp    L167
L319:
  mov    -0xb0(%rbp),%rdx
  mov    -0x50(%rbp),%rcx
  mov    -0x94(%rbp),%eax
  mov    %rcx,%rsi
  mov    %eax,%edi
  call   <copy@plt>
L167:
  mov    %r12,%rsp
L344:
  mov    -0x28(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L69
  call   <__stack_chk_fail@plt>
L69:
  lea    -0x20(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
```

assistant: ```c
void f2m_calculateInverse(uint32_t t, uint32_t *A, uint32_t *F, uint32_t *I) {
  uint32_t i, u[t], v[t], g1[t], g2[t], one[t], zero[t];
  for (i = 0; i < t; i++) {
    u[i] = A[i];
    v[i] = F[i];
    g1[i] = 0x0;
    g2[i] = 0x0;
    zero[i] = 0x0;
    one[i] = 0x0;
  }
  if (f2m_is_equal(t, A, zero)) {
    copy(t, zero, I);
    return;
  }
  g1[0] = 0x1;
  one[0] = 0x1;
  while (!f2m_is_equal(t, u, one) && !f2m_is_equal(t, v, one)) {
    while (!f2m_is_equal(t, u, zero) && (u[0] & 1) == 0) {
      shiftRight(t, u);
      if ((g1[0] & 1) == 0) {
        shiftRight(t, g1);
      } else {
        f2m_Add(t, g1, F, g1);
        shiftRight(t, g1);
      }
    }
    while (!f2m_is_equal(t, v, zero) && (v[0] & 1) == 0) {
      shiftRight(t, v);
      if ((g2[0] & 1) == 0) {
        shiftRight(t, g2);
      } else {
        f2m_Add(t, g2, F, g2);
        shiftRight(t, g2);
      }
    }
    if (getDegree(t, u) > getDegree(t, v)) {
      f2m_Add(t, u, v, u);
      f2m_Add(t, g1, g2, g1);
    } else {
      f2m_Add(t, v, u, v);
      f2m_Add(t, g2, g1, g2);
    }
  }
  if (f2m_is_equal(t, u, one)) {
    copy(t, g1, I);
  } else {
    copy(t, g2, I);
  }
}
```