#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
int /*<<< orphan*/ strncpy(char *, char *, int);
void show_edid_dtd(FILE *outfile, unsigned char *base) {
  int pelclk = base[0] + (base[1] << 8);
  char monstr[18];
  int stp;
  if (pelclk != 0) {
    int hres = base[2] + ((base[4] & 0xf0) << 4);
    int hbl = base[3] + ((base[4] & 0x0f) << 8);
    int vres = base[5] + ((base[7] & 0xf0) << 4);
    int vbl = base[6] + ((base[7] & 0x0f) << 8);
    int hso = base[8] + ((base[11] & 0xc0) << 2);
    int hsw = base[9] + ((base[11] & 0x30) << 4);
    int vso = (base[10] >> 4) + ((base[11] & 0x0c) << 2);
    int vsw = (base[10] & 0xf) + ((base[11] & 0x03) << 4);
    int hsiz = base[12] + ((base[14] & 0xf0) << 4);
    int vsiz = base[13] + ((base[14] & 0x0f) << 8);
    int hbdr = base[15];
    int vbdr = base[16];
    int mdflg = base[17];
    int refr = (pelclk * 10000) / ((hres + hbl) * (vres + vbl));
    int refm = (pelclk * 10000) % ((hres + hbl) * (vres + vbl));
    int refd = (refm * 100) / ((hres + hbl) * (vres + vbl));
    fprintf(outfile, "%dx%d%c@%d.%02d, dot clock %d  %cHsync %cVsync\n", hres,
            vres, (mdflg & 0x80) ? 'i' : 'p', refr, refd, pelclk * 10000,
            (mdflg & 0x2) ? '+' : '-', (mdflg & 0x4) ? '+' : '-');
    fprintf(outfile, "H: start %d, end %d, total %d\n", hres + hso,
            hres + hso + hsw, hres + hbl);
    fprintf(outfile, "V: start %d, end %d, total %d\n", vres + vso,
            vres + vso + vsw, vres + vbl);
    fprintf(outfile, "Size %dx%dmm, Border %dx%d pixels\n", hsiz, vsiz, hbdr,
            vbdr);
    return;
  }
  switch (base[3]) {
  case 0xff:
  case 0xfe:
  case 0xfc:
    strncpy(monstr, (char *)base + 5, 13);
    for (stp = 0; stp < 13; stp++)
      if (monstr[stp] == 0x0a)
        monstr[stp] = 0;
    monstr[stp] = 0;
    if (base[3] != 0xfe)
      fprintf(outfile, "%s: %s\n", (base[3] == 0xfc) ? "Name" : "Serial",
              monstr);
    else
      fprintf(outfile, "%s\n", monstr);
    break;
  case 0xfd:
    fprintf(outfile, "V %d - %d Hz, H %d - %d kHz, Pel <= %d MHz\n", base[5],
            base[6], base[7], base[8], base[9] * 10);
    break;
  default:
    fprintf(outfile, "Undecoded descriptor block type 0x%x\n", base[3]);
    break;
  }
}


