// File: /workspace/github_cpp_makefile_star2_O3/jstaursky[P]hutch/src/Sleigh/emulate.cc
// Function: Emulate::executeCurrentOp()
void Emulate::executeCurrentOp(void)

{
  if (currentBehave == (OpBehavior *)0) {	// Presumably a NO-OP
    fallthruOp();
    return;
  }
  if (currentBehave->isSpecial()) {
    switch(currentBehave->getOpcode()) {
    case CPUI_LOAD:
      executeLoad();
      fallthruOp();
      break;
    case CPUI_STORE:
      executeStore();
      fallthruOp();
      break;
    case CPUI_BRANCH:
      executeBranch();
      break;
    case CPUI_CBRANCH:
      if (executeCbranch())
	executeBranch();
      else
	fallthruOp();
      break;
    case CPUI_BRANCHIND:
      executeBranchind();
      break;
    case CPUI_CALL:
      executeCall();
      break;
    case CPUI_CALLIND:
      executeCallind();
      break;
    case CPUI_CALLOTHER:
      executeCallother();
      break;
    case CPUI_RETURN:
      executeBranchind();
      break;
    case CPUI_MULTIEQUAL:
      executeMultiequal();
      fallthruOp();
      break;
    case CPUI_INDIRECT:
      executeIndirect();
      fallthruOp();
      break;
    case CPUI_SEGMENTOP:
      executeSegmentOp();
      fallthruOp();
      break;
    case CPUI_CPOOLREF:
      executeCpoolRef();
      fallthruOp();
      break;
    case CPUI_NEW:
      executeNew();
      fallthruOp();
      break;
    default:
      throw LowlevelError("Bad special op");
    }
  }
  else if (currentBehave->isUnary()) {	// Unary operation
    executeUnary();
    fallthruOp();
  }
  else {			// Binary operation
    executeBinary();
    fallthruOp();		// All binary ops are fallthrus
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movq 0x10(%rdi), %rax
testq %rax, %rax
je 0x71498
cmpb $0x1, 0xd(%rax)
jne 0x71482
movl 0x8(%rax), %eax
leal -0x2(%rax), %ecx
cmpl $0x8, %ecx
ja 0x714ae
leaq 0x104f4(%rip), %rax     # 0x81964
movslq (%rax,%rcx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
movq (%rbx), %rcx
addq $0x30, %rcx
jmp 0x7149f
movq (%rbx), %rcx
cmpb $0x1, 0xc(%rax)
jne 0x71492
movq %rbx, %rdi
callq *(%rcx)
jmp 0x71498
movq %rbx, %rdi
callq *0x8(%rcx)
movq (%rbx), %rcx
addq $0x78, %rcx
movq %rbx, %rdi
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmpq *(%rcx)
addl $-0x3c, %eax
cmpl $0x9, %eax
ja 0x71560
leaq 0x104c7(%rip), %rcx     # 0x81988
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x50(%rax)
jmp 0x71498
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x58(%rax)
jmp 0x71498
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x70(%rax)
jmp 0x71498
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x60(%rax)
jmp 0x71498
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x68(%rax)
jmp 0x71498
movq (%rbx), %rcx
jmp 0x71523
movq (%rbx), %rcx
addq $0x40, %rcx
jmp 0x7149f
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x28(%rax)
movq (%rbx), %rcx
testb %al, %al
je 0x7149b
addq $0x20, %rcx
jmp 0x7149f
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x10(%rax)
jmp 0x71498
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x18(%rax)
jmp 0x71498
movq (%rbx), %rcx
addq $0x38, %rcx
jmp 0x7149f
movq (%rbx), %rcx
addq $0x48, %rcx
jmp 0x7149f
movl $0x20, %edi
callq 0x3fb00
movq %rax, %rbx
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x1048f(%rip), %rsi     # 0x81a0c
leaq 0x10496(%rip), %rdx     # 0x81a1a
leaq 0x8(%rsp), %rdi
callq 0x3f8a0
movb $0x1, %bpl
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x3f890
xorl %ebp, %ebp
movq 0x31901(%rip), %rsi     # 0xa2ea8
movq 0x3168a(%rip), %rdx     # 0xa2c38
movq %rbx, %rdi
callq 0x41d70
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x715d0
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x40880
testb %bpl, %bpl
jne 0x715da
jmp 0x715e2
movq %rax, %r14
movq %rbx, %rdi
callq 0x40090
movq %r14, %rdi
callq 0x41f10