// File: wrighteagle2d[P]wrighteaglebase/Debug/../src/Observer.cpp
// Function: Observer::SeePlayer(char, int, double, double, bool, double, bool, bool, bool, CardType)
void Observer::SeePlayer(char side, int num, double dist, double dir,
                         bool is_pointing, double point_dir, bool is_tackling,
                         bool is_kicked, bool is_lying, CardType card_type) {
  if (side == mOurSide) {
    mTeammateObservers[num].SetDist(dist, mCurrentTime);
    mTeammateObservers[num].SetDir(dir, mCurrentTime);
    mTeammateObservers[num].SetIsPointing(is_pointing, mCurrentTime);
    mTeammateObservers[num].SetPointDir(point_dir);
    mTeammateObservers[num].SetIsTcakling(is_tackling, mCurrentTime);
    mTeammateObservers[num].SetIsKicked(is_kicked, mCurrentTime);
    mTeammateObservers[num].SetIsLying(is_lying, mCurrentTime);
    mTeammateObservers[num].SetCardType(card_type);
  } else {
    mOpponentObservers[num].SetDist(dist, mCurrentTime);
    mOpponentObservers[num].SetDir(dir, mCurrentTime);
    mOpponentObservers[num].SetIsPointing(is_pointing, mCurrentTime);
    mOpponentObservers[num].SetPointDir(point_dir);
    mOpponentObservers[num].SetIsTcakling(is_tackling, mCurrentTime);
    mOpponentObservers[num].SetIsKicked(is_kicked, mCurrentTime);
    mOpponentObservers[num].SetIsKicked(is_lying, mCurrentTime);
    mOpponentObservers[num].SetCardType(card_type);
  }
  //	std::cout << "seeeee: " << side << "   and : " << num << " real_side: "
  //<< mOurSide<< std::endl;
  mCurrentBugInfo.mSide =
      OurInitSide() == OurSide() ? side : (side == 'l' ? 'r' : 'l');
  mCurrentBugInfo.mLeastNum = num + 1;
  if (mCurrentBugInfo.mLeastNum > TEAMSIZE) {
    mCurrentBugInfo.mSide = 'r';
    mCurrentBugInfo.mLeastNum = 1;
  }

  AdjustUnum(OurInitSide() == OurSide() ? side : (side == 'l' ? 'r' : 'l'),
             num);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movl %r9d, -0x4c(%rbp)
movl %ecx, %eax
movl -0x4c(%rbp), %ecx
movl %eax, -0x48(%rbp)
movl %edx, -0x44(%rbp)
movl %esi, %eax
movl -0x48(%rbp), %esi
movq %rdi, %r9
movl -0x44(%rbp), %edi
movb %r8b, %dl
movb %al, %r8b
movl 0x18(%rbp), %eax
movb 0x10(%rbp), %al
movq %r9, -0x8(%rbp)
movb %r8b, -0x9(%rbp)
movl %edi, -0x10(%rbp)
movsd %xmm0, -0x18(%rbp)
movsd %xmm1, -0x20(%rbp)
andb $0x1, %sil
movb %sil, -0x21(%rbp)
movsd %xmm2, -0x30(%rbp)
andb $0x1, %dl
movb %dl, -0x31(%rbp)
andb $0x1, %cl
movb %cl, -0x32(%rbp)
andb $0x1, %al
movb %al, -0x33(%rbp)
movq -0x8(%rbp), %rcx
movq %rcx, -0x40(%rbp)
movsbl -0x9(%rbp), %eax
movsbl 0x29(%rcx), %ecx
cmpl %ecx, %eax
jne 0x6cce0
movq -0x40(%rbp), %rdi
addq $0x1870, %rdi           # imm = 0x1870
leaq -0x10(%rbp), %rsi
callq 0x6e2f0
movq -0x40(%rbp), %rsi
movq %rax, %rdi
movsd -0x18(%rbp), %xmm0
addq $0xc, %rsi
callq 0x6e370
movq -0x40(%rbp), %rdi
addq $0x1870, %rdi           # imm = 0x1870
leaq -0x10(%rbp), %rsi
callq 0x6e2f0
movq -0x40(%rbp), %rsi
movq %rax, %rdi
movsd -0x20(%rbp), %xmm0
addq $0xc, %rsi
callq 0x6e3a0
movq -0x40(%rbp), %rdi
addq $0x1870, %rdi           # imm = 0x1870
leaq -0x10(%rbp), %rsi
callq 0x6e2f0
movq -0x40(%rbp), %rdx
movq %rax, %rdi
movb -0x21(%rbp), %al
addq $0xc, %rdx
andb $0x1, %al
movzbl %al, %esi
callq 0x6e630
movq -0x40(%rbp), %rdi
addq $0x1870, %rdi           # imm = 0x1870
leaq -0x10(%rbp), %rsi
callq 0x6e2f0
movq %rax, %rdi
movsd -0x30(%rbp), %xmm0
callq 0x6e670
movq -0x40(%rbp), %rdi
addq $0x1870, %rdi           # imm = 0x1870
leaq -0x10(%rbp), %rsi
callq 0x6e2f0
movq -0x40(%rbp), %rdx
movq %rax, %rdi
movb -0x31(%rbp), %al
addq $0xc, %rdx
andb $0x1, %al
movzbl %al, %esi
callq 0x6e690
movq -0x40(%rbp), %rdi
addq $0x1870, %rdi           # imm = 0x1870
leaq -0x10(%rbp), %rsi
callq 0x6e2f0
movq -0x40(%rbp), %rdx
movq %rax, %rdi
movb -0x32(%rbp), %al
addq $0xc, %rdx
andb $0x1, %al
movzbl %al, %esi
callq 0x6e6d0
movq -0x40(%rbp), %rdi
addq $0x1870, %rdi           # imm = 0x1870
leaq -0x10(%rbp), %rsi
callq 0x6e2f0
movq -0x40(%rbp), %rdx
movq %rax, %rdi
movb -0x33(%rbp), %al
addq $0xc, %rdx
andb $0x1, %al
movzbl %al, %esi
callq 0x6e710
movq -0x40(%rbp), %rdi
addq $0x1870, %rdi           # imm = 0x1870
leaq -0x10(%rbp), %rsi
callq 0x6e2f0
movq %rax, %rdi
movl 0x18(%rbp), %esi
callq 0x6e750
jmp 0x6ce22
movq -0x40(%rbp), %rdi
addq $0x1fa8, %rdi           # imm = 0x1FA8
leaq -0x10(%rbp), %rsi
callq 0x6e2f0
movq -0x40(%rbp), %rsi
movq %rax, %rdi
movsd -0x18(%rbp), %xmm0
addq $0xc, %rsi
callq 0x6e370
movq -0x40(%rbp), %rdi
addq $0x1fa8, %rdi           # imm = 0x1FA8
leaq -0x10(%rbp), %rsi
callq 0x6e2f0
movq -0x40(%rbp), %rsi
movq %rax, %rdi
movsd -0x20(%rbp), %xmm0
addq $0xc, %rsi
callq 0x6e3a0
movq -0x40(%rbp), %rdi
addq $0x1fa8, %rdi           # imm = 0x1FA8
leaq -0x10(%rbp), %rsi
callq 0x6e2f0
movq -0x40(%rbp), %rdx
movq %rax, %rdi
movb -0x21(%rbp), %al
addq $0xc, %rdx
andb $0x1, %al
movzbl %al, %esi
callq 0x6e630
movq -0x40(%rbp), %rdi
addq $0x1fa8, %rdi           # imm = 0x1FA8
leaq -0x10(%rbp), %rsi
callq 0x6e2f0
movq %rax, %rdi
movsd -0x30(%rbp), %xmm0
callq 0x6e670
movq -0x40(%rbp), %rdi
addq $0x1fa8, %rdi           # imm = 0x1FA8
leaq -0x10(%rbp), %rsi
callq 0x6e2f0
movq -0x40(%rbp), %rdx
movq %rax, %rdi
movb -0x31(%rbp), %al
addq $0xc, %rdx
andb $0x1, %al
movzbl %al, %esi
callq 0x6e690
movq -0x40(%rbp), %rdi
addq $0x1fa8, %rdi           # imm = 0x1FA8
leaq -0x10(%rbp), %rsi
callq 0x6e2f0
movq -0x40(%rbp), %rdx
movq %rax, %rdi
movb -0x32(%rbp), %al
addq $0xc, %rdx
andb $0x1, %al
movzbl %al, %esi
callq 0x6e6d0
movq -0x40(%rbp), %rdi
addq $0x1fa8, %rdi           # imm = 0x1FA8
leaq -0x10(%rbp), %rsi
callq 0x6e2f0
movq -0x40(%rbp), %rdx
movq %rax, %rdi
movb -0x33(%rbp), %al
addq $0xc, %rdx
andb $0x1, %al
movzbl %al, %esi
callq 0x6e6d0
movq -0x40(%rbp), %rdi
addq $0x1fa8, %rdi           # imm = 0x1FA8
leaq -0x10(%rbp), %rsi
callq 0x6e2f0
movq %rax, %rdi
movl 0x18(%rbp), %esi
callq 0x6e750
movq -0x40(%rbp), %rdi
callq 0x6e590
movq -0x40(%rbp), %rdi
movsbl (%rax), %eax
movl %eax, -0x50(%rbp)
callq 0x6e5b0
movq %rax, %rcx
movl -0x50(%rbp), %eax
movsbl (%rcx), %ecx
cmpl %ecx, %eax
jne 0x6ce4f
movb -0x9(%rbp), %al
movb %al, -0x51(%rbp)
jmp 0x6ce6e
movsbl -0x9(%rbp), %ecx
movb $0x72, %al
movb $0x6c, %dl
movb %dl, -0x53(%rbp)
cmpl $0x6c, %ecx
movb %al, -0x52(%rbp)
je 0x6ce68
movb -0x53(%rbp), %al
movb %al, -0x52(%rbp)
movb -0x52(%rbp), %al
movb %al, -0x51(%rbp)
movq -0x40(%rbp), %rax
movb -0x51(%rbp), %cl
movb %cl, 0x3344(%rax)
movl -0x10(%rbp), %ecx
addl $0x1, %ecx
movl %ecx, 0x3348(%rax)
cmpl $0xb, 0x3348(%rax)
jle 0x6cea5
movq -0x40(%rbp), %rax
movb $0x72, 0x3344(%rax)
movl $0x1, 0x3348(%rax)
movq -0x40(%rbp), %rdi
callq 0x6e590
movq -0x40(%rbp), %rdi
movsbl (%rax), %eax
movl %eax, -0x58(%rbp)
callq 0x6e5b0
movq %rax, %rcx
movl -0x58(%rbp), %eax
movsbl (%rcx), %ecx
cmpl %ecx, %eax
jne 0x6ced2
movb -0x9(%rbp), %al
movb %al, -0x59(%rbp)
jmp 0x6cef1
movsbl -0x9(%rbp), %ecx
movb $0x72, %al
movb $0x6c, %dl
movb %dl, -0x5b(%rbp)
cmpl $0x6c, %ecx
movb %al, -0x5a(%rbp)
je 0x6ceeb
movb -0x5b(%rbp), %al
movb %al, -0x5a(%rbp)
movb -0x5a(%rbp), %al
movb %al, -0x59(%rbp)
movq -0x40(%rbp), %rdi
movb -0x59(%rbp), %al
movl -0x10(%rbp), %edx
movsbl %al, %esi
callq 0x6bac0
addq $0x60, %rsp
popq %rbp
retq
nopl (%rax)