#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int copro_mc6809nc_read(int);
int get_a();
int get_b();
int get_cc();
int get_d();
int get_dp();
int get_pc();
int get_s();
int get_u();
int get_x();
int get_y();
int /*<<< orphan*/ printf(char *, int, ...);
void print_regs(void) {
  char flags[9] = "        \0";
  if (get_cc() & 0x01)
    flags[0] = 'C';
  if (get_cc() & 0x02)
    flags[1] = 'V';
  if (get_cc() & 0x04)
    flags[2] = 'Z';
  if (get_cc() & 0x08)
    flags[3] = 'N';
  if (get_cc() & 0x10)
    flags[4] = 'I';
  if (get_cc() & 0x20)
    flags[5] = 'H';
  if (get_cc() & 0x40)
    flags[6] = 'F';
  if (get_cc() & 0x80)
    flags[7] = 'E';
  printf(
      " X: 0x%04X  [X]: 0x%04X    Y: 0x%04X  [Y]: 0x%04X    ", get_x(),
      (copro_mc6809nc_read(get_x() + 1) + (copro_mc6809nc_read(get_x()) << 8)),
      get_y(),
      (copro_mc6809nc_read(get_y() + 1) + (copro_mc6809nc_read(get_y()) << 8)));
  printf("PC: 0x%04X [PC]: 0x%04X\n", get_pc(),
         (copro_mc6809nc_read(get_pc() + 1) +
          (copro_mc6809nc_read(get_pc()) << 8)));
  printf(
      " U: 0x%04X  [U]: 0x%04X    S: 0x%04X  [S]: 0x%04X    ", get_u(),
      (copro_mc6809nc_read(get_u() + 1) + (copro_mc6809nc_read(get_u()) << 8)),
      get_s(),
      (copro_mc6809nc_read(get_s() + 1) + (copro_mc6809nc_read(get_s()) << 8)));
  printf("DP: 0x%02X\n", get_dp());
  printf(
      " A: 0x%02X      B: 0x%02X    [D]: 0x%04X   CC: %s\n", get_a(), get_b(),
      (copro_mc6809nc_read(get_d() + 1) + (copro_mc6809nc_read(get_d()) << 8)),
      flags);
}


