// File: /workspace/github_c_makefile_star2_O1/aap[P]pdp11/u_kb11a.c
// Function: get_brcab
byte
get_brcab(KB11A *kb)
{
	// TODO
	switch(kb->rom.bef){
	case 0: return 0;
	case 1: assert(0); return 0;	// TODO
	case 2: assert(0); return 0;	// TODO
	case 3: assert(0); return 0;	// TODO
	case 4: assert(0); return 0;	// TODO
	case 5: assert(0); return 0;	// TODO
	case 6: return  ~kb->c.br>>9 & 040 | kb->ps_restore<<4;
	case 7: assert(0); return 0;	// TODO
	case 010: assert(0); return 0;	// TODO
	case 011: assert(0); return 0;	// TODO
	case 012: return kb->conf<<5 | !kb->brq_true<<4;
	case 013: assert(0); return 0;	// TODO
	case 014: return 0;	// TODO
	case 015: assert(0); return 0;	// TODO
	case 016: assert(0); return 0;	// TODO
	case 017: assert(0); return 0;	// TODO
	default: assert(0);
	}
	return 0;
}

// Assembly:
pushq %rax
movl 0x1ec(%rdi), %eax
cmpq $0xf, %rax
ja 0x2bf5
leaq 0x15a3(%rip), %rcx      # 0x4100
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
xorl %eax, %eax
jmp 0x2b96
movl 0x234(%rdi), %ecx
shll $0x5, %ecx
xorl %eax, %eax
cmpl $0x0, 0x238(%rdi)
sete %al
jmp 0x2b91
movl (%rdi), %ecx
notl %ecx
shrl $0x9, %ecx
andl $0x20, %ecx
movl 0x248(%rdi), %eax
shll $0x4, %eax
orl %ecx, %eax
popq %rcx
retq
leaq 0x18bd(%rip), %rdi      # 0x445c
leaq 0x1d29(%rip), %rsi      # 0x48cf
leaq 0x1d69(%rip), %rcx      # 0x4916
movl $0x250, %edx            # imm = 0x250
callq 0x2050
leaq 0x189e(%rip), %rdi      # 0x445c
leaq 0x1d0a(%rip), %rsi      # 0x48cf
leaq 0x1d4a(%rip), %rcx      # 0x4916
movl $0x24f, %edx            # imm = 0x24F
callq 0x2050
leaq 0x187f(%rip), %rdi      # 0x445c
leaq 0x1ceb(%rip), %rsi      # 0x48cf
leaq 0x1d2b(%rip), %rcx      # 0x4916
movl $0x24e, %edx            # imm = 0x24E
callq 0x2050
leaq 0x1860(%rip), %rdi      # 0x445c
leaq 0x1ccc(%rip), %rsi      # 0x48cf
leaq 0x1d0c(%rip), %rcx      # 0x4916
movl $0x257, %edx            # imm = 0x257
callq 0x2050
leaq 0x1841(%rip), %rdi      # 0x445c
leaq 0x1cad(%rip), %rsi      # 0x48cf
leaq 0x1ced(%rip), %rcx      # 0x4916
movl $0x256, %edx            # imm = 0x256
callq 0x2050
leaq 0x1822(%rip), %rdi      # 0x445c
leaq 0x1c8e(%rip), %rsi      # 0x48cf
leaq 0x1cce(%rip), %rcx      # 0x4916
movl $0x255, %edx            # imm = 0x255
callq 0x2050
leaq 0x1803(%rip), %rdi      # 0x445c
leaq 0x1c6f(%rip), %rsi      # 0x48cf
leaq 0x1caf(%rip), %rcx      # 0x4916
movl $0x254, %edx            # imm = 0x254
callq 0x2050
leaq 0x17e4(%rip), %rdi      # 0x445c
leaq 0x1c50(%rip), %rsi      # 0x48cf
leaq 0x1c90(%rip), %rcx      # 0x4916
movl $0x24c, %edx            # imm = 0x24C
callq 0x2050
leaq 0x17c5(%rip), %rdi      # 0x445c
leaq 0x1c31(%rip), %rsi      # 0x48cf
leaq 0x1c71(%rip), %rcx      # 0x4916
movl $0x252, %edx            # imm = 0x252
callq 0x2050
leaq 0x17a6(%rip), %rdi      # 0x445c
leaq 0x1c12(%rip), %rsi      # 0x48cf
leaq 0x1c52(%rip), %rcx      # 0x4916
movl $0x24b, %edx            # imm = 0x24B
callq 0x2050
leaq 0x1787(%rip), %rdi      # 0x445c
leaq 0x1bf3(%rip), %rsi      # 0x48cf
leaq 0x1c33(%rip), %rcx      # 0x4916
movl $0x24a, %edx            # imm = 0x24A
callq 0x2050
leaq 0x1768(%rip), %rdi      # 0x445c
leaq 0x1bd4(%rip), %rsi      # 0x48cf
leaq 0x1c14(%rip), %rcx      # 0x4916
movl $0x249, %edx            # imm = 0x249
callq 0x2050
leaq 0x1749(%rip), %rdi      # 0x445c
leaq 0x1bb5(%rip), %rsi      # 0x48cf
leaq 0x1bf5(%rip), %rcx      # 0x4916
movl $0x248, %edx            # imm = 0x248
callq 0x2050