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

```asm
<_bal_pja_invnorm>:
  endbr64
  test   %rsi,%rsi
  je     L75
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  mov    %rsi,%r13
  mov    %rdi,%rbx
  mov    $0x0,%ebp
  jmp    L125
L87:
  subsd  D341(%rip),%xmm1
  movapd %xmm1,%xmm2
  mulsd  %xmm1,%xmm2
  movapd %xmm2,%xmm0
  mulsd  D171(%rip),%xmm0
  addsd  D6(%rip),%xmm0
  mulsd  %xmm2,%xmm0
  subsd  D239(%rip),%xmm0
  mulsd  %xmm2,%xmm0
  addsd  D30(%rip),%xmm0
  mulsd  %xmm2,%xmm0
  subsd  D273(%rip),%xmm0
  mulsd  %xmm2,%xmm0
  addsd  D377(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  movapd %xmm2,%xmm1
  mulsd  D299(%rip),%xmm1
  addsd  D215(%rip),%xmm1
  mulsd  %xmm2,%xmm1
  subsd  D20(%rip),%xmm1
  mulsd  %xmm2,%xmm1
  addsd  D90(%rip),%xmm1
  mulsd  %xmm2,%xmm1
  subsd  D174(%rip),%xmm1
  mulsd  %xmm2,%xmm1
  addsd  D132(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,(%rbx)
L107:
  add    $0x1,%rbp
  add    $0x8,%rbx
  cmp    %rbp,%r13
  je     L61
L125:
  mov    %rbx,%r12
  movsd  (%rbx),%xmm1
  comisd D340(%rip),%xmm1
  jb     L3
  movsd  D429(%rip),%xmm0
  comisd %xmm1,%xmm0
  jae    L87
L3:
  comisd D14(%rip),%xmm1
  jbe    L43
  movsd  D340(%rip),%xmm0
  comisd %xmm1,%xmm0
  ja     L117
L43:
  comisd D429(%rip),%xmm1
  jbe    L63
  movsd  D132(%rip),%xmm3
  comisd %xmm1,%xmm3
  ja     L136
L63:
  movq   $0x0,(%r12)
  jmp    L107
L117:
  cvttsd2si %xmm1,%edi
  call   <log@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mulsd  D102(%rip),%xmm0
  cvttsd2si %xmm0,%edi
  call   <sqrt@plt>
  movapd %xmm0,%xmm2
  mulsd  D331(%rip),%xmm0
  subsd  D360(%rip),%xmm0
  mulsd  %xmm2,%xmm0
  subsd  D400(%rip),%xmm0
  mulsd  %xmm2,%xmm0
  subsd  D153(%rip),%xmm0
  mulsd  %xmm2,%xmm0
  addsd  D358(%rip),%xmm0
  mulsd  %xmm2,%xmm0
  addsd  D164(%rip),%xmm0
  movapd %xmm2,%xmm1
  mulsd  D160(%rip),%xmm1
  addsd  D43(%rip),%xmm1
  mulsd  %xmm2,%xmm1
  addsd  D394(%rip),%xmm1
  mulsd  %xmm2,%xmm1
  addsd  D275(%rip),%xmm1
  mulsd  %xmm2,%xmm1
  addsd  D132(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,(%r12)
  call   <isnan@plt>
  test   %rax,%rax
  je     L107
  mov    D12(%rip),%rax
  mov    %rax,(%r12)
  jmp    L107
L136:
  movapd %xmm3,%xmm0
  subsd  %xmm1,%xmm0
  cvttsd2si %xmm0,%edi
  call   <log@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mulsd  D102(%rip),%xmm0
  cvttsd2si %xmm0,%edi
  call   <sqrt@plt>
  movapd %xmm0,%xmm2
  mulsd  D331(%rip),%xmm0
  subsd  D360(%rip),%xmm0
  mulsd  %xmm2,%xmm0
  subsd  D400(%rip),%xmm0
  mulsd  %xmm2,%xmm0
  subsd  D153(%rip),%xmm0
  mulsd  %xmm2,%xmm0
  addsd  D358(%rip),%xmm0
  mulsd  %xmm2,%xmm0
  addsd  D164(%rip),%xmm0
  xorpd  D382(%rip),%xmm0
  movapd %xmm2,%xmm1
  mulsd  D160(%rip),%xmm1
  addsd  D43(%rip),%xmm1
  mulsd  %xmm2,%xmm1
  addsd  D394(%rip),%xmm1
  mulsd  %xmm2,%xmm1
  addsd  D275(%rip),%xmm1
  mulsd  %xmm2,%xmm1
  addsd  D132(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,(%r12)
  call   <isnan@plt>
  test   %rax,%rax
  je     L107
  mov    D224(%rip),%rax
  mov    %rax,(%r12)
  jmp    L107
L61:
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L75:
  ret
```

