#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 uint32_t;

/* Variables and functions */
int /*<<< orphan*/
snprintf(char *, int, char *, char const *, char const *, char const *,
         char const *, char const *, char const *, char const *, char const *,
         char const *, char const *, char const *, char const *, char const *,
         char const *, char const *, char const *, char const *, char const *,
         char const *, char const *, char const *, char const *, char const *,
         char const *, char const *);
void i830_debug_pipestat(char *result, int len, int reg, uint32_t val,
                         uint32_t devid) {
  const char *_FIFO_UNDERRUN = val & (1 << 31) ? " FIFO_UNDERRUN" : "";
  const char *_CRC_ERROR_ENABLE = val & (1 << 29) ? " CRC_ERROR_ENABLE" : "";
  const char *_CRC_DONE_ENABLE = val & (1 << 28) ? " CRC_DONE_ENABLE" : "";
  const char *_GMBUS_EVENT_ENABLE =
      val & (1 << 27) ? " GMBUS_EVENT_ENABLE" : "";
  const char *_VSYNC_INT_ENABLE = val & (1 << 25) ? " VSYNC_INT_ENABLE" : "";
  const char *_DLINE_COMPARE_ENABLE =
      val & (1 << 24) ? " DLINE_COMPARE_ENABLE" : "";
  const char *_DPST_EVENT_ENABLE = val & (1 << 23) ? " DPST_EVENT_ENABLE" : "";
  const char *_LBLC_EVENT_ENABLE = val & (1 << 22) ? " LBLC_EVENT_ENABLE" : "";
  const char *_OFIELD_INT_ENABLE = val & (1 << 21) ? " OFIELD_INT_ENABLE" : "";
  const char *_EFIELD_INT_ENABLE = val & (1 << 20) ? " EFIELD_INT_ENABLE" : "";
  const char *_SVBLANK_INT_ENABLE =
      val & (1 << 18) ? " SVBLANK_INT_ENABLE" : "";
  const char *_VBLANK_INT_ENABLE = val & (1 << 17) ? " VBLANK_INT_ENABLE" : "";
  const char *_OREG_UPDATE_ENABLE =
      val & (1 << 16) ? " OREG_UPDATE_ENABLE" : "";
  const char *_CRC_ERROR_INT_STATUS =
      val & (1 << 13) ? " CRC_ERROR_INT_STATUS" : "";
  const char *_CRC_DONE_INT_STATUS =
      val & (1 << 12) ? " CRC_DONE_INT_STATUS" : "";
  const char *_GMBUS_INT_STATUS = val & (1 << 11) ? " GMBUS_INT_STATUS" : "";
  const char *_VSYNC_INT_STATUS = val & (1 << 9) ? " VSYNC_INT_STATUS" : "";
  const char *_DLINE_COMPARE_STATUS =
      val & (1 << 8) ? " DLINE_COMPARE_STATUS" : "";
  const char *_DPST_EVENT_STATUS = val & (1 << 7) ? " DPST_EVENT_STATUS" : "";
  const char *_LBLC_EVENT_STATUS = val & (1 << 6) ? " LBLC_EVENT_STATUS" : "";
  const char *_OFIELD_INT_STATUS = val & (1 << 5) ? " OFIELD_INT_STATUS" : "";
  const char *_EFIELD_INT_STATUS = val & (1 << 4) ? " EFIELD_INT_STATUS" : "";
  const char *_SVBLANK_INT_STATUS = val & (1 << 2) ? " SVBLANK_INT_STATUS" : "";
  const char *_VBLANK_INT_STATUS = val & (1 << 1) ? " VBLANK_INT_STATUS" : "";
  const char *_OREG_UPDATE_STATUS = val & (1 << 0) ? " OREG_UPDATE_STATUS" : "";
  snprintf(
      result, len, "status:%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s",
      _FIFO_UNDERRUN, _CRC_ERROR_ENABLE, _CRC_DONE_ENABLE, _GMBUS_EVENT_ENABLE,
      _VSYNC_INT_ENABLE, _DLINE_COMPARE_ENABLE, _DPST_EVENT_ENABLE,
      _LBLC_EVENT_ENABLE, _OFIELD_INT_ENABLE, _EFIELD_INT_ENABLE,
      _SVBLANK_INT_ENABLE, _VBLANK_INT_ENABLE, _OREG_UPDATE_ENABLE,
      _CRC_ERROR_INT_STATUS, _CRC_DONE_INT_STATUS, _GMBUS_INT_STATUS,
      _VSYNC_INT_STATUS, _DLINE_COMPARE_STATUS, _DPST_EVENT_STATUS,
      _LBLC_EVENT_STATUS, _OFIELD_INT_STATUS, _EFIELD_INT_STATUS,
      _SVBLANK_INT_STATUS, _VBLANK_INT_STATUS, _OREG_UPDATE_STATUS);
}


