// File: /workspace/github_cpp_makefile_star2_O2/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 %r14
pushq %rbx
subq $0x30, %rsp
movq %rdi, %rbx
movq 0x10(%rdi), %rax
testq %rax, %rax
je 0x794c4
cmpb $0x1, 0xd(%rax)
jne 0x794ae
movl 0x8(%rax), %eax
leal -0x2(%rax), %ecx
cmpl $0x8, %ecx
ja 0x794d8
leaq 0xf49c(%rip), %rax      # 0x88938
movslq (%rax,%rcx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
movq (%rbx), %rcx
addq $0x30, %rcx
jmp 0x794cb
movq (%rbx), %rcx
cmpb $0x1, 0xc(%rax)
jne 0x794be
movq %rbx, %rdi
callq *(%rcx)
jmp 0x794c4
movq %rbx, %rdi
callq *0x8(%rcx)
movq (%rbx), %rcx
addq $0x78, %rcx
movq %rbx, %rdi
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
jmpq *(%rcx)
addl $-0x3c, %eax
cmpl $0x9, %eax
ja 0x7958a
leaq 0xf471(%rip), %rcx      # 0x8895c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x50(%rax)
jmp 0x794c4
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x58(%rax)
jmp 0x794c4
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x70(%rax)
jmp 0x794c4
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x60(%rax)
jmp 0x794c4
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x68(%rax)
jmp 0x794c4
movq (%rbx), %rcx
jmp 0x7954d
movq (%rbx), %rcx
addq $0x40, %rcx
jmp 0x794cb
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x28(%rax)
movq (%rbx), %rcx
testb %al, %al
je 0x794c7
addq $0x20, %rcx
jmp 0x794cb
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x10(%rax)
jmp 0x794c4
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x18(%rax)
jmp 0x794c4
movq (%rbx), %rcx
addq $0x38, %rcx
jmp 0x794cb
movq (%rbx), %rcx
addq $0x48, %rcx
jmp 0x794cb
pushq $0x20
popq %rdi
callq 0x4e180
movq %rax, %rbx
leaq 0xf444(%rip), %rsi      # 0x889e0
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x515e0
movb $0x1, %bpl
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x4ddf0
xorl %ebp, %ebp
movq 0x358dc(%rip), %rsi     # 0xaeea0
movq 0x3566d(%rip), %rdx     # 0xaec38
movq %rbx, %rdi
callq 0x51630
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x4e020
testb %bpl, %bpl
jne 0x795ea
jmp 0x795f2
movq %rax, %r14
movq %rbx, %rdi
callq 0x4ea60
movq %r14, %rdi
callq 0x518c0