// File: /workspace/github_c_makefile_star2_O0/aspone[P]OrderBook/./OrderBook.h
// Function: OrderBook::OrderBook<unsigned int, OrderLevelEntry>::removeOrder(OrderLevelEntry*)
void removeOrder(ORDERTYPE* ole) {
      checkCross();

      // Confirm cancel of existing.  Don't check fields against record on books:
      // wasn't requested.  Trivial to do.
      auto ooit = orders_.find(ole->order_id_);
      if (ooit == orders_.end()) {
         FHErrorTracker::instance()->badCancel();
         delete ole;
         return;
      }

      OrderListMap &map = ooit->second->order_side_ == eS_Buy ? buy_book_map_ : sell_book_map_;

      typename OrderListMap::iterator pit = map.find(ooit->second->order_price_);
      if (pit == map.end()) {
         fprintf(stderr, "OrderBook:: CATASTROPHIC ERROR.  Cancel for order on price level (%llu) not found.  Skipping!\n", ooit->second->order_price_);
         delete ole;
         return;
      }
      pit->second.removeNode(ooit->second);
      delete ooit->second;
      orders_.erase(ooit);
      delete ole;

      if (pit->second.getQuantity() == 0) {
         map.erase(pit);
      }
   }

// Assembly:
subq $0xa8, %rsp
movq %rdi, 0xa0(%rsp)
movq %rsi, 0x98(%rsp)
movq 0xa0(%rsp), %rdi
movq %rdi, 0x48(%rsp)
callq 0xb980
movq 0x48(%rsp), %rdi
addq $0x138, %rdi            # imm = 0x138
movq 0x98(%rsp), %rsi
callq 0xb830
movq 0x48(%rsp), %rdi
movq %rax, 0x90(%rsp)
addq $0x138, %rdi            # imm = 0x138
callq 0xd920
movq %rax, 0x88(%rsp)
leaq 0x90(%rsp), %rdi
leaq 0x88(%rsp), %rsi
callq 0xef70
testb $0x1, %al
jne 0x7d4e
jmp 0x7d7d
callq 0x3a30
movq %rax, %rdi
callq 0xefb0
movq 0x98(%rsp), %rax
movq %rax, 0x40(%rsp)
cmpq $0x0, %rax
je 0x7d78
movq 0x40(%rsp), %rdi
callq 0x21a0
jmp 0x7f49
leaq 0x90(%rsp), %rdi
callq 0x5480
movq 0x8(%rax), %rax
cmpl $0x1, 0x14(%rax)
jne 0x7da6
movq 0x48(%rsp), %rax
addq $0xd8, %rax
movq %rax, 0x38(%rsp)
jmp 0x7db6
movq 0x48(%rsp), %rax
addq $0x108, %rax            # imm = 0x108
movq %rax, 0x38(%rsp)
movq 0x38(%rsp), %rax
movq %rax, 0x80(%rsp)
movq 0x80(%rsp), %rax
movq %rax, 0x30(%rsp)
leaq 0x90(%rsp), %rdi
callq 0x5480
movq 0x30(%rsp), %rdi
movq 0x8(%rax), %rsi
addq $0x8, %rsi
callq 0xb7d0
movq %rax, 0x78(%rsp)
movq 0x80(%rsp), %rdi
callq 0x5310
movq %rax, 0x70(%rsp)
leaq 0x78(%rsp), %rdi
leaq 0x70(%rsp), %rsi
callq 0xb800
testb $0x1, %al
jne 0x7e1b
jmp 0x7e74
movq 0x101b6(%rip), %rax     # 0x17fd8
movq (%rax), %rax
movq %rax, 0x20(%rsp)
leaq 0x90(%rsp), %rdi
callq 0x5480
movq 0x20(%rsp), %rdi
movq 0x8(%rax), %rax
movq 0x8(%rax), %rdx
leaq 0x84ad(%rip), %rsi      # 0x102f8
movb $0x0, %al
callq 0x2260
movq 0x98(%rsp), %rax
movq %rax, 0x28(%rsp)
cmpq $0x0, %rax
je 0x7e6f
movq 0x28(%rsp), %rdi
callq 0x21a0
jmp 0x7f49
leaq 0x78(%rsp), %rdi
callq 0x5340
addq $0x8, %rax
movq %rax, 0x10(%rsp)
leaq 0x90(%rsp), %rdi
callq 0x5480
movq 0x10(%rsp), %rdi
movq 0x8(%rax), %rsi
callq 0x5690
leaq 0x90(%rsp), %rdi
callq 0x5480
movq 0x8(%rax), %rax
movq %rax, 0x18(%rsp)
cmpq $0x0, %rax
je 0x7ec8
movq 0x18(%rsp), %rdi
callq 0x21a0
movq 0x48(%rsp), %rdi
addq $0x138, %rdi            # imm = 0x138
movq 0x90(%rsp), %rax
movq %rax, 0x68(%rsp)
movq 0x68(%rsp), %rsi
callq 0x54a0
movq %rax, 0x60(%rsp)
movq 0x98(%rsp), %rax
movq %rax, 0x8(%rsp)
cmpq $0x0, %rax
je 0x7f0d
movq 0x8(%rsp), %rdi
callq 0x21a0
leaq 0x78(%rsp), %rdi
callq 0x5340
movq %rax, %rdi
addq $0x8, %rdi
callq 0xb820
cmpl $0x0, %eax
jne 0x7f49
movq 0x80(%rsp), %rdi
movq 0x78(%rsp), %rax
movq %rax, 0x58(%rsp)
movq 0x58(%rsp), %rsi
callq 0xb8a0
movq %rax, 0x50(%rsp)
addq $0xa8, %rsp
retq
nopw %cs:(%rax,%rax)
nopl (%rax,%rax)