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

```asm
<sift_extract_feature_vector>:
  endbr64
  push   %r15
  mov    %r9d,%r15d
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %ecx,%ebx
  sub    $0xe8,%rsp
  mov    %rdi,0xb0(%rsp)
  mov    0x120(%rsp),%r14
  mov    %rsi,0xb8(%rsp)
  mov    %edx,0xc4(%rsp)
  mov    %r8d,0x9c(%rsp)
  movss  %xmm0,0xc0(%rsp)
  movss  %xmm1,0x70(%rsp)
  movss  %xmm2,0x94(%rsp)
  movss  %xmm3,0xa8(%rsp)
  movss  %xmm4,0x98(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0xd8(%rsp)
  mov    %r8d,%eax
  imul   %r8d,%eax
  imul   %r9d,%eax
  test   %eax,%eax
  jle    L137
  cltq
  xor    %esi,%esi
  mov    %r14,%rdi
  lea    0x0(,%rax,4),%rdx
  call   <memset@plt>
L137:
  mov    0x9c(%rsp),%r10d
  pxor   %xmm5,%xmm5
  xor    %eax,%eax
  movss  D29(%rip),%xmm1
  movss  0xc0(%rsp),%xmm7
  cvtsi2ss %r10d,%xmm5
  movaps %xmm1,%xmm0
  movss  %xmm5,0xac(%rsp)
  divss  %xmm5,%xmm0
  movss  0x70(%rsp),%xmm5
  addss  %xmm1,%xmm0
  movaps %xmm7,%xmm1
  mulss  0x98(%rsp),%xmm0
  mulss  0x94(%rsp),%xmm0
  movss  %xmm0,0x74(%rsp)
  cvtss2sd %xmm0,%xmm0
  mulsd  D13(%rip),%xmm0
  cvtsd2ss %xmm0,%xmm0
  subss  %xmm0,%xmm1
  addss  %xmm0,%xmm7
  cvtss2sd %xmm1,%xmm1
  addsd  D85(%rip),%xmm1
  cvttsd2si %xmm1,%ecx
  movaps %xmm5,%xmm1
  subss  %xmm0,%xmm1
  addss  %xmm5,%xmm0
  cvtss2sd %xmm1,%xmm1
  addsd  D85(%rip),%xmm1
  test   %ecx,%ecx
  cvtss2sd %xmm0,%xmm0
  cmovns %ecx,%eax
  addsd  D85(%rip),%xmm0
  cvttsd2si %xmm1,%esi
  pxor   %xmm1,%xmm1
  mov    %eax,0x90(%rsp)
  mov    %eax,%ecx
  cvtss2sd %xmm7,%xmm1
  xor    %eax,%eax
  addsd  D85(%rip),%xmm1
  cvttsd2si %xmm0,%edx
  test   %esi,%esi
  cmovns %esi,%eax
  sub    $0x1,%ebx
  mov    %ebx,%edi
  mov    %eax,0xc8(%rsp)
  mov    %eax,%esi
  cvttsd2si %xmm1,%eax
  cmp    %ebx,%eax
  mov    0xc4(%rsp),%ebx
  cmovle %eax,%edi
  lea    -0x1(%rbx),%eax
  cmp    %eax,%edx
  mov    %edi,0xcc(%rsp)
  cmovle %edx,%eax
  mov    %eax,0x78(%rsp)
  cmp    %edi,%ecx
  jge    L83
  cmp    %eax,%esi
  jge    L83
  movss  0xa8(%rsp),%xmm7
  movslq %r15d,%rax
  imul   %ebx,%ecx
  xorps  D136(%rip),%xmm7
  shl    $0x2,%rax
  imul   %r15d,%r10d
  mov    %rax,0x40(%rsp)
  lea    0xd4(%rsp),%rax
  mov    %rax,0x88(%rsp)
  lea    0xd0(%rsp),%rax
  mov    %ecx,0xa0(%rsp)
  mov    %r10d,0x5c(%rsp)
  mov    %rax,0x80(%rsp)
  movss  %xmm7,0x7c(%rsp)
L37:
  mov    0xc8(%rsp),%eax
  pxor   %xmm0,%xmm0
  cvtsi2ssl 0x90(%rsp),%xmm0
  subss  0xc0(%rsp),%xmm0
  mov    %eax,0x4c(%rsp)
  mov    0x9c(%rsp),%eax
  sub    $0x1,%eax
  movss  %xmm0,0x6c(%rsp)
  mov    %eax,0xa4(%rsp)
  jmp    L62
L50:
  addl   $0x1,0x4c(%rsp)
  mov    0x4c(%rsp),%eax
  cmp    %eax,0x78(%rsp)
  je     L39
L62:
  pxor   %xmm1,%xmm1
  movss  0x6c(%rsp),%xmm0
  movss  0x7c(%rsp),%xmm2
  cvtsi2ssl 0x4c(%rsp),%xmm1
  subss  0x70(%rsp),%xmm1
  mov    0x88(%rsp),%rsi
  mov    0x80(%rsp),%rdi
  movss  %xmm0,0xd0(%rsp)
  movss  %xmm1,0xd4(%rsp)
  call   <apply_rotation@plt>
  pxor   %xmm5,%xmm5
  movss  0xd0(%rsp),%xmm1
  comiss %xmm1,%xmm5
  jbe    L13
  xorps  D136(%rip),%xmm1
L13:
  movss  0xd4(%rsp),%xmm0
  pxor   %xmm7,%xmm7
  comiss %xmm0,%xmm7
  jbe    L22
  xorps  D136(%rip),%xmm0
L22:
  maxss  %xmm1,%xmm0
  movss  0x74(%rsp),%xmm6
  comiss %xmm0,%xmm6
  jbe    L50
  mov    0xb8(%rsp),%rcx
  mov    0x4c(%rsp),%eax
  pxor   %xmm4,%xmm4
  pxor   %xmm5,%xmm5
  mov    0xb0(%rsp),%rsi
  add    0xa0(%rsp),%eax
  cltq
  cvtss2sd (%rcx,%rax,4),%xmm5
  cvtss2sd (%rsi,%rax,4),%xmm4
  movapd %xmm5,%xmm0
  movapd %xmm4,%xmm1
  movsd  %xmm4,0x20(%rsp)
  movsd  %xmm5,0x8(%rsp)
  call   <atan2@plt>
  mov    $0x6,%edi
  subss  0xa8(%rsp),%xmm0
  call   <modulus@plt>
  movsd  0x8(%rsp),%xmm5
  movss  0x98(%rsp),%xmm3
  mulss  0x94(%rsp),%xmm3
  movsd  0x20(%rsp),%xmm4
  movss  %xmm0,0x18(%rsp)
  movapd %xmm5,%xmm1
  movapd %xmm4,%xmm0
  cvtss2sd %xmm3,%xmm3
  movsd  %xmm3,0x10(%rsp)
  call   <hypot@plt>
  movsd  0x10(%rsp),%xmm3
  movss  0xd4(%rsp),%xmm1
  movsd  %xmm0,0x8(%rsp)
  movss  0xd0(%rsp),%xmm0
  mulss  %xmm1,%xmm1
  mulss  %xmm0,%xmm0
  addss  %xmm1,%xmm0
  movapd %xmm3,%xmm1
  xorps  D136(%rip),%xmm0
  addsd  %xmm3,%xmm1
  cvtss2sd %xmm0,%xmm0
  mulsd  %xmm3,%xmm1
  divsd  %xmm1,%xmm0
  cvtsd2ss %xmm0,%xmm0
  call   <exp@plt>
  movsd  0x8(%rsp),%xmm7
  movss  0x98(%rsp),%xmm3
  pxor   %xmm5,%xmm5
  pxor   %xmm6,%xmm6
  movss  0x18(%rsp),%xmm2
  movss  0xd4(%rsp),%xmm1
  mulsd  %xmm0,%xmm7
  movaps %xmm3,%xmm4
  movss  0xd0(%rsp),%xmm0
  addss  %xmm3,%xmm4
  pxor   %xmm3,%xmm3
  cvtss2sd %xmm2,%xmm2
  divsd  D16(%rip),%xmm2
  mulss  0x94(%rsp),%xmm4
  cvtsi2sdl 0x9c(%rsp),%xmm3
  subsd  D170(%rip),%xmm3
  divss  0xac(%rsp),%xmm4
  divss  %xmm4,%xmm0
  mulsd  D85(%rip),%xmm3
  movsd  %xmm7,0x8(%rsp)
  divss  %xmm4,%xmm1
  cvtss2sd %xmm0,%xmm0
  addsd  %xmm3,%xmm0
  cvtsd2ss %xmm0,%xmm5
  pxor   %xmm0,%xmm0
  movss  %xmm5,0x34(%rsp)
  cvtss2sd %xmm1,%xmm0
  addsd  %xmm3,%xmm0
  cvtsd2ss %xmm0,%xmm6
  pxor   %xmm0,%xmm0
  movss  %xmm6,0x30(%rsp)
  cvtsi2sd %r15d,%xmm0
  mulsd  %xmm0,%xmm2
  movaps %xmm5,%xmm0
  cvtsd2ss %xmm2,%xmm2
  movss  %xmm2,0x10(%rsp)
  call   <floor@plt>
  movss  0x30(%rsp),%xmm0
  mov    %eax,%ebx
  call   <floor@plt>
  xor    %edx,%edx
  mov    0xa4(%rsp),%edi
  test   %ebx,%ebx
  mov    %edx,%ecx
  cmovns %ebx,%ecx
  add    $0x1,%ebx
  cmp    %edi,%ebx
  cmovg  %edi,%ebx
  mov    %ecx,0x48(%rsp)
  mov    %ebx,0x54(%rsp)
  cmp    %ebx,%ecx
  jg     L50
  test   %eax,%eax
  mov    %edx,%esi
  cmovns %eax,%esi
  add    $0x1,%eax
  cmp    %edi,%eax
  cmovg  %edi,%eax
  mov    %esi,0x58(%rsp)
  mov    %eax,0x38(%rsp)
  cmp    %eax,%esi
  jg     L50
  imul   0x5c(%rsp),%ecx
  movss  0x10(%rsp),%xmm2
  imul   %r15d,%esi
  mov    %ecx,0x50(%rsp)
  cvttss2si %xmm2,%ecx
  mov    %esi,0x68(%rsp)
  movslq %esi,%rsi
  lea    (%rcx,%r15,1),%eax
  cltd
  idiv   %r15d
  movslq %edx,%rdx
  lea    (%rsi,%rdx,1),%rax
  mov    %rax,0x60(%rsp)
  lea    0x1(%rcx,%r15,1),%eax
  mov    %eax,0x3c(%rsp)
  nopl   0x0(%rax,%rax,1)
L133:
  pxor   %xmm6,%xmm6
  movslq 0x50(%rsp),%rax
  mov    0x68(%rsp),%r13d
  cvtsi2ssl 0x48(%rsp),%xmm6
  mov    0x58(%rsp),%ebp
  mov    %rax,%rcx
  add    0x60(%rsp),%rax
  lea    (%r14,%rax,4),%r12
  add    %ecx,%r13d
  movss  %xmm6,0x2c(%rsp)
  nopl   (%rax)
L23:
  movaps %xmm2,%xmm0
  movss  %xmm2,0x10(%rsp)
  call   <floor@plt>
  pxor   %xmm0,%xmm0
  movss  0x10(%rsp),%xmm2
  pxor   %xmm5,%xmm5
  cvtsi2ss %eax,%xmm0
  movaps %xmm2,%xmm1
  subss  %xmm0,%xmm1
  movsd  D170(%rip),%xmm0
  cvtss2sd %xmm1,%xmm1
  subsd  %xmm1,%xmm0
  movss  0x2c(%rsp),%xmm1
  subss  0x34(%rsp),%xmm1
  comiss %xmm1,%xmm5
  jbe    L71
  xorps  D136(%rip),%xmm1
L71:
  movsd  D170(%rip),%xmm3
  cvtss2sd %xmm1,%xmm1
  pxor   %xmm5,%xmm5
  subsd  %xmm1,%xmm3
  pxor   %xmm1,%xmm1
  cvtsi2ss %ebp,%xmm1
  subss  0x30(%rsp),%xmm1
  mulsd  %xmm3,%xmm0
  comiss %xmm1,%xmm5
  jbe    L17
  xorps  D136(%rip),%xmm1
L17:
  mov    0x3c(%rsp),%eax
  cvtss2sd %xmm1,%xmm1
  add    $0x1,%ebp
  movsd  D170(%rip),%xmm4
  movsd  %xmm3,0x20(%rsp)
  cltd
  subsd  %xmm1,%xmm4
  pxor   %xmm1,%xmm1
  movss  %xmm2,0x10(%rsp)
  idiv   %r15d
  cvtss2sd (%r12),%xmm1
  movsd  %xmm4,0x18(%rsp)
  mulsd  %xmm4,%xmm0
  mulsd  0x8(%rsp),%xmm0
  addsd  %xmm1,%xmm0
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,(%r12)
  movaps %xmm2,%xmm0
  mov    %edx,%ebx
  call   <floor@plt>
  pxor   %xmm0,%xmm0
  add    %r13d,%ebx
  movss  0x10(%rsp),%xmm2
  add    $0x1,%eax
  movsd  0x20(%rsp),%xmm3
  movslq %ebx,%rbx
  add    %r15d,%r13d
  cvtsi2ss %eax,%xmm0
  movsd  D170(%rip),%xmm1
  movsd  0x18(%rsp),%xmm4
  lea    (%r14,%rbx,4),%rdx
  add    0x40(%rsp),%r12
  subss  %xmm2,%xmm0
  cvtss2sd %xmm0,%xmm0
  subsd  %xmm0,%xmm1
  mulsd  %xmm3,%xmm1
  movapd %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  mulsd  %xmm4,%xmm0
  cvtss2sd (%rdx),%xmm1
  mulsd  0x8(%rsp),%xmm0
  addsd  %xmm1,%xmm0
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,(%rdx)
  cmp    0x38(%rsp),%ebp
  jle    L23
  addl   $0x1,0x48(%rsp)
  mov    0x5c(%rsp),%esi
  mov    0x48(%rsp),%eax
  add    %esi,0x50(%rsp)
  cmp    0x54(%rsp),%eax
  jle    L133
  addl   $0x1,0x4c(%rsp)
  mov    0x4c(%rsp),%eax
  cmp    %eax,0x78(%rsp)
  jne    L62
L39:
  addl   $0x1,0x90(%rsp)
  mov    0xc4(%rsp),%esi
  mov    0x90(%rsp),%eax
  add    %esi,0xa0(%rsp)
  cmp    %eax,0xcc(%rsp)
  jne    L37
L83:
  mov    0xd8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L70
  add    $0xe8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L70:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: data_label: D29
type_infered: f32
name: unpack_data
arguments: data_label: D13
type_infered: f64
name: unpack_data
arguments: data_label: D85
type_infered: f64
name: unpack_data
arguments: data_label: D136
type_infered: byte[16]
name: unpack_data
arguments: data_label: D16
type_infered: byte[8]
name: unpack_data
arguments: data_label: D170
type_infered: f32[2]

tool: D29: 1

tool: D13: 1.4142135623730951

tool: D85: 0.5

tool: {"D136": [0x00,0x00,0x00,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00]}

tool: {"D16": [0x18,0x2d,0x44,0x54,0xfb,0x21,0x19,0x40]}

tool: {"D170": [0.0,1.875]}

assistant: ```c
void sift_extract_feature_vector(float x_key, float y_key, float sigma_key, float theta_key, const float *imX, const float *imY, int w, int h, int Nhist, int Nbins, float lambda_descr, float *descr) {
  for (int i = 0; i < Nhist * Nhist * Nbins; i++) {
    descr[i] = 0.0;
  }
  float R = (1 + 1 / (float)Nhist) * lambda_descr * sigma_key;
  float Rp = 1.41421356237309504880 * R;
  int siMin = ((0) < ((int)(x_key - Rp + 0.5)) ? ((int)(x_key - Rp + 0.5)) : (0));
  int sjMin = ((0) < ((int)(y_key - Rp + 0.5)) ? ((int)(y_key - Rp + 0.5)) : (0));
  int siMax = (((int)(x_key + Rp + 0.5)) < (h - 1) ? ((int)(x_key + Rp + 0.5)) : (h - 1));
  int sjMax = (((int)(y_key + Rp + 0.5)) < (w - 1) ? ((int)(y_key + Rp + 0.5)) : (w - 1));
  for (int si = siMin; si < siMax; si++) {
    for (int sj = sjMin; sj < sjMax; sj++) {
      float X = si - x_key;
      float Y = sj - y_key;
      apply_rotation(X, Y, &X, &Y, -theta_key);
      if (((((X) < 0 ? -(X) : (X))) < (((Y) < 0 ? -(Y) : (Y))) ? (((Y) < 0 ? -(Y) : (Y))) : (((X) < 0 ? -(X) : (X)))) < R) {
        double dx = imX[si * w + sj];
        double dy = imY[si * w + sj];
        float ori = atan2(dy, dx) - theta_key;
        ori = modulus(ori, 2 * 3.14159265358979323846);
        double t = lambda_descr * sigma_key;
        double M = hypot(dx, dy) * exp(-(X * X + Y * Y) / (2 * t * t));
        float alpha = X / (2 * lambda_descr * sigma_key / Nhist) + (Nhist - 1.0) / 2.0;
        float beta = Y / (2 * lambda_descr * sigma_key / Nhist) + (Nhist - 1.0) / 2.0;
        float gamma = ori / (2 * 3.14159265358979323846) * Nbins;
        int i0 = floor(alpha);
        int j0 = floor(beta);
        for (int i = ((0) < (i0) ? (i0) : (0)); i <= ((i0 + 1) < (Nhist - 1) ? (i0 + 1) : (Nhist - 1)); i++) {
          for (int j = ((0) < (j0) ? (j0) : (0)); j <= ((j0 + 1) < (Nhist - 1) ? (j0 + 1) : (Nhist - 1)); j++) {
            int k;
            k = ((int)gamma + Nbins) % Nbins;
            descr[i * Nhist * Nbins + j * Nbins + k] += (1. - (gamma - floor(gamma))) * (1.0 - (((float)i - alpha) < 0 ? -((float)i - alpha) : ((float)i - alpha))) * (1.0 - (((float)j - beta) < 0 ? -((float)j - beta) : ((float)j - beta))) * M;
            k = ((int)gamma + 1 + Nbins) % Nbins;
            descr[i * Nhist * Nbins + j * Nbins + k] += (1.0 - (floor(gamma) + 1 - gamma)) * (1.0 - (((float)i - alpha) < 0 ? -((float)i - alpha) : ((float)i - alpha))) * (1.0 - (((float)j - beta) < 0 ? -((float)j - beta) : ((float)j - beta))) * M;
          }
        }
      }
    }
  }
}
```