x86 assembly (clang, -O0):
<i830_debug_pipestat>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x208,%rsp
mov    %rdi,-0x30(%rbp)
mov    %esi,-0x34(%rbp)
mov    %edx,-0x38(%rbp)
mov    %ecx,-0x3c(%rbp)
mov    %r8d,-0x40(%rbp)
mov    -0x3c(%rbp),%edx
and    $0x80000000,%edx
lea    0xeec(%rip),%rax
lea    0xeb4(%rip),%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
mov    %rax,-0x48(%rbp)
mov    -0x3c(%rbp),%edx
and    $0x20000000,%edx
lea    0xeca(%rip),%rax
lea    0xea1(%rip),%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
mov    %rax,-0x50(%rbp)
mov    -0x3c(%rbp),%edx
and    $0x10000000,%edx
lea    0xea8(%rip),%rax
lea    0xe91(%rip),%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
mov    %rax,-0x58(%rbp)
mov    -0x3c(%rbp),%edx
and    $0x8000000,%edx
lea    0xe86(%rip),%rax
lea    0xe80(%rip),%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
mov    %rax,-0x60(%rbp)
mov    -0x3c(%rbp),%edx
and    $0x2000000,%edx
lea    0xe64(%rip),%rax
lea    0xe72(%rip),%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
mov    %rax,-0x68(%rbp)
mov    -0x3c(%rbp),%edx
and    $0x1000000,%edx
lea    0xe42(%rip),%rax
lea    0xe62(%rip),%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
mov    %rax,-0x70(%rbp)
mov    -0x3c(%rbp),%edx
and    $0x800000,%edx
lea    0xe20(%rip),%rax
lea    0xe56(%rip),%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
mov    %rax,-0x78(%rbp)
mov    -0x3c(%rbp),%edx
and    $0x400000,%edx
lea    0xdfe(%rip),%rax
lea    0xe47(%rip),%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
mov    %rax,-0x80(%rbp)
mov    -0x3c(%rbp),%edx
and    $0x200000,%edx
lea    0xddc(%rip),%rax
lea    0xe38(%rip),%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
mov    %rax,-0x88(%rbp)
mov    -0x3c(%rbp),%edx
and    $0x100000,%edx
lea    0xdb7(%rip),%rax
lea    0xe26(%rip),%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
mov    %rax,-0x90(%rbp)
mov    -0x3c(%rbp),%edx
and    $0x40000,%edx
lea    0xd92(%rip),%rax
lea    0xe14(%rip),%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
mov    %rax,-0x98(%rbp)
mov    -0x3c(%rbp),%edx
and    $0x20000,%edx
lea    0xd6d(%rip),%rax
lea    0xe03(%rip),%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
mov    %rax,-0xa0(%rbp)
mov    -0x3c(%rbp),%edx
and    $0x10000,%edx
lea    0xd48(%rip),%rax
lea    0xdf1(%rip),%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
mov    %rax,-0xa8(%rbp)
mov    -0x3c(%rbp),%edx
and    $0x2000,%edx
lea    0xd23(%rip),%rax
lea    0xde0(%rip),%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
mov    %rax,-0xb0(%rbp)
mov    -0x3c(%rbp),%edx
and    $0x1000,%edx
lea    0xcfe(%rip),%rax
lea    0xdd1(%rip),%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
mov    %rax,-0xb8(%rbp)
mov    -0x3c(%rbp),%edx
and    $0x800,%edx
lea    0xcd9(%rip),%rax
lea    0xdc1(%rip),%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
mov    %rax,-0xc0(%rbp)
mov    -0x3c(%rbp),%edx
and    $0x200,%edx
lea    0xcb4(%rip),%rax
lea    0xdae(%rip),%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
mov    %rax,-0xc8(%rbp)
mov    -0x3c(%rbp),%edx
and    $0x100,%edx
lea    0xc8f(%rip),%rax
lea    0xd9b(%rip),%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
mov    %rax,-0xd0(%rbp)
mov    -0x3c(%rbp),%edx
and    $0x80,%edx
lea    0xc6a(%rip),%rax
lea    0xd8c(%rip),%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
mov    %rax,-0xd8(%rbp)
mov    -0x3c(%rbp),%edx
and    $0x40,%edx
lea    0xc48(%rip),%rax
lea    0xd7d(%rip),%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
mov    %rax,-0xe0(%rbp)
mov    -0x3c(%rbp),%edx
and    $0x20,%edx
lea    0xc26(%rip),%rax
lea    0xd6e(%rip),%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
mov    %rax,-0xe8(%rbp)
mov    -0x3c(%rbp),%edx
and    $0x10,%edx
lea    0xc04(%rip),%rax
lea    0xd5f(%rip),%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
mov    %rax,-0xf0(%rbp)
mov    -0x3c(%rbp),%edx
and    $0x4,%edx
lea    0xbe2(%rip),%rax
lea    0xd50(%rip),%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
mov    %rax,-0xf8(%rbp)
mov    -0x3c(%rbp),%edx
and    $0x2,%edx
lea    0xbc0(%rip),%rax
lea    0xd42(%rip),%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
mov    %rax,-0x100(%rbp)
mov    -0x3c(%rbp),%edx
and    $0x1,%edx
lea    0xb9e(%rip),%rax
lea    0xd33(%rip),%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
mov    %rax,-0x108(%rbp)
mov    -0x30(%rbp),%rdi
mov    -0x34(%rbp),%esi
mov    -0x48(%rbp),%rcx
mov    -0x50(%rbp),%r8
mov    -0x58(%rbp),%r9
mov    -0x60(%rbp),%rax
mov    -0x68(%rbp),%rdx
mov    %rdx,-0x178(%rbp)
mov    -0x70(%rbp),%rdx
mov    %rdx,-0x170(%rbp)
mov    -0x78(%rbp),%rdx
mov    %rdx,-0x168(%rbp)
mov    -0x80(%rbp),%rdx
mov    %rdx,-0x160(%rbp)
mov    -0x88(%rbp),%rdx
mov    %rdx,-0x158(%rbp)
mov    -0x90(%rbp),%rdx
mov    %rdx,-0x150(%rbp)
mov    -0x98(%rbp),%rdx
mov    %rdx,-0x148(%rbp)
mov    -0xa0(%rbp),%rdx
mov    %rdx,-0x140(%rbp)
mov    -0xa8(%rbp),%rdx
mov    %rdx,-0x138(%rbp)
mov    -0xb0(%rbp),%rdx
mov    %rdx,-0x130(%rbp)
mov    -0xb8(%rbp),%rdx
mov    %rdx,-0x128(%rbp)
mov    -0xc0(%rbp),%rdx
mov    %rdx,-0x120(%rbp)
mov    -0xc8(%rbp),%rdx
mov    %rdx,-0x118(%rbp)
mov    -0xd0(%rbp),%r13
mov    -0xd8(%rbp),%r12
mov    -0xe0(%rbp),%r15
mov    -0xe8(%rbp),%r14
mov    -0xf0(%rbp),%rbx
mov    -0xf8(%rbp),%r11
mov    -0x100(%rbp),%r10
mov    -0x108(%rbp),%rdx
mov    %rdx,-0x110(%rbp)
lea    0xc32(%rip),%rdx
mov    %rax,(%rsp)
mov    -0x178(%rbp),%rax
mov    %rax,0x8(%rsp)
mov    -0x170(%rbp),%rax
mov    %rax,0x10(%rsp)
mov    -0x168(%rbp),%rax
mov    %rax,0x18(%rsp)
mov    -0x160(%rbp),%rax
mov    %rax,0x20(%rsp)
mov    -0x158(%rbp),%rax
mov    %rax,0x28(%rsp)
mov    -0x150(%rbp),%rax
mov    %rax,0x30(%rsp)
mov    -0x148(%rbp),%rax
mov    %rax,0x38(%rsp)
mov    -0x140(%rbp),%rax
mov    %rax,0x40(%rsp)
mov    -0x138(%rbp),%rax
mov    %rax,0x48(%rsp)
mov    -0x130(%rbp),%rax
mov    %rax,0x50(%rsp)
mov    -0x128(%rbp),%rax
mov    %rax,0x58(%rsp)
mov    -0x120(%rbp),%rax
mov    %rax,0x60(%rsp)
mov    -0x118(%rbp),%rax
mov    %rax,0x68(%rsp)
mov    -0x110(%rbp),%rax
mov    %r13,0x70(%rsp)
mov    %r12,0x78(%rsp)
mov    %r15,0x80(%rsp)
mov    %r14,0x88(%rsp)
mov    %rbx,0x90(%rsp)
mov    %r11,0x98(%rsp)
mov    %r10,0xa0(%rsp)
mov    %rax,0xa8(%rsp)
call   1030 <snprintf@plt>
add    $0x208,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<i830_debug_pipestat>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x68,%rsp
mov    %ecx,%eax
test   %ecx,%ecx
lea    0xf08(%rip),%rdx
lea    0xed0(%rip),%rcx
cmovns %rdx,%rcx
test   $0x20000000,%eax
lea    0xecf(%rip),%r8
cmove  %rdx,%r8
test   $0x10000000,%eax
lea    0xed1(%rip),%r9
cmove  %rdx,%r9
test   $0x8000000,%eax
lea    0xed2(%rip),%rbp
cmove  %rdx,%rbp
mov    %rbp,0x60(%rsp)
test   $0x2000000,%eax
lea    0xed1(%rip),%rbp
cmove  %rdx,%rbp
mov    %rbp,0x58(%rsp)
test   $0x1000000,%eax
lea    0xece(%rip),%rbp
cmove  %rdx,%rbp
mov    %rbp,0x50(%rsp)
test   $0x800000,%eax
lea    0xecf(%rip),%rbp
cmove  %rdx,%rbp
mov    %rbp,0x48(%rsp)
test   $0x400000,%eax
lea    0xecd(%rip),%rbp
cmove  %rdx,%rbp
mov    %rbp,0x40(%rsp)
test   $0x200000,%eax
lea    0xecb(%rip),%rbp
cmove  %rdx,%rbp
mov    %rbp,0x38(%rsp)
test   $0x100000,%eax
lea    0xec9(%rip),%rbp
cmove  %rdx,%rbp
mov    %rbp,0x30(%rsp)
test   $0x40000,%eax
lea    0xec7(%rip),%rbp
cmove  %rdx,%rbp
mov    %rbp,0x28(%rsp)
test   $0x20000,%eax
lea    0xec6(%rip),%rbp
cmove  %rdx,%rbp
mov    %rbp,0x20(%rsp)
test   $0x10000,%eax
lea    0xec4(%rip),%rbp
cmove  %rdx,%rbp
mov    %rbp,0x18(%rsp)
test   $0x2000,%eax
lea    0xec3(%rip),%rbp
cmove  %rdx,%rbp
mov    %rbp,0x10(%rsp)
test   $0x1000,%eax
lea    0xec4(%rip),%rbp
cmove  %rdx,%rbp
mov    %rbp,0x8(%rsp)
test   $0x800,%eax
lea    0xec4(%rip),%rbp
cmove  %rdx,%rbp
mov    %rbp,(%rsp)
test   $0x200,%eax
lea    0xec2(%rip),%rbp
cmove  %rdx,%rbp
test   $0x100,%eax
lea    0xec4(%rip),%r13
cmove  %rdx,%r13
test   $0x80,%al
lea    0xecd(%rip),%r12
cmove  %rdx,%r12
test   $0x40,%al
lea    0xed3(%rip),%r15
cmove  %rdx,%r15
test   $0x20,%al
lea    0xed9(%rip),%r14
cmove  %rdx,%r14
test   $0x10,%al
lea    0xedf(%rip),%rbx
cmove  %rdx,%rbx
test   $0x4,%al
lea    0xee5(%rip),%r11
cmove  %rdx,%r11
test   $0x2,%al
lea    0xeec(%rip),%r10
cmove  %rdx,%r10
test   $0x1,%al
lea    0xef2(%rip),%rax
cmove  %rdx,%rax
lea    0xefb(%rip),%rdx
push   %rax
push   %r10
push   %r11
push   %rbx
push   %r14
push   %r15
push   %r12
push   %r13
push   %rbp
push   0x48(%rsp)
push   0x58(%rsp)
push   0x68(%rsp)
push   0x78(%rsp)
push   0x88(%rsp)
push   0x98(%rsp)
push   0xa8(%rsp)
push   0xb8(%rsp)
push   0xc8(%rsp)
push   0xd8(%rsp)
push   0xe8(%rsp)
push   0xf8(%rsp)
push   0x108(%rsp)
call   1030 <snprintf@plt>
add    $0x118,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [15 x i8] c" FIFO_UNDERRUN\00"
@.str.1 = [1 x i8] zeroinitializer
@.str.2 = [18 x i8] c" CRC_ERROR_ENABLE\00"
@.str.3 = [17 x i8] c" CRC_DONE_ENABLE\00"
@.str.4 = [20 x i8] c" GMBUS_EVENT_ENABLE\00"
@.str.5 = [18 x i8] c" VSYNC_INT_ENABLE\00"
@.str.6 = [22 x i8] c" DLINE_COMPARE_ENABLE\00"
@.str.7 = [19 x i8] c" DPST_EVENT_ENABLE\00"
@.str.8 = [19 x i8] c" LBLC_EVENT_ENABLE\00"
@.str.9 = [19 x i8] c" OFIELD_INT_ENABLE\00"
@.str.10 = [19 x i8] c" EFIELD_INT_ENABLE\00"
@.str.11 = [20 x i8] c" SVBLANK_INT_ENABLE\00"
@.str.12 = [19 x i8] c" VBLANK_INT_ENABLE\00"
@.str.13 = [20 x i8] c" OREG_UPDATE_ENABLE\00"
@.str.14 = [22 x i8] c" CRC_ERROR_INT_STATUS\00"
@.str.15 = [21 x i8] c" CRC_DONE_INT_STATUS\00"
@.str.16 = [18 x i8] c" GMBUS_INT_STATUS\00"
@.str.17 = [18 x i8] c" VSYNC_INT_STATUS\00"
@.str.18 = [22 x i8] c" DLINE_COMPARE_STATUS\00"
@.str.19 = [19 x i8] c" DPST_EVENT_STATUS\00"
@.str.20 = [19 x i8] c" LBLC_EVENT_STATUS\00"
@.str.21 = [19 x i8] c" OFIELD_INT_STATUS\00"
@.str.22 = [19 x i8] c" EFIELD_INT_STATUS\00"
@.str.23 = [20 x i8] c" SVBLANK_INT_STATUS\00"
@.str.24 = [19 x i8] c" VBLANK_INT_STATUS\00"
@.str.25 = [20 x i8] c" OREG_UPDATE_STATUS\00"
@.str.26 = [58 x i8] c"status:%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s\00"
define void @i830_debug_pipestat(i8* %0, i32 %1, i32 %2, i32 %3, i32 %4) {
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i8*
%12 = alloca i8*
%13 = alloca i8*
%14 = alloca i8*
%15 = alloca i8*
%16 = alloca i8*
%17 = alloca i8*
%18 = alloca i8*
%19 = alloca i8*
%20 = alloca i8*
%21 = alloca i8*
%22 = alloca i8*
%23 = alloca i8*
%24 = alloca i8*
%25 = alloca i8*
%26 = alloca i8*
%27 = alloca i8*
%28 = alloca i8*
%29 = alloca i8*
%30 = alloca i8*
%31 = alloca i8*
%32 = alloca i8*
%33 = alloca i8*
%34 = alloca i8*
%35 = alloca i8*
store i8* %0, i8** %6
store i32 %1, i32* %7
store i32 %2, i32* %8
store i32 %3, i32* %9
store i32 %4, i32* %10
%36 = load i32, i32* %9
%37 = and i32 %36, -2147483648
%38 = icmp ne i32 %37, 0
%39 = zext i1 %38 to i64
%40 = select i1 %38, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0)
store i8* %40, i8** %11
%41 = load i32, i32* %9
%42 = and i32 %41, 536870912
%43 = icmp ne i32 %42, 0
%44 = zext i1 %43 to i64
%45 = select i1 %43, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0)
store i8* %45, i8** %12
%46 = load i32, i32* %9
%47 = and i32 %46, 268435456
%48 = icmp ne i32 %47, 0
%49 = zext i1 %48 to i64
%50 = select i1 %48, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0)
store i8* %50, i8** %13
%51 = load i32, i32* %9
%52 = and i32 %51, 134217728
%53 = icmp ne i32 %52, 0
%54 = zext i1 %53 to i64
%55 = select i1 %53, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0)
store i8* %55, i8** %14
%56 = load i32, i32* %9
%57 = and i32 %56, 33554432
%58 = icmp ne i32 %57, 0
%59 = zext i1 %58 to i64
%60 = select i1 %58, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0)
store i8* %60, i8** %15
%61 = load i32, i32* %9
%62 = and i32 %61, 16777216
%63 = icmp ne i32 %62, 0
%64 = zext i1 %63 to i64
%65 = select i1 %63, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0)
store i8* %65, i8** %16
%66 = load i32, i32* %9
%67 = and i32 %66, 8388608
%68 = icmp ne i32 %67, 0
%69 = zext i1 %68 to i64
%70 = select i1 %68, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0)
store i8* %70, i8** %17
%71 = load i32, i32* %9
%72 = and i32 %71, 4194304
%73 = icmp ne i32 %72, 0
%74 = zext i1 %73 to i64
%75 = select i1 %73, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0)
store i8* %75, i8** %18
%76 = load i32, i32* %9
%77 = and i32 %76, 2097152
%78 = icmp ne i32 %77, 0
%79 = zext i1 %78 to i64
%80 = select i1 %78, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0)
store i8* %80, i8** %19
%81 = load i32, i32* %9
%82 = and i32 %81, 1048576
%83 = icmp ne i32 %82, 0
%84 = zext i1 %83 to i64
%85 = select i1 %83, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0)
store i8* %85, i8** %20
%86 = load i32, i32* %9
%87 = and i32 %86, 262144
%88 = icmp ne i32 %87, 0
%89 = zext i1 %88 to i64
%90 = select i1 %88, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0)
store i8* %90, i8** %21
%91 = load i32, i32* %9
%92 = and i32 %91, 131072
%93 = icmp ne i32 %92, 0
%94 = zext i1 %93 to i64
%95 = select i1 %93, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0)
store i8* %95, i8** %22
%96 = load i32, i32* %9
%97 = and i32 %96, 65536
%98 = icmp ne i32 %97, 0
%99 = zext i1 %98 to i64
%100 = select i1 %98, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0)
store i8* %100, i8** %23
%101 = load i32, i32* %9
%102 = and i32 %101, 8192
%103 = icmp ne i32 %102, 0
%104 = zext i1 %103 to i64
%105 = select i1 %103, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0)
store i8* %105, i8** %24
%106 = load i32, i32* %9
%107 = and i32 %106, 4096
%108 = icmp ne i32 %107, 0
%109 = zext i1 %108 to i64
%110 = select i1 %108, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0)
store i8* %110, i8** %25
%111 = load i32, i32* %9
%112 = and i32 %111, 2048
%113 = icmp ne i32 %112, 0
%114 = zext i1 %113 to i64
%115 = select i1 %113, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0)
store i8* %115, i8** %26
%116 = load i32, i32* %9
%117 = and i32 %116, 512
%118 = icmp ne i32 %117, 0
%119 = zext i1 %118 to i64
%120 = select i1 %118, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0)
store i8* %120, i8** %27
%121 = load i32, i32* %9
%122 = and i32 %121, 256
%123 = icmp ne i32 %122, 0
%124 = zext i1 %123 to i64
%125 = select i1 %123, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.18, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0)
store i8* %125, i8** %28
%126 = load i32, i32* %9
%127 = and i32 %126, 128
%128 = icmp ne i32 %127, 0
%129 = zext i1 %128 to i64
%130 = select i1 %128, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.19, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0)
store i8* %130, i8** %29
%131 = load i32, i32* %9
%132 = and i32 %131, 64
%133 = icmp ne i32 %132, 0
%134 = zext i1 %133 to i64
%135 = select i1 %133, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.20, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0)
store i8* %135, i8** %30
%136 = load i32, i32* %9
%137 = and i32 %136, 32
%138 = icmp ne i32 %137, 0
%139 = zext i1 %138 to i64
%140 = select i1 %138, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.21, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0)
store i8* %140, i8** %31
%141 = load i32, i32* %9
%142 = and i32 %141, 16
%143 = icmp ne i32 %142, 0
%144 = zext i1 %143 to i64
%145 = select i1 %143, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.22, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0)
store i8* %145, i8** %32
%146 = load i32, i32* %9
%147 = and i32 %146, 4
%148 = icmp ne i32 %147, 0
%149 = zext i1 %148 to i64
%150 = select i1 %148, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.23, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0)
store i8* %150, i8** %33
%151 = load i32, i32* %9
%152 = and i32 %151, 2
%153 = icmp ne i32 %152, 0
%154 = zext i1 %153 to i64
%155 = select i1 %153, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.24, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0)
store i8* %155, i8** %34
%156 = load i32, i32* %9
%157 = and i32 %156, 1
%158 = icmp ne i32 %157, 0
%159 = zext i1 %158 to i64
%160 = select i1 %158, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.25, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0)
store i8* %160, i8** %35
%161 = load i8*, i8** %6
%162 = load i32, i32* %7
%163 = load i8*, i8** %11
%164 = load i8*, i8** %12
%165 = load i8*, i8** %13
%166 = load i8*, i8** %14
%167 = load i8*, i8** %15
%168 = load i8*, i8** %16
%169 = load i8*, i8** %17
%170 = load i8*, i8** %18
%171 = load i8*, i8** %19
%172 = load i8*, i8** %20
%173 = load i8*, i8** %21
%174 = load i8*, i8** %22
%175 = load i8*, i8** %23
%176 = load i8*, i8** %24
%177 = load i8*, i8** %25
%178 = load i8*, i8** %26
%179 = load i8*, i8** %27
%180 = load i8*, i8** %28
%181 = load i8*, i8** %29
%182 = load i8*, i8** %30
%183 = load i8*, i8** %31
%184 = load i8*, i8** %32
%185 = load i8*, i8** %33
%186 = load i8*, i8** %34
%187 = load i8*, i8** %35
%188 = call i32 @snprintf(i8* %161, i32 %162, i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.26, i64 0, i64 0), i8* %163, i8* %164, i8* %165, i8* %166, i8* %167, i8* %168, i8* %169, i8* %170, i8* %171, i8* %172, i8* %173, i8* %174, i8* %175, i8* %176, i8* %177, i8* %178, i8* %179, i8* %180, i8* %181, i8* %182, i8* %183, i8* %184, i8* %185, i8* %186, i8* %187)
ret void
}