tool_calls: name: retrieve_data
arguments: data_tag: D341
type_infered: f32[2]
name: retrieve_data
arguments: data_tag: D171
type_infered: byte[8]
name: retrieve_data
arguments: data_tag: D6
type_infered: byte[8]
name: retrieve_data
arguments: data_tag: D239
type_infered: byte[8]
name: retrieve_data
arguments: data_tag: D30
type_infered: byte[8]
name: retrieve_data
arguments: data_tag: D273
type_infered: byte[8]
name: retrieve_data
arguments: data_tag: D377
type_infered: byte[8]
name: retrieve_data
arguments: data_tag: D299
type_infered: byte[8]
name: retrieve_data
arguments: data_tag: D215
type_infered: byte[8]
name: retrieve_data
arguments: data_tag: D20
type_infered: byte[8]
name: retrieve_data
arguments: data_tag: D90
type_infered: byte[8]
name: retrieve_data
arguments: data_tag: D174
type_infered: byte[8]
name: retrieve_data
arguments: data_tag: D132
type_infered: f64
name: retrieve_data
arguments: data_tag: D340
type_infered: f64[2]
name: retrieve_data
arguments: data_tag: D429
type_infered: byte[16]
name: retrieve_data
arguments: data_tag: D14
type_infered: f32
name: retrieve_data
arguments: data_tag: D102
type_infered: f32[2]
name: retrieve_data
arguments: data_tag: D331
type_infered: byte[8]
name: retrieve_data
arguments: data_tag: D360
type_infered: byte[8]
name: retrieve_data
arguments: data_tag: D400
type_infered: byte[8]
name: retrieve_data
arguments: data_tag: D153
type_infered: byte[8]
name: retrieve_data
arguments: data_tag: D358
type_infered: byte[8]
name: retrieve_data
arguments: data_tag: D164
type_infered: byte[8]
name: retrieve_data
arguments: data_tag: D160
type_infered: byte[8]
name: retrieve_data
arguments: data_tag: D43
type_infered: byte[8]
name: retrieve_data
arguments: data_tag: D394
type_infered: byte[8]
name: retrieve_data
arguments: data_tag: D275
type_infered: byte[8]
name: retrieve_data
arguments: data_tag: D12
type_infered: byte[8]
name: retrieve_data
arguments: data_tag: D382
type_infered: f32[4]
name: retrieve_data
arguments: data_tag: D224
type_infered: f64

tool: {"D341": [0.0,1.75]}

tool: {"D171": [0x25,0x05,0x1e,0xbc,0x31,0xd9,0x43,0xc0]}

tool: {"D6": [0x9b,0x03,0x34,0x70,0x46,0x9e,0x6b,0x40]}

tool: {"D239": [0x99,0x3b,0xc5,0x2d,0xdb,0x3e,0x71,0x40]}

tool: {"D30": [0x1b,0x40,0x0b,0xb4,0x72,0x4b,0x61,0x40]}

tool: {"D273": [0xcd,0x8b,0xc0,0x34,0x30,0xaa,0x3e,0x40]}

tool: {"D377": [0x79,0x54,0x57,0x20,0x93,0x0d,0x04,0x40]}

tool: {"D299": [0xc4,0x04,0x30,0xce,0xf0,0x3c,0x4b,0xc0]}

tool: {"D215": [0x77,0x42,0xf0,0x2c,0xbf,0x32,0x64,0x40]}

tool: {"D20": [0xd2,0xd8,0x02,0x0b,0x5e,0x76,0x63,0x40]}

