void diskd0(void) {
  char Buffer[512];
  char str[256];
  int drive, sec, head, trk, i, ii, c, line;
  puts0("drive? ");
  getsn(str, 256);
  drive = htoi(str);
  puts0("\r\nsec? (1-...) ");
  getsn(str, 256);
  sec = htoi(str);
  puts0("\r\nhead? ");
  getsn(str, 256);
  head = htoi(str);
  puts0("\r\ntrk (cyl)? ");
  getsn(str, 256);
  trk = htoi(str);
  puts0("\r\ndrive = ");
  puthex(drive);
  puts0(" sec = ");
  puthex(sec);
  puts0(" head = ");
  puthex(head);
  puts0(" trk = ");
  puthex(trk);
  for (i = 0; i < 512; i++)
    Buffer[i] = 0;
  i = readsec0(drive, sec, head, trk, Buffer);
  puts0(" err code = ");
  puthex(i);
  if (i == 1)
    puts0(" OK");
  puts0("\r\n");
  ii = 0;
  for (line = 0; line < 32; line++) {
    if (line == 15) {
      puts0(" press any key ");
      getch();
      putch('\r');
    }
    for (i = 0; i < 16; i++) {
      c = Buffer[ii++];
      puthex_b(c);
      putch(' ');
    }
    ii = ii - 16;
    for (i = 0; i < 16; i++) {
      c = (Buffer[ii++]) & 0xFFU;
      if (c < ' ')
        putch('.');
      else
        putch(c);
    }
    puts0("\r\n");
  }
}


x86 assembly (clang, -O0):
<diskd0>:
push   %rbp
mov    %rsp,%rbp
sub    $0x320,%rsp
lea    0xe6e(%rip),%rdi
mov    $0x0,%al
call   1090 <puts0@plt>
lea    -0x300(%rbp),%rdi
mov    $0x100,%esi
mov    $0x0,%al
call   1030 <getsn@plt>
lea    -0x300(%rbp),%rdi
mov    $0x0,%al
call   1070 <htoi@plt>
mov    %eax,-0x304(%rbp)
lea    0xe41(%rip),%rdi
mov    $0x0,%al
call   1090 <puts0@plt>
lea    -0x300(%rbp),%rdi
mov    $0x100,%esi
mov    $0x0,%al
call   1030 <getsn@plt>
lea    -0x300(%rbp),%rdi
mov    $0x0,%al
call   1070 <htoi@plt>
mov    %eax,-0x308(%rbp)
lea    0xe1c(%rip),%rdi
mov    $0x0,%al
call   1090 <puts0@plt>
lea    -0x300(%rbp),%rdi
mov    $0x100,%esi
mov    $0x0,%al
call   1030 <getsn@plt>
lea    -0x300(%rbp),%rdi
mov    $0x0,%al
call   1070 <htoi@plt>
mov    %eax,-0x30c(%rbp)
lea    0xdf0(%rip),%rdi
mov    $0x0,%al
call   1090 <puts0@plt>
lea    -0x300(%rbp),%rdi
mov    $0x100,%esi
mov    $0x0,%al
call   1030 <getsn@plt>
lea    -0x300(%rbp),%rdi
mov    $0x0,%al
call   1070 <htoi@plt>
mov    %eax,-0x310(%rbp)
lea    0xdc9(%rip),%rdi
mov    $0x0,%al
call   1090 <puts0@plt>
mov    -0x304(%rbp),%edi
mov    $0x0,%al
call   1060 <puthex@plt>
lea    0xdb9(%rip),%rdi
mov    $0x0,%al
call   1090 <puts0@plt>
mov    -0x308(%rbp),%edi
mov    $0x0,%al
call   1060 <puthex@plt>
lea    0xda6(%rip),%rdi
mov    $0x0,%al
call   1090 <puts0@plt>
mov    -0x30c(%rbp),%edi
mov    $0x0,%al
call   1060 <puthex@plt>
lea    0xd94(%rip),%rdi
mov    $0x0,%al
call   1090 <puts0@plt>
mov    -0x310(%rbp),%edi
mov    $0x0,%al
call   1060 <puthex@plt>
movl   $0x0,-0x314(%rbp)
cmpl   $0x200,-0x314(%rbp)
jge    1308 <diskd0+0x188>
movslq -0x314(%rbp),%rax
movb   $0x0,-0x200(%rbp,%rax,1)
mov    -0x314(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x314(%rbp)
jmp    12d5 <diskd0+0x155>
mov    -0x304(%rbp),%edi
mov    -0x308(%rbp),%esi
mov    -0x30c(%rbp),%edx
mov    -0x310(%rbp),%ecx
lea    -0x200(%rbp),%r8
mov    $0x0,%al
call   1050 <readsec0@plt>
mov    %eax,-0x314(%rbp)
lea    0xd18(%rip),%rdi
mov    $0x0,%al
call   1090 <puts0@plt>
mov    -0x314(%rbp),%edi
mov    $0x0,%al
call   1060 <puthex@plt>
cmpl   $0x1,-0x314(%rbp)
jne    136a <diskd0+0x1ea>
lea    0xcfd(%rip),%rdi
mov    $0x0,%al
call   1090 <puts0@plt>
lea    0xcf3(%rip),%rdi
mov    $0x0,%al
call   1090 <puts0@plt>
movl   $0x0,-0x318(%rbp)
movl   $0x0,-0x320(%rbp)
cmpl   $0x20,-0x320(%rbp)
jge    14de <diskd0+0x35e>
cmpl   $0xf,-0x320(%rbp)
jne    13c7 <diskd0+0x247>
lea    0xcba(%rip),%rdi
mov    $0x0,%al
call   1090 <puts0@plt>
mov    $0x0,%al
call   1080 <getch@plt>
mov    $0xd,%edi
mov    $0x0,%al
call   10a0 <putch@plt>
movl   $0x0,-0x314(%rbp)
cmpl   $0x10,-0x314(%rbp)
jge    142c <diskd0+0x2ac>
mov    -0x318(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x318(%rbp)
cltq
movsbl -0x200(%rbp,%rax,1),%eax
ff
mov    %eax,-0x31c(%rbp)
mov    -0x31c(%rbp),%edi
mov    $0x0,%al
call   1040 <puthex_b@plt>
mov    $0x20,%edi
mov    $0x0,%al
call   10a0 <putch@plt>
mov    -0x314(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x314(%rbp)
jmp    13d1 <diskd0+0x251>
mov    -0x318(%rbp),%eax
sub    $0x10,%eax
mov    %eax,-0x318(%rbp)
movl   $0x0,-0x314(%rbp)
cmpl   $0x10,-0x314(%rbp)
jge    14bc <diskd0+0x33c>
mov    -0x318(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x318(%rbp)
cltq
movsbl -0x200(%rbp,%rax,1),%eax
ff
and    $0xff,%eax
mov    %eax,-0x31c(%rbp)
cmpl   $0x20,-0x31c(%rbp)
jge    1496 <diskd0+0x316>
mov    $0x2e,%edi
mov    $0x0,%al
call   10a0 <putch@plt>
jmp    14a3 <diskd0+0x323>
mov    -0x31c(%rbp),%edi
mov    $0x0,%al
call   10a0 <putch@plt>
jmp    14a8 <diskd0+0x328>
mov    -0x314(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x314(%rbp)
jmp    1445 <diskd0+0x2c5>
lea    0xba1(%rip),%rdi
mov    $0x0,%al
call   1090 <puts0@plt>
mov    -0x320(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x320(%rbp)
jmp    138c <diskd0+0x20c>
add    $0x320,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<diskd0>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x300,%rsp
lea    0xe5a(%rip),%rdi
xor    %eax,%eax
call   10a0 <puts0@plt>
lea    0x200(%rsp),%rbp
mov    %rbp,%rdi
mov    $0x100,%esi
xor    %eax,%eax
call   1030 <getsn@plt>
mov    %rbp,%rdi
xor    %eax,%eax
call   1080 <htoi@plt>
mov    %eax,%r14d
lea    0xe30(%rip),%rdi
xor    %eax,%eax
call   10a0 <puts0@plt>
mov    %rbp,%rdi
mov    $0x100,%esi
xor    %eax,%eax
call   1030 <getsn@plt>
mov    %rbp,%rdi
xor    %eax,%eax
call   1080 <htoi@plt>
mov    %eax,%r15d
lea    0xe16(%rip),%rdi
xor    %eax,%eax
call   10a0 <puts0@plt>
mov    %rbp,%rdi
mov    $0x100,%esi
xor    %eax,%eax
call   1030 <getsn@plt>
mov    %rbp,%rdi
xor    %eax,%eax
call   1080 <htoi@plt>
mov    %eax,%r12d
lea    0xdf5(%rip),%rdi
xor    %eax,%eax
call   10a0 <puts0@plt>
mov    %rbp,%rdi
mov    $0x100,%esi
xor    %eax,%eax
call   1030 <getsn@plt>
mov    %rbp,%rdi
xor    %eax,%eax
call   1080 <htoi@plt>
mov    %eax,%ebp
lea    0xdda(%rip),%rdi
xor    %eax,%eax
call   10a0 <puts0@plt>
mov    %r14d,%edi
xor    %eax,%eax
call   1070 <puthex@plt>
lea    0xdcd(%rip),%rdi
xor    %eax,%eax
call   10a0 <puts0@plt>
mov    %r15d,%edi
xor    %eax,%eax
call   1070 <puthex@plt>
lea    0xdbd(%rip),%rdi
xor    %eax,%eax
call   10a0 <puts0@plt>
mov    %r12d,%edi
xor    %eax,%eax
call   1070 <puthex@plt>
lea    0xdae(%rip),%rdi
xor    %eax,%eax
call   10a0 <puts0@plt>
mov    %ebp,%edi
xor    %eax,%eax
call   1070 <puthex@plt>
mov    %rsp,%rbx
mov    $0x200,%edx
mov    %rbx,%rdi
xor    %esi,%esi
call   1060 <memset@plt>
mov    %r14d,%edi
mov    %r15d,%esi
mov    %r12d,%edx
mov    %ebp,%ecx
mov    %rbx,%r8
xor    %eax,%eax
call   1050 <readsec0@plt>
mov    %eax,%ebx
lea    0xd76(%rip),%rdi
xor    %eax,%eax
call   10a0 <puts0@plt>
mov    %ebx,%edi
xor    %eax,%eax
call   1070 <puthex@plt>
cmp    $0x1,%ebx
jne    1300 <diskd0+0x170>
lea    0xd67(%rip),%rdi
xor    %eax,%eax
call   10a0 <puts0@plt>
lea    0xd5d(%rip),%r15
mov    %r15,%rdi
xor    %eax,%eax
call   10a0 <puts0@plt>
lea    0xd4f(%rip),%r14
mov    $0x2e,%ebp
xor    %ebx,%ebx
jmp    1600 <diskd0+0x470>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movsbl (%rsp,%rbx,1),%edi
xor    %eax,%eax
call   1040 <puthex_b@plt>
mov    $0x20,%edi
xor    %eax,%eax
call   10b0 <putch@plt>
movsbl 0x1(%rsp,%rbx,1),%edi
xor    %eax,%eax
call   1040 <puthex_b@plt>
mov    $0x20,%edi
xor    %eax,%eax
call   10b0 <putch@plt>
movsbl 0x2(%rsp,%rbx,1),%edi
xor    %eax,%eax
call   1040 <puthex_b@plt>
mov    $0x20,%edi
xor    %eax,%eax
call   10b0 <putch@plt>
movsbl 0x3(%rsp,%rbx,1),%edi
xor    %eax,%eax
call   1040 <puthex_b@plt>
mov    $0x20,%edi
xor    %eax,%eax
call   10b0 <putch@plt>
movsbl 0x4(%rsp,%rbx,1),%edi
xor    %eax,%eax
call   1040 <puthex_b@plt>
mov    $0x20,%edi
xor    %eax,%eax
call   10b0 <putch@plt>
movsbl 0x5(%rsp,%rbx,1),%edi
xor    %eax,%eax
call   1040 <puthex_b@plt>
mov    $0x20,%edi
xor    %eax,%eax
call   10b0 <putch@plt>
movsbl 0x6(%rsp,%rbx,1),%edi
xor    %eax,%eax
call   1040 <puthex_b@plt>
mov    $0x20,%edi
xor    %eax,%eax
call   10b0 <putch@plt>
movsbl 0x7(%rsp,%rbx,1),%edi
xor    %eax,%eax
call   1040 <puthex_b@plt>
mov    $0x20,%edi
xor    %eax,%eax
call   10b0 <putch@plt>
movsbl 0x8(%rsp,%rbx,1),%edi
xor    %eax,%eax
call   1040 <puthex_b@plt>
mov    $0x20,%edi
xor    %eax,%eax
call   10b0 <putch@plt>
movsbl 0x9(%rsp,%rbx,1),%edi
xor    %eax,%eax
call   1040 <puthex_b@plt>
mov    $0x20,%edi
xor    %eax,%eax
call   10b0 <putch@plt>
movsbl 0xa(%rsp,%rbx,1),%edi
xor    %eax,%eax
call   1040 <puthex_b@plt>
mov    $0x20,%edi
xor    %eax,%eax
call   10b0 <putch@plt>
movsbl 0xb(%rsp,%rbx,1),%edi
xor    %eax,%eax
call   1040 <puthex_b@plt>
mov    $0x20,%edi
xor    %eax,%eax
call   10b0 <putch@plt>
movsbl 0xc(%rsp,%rbx,1),%edi
xor    %eax,%eax
call   1040 <puthex_b@plt>
mov    $0x20,%edi
xor    %eax,%eax
call   10b0 <putch@plt>
movsbl 0xd(%rsp,%rbx,1),%edi
xor    %eax,%eax
call   1040 <puthex_b@plt>
mov    $0x20,%edi
xor    %eax,%eax
call   10b0 <putch@plt>
movsbl 0xe(%rsp,%rbx,1),%edi
xor    %eax,%eax
call   1040 <puthex_b@plt>
mov    $0x20,%edi
xor    %eax,%eax
call   10b0 <putch@plt>
movsbl 0xf(%rsp,%rbx,1),%edi
xor    %eax,%eax
call   1040 <puthex_b@plt>
mov    $0x20,%edi
xor    %eax,%eax
call   10b0 <putch@plt>
mov    (%rsp,%rbx,1),%eax
cmp    $0x20,%al
cmovb  %ebp,%eax
movzbl %al,%edi
xor    %eax,%eax
call   10b0 <putch@plt>
movzbl 0x1(%rsp,%rbx,1),%eax
cmp    $0x20,%al
cmovb  %ebp,%eax
movzbl %al,%edi
xor    %eax,%eax
call   10b0 <putch@plt>
movzbl 0x2(%rsp,%rbx,1),%eax
cmp    $0x20,%al
cmovb  %ebp,%eax
movzbl %al,%edi
xor    %eax,%eax
call   10b0 <putch@plt>
movzbl 0x3(%rsp,%rbx,1),%eax
cmp    $0x20,%al
cmovb  %ebp,%eax
movzbl %al,%edi
xor    %eax,%eax
call   10b0 <putch@plt>
mov    0x4(%rsp,%rbx,1),%eax
cmp    $0x20,%al
cmovb  %ebp,%eax
movzbl %al,%edi
xor    %eax,%eax
call   10b0 <putch@plt>
movzbl 0x5(%rsp,%rbx,1),%eax
cmp    $0x20,%al
cmovb  %ebp,%eax
movzbl %al,%edi
xor    %eax,%eax
call   10b0 <putch@plt>
movzbl 0x6(%rsp,%rbx,1),%eax
cmp    $0x20,%al
cmovb  %ebp,%eax
movzbl %al,%edi
xor    %eax,%eax
call   10b0 <putch@plt>
movzbl 0x7(%rsp,%rbx,1),%eax
cmp    $0x20,%al
cmovb  %ebp,%eax
movzbl %al,%edi
xor    %eax,%eax
call   10b0 <putch@plt>
mov    0x8(%rsp,%rbx,1),%eax
cmp    $0x20,%al
cmovb  %ebp,%eax
movzbl %al,%edi
xor    %eax,%eax
call   10b0 <putch@plt>
movzbl 0x9(%rsp,%rbx,1),%eax
cmp    $0x20,%al
cmovb  %ebp,%eax
movzbl %al,%edi
xor    %eax,%eax
call   10b0 <putch@plt>
movzbl 0xa(%rsp,%rbx,1),%eax
cmp    $0x20,%al
cmovb  %ebp,%eax
movzbl %al,%edi
xor    %eax,%eax
call   10b0 <putch@plt>
movzbl 0xb(%rsp,%rbx,1),%eax
cmp    $0x20,%al
cmovb  %ebp,%eax
movzbl %al,%edi
xor    %eax,%eax
call   10b0 <putch@plt>
mov    0xc(%rsp,%rbx,1),%eax
cmp    $0x20,%al
cmovb  %ebp,%eax
movzbl %al,%edi
xor    %eax,%eax
call   10b0 <putch@plt>
movzbl 0xd(%rsp,%rbx,1),%eax
cmp    $0x20,%al
cmovb  %ebp,%eax
movzbl %al,%edi
xor    %eax,%eax
call   10b0 <putch@plt>
movzbl 0xe(%rsp,%rbx,1),%eax
cmp    $0x20,%al
cmovb  %ebp,%eax
movzbl %al,%edi
xor    %eax,%eax
call   10b0 <putch@plt>
movzbl 0xf(%rsp,%rbx,1),%eax
cmp    $0x20,%al
cmovb  %ebp,%eax
movzbl %al,%edi
xor    %eax,%eax
call   10b0 <putch@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   10a0 <puts0@plt>
add    $0x10,%rbx
cmp    $0x200,%ebx
je     162e <diskd0+0x49e>
cmp    $0xf0,%ebx
jne    1330 <diskd0+0x1a0>
mov    %r14,%rdi
xor    %eax,%eax
call   10a0 <puts0@plt>
xor    %eax,%eax
call   1090 <getch@plt>
mov    $0xd,%edi
xor    %eax,%eax
call   10b0 <putch@plt>
jmp    1330 <diskd0+0x1a0>
add    $0x300,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [8 x i8] c"drive? \00"
@.str.1 = [16 x i8] c"\0D\0Asec? (1-...) \00"
@.str.2 = [9 x i8] c"\0D\0Ahead? \00"
@.str.3 = [14 x i8] c"\0D\0Atrk (cyl)? \00"
@.str.4 = [11 x i8] c"\0D\0Adrive = \00"
@.str.5 = [8 x i8] c" sec = \00"
@.str.6 = [9 x i8] c" head = \00"
@.str.7 = [8 x i8] c" trk = \00"
@.str.8 = [13 x i8] c" err code = \00"
@.str.9 = [4 x i8] c" OK\00"
@.str.10 = [3 x i8] c"\0D\0A\00"
@.str.11 = [16 x i8] c" press any key \00"
define void @diskd0() {
%1 = alloca [512 x i8]
%2 = alloca [256 x i8]
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = call i32 (i8*, ...) bitcast (i32 (...)* @puts0 to i32 (i8*, ...)*)(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%12 = getelementptr inbounds [256 x i8], [256 x i8]* %2, i64 0, i64 0
%13 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @getsn to i32 (i8*, i32, ...)*)(i8* %12, i32 256)
%14 = getelementptr inbounds [256 x i8], [256 x i8]* %2, i64 0, i64 0
%15 = call i32 (i8*, ...) bitcast (i32 (...)* @htoi to i32 (i8*, ...)*)(i8* %14)
store i32 %15, i32* %3
%16 = call i32 (i8*, ...) bitcast (i32 (...)* @puts0 to i32 (i8*, ...)*)(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0))
%17 = getelementptr inbounds [256 x i8], [256 x i8]* %2, i64 0, i64 0
%18 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @getsn to i32 (i8*, i32, ...)*)(i8* %17, i32 256)
%19 = getelementptr inbounds [256 x i8], [256 x i8]* %2, i64 0, i64 0
%20 = call i32 (i8*, ...) bitcast (i32 (...)* @htoi to i32 (i8*, ...)*)(i8* %19)
store i32 %20, i32* %4
%21 = call i32 (i8*, ...) bitcast (i32 (...)* @puts0 to i32 (i8*, ...)*)(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
%22 = getelementptr inbounds [256 x i8], [256 x i8]* %2, i64 0, i64 0
%23 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @getsn to i32 (i8*, i32, ...)*)(i8* %22, i32 256)
%24 = getelementptr inbounds [256 x i8], [256 x i8]* %2, i64 0, i64 0
%25 = call i32 (i8*, ...) bitcast (i32 (...)* @htoi to i32 (i8*, ...)*)(i8* %24)
store i32 %25, i32* %5
%26 = call i32 (i8*, ...) bitcast (i32 (...)* @puts0 to i32 (i8*, ...)*)(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0))
%27 = getelementptr inbounds [256 x i8], [256 x i8]* %2, i64 0, i64 0
%28 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @getsn to i32 (i8*, i32, ...)*)(i8* %27, i32 256)
%29 = getelementptr inbounds [256 x i8], [256 x i8]* %2, i64 0, i64 0
%30 = call i32 (i8*, ...) bitcast (i32 (...)* @htoi to i32 (i8*, ...)*)(i8* %29)
store i32 %30, i32* %6
%31 = call i32 (i8*, ...) bitcast (i32 (...)* @puts0 to i32 (i8*, ...)*)(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0))
%32 = load i32, i32* %3
%33 = call i32 (i32, ...) bitcast (i32 (...)* @puthex to i32 (i32, ...)*)(i32 %32)
%34 = call i32 (i8*, ...) bitcast (i32 (...)* @puts0 to i32 (i8*, ...)*)(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0))
%35 = load i32, i32* %4
%36 = call i32 (i32, ...) bitcast (i32 (...)* @puthex to i32 (i32, ...)*)(i32 %35)
%37 = call i32 (i8*, ...) bitcast (i32 (...)* @puts0 to i32 (i8*, ...)*)(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0))
%38 = load i32, i32* %5
%39 = call i32 (i32, ...) bitcast (i32 (...)* @puthex to i32 (i32, ...)*)(i32 %38)
%40 = call i32 (i8*, ...) bitcast (i32 (...)* @puts0 to i32 (i8*, ...)*)(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0))
%41 = load i32, i32* %6
%42 = call i32 (i32, ...) bitcast (i32 (...)* @puthex to i32 (i32, ...)*)(i32 %41)
store i32 0, i32* %7
br label %43
43: ; preds = %50, %0
%44 = load i32, i32* %7
%45 = icmp slt i32 %44, 512
br i1 %45, label %46, label %53
46: ; preds = %43
%47 = load i32, i32* %7
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [512 x i8], [512 x i8]* %1, i64 0, i64 %48
store i8 0, i8* %49
br label %50
50: ; preds = %46
%51 = load i32, i32* %7
%52 = add nsw i32 %51, 1
store i32 %52, i32* %7
br label %43
53: ; preds = %43
%54 = load i32, i32* %3
%55 = load i32, i32* %4
%56 = load i32, i32* %5
%57 = load i32, i32* %6
%58 = getelementptr inbounds [512 x i8], [512 x i8]* %1, i64 0, i64 0
%59 = call i32 (i32, i32, i32, i32, i8*, ...) bitcast (i32 (...)* @readsec0 to i32 (i32, i32, i32, i32, i8*, ...)*)(i32 %54, i32 %55, i32 %56, i32 %57, i8* %58)
store i32 %59, i32* %7
%60 = call i32 (i8*, ...) bitcast (i32 (...)* @puts0 to i32 (i8*, ...)*)(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.8, i64 0, i64 0))
%61 = load i32, i32* %7
%62 = call i32 (i32, ...) bitcast (i32 (...)* @puthex to i32 (i32, ...)*)(i32 %61)
%63 = load i32, i32* %7
%64 = icmp eq i32 %63, 1
br i1 %64, label %65, label %67
65: ; preds = %53
%66 = call i32 (i8*, ...) bitcast (i32 (...)* @puts0 to i32 (i8*, ...)*)(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0))
br label %67
67: ; preds = %65, %53
%68 = call i32 (i8*, ...) bitcast (i32 (...)* @puts0 to i32 (i8*, ...)*)(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0))
store i32 0, i32* %8
store i32 0, i32* %10
br label %69
69: ; preds = %123, %67
%70 = load i32, i32* %10
%71 = icmp slt i32 %70, 32
br i1 %71, label %72, label %126
72: ; preds = %69
%73 = load i32, i32* %10
%74 = icmp eq i32 %73, 15
br i1 %74, label %75, label %79
75: ; preds = %72
%76 = call i32 (i8*, ...) bitcast (i32 (...)* @puts0 to i32 (i8*, ...)*)(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.11, i64 0, i64 0))
%77 = call i32 (...) @getch()
%78 = call i32 (i32, ...) bitcast (i32 (...)* @putch to i32 (i32, ...)*)(i32 13)
br label %79
79: ; preds = %75, %72
store i32 0, i32* %7
br label %80
80: ; preds = %93, %79
%81 = load i32, i32* %7
%82 = icmp slt i32 %81, 16
br i1 %82, label %83, label %96
83: ; preds = %80
%84 = load i32, i32* %8
%85 = add nsw i32 %84, 1
store i32 %85, i32* %8
%86 = sext i32 %84 to i64
%87 = getelementptr inbounds [512 x i8], [512 x i8]* %1, i64 0, i64 %86
%88 = load i8, i8* %87
%89 = sext i8 %88 to i32
store i32 %89, i32* %9
%90 = load i32, i32* %9
%91 = call i32 (i32, ...) bitcast (i32 (...)* @puthex_b to i32 (i32, ...)*)(i32 %90)
%92 = call i32 (i32, ...) bitcast (i32 (...)* @putch to i32 (i32, ...)*)(i32 32)
br label %93
93: ; preds = %83
%94 = load i32, i32* %7
%95 = add nsw i32 %94, 1
store i32 %95, i32* %7
br label %80
96: ; preds = %80
%97 = load i32, i32* %8
%98 = sub nsw i32 %97, 16
store i32 %98, i32* %8
store i32 0, i32* %7
br label %99
99: ; preds = %118, %96
%100 = load i32, i32* %7
%101 = icmp slt i32 %100, 16
br i1 %101, label %102, label %121
102: ; preds = %99
%103 = load i32, i32* %8
%104 = add nsw i32 %103, 1
store i32 %104, i32* %8
%105 = sext i32 %103 to i64
%106 = getelementptr inbounds [512 x i8], [512 x i8]* %1, i64 0, i64 %105
%107 = load i8, i8* %106
%108 = sext i8 %107 to i32
%109 = and i32 %108, 255
store i32 %109, i32* %9
%110 = load i32, i32* %9
%111 = icmp slt i32 %110, 32
br i1 %111, label %112, label %114
112: ; preds = %102
%113 = call i32 (i32, ...) bitcast (i32 (...)* @putch to i32 (i32, ...)*)(i32 46)
br label %117
114: ; preds = %102
%115 = load i32, i32* %9
%116 = call i32 (i32, ...) bitcast (i32 (...)* @putch to i32 (i32, ...)*)(i32 %115)
br label %117
117: ; preds = %114, %112
br label %118
118: ; preds = %117
%119 = load i32, i32* %7
%120 = add nsw i32 %119, 1
store i32 %120, i32* %7
br label %99
121: ; preds = %99
%122 = call i32 (i8*, ...) bitcast (i32 (...)* @puts0 to i32 (i8*, ...)*)(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0))
br label %123
123: ; preds = %121
%124 = load i32, i32* %10
%125 = add nsw i32 %124, 1
store i32 %125, i32* %10
br label %69
126: ; preds = %69
ret void
}

