user: What would the C source look like for the assembly code provided here?

```asm
<geometry>:
  endbr64
  push   %r15
  pxor   %xmm6,%xmm6
  pxor   %xmm7,%xmm7
  mov    %ecx,%r15d
  push   %r14
  cvtsd2ss %xmm2,%xmm6
  cvtsd2ss %xmm1,%xmm7
  mov    %r8d,%r14d
  push   %r13
  cvtsd2ss %xmm0,%xmm0
  cvtss2sd %xmm0,%xmm0
  push   %r12
  mov    %rdi,%r12
  push   %rbp
  mov    %r9,%rbp
  push   %rbx
  mov    %rsi,%rbx
  sub    $0x98,%rsp
  divsd  D42(%rip),%xmm0
  movss  %xmm6,0xc(%rsp)
  pxor   %xmm6,%xmm6
  lea    0x88(%rsp),%rdi
  lea    0x80(%rsp),%rsi
  cvtsd2ss %xmm3,%xmm6
  movss  %xmm6,0x68(%rsp)
  pxor   %xmm6,%xmm6
  mov    0xd0(%rsp),%r13
  cvtsd2ss %xmm4,%xmm6
  mov    %dx,0x18(%rsp)
  movss  %xmm7,0x8(%rsp)
  movss  %xmm6,0x6c(%rsp)
  call   <sincos@plt>
  movsd  D47(%rip),%xmm0
  pxor   %xmm1,%xmm1
  movsd  0x80(%rsp),%xmm3
  movsd  0x88(%rsp),%xmm4
  cvtss2sd 0x8(%rsp),%xmm1
  comisd %xmm1,%xmm0
  ja     L181
  movss  0x8(%rsp),%xmm7
  movss  D24(%rip),%xmm1
  movss  %xmm7,0x10(%rsp)
  movss  %xmm1,0x14(%rsp)
L51:
  pxor   %xmm5,%xmm5
  cvtss2sd 0xc(%rsp),%xmm5
  comisd %xmm5,%xmm0
  ja     L139
  movss  0xc(%rsp),%xmm7
  movss  %xmm1,0x74(%rsp)
  movss  %xmm7,0x70(%rsp)
L150:
  mov    $0xa,%edi
  movsd  %xmm4,0x28(%rsp)
  movsd  %xmm3,0x20(%rsp)
  call   <putchar@plt>
  movq   $0x0,0x60(%rsp)
  test   %rbp,%rbp
  jle    L174
  movswl 0x18(%rsp),%eax
  movsd  0x20(%rsp),%xmm3
  pxor   %xmm5,%xmm5
  mov    %r13,0xd0(%rsp)
  movsd  0x28(%rsp),%xmm4
  mov    %rbp,%r13
  mov    %r14d,%ebp
  mov    %rbx,%r14
  mov    %eax,0x78(%rsp)
  movswl %r15w,%eax
  mov    0xd0(%rsp),%rbx
  mov    %eax,0x7c(%rsp)
  xchg   %ax,%ax
L61:
  mov    0x60(%rsp),%rax
  mov    %eax,%r15d
  imul   $0xcccccccd,%eax,%eax
  ror    %eax
  cmp    $0x19999999,%eax
  jbe    L23
L83:
  test   %rbx,%rbx
  jle    L99
  pxor   %xmm0,%xmm0
  pxor   %xmm6,%xmm6
  movss  0x74(%rsp),%xmm2
  movss  0x68(%rsp),%xmm10
  cvtsi2sd %r15d,%xmm0
  movss  0x6c(%rsp),%xmm9
  pxor   %xmm8,%xmm8
  pxor   %xmm7,%xmm7
  cvtsi2ss %r15d,%xmm6
  mov    %rbx,0xd0(%rsp)
  xor    %r15d,%r15d
  mov    %r12,%rbx
  cvtsi2sdl 0x78(%rsp),%xmm8
  mov    %ebp,%r12d
  mov    0xd0(%rsp),%rbp
  cvtsi2sdl 0x7c(%rsp),%xmm7
  movapd %xmm0,%xmm11
  mulsd  %xmm3,%xmm0
  mulss  %xmm6,%xmm2
  divss  0x70(%rsp),%xmm2
  mulsd  %xmm4,%xmm11
  cvtss2sd %xmm2,%xmm2
  mulss  %xmm6,%xmm10
  mulss  %xmm6,%xmm9
  movapd %xmm0,%xmm13
  jmp    L9
  cs nopw 0x0(%rax,%rax,1)
L112:
  cvttsd2si %xmm14,%edx
  add    (%r14),%rax
  test   %edx,%edx
  js     L8
  movslq %edx,%rdx
  cvttsd2si %xmm1,%esi
  cmp    %rbp,%rdx
  jge    L8
  test   %esi,%esi
  jns    L58
L8:
  mov    $0x96,%edx
  mov    %dx,(%rax)
L32:
  add    $0x1,%r15
  cmp    %rbp,%r15
  je     L176
L9:
  pxor   %xmm12,%xmm12
  pxor   %xmm0,%xmm0
  movss  0x14(%rsp),%xmm15
  cvtsi2sd %r15d,%xmm12
  cvtsi2ss %r15d,%xmm0
  movapd %xmm12,%xmm1
  mulsd  %xmm3,%xmm1
  mulss  %xmm0,%xmm15
  divss  0x10(%rsp),%xmm15
  cvtss2sd %xmm15,%xmm15
  mulsd  %xmm4,%xmm12
  addsd  %xmm11,%xmm1
  addsd  %xmm8,%xmm1
  addsd  %xmm1,%xmm15
  movaps %xmm10,%xmm1
  mulss  %xmm0,%xmm1
  movapd %xmm15,%xmm14
  movaps %xmm9,%xmm15
  mulss  %xmm0,%xmm15
  cvtss2sd %xmm1,%xmm1
  addsd  %xmm1,%xmm14
  movapd %xmm13,%xmm1
  subsd  %xmm12,%xmm1
  movss  0x8(%rsp),%xmm12
  ucomiss %xmm5,%xmm12
  cvtss2sd %xmm15,%xmm15
  addsd  %xmm7,%xmm1
  addsd  %xmm2,%xmm1
  addsd  %xmm15,%xmm1
  jp     L28
  je     L22
L28:
  pxor   %xmm12,%xmm12
  cvtss2sd %xmm0,%xmm12
  mulsd  %xmm3,%xmm12
  movapd %xmm12,%xmm15
  pxor   %xmm12,%xmm12
  cvtss2sd %xmm6,%xmm12
  mulsd  %xmm4,%xmm12
  addsd  %xmm15,%xmm12
  subsd  %xmm12,%xmm14
L22:
  movss  0xc(%rsp),%xmm12
  ucomiss %xmm5,%xmm12
  jp     L201
  je     L208
L201:
  pxor   %xmm12,%xmm12
  cvtss2sd %xmm0,%xmm0
  cvtss2sd %xmm6,%xmm12
  mulsd  %xmm4,%xmm0
  mulsd  %xmm3,%xmm12
  subsd  %xmm0,%xmm12
  subsd  %xmm12,%xmm1
L208:
  lea    (%r15,%r15,1),%rax
  test   %r12d,%r12d
  je     L112
  mov    %rbp,%rdx
  mov    %r13,%rsi
  movapd %xmm14,%xmm0
  mov    %rbx,%rdi
  mov    $0x2,%eax
  movsd  %xmm7,0x58(%rsp)
  movsd  %xmm8,0x50(%rsp)
  movss  %xmm6,0x4c(%rsp)
  movsd  %xmm4,0x40(%rsp)
  movsd  %xmm3,0x38(%rsp)
  movss  %xmm9,0x48(%rsp)
  movsd  %xmm2,0x30(%rsp)
  movsd  %xmm13,0x28(%rsp)
  movss  %xmm10,0x20(%rsp)
  movsd  %xmm11,0x18(%rsp)
  call   <bilinear_interpolate@plt>
  mov    (%r14),%rdx
  pxor   %xmm5,%xmm5
  movsd  0x58(%rsp),%xmm7
  movsd  0x50(%rsp),%xmm8
  movss  0x4c(%rsp),%xmm6
  mov    %ax,(%rdx,%r15,2)
  add    $0x1,%r15
  movsd  0x40(%rsp),%xmm4
  movsd  0x38(%rsp),%xmm3
  movss  0x48(%rsp),%xmm9
  movsd  0x30(%rsp),%xmm2
  movsd  0x28(%rsp),%xmm13
  movss  0x20(%rsp),%xmm10
  movsd  0x18(%rsp),%xmm11
  cmp    %rbp,%r15
  jne    L9
L176:
  mov    %rbp,0xd0(%rsp)
  mov    %r12d,%ebp
  mov    %rbx,%r12
  mov    0xd0(%rsp),%rbx
L99:
  addq   $0x1,0x60(%rsp)
  mov    0x60(%rsp),%rax
  add    $0x8,%r14
  cmp    %rax,%r13
  jne    L61
L174:
  add    $0x98,%rsp
  mov    $0x1,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L58:
  movslq %esi,%rsi
  cmp    %r13,%rsi
  jge    L8
  mov    (%rbx,%rsi,8),%rsi
  movzwl (%rsi,%rdx,2),%edx
  mov    %dx,(%rax)
  jmp    L32
  nopl   0x0(%rax)
L23:
  mov    %r15d,%esi
  lea    D39(%rip),%rdi
  xor    %eax,%eax
  movsd  %xmm4,0x20(%rsp)
  movsd  %xmm3,0x18(%rsp)
  call   <printf@plt>
  movsd  0x20(%rsp),%xmm4
  movsd  0x18(%rsp),%xmm3
  pxor   %xmm5,%xmm5
  jmp    L83
L139:
  pxor   %xmm7,%xmm7
  movss  %xmm1,0x70(%rsp)
  movss  %xmm7,0x74(%rsp)
  jmp    L150
L181:
  movss  D24(%rip),%xmm1
  pxor   %xmm7,%xmm7
  movss  %xmm7,0x14(%rsp)
  movss  %xmm1,0x10(%rsp)
  jmp    L51
```