x86 assembly (clang, -O0):
<print_regs>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    0xe31(%rip),%rax
mov    %rax,-0x9(%rbp)
mov    0xe2f(%rip),%al
mov    %al,-0x1(%rbp)
mov    $0x0,%al
call   1090 <get_cc@plt>
and    $0x1,%eax
cmp    $0x0,%eax
je     11f3 <print_regs+0x33>
movb   $0x43,-0x9(%rbp)
mov    $0x0,%al
call   1090 <get_cc@plt>
and    $0x2,%eax
cmp    $0x0,%eax
je     120a <print_regs+0x4a>
movb   $0x56,-0x8(%rbp)
mov    $0x0,%al
call   1090 <get_cc@plt>
and    $0x4,%eax
cmp    $0x0,%eax
je     1221 <print_regs+0x61>
movb   $0x5a,-0x7(%rbp)
mov    $0x0,%al
call   1090 <get_cc@plt>
and    $0x8,%eax
cmp    $0x0,%eax
je     1238 <print_regs+0x78>
movb   $0x4e,-0x6(%rbp)
mov    $0x0,%al
call   1090 <get_cc@plt>
and    $0x10,%eax
cmp    $0x0,%eax
je     124f <print_regs+0x8f>
movb   $0x49,-0x5(%rbp)
mov    $0x0,%al
call   1090 <get_cc@plt>
and    $0x20,%eax
cmp    $0x0,%eax
je     1266 <print_regs+0xa6>
movb   $0x48,-0x4(%rbp)
mov    $0x0,%al
call   1090 <get_cc@plt>
and    $0x40,%eax
cmp    $0x0,%eax
je     127d <print_regs+0xbd>
movb   $0x46,-0x3(%rbp)
mov    $0x0,%al
call   1090 <get_cc@plt>
and    $0x80,%eax
cmp    $0x0,%eax
je     1296 <print_regs+0xd6>
movb   $0x45,-0x2(%rbp)
mov    $0x0,%al
call   1050 <get_x@plt>
mov    %eax,-0x40(%rbp)
mov    $0x0,%al
call   1050 <get_x@plt>
mov    %eax,%edi
add    $0x1,%edi
call   10d0 <copro_mc6809nc_read@plt>
mov    %eax,-0x48(%rbp)
mov    $0x0,%al
call   1050 <get_x@plt>
mov    %eax,%edi
call   10d0 <copro_mc6809nc_read@plt>
mov    %eax,%ecx
mov    -0x48(%rbp),%eax
shl    $0x8,%ecx
add    %ecx,%eax
mov    %eax,-0x3c(%rbp)
mov    $0x0,%al
call   10c0 <get_y@plt>
mov    %eax,-0x38(%rbp)
mov    $0x0,%al
call   10c0 <get_y@plt>
mov    %eax,%edi
add    $0x1,%edi
call   10d0 <copro_mc6809nc_read@plt>
mov    %eax,-0x44(%rbp)
mov    $0x0,%al
call   10c0 <get_y@plt>
mov    %eax,%edi
call   10d0 <copro_mc6809nc_read@plt>
mov    -0x44(%rbp),%r8d
mov    -0x40(%rbp),%esi
mov    -0x3c(%rbp),%edx
mov    -0x38(%rbp),%ecx
shl    $0x8,%eax
add    %eax,%r8d
lea    0xcf4(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
mov    $0x0,%al
call   10b0 <get_pc@plt>
mov    %eax,-0x30(%rbp)
mov    $0x0,%al
call   10b0 <get_pc@plt>
mov    %eax,%edi
add    $0x1,%edi
call   10d0 <copro_mc6809nc_read@plt>
mov    %eax,-0x34(%rbp)
mov    $0x0,%al
call   10b0 <get_pc@plt>
mov    %eax,%edi
call   10d0 <copro_mc6809nc_read@plt>
mov    -0x34(%rbp),%edx
mov    -0x30(%rbp),%esi
shl    $0x8,%eax
add    %eax,%edx
lea    0xce5(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
mov    $0x0,%al
call   1030 <get_u@plt>
mov    %eax,-0x24(%rbp)
mov    $0x0,%al
call   1030 <get_u@plt>
mov    %eax,%edi
add    $0x1,%edi
call   10d0 <copro_mc6809nc_read@plt>
mov    %eax,-0x2c(%rbp)
mov    $0x0,%al
call   1030 <get_u@plt>
mov    %eax,%edi
call   10d0 <copro_mc6809nc_read@plt>
mov    %eax,%ecx
mov    -0x2c(%rbp),%eax
shl    $0x8,%ecx
add    %ecx,%eax
mov    %eax,-0x20(%rbp)
mov    $0x0,%al
call   1040 <get_s@plt>
mov    %eax,-0x1c(%rbp)
mov    $0x0,%al
call   1040 <get_s@plt>
mov    %eax,%edi
add    $0x1,%edi
call   10d0 <copro_mc6809nc_read@plt>
mov    %eax,-0x28(%rbp)
mov    $0x0,%al
call   1040 <get_s@plt>
mov    %eax,%edi
call   10d0 <copro_mc6809nc_read@plt>
mov    -0x28(%rbp),%r8d
mov    -0x24(%rbp),%esi
mov    -0x20(%rbp),%edx
mov    -0x1c(%rbp),%ecx
shl    $0x8,%eax
add    %eax,%r8d
lea    0xc78(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
mov    $0x0,%al
call   10a0 <get_dp@plt>
mov    %eax,%esi
lea    0xc97(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
mov    $0x0,%al
call   10e0 <get_a@plt>
mov    %eax,-0x14(%rbp)
mov    $0x0,%al
call   1070 <get_b@plt>
mov    %eax,-0x10(%rbp)
mov    $0x0,%al
call   1060 <get_d@plt>
mov    %eax,%edi
add    $0x1,%edi
call   10d0 <copro_mc6809nc_read@plt>
mov    %eax,-0x18(%rbp)
mov    $0x0,%al
call   1060 <get_d@plt>
mov    %eax,%edi
call   10d0 <copro_mc6809nc_read@plt>
mov    -0x18(%rbp),%ecx
mov    -0x14(%rbp),%esi
mov    -0x10(%rbp),%edx
shl    $0x8,%eax
add    %eax,%ecx
lea    -0x9(%rbp),%r8
lea    0xc4d(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_regs>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x18,%rsp
movabs $0x2020202020202020,%rax
20 20 20
mov    %rax,0x8(%rsp)
movb   $0x0,0x10(%rsp)
xor    %eax,%eax
call   1090 <get_cc@plt>
test   $0x1,%al
je     11ee <print_regs+0x2e>
movb   $0x43,0x8(%rsp)
xor    %eax,%eax
call   1090 <get_cc@plt>
test   $0x2,%al
je     11fe <print_regs+0x3e>
movb   $0x56,0x9(%rsp)
xor    %eax,%eax
call   1090 <get_cc@plt>
test   $0x4,%al
je     120e <print_regs+0x4e>
movb   $0x5a,0xa(%rsp)
xor    %eax,%eax
call   1090 <get_cc@plt>
test   $0x8,%al
je     121e <print_regs+0x5e>
movb   $0x4e,0xb(%rsp)
xor    %eax,%eax
call   1090 <get_cc@plt>
test   $0x10,%al
je     122e <print_regs+0x6e>
movb   $0x49,0xc(%rsp)
xor    %eax,%eax
call   1090 <get_cc@plt>
test   $0x20,%al
je     123e <print_regs+0x7e>
movb   $0x48,0xd(%rsp)
xor    %eax,%eax
call   1090 <get_cc@plt>
test   $0x40,%al
je     124e <print_regs+0x8e>
movb   $0x46,0xe(%rsp)
xor    %eax,%eax
call   1090 <get_cc@plt>
test   $0x80,%al
je     125e <print_regs+0x9e>
movb   $0x45,0xf(%rsp)
xor    %eax,%eax
call   1050 <get_x@plt>
mov    %eax,%r14d
xor    %eax,%eax
call   1050 <get_x@plt>
lea    0x1(%rax),%edi
call   10d0 <copro_mc6809nc_read@plt>
mov    %eax,%ebp
xor    %eax,%eax
call   1050 <get_x@plt>
mov    %eax,%edi
call   10d0 <copro_mc6809nc_read@plt>
shl    $0x8,%eax
add    %eax,%ebp
xor    %eax,%eax
call   10c0 <get_y@plt>
mov    %eax,%r15d
xor    %eax,%eax
call   10c0 <get_y@plt>
lea    0x1(%rax),%edi
call   10d0 <copro_mc6809nc_read@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   10c0 <get_y@plt>
mov    %eax,%edi
call   10d0 <copro_mc6809nc_read@plt>
shl    $0x8,%eax
add    %eax,%ebx
lea    0xd48(%rip),%rdi
mov    %r14d,%esi
mov    %ebp,%edx
mov    %r15d,%ecx
mov    %ebx,%r8d
xor    %eax,%eax
call   1080 <printf@plt>
xor    %eax,%eax
call   10b0 <get_pc@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   10b0 <get_pc@plt>
lea    0x1(%rax),%edi
call   10d0 <copro_mc6809nc_read@plt>
mov    %eax,%ebp
xor    %eax,%eax
call   10b0 <get_pc@plt>
mov    %eax,%edi
call   10d0 <copro_mc6809nc_read@plt>
shl    $0x8,%eax
add    %eax,%ebp
lea    0xd38(%rip),%rdi
mov    %ebx,%esi
mov    %ebp,%edx
xor    %eax,%eax
call   1080 <printf@plt>
xor    %eax,%eax
call   1030 <get_u@plt>
mov    %eax,%r14d
xor    %eax,%eax
call   1030 <get_u@plt>
lea    0x1(%rax),%edi
call   10d0 <copro_mc6809nc_read@plt>
mov    %eax,%ebp
xor    %eax,%eax
call   1030 <get_u@plt>
mov    %eax,%edi
call   10d0 <copro_mc6809nc_read@plt>
shl    $0x8,%eax
add    %eax,%ebp
xor    %eax,%eax
call   1040 <get_s@plt>
mov    %eax,%r15d
xor    %eax,%eax
call   1040 <get_s@plt>
lea    0x1(%rax),%edi
call   10d0 <copro_mc6809nc_read@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   1040 <get_s@plt>
mov    %eax,%edi
call   10d0 <copro_mc6809nc_read@plt>
shl    $0x8,%eax
add    %eax,%ebx
lea    0xce3(%rip),%rdi
mov    %r14d,%esi
mov    %ebp,%edx
mov    %r15d,%ecx
mov    %ebx,%r8d
xor    %eax,%eax
call   1080 <printf@plt>
xor    %eax,%eax
call   10a0 <get_dp@plt>
lea    0xcf9(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1080 <printf@plt>
xor    %eax,%eax
call   10e0 <get_a@plt>
mov    %eax,%r14d
xor    %eax,%eax
call   1070 <get_b@plt>
mov    %eax,%ebp
xor    %eax,%eax
call   1060 <get_d@plt>
lea    0x1(%rax),%edi
call   10d0 <copro_mc6809nc_read@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   1060 <get_d@plt>
mov    %eax,%edi
call   10d0 <copro_mc6809nc_read@plt>
shl    $0x8,%eax
add    %eax,%ebx
lea    0xcbe(%rip),%rdi
lea    0x8(%rsp),%r8
mov    %r14d,%esi
mov    %ebp,%edx
mov    %ebx,%ecx
xor    %eax,%eax
call   1080 <printf@plt>
add    $0x18,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@__const.print_regs.flags = [9 x i8] c" \00"
@.str = [54 x i8] c" X: 0x%04X [X]: 0x%04X Y: 0x%04X [Y]: 0x%04X \00"
@.str.1 = [25 x i8] c"PC: 0x%04X [PC]: 0x%04X\0A\00"
@.str.2 = [54 x i8] c" U: 0x%04X [U]: 0x%04X S: 0x%04X [S]: 0x%04X \00"
@.str.3 = [12 x i8] c"DP: 0x%02X\0A\00"
@.str.4 = [51 x i8] c" A: 0x%02X B: 0x%02X [D]: 0x%04X CC: %s\0A\00"
define void @print_regs() {
%1 = alloca [9 x i8]
%2 = bitcast [9 x i8]* %1 to i8*
%3 = call i32 (...) @get_cc()
%4 = and i32 %3, 1
%5 = icmp ne i32 %4, 0
br i1 %5, label %6, label %8
6: ; preds = %0
%7 = getelementptr inbounds [9 x i8], [9 x i8]* %1, i64 0, i64 0
store i8 67, i8* %7
br label %8
8: ; preds = %6, %0
%9 = call i32 (...) @get_cc()
%10 = and i32 %9, 2
%11 = icmp ne i32 %10, 0
br i1 %11, label %12, label %14
12: ; preds = %8
%13 = getelementptr inbounds [9 x i8], [9 x i8]* %1, i64 0, i64 1
store i8 86, i8* %13
br label %14
14: ; preds = %12, %8
%15 = call i32 (...) @get_cc()
%16 = and i32 %15, 4
%17 = icmp ne i32 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %14
%19 = getelementptr inbounds [9 x i8], [9 x i8]* %1, i64 0, i64 2
store i8 90, i8* %19
br label %20
20: ; preds = %18, %14
%21 = call i32 (...) @get_cc()
%22 = and i32 %21, 8
%23 = icmp ne i32 %22, 0
br i1 %23, label %24, label %26
24: ; preds = %20
%25 = getelementptr inbounds [9 x i8], [9 x i8]* %1, i64 0, i64 3
store i8 78, i8* %25
br label %26
26: ; preds = %24, %20
%27 = call i32 (...) @get_cc()
%28 = and i32 %27, 16
%29 = icmp ne i32 %28, 0
br i1 %29, label %30, label %32
30: ; preds = %26
%31 = getelementptr inbounds [9 x i8], [9 x i8]* %1, i64 0, i64 4
store i8 73, i8* %31
br label %32
32: ; preds = %30, %26
%33 = call i32 (...) @get_cc()
%34 = and i32 %33, 32
%35 = icmp ne i32 %34, 0
br i1 %35, label %36, label %38
36: ; preds = %32
%37 = getelementptr inbounds [9 x i8], [9 x i8]* %1, i64 0, i64 5
store i8 72, i8* %37
br label %38
38: ; preds = %36, %32
%39 = call i32 (...) @get_cc()
%40 = and i32 %39, 64
%41 = icmp ne i32 %40, 0
br i1 %41, label %42, label %44
42: ; preds = %38
%43 = getelementptr inbounds [9 x i8], [9 x i8]* %1, i64 0, i64 6
store i8 70, i8* %43
br label %44
44: ; preds = %42, %38
%45 = call i32 (...) @get_cc()
%46 = and i32 %45, 128
%47 = icmp ne i32 %46, 0
br i1 %47, label %48, label %50
48: ; preds = %44
%49 = getelementptr inbounds [9 x i8], [9 x i8]* %1, i64 0, i64 7
store i8 69, i8* %49
br label %50
50: ; preds = %48, %44
%51 = call i32 (...) @get_x()
%52 = call i32 (...) @get_x()
%53 = add nsw i32 %52, 1
%54 = call i32 @copro_mc6809nc_read(i32 %53)
%55 = call i32 (...) @get_x()
%56 = call i32 @copro_mc6809nc_read(i32 %55)
%57 = shl i32 %56, 8
%58 = add nsw i32 %54, %57
%59 = call i32 (...) @get_y()
%60 = call i32 (...) @get_y()
%61 = add nsw i32 %60, 1
%62 = call i32 @copro_mc6809nc_read(i32 %61)
%63 = call i32 (...) @get_y()
%64 = call i32 @copro_mc6809nc_read(i32 %63)
%65 = shl i32 %64, 8
%66 = add nsw i32 %62, %65
%67 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str, i64 0, i64 0), i32 %51, i32 %58, i32 %59, i32 %66)
%68 = call i32 (...) @get_pc()
%69 = call i32 (...) @get_pc()
%70 = add nsw i32 %69, 1
%71 = call i32 @copro_mc6809nc_read(i32 %70)
%72 = call i32 (...) @get_pc()
%73 = call i32 @copro_mc6809nc_read(i32 %72)
%74 = shl i32 %73, 8
%75 = add nsw i32 %71, %74
%76 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i32 %68, i32 %75)
%77 = call i32 (...) @get_u()
%78 = call i32 (...) @get_u()
%79 = add nsw i32 %78, 1
%80 = call i32 @copro_mc6809nc_read(i32 %79)
%81 = call i32 (...) @get_u()
%82 = call i32 @copro_mc6809nc_read(i32 %81)
%83 = shl i32 %82, 8
%84 = add nsw i32 %80, %83
%85 = call i32 (...) @get_s()
%86 = call i32 (...) @get_s()
%87 = add nsw i32 %86, 1
%88 = call i32 @copro_mc6809nc_read(i32 %87)
%89 = call i32 (...) @get_s()
%90 = call i32 @copro_mc6809nc_read(i32 %89)
%91 = shl i32 %90, 8
%92 = add nsw i32 %88, %91
%93 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.2, i64 0, i64 0), i32 %77, i32 %84, i32 %85, i32 %92)
%94 = call i32 (...) @get_dp()
%95 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i32 %94)
%96 = call i32 (...) @get_a()
%97 = call i32 (...) @get_b()
%98 = call i32 (...) @get_d()
%99 = add nsw i32 %98, 1
%100 = call i32 @copro_mc6809nc_read(i32 %99)
%101 = call i32 (...) @get_d()
%102 = call i32 @copro_mc6809nc_read(i32 %101)
%103 = shl i32 %102, 8
%104 = add nsw i32 %100, %103
%105 = getelementptr inbounds [9 x i8], [9 x i8]* %1, i64 0, i64 0
%106 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.4, i64 0, i64 0), i32 %96, i32 %97, i32 %104, i8* %105)
ret void
}

