#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 uint8_t;
typedef int uint32_t;
typedef int uint16_t;

/* Variables and functions */
void USBHostEndpointConfig(uint32_t ui32Base, uint32_t ui32Endpoint,
                           uint32_t ui32MaxPayload,
                           uint32_t ui32NAKPollInterval,
                           uint32_t ui32TargetEndpoint, uint32_t ui32Flags) {
  uint32_t ui32Register;
  ;

  ;
  ;
  if (ui32Endpoint == 0x00000000) {
    (*((volatile uint8_t *)(ui32Base + 0x0000010B))) = ui32NAKPollInterval;
    if (ui32Flags & 0x00004000) {
      (*((volatile uint8_t *)(ui32Base + 0x0000010A))) = 0x00000040;
    } else if (ui32Flags & 0x00001000) {
      (*((volatile uint8_t *)(ui32Base + 0x0000010A))) = 0x00000080;
    } else {
      (*((volatile uint8_t *)(ui32Base + 0x0000010A))) = 0x000000C0;
    }
  } else {
    ui32Register = ui32TargetEndpoint;
    if (ui32Flags & 0x00004000) {
      ui32Register |= 0x00000040;
    } else if (ui32Flags & 0x00001000) {
      ui32Register |= 0x00000080;
    } else {
      ui32Register |= 0x000000C0;
    }
    switch (ui32Flags & 0x00000300) {
    case 0x00000100: {
      ui32Register |= 0x00000020;
      break;
    }
    case 0x00000000: {
      ui32Register |= 0x00000010;
      break;
    }
    case 0x00000200: {
      ui32Register |= 0x00000030;
      break;
    }
    case 0x00000300: {
      ui32Register |= 0x00000000;
      break;
    }
    }
    if (ui32Flags & 0x00002000) {
      (*((volatile uint8_t *)(ui32Base + (ui32Endpoint - 0x10) + 0x0000011A))) =
          ui32Register;
      (*((volatile uint8_t *)(ui32Base + (ui32Endpoint - 0x10) + 0x0000011B))) =
          ui32NAKPollInterval;
      (*((volatile uint16_t *)(ui32Base + (ui32Endpoint - 0x10) +
                               0x00000110))) = ui32MaxPayload;
      ui32Register = 0;
      if (ui32Flags & 0x00000001) {
        ui32Register |= 0x00000080;
      }
      if (ui32Flags & 0x00000010) {
        ui32Register |= 0x00000010 | 0x00000004;
      } else if (ui32Flags & 0x00000008) {
        ui32Register |= 0x00000010;
      }
      (*((volatile uint8_t *)(ui32Base + (ui32Endpoint - 0x10) + 0x00000113))) =
          (uint8_t)ui32Register;
    } else {
      (*((volatile uint8_t *)(ui32Base + (ui32Endpoint - 0x10) + 0x0000011C))) =
          ui32Register;
      (*((volatile uint8_t *)(ui32Base + (ui32Endpoint - 0x10) + 0x0000011D))) =
          ui32NAKPollInterval;
      (*((volatile uint16_t *)(ui32Base + (ui32Endpoint - 0x10) +
                               0x00000114))) = ui32MaxPayload;
      ui32Register = 0;
      if (ui32Flags & 0x00000004) {
        ui32Register |= 0x00000080;
      }
      if (ui32Flags & 0x00000002) {
        ui32Register |= 0x00000040;
      }
      if (ui32Flags & 0x00000010) {
        ui32Register |= 0x00000020 | 0x00000008;
      } else if (ui32Flags & 0x00000008) {
        ui32Register |= 0x00000020;
      }
      (*((volatile uint8_t *)(ui32Base + (ui32Endpoint - 0x10) + 0x00000117))) =
          (uint8_t)ui32Register;
    }
  }
}