LLVM IR (-O2):
@.str = [15 x i8] c" FIFO_UNDERRUN\00"
@.str.1 = [1 x i8] zeroinitializer
@.str.2 = [18 x i8] c" CRC_ERROR_ENABLE\00"
@.str.3 = [17 x i8] c" CRC_DONE_ENABLE\00"
@.str.4 = [20 x i8] c" GMBUS_EVENT_ENABLE\00"
@.str.5 = [18 x i8] c" VSYNC_INT_ENABLE\00"
@.str.6 = [22 x i8] c" DLINE_COMPARE_ENABLE\00"
@.str.7 = [19 x i8] c" DPST_EVENT_ENABLE\00"
@.str.8 = [19 x i8] c" LBLC_EVENT_ENABLE\00"
@.str.9 = [19 x i8] c" OFIELD_INT_ENABLE\00"
@.str.10 = [19 x i8] c" EFIELD_INT_ENABLE\00"
@.str.11 = [20 x i8] c" SVBLANK_INT_ENABLE\00"
@.str.12 = [19 x i8] c" VBLANK_INT_ENABLE\00"
@.str.13 = [20 x i8] c" OREG_UPDATE_ENABLE\00"
@.str.14 = [22 x i8] c" CRC_ERROR_INT_STATUS\00"
@.str.15 = [21 x i8] c" CRC_DONE_INT_STATUS\00"
@.str.16 = [18 x i8] c" GMBUS_INT_STATUS\00"
@.str.17 = [18 x i8] c" VSYNC_INT_STATUS\00"
@.str.18 = [22 x i8] c" DLINE_COMPARE_STATUS\00"
@.str.19 = [19 x i8] c" DPST_EVENT_STATUS\00"
@.str.20 = [19 x i8] c" LBLC_EVENT_STATUS\00"
@.str.21 = [19 x i8] c" OFIELD_INT_STATUS\00"
@.str.22 = [19 x i8] c" EFIELD_INT_STATUS\00"
@.str.23 = [20 x i8] c" SVBLANK_INT_STATUS\00"
@.str.24 = [19 x i8] c" VBLANK_INT_STATUS\00"
@.str.25 = [20 x i8] c" OREG_UPDATE_STATUS\00"
@.str.26 = [58 x i8] c"status:%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s\00"
define void @i830_debug_pipestat(i8* %0, i32 %1, i32 %2, i32 %3, i32 %4) {
%6 = icmp sgt i32 %3, -1
%7 = select i1 %6, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0)
%8 = and i32 %3, 536870912
%9 = icmp eq i32 %8, 0
%10 = select i1 %9, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0)
%11 = and i32 %3, 268435456
%12 = icmp eq i32 %11, 0
%13 = select i1 %12, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0)
%14 = and i32 %3, 134217728
%15 = icmp eq i32 %14, 0
%16 = select i1 %15, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0)
%17 = and i32 %3, 33554432
%18 = icmp eq i32 %17, 0
%19 = select i1 %18, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i64 0, i64 0)
%20 = and i32 %3, 16777216
%21 = icmp eq i32 %20, 0
%22 = select i1 %21, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.6, i64 0, i64 0)
%23 = and i32 %3, 8388608
%24 = icmp eq i32 %23, 0
%25 = select i1 %24, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.7, i64 0, i64 0)
%26 = and i32 %3, 4194304
%27 = icmp eq i32 %26, 0
%28 = select i1 %27, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.8, i64 0, i64 0)
%29 = and i32 %3, 2097152
%30 = icmp eq i32 %29, 0
%31 = select i1 %30, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.9, i64 0, i64 0)
%32 = and i32 %3, 1048576
%33 = icmp eq i32 %32, 0
%34 = select i1 %33, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.10, i64 0, i64 0)
%35 = and i32 %3, 262144
%36 = icmp eq i32 %35, 0
%37 = select i1 %36, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.11, i64 0, i64 0)
%38 = and i32 %3, 131072
%39 = icmp eq i32 %38, 0
%40 = select i1 %39, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.12, i64 0, i64 0)
%41 = and i32 %3, 65536
%42 = icmp eq i32 %41, 0
%43 = select i1 %42, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.13, i64 0, i64 0)
%44 = and i32 %3, 8192
%45 = icmp eq i32 %44, 0
%46 = select i1 %45, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.14, i64 0, i64 0)
%47 = and i32 %3, 4096
%48 = icmp eq i32 %47, 0
%49 = select i1 %48, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.15, i64 0, i64 0)
%50 = and i32 %3, 2048
%51 = icmp eq i32 %50, 0
%52 = select i1 %51, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.16, i64 0, i64 0)
%53 = and i32 %3, 512
%54 = icmp eq i32 %53, 0
%55 = select i1 %54, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.17, i64 0, i64 0)
%56 = and i32 %3, 256
%57 = icmp eq i32 %56, 0
%58 = select i1 %57, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.18, i64 0, i64 0)
%59 = and i32 %3, 128
%60 = icmp eq i32 %59, 0
%61 = select i1 %60, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.19, i64 0, i64 0)
%62 = and i32 %3, 64
%63 = icmp eq i32 %62, 0
%64 = select i1 %63, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.20, i64 0, i64 0)
%65 = and i32 %3, 32
%66 = icmp eq i32 %65, 0
%67 = select i1 %66, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.21, i64 0, i64 0)
%68 = and i32 %3, 16
%69 = icmp eq i32 %68, 0
%70 = select i1 %69, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.22, i64 0, i64 0)
%71 = and i32 %3, 4
%72 = icmp eq i32 %71, 0
%73 = select i1 %72, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.23, i64 0, i64 0)
%74 = and i32 %3, 2
%75 = icmp eq i32 %74, 0
%76 = select i1 %75, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.24, i64 0, i64 0)
%77 = and i32 %3, 1
%78 = icmp eq i32 %77, 0
%79 = select i1 %78, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.25, i64 0, i64 0)
%80 = tail call i32 @snprintf(i8* %0, i32 %1, i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.26, i64 0, i64 0), i8* %7, i8* %10, i8* %13, i8* %16, i8* %19, i8* %22, i8* %25, i8* %28, i8* %31, i8* %34, i8* %37, i8* %40, i8* %43, i8* %46, i8* %49, i8* %52, i8* %55, i8* %58, i8* %61, i8* %64, i8* %67, i8* %70, i8* %73, i8* %76, i8* %79)
ret void
}