user: Please show me the C implementation that matches the assembly code listed below:

```asm
<find_surface_point>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  mov    %rcx,%r13
  push   %r12
  mov    %rdx,%r12
  push   %rbp
  mov    %rsi,%rbp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x138,%rsp
  mov    0x188(%rsp),%esi
  mov    0x170(%rsp),%rdx
  mov    %fs:0x28,%rax
  mov    %rax,0x128(%rsp)
  xor    %eax,%eax
  mov    0x178(%rsp),%rcx
  mov    0x180(%rsp),%r14
  mov    0x190(%rsp),%r15d
  cmp    $0x1,%esi
  je     L107
  movq   D100(%rip),%xmm4
  movsd  D49(%rip),%xmm3
  pxor   %xmm2,%xmm2
L258:
  xor    %eax,%eax
L204:
  movsd  (%r12,%rax,1),%xmm0
  subsd  0x0(%rbp,%rax,1),%xmm0
  movsd  %xmm0,(%r9,%rax,1)
  add    $0x8,%rax
  cmp    $0x18,%rax
  jne    L204
  movsd  (%r9),%xmm1
  movsd  0x8(%r9),%xmm5
  movsd  0x10(%r9),%xmm7
  movapd %xmm1,%xmm0
  movapd %xmm5,%xmm6
  mulsd  %xmm5,%xmm6
  mulsd  %xmm1,%xmm0
  addsd  %xmm6,%xmm0
  movapd %xmm7,%xmm6
  mulsd  %xmm7,%xmm6
  addsd  %xmm6,%xmm0
  ucomisd %xmm0,%xmm2
  ja     L197
  sqrtsd %xmm0,%xmm0
L137:
  movapd %xmm0,%xmm6
  andpd  %xmm4,%xmm6
  comisd %xmm3,%xmm6
  jbe    L461
  divsd  %xmm0,%xmm1
  divsd  %xmm0,%xmm5
  movsd  %xmm1,(%r9)
  divsd  %xmm0,%xmm7
  movsd  %xmm5,0x8(%r9)
  movsd  %xmm7,0x10(%r9)
L461:
  movsd  (%r8),%xmm6
  movsd  0x8(%r8),%xmm9
  movsd  0x10(%r8),%xmm8
  mulsd  %xmm6,%xmm1
  mulsd  %xmm9,%xmm5
  mulsd  %xmm8,%xmm7
  addsd  %xmm5,%xmm1
  addsd  %xmm7,%xmm1
  comisd %xmm1,%xmm2
  jbe    L338
  movq   D79(%rip),%xmm0
  xorpd  %xmm0,%xmm6
  xorpd  %xmm0,%xmm9
  xorpd  %xmm0,%xmm8
  movsd  %xmm6,(%r8)
  movsd  %xmm9,0x8(%r8)
  movsd  %xmm8,0x10(%r8)
L338:
  cmp    $0x1,%esi
  jne    L443
  movsd  0x8(%r8),%xmm1
  mulsd  0x8(%rbx),%xmm1
  movapd %xmm6,%xmm0
  xorpd  D79(%rip),%xmm0
  mulsd  (%rbx),%xmm0
  subsd  %xmm1,%xmm0
  movsd  0x10(%r8),%xmm1
  mulsd  0x10(%rbx),%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,0x18(%r8)
L443:
  test   %r15d,%r15d
  jne    L147
  movsd  %xmm6,(%r14)
  movsd  0x8(%r8),%xmm0
  movsd  %xmm0,0x8(%r14)
  movsd  0x10(%r8),%xmm0
  movsd  %xmm0,0x10(%r14)
  movsd  (%r8),%xmm6
L147:
  movsd  (%r12),%xmm9
  movsd  0x0(%rbp),%xmm5
  movsd  0x8(%r12),%xmm11
  movsd  0x8(%rbp),%xmm0
  subsd  %xmm9,%xmm5
  movsd  0x8(%r8),%xmm8
  movsd  0x10(%r12),%xmm10
  subsd  %xmm11,%xmm0
  movsd  0x10(%r8),%xmm7
  movapd %xmm5,%xmm1
  mulsd  %xmm6,%xmm1
  mulsd  %xmm8,%xmm0
  addsd  %xmm1,%xmm0
  movsd  0x10(%rbp),%xmm1
  subsd  %xmm10,%xmm1
  mulsd  %xmm7,%xmm1
  addsd  %xmm1,%xmm0
  movapd %xmm0,%xmm1
  andpd  %xmm4,%xmm1
  comisd %xmm3,%xmm1
  jbe    L304
  mulsd  %xmm9,%xmm6
  movsd  0x18(%r8),%xmm12
  xorpd  D79(%rip),%xmm12
  mulsd  %xmm11,%xmm8
  mulsd  %xmm10,%xmm7
  subsd  %xmm6,%xmm12
  movapd %xmm12,%xmm1
  subsd  %xmm8,%xmm1
  subsd  %xmm7,%xmm1
  divsd  %xmm0,%xmm1
  comisd D13(%rip),%xmm1
  jbe    L304
  mulsd  %xmm1,%xmm5
  addsd  %xmm9,%xmm5
  movsd  %xmm5,0x0(%r13)
  movapd %xmm5,%xmm15
  movsd  0x8(%rbp),%xmm0
  movsd  0x8(%r12),%xmm5
  subsd  %xmm5,%xmm0
  mulsd  %xmm1,%xmm0
  addsd  %xmm5,%xmm0
  movsd  %xmm0,0x8(%r13)
  movapd %xmm0,%xmm10
  movsd  0x10(%r12),%xmm5
  xor    %r12d,%r12d
  movsd  0x10(%rbp),%xmm0
  xor    %ebp,%ebp
  subsd  %xmm5,%xmm0
  mulsd  %xmm1,%xmm0
  addsd  %xmm5,%xmm0
  movsd  %xmm0,0x10(%r13)
  movapd %xmm0,%xmm12
  mov    %rbx,%r13
L365:
  movsd  0x0(%r13),%xmm8
  movapd %xmm15,%xmm5
  cmp    $0x2,%r12d
  lea    0x1(%r12),%esi
  cmove  %ebp,%esi
  movsd  0x8(%r13),%xmm7
  movsd  0x10(%r13),%xmm6
  movapd %xmm10,%xmm9
  subsd  %xmm8,%xmm5
  movapd %xmm12,%xmm0
  subsd  %xmm7,%xmm9
  subsd  %xmm6,%xmm0
  movapd %xmm5,%xmm1
  andpd  %xmm4,%xmm1
  comisd %xmm1,%xmm3
  jbe    L270
  movapd %xmm9,%xmm1
  andpd  %xmm4,%xmm1
  comisd %xmm1,%xmm3
  jbe    L270
  movapd %xmm0,%xmm1
  andpd  %xmm4,%xmm1
  comisd %xmm1,%xmm3
  ja     L150
L270:
  movslq %esi,%rsi
  lea    (%rsi,%rsi,2),%rsi
  lea    (%rbx,%rsi,8),%rsi
  movsd  (%rsi),%xmm1
  subsd  %xmm8,%xmm1
  movsd  0x8(%rsi),%xmm8
  subsd  %xmm7,%xmm8
  movsd  0x10(%rsi),%xmm7
  subsd  %xmm6,%xmm7
  movapd %xmm5,%xmm6
  mulsd  %xmm1,%xmm6
  movapd %xmm8,%xmm11
  mulsd  %xmm9,%xmm11
  mulsd  %xmm5,%xmm5
  mulsd  %xmm9,%xmm9
  addsd  %xmm11,%xmm6
  movapd %xmm7,%xmm11
  mulsd  %xmm0,%xmm11
  mulsd  %xmm0,%xmm0
  addsd  %xmm9,%xmm5
  addsd  %xmm11,%xmm6
  addsd  %xmm0,%xmm5
  ucomisd %xmm5,%xmm2
  ja     L392
  movapd %xmm5,%xmm9
  sqrtsd %xmm9,%xmm9
L1:
  mulsd  %xmm1,%xmm1
  mulsd  %xmm8,%xmm8
  mulsd  %xmm7,%xmm7
  addsd  %xmm8,%xmm1
  addsd  %xmm7,%xmm1
  ucomisd %xmm1,%xmm2
  ja     L84
  movapd %xmm1,%xmm0
  sqrtsd %xmm0,%xmm0
L446:
  mulsd  %xmm0,%xmm9
  movsd  D11(%rip),%xmm0
  divsd  %xmm9,%xmm6
  mulsd  %xmm6,%xmm6
  subsd  %xmm6,%xmm0
  ucomisd %xmm0,%xmm2
  ja     L225
  movapd %xmm0,%xmm6
  sqrtsd %xmm6,%xmm6
L345:
  ucomisd %xmm1,%xmm2
  ja     L111
  sqrtsd %xmm1,%xmm1
L395:
  ucomisd %xmm5,%xmm2
  ja     L174
  sqrtsd %xmm5,%xmm5
L373:
  mulsd  %xmm5,%xmm1
  add    $0x18,%r13
  mulsd  %xmm6,%xmm1
  mulsd  D99(%rip),%xmm1
  movsd  %xmm1,0xb0(%rsp,%r12,8)
  add    $0x1,%r12
  cmp    $0x3,%r12
  jne    L365
  movsd  (%rbx),%xmm11
  movsd  0x8(%rbx),%xmm13
  movsd  0x10(%rbx),%xmm14
  movsd  0x30(%rbx),%xmm9
  movsd  0x38(%rbx),%xmm0
  movsd  0x40(%rbx),%xmm8
  movsd  0x18(%rbx),%xmm7
  movsd  0x20(%rbx),%xmm1
  subsd  %xmm11,%xmm9
  subsd  %xmm13,%xmm0
  subsd  %xmm14,%xmm8
  movsd  0x28(%rbx),%xmm6
  subsd  %xmm11,%xmm7
  subsd  %xmm13,%xmm1
  movapd %xmm9,%xmm5
  subsd  %xmm14,%xmm6
  movsd  %xmm8,0x8(%rsp)
  movapd %xmm0,%xmm8
  mulsd  %xmm1,%xmm8
  mulsd  %xmm7,%xmm5
  mulsd  %xmm9,%xmm9
  mulsd  %xmm0,%xmm0
  addsd  %xmm8,%xmm5
  movsd  0x8(%rsp),%xmm8
  mulsd  %xmm6,%xmm8
  addsd  %xmm9,%xmm0
  addsd  %xmm8,%xmm5
  movsd  0x8(%rsp),%xmm8
  mulsd  %xmm8,%xmm8
  addsd  %xmm0,%xmm8
  ucomisd %xmm8,%xmm2
  ja     L280
  movapd %xmm8,%xmm9
  sqrtsd %xmm9,%xmm9
L43:
  mulsd  %xmm7,%xmm7
  mulsd  %xmm1,%xmm1
  mulsd  %xmm6,%xmm6
  addsd  %xmm7,%xmm1
  addsd  %xmm6,%xmm1
  ucomisd %xmm1,%xmm2
  ja     L454
  movapd %xmm1,%xmm0
  sqrtsd %xmm0,%xmm0
L290:
  mulsd  %xmm0,%xmm9
  movsd  D11(%rip),%xmm0
  divsd  %xmm9,%xmm5
  mulsd  %xmm5,%xmm5
  subsd  %xmm5,%xmm0
  ucomisd %xmm0,%xmm2
  ja     L203
  movapd %xmm0,%xmm5
  sqrtsd %xmm5,%xmm5
L295:
  ucomisd %xmm1,%xmm2
  ja     L309
  sqrtsd %xmm1,%xmm1
L246:
  ucomisd %xmm8,%xmm2
  ja     L71
  sqrtsd %xmm8,%xmm8
L472:
  mulsd  %xmm1,%xmm8
  movsd  D99(%rip),%xmm0
  mulsd  %xmm5,%xmm8
  mulsd  %xmm8,%xmm0
  subsd  0xb0(%rsp),%xmm0
  subsd  0xb8(%rsp),%xmm0
  subsd  0xc0(%rsp),%xmm0
  andpd  %xmm4,%xmm0
  comisd %xmm0,%xmm3
  jbe    L304
  add    $0x18,%rbx
  lea    0xd0(%rsp),%r12
  lea    0xe8(%rsp),%r13
L122:
  movapd %xmm15,%xmm0
  movapd %xmm10,%xmm3
  movapd %xmm12,%xmm1
  subsd  %xmm11,%xmm0
  subsd  %xmm13,%xmm3
  subsd  %xmm14,%xmm1
  mulsd  %xmm0,%xmm0
  mulsd  %xmm3,%xmm3
  mulsd  %xmm1,%xmm1
  addsd  %xmm3,%xmm0
  addsd  %xmm1,%xmm0
  ucomisd %xmm0,%xmm2
  ja     L206
  sqrtsd %xmm0,%xmm0
L444:
  movsd  %xmm0,(%r12)
  add    $0x8,%r12
  cmp    %r13,%r12
  je     L407
  movsd  (%rbx),%xmm11
  movsd  0x8(%rbx),%xmm13
  add    $0x18,%rbx
  movsd  -0x8(%rbx),%xmm14
  jmp    L122
  nopl   0x0(%rax)
L304:
  xor    %eax,%eax
L7:
  mov    0x128(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L424
  add    $0x138,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L107:
  movsd  0x8(%rdi),%xmm1
  movsd  0x10(%rdi),%xmm2
  movsd  0x20(%rdi),%xmm6
  movsd  0x40(%rdi),%xmm0
  subsd  %xmm1,%xmm6
  subsd  %xmm2,%xmm0
  mulsd  %xmm0,%xmm6
  movsd  0x38(%rdi),%xmm0
  subsd  %xmm1,%xmm0
  movsd  0x28(%rdi),%xmm1
  subsd  %xmm2,%xmm1
  mulsd  %xmm1,%xmm0
  subsd  %xmm0,%xmm6
  movsd  %xmm6,(%r8)
  movsd  (%rdi),%xmm3
  movsd  0x10(%rdi),%xmm2
  movsd  0x18(%rdi),%xmm0
  movsd  0x40(%rdi),%xmm1
  movsd  0x30(%rdi),%xmm5
  subsd  %xmm2,%xmm1
  subsd  %xmm3,%xmm0
  subsd  %xmm3,%xmm5
  mulsd  %xmm1,%xmm0
  movsd  0x28(%rdi),%xmm1
  subsd  %xmm2,%xmm1
  mulsd  %xmm1,%xmm5
  subsd  %xmm0,%xmm5
  movsd  %xmm5,0x8(%r8)
  movsd  (%rdi),%xmm2
  movsd  0x8(%rdi),%xmm3
  movsd  0x18(%rdi),%xmm1
  movsd  0x38(%rdi),%xmm0
  subsd  %xmm2,%xmm1
  subsd  %xmm3,%xmm0
  mulsd  %xmm0,%xmm1
  movsd  0x30(%rdi),%xmm0
  subsd  %xmm2,%xmm0
  movsd  0x20(%rdi),%xmm2
  subsd  %xmm3,%xmm2
  mulsd  %xmm2,%xmm0
  movapd %xmm5,%xmm2
  mulsd  %xmm5,%xmm2
  subsd  %xmm0,%xmm1
  movapd %xmm6,%xmm0
  mulsd  %xmm6,%xmm0
  movsd  %xmm1,0x10(%r8)
  addsd  %xmm2,%xmm0
  movapd %xmm1,%xmm2
  mulsd  %xmm1,%xmm2
  addsd  %xmm2,%xmm0
  pxor   %xmm2,%xmm2
  ucomisd %xmm0,%xmm2
  ja     L266
  sqrtsd %xmm0,%xmm0
L316:
  movq   D100(%rip),%xmm4
  movsd  D49(%rip),%xmm3
  movapd %xmm0,%xmm7
  andpd  %xmm4,%xmm7
  comisd %xmm3,%xmm7
  jbe    L258
  divsd  %xmm0,%xmm6
  divsd  %xmm0,%xmm5
  movsd  %xmm6,(%r8)
  divsd  %xmm0,%xmm1
  movsd  %xmm5,0x8(%r8)
  movsd  %xmm1,0x10(%r8)
  jmp    L258
  nopl   0x0(%rax,%rax,1)
L407:
  movsd  D11(%rip),%xmm0
  movsd  D11(%rip),%xmm4
  movsd  0xd0(%rsp),%xmm1
  movsd  0xd8(%rsp),%xmm2
  movsd  0xe0(%rsp),%xmm3
  movsd  D11(%rip),%xmm10
  divsd  %xmm2,%xmm4
  divsd  %xmm1,%xmm0
  divsd  %xmm3,%xmm10
  addsd  %xmm4,%xmm0
  movsd  0x8(%rdx),%xmm4
  addsd  %xmm10,%xmm0
  mulsd  %xmm0,%xmm1
  mulsd  %xmm0,%xmm2
  mulsd  %xmm0,%xmm3
  movsd  (%rdx),%xmm0
  divsd  %xmm1,%xmm0
  divsd  %xmm2,%xmm4
  addsd  %xmm4,%xmm0
  movsd  0x10(%rdx),%xmm4
  divsd  %xmm3,%xmm4
  addsd  %xmm4,%xmm0
  movsd  %xmm0,(%rcx)
  cmp    $0x1,%r15d
  je     L441
L170:
  mov    $0x1,%eax
  jmp    L7
  nopl   0x0(%rax)
L441:
  xor    %eax,%eax
  lea    0xf0(%rsp),%rdx
L470:
  movsd  (%r14,%rax,1),%xmm0
  movsd  0x18(%r14,%rax,1),%xmm4
  divsd  %xmm1,%xmm0
  divsd  %xmm2,%xmm4
  addsd  %xmm4,%xmm0
  movsd  0x30(%r14,%rax,1),%xmm4
  divsd  %xmm3,%xmm4
  addsd  %xmm4,%xmm0
  movsd  %xmm0,(%rdx,%rax,1)
  add    $0x8,%rax
  cmp    $0x18,%rax
  jne    L470
  movsd  0xf0(%rsp),%xmm0
  movsd  %xmm0,(%r14)
  movsd  0xf8(%rsp),%xmm0
  movsd  %xmm0,0x8(%r14)
  movsd  0x100(%rsp),%xmm0
  movsd  %xmm0,0x10(%r14)
  jmp    L170
L150:
  movsd  (%rdx,%r12,8),%xmm0
  movsd  %xmm0,(%rcx)
  cmp    $0x1,%r15d
  jne    L170
  lea    (%r12,%r12,2),%eax
  cltq
  movsd  (%r14,%rax,8),%xmm2
  add    $0x1,%rax
  movsd  (%r14,%rax,8),%xmm1
  movsd  0x8(%r14,%rax,8),%xmm0
  mov    $0x1,%eax
  movsd  %xmm2,(%r14)
  movsd  %xmm1,0x8(%r14)
  movsd  %xmm0,0x10(%r14)
  jmp    L7
L392:
  movapd %xmm5,%xmm0
  mov    %rcx,0x58(%rsp)
  mov    %rdx,0x40(%rsp)
  movsd  %xmm3,0xa0(%rsp)
  movaps %xmm4,0x70(%rsp)
  movsd  %xmm2,0x60(%rsp)
  movsd  %xmm15,0x50(%rsp)
  movsd  %xmm10,0x38(%rsp)
  movsd  %xmm6,0x30(%rsp)
  movsd  %xmm7,0x28(%rsp)
  movsd  %xmm8,0x20(%rsp)
  movsd  %xmm1,0x18(%rsp)
  movsd  %xmm12,0x10(%rsp)
  movsd  %xmm5,0x8(%rsp)
  call   <sqrt@plt>
  movapd 0x70(%rsp),%xmm4
  movsd  0x60(%rsp),%xmm2
  mov    0x58(%rsp),%rcx
  mov    0x40(%rsp),%rdx
  movapd %xmm0,%xmm9
  movsd  0xa0(%rsp),%xmm3
  movsd  0x50(%rsp),%xmm15
  movsd  0x38(%rsp),%xmm10
  movsd  0x30(%rsp),%xmm6
  movsd  0x28(%rsp),%xmm7
  movsd  0x20(%rsp),%xmm8
  movsd  0x18(%rsp),%xmm1
  movsd  0x10(%rsp),%xmm12
  movsd  0x8(%rsp),%xmm5
  jmp    L1
L111:
  movapd %xmm1,%xmm0
  mov    %rcx,0x38(%rsp)
  mov    %rdx,0x30(%rsp)
  movsd  %xmm3,0x58(%rsp)
  movaps %xmm4,0x40(%rsp)
  movsd  %xmm2,0x50(%rsp)
  movsd  %xmm15,0x28(%rsp)
  movsd  %xmm10,0x20(%rsp)
  movsd  %xmm6,0x18(%rsp)
  movsd  %xmm5,0x10(%rsp)
  movsd  %xmm12,0x8(%rsp)
  call   <sqrt@plt>
  movsd  0x58(%rsp),%xmm3
  movapd 0x40(%rsp),%xmm4
  movsd  0x50(%rsp),%xmm2
  mov    0x38(%rsp),%rcx
  movapd %xmm0,%xmm1
  mov    0x30(%rsp),%rdx
  movsd  0x28(%rsp),%xmm15
  movsd  0x20(%rsp),%xmm10
  movsd  0x18(%rsp),%xmm6
  movsd  0x10(%rsp),%xmm5
  movsd  0x8(%rsp),%xmm12
  jmp    L395
L174:
  movapd %xmm5,%xmm0
  mov    %rcx,0x38(%rsp)
  mov    %rdx,0x30(%rsp)
  movsd  %xmm3,0x58(%rsp)
  movaps %xmm4,0x40(%rsp)
  movsd  %xmm2,0x50(%rsp)
  movsd  %xmm15,0x28(%rsp)
  movsd  %xmm10,0x20(%rsp)
  movsd  %xmm6,0x18(%rsp)
  movsd  %xmm1,0x10(%rsp)
  movsd  %xmm12,0x8(%rsp)
  call   <sqrt@plt>
  movsd  0x58(%rsp),%xmm3
  movapd 0x40(%rsp),%xmm4
  movsd  0x50(%rsp),%xmm2
  mov    0x38(%rsp),%rcx
  movapd %xmm0,%xmm5
  mov    0x30(%rsp),%rdx
  movsd  0x28(%rsp),%xmm15
  movsd  0x20(%rsp),%xmm10
  movsd  0x18(%rsp),%xmm6
  movsd  0x10(%rsp),%xmm1
  movsd  0x8(%rsp),%xmm12
  jmp    L373
L424:
  call   <__stack_chk_fail@plt>
L197:
  mov    %esi,0x188(%rsp)
  mov    %rcx,0x38(%rsp)
  mov    %rdx,0x30(%rsp)
  mov    %r9,0x28(%rsp)
  mov    %r8,0x20(%rsp)
  movsd  %xmm3,0x58(%rsp)
  movaps %xmm4,0x40(%rsp)
  movsd  %xmm2,0x50(%rsp)
  movsd  %xmm7,0x18(%rsp)
  movsd  %xmm5,0x10(%rsp)
  movsd  %xmm1,0x8(%rsp)
  call   <sqrt@plt>
  movsd  0x58(%rsp),%xmm3
  movapd 0x40(%rsp),%xmm4
  movsd  0x50(%rsp),%xmm2
  mov    0x188(%rsp),%esi
  mov    0x38(%rsp),%rcx
  mov    0x30(%rsp),%rdx
  mov    0x28(%rsp),%r9
  mov    0x20(%rsp),%r8
  movsd  0x18(%rsp),%xmm7
  movsd  0x10(%rsp),%xmm5
  movsd  0x8(%rsp),%xmm1
  jmp    L137
L84:
  movapd %xmm1,%xmm0
  mov    %rcx,0x40(%rsp)
  mov    %rdx,0x50(%rsp)
  movsd  %xmm3,0x70(%rsp)
  movaps %xmm4,0x60(%rsp)
  movsd  %xmm2,0x58(%rsp)
  movsd  %xmm15,0x38(%rsp)
  movsd  %xmm10,0x30(%rsp)
  movsd  %xmm9,0x28(%rsp)
  movsd  %xmm5,0x20(%rsp)
  movsd  %xmm6,0x18(%rsp)
  movsd  %xmm12,0x10(%rsp)
  movsd  %xmm1,0x8(%rsp)
  call   <sqrt@plt>
  movsd  0x70(%rsp),%xmm3
  movapd 0x60(%rsp),%xmm4
  movsd  0x58(%rsp),%xmm2
  mov    0x40(%rsp),%rcx
  mov    0x50(%rsp),%rdx
  movsd  0x38(%rsp),%xmm15
  movsd  0x30(%rsp),%xmm10
  movsd  0x28(%rsp),%xmm9
  movsd  0x20(%rsp),%xmm5
  movsd  0x18(%rsp),%xmm6
  movsd  0x10(%rsp),%xmm12
  movsd  0x8(%rsp),%xmm1
  jmp    L446
L225:
  mov    %rcx,0x38(%rsp)
  mov    %rdx,0x30(%rsp)
  movsd  %xmm3,0x58(%rsp)
  movaps %xmm4,0x40(%rsp)
  movsd  %xmm2,0x50(%rsp)
  movsd  %xmm15,0x28(%rsp)
  movsd  %xmm10,0x20(%rsp)
  movsd  %xmm1,0x18(%rsp)
  movsd  %xmm5,0x10(%rsp)
  movsd  %xmm12,0x8(%rsp)
  call   <sqrt@plt>
  movsd  0x58(%rsp),%xmm3
  movapd 0x40(%rsp),%xmm4
  movsd  0x50(%rsp),%xmm2
  mov    0x38(%rsp),%rcx
  movapd %xmm0,%xmm6
  mov    0x30(%rsp),%rdx
  movsd  0x28(%rsp),%xmm15
  movsd  0x20(%rsp),%xmm10
  movsd  0x18(%rsp),%xmm1
  movsd  0x10(%rsp),%xmm5
  movsd  0x8(%rsp),%xmm12
  jmp    L345
L206:
  mov    %rcx,0x28(%rsp)
  mov    %rdx,0x20(%rsp)
  movsd  %xmm2,0x30(%rsp)
  movsd  %xmm15,0x18(%rsp)
  movsd  %xmm10,0x10(%rsp)
  movsd  %xmm12,0x8(%rsp)
  call   <sqrt@plt>
  movsd  0x30(%rsp),%xmm2
  mov    0x28(%rsp),%rcx
  mov    0x20(%rsp),%rdx
  movsd  0x18(%rsp),%xmm15
  movsd  0x10(%rsp),%xmm10
  movsd  0x8(%rsp),%xmm12
  jmp    L444
L203:
  mov    %rcx,0x58(%rsp)
  mov    %rdx,0x40(%rsp)
  movsd  %xmm3,0xa0(%rsp)
  movaps %xmm4,0x70(%rsp)
  movsd  %xmm2,0x60(%rsp)
  movsd  %xmm14,0x50(%rsp)
  movsd  %xmm13,0x38(%rsp)
  movsd  %xmm11,0x30(%rsp)
  movsd  %xmm15,0x28(%rsp)
  movsd  %xmm10,0x20(%rsp)
  movsd  %xmm1,0x18(%rsp)
  movsd  %xmm8,0x10(%rsp)
  movsd  %xmm12,0x8(%rsp)
  call   <sqrt@plt>
  movapd 0x70(%rsp),%xmm4
  movsd  0x60(%rsp),%xmm2
  mov    0x58(%rsp),%rcx
  mov    0x40(%rsp),%rdx
  movapd %xmm0,%xmm5
  movsd  0xa0(%rsp),%xmm3
  movsd  0x50(%rsp),%xmm14
  movsd  0x38(%rsp),%xmm13
  movsd  0x30(%rsp),%xmm11
  movsd  0x28(%rsp),%xmm15
  movsd  0x20(%rsp),%xmm10
  movsd  0x18(%rsp),%xmm1
  movsd  0x10(%rsp),%xmm8
  movsd  0x8(%rsp),%xmm12
  jmp    L295
L309:
  movapd %xmm1,%xmm0
  mov    %rcx,0x58(%rsp)
  mov    %rdx,0x40(%rsp)
  movsd  %xmm3,0xa0(%rsp)
  movaps %xmm4,0x70(%rsp)
  movsd  %xmm2,0x60(%rsp)
  movsd  %xmm14,0x50(%rsp)
  movsd  %xmm13,0x38(%rsp)
  movsd  %xmm11,0x30(%rsp)
  movsd  %xmm15,0x28(%rsp)
  movsd  %xmm10,0x20(%rsp)
  movsd  %xmm5,0x18(%rsp)
  movsd  %xmm8,0x10(%rsp)
  movsd  %xmm12,0x8(%rsp)
  call   <sqrt@plt>
  movapd 0x70(%rsp),%xmm4
  movsd  0x60(%rsp),%xmm2
  mov    0x58(%rsp),%rcx
  mov    0x40(%rsp),%rdx
  movapd %xmm0,%xmm1
  movsd  0xa0(%rsp),%xmm3
  movsd  0x50(%rsp),%xmm14
  movsd  0x38(%rsp),%xmm13
  movsd  0x30(%rsp),%xmm11
  movsd  0x28(%rsp),%xmm15
  movsd  0x20(%rsp),%xmm10
  movsd  0x18(%rsp),%xmm5
  movsd  0x10(%rsp),%xmm8
  movsd  0x8(%rsp),%xmm12
  jmp    L246
L280:
  movapd %xmm8,%xmm0
  mov    %rdx,0x70(%rsp)
  mov    %rcx,0xa0(%rsp)
  movsd  %xmm3,0xa8(%rsp)
  movaps %xmm4,0x90(%rsp)
  movsd  %xmm2,0x80(%rsp)
  movsd  %xmm14,0x60(%rsp)
  movsd  %xmm13,0x58(%rsp)
  movsd  %xmm11,0x40(%rsp)
  movsd  %xmm15,0x50(%rsp)
  movsd  %xmm10,0x38(%rsp)
  movsd  %xmm5,0x30(%rsp)
  movsd  %xmm6,0x28(%rsp)
  movsd  %xmm1,0x20(%rsp)
  movsd  %xmm7,0x18(%rsp)
  movsd  %xmm12,0x10(%rsp)
  movsd  %xmm8,0x8(%rsp)
  call   <sqrt@plt>
  mov    0x70(%rsp),%rdx
  movsd  0xa8(%rsp),%xmm3
  movapd 0x90(%rsp),%xmm4
  mov    0xa0(%rsp),%rcx
  movapd %xmm0,%xmm9
  movsd  0x80(%rsp),%xmm2
  movsd  0x60(%rsp),%xmm14
  movsd  0x58(%rsp),%xmm13
  movsd  0x40(%rsp),%xmm11
  movsd  0x50(%rsp),%xmm15
  movsd  0x38(%rsp),%xmm10
  movsd  0x30(%rsp),%xmm5
  movsd  0x28(%rsp),%xmm6
  movsd  0x20(%rsp),%xmm1
  movsd  0x18(%rsp),%xmm7
  movsd  0x10(%rsp),%xmm12
  movsd  0x8(%rsp),%xmm8
  jmp    L43
L454:
  movapd %xmm1,%xmm0
  mov    %rcx,0x70(%rsp)
  mov    %rdx,0x60(%rsp)
  movsd  %xmm3,0x90(%rsp)
  movaps %xmm4,0x80(%rsp)
  movsd  %xmm2,0xa0(%rsp)
  movsd  %xmm14,0x58(%rsp)
  movsd  %xmm13,0x40(%rsp)
  movsd  %xmm11,0x50(%rsp)
  movsd  %xmm15,0x38(%rsp)
  movsd  %xmm10,0x30(%rsp)
  movsd  %xmm9,0x28(%rsp)
  movsd  %xmm8,0x20(%rsp)
  movsd  %xmm5,0x18(%rsp)
  movsd  %xmm12,0x10(%rsp)
  movsd  %xmm1,0x8(%rsp)
  call   <sqrt@plt>
  mov    0x70(%rsp),%rcx
  movsd  0x90(%rsp),%xmm3
  movapd 0x80(%rsp),%xmm4
  mov    0x60(%rsp),%rdx
  movsd  0xa0(%rsp),%xmm2
  movsd  0x58(%rsp),%xmm14
  movsd  0x40(%rsp),%xmm13
  movsd  0x50(%rsp),%xmm11
  movsd  0x38(%rsp),%xmm15
  movsd  0x30(%rsp),%xmm10
  movsd  0x28(%rsp),%xmm9
  movsd  0x20(%rsp),%xmm8
  movsd  0x18(%rsp),%xmm5
  movsd  0x10(%rsp),%xmm12
  movsd  0x8(%rsp),%xmm1
  jmp    L290
L266:
  mov    %esi,0x188(%rsp)
  mov    %rcx,0x38(%rsp)
  mov    %rdx,0x30(%rsp)
  mov    %r9,0x28(%rsp)
  mov    %r8,0x20(%rsp)
  movsd  %xmm2,0x50(%rsp)
  movsd  %xmm1,0x18(%rsp)
  movsd  %xmm5,0x10(%rsp)
  movsd  %xmm6,0x8(%rsp)
  call   <sqrt@plt>
  movsd  0x50(%rsp),%xmm2
  mov    0x38(%rsp),%rcx
  mov    0x188(%rsp),%esi
  mov    0x30(%rsp),%rdx
  mov    0x28(%rsp),%r9
  mov    0x20(%rsp),%r8
  movsd  0x18(%rsp),%xmm1
  movsd  0x10(%rsp),%xmm5
  movsd  0x8(%rsp),%xmm6
  jmp    L316
L71:
  movapd %xmm8,%xmm0
  mov    %rcx,0x58(%rsp)
  mov    %rdx,0x40(%rsp)
  movsd  %xmm3,0xa0(%rsp)
  movaps %xmm4,0x70(%rsp)
  movsd  %xmm2,0x60(%rsp)
  movsd  %xmm14,0x50(%rsp)
  movsd  %xmm13,0x38(%rsp)
  movsd  %xmm11,0x30(%rsp)
  movsd  %xmm15,0x28(%rsp)
  movsd  %xmm10,0x20(%rsp)
  movsd  %xmm5,0x18(%rsp)
  movsd  %xmm1,0x10(%rsp)
  movsd  %xmm12,0x8(%rsp)
  call   <sqrt@plt>
  movapd 0x70(%rsp),%xmm4
  movsd  0x60(%rsp),%xmm2
  mov    0x58(%rsp),%rcx
  mov    0x40(%rsp),%rdx
  movapd %xmm0,%xmm8
  movsd  0xa0(%rsp),%xmm3
  movsd  0x50(%rsp),%xmm14
  movsd  0x38(%rsp),%xmm13
  movsd  0x30(%rsp),%xmm11
  movsd  0x28(%rsp),%xmm15
  movsd  0x20(%rsp),%xmm10
  movsd  0x18(%rsp),%xmm5
  movsd  0x10(%rsp),%xmm1
  movsd  0x8(%rsp),%xmm12
  jmp    L472
```