LLVM IR (-O2):
@.str = [8 x i8] c"drive? \00"
@.str.1 = [16 x i8] c"\0D\0Asec? (1-...) \00"
@.str.2 = [9 x i8] c"\0D\0Ahead? \00"
@.str.3 = [14 x i8] c"\0D\0Atrk (cyl)? \00"
@.str.4 = [11 x i8] c"\0D\0Adrive = \00"
@.str.5 = [8 x i8] c" sec = \00"
@.str.6 = [9 x i8] c" head = \00"
@.str.7 = [8 x i8] c" trk = \00"
@.str.8 = [13 x i8] c" err code = \00"
@.str.9 = [4 x i8] c" OK\00"
@.str.10 = [3 x i8] c"\0D\0A\00"
@.str.11 = [16 x i8] c" press any key \00"
define void @diskd0() {
%1 = alloca [512 x i8]
%2 = getelementptr inbounds [512 x i8], [512 x i8]* %1, i64 0, i64 0
%3 = alloca [256 x i8]
%4 = getelementptr inbounds [512 x i8], [512 x i8]* %1, i64 0, i64 0
%5 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 0
%6 = tail call i32 (i8*, ...) bitcast (i32 (...)* @puts0 to i32 (i8*, ...)*)(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%7 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @getsn to i32 (i8*, i32, ...)*)(i8* %5, i32 256)
%8 = call i32 (i8*, ...) bitcast (i32 (...)* @htoi to i32 (i8*, ...)*)(i8* %5)
%9 = call i32 (i8*, ...) bitcast (i32 (...)* @puts0 to i32 (i8*, ...)*)(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0))
%10 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @getsn to i32 (i8*, i32, ...)*)(i8* %5, i32 256)
%11 = call i32 (i8*, ...) bitcast (i32 (...)* @htoi to i32 (i8*, ...)*)(i8* %5)
%12 = call i32 (i8*, ...) bitcast (i32 (...)* @puts0 to i32 (i8*, ...)*)(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
%13 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @getsn to i32 (i8*, i32, ...)*)(i8* %5, i32 256)
%14 = call i32 (i8*, ...) bitcast (i32 (...)* @htoi to i32 (i8*, ...)*)(i8* %5)
%15 = call i32 (i8*, ...) bitcast (i32 (...)* @puts0 to i32 (i8*, ...)*)(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0))
%16 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @getsn to i32 (i8*, i32, ...)*)(i8* %5, i32 256)
%17 = call i32 (i8*, ...) bitcast (i32 (...)* @htoi to i32 (i8*, ...)*)(i8* %5)
%18 = call i32 (i8*, ...) bitcast (i32 (...)* @puts0 to i32 (i8*, ...)*)(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0))
%19 = call i32 (i32, ...) bitcast (i32 (...)* @puthex to i32 (i32, ...)*)(i32 %8)
%20 = call i32 (i8*, ...) bitcast (i32 (...)* @puts0 to i32 (i8*, ...)*)(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0))
%21 = call i32 (i32, ...) bitcast (i32 (...)* @puthex to i32 (i32, ...)*)(i32 %11)
%22 = call i32 (i8*, ...) bitcast (i32 (...)* @puts0 to i32 (i8*, ...)*)(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0))
%23 = call i32 (i32, ...) bitcast (i32 (...)* @puthex to i32 (i32, ...)*)(i32 %14)
%24 = call i32 (i8*, ...) bitcast (i32 (...)* @puts0 to i32 (i8*, ...)*)(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0))
%25 = call i32 (i32, ...) bitcast (i32 (...)* @puthex to i32 (i32, ...)*)(i32 %17)
%26 = call i32 (i32, i32, i32, i32, i8*, ...) bitcast (i32 (...)* @readsec0 to i32 (i32, i32, i32, i32, i8*, ...)*)(i32 %8, i32 %11, i32 %14, i32 %17, i8* %4)
%27 = call i32 (i8*, ...) bitcast (i32 (...)* @puts0 to i32 (i8*, ...)*)(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.8, i64 0, i64 0))
%28 = call i32 (i32, ...) bitcast (i32 (...)* @puthex to i32 (i32, ...)*)(i32 %26)
%29 = icmp eq i32 %26, 1
br i1 %29, label %30, label %32
30: ; preds = %0
%31 = call i32 (i8*, ...) bitcast (i32 (...)* @puts0 to i32 (i8*, ...)*)(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0))
br label %32
32: ; preds = %30, %0
%33 = call i32 (i8*, ...) bitcast (i32 (...)* @puts0 to i32 (i8*, ...)*)(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0))
br label %34
34: ; preds = %32, %42
%35 = phi i32 [ 0, %32 ], [ %252, %42 ]
%36 = phi i32 [ 0, %32 ], [ %139, %42 ]
%37 = icmp eq i32 %35, 15
br i1 %37, label %38, label %42
38: ; preds = %34
%39 = call i32 (i8*, ...) bitcast (i32 (...)* @puts0 to i32 (i8*, ...)*)(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.11, i64 0, i64 0))
%40 = call i32 (...) @getch()
%41 = call i32 (i32, ...) bitcast (i32 (...)* @putch to i32 (i32, ...)*)(i32 13)
br label %42
42: ; preds = %38, %34
%43 = sext i32 %36 to i64
%44 = or i64 %43, 1
%45 = getelementptr inbounds [512 x i8], [512 x i8]* %1, i64 0, i64 %43
%46 = load i8, i8* %45
%47 = sext i8 %46 to i32
%48 = call i32 (i32, ...) bitcast (i32 (...)* @puthex_b to i32 (i32, ...)*)(i32 %47)
%49 = call i32 (i32, ...) bitcast (i32 (...)* @putch to i32 (i32, ...)*)(i32 32)
%50 = or i64 %43, 2
%51 = getelementptr inbounds [512 x i8], [512 x i8]* %1, i64 0, i64 %44
%52 = load i8, i8* %51
%53 = sext i8 %52 to i32
%54 = call i32 (i32, ...) bitcast (i32 (...)* @puthex_b to i32 (i32, ...)*)(i32 %53)
%55 = call i32 (i32, ...) bitcast (i32 (...)* @putch to i32 (i32, ...)*)(i32 32)
%56 = or i64 %43, 3
%57 = getelementptr inbounds [512 x i8], [512 x i8]* %1, i64 0, i64 %50
%58 = load i8, i8* %57
%59 = sext i8 %58 to i32
%60 = call i32 (i32, ...) bitcast (i32 (...)* @puthex_b to i32 (i32, ...)*)(i32 %59)
%61 = call i32 (i32, ...) bitcast (i32 (...)* @putch to i32 (i32, ...)*)(i32 32)
%62 = or i64 %43, 4
%63 = getelementptr inbounds [512 x i8], [512 x i8]* %1, i64 0, i64 %56
%64 = load i8, i8* %63
%65 = sext i8 %64 to i32
%66 = call i32 (i32, ...) bitcast (i32 (...)* @puthex_b to i32 (i32, ...)*)(i32 %65)
%67 = call i32 (i32, ...) bitcast (i32 (...)* @putch to i32 (i32, ...)*)(i32 32)
%68 = or i64 %43, 5
%69 = getelementptr inbounds [512 x i8], [512 x i8]* %1, i64 0, i64 %62
%70 = load i8, i8* %69
%71 = sext i8 %70 to i32
%72 = call i32 (i32, ...) bitcast (i32 (...)* @puthex_b to i32 (i32, ...)*)(i32 %71)
%73 = call i32 (i32, ...) bitcast (i32 (...)* @putch to i32 (i32, ...)*)(i32 32)
%74 = or i64 %43, 6
%75 = getelementptr inbounds [512 x i8], [512 x i8]* %1, i64 0, i64 %68
%76 = load i8, i8* %75
%77 = sext i8 %76 to i32
%78 = call i32 (i32, ...) bitcast (i32 (...)* @puthex_b to i32 (i32, ...)*)(i32 %77)
%79 = call i32 (i32, ...) bitcast (i32 (...)* @putch to i32 (i32, ...)*)(i32 32)
%80 = or i64 %43, 7
%81 = getelementptr inbounds [512 x i8], [512 x i8]* %1, i64 0, i64 %74
%82 = load i8, i8* %81
%83 = sext i8 %82 to i32
%84 = call i32 (i32, ...) bitcast (i32 (...)* @puthex_b to i32 (i32, ...)*)(i32 %83)
%85 = call i32 (i32, ...) bitcast (i32 (...)* @putch to i32 (i32, ...)*)(i32 32)
%86 = or i64 %43, 8
%87 = getelementptr inbounds [512 x i8], [512 x i8]* %1, i64 0, i64 %80
%88 = load i8, i8* %87
%89 = sext i8 %88 to i32
%90 = call i32 (i32, ...) bitcast (i32 (...)* @puthex_b to i32 (i32, ...)*)(i32 %89)
%91 = call i32 (i32, ...) bitcast (i32 (...)* @putch to i32 (i32, ...)*)(i32 32)
%92 = or i64 %43, 9
%93 = getelementptr inbounds [512 x i8], [512 x i8]* %1, i64 0, i64 %86
%94 = load i8, i8* %93
%95 = sext i8 %94 to i32
%96 = call i32 (i32, ...) bitcast (i32 (...)* @puthex_b to i32 (i32, ...)*)(i32 %95)
%97 = call i32 (i32, ...) bitcast (i32 (...)* @putch to i32 (i32, ...)*)(i32 32)
%98 = or i64 %43, 10
%99 = getelementptr inbounds [512 x i8], [512 x i8]* %1, i64 0, i64 %92
%100 = load i8, i8* %99
%101 = sext i8 %100 to i32
%102 = call i32 (i32, ...) bitcast (i32 (...)* @puthex_b to i32 (i32, ...)*)(i32 %101)
%103 = call i32 (i32, ...) bitcast (i32 (...)* @putch to i32 (i32, ...)*)(i32 32)
%104 = or i64 %43, 11
%105 = getelementptr inbounds [512 x i8], [512 x i8]* %1, i64 0, i64 %98
%106 = load i8, i8* %105
%107 = sext i8 %106 to i32
%108 = call i32 (i32, ...) bitcast (i32 (...)* @puthex_b to i32 (i32, ...)*)(i32 %107)
%109 = call i32 (i32, ...) bitcast (i32 (...)* @putch to i32 (i32, ...)*)(i32 32)
%110 = or i64 %43, 12
%111 = getelementptr inbounds [512 x i8], [512 x i8]* %1, i64 0, i64 %104
%112 = load i8, i8* %111
%113 = sext i8 %112 to i32
%114 = call i32 (i32, ...) bitcast (i32 (...)* @puthex_b to i32 (i32, ...)*)(i32 %113)
%115 = call i32 (i32, ...) bitcast (i32 (...)* @putch to i32 (i32, ...)*)(i32 32)
%116 = or i64 %43, 13
%117 = getelementptr inbounds [512 x i8], [512 x i8]* %1, i64 0, i64 %110
%118 = load i8, i8* %117
%119 = sext i8 %118 to i32
%120 = call i32 (i32, ...) bitcast (i32 (...)* @puthex_b to i32 (i32, ...)*)(i32 %119)
%121 = call i32 (i32, ...) bitcast (i32 (...)* @putch to i32 (i32, ...)*)(i32 32)
%122 = or i64 %43, 14
%123 = getelementptr inbounds [512 x i8], [512 x i8]* %1, i64 0, i64 %116
%124 = load i8, i8* %123
%125 = sext i8 %124 to i32
%126 = call i32 (i32, ...) bitcast (i32 (...)* @puthex_b to i32 (i32, ...)*)(i32 %125)
%127 = call i32 (i32, ...) bitcast (i32 (...)* @putch to i32 (i32, ...)*)(i32 32)
%128 = or i64 %43, 15
%129 = getelementptr inbounds [512 x i8], [512 x i8]* %1, i64 0, i64 %122
%130 = load i8, i8* %129
%131 = sext i8 %130 to i32
%132 = call i32 (i32, ...) bitcast (i32 (...)* @puthex_b to i32 (i32, ...)*)(i32 %131)
%133 = call i32 (i32, ...) bitcast (i32 (...)* @putch to i32 (i32, ...)*)(i32 32)
%134 = getelementptr inbounds [512 x i8], [512 x i8]* %1, i64 0, i64 %128
%135 = load i8, i8* %134
%136 = sext i8 %135 to i32
%137 = call i32 (i32, ...) bitcast (i32 (...)* @puthex_b to i32 (i32, ...)*)(i32 %136)
%138 = call i32 (i32, ...) bitcast (i32 (...)* @putch to i32 (i32, ...)*)(i32 32)
%139 = add i32 %36, 16
%140 = or i64 %43, 1
%141 = getelementptr inbounds [512 x i8], [512 x i8]* %1, i64 0, i64 %43
%142 = load i8, i8* %141
%143 = icmp ult i8 %142, 32
%144 = select i1 %143, i8 46, i8 %142
%145 = zext i8 %144 to i32
%146 = call i32 (i32, ...) bitcast (i32 (...)* @putch to i32 (i32, ...)*)(i32 %145)
%147 = or i64 %43, 2
%148 = getelementptr inbounds [512 x i8], [512 x i8]* %1, i64 0, i64 %140
%149 = load i8, i8* %148
%150 = icmp ult i8 %149, 32
%151 = select i1 %150, i8 46, i8 %149
%152 = zext i8 %151 to i32
%153 = call i32 (i32, ...) bitcast (i32 (...)* @putch to i32 (i32, ...)*)(i32 %152)
%154 = or i64 %43, 3
%155 = getelementptr inbounds [512 x i8], [512 x i8]* %1, i64 0, i64 %147
%156 = load i8, i8* %155
%157 = icmp ult i8 %156, 32
%158 = select i1 %157, i8 46, i8 %156
%159 = zext i8 %158 to i32
%160 = call i32 (i32, ...) bitcast (i32 (...)* @putch to i32 (i32, ...)*)(i32 %159)
%161 = or i64 %43, 4
%162 = getelementptr inbounds [512 x i8], [512 x i8]* %1, i64 0, i64 %154
%163 = load i8, i8* %162
%164 = icmp ult i8 %163, 32
%165 = select i1 %164, i8 46, i8 %163
%166 = zext i8 %165 to i32
%167 = call i32 (i32, ...) bitcast (i32 (...)* @putch to i32 (i32, ...)*)(i32 %166)
%168 = or i64 %43, 5
%169 = getelementptr inbounds [512 x i8], [512 x i8]* %1, i64 0, i64 %161
%170 = load i8, i8* %169
%171 = icmp ult i8 %170, 32
%172 = select i1 %171, i8 46, i8 %170
%173 = zext i8 %172 to i32
%174 = call i32 (i32, ...) bitcast (i32 (...)* @putch to i32 (i32, ...)*)(i32 %173)
%175 = or i64 %43, 6
%176 = getelementptr inbounds [512 x i8], [512 x i8]* %1, i64 0, i64 %168
%177 = load i8, i8* %176
%178 = icmp ult i8 %177, 32
%179 = select i1 %178, i8 46, i8 %177
%180 = zext i8 %179 to i32
%181 = call i32 (i32, ...) bitcast (i32 (...)* @putch to i32 (i32, ...)*)(i32 %180)
%182 = or i64 %43, 7
%183 = getelementptr inbounds [512 x i8], [512 x i8]* %1, i64 0, i64 %175
%184 = load i8, i8* %183
%185 = icmp ult i8 %184, 32
%186 = select i1 %185, i8 46, i8 %184
%187 = zext i8 %186 to i32
%188 = call i32 (i32, ...) bitcast (i32 (...)* @putch to i32 (i32, ...)*)(i32 %187)
%189 = or i64 %43, 8
%190 = getelementptr inbounds [512 x i8], [512 x i8]* %1, i64 0, i64 %182
%191 = load i8, i8* %190
%192 = icmp ult i8 %191, 32
%193 = select i1 %192, i8 46, i8 %191
%194 = zext i8 %193 to i32
%195 = call i32 (i32, ...) bitcast (i32 (...)* @putch to i32 (i32, ...)*)(i32 %194)
%196 = or i64 %43, 9
%197 = getelementptr inbounds [512 x i8], [512 x i8]* %1, i64 0, i64 %189
%198 = load i8, i8* %197
%199 = icmp ult i8 %198, 32
%200 = select i1 %199, i8 46, i8 %198
%201 = zext i8 %200 to i32
%202 = call i32 (i32, ...) bitcast (i32 (...)* @putch to i32 (i32, ...)*)(i32 %201)
%203 = or i64 %43, 10
%204 = getelementptr inbounds [512 x i8], [512 x i8]* %1, i64 0, i64 %196
%205 = load i8, i8* %204
%206 = icmp ult i8 %205, 32
%207 = select i1 %206, i8 46, i8 %205
%208 = zext i8 %207 to i32
%209 = call i32 (i32, ...) bitcast (i32 (...)* @putch to i32 (i32, ...)*)(i32 %208)
%210 = or i64 %43, 11
%211 = getelementptr inbounds [512 x i8], [512 x i8]* %1, i64 0, i64 %203
%212 = load i8, i8* %211
%213 = icmp ult i8 %212, 32
%214 = select i1 %213, i8 46, i8 %212
%215 = zext i8 %214 to i32
%216 = call i32 (i32, ...) bitcast (i32 (...)* @putch to i32 (i32, ...)*)(i32 %215)
%217 = or i64 %43, 12
%218 = getelementptr inbounds [512 x i8], [512 x i8]* %1, i64 0, i64 %210
%219 = load i8, i8* %218
%220 = icmp ult i8 %219, 32
%221 = select i1 %220, i8 46, i8 %219
%222 = zext i8 %221 to i32
%223 = call i32 (i32, ...) bitcast (i32 (...)* @putch to i32 (i32, ...)*)(i32 %222)
%224 = or i64 %43, 13
%225 = getelementptr inbounds [512 x i8], [512 x i8]* %1, i64 0, i64 %217
%226 = load i8, i8* %225
%227 = icmp ult i8 %226, 32
%228 = select i1 %227, i8 46, i8 %226
%229 = zext i8 %228 to i32
%230 = call i32 (i32, ...) bitcast (i32 (...)* @putch to i32 (i32, ...)*)(i32 %229)
%231 = or i64 %43, 14
%232 = getelementptr inbounds [512 x i8], [512 x i8]* %1, i64 0, i64 %224
%233 = load i8, i8* %232
%234 = icmp ult i8 %233, 32
%235 = select i1 %234, i8 46, i8 %233
%236 = zext i8 %235 to i32
%237 = call i32 (i32, ...) bitcast (i32 (...)* @putch to i32 (i32, ...)*)(i32 %236)
%238 = or i64 %43, 15
%239 = getelementptr inbounds [512 x i8], [512 x i8]* %1, i64 0, i64 %231
%240 = load i8, i8* %239
%241 = icmp ult i8 %240, 32
%242 = select i1 %241, i8 46, i8 %240
%243 = zext i8 %242 to i32
%244 = call i32 (i32, ...) bitcast (i32 (...)* @putch to i32 (i32, ...)*)(i32 %243)
%245 = getelementptr inbounds [512 x i8], [512 x i8]* %1, i64 0, i64 %238
%246 = load i8, i8* %245
%247 = icmp ult i8 %246, 32
%248 = select i1 %247, i8 46, i8 %246
%249 = zext i8 %248 to i32
%250 = call i32 (i32, ...) bitcast (i32 (...)* @putch to i32 (i32, ...)*)(i32 %249)
%251 = call i32 (i8*, ...) bitcast (i32 (...)* @puts0 to i32 (i8*, ...)*)(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0))
%252 = add nuw nsw i32 %35, 1
%253 = icmp eq i32 %252, 32
br i1 %253, label %254, label %34
254: ; preds = %42
ret void
}