// File: /workspace/github_cpp_makefile_star2_O1/wrighteagle2d[P]wrighteaglebase/Debug/../src/Logger.cpp
// Function: SightLogger::Flush()
void SightLogger::Flush() {
  static const double prec = 0.0001;

  if (mHeaderReady && PlayerParam::instance().SaveSightLog()) {
    if (!mHeaderLogged) {
      mHeaderLogged = true;
      os << mHeader << mServerParamMsg << mPlayerParamMsg << mPlayerTypeMsg;

      for (int i = 0; i < mTime.S(); ++i) {
        os << "(show " << 0 << " ((b)" << ' '
           << Quantize(mpBall->GetPos().X(), prec) << ' '
           << Quantize(mpBall->GetPos().Y(), prec) << ' '
           << Quantize(mpBall->GetVel().X(), prec) << ' '
           << Quantize(mpBall->GetVel().Y(), prec) << ')';

        for (char side = 'l'; side <= 'r'; side += 'r' - 'l') {
          for (Unum i = 1; i <= TEAMSIZE; ++i) {
            os << " ((" << side << ' ' << i << ')' << ' ' << 0 << ' ' << "0x0"
               << ' ' << i * 4.0 * (side == 'l' ? -1 : 1) << ' ' << -37.0 << ' '
               << 0 << ' ' << 0 << ' ' << 0 << ' ' << 0 << " (v h " << 60 << ')'
               << " (s " << 0 << ' ' << 0 << ' ' << '1' << ')'
               << " (c 0 0 0 0 0 0 0 0 0 0 0))";
            // end of player
          }
        }
        os << ")\n";
      }
    }

    mSightMutex.Lock();

    if (mServerPlayMode_dirty) {
      mServerPlayMode_dirty = false;
      os << "(playmode " << mTime.T() << ' '
         << ServerPlayModeMap::instance().GetPlayModeString(mServerPlayMode)
         << ")\n";
    }

    if (mTeamState_dirty) {
      mTeamState_dirty = false;
      os << "(team " << mTime.T() << ' '
         << (mLeftName.empty() ? "null" : mLeftName.c_str()) << ' '
         << (mRightName.empty() ? "null" : mRightName.c_str()) << ' '
         << mLeftScore << ' ' << mRightScore << ")\n";
    }

    os << "(show " << mTime.T() << " ((b)" << ' '
       << Quantize(mpBall->GetPos().X(), prec) << ' '
       << Quantize(mpBall->GetPos().Y(), prec) << ' '
       << Quantize(mpBall->GetVel().X(), prec) << ' '
       << Quantize(mpBall->GetVel().Y(), prec) << ')';

    LogBallInfo(*mpBall);

    const PlayerState *p;
    for (char side = 'l'; side <= 'r'; side += 'r' - 'l') {
      for (Unum i = 1; i <= TEAMSIZE; ++i) {
        p = (side == 'l') ? mpLeftTeam[i] : mpRightTeam[i];

        if (p->IsAlive()) {
          LogPlayerInfo(*p);
        }

        os << " ((" << side << ' ' << i << ')' << ' ' << p->GetPlayerType()
           << ' ' << (p->IsAlive() ? (p->IsGoalie() ? "0x9" : "0x1") : "0x0")
           << ' '
           << (p->IsAlive() ? Quantize(p->GetPos().X(), prec)
                            : i * 4.0 * (side == 'l' ? -1 : 1))
           << ' ' << (p->IsAlive() ? Quantize(p->GetPos().Y(), prec) : -37.0)
           << ' ' << Quantize(p->GetVel().X(), prec) << ' '
           << Quantize(p->GetVel().Y(), prec) << ' '
           << Quantize(p->GetBodyDir(), prec) << ' '
           << Quantize(p->GetNeckDir(), prec) << " (v h "
           << sight::ViewAngle(p->GetViewWidth()) << ')' << " (s "
           << p->GetStamina() << ' ' << p->GetEffort() << ' ' << '1' << ')'
           << " (c 0 0 0 0 0 0 0 0 0 0 0))";
        // end of player
      }
    }

    mSightMutex.UnLock();

    os << ")\n";
    os.flush();
  }

  if (PlayerParam::instance().SaveDecLog()) {
    mDecMutex.Lock();
    int time = mTime.S() << 16 | mTime.T();
    if (!points.empty()) {
      for (std::vector<PointShape>::iterator it = points.begin();
           it != points.end(); it++) {
        os << "(draw " << time << ' ' << *it << ")\n";
      }
      points.clear();
    }
    if (!lines.empty()) {
      for (std::vector<LineShape>::iterator it = lines.begin();
           it != lines.end(); it++) {
        os << "(draw " << time << ' ' << *it << ")\n";
      }
      lines.clear();
    }
    if (!circles.empty()) {
      for (std::vector<CircleShape>::iterator it = circles.begin();
           it != circles.end(); it++) {
        os << "(draw " << time << ' ' << *it << ")\n";
      }
      circles.clear();
    }
    mDecMutex.UnLock();
    os.flush();
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdi, %r14
cmpb $0x1, 0x2e4(%rdi)
jne 0x34fd8
callq 0x450ba
cmpb $0x1, 0x5c43(%rax)
jne 0x34fd8
cmpb $0x0, 0x2e5(%r14)
movq %r14, %rbx
movq %r14, -0x38(%rbp)
jne 0x347f4
movb $0x1, 0x2e5(%rbx)
movq 0x260(%rbx), %rsi
movq 0x268(%rbx), %rdx
movq %rbx, %rdi
callq 0x9560
movq 0x280(%rbx), %rsi
movq 0x288(%rbx), %rdx
movq %rax, %rdi
callq 0x9560
movq 0x2a0(%rbx), %rsi
movq 0x2a8(%rbx), %rdx
movq %rax, %rdi
callq 0x9560
movq 0x2c0(%rbx), %rsi
movq 0x2c8(%rbx), %rdx
movq %rax, %rdi
callq 0x9560
cmpl $0x0, 0x2f4(%rbx)
jle 0x347f4
xorl %eax, %eax
leaq -0x29(%rbp), %r12
movl %eax, -0x58(%rbp)
movl $0x6, %edx
movq %rbx, %rdi
leaq 0x385e1(%rip), %rsi     # 0x6c9ed
callq 0x9560
movq %rbx, %rdi
xorl %esi, %esi
callq 0x9880
movq %rax, %r15
movl $0x5, %edx
movq %rax, %rdi
leaq 0x385c7(%rip), %rsi     # 0x6c9f4
callq 0x9560
movb $0x20, %r14b
movb %r14b, -0x29(%rbp)
movl $0x1, %edx
movq %r15, %rdi
movq %r12, %rsi
callq 0x9560
movq %rax, %r15
movq 0x350(%rbx), %rax
movsd 0x8(%rax), %xmm0
movsd 0x38538(%rip), %xmm1    # 0x6c998
divsd %xmm1, %xmm0
callq 0x96b0
mulsd 0x38527(%rip), %xmm0    # 0x6c998
movq %r15, %rdi
callq 0x97d0
movb %r14b, -0x29(%rbp)
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x9560
movq %rax, %r15
movq 0x350(%rbx), %rax
movsd 0x10(%rax), %xmm0
divsd 0x384f4(%rip), %xmm0    # 0x6c998
callq 0x96b0
mulsd 0x384e7(%rip), %xmm0    # 0x6c998
movq %r15, %rdi
callq 0x97d0
movb %r14b, -0x29(%rbp)
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x9560
movq %rax, %r15
movq 0x350(%rbx), %rax
movsd 0x30(%rax), %xmm0
divsd 0x384b4(%rip), %xmm0    # 0x6c998
callq 0x96b0
mulsd 0x384a7(%rip), %xmm0    # 0x6c998
movq %r15, %rdi
callq 0x97d0
movb %r14b, -0x29(%rbp)
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x9560
movq %rax, %r15
movq 0x350(%rbx), %rax
movsd 0x38(%rax), %xmm0
divsd 0x38474(%rip), %xmm0    # 0x6c998
callq 0x96b0
mulsd 0x38467(%rip), %xmm0    # 0x6c998
movq %r15, %rdi
callq 0x97d0
movb $0x29, -0x29(%rbp)
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x9560
movb $0x6c, %al
movq %rax, -0x50(%rbp)
movl $0x1, %ebx
movl $0x4, %r14d
movl $0x3, %edx
movq -0x38(%rbp), %r13
movq %r13, %rdi
leaq 0x38489(%rip), %rsi     # 0x6c9fa
callq 0x9560
movq -0x50(%rbp), %r15
movb %r15b, -0x29(%rbp)
movl $0x1, %edx
movq %r13, %rdi
movq %r12, %rsi
callq 0x9560
movb $0x20, %cl
movb %cl, -0x29(%rbp)
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x9560
movq %rax, %rdi
movl %ebx, -0x48(%rbp)
movl %ebx, %esi
callq 0x9880
movb $0x29, %cl
movb %cl, -0x29(%rbp)
movb $0x20, %bl
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x9560
movb %bl, -0x29(%rbp)
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x9560
movq %rax, %rdi
xorl %esi, %esi
callq 0x9880
movb %bl, -0x29(%rbp)
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x9560
movq %rax, %r13
movl $0x3, %edx
movq %rax, %rdi
leaq 0x383f5(%rip), %rsi     # 0x6c9fe
callq 0x9560
movb %bl, -0x29(%rbp)
movl $0x1, %edx
movq %r13, %rdi
movq %r12, %rsi
callq 0x9560
movl %r14d, -0x40(%rbp)
cvtsi2sd %r14d, %xmm0
cmpb $0x6c, %r15b
jne 0x34638
xorpd 0x369e8(%rip), %xmm0    # 0x6b020
movq %rax, %rdi
callq 0x97d0
movb %bl, -0x29(%rbp)
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x9560
movq %rax, %rdi
movsd 0x38342(%rip), %xmm0    # 0x6c9a0
callq 0x97d0
movb %bl, -0x29(%rbp)
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x9560
movq %rax, %rdi
xorl %esi, %esi
callq 0x9880
movb %bl, -0x29(%rbp)
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x9560
movq %rax, %rdi
xorl %esi, %esi
callq 0x9880
movb %bl, -0x29(%rbp)
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x9560
movq %rax, %rdi
xorl %esi, %esi
callq 0x9880
movb %bl, -0x29(%rbp)
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x9560
movq %rax, %rdi
xorl %esi, %esi
callq 0x9880
movq %rax, %r13
movl $0x6, %edx
movq %rax, %rdi
leaq 0x38319(%rip), %rsi     # 0x6ca02
callq 0x9560
movq %r13, %rdi
movl $0x3c, %esi
callq 0x9880
movb $0x29, %cl
movb %cl, -0x29(%rbp)
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x9560
movq %rax, %r13
movl $0x4, %edx
movq %rax, %rdi
leaq 0x382e7(%rip), %rsi     # 0x6ca09
callq 0x9560
movq %r13, %rdi
movb $0x29, %r13b
xorl %esi, %esi
callq 0x9880
movb %bl, -0x29(%rbp)
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x9560
movq %rax, %rdi
xorl %esi, %esi
callq 0x9880
movb %bl, -0x29(%rbp)
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x9560
movb $0x31, -0x29(%rbp)
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x9560
movb %r13b, -0x29(%rbp)
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x9560
movl $0x1b, %edx
movq %rax, %rdi
leaq 0x38273(%rip), %rsi     # 0x6ca0e
callq 0x9560
movl -0x48(%rbp), %ebx
incl %ebx
movl -0x40(%rbp), %r14d
addl $0x4, %r14d
cmpl $0x30, %r14d
jne 0x3455e
movq -0x50(%rbp), %rcx
leal 0x6(%rcx), %eax
cmpb $0x6d, %cl
movq %rax, -0x50(%rbp)
jb 0x34553
movl $0x2, %edx
movq -0x38(%rbp), %rbx
movq %rbx, %rdi
leaq 0x38483(%rip), %rsi     # 0x6cc61
callq 0x9560
movl -0x58(%rbp), %eax
incl %eax
cmpl 0x2f4(%rbx), %eax
jl 0x343fa
leaq 0x200(%rbx), %rdi
movq %rdi, -0x60(%rbp)
callq 0x4f686
cmpb $0x1, 0x2ec(%rbx)
movq %rbx, %r14
jne 0x348be
movb $0x0, 0x2ec(%r14)
leaq 0x38207(%rip), %rsi     # 0x6ca2a
movl $0xa, %edx
movq %r14, %rdi
callq 0x9560
movl 0x2f0(%r14), %esi
movq %r14, %rdi
callq 0x9880
leaq -0x29(%rbp), %rsi
movb $0x20, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x9560
movq %r14, %rbx
movq %rax, %r14
callq 0x55f0c
movl 0x2e8(%rbx), %esi
movq %rax, %rdi
callq 0x572ae
testq %rax, %rax
je 0x3488c
movq %rax, %r15
movq %rax, %rdi
callq 0x9200
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x9560
jmp 0x348a6
movq (%r14), %rax
movq -0x18(%rax), %rax
movq %r14, %rdi
addq %rax, %rdi
movl 0x20(%r14,%rax), %esi
orl $0x1, %esi
callq 0x9860
leaq 0x383b4(%rip), %rsi     # 0x6cc61
movl $0x2, %edx
movq %r14, %rdi
callq 0x9560
movq -0x38(%rbp), %r14
cmpb $0x1, 0x348(%r14)
jne 0x34a31
movb $0x0, 0x348(%r14)
leaq 0x3815a(%rip), %rsi     # 0x6ca35
movl $0x6, %edx
movq %r14, %rdi
callq 0x9560
movl 0x2f0(%r14), %esi
movq %r14, %rdi
callq 0x9880
leaq -0x29(%rbp), %rsi
movb $0x20, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x9560
movq %r14, %rcx
movq %rax, %r14
cmpq $0x0, 0x310(%rcx)
je 0x34924
movq 0x308(%rcx), %r15
jmp 0x3492b
leaq 0x38111(%rip), %r15     # 0x6ca3c
testq %r15, %r15
je 0x34948
movq %r15, %rdi
callq 0x9200
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x9560
jmp 0x34962
movq (%r14), %rax
movq -0x18(%rax), %rax
movq %r14, %rdi
addq %rax, %rdi
movl 0x20(%r14,%rax), %esi
orl $0x1, %esi
callq 0x9860
leaq -0x29(%rbp), %rsi
movb $0x20, (%rsi)
movl $0x1, %edx
movq %r14, %rdi
callq 0x9560
movq %rax, %r14
movq -0x38(%rbp), %rax
cmpq $0x0, 0x330(%rax)
je 0x34990
movq 0x328(%rax), %r15
jmp 0x34997
leaq 0x380a5(%rip), %r15     # 0x6ca3c
testq %r15, %r15
je 0x349b4
movq %r15, %rdi
callq 0x9200
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x9560
jmp 0x349ce
movq (%r14), %rax
movq -0x18(%rax), %rax
movq %r14, %rdi
addq %rax, %rdi
movl 0x20(%r14,%rax), %esi
orl $0x1, %esi
callq 0x9860
movb $0x20, %bl
leaq -0x29(%rbp), %r15
movb %bl, (%r15)
movl $0x1, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x9560
movq -0x38(%rbp), %r14
movl 0x2f8(%r14), %esi
movq %rax, %rdi
callq 0x9880
movb %bl, (%r15)
leaq -0x29(%rbp), %rsi
movl $0x1, %edx
movq %rax, %rdi
callq 0x9560
movl 0x2fc(%r14), %esi
movq %rax, %rdi
callq 0x9880
leaq 0x3823d(%rip), %rsi     # 0x6cc61
movl $0x2, %edx
movq %rax, %rdi
callq 0x9560
leaq 0x37fb5(%rip), %rsi     # 0x6c9ed
movl $0x6, %edx
movq %r14, %rdi
callq 0x9560
movl 0x2f0(%r14), %esi
movq %r14, %rdi
callq 0x9880
movq %rax, %r14
leaq 0x37f96(%rip), %rsi     # 0x6c9f4
movl $0x5, %edx
movq %rax, %rdi
callq 0x9560
movb $0x20, %bl
leaq -0x29(%rbp), %r15
movb %bl, (%r15)
movl $0x1, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x9560
movq %rax, %r14
movq -0x38(%rbp), %rax
movq 0x350(%rax), %rax
movsd 0x8(%rax), %xmm0
divsd 0x37ef9(%rip), %xmm0    # 0x6c998
callq 0x96b0
mulsd 0x37eec(%rip), %xmm0    # 0x6c998
movq %r14, %rdi
callq 0x97d0
movb %bl, (%r15)
leaq -0x29(%rbp), %r14
movl $0x1, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x9560
movq %rax, %r12
movq -0x38(%rbp), %rax
movq 0x350(%rax), %rax
movsd 0x10(%rax), %xmm0
divsd 0x37eb2(%rip), %xmm0    # 0x6c998
callq 0x96b0
mulsd 0x37ea5(%rip), %xmm0    # 0x6c998
movq %r12, %rdi
callq 0x97d0
movb %bl, (%r14)
movl $0x1, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x9560
movq %rax, %r12
movq -0x38(%rbp), %rax
movq 0x350(%rax), %rax
movsd 0x30(%rax), %xmm0
divsd 0x37e6f(%rip), %xmm0    # 0x6c998
callq 0x96b0
mulsd 0x37e62(%rip), %xmm0    # 0x6c998
movq %r12, %rdi
callq 0x97d0
movb %bl, (%r14)
movl $0x1, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x9560
movq %rax, %r12
movq -0x38(%rbp), %rax
movq 0x350(%rax), %rax
movsd 0x38(%rax), %xmm0
divsd 0x37e2c(%rip), %xmm0    # 0x6c998
callq 0x96b0
mulsd 0x37e1f(%rip), %xmm0    # 0x6c998
movq %r12, %rdi
movb $0x20, %r12b
callq 0x97d0
movb $0x29, (%r14)
movq -0x38(%rbp), %r14
leaq -0x29(%rbp), %rsi
movl $0x1, %edx
movq %rax, %rdi
callq 0x9560
movq 0x350(%r14), %rsi
movq %r14, %rdi
callq 0x35210
leaq 0x3b0(%r14), %rax
movq %rax, -0x58(%rbp)
movb $0x6c, %r15b
movl $0x4, -0x40(%rbp)
movq $-0xb, -0x48(%rbp)
movq -0x58(%rbp), %rbx
movq %r15, -0x50(%rbp)
leaq -0x58(%rbx), %rax
cmpb $0x6c, %r15b
cmovneq %rbx, %rax
movq (%rax), %r13
cmpb $0x1, 0x112(%r13)
jne 0x34bf5
movq %r14, %rdi
movq %r13, %rsi
callq 0x35414
movl $0x3, %edx
movq %r14, %rdi
leaq 0x37df6(%rip), %rsi     # 0x6c9fa
callq 0x9560
movb %r15b, -0x29(%rbp)
movl $0x1, %edx
movq %r14, %rdi
leaq -0x29(%rbp), %r14
movq %r14, %rsi
callq 0x9560
movb %r12b, -0x29(%rbp)
movl $0x1, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x9560
movq -0x48(%rbp), %rcx
leal 0xc(%rcx), %esi
movq %rax, %rdi
callq 0x9880
movb $0x29, -0x29(%rbp)
movl $0x1, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x9560
movb %r12b, -0x29(%rbp)
movl $0x1, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x9560
movl 0x114(%r13), %esi
movq %rax, %rdi
callq 0x9880
movb %r12b, -0x29(%rbp)
movl $0x1, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x9560
movq %rax, %r14
cmpb $0x1, 0x112(%r13)
leaq 0x37d5d(%rip), %rsi     # 0x6c9fe
jne 0x34cbd
cmpb $0x0, 0x175(%r13)
leaq 0x37d93(%rip), %rsi     # 0x6ca45
leaq 0x37d88(%rip), %rax     # 0x6ca41
cmovneq %rax, %rsi
movl $0x3, %edx
movq %r14, %rdi
callq 0x9560
movb $0x20, -0x29(%rbp)
movl $0x1, %edx
movq %r14, %rdi
leaq -0x29(%rbp), %rsi
callq 0x9560
movq %rax, %r14
cmpb $0x1, 0x112(%r13)
jne 0x34d0d
movsd 0x8(%r13), %xmm0
movsd 0x37c9e(%rip), %xmm1    # 0x6c998
divsd %xmm1, %xmm0
callq 0x96b0
mulsd 0x37c8d(%rip), %xmm0    # 0x6c998
jmp 0x34d20
cvtsi2sdl -0x40(%rbp), %xmm0
cmpb $0x6c, %r15b
jne 0x34d20
xorpd 0x36300(%rip), %xmm0    # 0x6b020
movq %r14, %rdi
callq 0x97d0
movb $0x20, -0x29(%rbp)
movl $0x1, %edx
movq %rax, %rdi
leaq -0x29(%rbp), %rsi
callq 0x9560
movq %rax, %r14
cmpb $0x1, 0x112(%r13)
movsd 0x37c50(%rip), %xmm0    # 0x6c9a0
jne 0x34d71
movsd 0x10(%r13), %xmm0
movsd 0x37c38(%rip), %xmm1    # 0x6c998
divsd %xmm1, %xmm0
callq 0x96b0
mulsd 0x37c27(%rip), %xmm0    # 0x6c998
movq %r14, %rdi
callq 0x97d0
movb %r12b, -0x29(%rbp)
movl $0x1, %edx
movq %rax, %rdi
leaq -0x29(%rbp), %r15
movq %r15, %rsi
callq 0x9560
movq %rax, %r14
movsd 0x30(%r13), %xmm0
movsd 0x37bf6(%rip), %xmm1    # 0x6c998
divsd %xmm1, %xmm0
callq 0x96b0
mulsd 0x37be5(%rip), %xmm0    # 0x6c998
movq %r14, %rdi
callq 0x97d0
movb %r12b, -0x29(%rbp)
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x9560
movq %rax, %r14
movsd 0x38(%r13), %xmm0
divsd 0x37bb8(%rip), %xmm0    # 0x6c998
callq 0x96b0
mulsd 0x37bab(%rip), %xmm0    # 0x6c998
movq %r14, %rdi
callq 0x97d0
movb %r12b, -0x29(%rbp)
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x9560
movq %rax, %r14
movsd 0xb0(%r13), %xmm0
divsd 0x37b7b(%rip), %xmm0    # 0x6c998
callq 0x96b0
mulsd 0x37b6e(%rip), %xmm0    # 0x6c998
movq %r14, %rdi
callq 0x97d0
movb %r12b, -0x29(%rbp)
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x9560
movq %rax, %r14
callq 0x4a75c
movq %rax, %r12
callq 0x4a75c
movsd 0x98(%r13), %xmm1
movsd 0x3160(%rax), %xmm0
maxsd 0x3168(%r12), %xmm1
minsd %xmm1, %xmm0
divsd 0x37b1b(%rip), %xmm0    # 0x6c998
callq 0x96b0
mulsd 0x37b0e(%rip), %xmm0    # 0x6c998
movq %r14, %rdi
callq 0x97d0
movq %rax, %r14
movl $0x6, %edx
movq %rax, %rdi
leaq 0x37b5e(%rip), %rsi     # 0x6ca02
callq 0x9560
movl 0x118(%r13), %eax
decl %eax
movsd 0x361f6(%rip), %xmm0    # 0x6b0b0
cmpl $0x2, %eax
ja 0x34ecd
movl %eax, %eax
leaq 0x37c30(%rip), %rcx     # 0x6caf8
movsd (%rcx,%rax,8), %xmm0
movq %r14, %rdi
callq 0x97d0
movb $0x29, %cl
movb %cl, -0x29(%rbp)
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x9560
movq %rax, %r14
movl $0x4, %edx
movq %rax, %rdi
leaq 0x37b0d(%rip), %rsi     # 0x6ca09
callq 0x9560
movsd 0x78(%r13), %xmm0
movq %r14, %rdi
callq 0x97d0
movb $0x20, %r12b
movb %r12b, -0x29(%rbp)
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x9560
movsd 0x80(%r13), %xmm0
movq %rax, %rdi
callq 0x97d0
movb %r12b, -0x29(%rbp)
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x9560
movb $0x31, -0x29(%rbp)
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x9560
movb $0x29, %cl
movb %cl, -0x29(%rbp)
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x9560
movl $0x1b, %edx
movq %rax, %rdi
leaq 0x37a8b(%rip), %rsi     # 0x6ca0e
callq 0x9560
addl $0x4, -0x40(%rbp)
addq $0x8, %rbx
incq -0x48(%rbp)
movq -0x38(%rbp), %r14
movq -0x50(%rbp), %r15
jne 0x34bd1
leal 0x6(%r15), %eax
cmpb $0x6d, %r15b
movl %eax, %r15d
jb 0x34bba
movq -0x60(%rbp), %rdi
callq 0x4f6a2
leaq 0x37c9e(%rip), %rsi     # 0x6cc61
movl $0x2, %edx
movq %r14, %rdi
callq 0x9560
movq %r14, %rdi
callq 0x9330
callq 0x450ba
cmpb $0x1, 0x5c44(%rax)
jne 0x35201
leaq 0x228(%r14), %rdi
movq %rdi, -0x48(%rbp)
callq 0x4f686
movl 0x2f4(%r14), %r15d
shll $0x10, %r15d
orl 0x2f0(%r14), %r15d
movq 0x408(%r14), %r12
cmpq 0x410(%r14), %r12
je 0x350ac
leaq 0x408(%r14), %rax
movq %rax, -0x40(%rbp)
cmpq 0x410(%r14), %r12
movq %r14, %rbx
je 0x3509d
leaq -0x29(%rbp), %r13
leaq 0x37c1f(%rip), %r14     # 0x6cc61
movl $0x6, %edx
movq %rbx, %rdi
leaq 0x379f8(%rip), %rsi     # 0x6ca49
callq 0x9560
movq %rbx, %rdi
movl %r15d, %esi
callq 0x9880
movb $0x20, -0x29(%rbp)
movl $0x1, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x9560
movq %rax, %rdi
movq %r12, %rsi
callq 0x366c2
movl $0x2, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x9560
addq $0x38, %r12
cmpq 0x410(%rbx), %r12
jne 0x35042
movq -0x40(%rbp), %rdi
movq (%rdi), %rsi
callq 0x37284
movq %rbx, %r14
movq 0x420(%r14), %r12
cmpq 0x428(%r14), %r12
je 0x3514e
movq 0x428(%r14), %rax
cmpq %rax, %r12
movq %r14, %rbx
je 0x35138
leaq -0x29(%rbp), %r14
leaq 0x37b87(%rip), %r13     # 0x6cc61
movl $0x6, %edx
movq %rbx, %rdi
leaq 0x37960(%rip), %rsi     # 0x6ca49
callq 0x9560
movq %rbx, %rdi
movl %r15d, %esi
callq 0x9880
movb $0x20, -0x29(%rbp)
movl $0x1, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x9560
movq %rax, %rdi
movq %r12, %rsi
callq 0x367ca
movl $0x2, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x9560
addq $0x30, %r12
movq 0x428(%rbx), %rax
cmpq %rax, %r12
jne 0x350da
movq 0x420(%rbx), %rcx
cmpq %rcx, %rax
movq %rbx, %r14
je 0x3514e
movq %rcx, 0x428(%r14)
movq 0x438(%r14), %r12
cmpq 0x440(%r14), %r12
je 0x351f0
movq 0x440(%r14), %rax
cmpq %rax, %r12
movq %r14, %rbx
je 0x351da
leaq -0x29(%rbp), %r14
leaq 0x37ae5(%rip), %r13     # 0x6cc61
movl $0x6, %edx
movq %rbx, %rdi
leaq 0x378be(%rip), %rsi     # 0x6ca49
callq 0x9560
movq %rbx, %rdi
movl %r15d, %esi
callq 0x9880
movb $0x20, -0x29(%rbp)
movl $0x1, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x9560
movq %rax, %rdi
movq %r12, %rsi
callq 0x368d8
movl $0x2, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x9560
addq $0x20, %r12
movq 0x440(%rbx), %rax
cmpq %rax, %r12
jne 0x3517c
movq 0x438(%rbx), %rcx
cmpq %rcx, %rax
movq %rbx, %r14
je 0x351f0
movq %rcx, 0x440(%r14)
movq -0x48(%rbp), %rdi
callq 0x4f6a2
movq %r14, %rdi
callq 0x9330
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq