// File: /workspace/github_cpp_makefile_star2_O2/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 $0x138, %rsp            # imm = 0x138
movq %rdx, %r13
movq %rsi, %r14
movq %rdi, %rbx
callq 0x9880
leaq 0x200(%rbx), %r15
movq %r15, %rdi
callq 0x42058
movq %r15, -0x60(%rbp)
leaq 0x228(%rbx), %r15
movq %r15, %rdi
callq 0x42058
leaq 0x270(%rbx), %rax
movq %rax, 0x260(%rbx)
andq $0x0, 0x268(%rbx)
xorl %eax, %eax
movb %al, 0x270(%rbx)
leaq 0x290(%rbx), %rcx
movq %rcx, 0x280(%rbx)
andq $0x0, 0x288(%rbx)
movb %al, 0x290(%rbx)
leaq 0x2b0(%rbx), %rcx
movq %rcx, 0x2a0(%rbx)
andq $0x0, 0x2a8(%rbx)
movb %al, 0x2b0(%rbx)
leaq 0x2d0(%rbx), %rcx
movq %rcx, 0x2c0(%rbx)
andq $0x0, 0x2c8(%rbx)
movb %al, 0x2d0(%rbx)
movl $0xfffffffd, %ecx       # imm = 0xFFFFFFFD
movq %rcx, 0x2f0(%rbx)
leaq 0x318(%rbx), %rcx
movq %rcx, 0x308(%rbx)
andq $0x0, 0x310(%rbx)
movb %al, 0x318(%rbx)
leaq 0x338(%rbx), %rcx
movq %rcx, 0x328(%rbx)
andq $0x0, 0x330(%rbx)
leaq 0x260(%rbx), %r12
movb %al, 0x338(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x438(%rbx)
movups %xmm0, 0x428(%rbx)
andq $0x0, 0x448(%rbx)
movups %xmm0, 0x418(%rbx)
movups %xmm0, 0x408(%rbx)
movq %r14, 0x250(%rbx)
movq %r13, 0x258(%rbx)
leaq 0x2d47f(%rip), %rsi     # 0x58958
movq %r12, %rdi
callq 0x9970
andw $0x0, 0x2e4(%rbx)
andl $0x0, 0x2e0(%rbx)
andl $0x0, 0x2e8(%rbx)
movb $0x1, %al
movb %al, 0x2ec(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x2f8(%rbx)
movb %al, 0x348(%rbx)
callq 0x38d94
movq 0x30f8(%rax), %r14
callq 0x38d94
movq 0x3138(%rax), %rcx
movq 0x250(%rbx), %rax
movl 0x2c(%rax), %r8d
leaq 0x2d425(%rip), %rsi     # 0x5895e
leaq -0x160(%rbp), %r13
movq %r13, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x9100
pushq $0x10
popq %rdx
movq %rbx, %rdi
movq %r13, %rsi
callq 0x9080
movq (%rbx), %rax
movq -0x18(%rax), %rax
cmpl $0x0, 0x20(%rbx,%rax)
je 0x2b5bc
movq 0x4ba80(%rip), %rdi     # 0x76ff0
leaq 0x2d3fa(%rip), %rsi     # 0x58971
callq 0x94b0
leaq 0x2fbef(%rip), %rsi     # 0x5b172
movq %rax, %rdi
callq 0x94b0
pushq $0x44
popq %rsi
movq %rax, %rdi
callq 0x9890
leaq 0x2de82(%rip), %rsi     # 0x5941f
movq %rax, %rdi
callq 0x94b0
leaq 0x2d3d7(%rip), %rsi     # 0x58983
movq %rax, %rdi
callq 0x94b0
movq %rax, %rdi
callq 0x99e8
addq $0x138, %rsp            # imm = 0x138
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2b5e2
movq %rax, -0x30(%rbp)
jmp 0x2b684
movq %rax, -0x30(%rbp)
jmp 0x2b68d
movq %rax, -0x30(%rbp)
leaq 0x280(%rbx), %rax
movq %rax, -0x58(%rbp)
leaq 0x2a0(%rbx), %rax
movq %rax, -0x50(%rbp)
leaq 0x2c0(%rbx), %rax
movq %rax, -0x48(%rbp)
leaq 0x308(%rbx), %rax
movq %rax, -0x40(%rbp)
leaq 0x328(%rbx), %rax
movq %rax, -0x38(%rbp)
leaq 0x408(%rbx), %r13
leaq 0x420(%rbx), %r14
leaq 0x438(%rbx), %rdi
callq 0x2e012
movq %r14, %rdi
callq 0x2dfea
movq %r13, %rdi
callq 0x2d506
movq -0x38(%rbp), %rdi
callq 0x9240
movq -0x40(%rbp), %rdi
callq 0x9240
movq -0x48(%rbp), %rdi
callq 0x9240
movq -0x50(%rbp), %rdi
callq 0x9240
movq -0x58(%rbp), %rdi
callq 0x9240
movq %r12, %rdi
callq 0x9240
movq %r15, %rdi
callq 0x42064
movq -0x60(%rbp), %rdi
callq 0x42064
movq %rbx, %rdi
callq 0x9720
movq -0x30(%rbp), %rdi
callq 0x98b0