// File: /workspace/github_cpp_makefile_star2_O3/wrighteagle2d[P]wrighteaglebase/Debug/../src/Logger.cpp
// Function: SightLogger::SightLogger(Observer*, WorldState*)
SightLogger::SightLogger(Observer *observer, WorldState *world_state) {
  Assert(observer && world_state);

  mpObserver = observer;
  mpWorldState = world_state;

  mHeader = "ULG4\n";
  mHeaderReady = false;
  mHeaderLogged = false;
  mLoggedPlayerTypeCount = 0;

  mServerPlayMode = SPM_Null;
  mServerPlayMode_dirty = true;
  mLeftScore = 0;
  mRightScore = 0;
  mLeftPenTaken = 0;
  mRightPenTaken = 0;
  mTeamState_dirty = true;

  char file_name[256];
  sprintf(file_name, "%s/%s-%d-sight.log",
          PlayerParam::instance().logDir().c_str(),
          PlayerParam::instance().teamName().c_str(), mpObserver->SelfUnum());
  os.open(file_name);
  if (!os.good()) {
    PRINT_ERROR("open sight log file error");
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x148, %rsp            # imm = 0x148
movq %rdx, %r13
movq %rsi, %r14
movq %rdi, %rbx
callq 0x9870
leaq 0x200(%rbx), %r15
movq %r15, %rdi
callq 0x4e004
movq %r15, -0x68(%rbp)
leaq 0x228(%rbx), %rdi
movq %rdi, -0x60(%rbp)
callq 0x4e004
leaq 0x260(%rbx), %rdi
leaq 0x270(%rbx), %rax
movq %rax, -0x50(%rbp)
movq %rax, 0x260(%rbx)
xorl %r12d, %r12d
movq %r12, 0x268(%rbx)
movb %r12b, 0x270(%rbx)
leaq 0x290(%rbx), %rax
movq %rax, -0x48(%rbp)
movq %rax, 0x280(%rbx)
movq %r12, 0x288(%rbx)
movb %r12b, 0x290(%rbx)
leaq 0x2b0(%rbx), %rax
movq %rax, -0x40(%rbp)
movq %rax, 0x2a0(%rbx)
movq %r12, 0x2a8(%rbx)
movb %r12b, 0x2b0(%rbx)
leaq 0x2d0(%rbx), %rax
movq %rax, -0x38(%rbp)
movq %rax, 0x2c0(%rbx)
movq %r12, 0x2c8(%rbx)
movb %r12b, 0x2d0(%rbx)
movl $0xfffffffd, %eax       # imm = 0xFFFFFFFD
movq %rax, 0x2f0(%rbx)
leaq 0x318(%rbx), %rax
movq %rax, -0x30(%rbp)
movq %rax, 0x308(%rbx)
movq %r12, 0x310(%rbx)
movb %r12b, 0x318(%rbx)
leaq 0x338(%rbx), %r15
movq %r15, 0x328(%rbx)
movq %r12, 0x330(%rbx)
movb %r12b, 0x338(%rbx)
movq %r12, 0x448(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x438(%rbx)
movups %xmm0, 0x428(%rbx)
movups %xmm0, 0x418(%rbx)
movups %xmm0, 0x408(%rbx)
movq %r14, 0x250(%rbx)
movq %r13, 0x258(%rbx)
leaq 0x379ca(%rip), %rcx     # 0x6a998
movl $0x5, %r8d
movq %rdi, -0x58(%rbp)
xorl %esi, %esi
xorl %edx, %edx
callq 0x9780
movw $0x0, 0x2e4(%rbx)
movl %r12d, 0x2e0(%rbx)
movl %r12d, 0x2e8(%rbx)
movb $0x1, %al
movb %al, 0x2ec(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x2f8(%rbx)
movb %al, 0x348(%rbx)
callq 0x43dce
movq 0x30f8(%rax), %r14
callq 0x43dce
movq 0x3138(%rax), %rcx
movq 0x250(%rbx), %rax
movl 0x2c(%rax), %r8d
leaq 0x37964(%rip), %rsi     # 0x6a99e
leaq -0x170(%rbp), %r13
movq %r13, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x9110
movq %rbx, %rdi
movq %r13, %rsi
movl $0x10, %edx
callq 0x9090
movq (%rbx), %rax
movq -0x18(%rax), %rax
cmpl $0x0, 0x20(%rbx,%rax)
je 0x33103
movq 0x50f79(%rip), %rdi     # 0x83ff0
leaq 0x37933(%rip), %rsi     # 0x6a9b1
movl $0x11, %edx
callq 0x9560
movq 0x50f61(%rip), %rdi     # 0x83ff0
leaq 0x3a0fc(%rip), %rsi     # 0x6d192
movl $0x1, %edx
callq 0x9560
movq 0x50f49(%rip), %rdi     # 0x83ff0
movl $0x44, %esi
callq 0x9880
movq %rax, %r14
leaq 0x3839c(%rip), %rsi     # 0x6b457
movl $0x3, %edx
movq %rax, %rdi
callq 0x9560
leaq 0x378f4(%rip), %rsi     # 0x6a9c3
movl $0x19, %edx
movq %r14, %rdi
callq 0x9560
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x9480
movsbl %al, %esi
movq %r14, %rdi
callq 0x9070
movq %rax, %rdi
callq 0x9330
addq $0x148, %rsp            # imm = 0x148
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x33127
movq %rax, %r13
jmp 0x3321b
movq %rax, %r13
jmp 0x33224
movq %rax, %r13
movq 0x438(%rbx), %rdi
testq %rdi, %rdi
je 0x33145
movq 0x448(%rbx), %rsi
subq %rdi, %rsi
callq 0x94e0
leaq 0x408(%rbx), %r14
movq 0x420(%rbx), %rdi
testq %rdi, %rdi
je 0x33167
movq 0x430(%rbx), %rsi
subq %rdi, %rsi
callq 0x94e0
movq %r14, %rdi
callq 0x35760
movq 0x328(%rbx), %rdi
cmpq %r15, %rdi
je 0x33186
movq (%r15), %rsi
incq %rsi
callq 0x94e0
movq 0x308(%rbx), %rdi
cmpq -0x30(%rbp), %rdi
je 0x331a2
movq -0x30(%rbp), %rax
movq (%rax), %rsi
incq %rsi
callq 0x94e0
movq 0x2c0(%rbx), %rdi
cmpq -0x38(%rbp), %rdi
je 0x331be
movq -0x38(%rbp), %rax
movq (%rax), %rsi
incq %rsi
callq 0x94e0
movq 0x2a0(%rbx), %rdi
cmpq -0x40(%rbp), %rdi
je 0x331da
movq -0x40(%rbp), %rax
movq (%rax), %rsi
incq %rsi
callq 0x94e0
movq 0x280(%rbx), %rdi
cmpq -0x48(%rbp), %rdi
je 0x331f6
movq -0x48(%rbp), %rax
movq (%rax), %rsi
incq %rsi
callq 0x94e0
movq -0x58(%rbp), %rax
movq (%rax), %rdi
cmpq -0x50(%rbp), %rdi
je 0x33212
movq -0x50(%rbp), %rax
movq (%rax), %rsi
incq %rsi
callq 0x94e0
movq -0x60(%rbp), %rdi
callq 0x4e010
movq -0x68(%rbp), %rdi
callq 0x4e010
movq %rbx, %rdi
callq 0x9700
movq %r13, %rdi
callq 0x98b0