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

```asm
<update_cell_2D_BRANCH2>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  add    $0xffffffffffffff80,%rsp
  mov    %rdi,-0x48(%rbp)
  mov    %rsi,-0x50(%rbp)
  mov    %rdx,-0x58(%rbp)
  mov    %ecx,-0x5c(%rbp)
  mov    %r8d,-0x60(%rbp)
  mov    %r9d,-0x64(%rbp)
  movsd  %xmm0,-0x70(%rbp)
  movsd  %xmm1,-0x78(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x10(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x30(%rbp)
  mov    -0x60(%rbp),%eax
  imul   -0x64(%rbp),%eax
  mov    %eax,%edx
  mov    -0x5c(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x3c(%rbp)
  cmpl   $0x0,0x18(%rbp)
  jne    L119
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  push   -0x58(%rbp)
  lea    -0x38(%rbp),%rcx
  push   %rcx
  mov    -0x3c(%rbp),%ecx
  push   %rcx
  push   $0x0
  mov    $0x0,%r9d
  mov    $0x1,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <get_uface_2d@plt>
  add    $0x20,%rsp
  movsd  -0x30(%rbp),%xmm1
  movsd  -0x38(%rbp),%xmm0
  mov    -0x70(%rbp),%rcx
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  push   -0x48(%rbp)
  lea    -0x28(%rbp),%rdi
  push   %rdi
  mov    -0x3c(%rbp),%edi
  push   %rdi
  push   $0x1
  movapd %xmm1,%xmm2
  movapd %xmm0,%xmm1
  movq   %rcx,%xmm0
  mov    $0x0,%r9d
  mov    $0x1,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x3,%eax
  call   <get_face_2d_up@plt>
  add    $0x20,%rsp
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  sub    $0x8,%rsp
  push   -0x48(%rbp)
  lea    -0x20(%rbp),%rcx
  push   %rcx
  mov    -0x3c(%rbp),%ecx
  push   %rcx
  mov    $0x0,%r9d
  mov    $0x1,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <get_face_grad_2d@plt>
  add    $0x20,%rsp
  movsd  -0x28(%rbp),%xmm1
  movsd  -0x38(%rbp),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  -0x18(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  movsd  -0x20(%rbp),%xmm0
  movsd  -0x10(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x10(%rbp)
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  push   -0x58(%rbp)
  lea    -0x38(%rbp),%rcx
  push   %rcx
  mov    -0x3c(%rbp),%ecx
  push   %rcx
  push   $0x0
  mov    $0x0,%r9d
  mov    $0xffffffff,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <get_uface_2d@plt>
  add    $0x20,%rsp
  movsd  -0x30(%rbp),%xmm1
  movsd  -0x38(%rbp),%xmm0
  mov    -0x70(%rbp),%rcx
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  push   -0x48(%rbp)
  lea    -0x28(%rbp),%rdi
  push   %rdi
  mov    -0x3c(%rbp),%edi
  push   %rdi
  push   $0xffffffffffffffff
  movapd %xmm1,%xmm2
  movapd %xmm0,%xmm1
  movq   %rcx,%xmm0
  mov    $0x0,%r9d
  mov    $0xffffffff,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x3,%eax
  call   <get_face_2d_up@plt>
  add    $0x20,%rsp
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  sub    $0x8,%rsp
  push   -0x48(%rbp)
  lea    -0x20(%rbp),%rcx
  push   %rcx
  mov    -0x3c(%rbp),%ecx
  push   %rcx
  mov    $0x0,%r9d
  mov    $0xffffffff,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <get_face_grad_2d@plt>
  add    $0x20,%rsp
  movsd  -0x28(%rbp),%xmm1
  movsd  -0x38(%rbp),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  -0x18(%rbp),%xmm0
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  movsd  -0x20(%rbp),%xmm0
  movsd  -0x10(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x10(%rbp)
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  push   -0x58(%rbp)
  lea    -0x38(%rbp),%rcx
  push   %rcx
  mov    -0x3c(%rbp),%ecx
  push   %rcx
  push   $0x1
  mov    $0x1,%r9d
  mov    $0x0,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <get_uface_2d@plt>
  add    $0x20,%rsp
  movsd  -0x30(%rbp),%xmm1
  movsd  -0x38(%rbp),%xmm0
  mov    -0x70(%rbp),%rcx
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  push   -0x48(%rbp)
  lea    -0x28(%rbp),%rdi
  push   %rdi
  mov    -0x3c(%rbp),%edi
  push   %rdi
  push   $0x1
  movapd %xmm1,%xmm2
  movapd %xmm0,%xmm1
  movq   %rcx,%xmm0
  mov    $0x1,%r9d
  mov    $0x0,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x3,%eax
  call   <get_face_2d_up@plt>
  add    $0x20,%rsp
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  sub    $0x8,%rsp
  push   -0x48(%rbp)
  lea    -0x20(%rbp),%rcx
  push   %rcx
  mov    -0x3c(%rbp),%ecx
  push   %rcx
  mov    $0x1,%r9d
  mov    $0x0,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <get_face_grad_2d@plt>
  add    $0x20,%rsp
  movsd  -0x28(%rbp),%xmm1
  movsd  -0x38(%rbp),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  -0x18(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  movsd  -0x20(%rbp),%xmm0
  movsd  -0x10(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x10(%rbp)
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  push   -0x58(%rbp)
  lea    -0x38(%rbp),%rcx
  push   %rcx
  mov    -0x3c(%rbp),%ecx
  push   %rcx
  push   $0x1
  mov    $0xffffffff,%r9d
  mov    $0x0,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <get_uface_2d@plt>
  add    $0x20,%rsp
  movsd  -0x30(%rbp),%xmm1
  movsd  -0x38(%rbp),%xmm0
  mov    -0x70(%rbp),%rcx
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  push   -0x48(%rbp)
  lea    -0x28(%rbp),%rdi
  push   %rdi
  mov    -0x3c(%rbp),%edi
  push   %rdi
  push   $0xffffffffffffffff
  movapd %xmm1,%xmm2
  movapd %xmm0,%xmm1
  movq   %rcx,%xmm0
  mov    $0xffffffff,%r9d
  mov    $0x0,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x3,%eax
  call   <get_face_2d_up@plt>
  add    $0x20,%rsp
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  sub    $0x8,%rsp
  push   -0x48(%rbp)
  lea    -0x20(%rbp),%rcx
  push   %rcx
  mov    -0x3c(%rbp),%ecx
  push   %rcx
  mov    $0xffffffff,%r9d
  mov    $0x0,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <get_face_grad_2d@plt>
  add    $0x20,%rsp
  movsd  -0x28(%rbp),%xmm1
  movsd  -0x38(%rbp),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  -0x18(%rbp),%xmm0
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  movsd  -0x20(%rbp),%xmm0
  movsd  -0x10(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x10(%rbp)
  jmp    L114
L119:
  cmpl   $0x1,0x18(%rbp)
  jne    L143
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  push   -0x58(%rbp)
  lea    -0x38(%rbp),%rcx
  push   %rcx
  mov    -0x3c(%rbp),%ecx
  push   %rcx
  push   $0x0
  mov    $0x0,%r9d
  mov    $0x1,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <get_uface_2d@plt>
  add    $0x20,%rsp
  movsd  -0x30(%rbp),%xmm1
  movsd  -0x38(%rbp),%xmm0
  mov    -0x70(%rbp),%rcx
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  push   -0x48(%rbp)
  lea    -0x28(%rbp),%rdi
  push   %rdi
  mov    -0x3c(%rbp),%edi
  push   %rdi
  push   $0x1
  movapd %xmm1,%xmm2
  movapd %xmm0,%xmm1
  movq   %rcx,%xmm0
  mov    $0x0,%r9d
  mov    $0x1,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x3,%eax
  call   <get_face_2d_laxwend@plt>
  add    $0x20,%rsp
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  sub    $0x8,%rsp
  push   -0x48(%rbp)
  lea    -0x20(%rbp),%rcx
  push   %rcx
  mov    -0x3c(%rbp),%ecx
  push   %rcx
  mov    $0x0,%r9d
  mov    $0x1,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <get_face_grad_2d@plt>
  add    $0x20,%rsp
  movsd  -0x28(%rbp),%xmm1
  movsd  -0x38(%rbp),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  -0x18(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  movsd  -0x20(%rbp),%xmm0
  movsd  -0x10(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x10(%rbp)
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  push   -0x58(%rbp)
  lea    -0x38(%rbp),%rcx
  push   %rcx
  mov    -0x3c(%rbp),%ecx
  push   %rcx
  push   $0x0
  mov    $0x0,%r9d
  mov    $0xffffffff,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <get_uface_2d@plt>
  add    $0x20,%rsp
  movsd  -0x30(%rbp),%xmm1
  movsd  -0x38(%rbp),%xmm0
  mov    -0x70(%rbp),%rcx
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  push   -0x48(%rbp)
  lea    -0x28(%rbp),%rdi
  push   %rdi
  mov    -0x3c(%rbp),%edi
  push   %rdi
  push   $0xffffffffffffffff
  movapd %xmm1,%xmm2
  movapd %xmm0,%xmm1
  movq   %rcx,%xmm0
  mov    $0x0,%r9d
  mov    $0xffffffff,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x3,%eax
  call   <get_face_2d_laxwend@plt>
  add    $0x20,%rsp
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  sub    $0x8,%rsp
  push   -0x48(%rbp)
  lea    -0x20(%rbp),%rcx
  push   %rcx
  mov    -0x3c(%rbp),%ecx
  push   %rcx
  mov    $0x0,%r9d
  mov    $0xffffffff,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <get_face_grad_2d@plt>
  add    $0x20,%rsp
  movsd  -0x28(%rbp),%xmm1
  movsd  -0x38(%rbp),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  -0x18(%rbp),%xmm0
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  movsd  -0x20(%rbp),%xmm0
  movsd  -0x10(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x10(%rbp)
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  push   -0x58(%rbp)
  lea    -0x38(%rbp),%rcx
  push   %rcx
  mov    -0x3c(%rbp),%ecx
  push   %rcx
  push   $0x1
  mov    $0x1,%r9d
  mov    $0x0,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <get_uface_2d@plt>
  add    $0x20,%rsp
  movsd  -0x30(%rbp),%xmm1
  movsd  -0x38(%rbp),%xmm0
  mov    -0x70(%rbp),%rcx
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  push   -0x48(%rbp)
  lea    -0x28(%rbp),%rdi
  push   %rdi
  mov    -0x3c(%rbp),%edi
  push   %rdi
  push   $0x1
  movapd %xmm1,%xmm2
  movapd %xmm0,%xmm1
  movq   %rcx,%xmm0
  mov    $0x1,%r9d
  mov    $0x0,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x3,%eax
  call   <get_face_2d_laxwend@plt>
  add    $0x20,%rsp
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  sub    $0x8,%rsp
  push   -0x48(%rbp)
  lea    -0x20(%rbp),%rcx
  push   %rcx
  mov    -0x3c(%rbp),%ecx
  push   %rcx
  mov    $0x1,%r9d
  mov    $0x0,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <get_face_grad_2d@plt>
  add    $0x20,%rsp
  movsd  -0x28(%rbp),%xmm1
  movsd  -0x38(%rbp),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  -0x18(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  movsd  -0x20(%rbp),%xmm0
  movsd  -0x10(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x10(%rbp)
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  push   -0x58(%rbp)
  lea    -0x38(%rbp),%rcx
  push   %rcx
  mov    -0x3c(%rbp),%ecx
  push   %rcx
  push   $0x1
  mov    $0xffffffff,%r9d
  mov    $0x0,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <get_uface_2d@plt>
  add    $0x20,%rsp
  movsd  -0x30(%rbp),%xmm1
  movsd  -0x38(%rbp),%xmm0
  mov    -0x70(%rbp),%rcx
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  push   -0x48(%rbp)
  lea    -0x28(%rbp),%rdi
  push   %rdi
  mov    -0x3c(%rbp),%edi
  push   %rdi
  push   $0xffffffffffffffff
  movapd %xmm1,%xmm2
  movapd %xmm0,%xmm1
  movq   %rcx,%xmm0
  mov    $0xffffffff,%r9d
  mov    $0x0,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x3,%eax
  call   <get_face_2d_laxwend@plt>
  add    $0x20,%rsp
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  sub    $0x8,%rsp
  push   -0x48(%rbp)
  lea    -0x20(%rbp),%rcx
  push   %rcx
  mov    -0x3c(%rbp),%ecx
  push   %rcx
  mov    $0xffffffff,%r9d
  mov    $0x0,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <get_face_grad_2d@plt>
  add    $0x20,%rsp
  movsd  -0x28(%rbp),%xmm1
  movsd  -0x38(%rbp),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  -0x18(%rbp),%xmm0
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  movsd  -0x20(%rbp),%xmm0
  movsd  -0x10(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x10(%rbp)
  jmp    L114
L143:
  cmpl   $0x2,0x18(%rbp)
  jne    L80
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  push   -0x58(%rbp)
  lea    -0x38(%rbp),%rcx
  push   %rcx
  mov    -0x3c(%rbp),%ecx
  push   %rcx
  push   $0x0
  mov    $0x0,%r9d
  mov    $0x1,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <get_uface_2d@plt>
  add    $0x20,%rsp
  movsd  -0x30(%rbp),%xmm1
  movsd  -0x38(%rbp),%xmm0
  mov    -0x70(%rbp),%rcx
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  push   -0x48(%rbp)
  lea    -0x28(%rbp),%rdi
  push   %rdi
  mov    -0x3c(%rbp),%edi
  push   %rdi
  push   $0x1
  movapd %xmm1,%xmm2
  movapd %xmm0,%xmm1
  movq   %rcx,%xmm0
  mov    $0x0,%r9d
  mov    $0x1,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x3,%eax
  call   <get_face_2d_quickest_a@plt>
  add    $0x20,%rsp
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  sub    $0x8,%rsp
  push   -0x48(%rbp)
  lea    -0x20(%rbp),%rcx
  push   %rcx
  mov    -0x3c(%rbp),%ecx
  push   %rcx
  mov    $0x0,%r9d
  mov    $0x1,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <get_face_grad_2d@plt>
  add    $0x20,%rsp
  movsd  -0x28(%rbp),%xmm1
  movsd  -0x38(%rbp),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  -0x18(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  movsd  -0x20(%rbp),%xmm0
  movsd  -0x10(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x10(%rbp)
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  push   -0x58(%rbp)
  lea    -0x38(%rbp),%rcx
  push   %rcx
  mov    -0x3c(%rbp),%ecx
  push   %rcx
  push   $0x0
  mov    $0x0,%r9d
  mov    $0xffffffff,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <get_uface_2d@plt>
  add    $0x20,%rsp
  movsd  -0x30(%rbp),%xmm1
  movsd  -0x38(%rbp),%xmm0
  mov    -0x70(%rbp),%rcx
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  push   -0x48(%rbp)
  lea    -0x28(%rbp),%rdi
  push   %rdi
  mov    -0x3c(%rbp),%edi
  push   %rdi
  push   $0xffffffffffffffff
  movapd %xmm1,%xmm2
  movapd %xmm0,%xmm1
  movq   %rcx,%xmm0
  mov    $0x0,%r9d
  mov    $0xffffffff,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x3,%eax
  call   <get_face_2d_quickest_a@plt>
  add    $0x20,%rsp
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  sub    $0x8,%rsp
  push   -0x48(%rbp)
  lea    -0x20(%rbp),%rcx
  push   %rcx
  mov    -0x3c(%rbp),%ecx
  push   %rcx
  mov    $0x0,%r9d
  mov    $0xffffffff,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <get_face_grad_2d@plt>
  add    $0x20,%rsp
  movsd  -0x28(%rbp),%xmm1
  movsd  -0x38(%rbp),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  -0x18(%rbp),%xmm0
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  movsd  -0x20(%rbp),%xmm0
  movsd  -0x10(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x10(%rbp)
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  push   -0x58(%rbp)
  lea    -0x38(%rbp),%rcx
  push   %rcx
  mov    -0x3c(%rbp),%ecx
  push   %rcx
  push   $0x1
  mov    $0x1,%r9d
  mov    $0x0,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <get_uface_2d@plt>
  add    $0x20,%rsp
  movsd  -0x30(%rbp),%xmm1
  movsd  -0x38(%rbp),%xmm0
  mov    -0x70(%rbp),%rcx
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  push   -0x48(%rbp)
  lea    -0x28(%rbp),%rdi
  push   %rdi
  mov    -0x3c(%rbp),%edi
  push   %rdi
  push   $0x1
  movapd %xmm1,%xmm2
  movapd %xmm0,%xmm1
  movq   %rcx,%xmm0
  mov    $0x1,%r9d
  mov    $0x0,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x3,%eax
  call   <get_face_2d_quickest_a@plt>
  add    $0x20,%rsp
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  sub    $0x8,%rsp
  push   -0x48(%rbp)
  lea    -0x20(%rbp),%rcx
  push   %rcx
  mov    -0x3c(%rbp),%ecx
  push   %rcx
  mov    $0x1,%r9d
  mov    $0x0,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <get_face_grad_2d@plt>
  add    $0x20,%rsp
  movsd  -0x28(%rbp),%xmm1
  movsd  -0x38(%rbp),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  -0x18(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  movsd  -0x20(%rbp),%xmm0
  movsd  -0x10(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x10(%rbp)
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  push   -0x58(%rbp)
  lea    -0x38(%rbp),%rcx
  push   %rcx
  mov    -0x3c(%rbp),%ecx
  push   %rcx
  push   $0x1
  mov    $0xffffffff,%r9d
  mov    $0x0,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <get_uface_2d@plt>
  add    $0x20,%rsp
  movsd  -0x30(%rbp),%xmm1
  movsd  -0x38(%rbp),%xmm0
  mov    -0x70(%rbp),%rcx
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  push   -0x48(%rbp)
  lea    -0x28(%rbp),%rdi
  push   %rdi
  mov    -0x3c(%rbp),%edi
  push   %rdi
  push   $0xffffffffffffffff
  movapd %xmm1,%xmm2
  movapd %xmm0,%xmm1
  movq   %rcx,%xmm0
  mov    $0xffffffff,%r9d
  mov    $0x0,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x3,%eax
  call   <get_face_2d_quickest_a@plt>
  add    $0x20,%rsp
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  sub    $0x8,%rsp
  push   -0x48(%rbp)
  lea    -0x20(%rbp),%rcx
  push   %rcx
  mov    -0x3c(%rbp),%ecx
  push   %rcx
  mov    $0xffffffff,%r9d
  mov    $0x0,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <get_face_grad_2d@plt>
  add    $0x20,%rsp
  movsd  -0x28(%rbp),%xmm1
  movsd  -0x38(%rbp),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  -0x18(%rbp),%xmm0
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  movsd  -0x20(%rbp),%xmm0
  movsd  -0x10(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x10(%rbp)
  jmp    L114
L80:
  cmpl   $0x3,0x18(%rbp)
  jne    L140
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  push   -0x58(%rbp)
  lea    -0x38(%rbp),%rcx
  push   %rcx
  mov    -0x3c(%rbp),%ecx
  push   %rcx
  push   $0x0
  mov    $0x0,%r9d
  mov    $0x1,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <get_uface_2d@plt>
  add    $0x20,%rsp
  movsd  -0x30(%rbp),%xmm1
  movsd  -0x38(%rbp),%xmm0
  mov    -0x70(%rbp),%rcx
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  push   -0x48(%rbp)
  lea    -0x28(%rbp),%rdi
  push   %rdi
  mov    -0x3c(%rbp),%edi
  push   %rdi
  push   $0x1
  movapd %xmm1,%xmm2
  movapd %xmm0,%xmm1
  movq   %rcx,%xmm0
  mov    $0x0,%r9d
  mov    $0x1,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x3,%eax
  call   <get_face_2d_quickest_b@plt>
  add    $0x20,%rsp
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  sub    $0x8,%rsp
  push   -0x48(%rbp)
  lea    -0x20(%rbp),%rcx
  push   %rcx
  mov    -0x3c(%rbp),%ecx
  push   %rcx
  mov    $0x0,%r9d
  mov    $0x1,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <get_face_grad_2d@plt>
  add    $0x20,%rsp
  movsd  -0x28(%rbp),%xmm1
  movsd  -0x38(%rbp),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  -0x18(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  movsd  -0x20(%rbp),%xmm0
  movsd  -0x10(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x10(%rbp)
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  push   -0x58(%rbp)
  lea    -0x38(%rbp),%rcx
  push   %rcx
  mov    -0x3c(%rbp),%ecx
  push   %rcx
  push   $0x0
  mov    $0x0,%r9d
  mov    $0xffffffff,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <get_uface_2d@plt>
  add    $0x20,%rsp
  movsd  -0x30(%rbp),%xmm1
  movsd  -0x38(%rbp),%xmm0
  mov    -0x70(%rbp),%rcx
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  push   -0x48(%rbp)
  lea    -0x28(%rbp),%rdi
  push   %rdi
  mov    -0x3c(%rbp),%edi
  push   %rdi
  push   $0xffffffffffffffff
  movapd %xmm1,%xmm2
  movapd %xmm0,%xmm1
  movq   %rcx,%xmm0
  mov    $0x0,%r9d
  mov    $0xffffffff,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x3,%eax
  call   <get_face_2d_quickest_b@plt>
  add    $0x20,%rsp
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  sub    $0x8,%rsp
  push   -0x48(%rbp)
  lea    -0x20(%rbp),%rcx
  push   %rcx
  mov    -0x3c(%rbp),%ecx
  push   %rcx
  mov    $0x0,%r9d
  mov    $0xffffffff,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <get_face_grad_2d@plt>
  add    $0x20,%rsp
  movsd  -0x28(%rbp),%xmm1
  movsd  -0x38(%rbp),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  -0x18(%rbp),%xmm0
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  movsd  -0x20(%rbp),%xmm0
  movsd  -0x10(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x10(%rbp)
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  push   -0x58(%rbp)
  lea    -0x38(%rbp),%rcx
  push   %rcx
  mov    -0x3c(%rbp),%ecx
  push   %rcx
  push   $0x1
  mov    $0x1,%r9d
  mov    $0x0,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <get_uface_2d@plt>
  add    $0x20,%rsp
  movsd  -0x30(%rbp),%xmm1
  movsd  -0x38(%rbp),%xmm0
  mov    -0x70(%rbp),%rcx
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  push   -0x48(%rbp)
  lea    -0x28(%rbp),%rdi
  push   %rdi
  mov    -0x3c(%rbp),%edi
  push   %rdi
  push   $0x1
  movapd %xmm1,%xmm2
  movapd %xmm0,%xmm1
  movq   %rcx,%xmm0
  mov    $0x1,%r9d
  mov    $0x0,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x3,%eax
  call   <get_face_2d_quickest_b@plt>
  add    $0x20,%rsp
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  sub    $0x8,%rsp
  push   -0x48(%rbp)
  lea    -0x20(%rbp),%rcx
  push   %rcx
  mov    -0x3c(%rbp),%ecx
  push   %rcx
  mov    $0x1,%r9d
  mov    $0x0,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <get_face_grad_2d@plt>
  add    $0x20,%rsp
  movsd  -0x28(%rbp),%xmm1
  movsd  -0x38(%rbp),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  -0x18(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  movsd  -0x20(%rbp),%xmm0
  movsd  -0x10(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x10(%rbp)
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  push   -0x58(%rbp)
  lea    -0x38(%rbp),%rcx
  push   %rcx
  mov    -0x3c(%rbp),%ecx
  push   %rcx
  push   $0x1
  mov    $0xffffffff,%r9d
  mov    $0x0,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <get_uface_2d@plt>
  add    $0x20,%rsp
  movsd  -0x30(%rbp),%xmm1
  movsd  -0x38(%rbp),%xmm0
  mov    -0x70(%rbp),%rcx
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  push   -0x48(%rbp)
  lea    -0x28(%rbp),%rdi
  push   %rdi
  mov    -0x3c(%rbp),%edi
  push   %rdi
  push   $0xffffffffffffffff
  movapd %xmm1,%xmm2
  movapd %xmm0,%xmm1
  movq   %rcx,%xmm0
  mov    $0xffffffff,%r9d
  mov    $0x0,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x3,%eax
  call   <get_face_2d_quickest_b@plt>
  add    $0x20,%rsp
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  sub    $0x8,%rsp
  push   -0x48(%rbp)
  lea    -0x20(%rbp),%rcx
  push   %rcx
  mov    -0x3c(%rbp),%ecx
  push   %rcx
  mov    $0xffffffff,%r9d
  mov    $0x0,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <get_face_grad_2d@plt>
  add    $0x20,%rsp
  movsd  -0x28(%rbp),%xmm1
  movsd  -0x38(%rbp),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  -0x18(%rbp),%xmm0
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  movsd  -0x20(%rbp),%xmm0
  movsd  -0x10(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x10(%rbp)
  jmp    L114
L140:
  cmpl   $0x4,0x18(%rbp)
  jne    L117
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  push   -0x58(%rbp)
  lea    -0x38(%rbp),%rcx
  push   %rcx
  mov    -0x3c(%rbp),%ecx
  push   %rcx
  push   $0x0
  mov    $0x0,%r9d
  mov    $0x1,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <get_uface_2d@plt>
  add    $0x20,%rsp
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  push   -0x58(%rbp)
  lea    -0x30(%rbp),%rcx
  push   %rcx
  mov    -0x3c(%rbp),%ecx
  push   %rcx
  push   $0x1
  mov    $0x0,%r9d
  mov    $0x1,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <get_uface_2d@plt>
  add    $0x20,%rsp
  movsd  -0x30(%rbp),%xmm1
  movsd  -0x38(%rbp),%xmm0
  mov    -0x70(%rbp),%rcx
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  push   -0x48(%rbp)
  lea    -0x28(%rbp),%rdi
  push   %rdi
  mov    -0x3c(%rbp),%edi
  push   %rdi
  push   $0x1
  movapd %xmm1,%xmm2
  movapd %xmm0,%xmm1
  movq   %rcx,%xmm0
  mov    $0x0,%r9d
  mov    $0x1,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x3,%eax
  call   <get_face_2d_upmulti@plt>
  add    $0x20,%rsp
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  sub    $0x8,%rsp
  push   -0x48(%rbp)
  lea    -0x20(%rbp),%rcx
  push   %rcx
  mov    -0x3c(%rbp),%ecx
  push   %rcx
  mov    $0x0,%r9d
  mov    $0x1,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <get_face_grad_2d@plt>
  add    $0x20,%rsp
  movsd  -0x28(%rbp),%xmm1
  movsd  -0x38(%rbp),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  -0x18(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  movsd  -0x20(%rbp),%xmm0
  movsd  -0x10(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x10(%rbp)
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  push   -0x58(%rbp)
  lea    -0x38(%rbp),%rcx
  push   %rcx
  mov    -0x3c(%rbp),%ecx
  push   %rcx
  push   $0x0
  mov    $0x0,%r9d
  mov    $0xffffffff,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <get_uface_2d@plt>
  add    $0x20,%rsp
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  push   -0x58(%rbp)
  lea    -0x30(%rbp),%rcx
  push   %rcx
  mov    -0x3c(%rbp),%ecx
  push   %rcx
  push   $0x1
  mov    $0x0,%r9d
  mov    $0xffffffff,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <get_uface_2d@plt>
  add    $0x20,%rsp
  movsd  -0x30(%rbp),%xmm1
  movsd  -0x38(%rbp),%xmm0
  mov    -0x70(%rbp),%rcx
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  push   -0x48(%rbp)
  lea    -0x28(%rbp),%rdi
  push   %rdi
  mov    -0x3c(%rbp),%edi
  push   %rdi
  push   $0xffffffffffffffff
  movapd %xmm1,%xmm2
  movapd %xmm0,%xmm1
  movq   %rcx,%xmm0
  mov    $0x0,%r9d
  mov    $0xffffffff,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x3,%eax
  call   <get_face_2d_upmulti@plt>
  add    $0x20,%rsp
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  sub    $0x8,%rsp
  push   -0x48(%rbp)
  lea    -0x20(%rbp),%rcx
  push   %rcx
  mov    -0x3c(%rbp),%ecx
  push   %rcx
  mov    $0x0,%r9d
  mov    $0xffffffff,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <get_face_grad_2d@plt>
  add    $0x20,%rsp
  movsd  -0x28(%rbp),%xmm1
  movsd  -0x38(%rbp),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  -0x18(%rbp),%xmm0
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  movsd  -0x20(%rbp),%xmm0
  movsd  -0x10(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x10(%rbp)
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  push   -0x58(%rbp)
  lea    -0x38(%rbp),%rcx
  push   %rcx
  mov    -0x3c(%rbp),%ecx
  push   %rcx
  push   $0x1
  mov    $0x1,%r9d
  mov    $0x0,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <get_uface_2d@plt>
  add    $0x20,%rsp
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  push   -0x58(%rbp)
  lea    -0x30(%rbp),%rcx
  push   %rcx
  mov    -0x3c(%rbp),%ecx
  push   %rcx
  push   $0x0
  mov    $0x1,%r9d
  mov    $0x0,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <get_uface_2d@plt>
  add    $0x20,%rsp
  movsd  -0x30(%rbp),%xmm1
  movsd  -0x38(%rbp),%xmm0
  mov    -0x70(%rbp),%rcx
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  push   -0x48(%rbp)
  lea    -0x28(%rbp),%rdi
  push   %rdi
  mov    -0x3c(%rbp),%edi
  push   %rdi
  push   $0x1
  movapd %xmm1,%xmm2
  movapd %xmm0,%xmm1
  movq   %rcx,%xmm0
  mov    $0x1,%r9d
  mov    $0x0,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x3,%eax
  call   <get_face_2d_upmulti@plt>
  add    $0x20,%rsp
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  sub    $0x8,%rsp
  push   -0x48(%rbp)
  lea    -0x20(%rbp),%rcx
  push   %rcx
  mov    -0x3c(%rbp),%ecx
  push   %rcx
  mov    $0x1,%r9d
  mov    $0x0,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <get_face_grad_2d@plt>
  add    $0x20,%rsp
  movsd  -0x28(%rbp),%xmm1
  movsd  -0x38(%rbp),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  -0x18(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  movsd  -0x20(%rbp),%xmm0
  movsd  -0x10(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x10(%rbp)
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  push   -0x58(%rbp)
  lea    -0x38(%rbp),%rcx
  push   %rcx
  mov    -0x3c(%rbp),%ecx
  push   %rcx
  push   $0x1
  mov    $0xffffffff,%r9d
  mov    $0x0,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <get_uface_2d@plt>
  add    $0x20,%rsp
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  push   -0x58(%rbp)
  lea    -0x30(%rbp),%rcx
  push   %rcx
  mov    -0x3c(%rbp),%ecx
  push   %rcx
  push   $0x0
  mov    $0xffffffff,%r9d
  mov    $0x0,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <get_uface_2d@plt>
  add    $0x20,%rsp
  movsd  -0x30(%rbp),%xmm1
  movsd  -0x38(%rbp),%xmm0
  mov    -0x70(%rbp),%rcx
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  push   -0x48(%rbp)
  lea    -0x28(%rbp),%rdi
  push   %rdi
  mov    -0x3c(%rbp),%edi
  push   %rdi
  push   $0xffffffffffffffff
  movapd %xmm1,%xmm2
  movapd %xmm0,%xmm1
  movq   %rcx,%xmm0
  mov    $0xffffffff,%r9d
  mov    $0x0,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x3,%eax
  call   <get_face_2d_upmulti@plt>
  add    $0x20,%rsp
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  sub    $0x8,%rsp
  push   -0x48(%rbp)
  lea    -0x20(%rbp),%rcx
  push   %rcx
  mov    -0x3c(%rbp),%ecx
  push   %rcx
  mov    $0xffffffff,%r9d
  mov    $0x0,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <get_face_grad_2d@plt>
  add    $0x20,%rsp
  movsd  -0x28(%rbp),%xmm1
  movsd  -0x38(%rbp),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  -0x18(%rbp),%xmm0
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  movsd  -0x20(%rbp),%xmm0
  movsd  -0x10(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x10(%rbp)
  jmp    L114
L117:
  cmpl   $0x5,0x18(%rbp)
  jne    L62
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  push   -0x58(%rbp)
  lea    -0x38(%rbp),%rcx
  push   %rcx
  mov    -0x3c(%rbp),%ecx
  push   %rcx
  push   $0x0
  mov    $0x0,%r9d
  mov    $0x1,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <get_uface_2d@plt>
  add    $0x20,%rsp
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  push   -0x58(%rbp)
  lea    -0x30(%rbp),%rcx
  push   %rcx
  mov    -0x3c(%rbp),%ecx
  push   %rcx
  push   $0x1
  mov    $0x0,%r9d
  mov    $0x1,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <get_uface_2d@plt>
  add    $0x20,%rsp
  movsd  -0x30(%rbp),%xmm1
  movsd  -0x38(%rbp),%xmm0
  mov    -0x70(%rbp),%rcx
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  push   -0x48(%rbp)
  lea    -0x28(%rbp),%rdi
  push   %rdi
  mov    -0x3c(%rbp),%edi
  push   %rdi
  push   $0x1
  movapd %xmm1,%xmm2
  movapd %xmm0,%xmm1
  movq   %rcx,%xmm0
  mov    $0x0,%r9d
  mov    $0x1,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x3,%eax
  call   <get_face_2d_utopia_simp@plt>
  add    $0x20,%rsp
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  sub    $0x8,%rsp
  push   -0x48(%rbp)
  lea    -0x20(%rbp),%rcx
  push   %rcx
  mov    -0x3c(%rbp),%ecx
  push   %rcx
  mov    $0x0,%r9d
  mov    $0x1,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <get_face_grad_2d@plt>
  add    $0x20,%rsp
  movsd  -0x28(%rbp),%xmm1
  movsd  -0x38(%rbp),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  -0x18(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  movsd  -0x20(%rbp),%xmm0
  movsd  -0x10(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x10(%rbp)
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  push   -0x58(%rbp)
  lea    -0x38(%rbp),%rcx
  push   %rcx
  mov    -0x3c(%rbp),%ecx
  push   %rcx
  push   $0x0
  mov    $0x0,%r9d
  mov    $0xffffffff,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <get_uface_2d@plt>
  add    $0x20,%rsp
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  push   -0x58(%rbp)
  lea    -0x30(%rbp),%rcx
  push   %rcx
  mov    -0x3c(%rbp),%ecx
  push   %rcx
  push   $0x1
  mov    $0x0,%r9d
  mov    $0xffffffff,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <get_uface_2d@plt>
  add    $0x20,%rsp
  movsd  -0x30(%rbp),%xmm1
  movsd  -0x38(%rbp),%xmm0
  mov    -0x70(%rbp),%rcx
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  push   -0x48(%rbp)
  lea    -0x28(%rbp),%rdi
  push   %rdi
  mov    -0x3c(%rbp),%edi
  push   %rdi
  push   $0xffffffffffffffff
  movapd %xmm1,%xmm2
  movapd %xmm0,%xmm1
  movq   %rcx,%xmm0
  mov    $0x0,%r9d
  mov    $0xffffffff,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x3,%eax
  call   <get_face_2d_utopia_simp@plt>
  add    $0x20,%rsp
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  sub    $0x8,%rsp
  push   -0x48(%rbp)
  lea    -0x20(%rbp),%rcx
  push   %rcx
  mov    -0x3c(%rbp),%ecx
  push   %rcx
  mov    $0x0,%r9d
  mov    $0xffffffff,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <get_face_grad_2d@plt>
  add    $0x20,%rsp
  movsd  -0x28(%rbp),%xmm1
  movsd  -0x38(%rbp),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  -0x18(%rbp),%xmm0
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  movsd  -0x20(%rbp),%xmm0
  movsd  -0x10(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x10(%rbp)
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  push   -0x58(%rbp)
  lea    -0x38(%rbp),%rcx
  push   %rcx
  mov    -0x3c(%rbp),%ecx
  push   %rcx
  push   $0x1
  mov    $0x1,%r9d
  mov    $0x0,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <get_uface_2d@plt>
  add    $0x20,%rsp
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  push   -0x58(%rbp)
  lea    -0x30(%rbp),%rcx
  push   %rcx
  mov    -0x3c(%rbp),%ecx
  push   %rcx
  push   $0x0
  mov    $0x1,%r9d
  mov    $0x0,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <get_uface_2d@plt>
  add    $0x20,%rsp
  movsd  -0x30(%rbp),%xmm1
  movsd  -0x38(%rbp),%xmm0
  mov    -0x70(%rbp),%rcx
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  push   -0x48(%rbp)
  lea    -0x28(%rbp),%rdi
  push   %rdi
  mov    -0x3c(%rbp),%edi
  push   %rdi
  push   $0x1
  movapd %xmm1,%xmm2
  movapd %xmm0,%xmm1
  movq   %rcx,%xmm0
  mov    $0x1,%r9d
  mov    $0x0,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x3,%eax
  call   <get_face_2d_utopia_simp@plt>
  add    $0x20,%rsp
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  sub    $0x8,%rsp
  push   -0x48(%rbp)
  lea    -0x20(%rbp),%rcx
  push   %rcx
  mov    -0x3c(%rbp),%ecx
  push   %rcx
  mov    $0x1,%r9d
  mov    $0x0,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <get_face_grad_2d@plt>
  add    $0x20,%rsp
  movsd  -0x28(%rbp),%xmm1
  movsd  -0x38(%rbp),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  -0x18(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  movsd  -0x20(%rbp),%xmm0
  movsd  -0x10(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x10(%rbp)
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  push   -0x58(%rbp)
  lea    -0x38(%rbp),%rcx
  push   %rcx
  mov    -0x3c(%rbp),%ecx
  push   %rcx
  push   $0x1
  mov    $0xffffffff,%r9d
  mov    $0x0,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <get_uface_2d@plt>
  add    $0x20,%rsp
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  push   -0x58(%rbp)
  lea    -0x30(%rbp),%rcx
  push   %rcx
  mov    -0x3c(%rbp),%ecx
  push   %rcx
  push   $0x0
  mov    $0xffffffff,%r9d
  mov    $0x0,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <get_uface_2d@plt>
  add    $0x20,%rsp
  movsd  -0x30(%rbp),%xmm1
  movsd  -0x38(%rbp),%xmm0
  mov    -0x70(%rbp),%rcx
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  push   -0x48(%rbp)
  lea    -0x28(%rbp),%rdi
  push   %rdi
  mov    -0x3c(%rbp),%edi
  push   %rdi
  push   $0xffffffffffffffff
  movapd %xmm1,%xmm2
  movapd %xmm0,%xmm1
  movq   %rcx,%xmm0
  mov    $0xffffffff,%r9d
  mov    $0x0,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x3,%eax
  call   <get_face_2d_utopia_simp@plt>
  add    $0x20,%rsp
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  sub    $0x8,%rsp
  push   -0x48(%rbp)
  lea    -0x20(%rbp),%rcx
  push   %rcx
  mov    -0x3c(%rbp),%ecx
  push   %rcx
  mov    $0xffffffff,%r9d
  mov    $0x0,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <get_face_grad_2d@plt>
  add    $0x20,%rsp
  movsd  -0x28(%rbp),%xmm1
  movsd  -0x38(%rbp),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  -0x18(%rbp),%xmm0
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  movsd  -0x20(%rbp),%xmm0
  movsd  -0x10(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x10(%rbp)
  jmp    L114
L62:
  cmpl   $0x6,0x18(%rbp)
  jne    L72
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  push   -0x58(%rbp)
  lea    -0x38(%rbp),%rcx
  push   %rcx
  mov    -0x3c(%rbp),%ecx
  push   %rcx
  push   $0x0
  mov    $0x0,%r9d
  mov    $0x1,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <get_uface_2d@plt>
  add    $0x20,%rsp
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  push   -0x58(%rbp)
  lea    -0x30(%rbp),%rcx
  push   %rcx
  mov    -0x3c(%rbp),%ecx
  push   %rcx
  push   $0x1
  mov    $0x0,%r9d
  mov    $0x1,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <get_uface_2d@plt>
  add    $0x20,%rsp
  movsd  -0x30(%rbp),%xmm1
  movsd  -0x38(%rbp),%xmm0
  mov    -0x70(%rbp),%rcx
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  push   -0x48(%rbp)
  lea    -0x28(%rbp),%rdi
  push   %rdi
  mov    -0x3c(%rbp),%edi
  push   %rdi
  push   $0x1
  movapd %xmm1,%xmm2
  movapd %xmm0,%xmm1
  movq   %rcx,%xmm0
  mov    $0x0,%r9d
  mov    $0x1,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x3,%eax
  call   <get_face_2d_utopia@plt>
  add    $0x20,%rsp
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  sub    $0x8,%rsp
  push   -0x48(%rbp)
  lea    -0x20(%rbp),%rcx
  push   %rcx
  mov    -0x3c(%rbp),%ecx
  push   %rcx
  mov    $0x0,%r9d
  mov    $0x1,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <get_face_grad_2d@plt>
  add    $0x20,%rsp
  movsd  -0x28(%rbp),%xmm1
  movsd  -0x38(%rbp),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  -0x18(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  movsd  -0x20(%rbp),%xmm0
  movsd  -0x10(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x10(%rbp)
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  push   -0x58(%rbp)
  lea    -0x38(%rbp),%rcx
  push   %rcx
  mov    -0x3c(%rbp),%ecx
  push   %rcx
  push   $0x0
  mov    $0x0,%r9d
  mov    $0xffffffff,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <get_uface_2d@plt>
  add    $0x20,%rsp
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  push   -0x58(%rbp)
  lea    -0x30(%rbp),%rcx
  push   %rcx
  mov    -0x3c(%rbp),%ecx
  push   %rcx
  push   $0x1
  mov    $0x0,%r9d
  mov    $0xffffffff,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <get_uface_2d@plt>
  add    $0x20,%rsp
  movsd  -0x30(%rbp),%xmm1
  movsd  -0x38(%rbp),%xmm0
  mov    -0x70(%rbp),%rcx
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  push   -0x48(%rbp)
  lea    -0x28(%rbp),%rdi
  push   %rdi
  mov    -0x3c(%rbp),%edi
  push   %rdi
  push   $0xffffffffffffffff
  movapd %xmm1,%xmm2
  movapd %xmm0,%xmm1
  movq   %rcx,%xmm0
  mov    $0x0,%r9d
  mov    $0xffffffff,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x3,%eax
  call   <get_face_2d_utopia@plt>
  add    $0x20,%rsp
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  sub    $0x8,%rsp
  push   -0x48(%rbp)
  lea    -0x20(%rbp),%rcx
  push   %rcx
  mov    -0x3c(%rbp),%ecx
  push   %rcx
  mov    $0x0,%r9d
  mov    $0xffffffff,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <get_face_grad_2d@plt>
  add    $0x20,%rsp
  movsd  -0x28(%rbp),%xmm1
  movsd  -0x38(%rbp),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  -0x18(%rbp),%xmm0
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  movsd  -0x20(%rbp),%xmm0
  movsd  -0x10(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x10(%rbp)
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  push   -0x58(%rbp)
  lea    -0x38(%rbp),%rcx
  push   %rcx
  mov    -0x3c(%rbp),%ecx
  push   %rcx
  push   $0x1
  mov    $0x1,%r9d
  mov    $0x0,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <get_uface_2d@plt>
  add    $0x20,%rsp
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  push   -0x58(%rbp)
  lea    -0x30(%rbp),%rcx
  push   %rcx
  mov    -0x3c(%rbp),%ecx
  push   %rcx
  push   $0x0
  mov    $0x1,%r9d
  mov    $0x0,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <get_uface_2d@plt>
  add    $0x20,%rsp
  movsd  -0x30(%rbp),%xmm1
  movsd  -0x38(%rbp),%xmm0
  mov    -0x70(%rbp),%rcx
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  push   -0x48(%rbp)
  lea    -0x28(%rbp),%rdi
  push   %rdi
  mov    -0x3c(%rbp),%edi
  push   %rdi
  push   $0x1
  movapd %xmm1,%xmm2
  movapd %xmm0,%xmm1
  movq   %rcx,%xmm0
  mov    $0x1,%r9d
  mov    $0x0,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x3,%eax
  call   <get_face_2d_utopia@plt>
  add    $0x20,%rsp
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  sub    $0x8,%rsp
  push   -0x48(%rbp)
  lea    -0x20(%rbp),%rcx
  push   %rcx
  mov    -0x3c(%rbp),%ecx
  push   %rcx
  mov    $0x1,%r9d
  mov    $0x0,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <get_face_grad_2d@plt>
  add    $0x20,%rsp
  movsd  -0x28(%rbp),%xmm1
  movsd  -0x38(%rbp),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  -0x18(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  movsd  -0x20(%rbp),%xmm0
  movsd  -0x10(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x10(%rbp)
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  push   -0x58(%rbp)
  lea    -0x38(%rbp),%rcx
  push   %rcx
  mov    -0x3c(%rbp),%ecx
  push   %rcx
  push   $0x1
  mov    $0xffffffff,%r9d
  mov    $0x0,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <get_uface_2d@plt>
  add    $0x20,%rsp
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  push   -0x58(%rbp)
  lea    -0x30(%rbp),%rcx
  push   %rcx
  mov    -0x3c(%rbp),%ecx
  push   %rcx
  push   $0x0
  mov    $0xffffffff,%r9d
  mov    $0x0,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <get_uface_2d@plt>
  add    $0x20,%rsp
  movsd  -0x30(%rbp),%xmm1
  movsd  -0x38(%rbp),%xmm0
  mov    -0x70(%rbp),%rcx
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  push   -0x48(%rbp)
  lea    -0x28(%rbp),%rdi
  push   %rdi
  mov    -0x3c(%rbp),%edi
  push   %rdi
  push   $0xffffffffffffffff
  movapd %xmm1,%xmm2
  movapd %xmm0,%xmm1
  movq   %rcx,%xmm0
  mov    $0xffffffff,%r9d
  mov    $0x0,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x3,%eax
  call   <get_face_2d_utopia@plt>
  add    $0x20,%rsp
  mov    -0x64(%rbp),%edx
  mov    -0x60(%rbp),%esi
  mov    -0x5c(%rbp),%eax
  sub    $0x8,%rsp
  push   -0x48(%rbp)
  lea    -0x20(%rbp),%rcx
  push   %rcx
  mov    -0x3c(%rbp),%ecx
  push   %rcx
  mov    $0xffffffff,%r9d
  mov    $0x0,%r8d
  mov    0x10(%rbp),%ecx
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <get_face_grad_2d@plt>
  add    $0x20,%rsp
  movsd  -0x28(%rbp),%xmm1
  movsd  -0x38(%rbp),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  -0x18(%rbp),%xmm0
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  movsd  -0x20(%rbp),%xmm0
  movsd  -0x10(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x10(%rbp)
  jmp    L114
L72:
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x28(%rbp)
L114:
  mov    -0x3c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  movsd  -0x78(%rbp),%xmm0
  mulsd  -0x10(%rbp),%xmm0
  subsd  -0x18(%rbp),%xmm0
  mulsd  -0x70(%rbp),%xmm0
  mov    -0x3c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  addsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L21
  call   <__stack_chk_fail@plt>
L21:
  leave
  ret
```

