// File: CMU-SAFARI[P]MQSim/src/nvm_chip/flash_memory/Flash_Chip.cpp
// Function: NVM::FlashMemory::Flash_Chip::Validate_simulation_config()
void Flash_Chip::Validate_simulation_config()
		{
			if (Dies == NULL || die_no == 0) {
				PRINT_ERROR("Flash chip " << ID() << ": has no dies!")
			}

			for (unsigned int i = 0; i < die_no; i++) {
				if (Dies[i]->Planes == NULL) {
					PRINT_ERROR("Flash chip" << ID() << ": die (" + ID() + ") has no planes!")
				}
			}
		}

// Assembly:
subq $0x118, %rsp            # imm = 0x118
movq %rdi, 0x110(%rsp)
movq 0x110(%rsp), %rax
movq %rax, 0x58(%rsp)
cmpq $0x0, 0x40(%rax)
je 0x43812
movq 0x58(%rsp), %rax
cmpl $0x0, 0x48(%rax)
jne 0x438e1
movq 0x967d7(%rip), %rdi     # 0xd9ff0
movq %rdi, 0x38(%rsp)
leaq 0x670c3(%rip), %rsi     # 0xaa8e8
callq 0x8440
movq 0x38(%rsp), %rdi
leaq 0x6893a(%rip), %rsi     # 0xac170
callq 0x8440
movq 0x58(%rsp), %rsi
movq %rax, 0x40(%rsp)
leaq 0xf0(%rsp), %rdi
movq %rdi, 0x48(%rsp)
callq 0xcdf0
movq 0x40(%rsp), %rdi
movq 0x48(%rsp), %rsi
callq 0x83e0
movq %rax, 0x50(%rsp)
jmp 0x4386d
movq 0x50(%rsp), %rdi
leaq 0x68903(%rip), %rsi     # 0xac17c
callq 0x8440
movq %rax, 0x30(%rsp)
jmp 0x43885
movq 0x30(%rsp), %rdi
movq 0x966c7(%rip), %rsi     # 0xd9f58
callq 0x8480
jmp 0x43898
leaq 0xf0(%rsp), %rdi
callq 0x8848
movq 0x96724(%rip), %rdi     # 0xd9fd0
callq 0x84f0
movl $0x1, %edi
callq 0x8500
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xe8(%rsp)
movl %eax, 0xe4(%rsp)
leaq 0xf0(%rsp), %rdi
callq 0x8848
jmp 0x43ae0
movl $0x0, 0xe0(%rsp)
movq 0x58(%rsp), %rcx
movl 0xe0(%rsp), %eax
cmpl 0x48(%rcx), %eax
jae 0x43ad8
movq 0x58(%rsp), %rax
movq 0x40(%rax), %rax
movl 0xe0(%rsp), %ecx
movq (%rax,%rcx,8), %rax
cmpq $0x0, (%rax)
jne 0x43ac0
movq 0x966ca(%rip), %rdi     # 0xd9ff0
movq %rdi, 0x10(%rsp)
leaq 0x66fb6(%rip), %rsi     # 0xaa8e8
callq 0x8440
movq 0x10(%rsp), %rdi
leaq 0x68848(%rip), %rsi     # 0xac18b
callq 0x8440
movq 0x58(%rsp), %rsi
movq %rax, 0x18(%rsp)
leaq 0xc0(%rsp), %rdi
movq %rdi, 0x20(%rsp)
callq 0xcdf0
movq 0x18(%rsp), %rdi
movq 0x20(%rsp), %rsi
callq 0x83e0
movq %rax, 0x28(%rsp)
jmp 0x4397a
movq 0x58(%rsp), %rsi
leaq 0x60(%rsp), %rdi
callq 0xcdf0
jmp 0x4398b
leaq 0x68804(%rip), %rsi     # 0xac196
leaq 0x80(%rsp), %rdi
leaq 0x60(%rsp), %rdx
callq 0x45710
jmp 0x439a6
leaq 0x687f1(%rip), %rdx     # 0xac19e
leaq 0xa0(%rsp), %rdi
leaq 0x80(%rsp), %rsi
callq 0xd060
jmp 0x439c4
movq 0x28(%rsp), %rdi
leaq 0xa0(%rsp), %rsi
callq 0x83e0
movq %rax, 0x8(%rsp)
jmp 0x439dd
movq 0x8(%rsp), %rdi
movq 0x9656f(%rip), %rsi     # 0xd9f58
callq 0x8480
jmp 0x439f0
leaq 0xa0(%rsp), %rdi
callq 0x8848
leaq 0x80(%rsp), %rdi
callq 0x8848
leaq 0x60(%rsp), %rdi
callq 0x8848
leaq 0xc0(%rsp), %rdi
callq 0x8848
movq 0x965a8(%rip), %rdi     # 0xd9fd0
callq 0x84f0
movl $0x1, %edi
callq 0x8500
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xe8(%rsp)
movl %eax, 0xe4(%rsp)
jmp 0x43ab1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xe8(%rsp)
movl %eax, 0xe4(%rsp)
jmp 0x43aa7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xe8(%rsp)
movl %eax, 0xe4(%rsp)
jmp 0x43a9a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xe8(%rsp)
movl %eax, 0xe4(%rsp)
leaq 0xa0(%rsp), %rdi
callq 0x8848
leaq 0x80(%rsp), %rdi
callq 0x8848
leaq 0x60(%rsp), %rdi
callq 0x8848
leaq 0xc0(%rsp), %rdi
callq 0x8848
jmp 0x43ae0
jmp 0x43ac2
movl 0xe0(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xe0(%rsp)
jmp 0x438ec
addq $0x118, %rsp            # imm = 0x118
retq
movq 0xe8(%rsp), %rdi
callq 0x8770
nopl (%rax)