LLVM IR (-O2):
@__const.print_regs.flags = [9 x i8] c" \00"
@.str = [54 x i8] c" X: 0x%04X [X]: 0x%04X Y: 0x%04X [Y]: 0x%04X \00"
@.str.1 = [25 x i8] c"PC: 0x%04X [PC]: 0x%04X\0A\00"
@.str.2 = [54 x i8] c" U: 0x%04X [U]: 0x%04X S: 0x%04X [S]: 0x%04X \00"
@.str.3 = [12 x i8] c"DP: 0x%02X\0A\00"
@.str.4 = [51 x i8] c" A: 0x%02X B: 0x%02X [D]: 0x%04X CC: %s\0A\00"
define void @print_regs() {
%1 = alloca [9 x i8]
%2 = getelementptr inbounds [9 x i8], [9 x i8]* %1, i64 0, i64 0
%3 = tail call i32 (...) @get_cc()
%4 = and i32 %3, 1
%5 = icmp eq i32 %4, 0
br i1 %5, label %7, label %6
6: ; preds = %0
store i8 67, i8* %2
br label %7
7: ; preds = %6, %0
%8 = tail call i32 (...) @get_cc()
%9 = and i32 %8, 2
%10 = icmp eq i32 %9, 0
br i1 %10, label %13, label %11
11: ; preds = %7
%12 = getelementptr inbounds [9 x i8], [9 x i8]* %1, i64 0, i64 1
store i8 86, i8* %12
br label %13
13: ; preds = %11, %7
%14 = tail call i32 (...) @get_cc()
%15 = and i32 %14, 4
%16 = icmp eq i32 %15, 0
br i1 %16, label %19, label %17
17: ; preds = %13
%18 = getelementptr inbounds [9 x i8], [9 x i8]* %1, i64 0, i64 2
store i8 90, i8* %18
br label %19
19: ; preds = %17, %13
%20 = tail call i32 (...) @get_cc()
%21 = and i32 %20, 8
%22 = icmp eq i32 %21, 0
br i1 %22, label %25, label %23
23: ; preds = %19
%24 = getelementptr inbounds [9 x i8], [9 x i8]* %1, i64 0, i64 3
store i8 78, i8* %24
br label %25
25: ; preds = %23, %19
%26 = tail call i32 (...) @get_cc()
%27 = and i32 %26, 16
%28 = icmp eq i32 %27, 0
br i1 %28, label %31, label %29
29: ; preds = %25
%30 = getelementptr inbounds [9 x i8], [9 x i8]* %1, i64 0, i64 4
store i8 73, i8* %30
br label %31
31: ; preds = %29, %25
%32 = tail call i32 (...) @get_cc()
%33 = and i32 %32, 32
%34 = icmp eq i32 %33, 0
br i1 %34, label %37, label %35
35: ; preds = %31
%36 = getelementptr inbounds [9 x i8], [9 x i8]* %1, i64 0, i64 5
store i8 72, i8* %36
br label %37
37: ; preds = %35, %31
%38 = tail call i32 (...) @get_cc()
%39 = and i32 %38, 64
%40 = icmp eq i32 %39, 0
br i1 %40, label %43, label %41
41: ; preds = %37
%42 = getelementptr inbounds [9 x i8], [9 x i8]* %1, i64 0, i64 6
store i8 70, i8* %42
br label %43
43: ; preds = %41, %37
%44 = tail call i32 (...) @get_cc()
%45 = and i32 %44, 128
%46 = icmp eq i32 %45, 0
br i1 %46, label %49, label %47
47: ; preds = %43
%48 = getelementptr inbounds [9 x i8], [9 x i8]* %1, i64 0, i64 7
store i8 69, i8* %48
br label %49
49: ; preds = %47, %43
%50 = tail call i32 (...) @get_x()
%51 = tail call i32 (...) @get_x()
%52 = add nsw i32 %51, 1
%53 = tail call i32 @copro_mc6809nc_read(i32 %52)
%54 = tail call i32 (...) @get_x()
%55 = tail call i32 @copro_mc6809nc_read(i32 %54)
%56 = shl i32 %55, 8
%57 = add nsw i32 %56, %53
%58 = tail call i32 (...) @get_y()
%59 = tail call i32 (...) @get_y()
%60 = add nsw i32 %59, 1
%61 = tail call i32 @copro_mc6809nc_read(i32 %60)
%62 = tail call i32 (...) @get_y()
%63 = tail call i32 @copro_mc6809nc_read(i32 %62)
%64 = shl i32 %63, 8
%65 = add nsw i32 %64, %61
%66 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str, i64 0, i64 0), i32 %50, i32 %57, i32 %58, i32 %65)
%67 = tail call i32 (...) @get_pc()
%68 = tail call i32 (...) @get_pc()
%69 = add nsw i32 %68, 1
%70 = tail call i32 @copro_mc6809nc_read(i32 %69)
%71 = tail call i32 (...) @get_pc()
%72 = tail call i32 @copro_mc6809nc_read(i32 %71)
%73 = shl i32 %72, 8
%74 = add nsw i32 %73, %70
%75 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i32 %67, i32 %74)
%76 = tail call i32 (...) @get_u()
%77 = tail call i32 (...) @get_u()
%78 = add nsw i32 %77, 1
%79 = tail call i32 @copro_mc6809nc_read(i32 %78)
%80 = tail call i32 (...) @get_u()
%81 = tail call i32 @copro_mc6809nc_read(i32 %80)
%82 = shl i32 %81, 8
%83 = add nsw i32 %82, %79
%84 = tail call i32 (...) @get_s()
%85 = tail call i32 (...) @get_s()
%86 = add nsw i32 %85, 1
%87 = tail call i32 @copro_mc6809nc_read(i32 %86)
%88 = tail call i32 (...) @get_s()
%89 = tail call i32 @copro_mc6809nc_read(i32 %88)
%90 = shl i32 %89, 8
%91 = add nsw i32 %90, %87
%92 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.2, i64 0, i64 0), i32 %76, i32 %83, i32 %84, i32 %91)
%93 = tail call i32 (...) @get_dp()
%94 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i32 %93)
%95 = tail call i32 (...) @get_a()
%96 = tail call i32 (...) @get_b()
%97 = tail call i32 (...) @get_d()
%98 = add nsw i32 %97, 1
%99 = tail call i32 @copro_mc6809nc_read(i32 %98)
%100 = tail call i32 (...) @get_d()
%101 = tail call i32 @copro_mc6809nc_read(i32 %100)
%102 = shl i32 %101, 8
%103 = add nsw i32 %102, %99
%104 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.4, i64 0, i64 0), i32 %95, i32 %96, i32 %103, i8* %2)
ret void
}