// File: /workspace/github_cpp_makefile_star2_O1/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq 0x10(%rdi), %r14
movq 0x18(%rdi), %rax
movq %rax, -0x30(%rbp)
cmpq %rax, %r14
je 0xe17d
movq (%r14), %rax
movq 0x8(%rax), %r15
movq 0x10(%rax), %rbx
testq %rbx, %rbx
je 0xdf9b
movq 0x903b(%rip), %rax      # 0x16fc8
cmpb $0x0, (%rax)
je 0xdf97
incl 0x8(%rbx)
jmp 0xdf9b
lock
incl 0x8(%rbx)
testq %r15, %r15
je 0xe063
cmpl $0x3, 0x3c(%r15)
jne 0xe063
movq (%r15), %rax
movq %r15, %rdi
callq *0x20(%rax)
testl %eax, %eax
jg 0xe063
movl $0xa, %edx
movq 0x9004(%rip), %rdi      # 0x16fd0
leaq 0x2aa7(%rip), %rsi      # 0x10a7a
callq 0x4190
movq 0x30(%r15), %rsi
movq 0x8fed(%rip), %rdi      # 0x16fd0
callq 0x40e0
movq %rax, %r13
movl $0x9, %edx
movq %rax, %rdi
leaq 0x2a8b(%rip), %rsi      # 0x10a85
callq 0x4190
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x4150
movsbl %al, %esi
movq %r13, %rdi
callq 0x4030
movq %rax, %rdi
callq 0x40f0
movq (%r14), %rdi
movq %r15, -0x50(%rbp)
movq %rbx, -0x48(%rbp)
testq %rbx, %rbx
je 0xe04c
movq 0x8f8a(%rip), %rax      # 0x16fc8
cmpb $0x0, (%rax)
je 0xe048
incl 0x8(%rbx)
jmp 0xe04c
lock
incl 0x8(%rbx)
leaq -0x50(%rbp), %rsi
callq 0xf2ce
movq -0x48(%rbp), %rdi
testq %rdi, %rdi
je 0xe063
callq 0x57ba
movq (%r14), %rax
movq 0x18(%rax), %r13
movq 0x20(%rax), %r15
testq %r15, %r15
je 0xe08a
movq 0x8f4e(%rip), %rax      # 0x16fc8
cmpb $0x0, (%rax)
je 0xe085
incl 0x8(%r15)
jmp 0xe08a
lock
incl 0x8(%r15)
testq %r13, %r13
je 0xe155
cmpl $0x3, 0x3c(%r13)
jne 0xe155
movq (%r13), %rax
movq %r13, %rdi
callq *0x20(%rax)
testl %eax, %eax
jg 0xe155
movl $0xb, %edx
movq 0x8f14(%rip), %rdi      # 0x16fd0
leaq 0x29cc(%rip), %rsi      # 0x10a8f
callq 0x4190
movq 0x30(%r13), %rsi
movq 0x8efd(%rip), %rdi      # 0x16fd0
callq 0x40e0
movq %rax, %r12
movl $0x9, %edx
movq %rax, %rdi
leaq 0x299b(%rip), %rsi      # 0x10a85
callq 0x4190
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x4150
movsbl %al, %esi
movq %r12, %rdi
callq 0x4030
movq %rax, %rdi
callq 0x40f0
movq (%r14), %rdi
movq %r13, -0x40(%rbp)
movq %r15, -0x38(%rbp)
testq %r15, %r15
je 0xe13e
movq 0x8e9a(%rip), %rax      # 0x16fc8
cmpb $0x0, (%rax)
je 0xe139
incl 0x8(%r15)
jmp 0xe13e
lock
incl 0x8(%r15)
leaq -0x40(%rbp), %rsi
callq 0xf2ce
movq -0x38(%rbp), %rdi
testq %rdi, %rdi
je 0xe155
callq 0x57ba
testq %r15, %r15
je 0xe162
movq %r15, %rdi
callq 0x57ba
testq %rbx, %rbx
je 0xe16f
movq %rbx, %rdi
callq 0x57ba
addq $0x10, %r14
cmpq -0x30(%rbp), %r14
jne 0xdf76
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
testq %r15, %r15
je 0xe1a1
movq %r15, %rdi
callq 0x57ba
jmp 0xe1a1
movq %rax, %r14
testq %rbx, %rbx
je 0xe1ae
movq %rbx, %rdi
callq 0x57ba
movq %r14, %rdi
callq 0x4230