x86 assembly (clang, -O0):
<show_edid_dtd>:
push   %rbp
mov    %rsp,%rbp
push   %r14
push   %rbx
sub    $0xa0,%rsp
mov    %rdi,-0x18(%rbp)
mov    %rsi,-0x20(%rbp)
mov    -0x20(%rbp),%rax
movzbl (%rax),%eax
mov    -0x20(%rbp),%rcx
movzbl 0x1(%rcx),%ecx
shl    $0x8,%ecx
add    %ecx,%eax
mov    %eax,-0x24(%rbp)
cmpl   $0x0,-0x24(%rbp)
je     13ea <show_edid_dtd+0x2ca>
mov    -0x20(%rbp),%rax
movzbl 0x2(%rax),%eax
mov    -0x20(%rbp),%rcx
movzbl 0x4(%rcx),%ecx
and    $0xf0,%ecx
shl    $0x4,%ecx
add    %ecx,%eax
mov    %eax,-0x48(%rbp)
mov    -0x20(%rbp),%rax
movzbl 0x3(%rax),%eax
mov    -0x20(%rbp),%rcx
movzbl 0x4(%rcx),%ecx
and    $0xf,%ecx
shl    $0x8,%ecx
add    %ecx,%eax
mov    %eax,-0x4c(%rbp)
mov    -0x20(%rbp),%rax
movzbl 0x5(%rax),%eax
mov    -0x20(%rbp),%rcx
movzbl 0x7(%rcx),%ecx
and    $0xf0,%ecx
shl    $0x4,%ecx
add    %ecx,%eax
mov    %eax,-0x50(%rbp)
mov    -0x20(%rbp),%rax
movzbl 0x6(%rax),%eax
mov    -0x20(%rbp),%rcx
movzbl 0x7(%rcx),%ecx
and    $0xf,%ecx
shl    $0x8,%ecx
add    %ecx,%eax
mov    %eax,-0x54(%rbp)
mov    -0x20(%rbp),%rax
movzbl 0x8(%rax),%eax
mov    -0x20(%rbp),%rcx
movzbl 0xb(%rcx),%ecx
and    $0xc0,%ecx
shl    $0x2,%ecx
add    %ecx,%eax
mov    %eax,-0x58(%rbp)
mov    -0x20(%rbp),%rax
movzbl 0x9(%rax),%eax
mov    -0x20(%rbp),%rcx
movzbl 0xb(%rcx),%ecx
and    $0x30,%ecx
shl    $0x4,%ecx
add    %ecx,%eax
mov    %eax,-0x5c(%rbp)
mov    -0x20(%rbp),%rax
movzbl 0xa(%rax),%eax
sar    $0x4,%eax
mov    -0x20(%rbp),%rcx
movzbl 0xb(%rcx),%ecx
and    $0xc,%ecx
shl    $0x2,%ecx
add    %ecx,%eax
mov    %eax,-0x60(%rbp)
mov    -0x20(%rbp),%rax
movzbl 0xa(%rax),%eax
and    $0xf,%eax
mov    -0x20(%rbp),%rcx
movzbl 0xb(%rcx),%ecx
and    $0x3,%ecx
shl    $0x4,%ecx
add    %ecx,%eax
mov    %eax,-0x64(%rbp)
mov    -0x20(%rbp),%rax
movzbl 0xc(%rax),%eax
mov    -0x20(%rbp),%rcx
movzbl 0xe(%rcx),%ecx
and    $0xf0,%ecx
shl    $0x4,%ecx
add    %ecx,%eax
mov    %eax,-0x68(%rbp)
mov    -0x20(%rbp),%rax
movzbl 0xd(%rax),%eax
mov    -0x20(%rbp),%rcx
movzbl 0xe(%rcx),%ecx
and    $0xf,%ecx
shl    $0x8,%ecx
add    %ecx,%eax
mov    %eax,-0x6c(%rbp)
mov    -0x20(%rbp),%rax
movzbl 0xf(%rax),%eax
mov    %eax,-0x70(%rbp)
mov    -0x20(%rbp),%rax
movzbl 0x10(%rax),%eax
mov    %eax,-0x74(%rbp)
mov    -0x20(%rbp),%rax
movzbl 0x11(%rax),%eax
mov    %eax,-0x78(%rbp)
imul   $0x2710,-0x24(%rbp),%eax
mov    -0x48(%rbp),%ecx
add    -0x4c(%rbp),%ecx
mov    -0x50(%rbp),%edx
add    -0x54(%rbp),%edx
imul   %edx,%ecx
cltd
idiv   %ecx
mov    %eax,-0x7c(%rbp)
imul   $0x2710,-0x24(%rbp),%eax
mov    -0x48(%rbp),%ecx
add    -0x4c(%rbp),%ecx
mov    -0x50(%rbp),%edx
add    -0x54(%rbp),%edx
imul   %edx,%ecx
cltd
idiv   %ecx
mov    %edx,-0x80(%rbp)
imul   $0x64,-0x80(%rbp),%eax
mov    -0x48(%rbp),%ecx
add    -0x4c(%rbp),%ecx
mov    -0x50(%rbp),%edx
add    -0x54(%rbp),%edx
imul   %edx,%ecx
cltd
idiv   %ecx
mov    %eax,-0x84(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x48(%rbp),%edx
mov    -0x50(%rbp),%ecx
mov    -0x78(%rbp),%esi
and    $0x80,%esi
mov    $0x70,%r8d
mov    $0x69,%eax
cmp    $0x0,%esi
cmovne %eax,%r8d
mov    -0x7c(%rbp),%r9d
mov    -0x84(%rbp),%ebx
imul   $0x2710,-0x24(%rbp),%r11d
mov    -0x78(%rbp),%esi
and    $0x2,%esi
mov    $0x2d,%r10d
mov    $0x2b,%eax
cmp    $0x0,%esi
cmovne %eax,%r10d
mov    -0x78(%rbp),%r14d
and    $0x4,%r14d
mov    $0x2d,%eax
mov    $0x2b,%esi
cmp    $0x0,%r14d
cmovne %esi,%eax
lea    0xca5(%rip),%rsi
mov    %ebx,(%rsp)
mov    %r11d,0x8(%rsp)
mov    %r10d,0x10(%rsp)
mov    %eax,0x18(%rsp)
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x18(%rbp),%rdi
mov    -0x48(%rbp),%edx
add    -0x58(%rbp),%edx
mov    -0x48(%rbp),%ecx
add    -0x58(%rbp),%ecx
add    -0x5c(%rbp),%ecx
mov    -0x48(%rbp),%r8d
add    -0x4c(%rbp),%r8d
lea    0xc9b(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x18(%rbp),%rdi
mov    -0x50(%rbp),%edx
add    -0x60(%rbp),%edx
mov    -0x50(%rbp),%ecx
add    -0x60(%rbp),%ecx
add    -0x64(%rbp),%ecx
mov    -0x50(%rbp),%r8d
add    -0x54(%rbp),%r8d
lea    0xc91(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x18(%rbp),%rdi
mov    -0x68(%rbp),%edx
mov    -0x6c(%rbp),%ecx
mov    -0x70(%rbp),%r8d
mov    -0x74(%rbp),%r9d
lea    0xc90(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
jmp    155f <show_edid_dtd+0x43f>
mov    -0x20(%rbp),%rax
movzbl 0x3(%rax),%eax
mov    %eax,-0x88(%rbp)
sub    $0xfc,%eax
je     1437 <show_edid_dtd+0x317>
jmp    1408 <show_edid_dtd+0x2e8>
mov    -0x88(%rbp),%eax
sub    $0xfd,%eax
je     14fe <show_edid_dtd+0x3de>
jmp    141e <show_edid_dtd+0x2fe>
mov    -0x88(%rbp),%eax
add    $0xffffff02,%eax
sub    $0x1,%eax
ja     1545 <show_edid_dtd+0x425>
jmp    1437 <show_edid_dtd+0x317>
lea    -0x40(%rbp),%rdi
mov    -0x20(%rbp),%rsi
add    $0x5,%rsi
mov    $0xd,%edx
call   1030 <strncpy@plt>
movl   $0x0,-0x44(%rbp)
cmpl   $0xd,-0x44(%rbp)
jge    148c <show_edid_dtd+0x36c>
movslq -0x44(%rbp),%rax
movsbl -0x40(%rbp,%rax,1),%eax
cmp    $0xa,%eax
jne    1479 <show_edid_dtd+0x359>
movslq -0x44(%rbp),%rax
movb   $0x0,-0x40(%rbp,%rax,1)
jmp    147e <show_edid_dtd+0x35e>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    1454 <show_edid_dtd+0x334>
movslq -0x44(%rbp),%rax
movb   $0x0,-0x40(%rbp,%rax,1)
mov    -0x20(%rbp),%rax
movzbl 0x3(%rax),%eax
cmp    $0xfe,%eax
je     14e3 <show_edid_dtd+0x3c3>
mov    -0x18(%rbp),%rdi
mov    -0x20(%rbp),%rax
movzbl 0x3(%rax),%ecx
lea    0xbe3(%rip),%rdx
lea    0xbd7(%rip),%rax
cmp    $0xfc,%ecx
cmove  %rax,%rdx
lea    -0x40(%rbp),%rcx
lea    0xbba(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
jmp    14f9 <show_edid_dtd+0x3d9>
mov    -0x18(%rbp),%rdi
lea    -0x40(%rbp),%rdx
lea    0xba3(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
jmp    155f <show_edid_dtd+0x43f>
mov    -0x18(%rbp),%rdi
mov    -0x20(%rbp),%rax
movzbl 0x5(%rax),%edx
mov    -0x20(%rbp),%rax
movzbl 0x6(%rax),%ecx
mov    -0x20(%rbp),%rax
movzbl 0x7(%rax),%r8d
mov    -0x20(%rbp),%rax
movzbl 0x8(%rax),%r9d
mov    -0x20(%rbp),%rax
movzbl 0x9(%rax),%eax
imul   $0xa,%eax,%eax
lea    0xb6f(%rip),%rsi
mov    %eax,(%rsp)
mov    $0x0,%al
call   1040 <fprintf@plt>
jmp    155f <show_edid_dtd+0x43f>
mov    -0x18(%rbp),%rdi
mov    -0x20(%rbp),%rax
movzbl 0x3(%rax),%edx
lea    0xb79(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
add    $0xa0,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

x86 assembly (clang, -O2):
<show_edid_dtd>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
mov    %rsi,%rbx
movzwl (%rsi),%eax
test   %eax,%eax
je     1318 <show_edid_dtd+0x1f8>
movzbl 0x2(%rbx),%ecx
movzbl 0x4(%rbx),%r15d
mov    %r15d,%edx
shl    $0x4,%edx
and    $0xf00,%edx
or     %ecx,%edx
mov    %edx,%r8d
mov    %edx,0x18(%rsp)
movzbl 0x3(%rbx),%ecx
and    $0xf,%r15d
shl    $0x8,%r15d
or     %ecx,%r15d
movzbl 0x5(%rbx),%ecx
movzbl 0x7(%rbx),%ebp
mov    %ebp,%edx
shl    $0x4,%edx
and    $0xf00,%edx
or     %ecx,%edx
mov    %edx,%esi
movzbl 0x6(%rbx),%ecx
and    $0xf,%ebp
shl    $0x8,%ebp
or     %ecx,%ebp
movzbl 0x8(%rbx),%ecx
movzbl 0xb(%rbx),%r14d
lea    0x0(,%r14,4),%r12d
mov    %r12d,%edx
and    $0x300,%edx
or     %ecx,%edx
mov    %edx,0x30(%rsp)
movzbl 0x9(%rbx),%ecx
shl    $0x4,%r14d
mov    %r14d,%edx
and    $0x300,%edx
or     %ecx,%edx
mov    %edx,0x24(%rsp)
movzbl 0xa(%rbx),%ecx
mov    %ecx,%edx
shr    $0x4,%edx
and    $0x30,%r12d
or     %edx,%r12d
and    $0xf,%ecx
and    $0x30,%r14d
or     %ecx,%r14d
movzbl 0xc(%rbx),%ecx
movzbl 0xe(%rbx),%r13d
mov    %r13d,%edx
shl    $0x4,%edx
and    $0xf00,%edx
or     %ecx,%edx
mov    %edx,0x34(%rsp)
movzbl 0xd(%rbx),%ecx
and    $0xf,%r13d
shl    $0x8,%r13d
or     %ecx,%r13d
movzbl 0xf(%rbx),%ecx
mov    %ecx,0x2c(%rsp)
movzbl 0x10(%rbx),%ecx
mov    %ecx,0x28(%rsp)
movzbl 0x11(%rbx),%ebx
imul   $0x2710,%eax,%eax
mov    %rax,0x40(%rsp)
add    %r8d,%r15d
add    %esi,%ebp
mov    %esi,%ecx
mov    %esi,0x1c(%rsp)
mov    %ebp,%esi
imul   %r15d,%esi
xor    %edx,%edx
div    %esi
mov    %eax,0x20(%rsp)
imul   $0x64,%edx,%eax
xor    %edx,%edx
div    %esi
mov    %rax,0x38(%rsp)
test   $0x80,%bl
mov    $0x70,%eax
mov    $0x69,%r8d
cmove  %eax,%r8d
xor    %eax,%eax
test   $0x2,%bl
sete   %al
xor    %edx,%edx
test   $0x4,%bl
lea    0x2b(%rax,%rax,1),%r11d
sete   %dl
lea    (%rdx,%rdx,1),%r10d
add    $0x2b,%r10d
lea    0xd7f(%rip),%rsi
mov    %rdi,%rbx
mov    0x18(%rsp),%edx
mov    0x20(%rsp),%r9d
xor    %eax,%eax
push   %r10
push   %r11
push   0x50(%rsp)
push   0x50(%rsp)
call   1040 <fprintf@plt>
add    $0x20,%rsp
mov    0x30(%rsp),%edx
add    0x18(%rsp),%edx
mov    0x24(%rsp),%ecx
add    %edx,%ecx
lea    0xd77(%rip),%rsi
mov    %rbx,%rdi
mov    %r15d,%r8d
xor    %eax,%eax
call   1040 <fprintf@plt>
add    0x1c(%rsp),%r12d
add    %r12d,%r14d
lea    0xd7a(%rip),%rsi
mov    %rbx,%rdi
mov    %r12d,%edx
mov    %r14d,%ecx
mov    %ebp,%r8d
xor    %eax,%eax
call   1040 <fprintf@plt>
lea    0xd7f(%rip),%rsi
mov    %rbx,%rdi
mov    0x34(%rsp),%edx
mov    %r13d,%ecx
mov    0x2c(%rsp),%r8d
mov    0x28(%rsp),%r9d
xor    %eax,%eax
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <fprintf@plt>
mov    0x3(%rbx),%al
lea    0x2(%rax),%ecx
cmp    $0x2,%cl
jb     1333 <show_edid_dtd+0x213>
cmp    $0xfd,%al
je     14d0 <show_edid_dtd+0x3b0>
cmp    $0xfc,%al
jne    150d <show_edid_dtd+0x3ed>
mov    %rdi,%rbp
lea    0x5(%rbx),%rsi
mov    %rsp,%rdi
mov    $0xd,%edx
call   1030 <strncpy@plt>
cmpb   $0xa,(%rsp)
jne    1351 <show_edid_dtd+0x231>
movb   $0x0,(%rsp)
cmpb   $0xa,0x1(%rsp)
jne    135d <show_edid_dtd+0x23d>
movb   $0x0,0x1(%rsp)
cmpb   $0xa,0x2(%rsp)
mov    %rbp,%rdi
je     1400 <show_edid_dtd+0x2e0>
cmpb   $0xa,0x3(%rsp)
je     1410 <show_edid_dtd+0x2f0>
cmpb   $0xa,0x4(%rsp)
je     1420 <show_edid_dtd+0x300>
cmpb   $0xa,0x5(%rsp)
je     1430 <show_edid_dtd+0x310>
cmpb   $0xa,0x6(%rsp)
je     1440 <show_edid_dtd+0x320>
cmpb   $0xa,0x7(%rsp)
je     1450 <show_edid_dtd+0x330>
cmpb   $0xa,0x8(%rsp)
je     1460 <show_edid_dtd+0x340>
cmpb   $0xa,0x9(%rsp)
je     1470 <show_edid_dtd+0x350>
cmpb   $0xa,0xa(%rsp)
je     1480 <show_edid_dtd+0x360>
cmpb   $0xa,0xb(%rsp)
je     1490 <show_edid_dtd+0x370>
cmpb   $0xa,0xc(%rsp)
jne    13da <show_edid_dtd+0x2ba>
movb   $0x0,0xc(%rsp)
movb   $0x0,0xd(%rsp)
mov    0x3(%rbx),%al
cmp    $0xfe,%al
jne    14a5 <show_edid_dtd+0x385>
lea    0xca4(%rip),%rsi
mov    %rsp,%rdx
xor    %eax,%eax
call   1040 <fprintf@plt>
jmp    14ca <show_edid_dtd+0x3aa>
movb   $0x0,0x2(%rsp)
cmpb   $0xa,0x3(%rsp)
jne    1376 <show_edid_dtd+0x256>
movb   $0x0,0x3(%rsp)
cmpb   $0xa,0x4(%rsp)
jne    1381 <show_edid_dtd+0x261>
movb   $0x0,0x4(%rsp)
cmpb   $0xa,0x5(%rsp)
jne    138c <show_edid_dtd+0x26c>
movb   $0x0,0x5(%rsp)
cmpb   $0xa,0x6(%rsp)
jne    1397 <show_edid_dtd+0x277>
movb   $0x0,0x6(%rsp)
cmpb   $0xa,0x7(%rsp)
jne    13a2 <show_edid_dtd+0x282>
movb   $0x0,0x7(%rsp)
cmpb   $0xa,0x8(%rsp)
jne    13ad <show_edid_dtd+0x28d>
movb   $0x0,0x8(%rsp)
cmpb   $0xa,0x9(%rsp)
jne    13b8 <show_edid_dtd+0x298>
movb   $0x0,0x9(%rsp)
cmpb   $0xa,0xa(%rsp)
jne    13c3 <show_edid_dtd+0x2a3>
movb   $0x0,0xa(%rsp)
cmpb   $0xa,0xb(%rsp)
jne    13ce <show_edid_dtd+0x2ae>
movb   $0x0,0xb(%rsp)
cmpb   $0xa,0xc(%rsp)
je     13d5 <show_edid_dtd+0x2b5>
jmp    13da <show_edid_dtd+0x2ba>
cmp    $0xfc,%al
lea    0xbeb(%rip),%rax
lea    0xbe9(%rip),%rdx
cmove  %rax,%rdx
lea    0xbd1(%rip),%rsi
mov    %rsp,%rcx
xor    %eax,%eax
call   1040 <fprintf@plt>
add    $0x48,%rsp
jmp    1502 <show_edid_dtd+0x3e2>
movzbl 0x5(%rbx),%edx
movzbl 0x6(%rbx),%ecx
movzbl 0x7(%rbx),%r8d
movzbl 0x8(%rbx),%r9d
movzbl 0x9(%rbx),%eax
add    %eax,%eax
lea    (%rax,%rax,4),%ebp
sub    $0x8,%rsp
lea    0xbaf(%rip),%rsi
xor    %eax,%eax
push   %rbp
call   1040 <fprintf@plt>
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
movzbl %al,%edx
lea    0xbba(%rip),%rsi
xor    %eax,%eax
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <fprintf@plt>

LLVM IR (-O0):
@.str = [48 x i8] c"%dx%d%c@%d.%02d, dot clock %d %cHsync %cVsync\0A\00"
@.str.1 = [31 x i8] c"H: start %d, end %d, total %d\0A\00"
@.str.2 = [31 x i8] c"V: start %d, end %d, total %d\0A\00"
@.str.3 = [35 x i8] c"Size %dx%dmm, Border %dx%d pixels\0A\00"
@.str.4 = [8 x i8] c"%s: %s\0A\00"
@.str.5 = [5 x i8] c"Name\00"
@.str.6 = [7 x i8] c"Serial\00"
@.str.7 = [4 x i8] c"%s\0A\00"
@.str.8 = [44 x i8] c"V %d - %d Hz, H %d - %d kHz, Pel <= %d MHz\0A\00"
@.str.9 = [38 x i8] c"Undecoded descriptor block type 0x%x\0A\00"
define void @show_edid_dtd(i32* %0, i8* %1) {
%3 = alloca i32*
%4 = alloca i8*
%5 = alloca i32
%6 = alloca [18 x i8]
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32
%21 = alloca i32
%22 = alloca i32
%23 = alloca i32
store i32* %0, i32** %3
store i8* %1, i8** %4
%24 = load i8*, i8** %4
%25 = getelementptr inbounds i8, i8* %24, i64 0
%26 = load i8, i8* %25
%27 = zext i8 %26 to i32
%28 = load i8*, i8** %4
%29 = getelementptr inbounds i8, i8* %28, i64 1
%30 = load i8, i8* %29
%31 = zext i8 %30 to i32
%32 = shl i32 %31, 8
%33 = add nsw i32 %27, %32
store i32 %33, i32* %5
%34 = load i32, i32* %5
%35 = icmp ne i32 %34, 0
br i1 %35, label %36, label %246
36: ; preds = %2
%37 = load i8*, i8** %4
%38 = getelementptr inbounds i8, i8* %37, i64 2
%39 = load i8, i8* %38
%40 = zext i8 %39 to i32
%41 = load i8*, i8** %4
%42 = getelementptr inbounds i8, i8* %41, i64 4
%43 = load i8, i8* %42
%44 = zext i8 %43 to i32
%45 = and i32 %44, 240
%46 = shl i32 %45, 4
%47 = add nsw i32 %40, %46
store i32 %47, i32* %8
%48 = load i8*, i8** %4
%49 = getelementptr inbounds i8, i8* %48, i64 3
%50 = load i8, i8* %49
%51 = zext i8 %50 to i32
%52 = load i8*, i8** %4
%53 = getelementptr inbounds i8, i8* %52, i64 4
%54 = load i8, i8* %53
%55 = zext i8 %54 to i32
%56 = and i32 %55, 15
%57 = shl i32 %56, 8
%58 = add nsw i32 %51, %57
store i32 %58, i32* %9
%59 = load i8*, i8** %4
%60 = getelementptr inbounds i8, i8* %59, i64 5
%61 = load i8, i8* %60
%62 = zext i8 %61 to i32
%63 = load i8*, i8** %4
%64 = getelementptr inbounds i8, i8* %63, i64 7
%65 = load i8, i8* %64
%66 = zext i8 %65 to i32
%67 = and i32 %66, 240
%68 = shl i32 %67, 4
%69 = add nsw i32 %62, %68
store i32 %69, i32* %10
%70 = load i8*, i8** %4
%71 = getelementptr inbounds i8, i8* %70, i64 6
%72 = load i8, i8* %71
%73 = zext i8 %72 to i32
%74 = load i8*, i8** %4
%75 = getelementptr inbounds i8, i8* %74, i64 7
%76 = load i8, i8* %75
%77 = zext i8 %76 to i32
%78 = and i32 %77, 15
%79 = shl i32 %78, 8
%80 = add nsw i32 %73, %79
store i32 %80, i32* %11
%81 = load i8*, i8** %4
%82 = getelementptr inbounds i8, i8* %81, i64 8
%83 = load i8, i8* %82
%84 = zext i8 %83 to i32
%85 = load i8*, i8** %4
%86 = getelementptr inbounds i8, i8* %85, i64 11
%87 = load i8, i8* %86
%88 = zext i8 %87 to i32
%89 = and i32 %88, 192
%90 = shl i32 %89, 2
%91 = add nsw i32 %84, %90
store i32 %91, i32* %12
%92 = load i8*, i8** %4
%93 = getelementptr inbounds i8, i8* %92, i64 9
%94 = load i8, i8* %93
%95 = zext i8 %94 to i32
%96 = load i8*, i8** %4
%97 = getelementptr inbounds i8, i8* %96, i64 11
%98 = load i8, i8* %97
%99 = zext i8 %98 to i32
%100 = and i32 %99, 48
%101 = shl i32 %100, 4
%102 = add nsw i32 %95, %101
store i32 %102, i32* %13
%103 = load i8*, i8** %4
%104 = getelementptr inbounds i8, i8* %103, i64 10
%105 = load i8, i8* %104
%106 = zext i8 %105 to i32
%107 = ashr i32 %106, 4
%108 = load i8*, i8** %4
%109 = getelementptr inbounds i8, i8* %108, i64 11
%110 = load i8, i8* %109
%111 = zext i8 %110 to i32
%112 = and i32 %111, 12
%113 = shl i32 %112, 2
%114 = add nsw i32 %107, %113
store i32 %114, i32* %14
%115 = load i8*, i8** %4
%116 = getelementptr inbounds i8, i8* %115, i64 10
%117 = load i8, i8* %116
%118 = zext i8 %117 to i32
%119 = and i32 %118, 15
%120 = load i8*, i8** %4
%121 = getelementptr inbounds i8, i8* %120, i64 11
%122 = load i8, i8* %121
%123 = zext i8 %122 to i32
%124 = and i32 %123, 3
%125 = shl i32 %124, 4
%126 = add nsw i32 %119, %125
store i32 %126, i32* %15
%127 = load i8*, i8** %4
%128 = getelementptr inbounds i8, i8* %127, i64 12
%129 = load i8, i8* %128
%130 = zext i8 %129 to i32
%131 = load i8*, i8** %4
%132 = getelementptr inbounds i8, i8* %131, i64 14
%133 = load i8, i8* %132
%134 = zext i8 %133 to i32
%135 = and i32 %134, 240
%136 = shl i32 %135, 4
%137 = add nsw i32 %130, %136
store i32 %137, i32* %16
%138 = load i8*, i8** %4
%139 = getelementptr inbounds i8, i8* %138, i64 13
%140 = load i8, i8* %139
%141 = zext i8 %140 to i32
%142 = load i8*, i8** %4
%143 = getelementptr inbounds i8, i8* %142, i64 14
%144 = load i8, i8* %143
%145 = zext i8 %144 to i32
%146 = and i32 %145, 15
%147 = shl i32 %146, 8
%148 = add nsw i32 %141, %147
store i32 %148, i32* %17
%149 = load i8*, i8** %4
%150 = getelementptr inbounds i8, i8* %149, i64 15
%151 = load i8, i8* %150
%152 = zext i8 %151 to i32
store i32 %152, i32* %18
%153 = load i8*, i8** %4
%154 = getelementptr inbounds i8, i8* %153, i64 16
%155 = load i8, i8* %154
%156 = zext i8 %155 to i32
store i32 %156, i32* %19
%157 = load i8*, i8** %4
%158 = getelementptr inbounds i8, i8* %157, i64 17
%159 = load i8, i8* %158
%160 = zext i8 %159 to i32
store i32 %160, i32* %20
%161 = load i32, i32* %5
%162 = mul nsw i32 %161, 10000
%163 = load i32, i32* %8
%164 = load i32, i32* %9
%165 = add nsw i32 %163, %164
%166 = load i32, i32* %10
%167 = load i32, i32* %11
%168 = add nsw i32 %166, %167
%169 = mul nsw i32 %165, %168
%170 = sdiv i32 %162, %169
store i32 %170, i32* %21
%171 = load i32, i32* %5
%172 = mul nsw i32 %171, 10000
%173 = load i32, i32* %8
%174 = load i32, i32* %9
%175 = add nsw i32 %173, %174
%176 = load i32, i32* %10
%177 = load i32, i32* %11
%178 = add nsw i32 %176, %177
%179 = mul nsw i32 %175, %178
%180 = srem i32 %172, %179
store i32 %180, i32* %22
%181 = load i32, i32* %22
%182 = mul nsw i32 %181, 100
%183 = load i32, i32* %8
%184 = load i32, i32* %9
%185 = add nsw i32 %183, %184
%186 = load i32, i32* %10
%187 = load i32, i32* %11
%188 = add nsw i32 %186, %187
%189 = mul nsw i32 %185, %188
%190 = sdiv i32 %182, %189
store i32 %190, i32* %23
%191 = load i32*, i32** %3
%192 = load i32, i32* %8
%193 = load i32, i32* %10
%194 = load i32, i32* %20
%195 = and i32 %194, 128
%196 = icmp ne i32 %195, 0
%197 = zext i1 %196 to i64
%198 = select i1 %196, i32 105, i32 112
%199 = load i32, i32* %21
%200 = load i32, i32* %23
%201 = load i32, i32* %5
%202 = mul nsw i32 %201, 10000
%203 = load i32, i32* %20
%204 = and i32 %203, 2
%205 = icmp ne i32 %204, 0
%206 = zext i1 %205 to i64
%207 = select i1 %205, i32 43, i32 45
%208 = load i32, i32* %20
%209 = and i32 %208, 4
%210 = icmp ne i32 %209, 0
%211 = zext i1 %210 to i64
%212 = select i1 %210, i32 43, i32 45
%213 = call i32 (i32*, i8*, ...) @fprintf(i32* %191, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str, i64 0, i64 0), i32 %192, i32 %193, i32 %198, i32 %199, i32 %200, i32 %202, i32 %207, i32 %212)
%214 = load i32*, i32** %3
%215 = load i32, i32* %8
%216 = load i32, i32* %12
%217 = add nsw i32 %215, %216
%218 = load i32, i32* %8
%219 = load i32, i32* %12
%220 = add nsw i32 %218, %219
%221 = load i32, i32* %13
%222 = add nsw i32 %220, %221
%223 = load i32, i32* %8
%224 = load i32, i32* %9
%225 = add nsw i32 %223, %224
%226 = call i32 (i32*, i8*, ...) @fprintf(i32* %214, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.1, i64 0, i64 0), i32 %217, i32 %222, i32 %225)
%227 = load i32*, i32** %3
%228 = load i32, i32* %10
%229 = load i32, i32* %14
%230 = add nsw i32 %228, %229
%231 = load i32, i32* %10
%232 = load i32, i32* %14
%233 = add nsw i32 %231, %232
%234 = load i32, i32* %15
%235 = add nsw i32 %233, %234
%236 = load i32, i32* %10
%237 = load i32, i32* %11
%238 = add nsw i32 %236, %237
%239 = call i32 (i32*, i8*, ...) @fprintf(i32* %227, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.2, i64 0, i64 0), i32 %230, i32 %235, i32 %238)
%240 = load i32*, i32** %3
%241 = load i32, i32* %16
%242 = load i32, i32* %17
%243 = load i32, i32* %18
%244 = load i32, i32* %19
%245 = call i32 (i32*, i8*, ...) @fprintf(i32* %240, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.3, i64 0, i64 0), i32 %241, i32 %242, i32 %243, i32 %244)
br label %330
246: ; preds = %2
%247 = load i8*, i8** %4
%248 = getelementptr inbounds i8, i8* %247, i64 3
%249 = load i8, i8* %248
%250 = zext i8 %249 to i32
switch i32 %250, label %323 [
i32 255, label %251
i32 254, label %251
i32 252, label %251
i32 253, label %299
]
251: ; preds = %246, %246, %246
%252 = getelementptr inbounds [18 x i8], [18 x i8]* %6, i64 0, i64 0
%253 = load i8*, i8** %4
%254 = getelementptr inbounds i8, i8* %253, i64 5
%255 = call i32 @strncpy(i8* %252, i8* %254, i32 13)
store i32 0, i32* %7
br label %256
256: ; preds = %271, %251
%257 = load i32, i32* %7
%258 = icmp slt i32 %257, 13
br i1 %258, label %259, label %274
259: ; preds = %256
%260 = load i32, i32* %7
%261 = sext i32 %260 to i64
%262 = getelementptr inbounds [18 x i8], [18 x i8]* %6, i64 0, i64 %261
%263 = load i8, i8* %262
%264 = sext i8 %263 to i32
%265 = icmp eq i32 %264, 10
br i1 %265, label %266, label %270
266: ; preds = %259
%267 = load i32, i32* %7
%268 = sext i32 %267 to i64
%269 = getelementptr inbounds [18 x i8], [18 x i8]* %6, i64 0, i64 %268
store i8 0, i8* %269
br label %270
270: ; preds = %266, %259
br label %271
271: ; preds = %270
%272 = load i32, i32* %7
%273 = add nsw i32 %272, 1
store i32 %273, i32* %7
br label %256
274: ; preds = %256
%275 = load i32, i32* %7
%276 = sext i32 %275 to i64
%277 = getelementptr inbounds [18 x i8], [18 x i8]* %6, i64 0, i64 %276
store i8 0, i8* %277
%278 = load i8*, i8** %4
%279 = getelementptr inbounds i8, i8* %278, i64 3
%280 = load i8, i8* %279
%281 = zext i8 %280 to i32
%282 = icmp ne i32 %281, 254
br i1 %282, label %283, label %294
283: ; preds = %274
%284 = load i32*, i32** %3
%285 = load i8*, i8** %4
%286 = getelementptr inbounds i8, i8* %285, i64 3
%287 = load i8, i8* %286
%288 = zext i8 %287 to i32
%289 = icmp eq i32 %288, 252
%290 = zext i1 %289 to i64
%291 = select i1 %289, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0)
%292 = getelementptr inbounds [18 x i8], [18 x i8]* %6, i64 0, i64 0
%293 = call i32 (i32*, i8*, ...) @fprintf(i32* %284, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0), i8* %291, i8* %292)
br label %298
294: ; preds = %274
%295 = load i32*, i32** %3
%296 = getelementptr inbounds [18 x i8], [18 x i8]* %6, i64 0, i64 0
%297 = call i32 (i32*, i8*, ...) @fprintf(i32* %295, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i8* %296)
br label %298
298: ; preds = %294, %283
br label %330
299: ; preds = %246
%300 = load i32*, i32** %3
%301 = load i8*, i8** %4
%302 = getelementptr inbounds i8, i8* %301, i64 5
%303 = load i8, i8* %302
%304 = zext i8 %303 to i32
%305 = load i8*, i8** %4
%306 = getelementptr inbounds i8, i8* %305, i64 6
%307 = load i8, i8* %306
%308 = zext i8 %307 to i32
%309 = load i8*, i8** %4
%310 = getelementptr inbounds i8, i8* %309, i64 7
%311 = load i8, i8* %310
%312 = zext i8 %311 to i32
%313 = load i8*, i8** %4
%314 = getelementptr inbounds i8, i8* %313, i64 8
%315 = load i8, i8* %314
%316 = zext i8 %315 to i32
%317 = load i8*, i8** %4
%318 = getelementptr inbounds i8, i8* %317, i64 9
%319 = load i8, i8* %318
%320 = zext i8 %319 to i32
%321 = mul nsw i32 %320, 10
%322 = call i32 (i32*, i8*, ...) @fprintf(i32* %300, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.8, i64 0, i64 0), i32 %304, i32 %308, i32 %312, i32 %316, i32 %321)
br label %330
323: ; preds = %246
%324 = load i32*, i32** %3
%325 = load i8*, i8** %4
%326 = getelementptr inbounds i8, i8* %325, i64 3
%327 = load i8, i8* %326
%328 = zext i8 %327 to i32
%329 = call i32 (i32*, i8*, ...) @fprintf(i32* %324, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.9, i64 0, i64 0), i32 %328)
br label %330
330: ; preds = %36, %323, %299, %298
ret void
}

