// File: /workspace/github_cpp_makefile_star2_O3/estwings57[P]CasHMC/sources/VaultController.cpp
// Function: CasHMC::VaultController::CallbackReceiveUp(CasHMC::Packet*, bool)
void VaultController::CallbackReceiveUp(Packet *upEle, bool chkReceive)
{
	if(chkReceive) {
		switch(upEle->CMD) {
			case RD_RS:	DE_CR(ALI(18)<<header<<ALI(15)<<*upEle<<"Up)   RETURNING read data response packet");	break;
			case WR_RS:	DE_CR(ALI(18)<<header<<ALI(15)<<*upEle<<"Up)   RETURNING write response packet");		break;
			default:
				ERROR(header<<"  == Error - WRONG response packet command type  "<<*upEle<<"  (CurrentClock : "<<currentClockCycle<<")");
				exit(0);
				break;
		}
	}
	else {
		ERROR(header<<"  == Error - Vault controller upstream packet buffer FULL  "<<*upEle<<"  (CurrentClock : "<<currentClockCycle<<")");
		ERROR(header<<"             Vault buffer max size : "<<upBufferMax<<", current size : "<<upBuffers.size()<<", "<<*upEle<<" size : "<<upEle->LNG);
		exit(0);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
testl %edx, %edx
je 0x2d0f2
movl 0x434(%rbx), %eax
cmpl $0x39, %eax
je 0x2cfdf
cmpl $0x38, %eax
jne 0x2d272
leaq 0xe56e(%rip), %rax      # 0x3b488
cmpb $0x1, (%rax)
jne 0x2d0e3
movq 0xe0a6(%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 0x2cf61
movq %r15, %rdi
movl $0x20, %esi
callq 0x42d0
movb $0x1, 0xe1(%r15)
movb $0x20, 0xe0(%r15)
movq 0x20(%r14), %rsi
movq 0x28(%r14), %rdx
movq 0xe058(%rip), %rdi      # 0x3afd0
callq 0x4340
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rcx
movq $0xf, 0x10(%r14,%rcx)
movq -0x18(%rax), %rax
leaq (%r14,%rax), %r15
cmpb $0x0, 0xe1(%r14,%rax)
jne 0x2cfb8
movq %r15, %rdi
movl $0x20, %esi
callq 0x42d0
movb $0x1, 0xe1(%r15)
movb $0x20, 0xe0(%r15)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x28270
movq %rax, %rbx
leaq 0x6beb(%rip), %rsi      # 0x33bc0
movl $0x29, %edx
jmp 0x2d0a6
leaq 0xe4a2(%rip), %rax      # 0x3b488
cmpb $0x1, (%rax)
jne 0x2d0e3
movq 0xdfda(%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 0x2d02d
movq %r15, %rdi
movl $0x20, %esi
callq 0x42d0
movb $0x1, 0xe1(%r15)
movb $0x20, 0xe0(%r15)
movq 0x20(%r14), %rsi
movq 0x28(%r14), %rdx
movq 0xdf8c(%rip), %rdi      # 0x3afd0
callq 0x4340
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rcx
movq $0xf, 0x10(%r14,%rcx)
movq -0x18(%rax), %rax
leaq (%r14,%rax), %r15
cmpb $0x0, 0xe1(%r14,%rax)
jne 0x2d084
movq %r15, %rdi
movl $0x20, %esi
callq 0x42d0
movb $0x1, 0xe1(%r15)
movb $0x20, 0xe0(%r15)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x28270
movq %rax, %rbx
leaq 0x6b49(%rip), %rsi      # 0x33bea
movl $0x25, %edx
movq %rax, %rdi
callq 0x4340
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x42d0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4040
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x41f0
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0xdef7(%rip), %rdi      # 0x3aff0
leaq 0x2f22(%rip), %rsi      # 0x30022
callq 0x42e0
leaq 0x6b04(%rip), %r13      # 0x33c10
movq %rax, %rdi
movq %r13, %rsi
callq 0x42e0
leaq 0x3779(%rip), %rbp      # 0x30897
movq %rax, %rdi
movq %rbp, %rsi
callq 0x42e0
movq %rax, %rdi
movl $0x4b, %esi
callq 0x4500
leaq 0x2f04(%rip), %r15      # 0x30041
movq %rax, %rdi
movq %r15, %rsi
callq 0x42e0
leaq 0x20(%r14), %r12
movq %rax, %rdi
movq %r12, %rsi
callq 0x4290
leaq 0x6b00(%rip), %rsi      # 0x33c5e
movq %rax, %rdi
callq 0x42e0
movq %rax, %rdi
movq %rbx, %rsi
callq 0x28270
leaq 0x6b93(%rip), %rsi      # 0x33d0b
movq %rax, %rdi
callq 0x42e0
movq 0x8(%r14), %rsi
movq %rax, %rdi
callq 0x40c0
leaq 0x634e(%rip), %rsi      # 0x334e1
movq %rax, %rdi
callq 0x42e0
movq %rax, %rdi
callq 0x4170
movq 0xde46(%rip), %rdi      # 0x3aff0
leaq 0x2e71(%rip), %rsi      # 0x30022
callq 0x42e0
movq %rax, %rdi
movq %r13, %rsi
callq 0x42e0
movq %rax, %rdi
movq %rbp, %rsi
callq 0x42e0
movq %rax, %rdi
movl $0x4c, %esi
callq 0x4500
movq %rax, %rdi
movq %r15, %rsi
callq 0x42e0
movq %rax, %rdi
movq %r12, %rsi
callq 0x4290
leaq 0x6aa4(%rip), %rsi      # 0x33c9a
movq %rax, %rdi
callq 0x42e0
movl 0x1cc(%r14), %esi
movq %rax, %rdi
callq 0x4500
leaq 0x6aac(%rip), %rsi      # 0x33cc0
movq %rax, %rdi
callq 0x42e0
movq 0x1f0(%r14), %rsi
subq 0x1e8(%r14), %rsi
sarq $0x3, %rsi
movq %rax, %rdi
callq 0x40c0
leaq 0x6a95(%rip), %rsi      # 0x33cd2
movq %rax, %rdi
callq 0x42e0
movq %rax, %rdi
movq %rbx, %rsi
callq 0x28270
leaq 0x540e(%rip), %rsi      # 0x32665
movq %rax, %rdi
callq 0x42e0
movl 0x430(%rbx), %esi
movq %rax, %rdi
callq 0x43a0
jmp 0x2d30f
movq 0xdd77(%rip), %rdi      # 0x3aff0
leaq 0x2da2(%rip), %rsi      # 0x30022
callq 0x42e0
leaq 0x6984(%rip), %rsi      # 0x33c10
movq %rax, %rdi
callq 0x42e0
leaq 0x35fc(%rip), %rsi      # 0x30897
movq %rax, %rdi
callq 0x42e0
movq %rax, %rdi
movl $0x45, %esi
callq 0x4500
leaq 0x2d8a(%rip), %rsi      # 0x30041
movq %rax, %rdi
callq 0x42e0
leaq 0x20(%r14), %rsi
movq %rax, %rdi
callq 0x4290
leaq 0x695a(%rip), %rsi      # 0x33c2c
movq %rax, %rdi
callq 0x42e0
movq %rax, %rdi
movq %rbx, %rsi
callq 0x28270
leaq 0x6a1f(%rip), %rsi      # 0x33d0b
movq %rax, %rdi
callq 0x42e0
movq 0x8(%r14), %rsi
movq %rax, %rdi
callq 0x40c0
leaq 0x61da(%rip), %rsi      # 0x334e1
movq %rax, %rdi
callq 0x42e0
movq %rax, %rdi
callq 0x4170
xorl %edi, %edi
callq 0x4360