// File: /workspace/github_cpp_makefile_star2_O3/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 0xe101
movq (%r14), %rax
movq 0x8(%rax), %r15
movq 0x10(%rax), %rbx
testq %rbx, %rbx
je 0xdf1f
movq 0x90b7(%rip), %rax      # 0x16fc8
cmpb $0x0, (%rax)
je 0xdf1b
incl 0x8(%rbx)
jmp 0xdf1f
lock
incl 0x8(%rbx)
testq %r15, %r15
je 0xdfe7
cmpl $0x3, 0x3c(%r15)
jne 0xdfe7
movq (%r15), %rax
movq %r15, %rdi
callq *0x20(%rax)
testl %eax, %eax
jg 0xdfe7
movl $0xa, %edx
movq 0x9080(%rip), %rdi      # 0x16fd0
leaq 0x2b23(%rip), %rsi      # 0x10a7a
callq 0x4190
movq 0x30(%r15), %rsi
movq 0x9069(%rip), %rdi      # 0x16fd0
callq 0x40e0
movq %rax, %r13
movl $0x9, %edx
movq %rax, %rdi
leaq 0x2b07(%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 0xdfd0
movq 0x9006(%rip), %rax      # 0x16fc8
cmpb $0x0, (%rax)
je 0xdfcc
incl 0x8(%rbx)
jmp 0xdfd0
lock
incl 0x8(%rbx)
leaq -0x50(%rbp), %rsi
callq 0xf286
movq -0x48(%rbp), %rdi
testq %rdi, %rdi
je 0xdfe7
callq 0x57a8
movq (%r14), %rax
movq 0x18(%rax), %r13
movq 0x20(%rax), %r15
testq %r15, %r15
je 0xe00e
movq 0x8fca(%rip), %rax      # 0x16fc8
cmpb $0x0, (%rax)
je 0xe009
incl 0x8(%r15)
jmp 0xe00e
lock
incl 0x8(%r15)
testq %r13, %r13
je 0xe0d9
cmpl $0x3, 0x3c(%r13)
jne 0xe0d9
movq (%r13), %rax
movq %r13, %rdi
callq *0x20(%rax)
testl %eax, %eax
jg 0xe0d9
movl $0xb, %edx
movq 0x8f90(%rip), %rdi      # 0x16fd0
leaq 0x2a48(%rip), %rsi      # 0x10a8f
callq 0x4190
movq 0x30(%r13), %rsi
movq 0x8f79(%rip), %rdi      # 0x16fd0
callq 0x40e0
movq %rax, %r12
movl $0x9, %edx
movq %rax, %rdi
leaq 0x2a17(%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 0xe0c2
movq 0x8f16(%rip), %rax      # 0x16fc8
cmpb $0x0, (%rax)
je 0xe0bd
incl 0x8(%r15)
jmp 0xe0c2
lock
incl 0x8(%r15)
leaq -0x40(%rbp), %rsi
callq 0xf286
movq -0x38(%rbp), %rdi
testq %rdi, %rdi
je 0xe0d9
callq 0x57a8
testq %r15, %r15
je 0xe0e6
movq %r15, %rdi
callq 0x57a8
testq %rbx, %rbx
je 0xe0f3
movq %rbx, %rdi
callq 0x57a8
addq $0x10, %r14
cmpq -0x30(%rbp), %r14
jne 0xdefa
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
testq %r15, %r15
je 0xe125
movq %r15, %rdi
callq 0x57a8
jmp 0xe125
movq %rax, %r14
testq %rbx, %rbx
je 0xe132
movq %rbx, %rdi
callq 0x57a8
movq %r14, %rdi
callq 0x4230