// File: /workspace/github_c_makefile_star2_O0/mist64[P]cbmbasic/runtime.c
// Function: CHRGET_common
static void
CHRGET_common(int inc) {
	unsigned short temp16;
	if (!inc) goto CHRGOT_start;
CHRGET_start:
	RAM[0x7A]++; SETSZ(RAM[0x7A]);
	if (!Z) goto CHRGOT_start;
	RAM[0x7B]++; SETSZ(RAM[0x7B]);
CHRGOT_start:
	A = RAM[RAM[0x7A] | RAM[0x7B]<<8]; SETSZ(A);
	temp16 = ((unsigned short)A) - ((unsigned short)0x3A); SETNC(temp16); SETSZ(temp16&0xFF);
	if (C) return;
	temp16 = ((unsigned short)A) - ((unsigned short)0x20); SETNC(temp16); SETSZ(temp16&0xFF);
	if (Z) goto CHRGET_start;
	C = 1;
	temp16 = (unsigned short)A-(unsigned short)0x30-(unsigned short)(1-C); SETV(((A ^ temp16) & 0x80) && ((A ^ 0x30) & 0x80)); A = (unsigned char)temp16; SETSZ(A); SETNC(temp16);
	C = 1;
	temp16 = (unsigned short)A-(unsigned short)0xD0-(unsigned short)(1-C); SETV(((A ^ temp16) & 0x80) && ((A ^ 0xD0) & 0x80)); A = (unsigned char)temp16; SETSZ(A); SETNC(temp16);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl %edi, -0x4(%rbp)
cmpl $0x0, -0x4(%rbp)
jne 0x3b812
jmp 0x3b8dc
jmp 0x3b814
leaq 0xf295(%rip), %rax      # 0x4aab0
movb 0x7a(%rax), %cl
addb $0x1, %cl
leaq 0xf288(%rip), %rax      # 0x4aab0
movb %cl, 0x7a(%rax)
leaq 0xf27e(%rip), %rax      # 0x4aab0
movzbl 0x7a(%rax), %edx
movl $0x1, %eax
xorl %ecx, %ecx
cmpl $0x0, %edx
cmovnel %ecx, %eax
movb %al, %cl
leaq 0x1f267(%rip), %rax     # 0x5aab3
movb %cl, (%rax)
leaq 0xf25b(%rip), %rax      # 0x4aab0
movsbl 0x7a(%rax), %edx
xorl %eax, %eax
movl $0x1, %ecx
cmpl $0x0, %edx
cmovll %ecx, %eax
movb %al, %cl
leaq 0x1f245(%rip), %rax     # 0x5aab4
movb %cl, (%rax)
leaq 0x1f23b(%rip), %rax     # 0x5aab3
cmpb $0x0, (%rax)
jne 0x3b87f
jmp 0x3b8dc
leaq 0xf22a(%rip), %rax      # 0x4aab0
movb 0x7b(%rax), %cl
addb $0x1, %cl
leaq 0xf21d(%rip), %rax      # 0x4aab0
movb %cl, 0x7b(%rax)
leaq 0xf213(%rip), %rax      # 0x4aab0
movzbl 0x7b(%rax), %edx
movl $0x1, %eax
xorl %ecx, %ecx
cmpl $0x0, %edx
cmovnel %ecx, %eax
movb %al, %cl
leaq 0x1f1fc(%rip), %rax     # 0x5aab3
movb %cl, (%rax)
leaq 0xf1f0(%rip), %rax      # 0x4aab0
movsbl 0x7b(%rax), %edx
xorl %eax, %eax
movl $0x1, %ecx
cmpl $0x0, %edx
cmovll %ecx, %eax
movb %al, %cl
leaq 0x1f1da(%rip), %rax     # 0x5aab4
movb %cl, (%rax)
leaq 0xf1cd(%rip), %rax      # 0x4aab0
movzbl 0x7a(%rax), %eax
leaq 0xf1c2(%rip), %rcx      # 0x4aab0
movzbl 0x7b(%rcx), %ecx
shll $0x8, %ecx
orl %ecx, %eax
movslq %eax, %rcx
leaq 0xf1af(%rip), %rax      # 0x4aab0
movb (%rax,%rcx), %cl
leaq 0x1f1aa(%rip), %rax     # 0x5aab5
movb %cl, (%rax)
leaq 0x1f1a1(%rip), %rax     # 0x5aab5
movzbl (%rax), %edx
movl $0x1, %eax
xorl %ecx, %ecx
cmpl $0x0, %edx
cmovnel %ecx, %eax
movb %al, %cl
leaq 0x1f186(%rip), %rax     # 0x5aab3
movb %cl, (%rax)
leaq 0x1f17f(%rip), %rax     # 0x5aab5
movsbl (%rax), %edx
xorl %eax, %eax
movl $0x1, %ecx
cmpl $0x0, %edx
cmovll %ecx, %eax
movb %al, %cl
leaq 0x1f165(%rip), %rax     # 0x5aab4
movb %cl, (%rax)
leaq 0x1f15d(%rip), %rax     # 0x5aab5
movzbl (%rax), %eax
movzwl %ax, %eax
subl $0x3a, %eax
movw %ax, -0x6(%rbp)
movzwl -0x6(%rbp), %edx
andl $0x100, %edx            # imm = 0x100
movl $0x1, %eax
xorl %ecx, %ecx
cmpl $0x0, %edx
cmovnel %ecx, %eax
movb %al, %cl
leaq 0x1f131(%rip), %rax     # 0x5aab6
movb %cl, (%rax)
movzwl -0x6(%rbp), %edx
andl $0xff, %edx
movl $0x1, %eax
xorl %ecx, %ecx
cmpl $0x0, %edx
cmovnel %ecx, %eax
movb %al, %cl
leaq 0x1f10c(%rip), %rax     # 0x5aab3
movb %cl, (%rax)
movzwl -0x6(%rbp), %eax
andl $0xff, %eax
movsbl %al, %edx
xorl %eax, %eax
movl $0x1, %ecx
cmpl $0x0, %edx
cmovll %ecx, %eax
movb %al, %cl
leaq 0x1f0e9(%rip), %rax     # 0x5aab4
movb %cl, (%rax)
leaq 0x1f0e2(%rip), %rax     # 0x5aab6
cmpb $0x0, (%rax)
je 0x3b9de
jmp 0x3bbbf
leaq 0x1f0d0(%rip), %rax     # 0x5aab5
movzbl (%rax), %eax
movzwl %ax, %eax
subl $0x20, %eax
movw %ax, -0x6(%rbp)
movzwl -0x6(%rbp), %edx
andl $0x100, %edx            # imm = 0x100
movl $0x1, %eax
xorl %ecx, %ecx
cmpl $0x0, %edx
cmovnel %ecx, %eax
movb %al, %cl
leaq 0x1f0a4(%rip), %rax     # 0x5aab6
movb %cl, (%rax)
movzwl -0x6(%rbp), %edx
andl $0xff, %edx
movl $0x1, %eax
xorl %ecx, %ecx
cmpl $0x0, %edx
cmovnel %ecx, %eax
movb %al, %cl
leaq 0x1f07f(%rip), %rax     # 0x5aab3
movb %cl, (%rax)
movzwl -0x6(%rbp), %eax
andl $0xff, %eax
movsbl %al, %edx
xorl %eax, %eax
movl $0x1, %ecx
cmpl $0x0, %edx
cmovll %ecx, %eax
movb %al, %cl
leaq 0x1f05c(%rip), %rax     # 0x5aab4
movb %cl, (%rax)
leaq 0x1f052(%rip), %rax     # 0x5aab3
cmpb $0x0, (%rax)
je 0x3ba6b
jmp 0x3b814
leaq 0x1f044(%rip), %rax     # 0x5aab6
movb $0x1, (%rax)
leaq 0x1f039(%rip), %rax     # 0x5aab5
movzbl (%rax), %eax
movzwl %ax, %eax
subl $0x30, %eax
leaq 0x1f02a(%rip), %rcx     # 0x5aab6
movzbl (%rcx), %edx
movl $0x1, %ecx
subl %edx, %ecx
movzwl %cx, %ecx
subl %ecx, %eax
movw %ax, -0x6(%rbp)
movw -0x6(%rbp), %ax
movb %al, %cl
leaq 0x1f009(%rip), %rax     # 0x5aab5
movb %cl, (%rax)
leaq 0x1f000(%rip), %rax     # 0x5aab5
movzbl (%rax), %edx
movl $0x1, %eax
xorl %ecx, %ecx
cmpl $0x0, %edx
cmovnel %ecx, %eax
movb %al, %cl
leaq 0x1efe5(%rip), %rax     # 0x5aab3
movb %cl, (%rax)
leaq 0x1efde(%rip), %rax     # 0x5aab5
movsbl (%rax), %edx
xorl %eax, %eax
movl $0x1, %ecx
cmpl $0x0, %edx
cmovll %ecx, %eax
movb %al, %cl
leaq 0x1efc4(%rip), %rax     # 0x5aab4
movb %cl, (%rax)
movzwl -0x6(%rbp), %edx
andl $0x100, %edx            # imm = 0x100
movl $0x1, %eax
xorl %ecx, %ecx
cmpl $0x0, %edx
cmovnel %ecx, %eax
movb %al, %cl
leaq 0x1efa4(%rip), %rax     # 0x5aab6
movb %cl, (%rax)
leaq 0x1ef9b(%rip), %rax     # 0x5aab6
movb $0x1, (%rax)
leaq 0x1ef90(%rip), %rax     # 0x5aab5
movzbl (%rax), %eax
movzwl %ax, %eax
subl $0xd0, %eax
leaq 0x1ef7f(%rip), %rcx     # 0x5aab6
movzbl (%rcx), %edx
movl $0x1, %ecx
subl %edx, %ecx
movzwl %cx, %ecx
subl %ecx, %eax
movw %ax, -0x6(%rbp)
movw -0x6(%rbp), %ax
movb %al, %cl
leaq 0x1ef5e(%rip), %rax     # 0x5aab5
movb %cl, (%rax)
leaq 0x1ef55(%rip), %rax     # 0x5aab5
movzbl (%rax), %edx
movl $0x1, %eax
xorl %ecx, %ecx
cmpl $0x0, %edx
cmovnel %ecx, %eax
movb %al, %cl
leaq 0x1ef3a(%rip), %rax     # 0x5aab3
movb %cl, (%rax)
leaq 0x1ef33(%rip), %rax     # 0x5aab5
movsbl (%rax), %edx
xorl %eax, %eax
movl $0x1, %ecx
cmpl $0x0, %edx
cmovll %ecx, %eax
movb %al, %cl
leaq 0x1ef19(%rip), %rax     # 0x5aab4
movb %cl, (%rax)
movzwl -0x6(%rbp), %edx
andl $0x100, %edx            # imm = 0x100
movl $0x1, %eax
xorl %ecx, %ecx
cmpl $0x0, %edx
cmovnel %ecx, %eax
movb %al, %cl
leaq 0x1eef9(%rip), %rax     # 0x5aab6
movb %cl, (%rax)
popq %rbp
retq
nopw %cs:(%rax,%rax)