user: 请将以下的汇编代码转换成C语言代码:

```asm
<sc_atan2_s16>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %rdi,-0x38(%rbp)
  mov    %rsi,-0x40(%rbp)
  mov    %edx,-0x44(%rbp)
  movq   $0x0,-0x30(%rbp)
  cmpq   $0x0,-0x38(%rbp)
  jne    L74
  cmpq   $0x0,-0x40(%rbp)
  je     L53
L74:
  movq   $0xe23,-0x28(%rbp)
  mov    -0x44(%rbp),%eax
  mov    $0x1,%edx
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%eax
  cltq
  mov    %rax,-0x20(%rbp)
  mov    -0x38(%rbp),%rax
  mov    %rax,%rdi
  call   <abs@plt>
  mov    %rax,%rbx
  mov    -0x40(%rbp),%rax
  mov    %rax,%rdi
  call   <abs@plt>
  cmp    %rax,%rbx
  jge    L94
  mov    -0x44(%rbp),%edx
  mov    -0x40(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <sc_sqr_s16@plt>
  mov    $0xc,%edx
  mov    %rax,%rsi
  mov    $0x3244,%edi
  call   <sc_mul_s16@plt>
  mov    %rax,-0x18(%rbp)
  mov    -0x44(%rbp),%edx
  mov    -0x38(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <sc_sqr_s16@plt>
  mov    %rax,%rcx
  mov    -0x28(%rbp),%rax
  mov    $0xc,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <sc_mul_s16@plt>
  add    %rax,-0x18(%rbp)
  cmpq   $0x0,-0x18(%rbp)
  je     L33
  mov    -0x44(%rbp),%edx
  mov    -0x38(%rbp),%rcx
  mov    -0x40(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <sc_mul_s16@plt>
  mov    %rax,%rcx
  mov    -0x44(%rbp),%edx
  mov    -0x18(%rbp),%rax
  mov    %rax,%rsi
  mov    %rcx,%rdi
  call   <sc_div_s16@plt>
  mov    %rax,-0x30(%rbp)
  jmp    L8
L33:
  movq   $0x0,-0x30(%rbp)
L8:
  cmpq   $0x0,-0x40(%rbp)
  jg     L53
  cmpq   $0x0,-0x38(%rbp)
  js     L61
  mov    -0x20(%rbp),%rax
  add    %rax,-0x30(%rbp)
  jmp    L53
L61:
  mov    -0x20(%rbp),%rax
  sub    %rax,-0x30(%rbp)
  jmp    L53
L94:
  mov    -0x44(%rbp),%edx
  mov    -0x38(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <sc_sqr_s16@plt>
  mov    $0xc,%edx
  mov    %rax,%rsi
  mov    $0x3244,%edi
  call   <sc_mul_s16@plt>
  mov    %rax,-0x18(%rbp)
  mov    -0x44(%rbp),%edx
  mov    -0x40(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <sc_sqr_s16@plt>
  mov    %rax,%rcx
  mov    -0x28(%rbp),%rax
  mov    $0xc,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <sc_mul_s16@plt>
  add    %rax,-0x18(%rbp)
  cmpq   $0x0,-0x18(%rbp)
  je     L87
  mov    -0x44(%rbp),%edx
  mov    -0x38(%rbp),%rcx
  mov    -0x40(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <sc_mul_s16@plt>
  mov    %rax,%rcx
  mov    -0x44(%rbp),%edx
  mov    -0x18(%rbp),%rax
  mov    %rax,%rsi
  mov    %rcx,%rdi
  call   <sc_div_s16@plt>
  mov    %rax,-0x30(%rbp)
  jmp    L120
L87:
  movq   $0x0,-0x30(%rbp)
L120:
  cmpq   $0x0,-0x38(%rbp)
  jle    L30
  mov    -0x20(%rbp),%rax
  mov    %rax,%rdx
  shr    $0x3f,%rdx
  add    %rdx,%rax
  sar    %rax
  sub    -0x30(%rbp),%rax
  mov    %rax,-0x30(%rbp)
  jmp    L53
L30:
  cmpq   $0x0,-0x38(%rbp)
  jns    L46
  mov    -0x20(%rbp),%rax
  mov    %rax,%rdx
  shr    $0x3f,%rdx
  add    %rdx,%rax
  sar    %rax
  neg    %rax
  sub    -0x30(%rbp),%rax
  mov    %rax,-0x30(%rbp)
  jmp    L53
L46:
  cmpq   $0x0,-0x40(%rbp)
  jle    L82
  mov    -0x20(%rbp),%rax
  mov    %rax,%rdx
  shr    $0x3f,%rdx
  add    %rdx,%rax
  sar    %rax
  mov    %rax,-0x30(%rbp)
  jmp    L53
L82:
  mov    -0x20(%rbp),%rax
  mov    %rax,%rdx
  shr    $0x3f,%rdx
  add    %rdx,%rax
  sar    %rax
  neg    %rax
  mov    %rax,-0x30(%rbp)
L53:
  mov    -0x30(%rbp),%rax
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

assistant: ```c
int16_t sc_atan2_s16(int16_t y, int16_t x, int radix) {
  int16_t tmp, c28_m_pi, one;
  int16_t arctantent = 0;
  if ((y != 0) || (x != 0)) {
    c28_m_pi = ((int16_t)((((0.28125 * (3.141592653590)) * ((int16_t)1 << ((12)))) < 0) ? (((0.28125 * (3.141592653590)) * ((int16_t)1 << ((12)))) - 0.5) : (((0.28125 * (3.141592653590)) * ((int16_t)1 << ((12)))) + 0.5)));
    one = (1 << (radix));
    if (abs(y) < abs(x)) {
      tmp = sc_mul_s16(((int16_t)(((((3.141592653590)) * ((int16_t)1 << ((12)))) < 0) ? ((((3.141592653590)) * ((int16_t)1 << ((12)))) - 0.5) : ((((3.141592653590)) * ((int16_t)1 << ((12)))) + 0.5))), sc_sqr_s16(x, radix), (12));
      tmp += sc_mul_s16(c28_m_pi, sc_sqr_s16(y, radix), (12));
      if (tmp != 0) {
        arctantent = sc_div_s16(sc_mul_s16(x, y, radix), tmp, radix);
      } else {
        arctantent = 0;
      }
      if (x <= 0) {
        if (y >= 0) {
          arctantent = one + arctantent;
        } else {
          arctantent = -one + arctantent;
        }
      }
    } else {
      tmp = sc_mul_s16(((int16_t)(((((3.141592653590)) * ((int16_t)1 << ((12)))) < 0) ? ((((3.141592653590)) * ((int16_t)1 << ((12)))) - 0.5) : ((((3.141592653590)) * ((int16_t)1 << ((12)))) + 0.5))), sc_sqr_s16(y, radix), (12));
      tmp += sc_mul_s16(c28_m_pi, sc_sqr_s16(x, radix), (12));
      if (tmp != 0) {
        arctantent = sc_div_s16(sc_mul_s16(x, y, radix), tmp, radix);
      } else {
        arctantent = 0;
      }
      if (y > 0) {
        arctantent = one / 2 - arctantent;
      } else {
        if (y < 0) {
          arctantent = -one / 2 - arctantent;
        } else {
          if (x > 0) {
            arctantent = one / 2;
          } else {
            arctantent = -one / 2;
          }
        }
      }
    }
  }
  return arctantent;
}
```