tool: {"D90": [0xbe,0xe9,0xa7,0xb1,0x48,0xb3,0x50,0x40]}

tool: {"D174": [0x26,0x78,0x14,0x7e,0xb5,0x8f,0x2a,0x40]}

tool: D132: 1

tool: {"D340": [0.02425,0.97575]}

tool: {"D429": [0xd3,0x4d,0x62,0x10,0x58,0x39,0xef,0x3f,0x00,0x00,0x00,0x00,0x00,0x00,0xe0,0x3f]}

tool: D14: 0

tool: {"D102": [0.0,-2.0]}

tool: {"D331": [0xe0,0xcf,0x4a,0x92,0x0d,0xe3,0x7f,0xbf]}

tool: {"D360": [0xb8,0x81,0xe8,0xc0,0x24,0xa2,0xd4,0x3f]}

tool: {"D400": [0x58,0x17,0x70,0xc1,0xc0,0x34,0x03,0x40]}

tool: {"D153": [0x1a,0x3a,0x70,0x2c,0xda,0x65,0x04,0x40]}

tool: {"D358": [0xc7,0x4d,0xea,0xf4,0xa7,0x7f,0x11,0x40]}

tool: {"D164": [0xa2,0xcf,0x3f,0x1e,0x5c,0x81,0x07,0x40]}

tool: {"D160": [0xd4,0x9f,0xac,0x57,0xd8,0xe2,0x7f,0x3f]}

tool: {"D43": [0x64,0x03,0x59,0x2b,0x4d,0xa3,0xd4,0x3f]}

tool: {"D394": [0x16,0xe6,0x8a,0x7c,0xa2,0x8f,0x03,0x40]}

tool: {"D275": [0x19,0xb1,0x95,0x68,0x07,0x09,0x0e,0x40]}

tool: {"D12": [0x21,0x93,0x8c,0x9c,0x85,0x39,0x43,0xc0]}

tool: {"D382": [0.0,-0.0,0.0,0.0]}

tool: D224: 8.20954

assistant: ```c
void _bal_pja_invnorm(double *p, size_t num) {
  const double a[] = {-3.969683028665376e+01, 2.209460984245205e+02, -2.759285104469687e+02, 1.383577518672690e+02, -3.066479806614716e+01, 2.506628277459239e+00};
  const double b[] = {-5.447609879822406e+01, 1.615858368580409e+02, -1.556989798598866e+02, 6.680131188771972e+01, -1.328068155288572e+01};
  const double c[] = {-7.784894002430293e-03, -3.223964580411365e-01, -2.400758277161838e+00, -2.549732539343734e+00, 4.374664141464968e+00, 2.938163982698783e+00};
  const double d[] = {7.784695709041462e-03, 3.224671290700398e-01, 2.445134137142996e+00, 3.754408661907416e+00};
  const double p_low = 0.02425, p_high = 1. - p_low;
  double q, r;
  size_t i;
  for (i = 0; i < num; i++) {
    if (p_low <= p[i] & p[i] <= p_high) {
      q = p[i] - .5;
      r = q * q;
      p[i] = ((((((a[0] * r + a[1]) * r + a[2]) * r + a[3]) * r + a[4]) * r + a[5]) * q) / (((((b[0] * r + b[1]) * r + b[2]) * r + b[3]) * r + b[4]) * r + 1.);
    } else if (0. < p[i] & p[i] < p_low) {
      q = sqrt(-2. * log(p[i]));
      p[i] = (((((c[0] * q + c[1]) * q + c[2]) * q + c[3]) * q + c[4]) * q + c[5]) / ((((d[0] * q + d[1]) * q + d[2]) * q + d[3]) * q + 1.);
      if (isnan(p[i])) {
        p[i] = -38.44939;
      }
    } else if (p_high < p[i] & p[i] < 1.) {
      q = sqrt(-2. * log(1. - p[i]));
      p[i] = -(((((c[0] * q + c[1]) * q + c[2]) * q + c[3]) * q + c[4]) * q + c[5]) / ((((d[0] * q + d[1]) * q + d[2]) * q + d[3]) * q + 1.);
      if (isnan(p[i])) {
        p[i] = 8.20954;
      }
    } else {
      p[i] = 0.;
    }
  }
}
```