// File: /workspace/github_cpp_makefile_star2_O1/rcolomina[P]the_charmed_house/src/operaciones.cpp
// Function: Cardinal::execute()
void Cardinal::execute(){
    //cout<<"existeSalida "<<existeSalida<<endl;
    Logger::instance().log("Entering into Cardinal::execute() method ", Logger::kLogLevelInfo);
	  
    pScene psce=*escena_actual;
     

     
    bool existeSalida=(psce->get_salida(cardinal)!=NULL);
    bool estadoSalida=psce->get_estado_salida(cardinal);


    if(existeSalida and estadoSalida)
    {			
        *escena_actual = (*escena_actual)->get_salida(cardinal);
        primera_entrada=true;
        // cout<<"cambiando de escena"<<endl;
    } 
    else
        cout<<Color::red<<"No puedes ir: "<<cardinal<<Color::def<<endl;					

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rdi, %rbx
callq 0x20d18
movq %rax, %r14
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x8b05(%rip), %rsi      # 0x2ee4b
leaq 0x8b27(%rip), %rdx      # 0x2ee74
leaq 0x8(%rsp), %rdi
callq 0x1a08c
leaq 0x19fba(%rip), %rdx     # 0x40318
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x20f00
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x26382
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x28(%rbx), %rax
movq 0x30(%rbx), %rcx
movq (%rax), %r14
leaq 0x78(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rcx), %rsi
movq 0x8(%rcx), %rdx
addq %rsi, %rdx
leaq 0x68(%rsp), %r15
movq %r15, %rdi
callq 0x1a300
leaq 0x88(%r14), %rdi
movq %r15, %rsi
callq 0x1b9fa
movq (%rax), %r12
movq 0x68(%rsp), %rdi
cmpq %r13, %rdi
je 0x263d6
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x30(%rbx), %rax
leaq 0x58(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x48(%rsp), %r15
movq %r15, %rdi
callq 0x1a300
movq %r14, %rdi
movq %r15, %rsi
callq 0x1b482
movl %eax, %ebp
movq 0x48(%rsp), %rdi
cmpq %r13, %rdi
je 0x2641e
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x5340
testq %r12, %r12
sete %al
xorb $0x1, %bpl
orb %al, %bpl
jne 0x26494
movq 0x28(%rbx), %rax
movq 0x30(%rbx), %rcx
leaq 0x38(%rsp), %r12
movl $0x88, %r14d
addq (%rax), %r14
movq %r12, -0x10(%r12)
movq (%rcx), %rsi
movq 0x8(%rcx), %rdx
addq %rsi, %rdx
leaq 0x28(%rsp), %r15
movq %r15, %rdi
callq 0x1a300
movq %r14, %rdi
movq %r15, %rsi
callq 0x1b9fa
movq (%rax), %rax
movq 0x28(%rbx), %rcx
movq %rax, (%rcx)
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x2648b
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x38(%rbx), %rax
movb $0x1, (%rax)
jmp 0x2650a
movq 0x14b25(%rip), %rdi     # 0x3afc0
leaq 0x1c222(%rip), %rsi     # 0x426c4
callq 0x278e2
movq %rax, %r14
leaq 0x89c4(%rip), %rsi      # 0x2ee75
movl $0xe, %edx
movq %rax, %rdi
callq 0x53a0
movq 0x30(%rbx), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq %r14, %rdi
callq 0x53a0
leaq 0x1c1e8(%rip), %rsi     # 0x426c0
movq %rax, %rdi
callq 0x278e2
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x5300
movsbl %al, %esi
movq %rbx, %rdi
callq 0x5050
movq %rax, %rdi
callq 0x5230
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x26577
movq 0x38(%rsp), %rsi
jmp 0x2656a
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r13, %rdi
je 0x26577
movq 0x58(%rsp), %rsi
jmp 0x2656a
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %r13, %rdi
je 0x26577
movq 0x78(%rsp), %rsi
jmp 0x2656a
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x26577
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5340
jmp 0x26577
movq %rax, %rbx
movq %rbx, %rdi
callq 0x55c0
nop