// File: /workspace/github_cpp_makefile_star2_O1/estwings57[P]CasHMC/sources/CrossbarSwitch.cpp
// Function: CasHMC::CrossbarSwitch::PrintState()
void CrossbarSwitch::PrintState()
{
	int realInd = 0;
	if(downBuffers.size()>0) {
		STATEN(ALI(17)<<header);
		STATEN("Down ");
		for(int i=0; i<downBufferMax; i++) {
			if(i>0 && i%8==0) {
				STATEN(endl<<"                      ");
			}
			if(i < downBuffers.size()) {
				if(downBuffers[i] != NULL)	realInd = i;
				STATEN(*downBuffers[realInd]);
			}
			else if(i == downBufferMax-1) {
				STATEN("[ - ]");
			}
			else {
				STATEN("[ - ]...");
				break;
			}
		}
		STATEN(endl);
	}
	
	if(upBuffers.size()>0) {
		STATEN(ALI(17)<<header);
		STATEN(" Up  ");
		if(upBuffers.size() < upBufferMax) {
			for(int i=0; i<upBufferMax; i++) {
				if(i>0 && i%8==0) {
					STATEN(endl<<"                      ");
				}
				if(i < upBuffers.size()) {
					if(upBuffers[i] != NULL)	realInd = i;
					STATEN(*upBuffers[realInd]);
				}
				else if(i == upBufferMax-1) {
					STATEN("[ - ]");
				}
				else {
					STATEN("[ - ]...");
					break;
				}
			}
		}
		else {
			for(int i=0; i<upBuffers.size(); i++) {
				if(i>0 && i%8==0) {
					STATEN(endl<<"                      ");
				}
				if(upBuffers[i] != NULL)	realInd = i;
				STATEN(*upBuffers[realInd]);
			}
		}
		STATEN(endl);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x1d8(%rdi), %rax
cmpq 0x1d0(%rdi), %rax
je 0x1a34a
leaq 0x222af(%rip), %r13     # 0x3c48a
cmpb $0x1, (%r13)
jne 0x1a243
movq 0x21de7(%rip), %rax     # 0x3bfd0
movq (%rax), %rcx
movq -0x18(%rcx), %rdx
movq $0x11, 0x10(%rax,%rdx)
movq -0x18(%rcx), %rcx
leaq (%rax,%rcx), %r14
cmpb $0x0, 0xe1(%rax,%rcx)
jne 0x1a227
movq %r14, %rdi
movl $0x20, %esi
callq 0x42d0
movb %al, 0xe0(%r14)
movb $0x1, 0xe1(%r14)
movb $0x20, 0xe0(%r14)
movq 0x20(%rbx), %rsi
movq 0x28(%rbx), %rdx
movq 0x21d92(%rip), %rdi     # 0x3bfd0
callq 0x4340
cmpb $0x1, (%r13)
jne 0x1a262
movq 0x21d7f(%rip), %rdi     # 0x3bfd0
leaq 0x18cb4(%rip), %rsi     # 0x32f0c
movl $0x5, %edx
callq 0x4340
cmpl $0x0, 0x1c8(%rbx)
jle 0x1a34e
xorl %r12d, %r12d
movq 0x21d57(%rip), %r14     # 0x3bfd0
leaq 0x187e7(%rip), %r15     # 0x32a67
xorl %ebp, %ebp
testq %r12, %r12
sete %al
testb $0x7, %r12b
setne %cl
orb %al, %cl
jne 0x1a2d1
cmpb $0x1, (%r13)
jne 0x1a2d1
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x42d0
movsbl %al, %esi
movq %r14, %rdi
callq 0x4040
movq %rax, %rdi
callq 0x41f0
movl $0x16, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x4340
movq 0x1d0(%rbx), %rax
movq 0x1d8(%rbx), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %r12, %rcx
jbe 0x1a30c
cmpq $0x0, (%rax,%r12,8)
cmovnel %r12d, %ebp
cmpb $0x1, (%r13)
jne 0x1a335
movslq %ebp, %rcx
movq (%rax,%rcx,8), %rsi
movq %r14, %rdi
callq 0x28bbe
jmp 0x1a335
movl 0x1c8(%rbx), %ecx
decl %ecx
movb (%r13), %al
cmpq %rcx, %r12
jne 0x1a352
testb %al, %al
je 0x1a335
movl $0x5, %edx
movq %r14, %rdi
leaq 0x1874e(%rip), %rsi     # 0x32a7e
callq 0x4340
incq %r12
movslq 0x1c8(%rbx), %rax
cmpq %rax, %r12
jl 0x1a282
jmp 0x1a36e
xorl %ebp, %ebp
jmp 0x1a3a3
xorl %ebp, %ebp
jmp 0x1a36e
testb %al, %al
je 0x1a36e
movq 0x21c73(%rip), %rdi     # 0x3bfd0
leaq 0x18720(%rip), %rsi     # 0x32a84
movl $0x8, %edx
callq 0x4340
cmpb $0x1, (%r13)
jne 0x1a3a3
movq 0x21c54(%rip), %r14     # 0x3bfd0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x42d0
movsbl %al, %esi
movq %r14, %rdi
callq 0x4040
movq %rax, %rdi
callq 0x41f0
movq 0x1f0(%rbx), %rax
cmpq 0x1e8(%rbx), %rax
je 0x1a64f
leaq 0x220cc(%rip), %r13     # 0x3c48a
cmpb $0x1, (%r13)
jne 0x1a426
movq 0x21c04(%rip), %rax     # 0x3bfd0
movq (%rax), %rcx
movq -0x18(%rcx), %rdx
movq $0x11, 0x10(%rax,%rdx)
movq -0x18(%rcx), %rcx
leaq (%rax,%rcx), %r14
cmpb $0x0, 0xe1(%rax,%rcx)
jne 0x1a40a
movq %r14, %rdi
movl $0x20, %esi
callq 0x42d0
movb %al, 0xe0(%r14)
movb $0x1, 0xe1(%r14)
movb $0x20, 0xe0(%r14)
movq 0x20(%rbx), %rsi
movq 0x28(%rbx), %rdx
movq 0x21baf(%rip), %rdi     # 0x3bfd0
callq 0x4340
cmpb $0x1, (%r13)
jne 0x1a445
movq 0x21b9c(%rip), %rdi     # 0x3bfd0
leaq 0x18ad7(%rip), %rsi     # 0x32f12
movl $0x5, %edx
callq 0x4340
movq 0x1f0(%rbx), %rax
subq 0x1e8(%rbx), %rax
sarq $0x3, %rax
movslq 0x1cc(%rbx), %rcx
cmpq %rcx, %rax
jae 0x1a554
cmpl $0x0, 0x1cc(%rbx)
jle 0x1a60c
xorl %r12d, %r12d
movq 0x21b52(%rip), %r14     # 0x3bfd0
leaq 0x185e2(%rip), %r15     # 0x32a67
testq %r12, %r12
sete %al
testb $0x7, %r12b
setne %cl
orb %al, %cl
jne 0x1a4d4
cmpb $0x1, (%r13)
jne 0x1a4d4
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x42d0
movsbl %al, %esi
movq %r14, %rdi
callq 0x4040
movq %rax, %rdi
callq 0x41f0
movl $0x16, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x4340
movq 0x1e8(%rbx), %rax
movq 0x1f0(%rbx), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %r12, %rcx
jbe 0x1a50f
cmpq $0x0, (%rax,%r12,8)
cmovnel %r12d, %ebp
cmpb $0x1, (%r13)
jne 0x1a53c
movslq %ebp, %rcx
movq (%rax,%rcx,8), %rsi
movq %r14, %rdi
callq 0x28bbe
jmp 0x1a53c
movl 0x1cc(%rbx), %ecx
decl %ecx
movb (%r13), %al
cmpq %rcx, %r12
jne 0x1a65e
testb %al, %al
je 0x1a53c
movl $0x5, %edx
movq %r14, %rdi
leaq 0x18547(%rip), %rsi     # 0x32a7e
callq 0x4340
incq %r12
movslq 0x1cc(%rbx), %rax
cmpq %rax, %r12
jl 0x1a485
jmp 0x1a60c
movq 0x1f0(%rbx), %rax
cmpq 0x1e8(%rbx), %rax
je 0x1a60c
xorl %r12d, %r12d
movq 0x21a5e(%rip), %r14     # 0x3bfd0
leaq 0x184ee(%rip), %r15     # 0x32a67
testq %r12, %r12
sete %al
testb $0x7, %r12b
setne %cl
orb %al, %cl
jne 0x1a5c8
cmpb $0x1, (%r13)
jne 0x1a5c8
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x42d0
movsbl %al, %esi
movq %r14, %rdi
callq 0x4040
movq %rax, %rdi
callq 0x41f0
movl $0x16, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x4340
movq 0x1e8(%rbx), %rax
cmpq $0x0, (%rax,%r12,8)
cmovnel %r12d, %ebp
cmpb $0x1, (%r13)
jne 0x1a5ee
movslq %ebp, %rcx
movq (%rax,%rcx,8), %rsi
movq %r14, %rdi
callq 0x28bbe
incq %r12
movq 0x1f0(%rbx), %rax
subq 0x1e8(%rbx), %rax
sarq $0x3, %rax
cmpq %r12, %rax
ja 0x1a579
cmpb $0x1, (%r13)
jne 0x1a64f
movq 0x219b6(%rip), %rbx     # 0x3bfd0
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
testb %al, %al
je 0x1a60c
movq 0x21967(%rip), %rdi     # 0x3bfd0
leaq 0x18414(%rip), %rsi     # 0x32a84
movl $0x8, %edx
callq 0x4340
jmp 0x1a60c