// File: /workspace/github_cpp_makefile_star2_O1/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 0x87cb(%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 0xe9d0
movq 0x8606(%rip), %rax      # 0x16fc8
cmpb $0x0, (%rax)
je 0xe9cc
incl 0x8(%rbx)
jmp 0xe9d0
lock
incl 0x8(%rbx)
testq %r13, %r13
je 0xeaf6
movq 0x85f0(%rip), %rdi      # 0x16fd0
leaq 0x1646(%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 0x5720
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq 0x85b3(%rip), %rdi      # 0x16fd0
callq 0x4190
movq %rax, %r15
leaq 0x207f(%rip), %rsi      # 0x10aab
movl $0x1, %edx
movq %rax, %rdi
callq 0x4190
movq 0x30(%r13), %rsi
movq %r15, %rdi
callq 0x40e0
movq %rax, %r15
leaq 0x1fc3(%rip), %rsi      # 0x10a12
movl $0x20, %edx
movq %rax, %rdi
callq 0x4190
movl 0x38(%r13), %esi
movq %r15, %rdi
callq 0x4220
movq %rax, %r15
leaq 0x1fc1(%rip), %rsi      # 0x10a33
movl $0x14, %edx
movq %rax, %rdi
callq 0x4190
leaq 0x86d2(%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 0x6838
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 0xeaf6
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 0xeb21
movq 0x84b7(%rip), %rax      # 0x16fc8
cmpb $0x0, (%rax)
je 0xeb1c
incl 0x8(%r15)
jmp 0xeb21
lock
incl 0x8(%r15)
testq %r13, %r13
je 0xec4a
movq 0x849f(%rip), %rdi      # 0x16fd0
leaq 0x14ff(%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 0x5720
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq 0x8463(%rip), %rdi      # 0x16fd0
callq 0x4190
movq %rax, %r12
leaq 0x1f2f(%rip), %rsi      # 0x10aab
movl $0x1, %edx
movq %rax, %rdi
callq 0x4190
movq 0x30(%r13), %rsi
movq %r12, %rdi
callq 0x40e0
movq %rax, %r12
leaq 0x1ea9(%rip), %rsi      # 0x10a48
movl $0x1f, %edx
movq %rax, %rdi
callq 0x4190
movl 0x38(%r13), %esi
movq %r12, %rdi
callq 0x4220
movq %rax, %r12
leaq 0x1e71(%rip), %rsi      # 0x10a33
movl $0x14, %edx
movq %rax, %rdi
callq 0x4190
leaq 0x8582(%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 0x6838
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 0xec4a
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x4170
testq %r15, %r15
je 0xec57
movq %r15, %rdi
callq 0x57ba
testq %rbx, %rbx
je 0xec64
movq %rbx, %rdi
callq 0x57ba
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xec75
movq %rax, %r14
jmp 0xec9d
jmp 0xec7c
movq %rax, %r14
jmp 0xecc4
movq %rax, %r14
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0xec9d
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x4170
testq %r15, %r15
je 0xecc4
movq %r15, %rdi
callq 0x57ba
jmp 0xecc4
movq %rax, %r14
movq -0x48(%rbp), %rdi
cmpq %r12, %rdi
je 0xecc4
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x4170
testq %rbx, %rbx
je 0xecd1
movq %rbx, %rdi
callq 0x57ba
movq %r14, %rdi
callq 0x4230
nop