// File: Worthy-Wang[P]Warcraft3-StartWar/warcraftWorld.cpp
// Function: warcraft::WarcraftWorld::lionRun()
void WarcraftWorld::lionRun()
{
    for (auto &e : _citys)
    {
        WarriorPtr redWarrior = e->getRedWarrior();
        if (redWarrior.get() && LION == redWarrior->getType() && redWarrior->getLoyalty() <= 0)
        {
            cout << " red lion " << redWarrior->getId() << " run away" << endl;
            e->detach(redWarrior);
        }

        WarriorPtr blueWarrior = e->getBlueWarrior();
        if (blueWarrior.get() && LION == blueWarrior->getType() && blueWarrior->getLoyalty() <= 0)
        {
            cout << " blue lion " << blueWarrior->getId() << " run away" << endl;
            e->detach(blueWarrior);
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xf0, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x10, %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rdi
callq 0x1c2b0
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rdi
callq 0x1c2e0
movq %rax, -0x20(%rbp)
leaq -0x18(%rbp), %rdi
leaq -0x20(%rbp), %rsi
callq 0x1c310
testb $0x1, %al
jne 0x1a55b
jmp 0x1a870
leaq -0x18(%rbp), %rdi
callq 0x1c350
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rdi
callq 0x1c230
movq %rax, %rsi
leaq -0x38(%rbp), %rdi
callq 0x1c250
leaq -0x38(%rbp), %rdi
callq 0x5d90
cmpq $0x0, %rax
je 0x1a6ce
leaq -0x38(%rbp), %rdi
callq 0x5db0
movq %rax, %rdi
callq 0xebc0
movl %eax, -0x7c(%rbp)
jmp 0x1a5a6
movl -0x7c(%rbp), %ecx
movl $0x3, %eax
cmpl %ecx, %eax
jne 0x1a6ce
leaq -0x38(%rbp), %rdi
callq 0x5db0
movq %rax, %rdi
movq (%rdi), %rax
movq 0x20(%rax), %rax
callq *%rax
movl %eax, -0x80(%rbp)
jmp 0x1a5d0
movl -0x80(%rbp), %eax
cmpl $0x0, %eax
jg 0x1a6ce
movq 0x129ed(%rip), %rdi     # 0x2cfd0
leaq 0x4460(%rip), %rsi      # 0x1ea4a
callq 0x4180
movq %rax, -0x88(%rbp)
jmp 0x1a5f8
leaq -0x38(%rbp), %rdi
callq 0x5db0
movq %rax, %rdi
callq 0x6220
movq %rax, -0x90(%rbp)
jmp 0x1a612
movq -0x90(%rbp), %rsi
movq -0x88(%rbp), %rdi
callq 0x4060
movq %rax, -0x98(%rbp)
jmp 0x1a62e
movq -0x98(%rbp), %rdi
leaq 0x4419(%rip), %rsi      # 0x1ea55
callq 0x4180
movq %rax, -0xa0(%rbp)
jmp 0x1a64a
movq -0xa0(%rbp), %rdi
movq 0x12960(%rip), %rsi     # 0x2cfb8
callq 0x41c0
jmp 0x1a65f
movq -0x28(%rbp), %rdi
callq 0x1c230
movq %rax, -0xb0(%rbp)
leaq -0x58(%rbp), %rdi
movq %rdi, -0xa8(%rbp)
leaq -0x38(%rbp), %rsi
callq 0x6640
movq -0xb0(%rbp), %rdi
movq -0xa8(%rbp), %rsi
callq 0x1c390
jmp 0x1a698
leaq -0x58(%rbp), %rdi
callq 0x6670
jmp 0x1a6ce
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x1a865
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x58(%rbp), %rdi
callq 0x6670
jmp 0x1a865
movq -0x28(%rbp), %rdi
callq 0x1c230
movq %rax, %rsi
leaq -0x68(%rbp), %rdi
callq 0x1c280
jmp 0x1a6e5
leaq -0x68(%rbp), %rdi
callq 0x5d90
cmpq $0x0, %rax
je 0x1a83c
leaq -0x68(%rbp), %rdi
callq 0x5db0
movq %rax, %rdi
callq 0xebc0
movl %eax, -0xb4(%rbp)
jmp 0x1a711
movl -0xb4(%rbp), %ecx
movl $0x3, %eax
cmpl %ecx, %eax
jne 0x1a83c
leaq -0x68(%rbp), %rdi
callq 0x5db0
movq %rax, %rdi
movq (%rdi), %rax
movq 0x20(%rax), %rax
callq *%rax
movl %eax, -0xb8(%rbp)
jmp 0x1a741
movl -0xb8(%rbp), %eax
cmpl $0x0, %eax
jg 0x1a83c
movq 0x12879(%rip), %rdi     # 0x2cfd0
leaq 0x4301(%rip), %rsi      # 0x1ea5f
callq 0x4180
movq %rax, -0xc0(%rbp)
jmp 0x1a76c
leaq -0x68(%rbp), %rdi
callq 0x5db0
movq %rax, %rdi
callq 0x6220
movq %rax, -0xc8(%rbp)
jmp 0x1a786
movq -0xc8(%rbp), %rsi
movq -0xc0(%rbp), %rdi
callq 0x4060
movq %rax, -0xd0(%rbp)
jmp 0x1a7a2
movq -0xd0(%rbp), %rdi
leaq 0x42a5(%rip), %rsi      # 0x1ea55
callq 0x4180
movq %rax, -0xd8(%rbp)
jmp 0x1a7be
movq -0xd8(%rbp), %rdi
movq 0x127ec(%rip), %rsi     # 0x2cfb8
callq 0x41c0
jmp 0x1a7d3
movq -0x28(%rbp), %rdi
callq 0x1c230
movq %rax, -0xe8(%rbp)
leaq -0x78(%rbp), %rdi
movq %rdi, -0xe0(%rbp)
leaq -0x68(%rbp), %rsi
callq 0x6640
movq -0xe8(%rbp), %rdi
movq -0xe0(%rbp), %rsi
callq 0x1c390
jmp 0x1a80c
leaq -0x78(%rbp), %rdi
callq 0x6670
jmp 0x1a83c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x1a85c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x78(%rbp), %rdi
callq 0x6670
jmp 0x1a85c
leaq -0x68(%rbp), %rdi
callq 0x6670
leaq -0x38(%rbp), %rdi
callq 0x6670
leaq -0x18(%rbp), %rdi
callq 0x1c370
jmp 0x1a545
leaq -0x68(%rbp), %rdi
callq 0x6670
leaq -0x38(%rbp), %rdi
callq 0x6670
jmp 0x1a879
addq $0xf0, %rsp
popq %rbp
retq
movq -0x40(%rbp), %rdi
callq 0x4300
nopw %cs:(%rax,%rax)