// File: /workspace/github_cpp_makefile_star2_O3/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 0x20ab0
movq %rax, %r14
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x7ce7(%rip), %rsi      # 0x2de53
leaq 0x7d09(%rip), %rdx      # 0x2de7c
leaq 0x8(%rsp), %rdi
callq 0x19e74
leaq 0x19194(%rip), %rdx     # 0x3f318
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x20c92
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x261a8
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 0x1a0b6
leaq 0x88(%r14), %rdi
movq %r15, %rsi
callq 0x1b7a8
movq (%rax), %r12
movq 0x68(%rsp), %rdi
cmpq %r13, %rdi
je 0x261fc
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 0x1a0b6
movq %r14, %rdi
movq %r15, %rsi
callq 0x1b22e
movl %eax, %ebp
movq 0x48(%rsp), %rdi
cmpq %r13, %rdi
je 0x26244
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x5340
testq %r12, %r12
sete %al
xorb $0x1, %bpl
orb %al, %bpl
jne 0x262ba
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 0x1a0b6
movq %r14, %rdi
movq %r15, %rsi
callq 0x1b7a8
movq (%rax), %rax
movq 0x28(%rbx), %rcx
movq %rax, (%rcx)
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x262b1
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x38(%rbx), %rax
movb $0x1, (%rax)
jmp 0x26330
movq 0x13cff(%rip), %rdi     # 0x39fc0
leaq 0x1b3fc(%rip), %rsi     # 0x416c4
callq 0x276b8
movq %rax, %r14
leaq 0x7ba6(%rip), %rsi      # 0x2de7d
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 0x1b3c2(%rip), %rsi     # 0x416c0
movq %rax, %rdi
callq 0x276b8
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 0x2639d
movq 0x38(%rsp), %rsi
jmp 0x26390
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r13, %rdi
je 0x2639d
movq 0x58(%rsp), %rsi
jmp 0x26390
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %r13, %rdi
je 0x2639d
movq 0x78(%rsp), %rsi
jmp 0x26390
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x2639d
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5340
jmp 0x2639d
movq %rax, %rbx
movq %rbx, %rdi
callq 0x55c0
nop