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

```asm
<cpu_gemm>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %edi,-0x14(%rbp)
  mov    %esi,-0x18(%rbp)
  mov    %edx,-0x1c(%rbp)
  mov    %ecx,-0x20(%rbp)
  mov    %r8d,-0x24(%rbp)
  movss  %xmm0,-0x28(%rbp)
  mov    %r9,-0x30(%rbp)
  movss  %xmm1,-0x34(%rbp)
  movl   $0x0,-0x8(%rbp)
  jmp    L43
L76:
  movl   $0x0,-0x4(%rbp)
  jmp    L48
L70:
  mov    -0x8(%rbp),%eax
  imul   0x30(%rbp),%eax
  mov    %eax,%edx
  mov    -0x4(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    0x28(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  mov    -0x8(%rbp),%eax
  imul   0x30(%rbp),%eax
  mov    %eax,%edx
  mov    -0x4(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    0x28(%rbp),%rax
  add    %rdx,%rax
  mulss  -0x34(%rbp),%xmm0
  movss  %xmm0,(%rax)
  addl   $0x1,-0x4(%rbp)
L48:
  mov    -0x4(%rbp),%eax
  cmp    -0x20(%rbp),%eax
  jl     L70
  addl   $0x1,-0x8(%rbp)
L43:
  mov    -0x8(%rbp),%eax
  cmp    -0x1c(%rbp),%eax
  jl     L76
  cmpl   $0x0,-0x14(%rbp)
  jne    L107
  cmpl   $0x0,-0x18(%rbp)
  jne    L107
  movss  -0x34(%rbp),%xmm0
  mov    -0x30(%rbp),%r9
  mov    -0x28(%rbp),%edi
  mov    -0x24(%rbp),%r10d
  mov    -0x20(%rbp),%ecx
  mov    -0x1c(%rbp),%edx
  mov    -0x18(%rbp),%esi
  mov    -0x14(%rbp),%eax
  sub    $0x8,%rsp
  mov    0x30(%rbp),%r8d
  push   %r8
  push   0x28(%rbp)
  mov    0x20(%rbp),%r8d
  push   %r8
  push   0x18(%rbp)
  mov    0x10(%rbp),%r8d
  push   %r8
  movaps %xmm0,%xmm1
  movd   %edi,%xmm0
  mov    %r10d,%r8d
  mov    %eax,%edi
  call   <cpu_gemm_nn@plt>
  add    $0x30,%rsp
  jmp    L128
L107:
  cmpl   $0x0,-0x14(%rbp)
  je     L127
  cmpl   $0x0,-0x18(%rbp)
  jne    L127
  movss  -0x34(%rbp),%xmm0
  mov    -0x30(%rbp),%r9
  mov    -0x28(%rbp),%edi
  mov    -0x24(%rbp),%r10d
  mov    -0x20(%rbp),%ecx
  mov    -0x1c(%rbp),%edx
  mov    -0x18(%rbp),%esi
  mov    -0x14(%rbp),%eax
  sub    $0x8,%rsp
  mov    0x30(%rbp),%r8d
  push   %r8
  push   0x28(%rbp)
  mov    0x20(%rbp),%r8d
  push   %r8
  push   0x18(%rbp)
  mov    0x10(%rbp),%r8d
  push   %r8
  movaps %xmm0,%xmm1
  movd   %edi,%xmm0
  mov    %r10d,%r8d
  mov    %eax,%edi
  call   <cpu_gemm_tn@plt>
  add    $0x30,%rsp
  jmp    L128
L127:
  cmpl   $0x0,-0x14(%rbp)
  jne    L89
  cmpl   $0x0,-0x18(%rbp)
  je     L89
  movss  -0x34(%rbp),%xmm0
  mov    -0x30(%rbp),%r9
  mov    -0x28(%rbp),%edi
  mov    -0x24(%rbp),%r10d
  mov    -0x20(%rbp),%ecx
  mov    -0x1c(%rbp),%edx
  mov    -0x18(%rbp),%esi
  mov    -0x14(%rbp),%eax
  sub    $0x8,%rsp
  mov    0x30(%rbp),%r8d
  push   %r8
  push   0x28(%rbp)
  mov    0x20(%rbp),%r8d
  push   %r8
  push   0x18(%rbp)
  mov    0x10(%rbp),%r8d
  push   %r8
  movaps %xmm0,%xmm1
  movd   %edi,%xmm0
  mov    %r10d,%r8d
  mov    %eax,%edi
  call   <cpu_gemm_nt@plt>
  add    $0x30,%rsp
  jmp    L128
L89:
  movss  -0x34(%rbp),%xmm0
  mov    -0x30(%rbp),%r9
  mov    -0x28(%rbp),%edi
  mov    -0x24(%rbp),%r10d
  mov    -0x20(%rbp),%ecx
  mov    -0x1c(%rbp),%edx
  mov    -0x18(%rbp),%esi
  mov    -0x14(%rbp),%eax
  sub    $0x8,%rsp
  mov    0x30(%rbp),%r8d
  push   %r8
  push   0x28(%rbp)
  mov    0x20(%rbp),%r8d
  push   %r8
  push   0x18(%rbp)
  mov    0x10(%rbp),%r8d
  push   %r8
  movaps %xmm0,%xmm1
  movd   %edi,%xmm0
  mov    %r10d,%r8d
  mov    %eax,%edi
  call   <cpu_gemm_tt@plt>
  add    $0x30,%rsp
  nop
L128:
  nop
  leave
  ret
```

assistant: ```c
void cpu_gemm(int TA, int TB, int M, int N, int K, float ALPHA, float *A, int lda, float *B, int ldb, float BETA, float *C, int ldc) {
  int i, j;
  for (i = 0; i < M; ++i) {
    for (j = 0; j < N; ++j) {
      C[i * ldc + j] *= BETA;
    }
  }
  if (!TA && !TB)
    cpu_gemm_nn(TA, TB, M, N, K, ALPHA, A, lda, B, ldb, BETA, C, ldc);
  else if (TA && !TB)
    cpu_gemm_tn(TA, TB, M, N, K, ALPHA, A, lda, B, ldb, BETA, C, ldc);
  else if (!TA && TB)
    cpu_gemm_nt(TA, TB, M, N, K, ALPHA, A, lda, B, ldb, BETA, C, ldc);
  else
    cpu_gemm_tt(TA, TB, M, N, K, ALPHA, A, lda, B, ldb, BETA, C, ldc);
}
```