// File: /workspace/github_c_makefile_star2_O1/radforddc[P]icpc_siggen/icpc_fieldgen_opt.c
// Function: wp_calc
int wp_calc(MJD_Siggen_Setup *setup, MJD_Siggen_Setup *old_setup) {
  int    i, j, pinched_off = 0;
  float  grid = setup->xtal_grid;
  int    L  = lrint(setup->xtal_length/grid)+3;
  int    R  = lrint(setup->xtal_radius/grid)+3;

  if (!old_setup) {
    printf("\n\n ---- starting WP calculation --- \n");
    for (i = 1; i < L; i++) {
      for (j = 1; j < R; j++) {
        setup->v[0][i][j] = setup->v[1][i][j] = 0.01;
      }
    }
  }
  if (old_setup) interpolate(setup, old_setup);

  /* set boundary voltages */
  for (i = 1; i < L; i++) {
    for (j = 1; j < R; j++) {
      if (setup->point_type[i][j] == HVC)
        setup->v[0][i][j] = setup->v[1][i][j] = 0.0;
      else if (setup->point_type[i][j] == PC)
        setup->v[0][i][j] = setup->v[1][i][j] = 1.0;
      else if (setup->undepleted[j][i] == '*') {
        setup->point_type[i][j] = PC;
        setup->v[0][i][j] = setup->v[1][i][j] = 1.0;
      } else if (setup->undepleted[j][i] == 'B') {
        setup->point_type[i][j] = PINCHOFF;
        pinched_off = 1;
      }
    }
  }

  if (pinched_off) wp_relax_undep(setup);
  else do_relax(setup, 0);

  if (setup->write_WP) write_wp(setup);

  return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq %rsi, %r12
movq %rdi, %rbx
movss 0x4(%rdi), %xmm0
movss 0x54(%rdi), %xmm1
movss %xmm1, (%rsp)
divss %xmm1, %xmm0
cvtss2sd %xmm0, %xmm0
callq 0x1100
movq %rax, %r15
addl $0x3, %r15d
movss 0x8(%rbx), %xmm0
divss (%rsp), %xmm0
cvtss2sd %xmm0, %xmm0
callq 0x1100
movq %rax, %r14
addl $0x3, %r14d
testq %r12, %r12
je 0x3f73
movq %rbx, %rdi
movq %r12, %rsi
callq 0x5808
jmp 0x3fd4
leaq 0x6144(%rip), %rdi      # 0xa0be
callq 0x1070
cmpl $0x2, %r15d
jl 0x3fd4
movl %r15d, %eax
movl %r14d, %ecx
movl $0x1, %edx
movabsq $0x3f847ae147ae147b, %rsi # imm = 0x3F847AE147AE147B
cmpl $0x2, %r14d
jl 0x3fcc
movq 0x3e0(%rbx), %r8
movq 0x3e8(%rbx), %rdi
movq (%rdi,%rdx,8), %rdi
movq (%r8,%rdx,8), %r8
movl $0x1, %r9d
movq %rsi, (%rdi,%r9,8)
movq %rsi, (%r8,%r9,8)
incq %r9
cmpq %r9, %rcx
jne 0x3fbc
incq %rdx
cmpq %rax, %rdx
jne 0x3f9a
cmpl $0x2, %r15d
jl 0x490d
movl %r15d, %eax
movl %r14d, %ecx
decq %rcx
xorl %edx, %edx
movl $0x1, %esi
movabsq $0x3ff0000000000000, %rdi # imm = 0x3FF0000000000000
xorl %r8d, %r8d
cmpl $0x2, %r14d
jl 0x40a5
xorl %r9d, %r9d
movq 0x430(%rbx), %r10
movq (%r10,%rsi,8), %r10
movzbl 0x1(%r10,%r9), %r11d
testl %r11d, %r11d
je 0x4069
cmpl $0x1, %r11d
jne 0x4046
movq 0x3e8(%rbx), %r10
movq (%r10,%rsi,8), %r10
movq %rdx, 0x8(%r10,%r9,8)
movq 0x3e0(%rbx), %r10
movq (%r10,%rsi,8), %r10
movq %rdx, 0x8(%r10,%r9,8)
jmp 0x4089
movq 0x438(%rbx), %r11
movq 0x8(%r11,%r9,8), %r11
movzbl (%r11,%rsi), %r11d
cmpl $0x42, %r11d
je 0x4097
cmpl $0x2a, %r11d
jne 0x4089
movb $0x0, 0x1(%r10,%r9)
movq 0x3e8(%rbx), %r10
movq (%r10,%rsi,8), %r10
movq %rdi, 0x8(%r10,%r9,8)
movq 0x3e0(%rbx), %r10
movq (%r10,%rsi,8), %r10
movq %rdi, 0x8(%r10,%r9,8)
incq %r9
cmpq %r9, %rcx
jne 0x4008
jmp 0x40a5
movb $0x4, 0x1(%r10,%r9)
movl $0x1, %r8d
jmp 0x4089
incq %rsi
cmpq %rax, %rsi
jne 0x3ffb
testl %r8d, %r8d
je 0x490d
movss 0x4(%rbx), %xmm0
movss 0x54(%rbx), %xmm1
movss %xmm1, 0x10(%rsp)
divss %xmm1, %xmm0
cvtss2sd %xmm0, %xmm0
callq 0x1100
movq %rax, %r14
movss 0x8(%rbx), %xmm0
divss 0x10(%rsp), %xmm0
cvtss2sd %xmm0, %xmm0
callq 0x1100
cmpl $0x0, 0x78(%rbx)
jle 0x4919
movq %rax, %r9
movq 0x3f8(%rbx), %rax
movq %rax, 0x18(%rsp)
movq 0x400(%rbx), %rax
movq %rax, 0x8(%rsp)
movq 0x418(%rbx), %rbp
movq 0x420(%rbx), %rax
movq %rax, (%rsp)
leal 0x2(%r9), %r15d
leal 0x2(%r14), %ecx
movl %r15d, %eax
imull %ecx, %eax
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
movsd 0x4f66(%rip), %xmm1     # 0x90a8
divsd %xmm0, %xmm1
movsd 0x4f62(%rip), %xmm0     # 0x90b0
subsd %xmm1, %xmm0
movsd 0x4ede(%rip), %xmm2     # 0x9038
movapd %xmm2, %xmm3
cmpltsd %xmm1, %xmm3
movapd %xmm3, %xmm1
andnpd %xmm0, %xmm1
andpd %xmm2, %xmm3
orpd %xmm1, %xmm3
movapd %xmm3, 0xb0(%rsp)
cvtss2sd 0x10(%rsp), %xmm4
xorps %xmm0, %xmm0
cvtsi2sd %r14d, %xmm0
movsd %xmm0, 0xa0(%rsp)
xorps %xmm0, %xmm0
cvtsi2sd %r9d, %xmm0
movsd %xmm0, 0x98(%rsp)
movl %ecx, %eax
shrl $0x1f, %eax
addl %r14d, %eax
addl $0x2, %eax
sarl %eax
cltq
movq %rax, 0x90(%rsp)
movl %r15d, %eax
shrl $0x1f, %eax
addl %r9d, %eax
addl $0x2, %eax
sarl %eax
cltq
movq %rax, 0x88(%rsp)
movq %rcx, 0x58(%rsp)
movslq %ecx, %rax
imulq $0x55555556, %rax, %rax # imm = 0x55555556
movq %rax, %rcx
shrq $0x3f, %rcx
shrq $0x20, %rax
addl %ecx, %eax
cltq
movq %rax, 0x80(%rsp)
movslq %r15d, %rax
imulq $0x55555556, %rax, %rax # imm = 0x55555556
movq %rax, %rcx
shrq $0x3f, %rcx
shrq $0x20, %rax
addl %ecx, %eax
cltq
movq %rax, 0x78(%rsp)
xorl %edi, %edi
xorps %xmm13, %xmm13
movsd 0x4e9b(%rip), %xmm5     # 0x90c0
movsd 0x4e6b(%rip), %xmm6     # 0x9098
movsd 0x4e92(%rip), %xmm14    # 0x90c8
movsd 0x4e91(%rip), %xmm15    # 0x90d0
movapd 0x4ef8(%rip), %xmm11    # 0x9140
xorl %esi, %esi
movq %r9, 0x50(%rsp)
movq %rbp, 0x10(%rsp)
movsd %xmm4, 0xa8(%rsp)
movq %r14, 0x48(%rsp)
movl %esi, %eax
movl $0xaaaaaaab, %ecx       # imm = 0xAAAAAAAB
imulq %rcx, %rax
shrq $0x22, %rax
incl %eax
xorps %xmm1, %xmm1
cvtsi2sd %eax, %xmm1
movsd 0x4e36(%rip), %xmm0     # 0x90b8
divsd %xmm1, %xmm0
addsd 0x4dca(%rip), %xmm0     # 0x9058
xorpd %xmm2, %xmm2
cmpl $0x2, %esi
jb 0x42a4
mulsd 0xb0(%rsp), %xmm0
movapd %xmm0, %xmm2
movl %esi, 0x28(%rsp)
movss 0x50(%rbx), %xmm0
movss %xmm0, 0x60(%rsp)
ucomiss %xmm13, %xmm0
jbe 0x430b
cmpl $0x7ffffffd, %r9d       # imm = 0x7FFFFFFD
ja 0x430b
movl %edi, %eax
movq 0x3e0(%rbx,%rax,8), %rax
movq 0x8(%rax), %rax
xorps %xmm0, %xmm0
cvtss2sd 0x60(%rsp), %xmm0
movq 0x408(%rbx), %rcx
movq 0x8(%rcx), %rcx
movl $0x1, %edx
movsd (%rax,%rdx,8), %xmm1
mulsd %xmm5, %xmm1
mulsd %xmm6, %xmm1
mulsd %xmm4, %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, (%rcx,%rdx,8)
incq %rdx
cmpq %rdx, %r15
jne 0x42e9
movl $0x1, %eax
movl %edi, 0x24(%rsp)
subl %edi, %eax
xorpd %xmm4, %xmm4
movl %eax, 0x34(%rsp)
movl %eax, %eax
xorps %xmm12, %xmm12
xorpd %xmm1, %xmm1
xorps %xmm0, %xmm0
cmpl $0x7ffffffd, %r14d      # imm = 0x7FFFFFFD
ja 0x470e
movl 0x24(%rsp), %ecx
movq 0x3e0(%rbx,%rcx,8), %rdx
movq %rdx, 0x38(%rsp)
movl $0x1, %edi
movq 0x38(%rsp), %rdx
movq (%rdx,%rdi,8), %rdx
movsd 0x10(%rdx), %xmm5
movsd %xmm5, (%rdx)
cmpl $0x7ffffffd, %r9d       # imm = 0x7FFFFFFD
ja 0x46fb
movss 0x60(%rsp), %xmm3
ucomiss %xmm13, %xmm3
seta %dl
movq 0x430(%rbx), %r8
movq (%r8,%rdi,8), %r9
cmpq $0x1, %rdi
sete %r10b
andb %dl, %r10b
movl $0x1, %r11d
movzbl (%r9,%r11), %edx
cmpb $0x2, %dl
jl 0x46ef
movq 0x3e0(%rbx,%rcx,8), %r12
movq (%r12,%rdi,8), %rsi
cmpb $0x3, %dl
jg 0x440c
movq 0x8(%r12,%rdi,8), %r14
movsd (%rbp,%r11,8), %xmm5
movsd 0x8(%rsi,%r11,8), %xmm8
mulsd %xmm5, %xmm8
addsd (%r14,%r11,8), %xmm8
movq -0x8(%r12,%rdi,8), %r14
addsd (%r14,%r11,8), %xmm8
movq (%rsp), %r14
movsd (%r14,%r11,8), %xmm7
movsd -0x8(%rsi,%r11,8), %xmm6
mulsd %xmm7, %xmm6
addsd %xmm8, %xmm6
cmpq $0x1, %r11
jbe 0x4508
movapd %xmm14, %xmm5
jmp 0x467c
cmpl $0x7, %edx
je 0x4512
cmpl $0x4, %edx
jne 0x45b9
movq 0x8(%r8,%rdi,8), %r14
cmpb $0x3, (%r14,%r11)
jg 0x4452
movq 0x8(%r12,%rdi,8), %r14
movq 0x8(%rsp), %r13
movq (%r13,%rdi,8), %r13
movsd (%r13,%r11,8), %xmm5
movsd (%r14,%r11,8), %xmm6
mulsd %xmm5, %xmm6
addsd %xmm6, %xmm0
addsd %xmm5, %xmm4
cmpb $0x3, 0x1(%r9,%r11)
jg 0x448b
movq 0x18(%rsp), %r14
movq (%r14,%rdi,8), %r14
movsd (%r14,%r11,8), %xmm5
movsd 0x8(%rsi,%r11,8), %xmm6
mulsd %xmm5, %xmm6
movsd (%rbp,%r11,8), %xmm7
mulsd %xmm7, %xmm6
addsd %xmm6, %xmm0
mulsd %xmm7, %xmm5
addsd %xmm5, %xmm4
movq -0x8(%r8,%rdi,8), %r14
cmpb $0x3, (%r14,%r11)
jg 0x44be
movq -0x8(%r12,%rdi,8), %r14
movq 0x8(%rsp), %r12
movq -0x8(%r12,%rdi,8), %r12
movsd (%r12,%r11,8), %xmm5
movsd (%r14,%r11,8), %xmm6
mulsd %xmm5, %xmm6
addsd %xmm6, %xmm0
addsd %xmm5, %xmm4
cmpb $0x3, -0x1(%r9,%r11)
jg 0x44fb
movq 0x18(%rsp), %r14
movq (%r14,%rdi,8), %r14
movsd -0x8(%r14,%r11,8), %xmm5
movsd -0x8(%rsi,%r11,8), %xmm6
mulsd %xmm5, %xmm6
movq (%rsp), %r14
movsd (%r14,%r11,8), %xmm7
mulsd %xmm7, %xmm6
addsd %xmm6, %xmm0
mulsd %xmm7, %xmm5
addsd %xmm5, %xmm4
movapd %xmm0, %xmm6
movapd %xmm4, %xmm5
jmp 0x467c
addsd %xmm15, %xmm5
jmp 0x4678
movq -0x8(%r12,%rdi,8), %r14
movq 0x8(%r12,%rdi,8), %r12
movq 0x1468(%rbx), %r13
movq (%r13,%rdi,8), %r13
movsd (%r13,%r11,8), %xmm5
movq 0x1450(%rbx), %r13
movq 0x1458(%rbx), %rbp
movq (%rbp,%rdi,8), %rbp
movsd (%rbp,%r11,8), %xmm7
movq 0x10(%rsp), %rbp
movsd 0x8(%rsi,%r11,8), %xmm6
mulsd %xmm7, %xmm6
movsd (%r12,%r11,8), %xmm8
mulsd %xmm5, %xmm8
addsd %xmm6, %xmm8
movq 0x1460(%rbx), %r12
movq (%r12,%rdi,8), %r12
movsd (%r12,%r11,8), %xmm9
movsd (%r14,%r11,8), %xmm10
mulsd %xmm9, %xmm10
addsd %xmm8, %xmm10
movq (%r13,%rdi,8), %r14
movsd (%r14,%r11,8), %xmm8
movsd -0x8(%rsi,%r11,8), %xmm6
mulsd %xmm8, %xmm6
addsd %xmm10, %xmm6
addsd %xmm7, %xmm5
addsd %xmm9, %xmm5
addsd %xmm8, %xmm5
jmp 0x467c
movq -0x8(%r12,%rdi,8), %r14
movq 0x8(%r12,%rdi,8), %r12
movq 0x8(%rsp), %rbp
movq -0x8(%rbp,%rdi,8), %r13
movq (%rbp,%rdi,8), %rbp
movsd (%rbp,%r11,8), %xmm8
movq 0x18(%rsp), %rbp
movq (%rbp,%rdi,8), %rbp
movsd -0x8(%rbp,%r11,8), %xmm5
movsd (%rbp,%r11,8), %xmm7
movq 0x10(%rsp), %rbp
movsd 0x8(%rsi,%r11,8), %xmm6
mulsd %xmm7, %xmm6
movsd (%rbp,%r11,8), %xmm9
mulsd %xmm9, %xmm6
movsd (%r12,%r11,8), %xmm10
mulsd %xmm8, %xmm10
addsd %xmm6, %xmm10
movsd (%r13,%r11,8), %xmm11
movaps %xmm12, %xmm3
movsd (%r14,%r11,8), %xmm12
mulsd %xmm11, %xmm12
addsd %xmm10, %xmm12
movsd -0x8(%rsi,%r11,8), %xmm6
mulsd %xmm5, %xmm6
movq (%rsp), %r14
movsd (%r14,%r11,8), %xmm10
mulsd %xmm10, %xmm6
addsd %xmm12, %xmm6
movaps %xmm3, %xmm12
mulsd %xmm9, %xmm7
addsd %xmm8, %xmm7
addsd %xmm11, %xmm7
movapd 0x4acd(%rip), %xmm11    # 0x9140
mulsd %xmm10, %xmm5
addsd %xmm7, %xmm5
cmpl $0x4, %edx
je 0x46ef
divsd %xmm5, %xmm6
testb %r10b, %r10b
je 0x469b
movq 0x408(%rbx), %rdx
movq (%rdx,%rdi,8), %rdx
addsd (%rdx,%r11,8), %xmm6
movsd (%rsi,%r11,8), %xmm5
movq 0x3e0(%rbx,%rax,8), %rdx
movq (%rdx,%rdi,8), %rdx
subsd (%rdx,%r11,8), %xmm5
mulsd %xmm2, %xmm5
movsd %xmm6, (%rdx,%r11,8)
movsd (%rsi,%r11,8), %xmm7
subsd %xmm6, %xmm7
movapd %xmm7, %xmm8
xorpd %xmm11, %xmm8
maxsd %xmm7, %xmm8
addsd %xmm8, %xmm12
maxsd %xmm1, %xmm8
addsd %xmm6, %xmm5
movsd %xmm5, (%rdx,%r11,8)
movapd %xmm8, %xmm1
incq %r11
cmpq %r11, %r15
jne 0x4396
incq %rdi
cmpq 0x58(%rsp), %rdi
movq 0x50(%rsp), %r9
jne 0x434e
ucomisd 0x4912(%rip), %xmm4     # 0x9028
jbe 0x47d4
cmpl $0x7ffffffd, 0x48(%rsp) # imm = 0x7FFFFFFD
movl 0x28(%rsp), %esi
movl 0x24(%rsp), %r11d
movl 0x34(%rsp), %r14d
ja 0x47ce
divsd %xmm4, %xmm0
movl %r11d, %ecx
movl $0x1, %edx
cmpl $0x7ffffffd, %r9d       # imm = 0x7FFFFFFD
ja 0x47b6
movq 0x430(%rbx), %rdi
movq (%rdi,%rdx,8), %r10
movl $0x1, %edi
cmpb $0x4, (%r10,%rdi)
jne 0x47a4
movq 0x3e0(%rbx,%rax,8), %r8
movq (%r8,%rdx,8), %r8
movsd %xmm0, (%r8,%rdi,8)
movq 0x3e0(%rbx,%rcx,8), %r8
movq (%r8,%rdx,8), %r8
movsd (%r8,%rdi,8), %xmm2
subsd %xmm0, %xmm2
movapd %xmm2, %xmm4
xorpd %xmm11, %xmm4
maxsd %xmm2, %xmm4
addsd %xmm4, %xmm12
ucomisd %xmm1, %xmm4
ja 0x47a8
movapd %xmm1, %xmm4
incq %rdi
movapd %xmm4, %xmm1
cmpq %rdi, %r15
jne 0x475d
jmp 0x47ba
movapd %xmm1, %xmm4
incq %rdx
movapd %xmm4, %xmm1
cmpq 0x58(%rsp), %rdx
jne 0x4744
jmp 0x47e6
movapd %xmm1, %xmm4
jmp 0x47e6
movapd %xmm1, %xmm4
movl 0x28(%rsp), %esi
movl 0x24(%rsp), %r11d
movl 0x34(%rsp), %r14d
cmpl $0xa, %esi
jae 0x4883
movapd %xmm12, %xmm1
divsd 0xa0(%rsp), %xmm1
divsd 0x98(%rsp), %xmm1
movq 0x3e0(%rbx,%rax,8), %rax
movq 0x90(%rsp), %rcx
movq (%rax,%rcx,8), %rcx
movq 0x88(%rsp), %rdx
movsd (%rcx,%rdx,8), %xmm2
movq 0x80(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq 0x78(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm3
leaq 0x549b(%rip), %rdi      # 0x9cdf
movl %r11d, %edx
movl %r14d, %ecx
movapd %xmm4, %xmm0
movb $0x4, %al
movsd %xmm12, 0x38(%rsp)
movapd %xmm4, 0x60(%rsp)
callq 0x10f0
movapd 0x60(%rsp), %xmm4
movsd 0x38(%rsp), %xmm12
movapd 0x48c8(%rip), %xmm11    # 0x9140
movl 0x28(%rsp), %esi
movq 0x50(%rsp), %r9
jmp 0x48bb
cmpl $0x258, %esi            # imm = 0x258
setb %cl
imull $0xc28f5c29, %esi, %edx # imm = 0xC28F5C29
rorl $0x2, %edx
cmpl $0x28f5c29, %edx        # imm = 0x28F5C29
setb %dl
imull $0x26e978d5, %esi, %edi # imm = 0x26E978D5
rorl $0x3, %edi
cmpl $0x418938, %edi         # imm = 0x418938
jb 0x47ef
andb %dl, %cl
jne 0x47ef
movsd 0x4815(%rip), %xmm0     # 0x90d8
ucomisd %xmm4, %xmm0
ja 0x491f
incl %esi
movl %r14d, %edi
cmpl 0x78(%rbx), %esi
movq 0x48(%rsp), %r14
movsd 0xa8(%rsp), %xmm4
xorps %xmm13, %xmm13
movsd 0x47d5(%rip), %xmm5     # 0x90c0
movsd 0x47a5(%rip), %xmm6     # 0x9098
movsd 0x47cc(%rip), %xmm14    # 0x90c8
movsd 0x47cb(%rip), %xmm15    # 0x90d0
jl 0x4262
jmp 0x491f
movq %rbx, %rdi
xorl %esi, %esi
callq 0x6462
jmp 0x4931
xorps %xmm12, %xmm12
xorl %esi, %esi
leaq 0x53ab(%rip), %rdi      # 0x9cd1
movaps %xmm12, %xmm0
movb $0x1, %al
callq 0x10f0
cmpl $0x0, 0x80(%rbx)
je 0x4c55
movss 0x4(%rbx), %xmm0
movss 0x54(%rbx), %xmm1
movss %xmm1, (%rsp)
divss %xmm1, %xmm0
cvtss2sd %xmm0, %xmm0
callq 0x1100
movq %rax, 0x8(%rsp)
movss 0x8(%rbx), %xmm0
divss (%rsp), %xmm0
cvtss2sd %xmm0, %xmm0
callq 0x1100
movq %rax, %r12
leaq 0x288(%rbx), %r13
leaq 0x4d11(%rip), %rsi      # 0x9694
movq %r13, %rdi
callq 0x11b0
testq %rax, %rax
je 0x49f0
movq %rax, %r14
leaq 0x53a1(%rip), %rdi      # 0x9d3b
movq %r13, %rsi
xorl %eax, %eax
callq 0x10f0
leaq 0x1480(%rbx), %rsi
movq %r14, %rdi
callq 0x6e0c
xorps %xmm0, %xmm0
cvtss2sd 0x74(%rbx), %xmm0
leaq 0x53a2(%rip), %rsi      # 0x9d64
movq %r14, %rdi
movb $0x1, %al
callq 0x1150
cmpl $0x0, 0x440(%rbx)
je 0x4a06
leaq 0x53a9(%rip), %rdi      # 0x9d85
movl $0x1e, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x11d0
jmp 0x4a44
leaq 0x530d(%rip), %rdi      # 0x9d04
movq %r13, %rsi
xorl %eax, %eax
callq 0x10f0
jmp 0x4c55
leaq 0x5397(%rip), %rdi      # 0x9da4
movl $0x22, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x11d0
movss 0x444(%rbx), %xmm0
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
jbe 0x4a44
cvtss2sd %xmm0, %xmm0
leaq 0x538d(%rip), %rsi      # 0x9dc7
movq %r14, %rdi
movb $0x1, %al
callq 0x1150
movq 0x8(%rsp), %r13
leal 0x2(%r13), %ebp
leal 0x2(%r12), %r15d
leaq 0x188(%rbx), %rdi
leaq 0x538f(%rip), %rsi      # 0x9def
callq 0x11f0
testq %rax, %rax
je 0x4b52
movl %ebp, 0x18(%rsp)
leaq 0x537a(%rip), %rdi      # 0x9df3
movl $0x1, %ebp
movl $0x1f, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x11d0
leal 0x1(%r12), %eax
leaq 0x30(%rsp), %rdi
movl %eax, (%rdi)
leal 0x1(%r13), %eax
leaq 0x2c(%rsp), %r13
movl %eax, (%r13)
movl $0x4, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x11d0
movl $0x4, %esi
movl $0x1, %edx
movq %r13, %rdi
movq %r14, %rcx
callq 0x11d0
cmpl $0x7ffffffd, %r12d      # imm = 0x7FFFFFFD
ja 0x4c25
movl %r15d, %ecx
movl 0x18(%rsp), %r13d
leaq 0x44(%rsp), %r12
movq 0x8(%rsp), %rax
movq %rcx, (%rsp)
movl $0x1, %r15d
cmpl $0x7ffffffd, %eax       # imm = 0x7FFFFFFD
ja 0x4b45
movl $0x1, %r15d
movq 0x3e8(%rbx), %rax
movq (%rax,%r15,8), %rax
xorps %xmm0, %xmm0
cvtsd2ss (%rax,%rbp,8), %xmm0
movss %xmm0, 0x44(%rsp)
movl $0x4, %esi
movl $0x1, %edx
movq %r12, %rdi
movq %r14, %rcx
callq 0x11d0
incq %r15
cmpq %r15, %r13
jne 0x4b06
movq 0x8(%rsp), %rax
movq (%rsp), %rcx
incq %rbp
cmpq %rcx, %rbp
jne 0x4af3
jmp 0x4c2f
leaq 0x52ba(%rip), %rdi      # 0x9e13
movl $0x1, %r13d
movl $0x18, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x11d0
cmpl $0x7ffffffd, %r12d      # imm = 0x7FFFFFFD
ja 0x4c3a
movl %r15d, %eax
movq %rax, 0x10(%rsp)
movl %ebp, %r15d
decq %r15
leaq 0x5299(%rip), %r12      # 0x9e2c
movl $0x1, %ebp
cmpl $0x7ffffffd, 0x8(%rsp)  # imm = 0x7FFFFFFD
ja 0x4c08
leal -0x1(%r13), %eax
xorps %xmm0, %xmm0
cvtsi2ss %eax, %xmm0
movss (%rsp), %xmm1
mulss %xmm1, %xmm0
cvtss2sd %xmm0, %xmm0
movsd %xmm0, 0x18(%rsp)
xorl %ebp, %ebp
xorps %xmm0, %xmm0
cvtsi2ss %ebp, %xmm0
mulss %xmm1, %xmm0
xorps %xmm1, %xmm1
cvtss2sd %xmm0, %xmm1
movq 0x3e8(%rbx), %rax
movq 0x8(%rax,%rbp,8), %rax
movsd (%rax,%r13,8), %xmm2
movq %r14, %rdi
movq %r12, %rsi
movsd 0x18(%rsp), %xmm0
movb $0x3, %al
callq 0x1150
movss (%rsp), %xmm1
incq %rbp
cmpq %rbp, %r15
jne 0x4bc2
incl %ebp
movl $0xa, %edi
movq %r14, %rsi
callq 0x1120
incq %r13
cmpq 0x10(%rsp), %r13
jne 0x4b93
jmp 0x4c44
movl 0x2c(%rsp), %r15d
movl $0x1, %ebp
movl %ebp, 0x30(%rsp)
movl %r15d, 0x2c(%rsp)
jmp 0x4c4d
movl 0x30(%rsp), %ebp
movl $0x1, %r13d
movl %r13d, 0x2c(%rsp)
movl %ebp, 0x30(%rsp)
movq %r14, %rdi
callq 0x10c0
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq