// File: /workspace/github_cpp_makefile_star2_O1/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 0x71726
cmpb $0x1, 0xd(%rax)
jne 0x71710
movl 0x8(%rax), %eax
leal -0x2(%rax), %ecx
cmpl $0x8, %ecx
ja 0x7173c
leaq 0x10266(%rip), %rax     # 0x81964
movslq (%rax,%rcx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
movq (%rbx), %rcx
addq $0x30, %rcx
jmp 0x7172d
movq (%rbx), %rcx
cmpb $0x1, 0xc(%rax)
jne 0x71720
movq %rbx, %rdi
callq *(%rcx)
jmp 0x71726
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 0x717ee
leaq 0x10239(%rip), %rcx     # 0x81988
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x50(%rax)
jmp 0x71726
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x58(%rax)
jmp 0x71726
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x70(%rax)
jmp 0x71726
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x60(%rax)
jmp 0x71726
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x68(%rax)
jmp 0x71726
movq (%rbx), %rcx
jmp 0x717b1
movq (%rbx), %rcx
addq $0x40, %rcx
jmp 0x7172d
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x28(%rax)
movq (%rbx), %rcx
testb %al, %al
je 0x71729
addq $0x20, %rcx
jmp 0x7172d
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x10(%rax)
jmp 0x71726
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x18(%rax)
jmp 0x71726
movq (%rbx), %rcx
addq $0x38, %rcx
jmp 0x7172d
movq (%rbx), %rcx
addq $0x48, %rcx
jmp 0x7172d
movl $0x20, %edi
callq 0x3fb00
movq %rax, %rbx
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x10201(%rip), %rsi     # 0x81a0c
leaq 0x10208(%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 0x31673(%rip), %rsi     # 0xa2ea8
movq 0x313fc(%rip), %rdx     # 0xa2c38
movq %rbx, %rdi
callq 0x41d60
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x71866
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x40870
jmp 0x71866
movq %rax, %r14
movb $0x1, %bpl
testb %bpl, %bpl
je 0x71873
movq %rbx, %rdi
callq 0x40080
movq %r14, %rdi
callq 0x41f00
nop