// File: /workspace/github_cpp_makefile_star2_O3/estwings57[P]CasHMC/sources/CommandQueue.cpp
// Function: CasHMC::CommandQueue::Enqueue(unsigned int, CasHMC::DRAMCommand*)
void CommandQueue::Enqueue(unsigned bank, DRAMCommand *enqCMD)
{
	if(QUE_PER_BANK) {
		classID.str( string() );	classID.clear();
		classID << bank;
		DE_CR(ALI(18)<<(header+"-"+classID.str()+")")<<ALI(15)<<*enqCMD<<"Down) PUSHING command into command queue["<<ACCESSQUE(bank).size()<<"/"<<MAX_CMD_QUE-1<<"]");
	}
	else {
		DE_CR(ALI(18)<<(header+")")<<ALI(15)<<*enqCMD<<"Down) PUSHING command into command queue["<<ACCESSQUE(bank).size()<<"/"<<MAX_CMD_QUE-1<<"]");
	}
	if(ACCESSQUE(bank).size() == 0) {
		POPCYCLE(bank) = (POPCYCLE(bank)>0) ? POPCYCLE(bank) : 1;
	}
	ACCESSQUE(bank).push_back(enqCMD);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rdx, %rbx
movl %esi, 0xc(%rsp)
movq %rdi, %r14
movq %rdx, 0x90(%rsp)
leaq 0x26b52(%rip), %rax     # 0x3b590
cmpb $0x1, (%rax)
jne 0x14ba1
leaq 0x20(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq $0x0, -0x8(%rbp)
movb $0x0, (%rbp)
leaq 0x58(%r14), %r12
leaq 0x10(%rsp), %rsi
movq %r12, %rdi
callq 0x4400
leaq 0x40(%r14), %r15
movq 0x10(%rsp), %rdi
cmpq %rbp, %rdi
je 0x14a88
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x4300
movq 0x40(%r14), %rax
addq -0x18(%rax), %r15
movq %r15, %rdi
xorl %esi, %esi
callq 0x44e0
leaq 0x50(%r14), %rdi
movl 0xc(%rsp), %r15d
movq %r15, %rsi
callq 0x41e0
leaq 0x269d6(%rip), %rax     # 0x3b488
cmpb $0x1, (%rax)
jne 0x14f86
movq 0x2650e(%rip), %rax     # 0x3afd0
movq (%rax), %rcx
movq -0x18(%rcx), %rdx
movq $0x12, 0x10(%rax,%rdx)
movq -0x18(%rcx), %rcx
leaq (%rax,%rcx), %r13
cmpb $0x0, 0xe1(%rax,%rcx)
jne 0x14af9
movq %r13, %rdi
movl $0x20, %esi
callq 0x42d0
movb $0x1, 0xe1(%r13)
movb $0x20, 0xe0(%r13)
leaq 0x40(%rsp), %rax
movq %rax, -0x10(%rax)
movq 0x20(%r14), %rsi
movq 0x28(%r14), %rdx
addq %rsi, %rdx
leaq 0x30(%rsp), %r13
movq %r13, %rdi
callq 0x13ebc
leaq 0x1be6e(%rip), %rsi     # 0x30997
movq %r13, %rdi
callq 0x4580
leaq 0x70(%rsp), %rdi
movq %r12, %rsi
callq 0x4450
movq 0x30(%rsp), %rcx
movq 0x38(%rsp), %r8
movq 0x78(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
leaq 0x40(%rsp), %rsi
cmpq %rsi, %rcx
je 0x14b65
movq 0x40(%rsp), %rdi
movq 0x70(%rsp), %rsi
cmpq %rdi, %rax
jbe 0x14b92
leaq 0x80(%rsp), %r9
movl $0xf, %edi
cmpq %r9, %rsi
je 0x14b89
movq 0x80(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x14d5a
leaq 0x30(%rsp), %rdi
callq 0x4110
jmp 0x14d68
leaq 0x268e0(%rip), %rax     # 0x3b488
cmpb $0x1, (%rax)
jne 0x14f86
movq 0x26418(%rip), %rax     # 0x3afd0
movq (%rax), %rcx
movq -0x18(%rcx), %rdx
movq $0x12, 0x10(%rax,%rdx)
movq -0x18(%rcx), %rcx
leaq (%rax,%rcx), %r15
cmpb $0x0, 0xe1(%rax,%rcx)
jne 0x14bef
movq %r15, %rdi
movl $0x20, %esi
callq 0x42d0
movb $0x1, 0xe1(%r15)
movb $0x20, 0xe0(%r15)
leaq 0x20(%rsp), %r13
movq %r13, -0x10(%r13)
movq 0x20(%r14), %rsi
movq 0x28(%r14), %rdx
addq %rsi, %rdx
leaq 0x10(%rsp), %r15
movq %r15, %rdi
callq 0x13ebc
leaq 0x1e8c2(%rip), %rsi     # 0x334e1
movq %r15, %rdi
callq 0x4580
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq 0x26398(%rip), %rdi     # 0x3afd0
callq 0x4340
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rcx
movq $0xf, 0x10(%r15,%rcx)
movq -0x18(%rax), %rax
movq %r15, %r12
addq %rax, %r12
cmpb $0x0, 0xe1(%r15,%rax)
jne 0x14c7b
movq %r12, %rdi
movl $0x20, %esi
callq 0x42d0
movb $0x1, 0xe1(%r12)
movb $0x20, 0xe0(%r12)
movq %r15, %rdi
movq %rbx, %rsi
callq 0x1c32a
movq %rax, %r15
leaq 0x1cd90(%rip), %rsi     # 0x31a29
movl $0x29, %edx
movq %rax, %rdi
callq 0x4340
movl 0xc(%rsp), %eax
xorl %ecx, %ecx
leaq 0x268dd(%rip), %rdx     # 0x3b590
cmpb $0x0, (%rdx)
movq 0x238(%r14), %rdx
cmovneq %rax, %rcx
leaq (%rcx,%rcx,2), %rax
movq 0x8(%rdx,%rax,8), %rsi
subq (%rdx,%rax,8), %rsi
sarq $0x3, %rsi
movq %r15, %rdi
callq 0x41e0
movq %rax, %r15
leaq 0x1b616(%rip), %rsi     # 0x302fa
movl $0x1, %edx
movq %rax, %rdi
callq 0x4340
leaq 0x267d0(%rip), %rax     # 0x3b4c8
movl (%rax), %esi
decl %esi
movq %r15, %rdi
callq 0x4500
movq %rax, %r15
leaq 0x1cde4(%rip), %rsi     # 0x31af2
movl $0x1, %edx
movq %rax, %rdi
callq 0x4340
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x42d0
movsbl %al, %esi
movq %r15, %rdi
callq 0x4040
movq %rax, %rdi
callq 0x41f0
movq 0x10(%rsp), %rdi
cmpq %r13, %rdi
je 0x14f86
movq 0x20(%rsp), %rsi
jmp 0x14f7e
leaq 0x70(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4320
leaq 0x60(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x14d8c
movq %rsi, 0x50(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x60(%rsp)
jmp 0x14d92
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x58(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x1e72b(%rip), %rsi     # 0x334e1
leaq 0x50(%rsp), %rdi
callq 0x4580
movq %rbp, 0x10(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x14de3
movq %rdx, 0x10(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x20(%rsp)
jmp 0x14dea
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
movq 0x8(%rax), %rdx
movq %rdx, 0x18(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq 0x261bd(%rip), %rdi     # 0x3afd0
callq 0x4340
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rcx
movq $0xf, 0x10(%r12,%rcx)
movq -0x18(%rax), %rax
movq %r12, %r13
addq %rax, %r13
cmpb $0x0, 0xe1(%r12,%rax)
jne 0x14e55
movq %r13, %rdi
movl $0x20, %esi
callq 0x42d0
movb $0x1, 0xe1(%r13)
movb $0x20, 0xe0(%r13)
movq %r12, %rdi
movq %rbx, %rsi
callq 0x1c32a
movq %rax, %r12
leaq 0x1cbb7(%rip), %rsi     # 0x31a29
movl $0x29, %edx
movq %rax, %rdi
callq 0x4340
xorl %eax, %eax
leaq 0x26708(%rip), %rcx     # 0x3b590
cmpb $0x0, (%rcx)
movq 0x238(%r14), %rcx
cmovneq %r15, %rax
leaq (%rax,%rax,2), %rax
movq 0x8(%rcx,%rax,8), %rsi
subq (%rcx,%rax,8), %rsi
sarq $0x3, %rsi
movq %r12, %rdi
callq 0x41e0
movq %rax, %r15
leaq 0x1b441(%rip), %rsi     # 0x302fa
movl $0x1, %edx
movq %rax, %rdi
callq 0x4340
leaq 0x265fb(%rip), %rax     # 0x3b4c8
movl (%rax), %esi
decl %esi
movq %r15, %rdi
callq 0x4500
movq %rax, %r15
leaq 0x1cc0f(%rip), %rsi     # 0x31af2
movl $0x1, %edx
movq %rax, %rdi
callq 0x4340
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x42d0
movsbl %al, %esi
movq %r15, %rdi
callq 0x4040
movq %rax, %rdi
callq 0x41f0
movq 0x10(%rsp), %rdi
cmpq %rbp, %rdi
je 0x14f2e
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x4300
leaq 0x60(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x14f49
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x4300
leaq 0x80(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x14f6a
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x4300
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x14f86
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x4300
leaq 0x26603(%rip), %rax     # 0x3b590
cmpb $0x1, (%rax)
jne 0x14fce
movl 0xc(%rsp), %eax
movq 0x238(%r14), %rcx
leaq (%rax,%rax,2), %rdx
movq 0x8(%rcx,%rdx,8), %rsi
cmpq (%rcx,%rdx,8), %rsi
jne 0x14fc4
movq 0x220(%r14), %rdx
movl (%rdx,%rax,4), %esi
cmpl $0x2, %esi
movl $0x1, %edi
cmovgel %esi, %edi
movl %edi, (%rdx,%rax,4)
leaq (%rax,%rax,2), %rax
leaq (%rcx,%rax,8), %rdi
jmp 0x14ff4
movq 0x238(%r14), %rdi
movq 0x8(%rdi), %rax
cmpq (%rdi), %rax
jne 0x14ff4
movq 0x220(%r14), %rax
movl (%rax), %ecx
cmpl $0x2, %ecx
movl $0x1, %edx
cmovgel %ecx, %edx
movl %edx, (%rax)
movq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
je 0x15008
movq %rbx, (%rsi)
addq $0x8, 0x8(%rdi)
jmp 0x15015
leaq 0x90(%rsp), %rdx
callq 0x17874
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x15066
movq %rax, %rbx
jmp 0x15081
jmp 0x15033
movq %rax, %rbx
jmp 0x150a2
jmp 0x150b8
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %rbp, %rdi
jne 0x150c5
jmp 0x150d2
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %rbp, %rdi
je 0x15066
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x4300
leaq 0x60(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x15081
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x4300
leaq 0x80(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x150a2
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x4300
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x150d2
movq 0x40(%rsp), %rsi
jmp 0x150ca
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %r13, %rdi
je 0x150d2
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x4300
movq %rbx, %rdi
callq 0x4540