// File: /workspace/github_c_makefile_star2_O2/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 0x2b78
leaq 0x1620(%rip), %rcx      # 0x4100
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
xorl %eax, %eax
jmp 0x2b19
movl 0x234(%rdi), %ecx
shll $0x5, %ecx
xorl %eax, %eax
cmpl $0x0, 0x238(%rdi)
sete %al
jmp 0x2b14
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 0x193a(%rip), %rdi      # 0x445c
leaq 0x1da6(%rip), %rsi      # 0x48cf
leaq 0x1de6(%rip), %rcx      # 0x4916
movl $0x250, %edx            # imm = 0x250
callq 0x2050
leaq 0x191b(%rip), %rdi      # 0x445c
leaq 0x1d87(%rip), %rsi      # 0x48cf
leaq 0x1dc7(%rip), %rcx      # 0x4916
movl $0x24f, %edx            # imm = 0x24F
callq 0x2050
leaq 0x18fc(%rip), %rdi      # 0x445c
leaq 0x1d68(%rip), %rsi      # 0x48cf
leaq 0x1da8(%rip), %rcx      # 0x4916
movl $0x24e, %edx            # imm = 0x24E
callq 0x2050
leaq 0x18dd(%rip), %rdi      # 0x445c
leaq 0x1d49(%rip), %rsi      # 0x48cf
leaq 0x1d89(%rip), %rcx      # 0x4916
movl $0x257, %edx            # imm = 0x257
callq 0x2050
leaq 0x18be(%rip), %rdi      # 0x445c
leaq 0x1d2a(%rip), %rsi      # 0x48cf
leaq 0x1d6a(%rip), %rcx      # 0x4916
movl $0x256, %edx            # imm = 0x256
callq 0x2050
leaq 0x189f(%rip), %rdi      # 0x445c
leaq 0x1d0b(%rip), %rsi      # 0x48cf
leaq 0x1d4b(%rip), %rcx      # 0x4916
movl $0x255, %edx            # imm = 0x255
callq 0x2050
leaq 0x1880(%rip), %rdi      # 0x445c
leaq 0x1cec(%rip), %rsi      # 0x48cf
leaq 0x1d2c(%rip), %rcx      # 0x4916
movl $0x254, %edx            # imm = 0x254
callq 0x2050
leaq 0x1861(%rip), %rdi      # 0x445c
leaq 0x1ccd(%rip), %rsi      # 0x48cf
leaq 0x1d0d(%rip), %rcx      # 0x4916
movl $0x24c, %edx            # imm = 0x24C
callq 0x2050
leaq 0x1842(%rip), %rdi      # 0x445c
leaq 0x1cae(%rip), %rsi      # 0x48cf
leaq 0x1cee(%rip), %rcx      # 0x4916
movl $0x252, %edx            # imm = 0x252
callq 0x2050
leaq 0x1823(%rip), %rdi      # 0x445c
leaq 0x1c8f(%rip), %rsi      # 0x48cf
leaq 0x1ccf(%rip), %rcx      # 0x4916
movl $0x24b, %edx            # imm = 0x24B
callq 0x2050
leaq 0x1804(%rip), %rdi      # 0x445c
leaq 0x1c70(%rip), %rsi      # 0x48cf
leaq 0x1cb0(%rip), %rcx      # 0x4916
movl $0x24a, %edx            # imm = 0x24A
callq 0x2050
leaq 0x17e5(%rip), %rdi      # 0x445c
leaq 0x1c51(%rip), %rsi      # 0x48cf
leaq 0x1c91(%rip), %rcx      # 0x4916
movl $0x249, %edx            # imm = 0x249
callq 0x2050
leaq 0x17c6(%rip), %rdi      # 0x445c
leaq 0x1c32(%rip), %rsi      # 0x48cf
leaq 0x1c72(%rip), %rcx      # 0x4916
movl $0x248, %edx            # imm = 0x248
callq 0x2050