user: Demonstrate the C code that generates the assembly output below:

```asm
<cdflib_cdfgam>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x98,%rsp
  mov    %rdx,%r12
  mov    %r8,0x8(%rsp)
  mov    %r9,0x10(%rsp)
  mov    0xd0(%rsp),%r14
  mov    0xd8(%rsp),%r15
  mov    %fs:0x28,%rax
  mov    %rax,0x88(%rsp)
  xor    %eax,%eax
  mov    D32(%rip),%rax
  mov    %rax,0x28(%rsp)
  mov    D35(%rip),%rax
  mov    %rax,0x30(%rsp)
  movl   $0x0,(%r14)
  movq   $0x0,(%r15)
  mov    (%rdi),%eax
  lea    -0x1(%rax),%edx
  cmp    $0x3,%edx
  jbe    L484
  movsd  D151(%rip),%xmm0
  test   %eax,%eax
  jle    L410
L61:
  movsd  %xmm0,(%r15)
  movl   $0xffffffff,(%r14)
L508:
  mov    0x88(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L288
  add    $0x98,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L484:
  mov    %rdi,%rbx
  mov    %rsi,%rbp
  mov    %rcx,%r13
  cmp    $0x1,%eax
  je     L64
  movsd  (%rsi),%xmm0
  pxor   %xmm1,%xmm1
  comisd %xmm0,%xmm1
  ja     L94
  comisd D44(%rip),%xmm0
  jbe    L264
  comisd %xmm0,%xmm1
  ja     L31
  movsd  D44(%rip),%xmm0
L53:
  movsd  %xmm0,(%r15)
  movl   $0xfffffffe,(%r14)
  jmp    L508
L410:
  movsd  D44(%rip),%xmm0
  jmp    L61
L94:
  pxor   %xmm0,%xmm0
  jmp    L53
L31:
  pxor   %xmm0,%xmm0
  jmp    L53
L264:
  movsd  (%r12),%xmm0
  pxor   %xmm1,%xmm1
  comisd %xmm0,%xmm1
  jae    L474
  comisd D44(%rip),%xmm0
  jbe    L23
  comisd %xmm0,%xmm1
  jae    L476
  movsd  D44(%rip),%xmm0
L378:
  movsd  %xmm0,(%r15)
  movl   $0xfffffffd,(%r14)
  jmp    L508
L474:
  pxor   %xmm0,%xmm0
  jmp    L378
L476:
  pxor   %xmm0,%xmm0
  jmp    L378
L23:
  cmp    $0x2,%eax
  jne    L159
  pxor   %xmm0,%xmm0
  mov    0x8(%rsp),%rcx
  comisd (%rcx),%xmm0
  jae    L182
L389:
  pxor   %xmm0,%xmm0
  mov    0x10(%rsp),%rdi
  comisd (%rdi),%xmm0
  jae    L471
  cmp    $0x1,%eax
  jne    L318
L210:
  movl   $0x0,(%r14)
  movsd  0x0(%r13),%xmm0
  mov    0x10(%rsp),%rax
  mulsd  (%rax),%xmm0
  movsd  %xmm0,0x40(%rsp)
  lea    0x40(%rsp),%rdi
  mov    %r12,%rcx
  mov    %rbp,%rdx
  mov    0x8(%rsp),%rsi
  mov    $0x0,%eax
  call   <cdflib_cumgam@plt>
  jmp    L508
L159:
  pxor   %xmm0,%xmm0
  comisd (%rcx),%xmm0
  ja     L310
  cmp    $0x3,%eax
  jne    L261
  pxor   %xmm0,%xmm0
  mov    0x10(%rsp),%rax
  comisd (%rax),%xmm0
  jb     L318
L471:
  movl   $0xfffffffa,(%r14)
  jmp    L508
L261:
  pxor   %xmm0,%xmm0
  mov    0x8(%rsp),%rsi
  comisd (%rsi),%xmm0
  jb     L306
L182:
  movl   $0xfffffffb,(%r14)
  jmp    L508
L306:
  cmp    $0x4,%eax
  jne    L389
L318:
  movsd  0x0(%rbp),%xmm0
  addsd  (%r12),%xmm0
  movsd  %xmm0,0x18(%rsp)
  mov    $0x1,%edi
  mov    $0x0,%eax
  call   <dpmpar@plt>
  movsd  D32(%rip),%xmm1
  movsd  0x18(%rsp),%xmm2
  movapd %xmm2,%xmm0
  subsd  %xmm1,%xmm0
  subsd  %xmm1,%xmm0
  andpd  D12(%rip),%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2sd %eax,%xmm1
  mulsd  D18(%rip),%xmm1
  comisd %xmm1,%xmm0
  jbe    L525
  pxor   %xmm0,%xmm0
  comisd %xmm2,%xmm0
  ja     L81
  movsd  D44(%rip),%xmm0
L81:
  movsd  %xmm0,(%r15)
  movl   $0x3,(%r14)
  jmp    L508
L525:
  mov    (%rbx),%eax
  cmp    $0x1,%eax
  je     L210
  movsd  0x0(%rbp),%xmm0
  movsd  (%r12),%xmm1
  mov    $0x1,%ebx
  comisd %xmm0,%xmm1
  jae    L490
  setae  %bl
  movzbl %bl,%ebx
L490:
  cmp    $0x2,%eax
  je     L305
  cmp    $0x3,%eax
  je     L10
  cmp    $0x4,%eax
  jne    L508
  mov    D228(%rip),%rax
  mov    %rax,0x80(%rsp)
  lea    0x80(%rsp),%rdx
  lea    0x78(%rsp),%rsi
  lea    0x70(%rsp),%r9
  mov    %r12,%r8
  mov    %rbp,%rcx
  mov    0x8(%rsp),%rdi
  mov    $0x0,%eax
  call   <cdflib_gamma_inc_inv@plt>
  cmpl   $0x0,0x70(%rsp)
  js     L548
  movsd  0x78(%rsp),%xmm0
  divsd  0x0(%r13),%xmm0
  mov    0x10(%rsp),%rax
  movsd  %xmm0,(%rax)
  movl   $0x0,(%r14)
  jmp    L508
L305:
  mov    D228(%rip),%rax
  mov    %rax,0x80(%rsp)
  lea    0x80(%rsp),%rdx
  lea    0x78(%rsp),%rsi
  lea    0x70(%rsp),%r9
  mov    %r12,%r8
  mov    %rbp,%rcx
  mov    0x8(%rsp),%rdi
  mov    $0x0,%eax
  call   <cdflib_gamma_inc_inv@plt>
  cmpl   $0x0,0x70(%rsp)
  js     L347
  movsd  0x78(%rsp),%xmm0
  mov    0x10(%rsp),%rax
  divsd  (%rax),%xmm0
  movsd  %xmm0,0x0(%r13)
  movl   $0x0,(%r14)
  jmp    L508
L347:
  movl   $0xa,(%r14)
  jmp    L508
L10:
  mov    0x8(%rsp),%rax
  mov    D35(%rip),%rcx
  mov    %rcx,(%rax)
  movsd  0x0(%r13),%xmm0
  mov    0x10(%rsp),%rdi
  mulsd  (%rdi),%xmm0
  movsd  %xmm0,0x40(%rsp)
  mov    D9(%rip),%rcx
  mov    %rcx,0x68(%rsp)
  mov    D46(%rip),%rdi
  mov    %rdi,0x70(%rsp)
  mov    D158(%rip),%rcx
  mov    %rcx,0x78(%rsp)
  mov    D204(%rip),%rdi
  mov    %rdi,0x80(%rsp)
  lea    0x28(%rsp),%rdx
  lea    0x70(%rsp),%rsi
  lea    0x68(%rsp),%rdi
  sub    $0x8,%rsp
  lea    0x88(%rsp),%rax
  push   %rax
  lea    0x88(%rsp),%r9
  lea    0x40(%rsp),%r8
  mov    %rdx,%rcx
  mov    $0x0,%eax
  call   <cdflib_dstinv@plt>
  movl   $0x0,(%r14)
  lea    0x70(%rsp),%rcx
  lea    0x48(%rsp),%rdx
  lea    0x68(%rsp),%r8
  mov    0x18(%rsp),%rsi
  mov    %r14,%rdi
  mov    $0x0,%eax
  call   <cdflib_dinvr@plt>
  mov    (%r14),%eax
  add    $0x10,%rsp
  cmp    $0x1,%eax
  jne    L449
  lea    0x50(%rsp),%r13
  lea    0x48(%rsp),%rax
  mov    %rax,0x10(%rsp)
  jmp    L420
L449:
  cmp    $0xffffffff,%eax
  jne    L508
  cmpq   $0x0,0x60(%rsp)
  jne    L181
  movl   $0x2,(%r14)
  mov    D46(%rip),%rax
  mov    %rax,(%r15)
  jmp    L508
L294:
  movsd  0x50(%rsp),%xmm0
  movapd %xmm0,%xmm1
  subsd  (%r12),%xmm1
  movsd  %xmm1,0x38(%rsp)
  comisd D143(%rip),%xmm0
  ja     L243
L534:
  lea    0x60(%rsp),%rcx
  lea    0x38(%rsp),%rdx
  lea    0x58(%rsp),%r8
  mov    0x8(%rsp),%rsi
  mov    %r14,%rdi
  mov    $0x0,%eax
  call   <cdflib_dinvr@plt>
  mov    (%r14),%eax
  cmp    $0x1,%eax
  jne    L449
L420:
  lea    0x40(%rsp),%rdi
  mov    %r13,%rcx
  mov    0x10(%rsp),%rdx
  mov    0x8(%rsp),%rsi
  mov    $0x0,%eax
  call   <cdflib_cumgam@plt>
  test   %rbx,%rbx
  je     L294
  movsd  0x48(%rsp),%xmm0
  movapd %xmm0,%xmm1
  subsd  0x0(%rbp),%xmm1
  movsd  %xmm1,0x38(%rsp)
  comisd D143(%rip),%xmm0
  jbe    L534
L243:
  movl   $0xa,(%r14)
  jmp    L508
L181:
  movl   $0x1,(%r14)
  mov    D9(%rip),%rax
  mov    %rax,(%r15)
  jmp    L508
L548:
  movl   $0xa,(%r14)
  jmp    L508
L64:
  pxor   %xmm0,%xmm0
  comisd (%rcx),%xmm0
  jbe    L261
L310:
  movl   $0xfffffffc,(%r14)
  jmp    L508
L288:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D32
type_guessed: f64
name: extract_symbolic_data
arguments: data_label: D35
type_guessed: f64
name: extract_symbolic_data
arguments: data_label: D151
type_guessed: f64
name: extract_symbolic_data
arguments: data_label: D44
type_guessed: f64[2]
name: extract_symbolic_data
arguments: data_label: D12
type_guessed: qword[2]
name: extract_symbolic_data
arguments: data_label: D18
type_guessed: f64
name: extract_symbolic_data
arguments: data_label: D228
type_guessed: f32[2]
name: extract_symbolic_data
arguments: data_label: D9
type_guessed: byte[8]
name: extract_symbolic_data
arguments: data_label: D46
type_guessed: f64
name: extract_symbolic_data
arguments: data_label: D158
type_guessed: byte[8]
name: extract_symbolic_data
arguments: data_label: D204
type_guessed: byte[8]
name: extract_symbolic_data
arguments: data_label: D143
type_guessed: f64[2]

tool: D32: 0.5

tool: D35: 5

tool: D151: 4

tool: {"D44": [1.0,4.0]}

tool: {"D12": [0x7fffffffffffffff,0x0000000000000000]}

tool: D18: 3

tool: {"D228": [0.0,-1.875]}

tool: {"D9": [0x59,0xf3,0xf8,0xc2,0x1f,0x6e,0xa5,0x01]}

tool: D46: 1e+300

tool: {"D158": [0x1f,0xb8,0xd4,0x4a,0x7a,0xee,0x8d,0x35]}

tool: {"D204": [0x3a,0x8c,0x30,0xe2,0x8e,0x79,0x45,0x3e]}

tool: {"D143": [1.5,0.0]}

assistant: ```c
void cdflib_cdfgam(const int *which, double *p, double *q, double *x, double *shape, double *scale, int *status, double *bound) {
  static const double tol = 1.0e-8;
  static const double atol = 1.0e-50;
  static const double zero = 1.0e-300;
  static const double inf = 1.0e300;
  static const int K1 = 1;
  double K5 = 0.5e0;
  double K6 = 5.0e0;
  double xx, fx, xscale, cum, ccum, pq, porq = 0;
  int ierr;
  unsigned long qhi, qleft, qporq;
  double T2, T3, T4, T7, T8, T9;
  *status = 0;
  *bound = 0.0;
  if (!(*which < 1 || *which > 4)) {
    goto S30;
  }
  if (!(*which < 1)) {
    goto S10;
  }
  *bound = 1.0e0;
  goto S20;
S10:
  *bound = 4.0e0;
S20:
  *status = -1;
  return;
S30:
  if (*which == 1) {
    goto S70;
  }
  if (!(*p < 0.0e0 || *p > 1.0e0)) {
    goto S60;
  }
  if (!(*p < 0.0e0)) {
    goto S40;
  }
  *bound = 0.0e0;
  goto S50;
S40:
  *bound = 1.0e0;
S50:
  *status = -2;
  return;
S70:
S60:
  if (*which == 1) {
    goto S110;
  }
  if (!(*q <= 0.0e0 || *q > 1.0e0)) {
    goto S100;
  }
  if (!(*q <= 0.0e0)) {
    goto S80;
  }
  *bound = 0.0e0;
  goto S90;
S80:
  *bound = 1.0e0;
S90:
  *status = -3;
  return;
S110:
S100:
  if (*which == 2) {
    goto S130;
  }
  if (!(*x < 0.0e0)) {
    goto S120;
  }
  *bound = 0.0e0;
  *status = -4;
  return;
S130:
S120:
  if (*which == 3) {
    goto S150;
  }
  if (!(*shape <= 0.0e0)) {
    goto S140;
  }
  *bound = 0.0e0;
  *status = -5;
  return;
S150:
S140:
  if (*which == 4) {
    goto S170;
  }
  if (!(*scale <= 0.0e0)) {
    goto S160;
  }
  *bound = 0.0e0;
  *status = -6;
  return;
S170:
S160:
  if (*which == 1) {
    goto S210;
  }
  pq = *p + *q;
  if (!(fabs(pq - 0.5e0 - 0.5e0) > 3.0e0 * dpmpar(K1))) {
    goto S200;
  }
  if (!(pq < 0.0e0)) {
    goto S180;
  }
  *bound = 0.0e0;
  goto S190;
S180:
  *bound = 1.0e0;
S190:
  *status = 3;
  return;
S210:
S200:
  if (*which == 1) {
    goto S240;
  }
  qporq = *p <= *q;
  if (!qporq) {
    goto S220;
  }
  porq = *p;
  goto S230;
S220:
  porq = *q;
S240:
S230:
  if (1 == *which) {
    *status = 0;
    xscale = *x * *scale;
    cdflib_cumgam(&xscale, shape, p, q);
    if (porq > 1.5e0) {
      *status = 10;
    }
  } else if (2 == *which) {
    T2 = -1.0e0;
    cdflib_gamma_inc_inv(shape, &xx, &T2, p, q, &ierr);
    if (ierr < 0.0e0) {
      *status = 10;
      return;
    } else {
      *x = xx / *scale;
      *status = 0;
    }
  } else if (3 == *which) {
    *shape = 5.0e0;
    xscale = *x * *scale;
    T3 = zero;
    T4 = inf;
    T7 = atol;
    T8 = tol;
    cdflib_dstinv(&T3, &T4, &K5, &K5, &K6, &T7, &T8);
    *status = 0;
    cdflib_dinvr(status, shape, &fx, &qleft, &qhi);
  S250:
    if (!(*status == 1)) {
      goto S290;
    }
    cdflib_cumgam(&xscale, shape, &cum, &ccum);
    if (!qporq) {
      goto S260;
    }
    fx = cum - *p;
    goto S270;
  S260:
    fx = ccum - *q;
  S270:
    if (!((qporq && cum > 1.5e0) || (!qporq && ccum > 1.5e0))) {
      goto S280;
    }
    *status = 10;
    return;
  S280:
    cdflib_dinvr(status, shape, &fx, &qleft, &qhi);
    goto S250;
  S290:
    if (!(*status == -1)) {
      goto S320;
    }
    if (!qleft) {
      goto S300;
    }
    *status = 1;
    *bound = zero;
    goto S310;
  S300:
    *status = 2;
    *bound = inf;
  S320:
  S310:;
  } else if (4 == *which) {
    T9 = -1.0e0;
    cdflib_gamma_inc_inv(shape, &xx, &T9, p, q, &ierr);
    if (ierr < 0.0e0) {
      *status = 10;
      return;
    } else {
      *scale = xx / *x;
      *status = 0;
    }
  }
  return;
}
```