// File: /workspace/github_c_makefile_star2_O3/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 0x2b92
leaq 0x1606(%rip), %rcx      # 0x4100
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
xorl %eax, %eax
jmp 0x2b33
movl 0x234(%rdi), %ecx
shll $0x5, %ecx
xorl %eax, %eax
cmpl $0x0, 0x238(%rdi)
sete %al
jmp 0x2b2e
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 0x1920(%rip), %rdi      # 0x445c
leaq 0x1d8c(%rip), %rsi      # 0x48cf
leaq 0x1dcc(%rip), %rcx      # 0x4916
movl $0x250, %edx            # imm = 0x250
callq 0x2050
leaq 0x1901(%rip), %rdi      # 0x445c
leaq 0x1d6d(%rip), %rsi      # 0x48cf
leaq 0x1dad(%rip), %rcx      # 0x4916
movl $0x24f, %edx            # imm = 0x24F
callq 0x2050
leaq 0x18e2(%rip), %rdi      # 0x445c
leaq 0x1d4e(%rip), %rsi      # 0x48cf
leaq 0x1d8e(%rip), %rcx      # 0x4916
movl $0x24e, %edx            # imm = 0x24E
callq 0x2050
leaq 0x18c3(%rip), %rdi      # 0x445c
leaq 0x1d2f(%rip), %rsi      # 0x48cf
leaq 0x1d6f(%rip), %rcx      # 0x4916
movl $0x257, %edx            # imm = 0x257
callq 0x2050
leaq 0x18a4(%rip), %rdi      # 0x445c
leaq 0x1d10(%rip), %rsi      # 0x48cf
leaq 0x1d50(%rip), %rcx      # 0x4916
movl $0x256, %edx            # imm = 0x256
callq 0x2050
leaq 0x1885(%rip), %rdi      # 0x445c
leaq 0x1cf1(%rip), %rsi      # 0x48cf
leaq 0x1d31(%rip), %rcx      # 0x4916
movl $0x255, %edx            # imm = 0x255
callq 0x2050
leaq 0x1866(%rip), %rdi      # 0x445c
leaq 0x1cd2(%rip), %rsi      # 0x48cf
leaq 0x1d12(%rip), %rcx      # 0x4916
movl $0x254, %edx            # imm = 0x254
callq 0x2050
leaq 0x1847(%rip), %rdi      # 0x445c
leaq 0x1cb3(%rip), %rsi      # 0x48cf
leaq 0x1cf3(%rip), %rcx      # 0x4916
movl $0x24c, %edx            # imm = 0x24C
callq 0x2050
leaq 0x1828(%rip), %rdi      # 0x445c
leaq 0x1c94(%rip), %rsi      # 0x48cf
leaq 0x1cd4(%rip), %rcx      # 0x4916
movl $0x252, %edx            # imm = 0x252
callq 0x2050
leaq 0x1809(%rip), %rdi      # 0x445c
leaq 0x1c75(%rip), %rsi      # 0x48cf
leaq 0x1cb5(%rip), %rcx      # 0x4916
movl $0x24b, %edx            # imm = 0x24B
callq 0x2050
leaq 0x17ea(%rip), %rdi      # 0x445c
leaq 0x1c56(%rip), %rsi      # 0x48cf
leaq 0x1c96(%rip), %rcx      # 0x4916
movl $0x24a, %edx            # imm = 0x24A
callq 0x2050
leaq 0x17cb(%rip), %rdi      # 0x445c
leaq 0x1c37(%rip), %rsi      # 0x48cf
leaq 0x1c77(%rip), %rcx      # 0x4916
movl $0x249, %edx            # imm = 0x249
callq 0x2050
leaq 0x17ac(%rip), %rdi      # 0x445c
leaq 0x1c18(%rip), %rsi      # 0x48cf
leaq 0x1c58(%rip), %rcx      # 0x4916
movl $0x248, %edx            # imm = 0x248
callq 0x2050