LLVM IR (-O2):
@.str = [48 x i8] c"%dx%d%c@%d.%02d, dot clock %d %cHsync %cVsync\0A\00"
@.str.1 = [31 x i8] c"H: start %d, end %d, total %d\0A\00"
@.str.2 = [31 x i8] c"V: start %d, end %d, total %d\0A\00"
@.str.3 = [35 x i8] c"Size %dx%dmm, Border %dx%d pixels\0A\00"
@.str.4 = [8 x i8] c"%s: %s\0A\00"
@.str.5 = [5 x i8] c"Name\00"
@.str.6 = [7 x i8] c"Serial\00"
@.str.7 = [4 x i8] c"%s\0A\00"
@.str.8 = [44 x i8] c"V %d - %d Hz, H %d - %d kHz, Pel <= %d MHz\0A\00"
@.str.9 = [38 x i8] c"Undecoded descriptor block type 0x%x\0A\00"
define void @show_edid_dtd(i32* nocapture %0, i8* %1) {
%3 = alloca [18 x i8]
%4 = load i8, i8* %1
%5 = zext i8 %4 to i32
%6 = getelementptr inbounds i8, i8* %1, i64 1
%7 = load i8, i8* %6
%8 = zext i8 %7 to i32
%9 = shl nuw nsw i32 %8, 8
%10 = or i32 %9, %5
%11 = getelementptr inbounds [18 x i8], [18 x i8]* %3, i64 0, i64 0
%12 = icmp eq i32 %10, 0
br i1 %12, label %117, label %13
13: ; preds = %2
%14 = getelementptr inbounds i8, i8* %1, i64 2
%15 = load i8, i8* %14
%16 = zext i8 %15 to i32
%17 = getelementptr inbounds i8, i8* %1, i64 4
%18 = load i8, i8* %17
%19 = zext i8 %18 to i32
%20 = shl nuw nsw i32 %19, 4
%21 = and i32 %20, 3840
%22 = or i32 %21, %16
%23 = getelementptr inbounds i8, i8* %1, i64 3
%24 = load i8, i8* %23
%25 = zext i8 %24 to i32
%26 = shl nuw nsw i32 %19, 8
%27 = and i32 %26, 3840
%28 = or i32 %27, %25
%29 = getelementptr inbounds i8, i8* %1, i64 5
%30 = load i8, i8* %29
%31 = zext i8 %30 to i32
%32 = getelementptr inbounds i8, i8* %1, i64 7
%33 = load i8, i8* %32
%34 = zext i8 %33 to i32
%35 = shl nuw nsw i32 %34, 4
%36 = and i32 %35, 3840
%37 = or i32 %36, %31
%38 = getelementptr inbounds i8, i8* %1, i64 6
%39 = load i8, i8* %38
%40 = zext i8 %39 to i32
%41 = shl nuw nsw i32 %34, 8
%42 = and i32 %41, 3840
%43 = or i32 %42, %40
%44 = getelementptr inbounds i8, i8* %1, i64 8
%45 = load i8, i8* %44
%46 = zext i8 %45 to i32
%47 = getelementptr inbounds i8, i8* %1, i64 11
%48 = load i8, i8* %47
%49 = zext i8 %48 to i32
%50 = shl nuw nsw i32 %49, 2
%51 = and i32 %50, 768
%52 = or i32 %51, %46
%53 = getelementptr inbounds i8, i8* %1, i64 9
%54 = load i8, i8* %53
%55 = zext i8 %54 to i32
%56 = shl nuw nsw i32 %49, 4
%57 = and i32 %56, 768
%58 = or i32 %57, %55
%59 = getelementptr inbounds i8, i8* %1, i64 10
%60 = load i8, i8* %59
%61 = zext i8 %60 to i32
%62 = lshr i32 %61, 4
%63 = and i32 %50, 48
%64 = or i32 %62, %63
%65 = and i32 %61, 15
%66 = and i32 %56, 48
%67 = or i32 %65, %66
%68 = getelementptr inbounds i8, i8* %1, i64 12
%69 = load i8, i8* %68
%70 = zext i8 %69 to i32
%71 = getelementptr inbounds i8, i8* %1, i64 14
%72 = load i8, i8* %71
%73 = zext i8 %72 to i32
%74 = shl nuw nsw i32 %73, 4
%75 = and i32 %74, 3840
%76 = or i32 %75, %70
%77 = getelementptr inbounds i8, i8* %1, i64 13
%78 = load i8, i8* %77
%79 = zext i8 %78 to i32
%80 = shl nuw nsw i32 %73, 8
%81 = and i32 %80, 3840
%82 = or i32 %81, %79
%83 = getelementptr inbounds i8, i8* %1, i64 15
%84 = load i8, i8* %83
%85 = zext i8 %84 to i32
%86 = getelementptr inbounds i8, i8* %1, i64 16
%87 = load i8, i8* %86
%88 = zext i8 %87 to i32
%89 = getelementptr inbounds i8, i8* %1, i64 17
%90 = load i8, i8* %89
%91 = zext i8 %90 to i32
%92 = mul nuw nsw i32 %10, 10000
%93 = add nuw nsw i32 %22, %28
%94 = add nuw nsw i32 %37, %43
%95 = mul nuw nsw i32 %94, %93
%96 = udiv i32 %92, %95
%97 = urem i32 %92, %95
%98 = mul nsw i32 %97, 100
%99 = udiv i32 %98, %95
%100 = and i32 %91, 128
%101 = icmp eq i32 %100, 0
%102 = select i1 %101, i32 112, i32 105
%103 = and i32 %91, 2
%104 = icmp eq i32 %103, 0
%105 = select i1 %104, i32 45, i32 43
%106 = and i32 %91, 4
%107 = icmp eq i32 %106, 0
%108 = select i1 %107, i32 45, i32 43
%109 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str, i64 0, i64 0), i32 %22, i32 %37, i32 %102, i32 %96, i32 %99, i32 %92, i32 %105, i32 %108)
%110 = add nuw nsw i32 %52, %22
%111 = add nuw nsw i32 %58, %110
%112 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.1, i64 0, i64 0), i32 %110, i32 %111, i32 %93)
%113 = add nuw nsw i32 %64, %37
%114 = add nuw nsw i32 %67, %113
%115 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.2, i64 0, i64 0), i32 %113, i32 %114, i32 %94)
%116 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.3, i64 0, i64 0), i32 %76, i32 %82, i32 %85, i32 %88)
br label %217
117: ; preds = %2
%118 = getelementptr inbounds i8, i8* %1, i64 3
%119 = load i8, i8* %118
switch i8 %119, label %214 [
i8 -1, label %120
i8 -2, label %120
i8 -4, label %120
i8 -3, label %196
]
120: ; preds = %117, %117, %117
%121 = getelementptr inbounds i8, i8* %1, i64 5
%122 = call i32 @strncpy(i8* %11, i8* %121, i32 13)
%123 = load i8, i8* %11
%124 = icmp eq i8 %123, 10
br i1 %124, label %125, label %126
125: ; preds = %120
store i8 0, i8* %11
br label %126
126: ; preds = %120, %125
%127 = getelementptr inbounds [18 x i8], [18 x i8]* %3, i64 0, i64 1
%128 = load i8, i8* %127
%129 = icmp eq i8 %128, 10
br i1 %129, label %130, label %131
130: ; preds = %126
store i8 0, i8* %127
br label %131
131: ; preds = %130, %126
%132 = getelementptr inbounds [18 x i8], [18 x i8]* %3, i64 0, i64 2
%133 = load i8, i8* %132
%134 = icmp eq i8 %133, 10
br i1 %134, label %135, label %136
135: ; preds = %131
store i8 0, i8* %132
br label %136
136: ; preds = %135, %131
%137 = getelementptr inbounds [18 x i8], [18 x i8]* %3, i64 0, i64 3
%138 = load i8, i8* %137
%139 = icmp eq i8 %138, 10
br i1 %139, label %140, label %141
140: ; preds = %136
store i8 0, i8* %137
br label %141
141: ; preds = %140, %136
%142 = getelementptr inbounds [18 x i8], [18 x i8]* %3, i64 0, i64 4
%143 = load i8, i8* %142
%144 = icmp eq i8 %143, 10
br i1 %144, label %145, label %146
145: ; preds = %141
store i8 0, i8* %142
br label %146
146: ; preds = %145, %141
%147 = getelementptr inbounds [18 x i8], [18 x i8]* %3, i64 0, i64 5
%148 = load i8, i8* %147
%149 = icmp eq i8 %148, 10
br i1 %149, label %150, label %151
150: ; preds = %146
store i8 0, i8* %147
br label %151
151: ; preds = %150, %146
%152 = getelementptr inbounds [18 x i8], [18 x i8]* %3, i64 0, i64 6
%153 = load i8, i8* %152
%154 = icmp eq i8 %153, 10
br i1 %154, label %155, label %156
155: ; preds = %151
store i8 0, i8* %152
br label %156
156: ; preds = %155, %151
%157 = getelementptr inbounds [18 x i8], [18 x i8]* %3, i64 0, i64 7
%158 = load i8, i8* %157
%159 = icmp eq i8 %158, 10
br i1 %159, label %160, label %161
160: ; preds = %156
store i8 0, i8* %157
br label %161
161: ; preds = %160, %156
%162 = getelementptr inbounds [18 x i8], [18 x i8]* %3, i64 0, i64 8
%163 = load i8, i8* %162
%164 = icmp eq i8 %163, 10
br i1 %164, label %165, label %166
165: ; preds = %161
store i8 0, i8* %162
br label %166
166: ; preds = %165, %161
%167 = getelementptr inbounds [18 x i8], [18 x i8]* %3, i64 0, i64 9
%168 = load i8, i8* %167
%169 = icmp eq i8 %168, 10
br i1 %169, label %170, label %171
170: ; preds = %166
store i8 0, i8* %167
br label %171
171: ; preds = %170, %166
%172 = getelementptr inbounds [18 x i8], [18 x i8]* %3, i64 0, i64 10
%173 = load i8, i8* %172
%174 = icmp eq i8 %173, 10
br i1 %174, label %175, label %176
175: ; preds = %171
store i8 0, i8* %172
br label %176
176: ; preds = %175, %171
%177 = getelementptr inbounds [18 x i8], [18 x i8]* %3, i64 0, i64 11
%178 = load i8, i8* %177
%179 = icmp eq i8 %178, 10
br i1 %179, label %180, label %181
180: ; preds = %176
store i8 0, i8* %177
br label %181
181: ; preds = %180, %176
%182 = getelementptr inbounds [18 x i8], [18 x i8]* %3, i64 0, i64 12
%183 = load i8, i8* %182
%184 = icmp eq i8 %183, 10
br i1 %184, label %185, label %186
185: ; preds = %181
store i8 0, i8* %182
br label %186
186: ; preds = %185, %181
%187 = getelementptr inbounds [18 x i8], [18 x i8]* %3, i64 0, i64 13
store i8 0, i8* %187
%188 = load i8, i8* %118
%189 = icmp eq i8 %188, -2
br i1 %189, label %194, label %190
190: ; preds = %186
%191 = icmp eq i8 %188, -4
%192 = select i1 %191, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0)
%193 = call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0), i8* %192, i8* %11)
br label %217
194: ; preds = %186
%195 = call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i8* %11)
br label %217
196: ; preds = %117
%197 = getelementptr inbounds i8, i8* %1, i64 5
%198 = load i8, i8* %197
%199 = zext i8 %198 to i32
%200 = getelementptr inbounds i8, i8* %1, i64 6
%201 = load i8, i8* %200
%202 = zext i8 %201 to i32
%203 = getelementptr inbounds i8, i8* %1, i64 7
%204 = load i8, i8* %203
%205 = zext i8 %204 to i32
%206 = getelementptr inbounds i8, i8* %1, i64 8
%207 = load i8, i8* %206
%208 = zext i8 %207 to i32
%209 = getelementptr inbounds i8, i8* %1, i64 9
%210 = load i8, i8* %209
%211 = zext i8 %210 to i32
%212 = mul nuw nsw i32 %211, 10
%213 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.8, i64 0, i64 0), i32 %199, i32 %202, i32 %205, i32 %208, i32 %212)
br label %217
214: ; preds = %117
%215 = zext i8 %119 to i32
%216 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.9, i64 0, i64 0), i32 %215)
br label %217
217: ; preds = %196, %214, %194, %190, %13
ret void
}