x86 assembly (clang, -O0):
<USBHostEndpointConfig>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    %r8d,-0x14(%rbp)
mov    %r9d,-0x18(%rbp)
cmpl   $0x0,-0x8(%rbp)
jne    1197 <USBHostEndpointConfig+0x97>
mov    -0x10(%rbp),%ecx
mov    -0x4(%rbp),%eax
add    $0x10b,%eax
cltq
mov    %ecx,(%rax)
mov    -0x18(%rbp),%eax
and    $0x4000,%eax
cmp    $0x0,%eax
je     1157 <USBHostEndpointConfig+0x57>
mov    -0x4(%rbp),%eax
add    $0x10a,%eax
cltq
movl   $0x40,(%rax)
jmp    1192 <USBHostEndpointConfig+0x92>
mov    -0x18(%rbp),%eax
and    $0x1000,%eax
cmp    $0x0,%eax
je     117d <USBHostEndpointConfig+0x7d>
mov    -0x4(%rbp),%eax
add    $0x10a,%eax
cltq
movl   $0x80,(%rax)
jmp    118d <USBHostEndpointConfig+0x8d>
mov    -0x4(%rbp),%eax
add    $0x10a,%eax
cltq
movl   $0xc0,(%rax)
jmp    1192 <USBHostEndpointConfig+0x92>
jmp    1410 <USBHostEndpointConfig+0x310>
mov    -0x14(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x18(%rbp),%eax
and    $0x4000,%eax
cmp    $0x0,%eax
je     11bc <USBHostEndpointConfig+0xbc>
mov    -0x1c(%rbp),%eax
or     $0x40,%eax
mov    %eax,-0x1c(%rbp)
jmp    11ed <USBHostEndpointConfig+0xed>
mov    -0x18(%rbp),%eax
and    $0x1000,%eax
cmp    $0x0,%eax
je     11dd <USBHostEndpointConfig+0xdd>
mov    -0x1c(%rbp),%eax
or     $0x80,%eax
mov    %eax,-0x1c(%rbp)
jmp    11e8 <USBHostEndpointConfig+0xe8>
mov    -0x1c(%rbp),%eax
or     $0xc0,%eax
mov    %eax,-0x1c(%rbp)
jmp    11ed <USBHostEndpointConfig+0xed>
mov    -0x18(%rbp),%eax
and    $0x300,%eax
mov    %eax,-0x20(%rbp)
je     124a <USBHostEndpointConfig+0x14a>
jmp    1203 <USBHostEndpointConfig+0x103>
mov    -0x20(%rbp),%eax
sub    $0x100,%eax
je     123c <USBHostEndpointConfig+0x13c>
jmp    1216 <USBHostEndpointConfig+0x116>
mov    -0x20(%rbp),%eax
sub    $0x200,%eax
je     1258 <USBHostEndpointConfig+0x158>
jmp    1229 <USBHostEndpointConfig+0x129>
mov    -0x20(%rbp),%eax
sub    $0x300,%eax
je     1266 <USBHostEndpointConfig+0x166>
jmp    126f <USBHostEndpointConfig+0x16f>
mov    -0x1c(%rbp),%eax
or     $0x20,%eax
mov    %eax,-0x1c(%rbp)
jmp    126f <USBHostEndpointConfig+0x16f>
mov    -0x1c(%rbp),%eax
or     $0x10,%eax
mov    %eax,-0x1c(%rbp)
jmp    126f <USBHostEndpointConfig+0x16f>
mov    -0x1c(%rbp),%eax
or     $0x30,%eax
mov    %eax,-0x1c(%rbp)
jmp    126f <USBHostEndpointConfig+0x16f>
mov    -0x1c(%rbp),%eax
or     $0x0,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x18(%rbp),%eax
and    $0x2000,%eax
cmp    $0x0,%eax
je     133c <USBHostEndpointConfig+0x23c>
mov    -0x1c(%rbp),%ecx
mov    -0x4(%rbp),%eax
mov    -0x8(%rbp),%edx
sub    $0x10,%edx
add    %edx,%eax
add    $0x11a,%eax
cltq
mov    %ecx,(%rax)
mov    -0x10(%rbp),%ecx
mov    -0x4(%rbp),%eax
mov    -0x8(%rbp),%edx
sub    $0x10,%edx
add    %edx,%eax
add    $0x11b,%eax
cltq
mov    %ecx,(%rax)
mov    -0xc(%rbp),%ecx
mov    -0x4(%rbp),%eax
mov    -0x8(%rbp),%edx
sub    $0x10,%edx
add    %edx,%eax
add    $0x110,%eax
cltq
mov    %ecx,(%rax)
movl   $0x0,-0x1c(%rbp)
mov    -0x18(%rbp),%eax
and    $0x1,%eax
cmp    $0x0,%eax
je     12e6 <USBHostEndpointConfig+0x1e6>
mov    -0x1c(%rbp),%eax
or     $0x80,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x18(%rbp),%eax
and    $0x10,%eax
cmp    $0x0,%eax
je     1303 <USBHostEndpointConfig+0x203>
mov    -0x1c(%rbp),%eax
or     $0x14,%eax
mov    %eax,-0x1c(%rbp)
jmp    1320 <USBHostEndpointConfig+0x220>
mov    -0x18(%rbp),%eax
and    $0x8,%eax
cmp    $0x0,%eax
je     131b <USBHostEndpointConfig+0x21b>
mov    -0x1c(%rbp),%eax
or     $0x10,%eax
mov    %eax,-0x1c(%rbp)
jmp    1320 <USBHostEndpointConfig+0x220>
mov    -0x1c(%rbp),%ecx
mov    -0x4(%rbp),%eax
mov    -0x8(%rbp),%edx
sub    $0x10,%edx
add    %edx,%eax
add    $0x113,%eax
cltq
mov    %ecx,(%rax)
jmp    140b <USBHostEndpointConfig+0x30b>
mov    -0x1c(%rbp),%ecx
mov    -0x4(%rbp),%eax
mov    -0x8(%rbp),%edx
sub    $0x10,%edx
add    %edx,%eax
add    $0x11c,%eax
cltq
mov    %ecx,(%rax)
mov    -0x10(%rbp),%ecx
mov    -0x4(%rbp),%eax
mov    -0x8(%rbp),%edx
sub    $0x10,%edx
add    %edx,%eax
add    $0x11d,%eax
cltq
mov    %ecx,(%rax)
mov    -0xc(%rbp),%ecx
mov    -0x4(%rbp),%eax
mov    -0x8(%rbp),%edx
sub    $0x10,%edx
add    %edx,%eax
add    $0x114,%eax
cltq
mov    %ecx,(%rax)
movl   $0x0,-0x1c(%rbp)
mov    -0x18(%rbp),%eax
and    $0x4,%eax
cmp    $0x0,%eax
je     13a2 <USBHostEndpointConfig+0x2a2>
mov    -0x1c(%rbp),%eax
or     $0x80,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x18(%rbp),%eax
and    $0x2,%eax
cmp    $0x0,%eax
je     13ba <USBHostEndpointConfig+0x2ba>
mov    -0x1c(%rbp),%eax
or     $0x40,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x18(%rbp),%eax
and    $0x10,%eax
cmp    $0x0,%eax
je     13d7 <USBHostEndpointConfig+0x2d7>
mov    -0x1c(%rbp),%eax
or     $0x28,%eax
mov    %eax,-0x1c(%rbp)
jmp    13f4 <USBHostEndpointConfig+0x2f4>
mov    -0x18(%rbp),%eax
and    $0x8,%eax
cmp    $0x0,%eax
je     13ef <USBHostEndpointConfig+0x2ef>
mov    -0x1c(%rbp),%eax
or     $0x20,%eax
mov    %eax,-0x1c(%rbp)
jmp    13f4 <USBHostEndpointConfig+0x2f4>
mov    -0x1c(%rbp),%ecx
mov    -0x4(%rbp),%eax
mov    -0x8(%rbp),%edx
sub    $0x10,%edx
add    %edx,%eax
add    $0x117,%eax
cltq
mov    %ecx,(%rax)
jmp    1410 <USBHostEndpointConfig+0x310>
pop    %rbp
ret

x86 assembly (clang, -O2):
<USBHostEndpointConfig>:
test   %esi,%esi
je     1149 <USBHostEndpointConfig+0x49>
xor    %eax,%eax
test   $0x1000,%r9d
sete   %al
or     $0x2,%eax
shl    $0x6,%eax
test   $0x4000,%r9d
mov    $0x40,%r10d
cmove  %eax,%r10d
or     %r8d,%r10d
mov    %r9d,%eax
shr    $0x8,%eax
and    $0x3,%eax
lea    0xec6(%rip),%r8
movslq (%r8,%rax,4),%rax
add    %r8,%rax
jmp    *%rax
or     $0x10,%r10d
jmp    1188 <USBHostEndpointConfig+0x88>
movslq %edi,%rax
mov    %ecx,0x10b(%rax)
test   $0x4000,%r9d
jne    1173 <USBHostEndpointConfig+0x73>
test   $0x1000,%r9d
jne    121d <USBHostEndpointConfig+0x11d>
movl   $0xc0,0x10a(%rax)
ret
movl   $0x40,0x10a(%rax)
ret
or     $0x20,%r10d
jmp    1188 <USBHostEndpointConfig+0x88>
or     $0x30,%r10d
add    %edi,%esi
add    $0xfffffff0,%esi
test   $0x2000,%r9d
jne    11d3 <USBHostEndpointConfig+0xd3>
movslq %esi,%rax
mov    %r10d,0x11c(%rax)
mov    %ecx,0x11d(%rax)
mov    %edx,0x114(%rax)
mov    %r9d,%ecx
and    $0x6,%ecx
shl    $0x5,%ecx
mov    %r9d,%edx
shl    $0x2,%edx
and    $0x20,%edx
test   $0x10,%r9b
mov    $0x28,%esi
cmove  %edx,%esi
or     %ecx,%esi
mov    %esi,0x117(%rax)
ret
movslq %esi,%rsi
mov    %r10d,0x11a(%rsi)
mov    %ecx,0x11b(%rsi)
mov    %edx,0x110(%rsi)
test   $0x10,%r9b
jne    120a <USBHostEndpointConfig+0x10a>
rol    $0x4,%r9b
mov    %r9d,%eax
shr    $0x3,%al
shl    $0x3,%r9b
and    $0x80,%r9b
or     %al,%r9b
and    $0x90,%r9b
jmp    1212 <USBHostEndpointConfig+0x112>
shl    $0x7,%r9d
or     $0x14,%r9d
movzbl %r9b,%eax
mov    %eax,0x113(%rsi)
ret
movl   $0x80,0x10a(%rax)
ret

LLVM IR (-O0):
define void @USBHostEndpointConfig(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5) {
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
store i32 %0, i32* %7
store i32 %1, i32* %8
store i32 %2, i32* %9
store i32 %3, i32* %10
store i32 %4, i32* %11
store i32 %5, i32* %12
%14 = load i32, i32* %8
%15 = icmp eq i32 %14, 0
br i1 %15, label %16, label %46
16: ; preds = %6
%17 = load i32, i32* %10
%18 = load i32, i32* %7
%19 = add nsw i32 %18, 267
%20 = sext i32 %19 to i64
%21 = inttoptr i64 %20 to i32*
store volatile i32 %17, i32* %21
%22 = load i32, i32* %12
%23 = and i32 %22, 16384
%24 = icmp ne i32 %23, 0
br i1 %24, label %25, label %30
25: ; preds = %16
%26 = load i32, i32* %7
%27 = add nsw i32 %26, 266
%28 = sext i32 %27 to i64
%29 = inttoptr i64 %28 to i32*
store volatile i32 64, i32* %29
br label %45
30: ; preds = %16
%31 = load i32, i32* %12
%32 = and i32 %31, 4096
%33 = icmp ne i32 %32, 0
br i1 %33, label %34, label %39
34: ; preds = %30
%35 = load i32, i32* %7
%36 = add nsw i32 %35, 266
%37 = sext i32 %36 to i64
%38 = inttoptr i64 %37 to i32*
store volatile i32 128, i32* %38
br label %44
39: ; preds = %30
%40 = load i32, i32* %7
%41 = add nsw i32 %40, 266
%42 = sext i32 %41 to i64
%43 = inttoptr i64 %42 to i32*
store volatile i32 192, i32* %43
br label %44
44: ; preds = %39, %34
br label %45
45: ; preds = %44, %25
br label %202
46: ; preds = %6
%47 = load i32, i32* %11
store i32 %47, i32* %13
%48 = load i32, i32* %12
%49 = and i32 %48, 16384
%50 = icmp ne i32 %49, 0
br i1 %50, label %51, label %54
51: ; preds = %46
%52 = load i32, i32* %13
%53 = or i32 %52, 64
store i32 %53, i32* %13
br label %65
54: ; preds = %46
%55 = load i32, i32* %12
%56 = and i32 %55, 4096
%57 = icmp ne i32 %56, 0
br i1 %57, label %58, label %61
58: ; preds = %54
%59 = load i32, i32* %13
%60 = or i32 %59, 128
store i32 %60, i32* %13
br label %64
61: ; preds = %54
%62 = load i32, i32* %13
%63 = or i32 %62, 192
store i32 %63, i32* %13
br label %64
64: ; preds = %61, %58
br label %65
65: ; preds = %64, %51
%66 = load i32, i32* %12
%67 = and i32 %66, 768
switch i32 %67, label %80 [
i32 256, label %68
i32 0, label %71
i32 512, label %74
i32 768, label %77
]
68: ; preds = %65
%69 = load i32, i32* %13
%70 = or i32 %69, 32
store i32 %70, i32* %13
br label %80
71: ; preds = %65
%72 = load i32, i32* %13
%73 = or i32 %72, 16
store i32 %73, i32* %13
br label %80
74: ; preds = %65
%75 = load i32, i32* %13
%76 = or i32 %75, 48
store i32 %76, i32* %13
br label %80
77: ; preds = %65
%78 = load i32, i32* %13
%79 = or i32 %78, 0
store i32 %79, i32* %13
br label %80
80: ; preds = %65, %77, %74, %71, %68
%81 = load i32, i32* %12
%82 = and i32 %81, 8192
%83 = icmp ne i32 %82, 0
br i1 %83, label %84, label %139
84: ; preds = %80
%85 = load i32, i32* %13
%86 = load i32, i32* %7
%87 = load i32, i32* %8
%88 = sub nsw i32 %87, 16
%89 = add nsw i32 %86, %88
%90 = add nsw i32 %89, 282
%91 = sext i32 %90 to i64
%92 = inttoptr i64 %91 to i32*
store volatile i32 %85, i32* %92
%93 = load i32, i32* %10
%94 = load i32, i32* %7
%95 = load i32, i32* %8
%96 = sub nsw i32 %95, 16
%97 = add nsw i32 %94, %96
%98 = add nsw i32 %97, 283
%99 = sext i32 %98 to i64
%100 = inttoptr i64 %99 to i32*
store volatile i32 %93, i32* %100
%101 = load i32, i32* %9
%102 = load i32, i32* %7
%103 = load i32, i32* %8
%104 = sub nsw i32 %103, 16
%105 = add nsw i32 %102, %104
%106 = add nsw i32 %105, 272
%107 = sext i32 %106 to i64
%108 = inttoptr i64 %107 to i32*
store volatile i32 %101, i32* %108
store i32 0, i32* %13
%109 = load i32, i32* %12
%110 = and i32 %109, 1
%111 = icmp ne i32 %110, 0
br i1 %111, label %112, label %115
112: ; preds = %84
%113 = load i32, i32* %13
%114 = or i32 %113, 128
store i32 %114, i32* %13
br label %115
115: ; preds = %112, %84
%116 = load i32, i32* %12
%117 = and i32 %116, 16
%118 = icmp ne i32 %117, 0
br i1 %118, label %119, label %122
119: ; preds = %115
%120 = load i32, i32* %13
%121 = or i32 %120, 20
store i32 %121, i32* %13
br label %130
122: ; preds = %115
%123 = load i32, i32* %12
%124 = and i32 %123, 8
%125 = icmp ne i32 %124, 0
br i1 %125, label %126, label %129
126: ; preds = %122
%127 = load i32, i32* %13
%128 = or i32 %127, 16
store i32 %128, i32* %13
br label %129
129: ; preds = %126, %122
br label %130
130: ; preds = %129, %119
%131 = load i32, i32* %13
%132 = load i32, i32* %7
%133 = load i32, i32* %8
%134 = sub nsw i32 %133, 16
%135 = add nsw i32 %132, %134
%136 = add nsw i32 %135, 275
%137 = sext i32 %136 to i64
%138 = inttoptr i64 %137 to i32*
store volatile i32 %131, i32* %138
br label %201
139: ; preds = %80
%140 = load i32, i32* %13
%141 = load i32, i32* %7
%142 = load i32, i32* %8
%143 = sub nsw i32 %142, 16
%144 = add nsw i32 %141, %143
%145 = add nsw i32 %144, 284
%146 = sext i32 %145 to i64
%147 = inttoptr i64 %146 to i32*
store volatile i32 %140, i32* %147
%148 = load i32, i32* %10
%149 = load i32, i32* %7
%150 = load i32, i32* %8
%151 = sub nsw i32 %150, 16
%152 = add nsw i32 %149, %151
%153 = add nsw i32 %152, 285
%154 = sext i32 %153 to i64
%155 = inttoptr i64 %154 to i32*
store volatile i32 %148, i32* %155
%156 = load i32, i32* %9
%157 = load i32, i32* %7
%158 = load i32, i32* %8
%159 = sub nsw i32 %158, 16
%160 = add nsw i32 %157, %159
%161 = add nsw i32 %160, 276
%162 = sext i32 %161 to i64
%163 = inttoptr i64 %162 to i32*
store volatile i32 %156, i32* %163
store i32 0, i32* %13
%164 = load i32, i32* %12
%165 = and i32 %164, 4
%166 = icmp ne i32 %165, 0
br i1 %166, label %167, label %170
167: ; preds = %139
%168 = load i32, i32* %13
%169 = or i32 %168, 128
store i32 %169, i32* %13
br label %170
170: ; preds = %167, %139
%171 = load i32, i32* %12
%172 = and i32 %171, 2
%173 = icmp ne i32 %172, 0
br i1 %173, label %174, label %177
174: ; preds = %170
%175 = load i32, i32* %13
%176 = or i32 %175, 64
store i32 %176, i32* %13
br label %177
177: ; preds = %174, %170
%178 = load i32, i32* %12
%179 = and i32 %178, 16
%180 = icmp ne i32 %179, 0
br i1 %180, label %181, label %184
181: ; preds = %177
%182 = load i32, i32* %13
%183 = or i32 %182, 40
store i32 %183, i32* %13
br label %192
184: ; preds = %177
%185 = load i32, i32* %12
%186 = and i32 %185, 8
%187 = icmp ne i32 %186, 0
br i1 %187, label %188, label %191
188: ; preds = %184
%189 = load i32, i32* %13
%190 = or i32 %189, 32
store i32 %190, i32* %13
br label %191
191: ; preds = %188, %184
br label %192
192: ; preds = %191, %181
%193 = load i32, i32* %13
%194 = load i32, i32* %7
%195 = load i32, i32* %8
%196 = sub nsw i32 %195, 16
%197 = add nsw i32 %194, %196
%198 = add nsw i32 %197, 279
%199 = sext i32 %198 to i64
%200 = inttoptr i64 %199 to i32*
store volatile i32 %193, i32* %200
br label %201
201: ; preds = %192, %130
br label %202
202: ; preds = %201, %45
ret void
}

LLVM IR (-O2):
define void @USBHostEndpointConfig(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5) {
%7 = icmp eq i32 %1, 0
br i1 %7, label %8, label %26
8: ; preds = %6
%9 = add nsw i32 %0, 267
%10 = sext i32 %9 to i64
%11 = inttoptr i64 %10 to i32*
store volatile i32 %3, i32* %11
%12 = and i32 %5, 16384
%13 = icmp eq i32 %12, 0
br i1 %13, label %18, label %14
14: ; preds = %8
%15 = add nsw i32 %0, 266
%16 = sext i32 %15 to i64
%17 = inttoptr i64 %16 to i32*
store volatile i32 64, i32* %17
br label %96
18: ; preds = %8
%19 = and i32 %5, 4096
%20 = icmp eq i32 %19, 0
%21 = add nsw i32 %0, 266
%22 = sext i32 %21 to i64
%23 = inttoptr i64 %22 to i32*
br i1 %20, label %25, label %24
24: ; preds = %18
store volatile i32 128, i32* %23
br label %96
25: ; preds = %18
store volatile i32 192, i32* %23
br label %96
26: ; preds = %6
%27 = and i32 %5, 16384
%28 = icmp eq i32 %27, 0
%29 = and i32 %5, 4096
%30 = icmp eq i32 %29, 0
%31 = select i1 %30, i32 192, i32 128
%32 = select i1 %28, i32 %31, i32 64
%33 = or i32 %32, %4
%34 = lshr i32 %5, 8
%35 = and i32 %34, 3
switch i32 %35, label %42 [
i32 1, label %36
i32 0, label %38
i32 2, label %40
i32 3, label %43
]
36: ; preds = %26
%37 = or i32 %33, 32
br label %43
38: ; preds = %26
%39 = or i32 %33, 16
br label %43
40: ; preds = %26
%41 = or i32 %33, 48
br label %43
42: ; preds = %26
unreachable
43: ; preds = %26, %40, %38, %36
%44 = phi i32 [ %41, %40 ], [ %39, %38 ], [ %37, %36 ], [ %33, %26 ]
%45 = and i32 %5, 8192
%46 = icmp eq i32 %45, 0
%47 = add i32 %0, -16
%48 = add i32 %47, %1
br i1 %46, label %75, label %49
49: ; preds = %43
%50 = add nsw i32 %48, 282
%51 = sext i32 %50 to i64
%52 = inttoptr i64 %51 to i32*
store volatile i32 %44, i32* %52
%53 = add nsw i32 %48, 283
%54 = sext i32 %53 to i64
%55 = inttoptr i64 %54 to i32*
store volatile i32 %3, i32* %55
%56 = add nsw i32 %48, 272
%57 = sext i32 %56 to i64
%58 = inttoptr i64 %57 to i32*
store volatile i32 %2, i32* %58
%59 = and i32 %5, 16
%60 = icmp eq i32 %59, 0
br i1 %60, label %65, label %61
61: ; preds = %49
%62 = shl i32 %5, 7
%63 = and i32 %62, 128
%64 = or i32 %63, 20
br label %70
65: ; preds = %49
%66 = trunc i32 %5 to i8
%67 = tail call i8 @llvm.bitreverse.i8(i8 %66)
%68 = and i8 %67, -112
%69 = zext i8 %68 to i32
br label %70
70: ; preds = %65, %61
%71 = phi i32 [ %64, %61 ], [ %69, %65 ]
%72 = add nsw i32 %48, 275
%73 = sext i32 %72 to i64
%74 = inttoptr i64 %73 to i32*
store volatile i32 %71, i32* %74
br label %96
75: ; preds = %43
%76 = add nsw i32 %48, 284
%77 = sext i32 %76 to i64
%78 = inttoptr i64 %77 to i32*
store volatile i32 %44, i32* %78
%79 = add nsw i32 %48, 285
%80 = sext i32 %79 to i64
%81 = inttoptr i64 %80 to i32*
store volatile i32 %3, i32* %81
%82 = add nsw i32 %48, 276
%83 = sext i32 %82 to i64
%84 = inttoptr i64 %83 to i32*
store volatile i32 %2, i32* %84
%85 = shl i32 %5, 5
%86 = and i32 %85, 192
%87 = and i32 %5, 16
%88 = icmp eq i32 %87, 0
%89 = shl i32 %5, 2
%90 = and i32 %89, 32
%91 = select i1 %88, i32 %90, i32 40
%92 = or i32 %86, %91
%93 = add nsw i32 %48, 279
%94 = sext i32 %93 to i64
%95 = inttoptr i64 %94 to i32*
store volatile i32 %92, i32* %95
br label %96
96: ; preds = %70, %75, %14, %25, %24
ret void
}