// File: /workspace/github_cpp_makefile_star2_O1/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 $0x88, %rsp
movq %rdi, %r14
movq %rdx, 0x20(%rsp)
leaq 0x276bc(%rip), %r13     # 0x3c590
cmpb $0x1, (%r13)
movl %esi, %ebx
jne 0x15038
leaq 0x10(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq $0x0, -0x8(%rbp)
movb $0x0, (%rbp)
leaq 0x58(%r14), %r15
movq %rsp, %rsi
movq %r15, %rdi
callq 0x4400
leaq 0x40(%r14), %r12
movq (%rsp), %rdi
cmpq %rbp, %rdi
je 0x14f1f
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x4300
movq 0x40(%r14), %rax
addq -0x18(%rax), %r12
movq %r12, %rdi
xorl %esi, %esi
callq 0x44e0
leaq 0x50(%r14), %rdi
movq %rbx, %rsi
callq 0x41e0
leaq 0x27544(%rip), %rax     # 0x3c488
cmpb $0x1, (%rax)
jne 0x1541e
movq 0x2707c(%rip), %rax     # 0x3bfd0
movq (%rax), %rcx
movq -0x18(%rcx), %rdx
movq $0x12, 0x10(%rax,%rdx)
movq -0x18(%rcx), %rcx
leaq (%rax,%rcx), %r12
cmpb $0x0, 0xe1(%rax,%rcx)
jne 0x14f94
movq %r12, %rdi
movl $0x20, %esi
callq 0x42d0
movb %al, 0xe0(%r12)
movb $0x1, 0xe1(%r12)
movb $0x20, 0xe0(%r12)
leaq 0x38(%rsp), %rax
movq %rax, -0x10(%rax)
movq 0x20(%r14), %rsi
movq 0x28(%r14), %rdx
addq %rsi, %rdx
leaq 0x28(%rsp), %r12
movq %r12, %rdi
callq 0x1430e
leaq 0x1c972(%rip), %rsi     # 0x31937
movq %r12, %rdi
callq 0x4580
leaq 0x68(%rsp), %rdi
movq %r15, %rsi
callq 0x4450
movq 0x28(%rsp), %rcx
movq 0x30(%rsp), %r8
movq 0x70(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
leaq 0x38(%rsp), %rdi
cmpq %rdi, %rcx
je 0x15001
movq 0x38(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x15024
leaq 0x78(%rsp), %rdi
movl $0xf, %esi
cmpq %rdi, -0x10(%rdi)
je 0x1501b
movq 0x78(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x151f5
movq 0x68(%rsp), %rsi
leaq 0x28(%rsp), %rdi
callq 0x4110
jmp 0x15203
leaq 0x27449(%rip), %rax     # 0x3c488
cmpb $0x1, (%rax)
jne 0x1541e
movq 0x26f81(%rip), %rax     # 0x3bfd0
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 0x1508d
movq %r15, %rdi
movl $0x20, %esi
callq 0x42d0
movb %al, 0xe0(%r15)
movb $0x1, 0xe1(%r15)
movb $0x20, 0xe0(%r15)
leaq 0x10(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq 0x20(%r14), %rsi
movq 0x28(%r14), %rdx
addq %rsi, %rdx
movq %rsp, %r15
movq %r15, %rdi
callq 0x1430e
leaq 0x1f3a6(%rip), %rsi     # 0x34461
movq %r15, %rdi
callq 0x4580
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq 0x26efd(%rip), %rdi     # 0x3bfd0
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 0x1511e
movq %r12, %rdi
movl $0x20, %esi
callq 0x42d0
movb %al, 0xe0(%r12)
movb $0x1, 0xe1(%r12)
movb $0x20, 0xe0(%r12)
movq 0x20(%rsp), %rsi
movq %r15, %rdi
callq 0x1caba
movq %rax, %r15
leaq 0x1d87b(%rip), %rsi     # 0x329b9
movl $0x29, %edx
movq %rax, %rdi
callq 0x4340
xorl %eax, %eax
cmpb $0x0, (%r13)
movq 0x238(%r14), %rcx
cmovneq %rbx, %rax
leaq (%rax,%rax,2), %rax
movq 0x8(%rcx,%rax,8), %rsi
subq (%rcx,%rax,8), %rsi
sarq $0x3, %rsi
movq %r15, %rdi
callq 0x41e0
movq %rax, %r15
leaq 0x1c11a(%rip), %rsi     # 0x3129a
movl $0x1, %edx
movq %rax, %rdi
callq 0x4340
leaq 0x27334(%rip), %rax     # 0x3c4c8
movl (%rax), %esi
decl %esi
movq %r15, %rdi
callq 0x4500
movq %rax, %r15
leaq 0x1d8d8(%rip), %rsi     # 0x32a82
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 (%rsp), %rdi
cmpq %rbp, %rdi
je 0x1541e
movq 0x10(%rsp), %rsi
jmp 0x15416
leaq 0x68(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4320
leaq 0x58(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x15227
movq %rsi, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0x1522d
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x50(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x1f210(%rip), %rsi     # 0x34461
leaq 0x48(%rsp), %rdi
callq 0x4580
movq %rbp, (%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1527c
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x15283
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
movq 0x8(%rax), %rdx
movq %rdx, 0x8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq 0x26d25(%rip), %rdi     # 0x3bfd0
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 0x152f6
movq %r12, %rdi
movl $0x20, %esi
callq 0x42d0
movb %al, 0xe0(%r12)
movb $0x1, 0xe1(%r12)
movb $0x20, 0xe0(%r12)
movq 0x20(%rsp), %rsi
movq %r15, %rdi
callq 0x1caba
movq %rax, %r15
leaq 0x1d6a3(%rip), %rsi     # 0x329b9
movl $0x29, %edx
movq %rax, %rdi
callq 0x4340
xorl %eax, %eax
cmpb $0x0, (%r13)
movq 0x238(%r14), %rcx
cmovneq %rbx, %rax
leaq (%rax,%rax,2), %rax
movq 0x8(%rcx,%rax,8), %rsi
subq (%rcx,%rax,8), %rsi
sarq $0x3, %rsi
movq %r15, %rdi
callq 0x41e0
movq %rax, %r15
leaq 0x1bf42(%rip), %rsi     # 0x3129a
movl $0x1, %edx
movq %rax, %rdi
callq 0x4340
leaq 0x2715c(%rip), %rax     # 0x3c4c8
movl (%rax), %esi
decl %esi
movq %r15, %rdi
callq 0x4500
movq %rax, %r15
leaq 0x1d700(%rip), %rsi     # 0x32a82
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 (%rsp), %rdi
cmpq %rbp, %rdi
je 0x153cc
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x4300
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x153e7
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x4300
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x15402
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x4300
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x1541e
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x4300
movb (%r13), %al
movq 0x238(%r14), %rcx
xorl %edx, %edx
testb %al, %al
cmovneq %rbx, %rdx
leaq (%rdx,%rdx,2), %rdx
movq 0x8(%rcx,%rdx,8), %rsi
cmpq (%rcx,%rdx,8), %rsi
jne 0x15480
movq 0x220(%r14), %rcx
xorl %edx, %edx
testb %al, %al
cmovneq %rbx, %rdx
cmpl $0x0, (%rcx,%rdx,4)
jle 0x15469
movq 0x220(%r14), %rcx
xorl %edx, %edx
testb %al, %al
cmovneq %rbx, %rdx
movl (%rcx,%rdx,4), %ecx
jmp 0x1546e
movl $0x1, %ecx
movq 0x220(%r14), %rdx
xorl %esi, %esi
testb %al, %al
cmovneq %rbx, %rsi
movl %ecx, (%rdx,%rsi,4)
movq 0x238(%r14), %rcx
xorl %edx, %edx
testb %al, %al
cmovneq %rbx, %rdx
leaq (%rdx,%rdx,2), %rax
leaq (%rcx,%rax,8), %rdi
movq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
je 0x154b0
movq 0x20(%rsp), %rax
movq %rax, (%rsi)
addq $0x8, 0x8(%rdi)
jmp 0x154ba
leaq 0x20(%rsp), %rdx
callq 0x18056
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x154fa
movq %rax, %rbx
jmp 0x15515
jmp 0x154d8
movq %rax, %rbx
jmp 0x15530
jmp 0x15546
jmp 0x15546
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %rbp, %rdi
je 0x154fa
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x4300
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x15515
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x4300
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x15530
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x4300
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x1555f
movq 0x38(%rsp), %rsi
jmp 0x15557
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %rbp, %rdi
je 0x1555f
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x4300
movq %rbx, %rdi
callq 0x4540
nop