// File: /workspace/github_cpp_makefile_star2_O3/Worthy-Wang[P]Warcraft3-StartWar/warcraftWorld.cpp
// Function: warcraft::WarcraftWorld::warriorArriveHeadquarters()
void WarcraftWorld::warriorArriveHeadquarters()
{
    //蓝方基地
    WarriorPtr redWarrior = _citys[GameConfig::getInstance()->getCityNum(_caseNum) + 1]->getRedWarrior();
    if (redWarrior.get())
        cout << "red " << redWarrior->getName() << " " << redWarrior->getId() << " reached blue headquarters with " << redWarrior->getHp() << " elements and force " << GameConfig::getInstance()->getInitWarriorAttack(_caseNum, redWarrior->getType()) << endl;
    //红方基地
    WarriorPtr blueWarrior = _citys[0]->getBlueWarrior();
    if (blueWarrior.get())
        cout << "blue " << blueWarrior->getName() << " " << blueWarrior->getId() << " reached red headquarters with " << blueWarrior->getHp() << " elements and force " << GameConfig::getInstance()->getInitWarriorAttack(_caseNum, blueWarrior->getType()) << endl;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %r14
leaq 0x8815(%rip), %rax      # 0x17158
movq (%rax), %rax
movq 0x10(%rdi), %rcx
movq 0x28(%rdi), %rdx
movq 0x18(%rax), %rax
shlq $0x7, %rdx
movq -0x78(%rax,%rdx), %rax
shlq $0x4, %rax
movq 0x10(%rcx,%rax), %rax
movq 0x8(%rax), %r13
movq 0x10(%rax), %rbx
testq %rbx, %rbx
je 0xe986
movq 0x8650(%rip), %rax      # 0x16fc8
cmpb $0x0, (%rax)
je 0xe982
incl 0x8(%rbx)
jmp 0xe986
lock
incl 0x8(%rbx)
testq %r13, %r13
je 0xeaac
movq 0x863a(%rip), %rdi      # 0x16fd0
leaq 0x1690(%rip), %rsi      # 0x1002d
movl $0x4, %edx
callq 0x4190
leaq -0x38(%rbp), %r12
movq %r12, -0x10(%r12)
movq 0x10(%r13), %rsi
movq 0x18(%r13), %rdx
addq %rsi, %rdx
leaq -0x48(%rbp), %rdi
callq 0x570a
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq 0x85fd(%rip), %rdi      # 0x16fd0
callq 0x4190
movq %rax, %r15
leaq 0x20c9(%rip), %rsi      # 0x10aab
movl $0x1, %edx
movq %rax, %rdi
callq 0x4190
movq 0x30(%r13), %rsi
movq %r15, %rdi
callq 0x40e0
movq %rax, %r15
leaq 0x200d(%rip), %rsi      # 0x10a12
movl $0x20, %edx
movq %rax, %rdi
callq 0x4190
movl 0x38(%r13), %esi
movq %r15, %rdi
callq 0x4220
movq %rax, %r15
leaq 0x200b(%rip), %rsi      # 0x10a33
movl $0x14, %edx
movq %rax, %rdi
callq 0x4190
leaq 0x871c(%rip), %rax      # 0x17158
movq (%rax), %rax
movq 0x28(%r14), %rcx
movl 0x3c(%r13), %edx
leaq -0x4c(%rbp), %rsi
movl %edx, (%rsi)
movq 0x18(%rax), %rax
shlq $0x7, %rcx
leaq (%rax,%rcx), %rdi
addq $-0x30, %rdi
callq 0x681a
movq (%rax), %rsi
movq %r15, %rdi
callq 0x40e0
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x4150
movsbl %al, %esi
movq %r15, %rdi
callq 0x4030
movq %rax, %rdi
callq 0x40f0
movq -0x48(%rbp), %rdi
cmpq %r12, %rdi
je 0xeaac
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x4170
movq 0x10(%r14), %rax
movq (%rax), %rax
movq 0x18(%rax), %r13
movq 0x20(%rax), %r15
testq %r15, %r15
je 0xead7
movq 0x8501(%rip), %rax      # 0x16fc8
cmpb $0x0, (%rax)
je 0xead2
incl 0x8(%r15)
jmp 0xead7
lock
incl 0x8(%r15)
testq %r13, %r13
je 0xec00
movq 0x84e9(%rip), %rdi      # 0x16fd0
leaq 0x1549(%rip), %rsi      # 0x10037
movl $0x5, %edx
callq 0x4190
leaq -0x38(%rbp), %rax
movq %rax, -0x10(%rax)
movq 0x10(%r13), %rsi
movq 0x18(%r13), %rdx
addq %rsi, %rdx
leaq -0x48(%rbp), %rdi
callq 0x570a
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq 0x84ad(%rip), %rdi      # 0x16fd0
callq 0x4190
movq %rax, %r12
leaq 0x1f79(%rip), %rsi      # 0x10aab
movl $0x1, %edx
movq %rax, %rdi
callq 0x4190
movq 0x30(%r13), %rsi
movq %r12, %rdi
callq 0x40e0
movq %rax, %r12
leaq 0x1ef3(%rip), %rsi      # 0x10a48
movl $0x1f, %edx
movq %rax, %rdi
callq 0x4190
movl 0x38(%r13), %esi
movq %r12, %rdi
callq 0x4220
movq %rax, %r12
leaq 0x1ebb(%rip), %rsi      # 0x10a33
movl $0x14, %edx
movq %rax, %rdi
callq 0x4190
leaq 0x85cc(%rip), %rax      # 0x17158
movq (%rax), %rax
movq 0x28(%r14), %rcx
movl 0x3c(%r13), %edx
leaq -0x4c(%rbp), %rsi
movl %edx, (%rsi)
movq 0x18(%rax), %rax
shlq $0x7, %rcx
leaq (%rax,%rcx), %rdi
addq $-0x30, %rdi
callq 0x681a
movq (%rax), %rsi
movq %r12, %rdi
callq 0x40e0
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x4150
movsbl %al, %esi
movq %r14, %rdi
callq 0x4030
movq %rax, %rdi
callq 0x40f0
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0xec00
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x4170
testq %r15, %r15
je 0xec0d
movq %r15, %rdi
callq 0x57a8
testq %rbx, %rbx
je 0xec1a
movq %rbx, %rdi
callq 0x57a8
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xec2b
movq %rax, %r14
jmp 0xec53
jmp 0xec32
movq %rax, %r14
jmp 0xec7a
movq %rax, %r14
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0xec53
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x4170
testq %r15, %r15
je 0xec7a
movq %r15, %rdi
callq 0x57a8
jmp 0xec7a
movq %rax, %r14
movq -0x48(%rbp), %rdi
cmpq %r12, %rdi
je 0xec7a
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x4170
testq %rbx, %rbx
je 0xec87
movq %rbx, %rdi
callq 0x57a8
movq %r14, %rdi
callq 0x4230
nop