// File: /workspace/github_c_makefile_star2_O0/aap[P]pdp11/kd11a.c
// Function: printstate
static void
printstate(KD11A *cpu)
{
	(void)cpu;
	printf(" R0 %06o R1 %06o R2 %06o R3 %06o R4 %06o R5 %06o R6 %06o R7 %06o\n"
		" 10 %06o 11 %06o 12 %06o 13 %06o 14 %06o 15 %06o 16 %06o 17 %06o\n"
		" BA %06o IR %06o PSW %06o\n"
		,
		cpu->r[0], cpu->r[1], cpu->r[2], cpu->r[3],
		cpu->r[4], cpu->r[5], cpu->r[6], cpu->r[7],
		cpu->r[8], cpu->r[9], cpu->r[10], cpu->r[11],
		cpu->r[12], cpu->r[13], cpu->r[14], cpu->r[15],
		cpu->ba, cpu->ir, cpu->cur<<14 | cpu->prev<<12 | cpu->psw);
	printf(" SR0 %06o SR2 %06o\n",
		cpu->sr0, cpu->sr2);
	printf(" PAR %06o %06o %06o %06o %06o %06o %06o %06o\n"
	       "     %06o %06o %06o %06o %06o %06o %06o %06o\n",
		cpu->par[0], cpu->par[1], cpu->par[2], cpu->par[3],
		cpu->par[4], cpu->par[5], cpu->par[6], cpu->par[7],
		cpu->par[010], cpu->par[011], cpu->par[012], cpu->par[013],
		cpu->par[014], cpu->par[015], cpu->par[016], cpu->par[017]);
	printf(" PDR %06o %06o %06o %06o %06o %06o %06o %06o\n"
	       "     %06o %06o %06o %06o %06o %06o %06o %06o\n",
		cpu->acf[0] | cpu->plf[0]<<2,
		cpu->acf[1] | cpu->plf[1]<<2,
		cpu->acf[2] | cpu->plf[2]<<2,
		cpu->acf[3] | cpu->plf[3]<<2,
		cpu->acf[4] | cpu->plf[4]<<2,
		cpu->acf[5] | cpu->plf[5]<<2,
		cpu->acf[6] | cpu->plf[6]<<2,
		cpu->acf[7] | cpu->plf[7]<<2,
		cpu->acf[010] | cpu->plf[010]<<2,
		cpu->acf[011] | cpu->plf[011]<<2,
		cpu->acf[012] | cpu->plf[012]<<2,
		cpu->acf[013] | cpu->plf[013]<<2,
		cpu->acf[014] | cpu->plf[014]<<2,
		cpu->acf[015] | cpu->plf[015]<<2,
		cpu->acf[016] | cpu->plf[016]<<2,
		cpu->acf[017] | cpu->plf[017]<<2);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq %rdi, -0x30(%rbp)
movq -0x30(%rbp), %rax
movzwl (%rax), %esi
movq -0x30(%rbp), %rax
movzwl 0x2(%rax), %edx
movq -0x30(%rbp), %rax
movzwl 0x4(%rax), %ecx
movq -0x30(%rbp), %rax
movzwl 0x6(%rax), %r8d
movq -0x30(%rbp), %rax
movzwl 0x8(%rax), %r9d
movq -0x30(%rbp), %rax
movzwl 0xa(%rax), %eax
movl %eax, -0x68(%rbp)
movq -0x30(%rbp), %rax
movzwl 0xc(%rax), %eax
movl %eax, -0x64(%rbp)
movq -0x30(%rbp), %rax
movzwl 0xe(%rax), %eax
movl %eax, -0x60(%rbp)
movq -0x30(%rbp), %rax
movzwl 0x10(%rax), %eax
movl %eax, -0x5c(%rbp)
movq -0x30(%rbp), %rax
movzwl 0x12(%rax), %eax
movl %eax, -0x58(%rbp)
movq -0x30(%rbp), %rax
movzwl 0x14(%rax), %eax
movl %eax, -0x54(%rbp)
movq -0x30(%rbp), %rax
movzwl 0x16(%rax), %r13d
movq -0x30(%rbp), %rax
movzwl 0x18(%rax), %r12d
movq -0x30(%rbp), %rax
movzwl 0x1a(%rax), %r15d
movq -0x30(%rbp), %rax
movzwl 0x1c(%rax), %r14d
movq -0x30(%rbp), %rax
movzwl 0x1e(%rax), %ebx
movq -0x30(%rbp), %rax
movzwl 0x24(%rax), %r11d
movq -0x30(%rbp), %rax
movzwl 0x26(%rax), %r10d
movq -0x30(%rbp), %rax
movzwl 0x86(%rax), %edi
shll $0xe, %edi
movq -0x30(%rbp), %rax
movzwl 0x88(%rax), %eax
shll $0xc, %eax
orl %eax, %edi
movq -0x30(%rbp), %rax
movzbl 0x30(%rax), %eax
orl %eax, %edi
movl -0x68(%rbp), %eax
movl %edi, -0x50(%rbp)
leaq 0x46eb(%rip), %rdi      # 0xd641
movl %eax, (%rsp)
movl -0x64(%rbp), %eax
movl %eax, 0x8(%rsp)
movl -0x60(%rbp), %eax
movl %eax, 0x10(%rsp)
movl -0x5c(%rbp), %eax
movl %eax, 0x18(%rsp)
movl -0x58(%rbp), %eax
movl %eax, 0x20(%rsp)
movl -0x54(%rbp), %eax
movl %eax, 0x28(%rsp)
movl -0x50(%rbp), %eax
movl %r13d, 0x30(%rsp)
movl %r12d, 0x38(%rsp)
movl %r15d, 0x40(%rsp)
movl %r14d, 0x48(%rsp)
movl %ebx, 0x50(%rsp)
movl %r11d, 0x58(%rsp)
movl %r10d, 0x60(%rsp)
movl %eax, 0x68(%rsp)
movb $0x0, %al
callq 0x20a0
movq -0x30(%rbp), %rax
movzwl 0x138(%rax), %esi
movq -0x30(%rbp), %rax
movzwl 0x13a(%rax), %edx
leaq 0x4715(%rip), %rdi      # 0xd6de
movb $0x0, %al
callq 0x20a0
movq -0x30(%rbp), %rax
movzwl 0x8c(%rax), %esi
movq -0x30(%rbp), %rax
movzwl 0x8e(%rax), %edx
movq -0x30(%rbp), %rax
movzwl 0x90(%rax), %ecx
movq -0x30(%rbp), %rax
movzwl 0x92(%rax), %r8d
movq -0x30(%rbp), %rax
movzwl 0x94(%rax), %r9d
movq -0x30(%rbp), %rax
movzwl 0x96(%rax), %eax
movq -0x30(%rbp), %rdi
movzwl 0x98(%rdi), %edi
movl %edi, -0x4c(%rbp)
movq -0x30(%rbp), %rdi
movzwl 0x9a(%rdi), %edi
movl %edi, -0x48(%rbp)
movq -0x30(%rbp), %rdi
movzwl 0x9c(%rdi), %r13d
movq -0x30(%rbp), %rdi
movzwl 0x9e(%rdi), %r12d
movq -0x30(%rbp), %rdi
movzwl 0xa0(%rdi), %r15d
movq -0x30(%rbp), %rdi
movzwl 0xa2(%rdi), %r14d
movq -0x30(%rbp), %rdi
movzwl 0xa4(%rdi), %ebx
movq -0x30(%rbp), %rdi
movzwl 0xa6(%rdi), %r11d
movq -0x30(%rbp), %rdi
movzwl 0xa8(%rdi), %r10d
movq -0x30(%rbp), %rdi
movzwl 0xaa(%rdi), %edi
movl %edi, -0x44(%rbp)
leaq 0x465a(%rip), %rdi      # 0xd6f2
movl %eax, (%rsp)
movl -0x4c(%rbp), %eax
movl %eax, 0x8(%rsp)
movl -0x48(%rbp), %eax
movl %eax, 0x10(%rsp)
movl -0x44(%rbp), %eax
movl %r13d, 0x18(%rsp)
movl %r12d, 0x20(%rsp)
movl %r15d, 0x28(%rsp)
movl %r14d, 0x30(%rsp)
movl %ebx, 0x38(%rsp)
movl %r11d, 0x40(%rsp)
movl %r10d, 0x48(%rsp)
movl %eax, 0x50(%rsp)
movb $0x0, %al
callq 0x20a0
movq -0x30(%rbp), %rax
movl 0xac(%rax), %esi
movq -0x30(%rbp), %rax
movl 0xec(%rax), %eax
shll $0x2, %eax
orl %eax, %esi
movq -0x30(%rbp), %rax
movl 0xb0(%rax), %edx
movq -0x30(%rbp), %rax
movl 0xf0(%rax), %eax
shll $0x2, %eax
orl %eax, %edx
movq -0x30(%rbp), %rax
movl 0xb4(%rax), %ecx
movq -0x30(%rbp), %rax
movl 0xf4(%rax), %eax
shll $0x2, %eax
orl %eax, %ecx
movq -0x30(%rbp), %rax
movl 0xb8(%rax), %r8d
movq -0x30(%rbp), %rax
movl 0xf8(%rax), %eax
shll $0x2, %eax
orl %eax, %r8d
movq -0x30(%rbp), %rax
movl 0xbc(%rax), %r9d
movq -0x30(%rbp), %rax
movl 0xfc(%rax), %eax
shll $0x2, %eax
orl %eax, %r9d
movq -0x30(%rbp), %rax
movl 0xc0(%rax), %eax
movq -0x30(%rbp), %rdi
movl 0x100(%rdi), %edi
shll $0x2, %edi
orl %edi, %eax
movl %eax, -0x40(%rbp)
movq -0x30(%rbp), %rax
movl 0xc4(%rax), %eax
movq -0x30(%rbp), %rdi
movl 0x104(%rdi), %edi
shll $0x2, %edi
orl %edi, %eax
movl %eax, -0x3c(%rbp)
movq -0x30(%rbp), %rax
movl 0xc8(%rax), %eax
movq -0x30(%rbp), %rdi
movl 0x108(%rdi), %edi
shll $0x2, %edi
orl %edi, %eax
movl %eax, -0x38(%rbp)
movq -0x30(%rbp), %rax
movl 0xcc(%rax), %r13d
movq -0x30(%rbp), %rax
movl 0x10c(%rax), %eax
shll $0x2, %eax
orl %eax, %r13d
movq -0x30(%rbp), %rax
movl 0xd0(%rax), %r12d
movq -0x30(%rbp), %rax
movl 0x110(%rax), %eax
shll $0x2, %eax
orl %eax, %r12d
movq -0x30(%rbp), %rax
movl 0xd4(%rax), %r15d
movq -0x30(%rbp), %rax
movl 0x114(%rax), %eax
shll $0x2, %eax
orl %eax, %r15d
movq -0x30(%rbp), %rax
movl 0xd8(%rax), %r14d
movq -0x30(%rbp), %rax
movl 0x118(%rax), %eax
shll $0x2, %eax
orl %eax, %r14d
movq -0x30(%rbp), %rax
movl 0xdc(%rax), %ebx
movq -0x30(%rbp), %rax
movl 0x11c(%rax), %eax
shll $0x2, %eax
orl %eax, %ebx
movq -0x30(%rbp), %rax
movl 0xe0(%rax), %r11d
movq -0x30(%rbp), %rax
movl 0x120(%rax), %eax
shll $0x2, %eax
orl %eax, %r11d
movq -0x30(%rbp), %rax
movl 0xe4(%rax), %r10d
movq -0x30(%rbp), %rax
movl 0x124(%rax), %eax
shll $0x2, %eax
orl %eax, %r10d
movq -0x30(%rbp), %rax
movl 0xe8(%rax), %edi
movq -0x30(%rbp), %rax
movl 0x128(%rax), %eax
shll $0x2, %eax
orl %eax, %edi
movl -0x40(%rbp), %eax
movl %edi, -0x34(%rbp)
leaq 0x4581(%rip), %rdi      # 0xd810
movl %eax, (%rsp)
movl -0x3c(%rbp), %eax
movl %eax, 0x8(%rsp)
movl -0x38(%rbp), %eax
movl %eax, 0x10(%rsp)
movl -0x34(%rbp), %eax
movl %r13d, 0x18(%rsp)
movl %r12d, 0x20(%rsp)
movl %r15d, 0x28(%rsp)
movl %r14d, 0x30(%rsp)
movl %ebx, 0x38(%rsp)
movl %r11d, 0x40(%rsp)
movl %r10d, 0x48(%rsp)
movl %eax, 0x50(%rsp)
movb $0x0, %al
callq 0x20a0
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopw %cs:(%rax,%rax)