tool_calls: name: parse_data
arguments: data_tag: D42
datatype: f64
name: parse_data
arguments: data_tag: D47
datatype: f64
name: parse_data
arguments: data_tag: D24
datatype: f32
name: parse_data
arguments: data_tag: D39
datatype: string

tool: D42: 57.29577951

tool: D47: 1e-05

tool: D24: 1

tool: D39: %d 

assistant: ```c
int geometry(the_image, out_image, x_angle, x_stretch, y_stretch, x_displace, y_displace, x_cross, y_cross, bilinear, rows, cols)
float x_angle, x_stretch, y_stretch, x_cross, y_cross;
int bilinear;
long cols, rows;
short **the_image, **out_image, x_displace, y_displace;
{
  double cosa, sina, radian_angle, tmpx, tmpy;
  float fi, fj, x_div, y_div, x_num, y_num;
  int i, j, new_i, new_j;
  radian_angle = x_angle / 57.29577951;
  cosa = cos(radian_angle);
  sina = sin(radian_angle);
  if (x_stretch < 0.00001) {
    x_div = 1.0;
    x_num = 0.0;
  } else {
    x_div = x_stretch;
    x_num = 1.0;
  }
  if (y_stretch < 0.00001) {
    y_div = 1.0;
    y_num = 0.0;
  } else {
    y_div = y_stretch;
    y_num = 1.0;
  }
  printf("\n");
  for (i = 0; i < rows; i++) {
    if ((i % 10) == 0)
      printf("%d ", i);
    for (j = 0; j < cols; j++) {
      fi = i;
      fj = j;
      tmpx = (double)(j)*cosa + (double)(i)*sina + (double)(x_displace) + (double)(x_num * fj / x_div) + (double)(x_cross * i * j);
      tmpy = (double)(i)*cosa - (double)(j)*sina + (double)(y_displace) + (double)(y_num * fi / y_div) + (double)(y_cross * i * j);
      if (x_stretch != 0.0)
        tmpx = tmpx - (double)(fj * cosa + fi * sina);
      if (y_stretch != 0.0)
        tmpy = tmpy - (double)(fi * cosa - fj * sina);
      new_j = tmpx;
      new_i = tmpy;
      if (bilinear == 0) {
        if (new_j < 0 || new_j >= cols || new_i < 0 || new_i >= rows)
          out_image[i][j] = 150;
        else
          out_image[i][j] = the_image[new_i][new_j];
      } else {
        out_image[i][j] = bilinear_interpolate(the_image, tmpx, tmpy, rows, cols);
      }
    }
  }
  return (1);
}
```