assistant: ```c
void update_cell_2D_BRANCH2(double *sc_old, double *sc_new, double *u_buff, int iX, int iY, int nX, int nY, double delta_t, double alpha, int scheme) {
  int tid;
  double sum_face_a = 0.;
  double sum_face_d = 0.;
  double u_face;
  double u_face_t = 0.;
  double sc_face;
  double sc_face_grad;
  tid = iY * nX + iX;
  if (scheme == 0) {
    get_uface_2d(iX, iY, nX, nY, 1, 0, 0, tid, &u_face, u_buff);
    get_face_2d_up(iX, iY, nX, nY, 1, 0, 1, tid, delta_t, u_face, u_face_t, &sc_face, sc_old);
    get_face_grad_2d(iX, iY, nX, nY, 1, 0, tid, &sc_face_grad, sc_old);
    sum_face_a += sc_face * u_face;
    sum_face_d += sc_face_grad;
    get_uface_2d(iX, iY, nX, nY, -1, 0, 0, tid, &u_face, u_buff);
    get_face_2d_up(iX, iY, nX, nY, -1, 0, -1, tid, delta_t, u_face, u_face_t, &sc_face, sc_old);
    get_face_grad_2d(iX, iY, nX, nY, -1, 0, tid, &sc_face_grad, sc_old);
    sum_face_a -= sc_face * u_face;
    sum_face_d += sc_face_grad;
    get_uface_2d(iX, iY, nX, nY, 0, 1, 1, tid, &u_face, u_buff);
    get_face_2d_up(iX, iY, nX, nY, 0, 1, 1, tid, delta_t, u_face, u_face_t, &sc_face, sc_old);
    get_face_grad_2d(iX, iY, nX, nY, 0, 1, tid, &sc_face_grad, sc_old);
    sum_face_a += sc_face * u_face;
    sum_face_d += sc_face_grad;
    get_uface_2d(iX, iY, nX, nY, 0, -1, 1, tid, &u_face, u_buff);
    get_face_2d_up(iX, iY, nX, nY, 0, -1, -1, tid, delta_t, u_face, u_face_t, &sc_face, sc_old);
    get_face_grad_2d(iX, iY, nX, nY, 0, -1, tid, &sc_face_grad, sc_old);
    sum_face_a -= sc_face * u_face;
    sum_face_d += sc_face_grad;
  } else if (scheme == 1) {
    get_uface_2d(iX, iY, nX, nY, 1, 0, 0, tid, &u_face, u_buff);
    get_face_2d_laxwend(iX, iY, nX, nY, 1, 0, 1, tid, delta_t, u_face, u_face_t, &sc_face, sc_old);
    get_face_grad_2d(iX, iY, nX, nY, 1, 0, tid, &sc_face_grad, sc_old);
    sum_face_a += sc_face * u_face;
    sum_face_d += sc_face_grad;
    get_uface_2d(iX, iY, nX, nY, -1, 0, 0, tid, &u_face, u_buff);
    get_face_2d_laxwend(iX, iY, nX, nY, -1, 0, -1, tid, delta_t, u_face, u_face_t, &sc_face, sc_old);
    get_face_grad_2d(iX, iY, nX, nY, -1, 0, tid, &sc_face_grad, sc_old);
    sum_face_a -= sc_face * u_face;
    sum_face_d += sc_face_grad;
    get_uface_2d(iX, iY, nX, nY, 0, 1, 1, tid, &u_face, u_buff);
    get_face_2d_laxwend(iX, iY, nX, nY, 0, 1, 1, tid, delta_t, u_face, u_face_t, &sc_face, sc_old);
    get_face_grad_2d(iX, iY, nX, nY, 0, 1, tid, &sc_face_grad, sc_old);
    sum_face_a += sc_face * u_face;
    sum_face_d += sc_face_grad;
    get_uface_2d(iX, iY, nX, nY, 0, -1, 1, tid, &u_face, u_buff);
    get_face_2d_laxwend(iX, iY, nX, nY, 0, -1, -1, tid, delta_t, u_face, u_face_t, &sc_face, sc_old);
    get_face_grad_2d(iX, iY, nX, nY, 0, -1, tid, &sc_face_grad, sc_old);
    sum_face_a -= sc_face * u_face;
    sum_face_d += sc_face_grad;
  } else if (scheme == 2) {
    get_uface_2d(iX, iY, nX, nY, 1, 0, 0, tid, &u_face, u_buff);
    get_face_2d_quickest_a(iX, iY, nX, nY, 1, 0, 1, tid, delta_t, u_face, u_face_t, &sc_face, sc_old);
    get_face_grad_2d(iX, iY, nX, nY, 1, 0, tid, &sc_face_grad, sc_old);
    sum_face_a += sc_face * u_face;
    sum_face_d += sc_face_grad;
    get_uface_2d(iX, iY, nX, nY, -1, 0, 0, tid, &u_face, u_buff);
    get_face_2d_quickest_a(iX, iY, nX, nY, -1, 0, -1, tid, delta_t, u_face, u_face_t, &sc_face, sc_old);
    get_face_grad_2d(iX, iY, nX, nY, -1, 0, tid, &sc_face_grad, sc_old);
    sum_face_a -= sc_face * u_face;
    sum_face_d += sc_face_grad;
    get_uface_2d(iX, iY, nX, nY, 0, 1, 1, tid, &u_face, u_buff);
    get_face_2d_quickest_a(iX, iY, nX, nY, 0, 1, 1, tid, delta_t, u_face, u_face_t, &sc_face, sc_old);
    get_face_grad_2d(iX, iY, nX, nY, 0, 1, tid, &sc_face_grad, sc_old);
    sum_face_a += sc_face * u_face;
    sum_face_d += sc_face_grad;
    get_uface_2d(iX, iY, nX, nY, 0, -1, 1, tid, &u_face, u_buff);
    get_face_2d_quickest_a(iX, iY, nX, nY, 0, -1, -1, tid, delta_t, u_face, u_face_t, &sc_face, sc_old);
    get_face_grad_2d(iX, iY, nX, nY, 0, -1, tid, &sc_face_grad, sc_old);
    sum_face_a -= sc_face * u_face;
    sum_face_d += sc_face_grad;
  } else if (scheme == 3) {
    get_uface_2d(iX, iY, nX, nY, 1, 0, 0, tid, &u_face, u_buff);
    get_face_2d_quickest_b(iX, iY, nX, nY, 1, 0, 1, tid, delta_t, u_face, u_face_t, &sc_face, sc_old);
    get_face_grad_2d(iX, iY, nX, nY, 1, 0, tid, &sc_face_grad, sc_old);
    sum_face_a += sc_face * u_face;
    sum_face_d += sc_face_grad;
    get_uface_2d(iX, iY, nX, nY, -1, 0, 0, tid, &u_face, u_buff);
    get_face_2d_quickest_b(iX, iY, nX, nY, -1, 0, -1, tid, delta_t, u_face, u_face_t, &sc_face, sc_old);
    get_face_grad_2d(iX, iY, nX, nY, -1, 0, tid, &sc_face_grad, sc_old);
    sum_face_a -= sc_face * u_face;
    sum_face_d += sc_face_grad;
    get_uface_2d(iX, iY, nX, nY, 0, 1, 1, tid, &u_face, u_buff);
    get_face_2d_quickest_b(iX, iY, nX, nY, 0, 1, 1, tid, delta_t, u_face, u_face_t, &sc_face, sc_old);
    get_face_grad_2d(iX, iY, nX, nY, 0, 1, tid, &sc_face_grad, sc_old);
    sum_face_a += sc_face * u_face;
    sum_face_d += sc_face_grad;
    get_uface_2d(iX, iY, nX, nY, 0, -1, 1, tid, &u_face, u_buff);
    get_face_2d_quickest_b(iX, iY, nX, nY, 0, -1, -1, tid, delta_t, u_face, u_face_t, &sc_face, sc_old);
    get_face_grad_2d(iX, iY, nX, nY, 0, -1, tid, &sc_face_grad, sc_old);
    sum_face_a -= sc_face * u_face;
    sum_face_d += sc_face_grad;
  } else if (scheme == 4) {
    get_uface_2d(iX, iY, nX, nY, 1, 0, 0, tid, &u_face, u_buff);
    get_uface_2d(iX, iY, nX, nY, 1, 0, 1, tid, &u_face_t, u_buff);
    get_face_2d_upmulti(iX, iY, nX, nY, 1, 0, 1, tid, delta_t, u_face, u_face_t, &sc_face, sc_old);
    get_face_grad_2d(iX, iY, nX, nY, 1, 0, tid, &sc_face_grad, sc_old);
    sum_face_a += sc_face * u_face;
    sum_face_d += sc_face_grad;
    get_uface_2d(iX, iY, nX, nY, -1, 0, 0, tid, &u_face, u_buff);
    get_uface_2d(iX, iY, nX, nY, -1, 0, 1, tid, &u_face_t, u_buff);
    get_face_2d_upmulti(iX, iY, nX, nY, -1, 0, -1, tid, delta_t, u_face, u_face_t, &sc_face, sc_old);
    get_face_grad_2d(iX, iY, nX, nY, -1, 0, tid, &sc_face_grad, sc_old);
    sum_face_a -= sc_face * u_face;
    sum_face_d += sc_face_grad;
    get_uface_2d(iX, iY, nX, nY, 0, 1, 1, tid, &u_face, u_buff);
    get_uface_2d(iX, iY, nX, nY, 0, 1, 0, tid, &u_face_t, u_buff);
    get_face_2d_upmulti(iX, iY, nX, nY, 0, 1, 1, tid, delta_t, u_face, u_face_t, &sc_face, sc_old);
    get_face_grad_2d(iX, iY, nX, nY, 0, 1, tid, &sc_face_grad, sc_old);
    sum_face_a += sc_face * u_face;
    sum_face_d += sc_face_grad;
    get_uface_2d(iX, iY, nX, nY, 0, -1, 1, tid, &u_face, u_buff);
    get_uface_2d(iX, iY, nX, nY, 0, -1, 0, tid, &u_face_t, u_buff);
    get_face_2d_upmulti(iX, iY, nX, nY, 0, -1, -1, tid, delta_t, u_face, u_face_t, &sc_face, sc_old);
    get_face_grad_2d(iX, iY, nX, nY, 0, -1, tid, &sc_face_grad, sc_old);
    sum_face_a -= sc_face * u_face;
    sum_face_d += sc_face_grad;
  } else if (scheme == 5) {
    get_uface_2d(iX, iY, nX, nY, 1, 0, 0, tid, &u_face, u_buff);
    get_uface_2d(iX, iY, nX, nY, 1, 0, 1, tid, &u_face_t, u_buff);
    get_face_2d_utopia_simp(iX, iY, nX, nY, 1, 0, 1, tid, delta_t, u_face, u_face_t, &sc_face, sc_old);
    get_face_grad_2d(iX, iY, nX, nY, 1, 0, tid, &sc_face_grad, sc_old);
    sum_face_a += sc_face * u_face;
    sum_face_d += sc_face_grad;
    get_uface_2d(iX, iY, nX, nY, -1, 0, 0, tid, &u_face, u_buff);
    get_uface_2d(iX, iY, nX, nY, -1, 0, 1, tid, &u_face_t, u_buff);
    get_face_2d_utopia_simp(iX, iY, nX, nY, -1, 0, -1, tid, delta_t, u_face, u_face_t, &sc_face, sc_old);
    get_face_grad_2d(iX, iY, nX, nY, -1, 0, tid, &sc_face_grad, sc_old);
    sum_face_a -= sc_face * u_face;
    sum_face_d += sc_face_grad;
    get_uface_2d(iX, iY, nX, nY, 0, 1, 1, tid, &u_face, u_buff);
    get_uface_2d(iX, iY, nX, nY, 0, 1, 0, tid, &u_face_t, u_buff);
    get_face_2d_utopia_simp(iX, iY, nX, nY, 0, 1, 1, tid, delta_t, u_face, u_face_t, &sc_face, sc_old);
    get_face_grad_2d(iX, iY, nX, nY, 0, 1, tid, &sc_face_grad, sc_old);
    sum_face_a += sc_face * u_face;
    sum_face_d += sc_face_grad;
    get_uface_2d(iX, iY, nX, nY, 0, -1, 1, tid, &u_face, u_buff);
    get_uface_2d(iX, iY, nX, nY, 0, -1, 0, tid, &u_face_t, u_buff);
    get_face_2d_utopia_simp(iX, iY, nX, nY, 0, -1, -1, tid, delta_t, u_face, u_face_t, &sc_face, sc_old);
    get_face_grad_2d(iX, iY, nX, nY, 0, -1, tid, &sc_face_grad, sc_old);
    sum_face_a -= sc_face * u_face;
    sum_face_d += sc_face_grad;
  } else if (scheme == 6) {
    get_uface_2d(iX, iY, nX, nY, 1, 0, 0, tid, &u_face, u_buff);
    get_uface_2d(iX, iY, nX, nY, 1, 0, 1, tid, &u_face_t, u_buff);
    get_face_2d_utopia(iX, iY, nX, nY, 1, 0, 1, tid, delta_t, u_face, u_face_t, &sc_face, sc_old);
    get_face_grad_2d(iX, iY, nX, nY, 1, 0, tid, &sc_face_grad, sc_old);
    sum_face_a += sc_face * u_face;
    sum_face_d += sc_face_grad;
    get_uface_2d(iX, iY, nX, nY, -1, 0, 0, tid, &u_face, u_buff);
    get_uface_2d(iX, iY, nX, nY, -1, 0, 1, tid, &u_face_t, u_buff);
    get_face_2d_utopia(iX, iY, nX, nY, -1, 0, -1, tid, delta_t, u_face, u_face_t, &sc_face, sc_old);
    get_face_grad_2d(iX, iY, nX, nY, -1, 0, tid, &sc_face_grad, sc_old);
    sum_face_a -= sc_face * u_face;
    sum_face_d += sc_face_grad;
    get_uface_2d(iX, iY, nX, nY, 0, 1, 1, tid, &u_face, u_buff);
    get_uface_2d(iX, iY, nX, nY, 0, 1, 0, tid, &u_face_t, u_buff);
    get_face_2d_utopia(iX, iY, nX, nY, 0, 1, 1, tid, delta_t, u_face, u_face_t, &sc_face, sc_old);
    get_face_grad_2d(iX, iY, nX, nY, 0, 1, tid, &sc_face_grad, sc_old);
    sum_face_a += sc_face * u_face;
    sum_face_d += sc_face_grad;
    get_uface_2d(iX, iY, nX, nY, 0, -1, 1, tid, &u_face, u_buff);
    get_uface_2d(iX, iY, nX, nY, 0, -1, 0, tid, &u_face_t, u_buff);
    get_face_2d_utopia(iX, iY, nX, nY, 0, -1, -1, tid, delta_t, u_face, u_face_t, &sc_face, sc_old);
    get_face_grad_2d(iX, iY, nX, nY, 0, -1, tid, &sc_face_grad, sc_old);
    sum_face_a -= sc_face * u_face;
    sum_face_d += sc_face_grad;
  } else
    sc_face = 0.;
  *(sc_new + tid) = *(sc_old + tid) + 1. * delta_t * (1. * alpha * sum_face_d - sum_face_a);
}
```