tool_calls: name: unpack_data
arguments: data_label: D100
datatype: qword
name: unpack_data
arguments: data_label: D49
datatype: f64
name: unpack_data
arguments: data_label: D79
datatype: f32[4]
name: unpack_data
arguments: data_label: D13
datatype: byte[16]
name: unpack_data
arguments: data_label: D11
datatype: f64
name: unpack_data
arguments: data_label: D99
datatype: f32[2]

tool: D100: 9223372036854775807

tool: D49: 1e-08

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

tool: {"D13": [0x3a,0x8c,0x30,0xe2,0x8e,0x79,0x45,0xbe,0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0x3f]}

tool: D11: 1

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

assistant: ```c
int find_surface_point(double fp[3][3], double point_o[3], double view_point_d[3], double point[3], double n_f[4], double v_f[9], double c_value[3], double *value, double normal[9], int normal_flag, int smooth_shading) {
  int i, j, n1, n2, flag_inside;
  double s[3], sina, cosa, ss, t, dis[3], dist, n_norm, v_norm, nv_sign;
  double tmp_p[7];
  flag_inside = 0;
  if (normal_flag == 1) {
    n_f[0] = (fp[1][1] - fp[0][1]) * (fp[2][2] - fp[0][2]) - (fp[2][1] - fp[0][1]) * (fp[1][2] - fp[0][2]);
    n_f[1] = -(fp[1][0] - fp[0][0]) * (fp[2][2] - fp[0][2]) + (fp[2][0] - fp[0][0]) * (fp[1][2] - fp[0][2]);
    n_f[2] = (fp[1][0] - fp[0][0]) * (fp[2][1] - fp[0][1]) - (fp[2][0] - fp[0][0]) * (fp[1][1] - fp[0][1]);
    n_norm = sqrt(n_f[0] * n_f[0] + n_f[1] * n_f[1] + n_f[2] * n_f[2]);
    if (fabs(n_norm) > 0.00000001) {
      for (j = 0; j < 3; j++)
        n_f[j] /= n_norm;
    }
  }
  for (i = 0; i < 3; i++)
    v_f[i] = view_point_d[i] - point_o[i];
  v_norm = sqrt(v_f[0] * v_f[0] + v_f[1] * v_f[1] + v_f[2] * v_f[2]);
  if (fabs(v_norm) > 0.00000001) {
    for (i = 0; i < 3; i++)
      v_f[i] /= v_norm;
  }
  nv_sign = n_f[0] * v_f[0] + n_f[1] * v_f[1] + n_f[2] * v_f[2];
  if (nv_sign < 0.0) {
    for (i = 0; i < 3; i++)
      n_f[i] = -n_f[i];
  }
  if (normal_flag == 1)
    n_f[3] = -n_f[0] * fp[0][0] - n_f[1] * fp[0][1] - n_f[2] * fp[0][2];
  if (smooth_shading == 0)
    for (i = 0; i < 3; i++)
      normal[i] = n_f[i];
  if (fabs(n_f[0] * (point_o[0] - view_point_d[0]) + n_f[1] * (point_o[1] - view_point_d[1]) + n_f[2] * (point_o[2] - view_point_d[2])) > 0.00000001) {
    t = (-n_f[3] - n_f[0] * view_point_d[0] - n_f[1] * view_point_d[1] - n_f[2] * view_point_d[2]) / (n_f[0] * (point_o[0] - view_point_d[0]) + n_f[1] * (point_o[1] - view_point_d[1]) + n_f[2] * (point_o[2] - view_point_d[2]));
    if (t > -0.00000001) {
      for (j = 0; j < 3; j++)
        point[j] = view_point_d[j] + t * (point_o[j] - view_point_d[j]);
      for (j = 0; j < 3; j++) {
        n1 = j;
        n2 = j + 1;
        if (n2 == 3)
          n2 = 0;
        if ((fabs(point[0] - fp[n1][0]) < 0.00000001) && (fabs(point[1] - fp[n1][1]) < 0.00000001) && (fabs(point[2] - fp[n1][2]) < 0.00000001)) {
          flag_inside = 1;
          *value = c_value[n1];
          if (smooth_shading == 1) {
            tmp_p[0] = normal[n1 * 3 + 0];
            tmp_p[1] = normal[n1 * 3 + 1];
            tmp_p[2] = normal[n1 * 3 + 2];
            normal[0] = tmp_p[0];
            normal[1] = tmp_p[1];
            normal[2] = tmp_p[2];
          }
          break;
        }
        cosa = ((point[0] - fp[n1][0]) * (fp[n2][0] - fp[n1][0]) + (point[1] - fp[n1][1]) * (fp[n2][1] - fp[n1][1]) + (point[2] - fp[n1][2]) * (fp[n2][2] - fp[n1][2])) / (sqrt((point[0] - fp[n1][0]) * (point[0] - fp[n1][0]) + (point[1] - fp[n1][1]) * (point[1] - fp[n1][1]) + (point[2] - fp[n1][2]) * (point[2] - fp[n1][2])) * sqrt((fp[n2][0] - fp[n1][0]) * (fp[n2][0] - fp[n1][0]) + (fp[n2][1] - fp[n1][1]) * (fp[n2][1] - fp[n1][1]) + (fp[n2][2] - fp[n1][2]) * (fp[n2][2] - fp[n1][2])));
        sina = sqrt(1 - cosa * cosa);
        s[j] = sqrt((fp[n2][0] - fp[n1][0]) * (fp[n2][0] - fp[n1][0]) + (fp[n2][1] - fp[n1][1]) * (fp[n2][1] - fp[n1][1]) + (fp[n2][2] - fp[n1][2]) * (fp[n2][2] - fp[n1][2])) * sqrt((point[0] - fp[n1][0]) * (point[0] - fp[n1][0]) + (point[1] - fp[n1][1]) * (point[1] - fp[n1][1]) + (point[2] - fp[n1][2]) * (point[2] - fp[n1][2])) * sina / 2.0;
      }
      if (flag_inside == 0) {
        cosa = ((fp[2][0] - fp[0][0]) * (fp[1][0] - fp[0][0]) + (fp[2][1] - fp[0][1]) * (fp[1][1] - fp[0][1]) + (fp[2][2] - fp[0][2]) * (fp[1][2] - fp[0][2])) / (sqrt((fp[2][0] - fp[0][0]) * (fp[2][0] - fp[0][0]) + (fp[2][1] - fp[0][1]) * (fp[2][1] - fp[0][1]) + (fp[2][2] - fp[0][2]) * (fp[2][2] - fp[0][2])) * sqrt((fp[1][0] - fp[0][0]) * (fp[1][0] - fp[0][0]) + (fp[1][1] - fp[0][1]) * (fp[1][1] - fp[0][1]) + (fp[1][2] - fp[0][2]) * (fp[1][2] - fp[0][2])));
        sina = sqrt(1 - cosa * cosa);
        ss = sqrt((fp[1][0] - fp[0][0]) * (fp[1][0] - fp[0][0]) + (fp[1][1] - fp[0][1]) * (fp[1][1] - fp[0][1]) + (fp[1][2] - fp[0][2]) * (fp[1][2] - fp[0][2])) * sqrt((fp[2][0] - fp[0][0]) * (fp[2][0] - fp[0][0]) + (fp[2][1] - fp[0][1]) * (fp[2][1] - fp[0][1]) + (fp[2][2] - fp[0][2]) * (fp[2][2] - fp[0][2])) * sina / 2.0;
        if (fabs(ss - s[0] - s[1] - s[2]) < 0.00000001) {
          flag_inside = 1;
          for (j = 0; j < 3; j++)
            dis[j] = sqrt((point[0] - fp[j][0]) * (point[0] - fp[j][0]) + (point[1] - fp[j][1]) * (point[1] - fp[j][1]) + (point[2] - fp[j][2]) * (point[2] - fp[j][2]));
          dist = 1.0 / dis[0] + 1.0 / dis[1] + 1.0 / dis[2];
          *value = c_value[0] / (dis[0] * dist) + c_value[1] / (dis[1] * dist) + c_value[2] / (dis[2] * dist);
          if (smooth_shading == 1) {
            for (j = 0; j < 3; j++) {
              tmp_p[j] = normal[0 * 3 + j] / (dis[0] * dist) + normal[1 * 3 + j] / (dis[1] * dist) + normal[2 * 3 + j] / (dis[2] * dist);
            }
            for (j = 0; j < 3; j++)
              normal[j] = tmp_p[j];
          }
        }
      }
    }
  }
  return (flag_inside);
}
```