#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 scalar_t__ bp;

/* Variables and functions */
void *coalesce(void *bp) {
  size_t prev_alloc =
      ((*((unsigned int *)((
           (char *)(((char *)(bp) -
                     ((*((unsigned int *)((char *)(bp)-8))) & ~0x7))) +
           ((*((unsigned int *)((
                (char *)(((char *)(bp) -
                          ((*((unsigned int *)((char *)(bp)-8))) & ~0x7))) -
                4)))) &
            ~0x7) -
           8)))) &
       0x1);
  size_t next_alloc =
      ((*((unsigned int *)((
           (char *)(((char *)(bp) +
                     ((*((unsigned int *)((char *)(bp)-4))) & ~0x7))) -
           4)))) &
       0x1);
  size_t size = ((*((unsigned int *)(((char *)(bp)-4)))) & ~0x7);
  if (prev_alloc && next_alloc) {
    return bp;
  } else if (prev_alloc && !next_alloc) {
    size += ((*((unsigned int *)((
                 (char *)(((char *)(bp) +
                           ((*((unsigned int *)((char *)(bp)-4))) & ~0x7))) -
                 4)))) &
             ~0x7);
    (*(unsigned int *)(((char *)(bp)-4)) = (((size) | (0))));
    (*(unsigned int *)(((char *)(bp) +
                        ((*((unsigned int *)(((char *)(bp)-4)))) & ~0x7) - 8)) =
         (((size) | (0))));
  } else if (!prev_alloc && next_alloc) {
    size += ((*((unsigned int *)((
                 (char *)(((char *)(bp) -
                           ((*((unsigned int *)((char *)(bp)-8))) & ~0x7))) -
                 4)))) &
             ~0x7);
    (*(unsigned int *)(((char *)(bp) +
                        ((*((unsigned int *)(((char *)(bp)-4)))) & ~0x7) - 8)) =
         (((size) | (0))));
    (*(unsigned int *)((
         (char *)(((char *)(bp) -
                   ((*((unsigned int *)((char *)(bp)-8))) & ~0x7))) -
         4)) = (((size) | (0))));
    bp = ((char *)(bp) - ((*((unsigned int *)((char *)(bp)-8))) & ~0x7));
  } else {
    size += ((*((unsigned int *)((
                 (char *)(((char *)(bp) -
                           ((*((unsigned int *)((char *)(bp)-8))) & ~0x7))) -
                 4)))) &
             ~0x7) +
            ((*((unsigned int *)((
                 (char *)(((char *)(bp) +
                           ((*((unsigned int *)((char *)(bp)-4))) & ~0x7))) -
                 4)))) &
             ~0x7);
    (*(unsigned int *)((
         (char *)(((char *)(bp) -
                   ((*((unsigned int *)((char *)(bp)-8))) & ~0x7))) -
         4)) = (((size) | (0))));
    (*(unsigned int *)((
         (char *)(((char *)(bp) +
                   ((*((unsigned int *)((char *)(bp)-4))) & ~0x7))) +
         ((*((unsigned int *)((
              (char *)(((char *)(bp) +
                        ((*((unsigned int *)((char *)(bp)-4))) & ~0x7))) -
              4)))) &
          ~0x7) -
         8)) = (((size) | (0))));
    bp = ((char *)(bp) - ((*((unsigned int *)((char *)(bp)-8))) & ~0x7));
  }
  return bp;
}


x86 assembly (clang, -O0):
<coalesce>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x10(%rbp),%rcx
mov    -0x8(%rcx),%ecx
and    $0xfffffff8,%ecx
mov    %ecx,%ecx
mov    %ecx,%edx
xor    %ecx,%ecx
sub    %rdx,%rcx
add    %rcx,%rax
mov    -0x10(%rbp),%rcx
mov    -0x10(%rbp),%rdx
mov    -0x8(%rdx),%edx
and    $0xfffffff8,%edx
mov    %edx,%edx
mov    %edx,%esi
xor    %edx,%edx
sub    %rsi,%rdx
mov    -0x4(%rcx,%rdx,1),%ecx
and    $0xfffffff8,%ecx
mov    %ecx,%ecx
mov    -0x8(%rax,%rcx,1),%eax
and    $0x1,%eax
mov    %eax,%eax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x10(%rbp),%rcx
mov    -0x4(%rcx),%ecx
and    $0xfffffff8,%ecx
mov    %ecx,%ecx
mov    -0x4(%rax,%rcx,1),%eax
and    $0x1,%eax
mov    %eax,%eax
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x4(%rax),%eax
and    $0xfffffff8,%eax
mov    %eax,%eax
mov    %rax,-0x28(%rbp)
cmpq   $0x0,-0x18(%rbp)
je     119f <coalesce+0x9f>
cmpq   $0x0,-0x20(%rbp)
je     119f <coalesce+0x9f>
mov    -0x10(%rbp),%rax
mov    %rax,-0x8(%rbp)
jmp    137e <coalesce+0x27e>
cmpq   $0x0,-0x18(%rbp)
je     120a <coalesce+0x10a>
cmpq   $0x0,-0x20(%rbp)
jne    120a <coalesce+0x10a>
mov    -0x10(%rbp),%rax
mov    -0x10(%rbp),%rcx
mov    -0x4(%rcx),%ecx
and    $0xfffffff8,%ecx
mov    %ecx,%ecx
mov    -0x4(%rax,%rcx,1),%eax
and    $0xfffffff8,%eax
mov    %eax,%eax
add    -0x28(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rax
or     $0x0,%rax
mov    %eax,%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,-0x4(%rax)
mov    -0x28(%rbp),%rax
or     $0x0,%rax
mov    %eax,%edx
mov    -0x10(%rbp),%rax
mov    -0x10(%rbp),%rcx
mov    -0x4(%rcx),%ecx
and    $0xfffffff8,%ecx
mov    %ecx,%ecx
mov    %edx,-0x8(%rax,%rcx,1)
jmp    1371 <coalesce+0x271>
cmpq   $0x0,-0x18(%rbp)
jne    12ae <coalesce+0x1ae>
cmpq   $0x0,-0x20(%rbp)
je     12ae <coalesce+0x1ae>
mov    -0x10(%rbp),%rax
mov    -0x10(%rbp),%rcx
mov    -0x8(%rcx),%ecx
and    $0xfffffff8,%ecx
mov    %ecx,%ecx
mov    %ecx,%edx
xor    %ecx,%ecx
sub    %rdx,%rcx
mov    -0x4(%rax,%rcx,1),%eax
and    $0xfffffff8,%eax
mov    %eax,%eax
add    -0x28(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rax
or     $0x0,%rax
mov    %eax,%edx
mov    -0x10(%rbp),%rax
mov    -0x10(%rbp),%rcx
mov    -0x4(%rcx),%ecx
and    $0xfffffff8,%ecx
mov    %ecx,%ecx
mov    %edx,-0x8(%rax,%rcx,1)
mov    -0x28(%rbp),%rax
or     $0x0,%rax
mov    %eax,%edx
mov    -0x10(%rbp),%rax
mov    -0x10(%rbp),%rcx
mov    -0x8(%rcx),%ecx
and    $0xfffffff8,%ecx
mov    %ecx,%ecx
mov    %ecx,%esi
xor    %ecx,%ecx
sub    %rsi,%rcx
mov    %edx,-0x4(%rax,%rcx,1)
mov    -0x10(%rbp),%rax
mov    -0x10(%rbp),%rcx
mov    -0x8(%rcx),%ecx
and    $0xfffffff8,%ecx
mov    %ecx,%ecx
mov    %ecx,%edx
xor    %ecx,%ecx
sub    %rdx,%rcx
add    %rcx,%rax
mov    %rax,-0x10(%rbp)
jmp    136c <coalesce+0x26c>
mov    -0x10(%rbp),%rax
mov    -0x10(%rbp),%rcx
mov    -0x8(%rcx),%ecx
and    $0xfffffff8,%ecx
mov    %ecx,%ecx
mov    %ecx,%edx
xor    %ecx,%ecx
sub    %rdx,%rcx
mov    -0x4(%rax,%rcx,1),%eax
and    $0xfffffff8,%eax
mov    -0x10(%rbp),%rcx
mov    -0x10(%rbp),%rdx
mov    -0x4(%rdx),%edx
and    $0xfffffff8,%edx
mov    %edx,%edx
mov    -0x4(%rcx,%rdx,1),%ecx
and    $0xfffffff8,%ecx
add    %ecx,%eax
mov    %eax,%eax
add    -0x28(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rax
or     $0x0,%rax
mov    %eax,%edx
mov    -0x10(%rbp),%rax
mov    -0x10(%rbp),%rcx
mov    -0x8(%rcx),%ecx
and    $0xfffffff8,%ecx
mov    %ecx,%ecx
mov    %ecx,%esi
xor    %ecx,%ecx
sub    %rsi,%rcx
mov    %edx,-0x4(%rax,%rcx,1)
mov    -0x28(%rbp),%rax
or     $0x0,%rax
mov    %eax,%edx
mov    -0x10(%rbp),%rax
mov    -0x10(%rbp),%rcx
mov    -0x4(%rcx),%ecx
and    $0xfffffff8,%ecx
mov    %ecx,%ecx
add    %rcx,%rax
mov    -0x10(%rbp),%rcx
mov    -0x10(%rbp),%rsi
mov    -0x4(%rsi),%esi
and    $0xfffffff8,%esi
mov    %esi,%esi
mov    -0x4(%rcx,%rsi,1),%ecx
and    $0xfffffff8,%ecx
mov    %ecx,%ecx
mov    %edx,-0x8(%rax,%rcx,1)
mov    -0x10(%rbp),%rax
mov    -0x10(%rbp),%rcx
mov    -0x8(%rcx),%ecx
and    $0xfffffff8,%ecx
mov    %ecx,%ecx
mov    %ecx,%edx
xor    %ecx,%ecx
sub    %rdx,%rcx
add    %rcx,%rax
mov    %rax,-0x10(%rbp)
jmp    1371 <coalesce+0x271>
jmp    1376 <coalesce+0x276>
mov    -0x10(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<coalesce>:
mov    %rdi,%rax
mov    -0x8(%rdi),%ecx
mov    -0x4(%rdi),%r9d
and    $0xfffffff8,%ecx
mov    %rdi,%rsi
sub    %rcx,%rsi
neg    %rcx
mov    -0x4(%rdi,%rcx,1),%ecx
and    $0xfffffff8,%ecx
mov    -0x8(%rcx,%rsi,1),%r8d
and    $0xfffffff8,%r9d
mov    -0x4(%rdi,%r9,1),%edi
mov    %edi,%edx
and    $0x1,%edx
test   $0x1,%r8b
je     113b <coalesce+0x3b>
test   %edx,%edx
je     113b <coalesce+0x3b>
ret
test   $0x1,%r8b
je     1153 <coalesce+0x53>
test   %edx,%edx
jne    1153 <coalesce+0x53>
and    $0xfffffff8,%edi
add    %r9d,%edi
mov    %edi,-0x4(%rax)
mov    %edi,-0x8(%rax,%rdi,1)
ret
test   $0x1,%r8b
jne    1174 <coalesce+0x74>
test   %edx,%edx
je     1174 <coalesce+0x74>
add    %r9d,%ecx
mov    %ecx,-0x8(%rax,%r9,1)
mov    -0x8(%rax),%edx
and    $0xfffffff8,%edx
neg    %rdx
mov    %ecx,-0x4(%rax,%rdx,1)
jmp    1194 <coalesce+0x94>
and    $0xfffffff8,%edi
add    %r9d,%ecx
add    %edi,%ecx
mov    %ecx,-0x4(%rsi)
mov    -0x4(%rax),%edx
and    $0xfffffff8,%edx
lea    (%rax,%rdx,1),%rsi
mov    -0x4(%rax,%rdx,1),%edx
and    $0xfffffff8,%edx
mov    %ecx,-0x8(%rdx,%rsi,1)
mov    -0x8(%rax),%ecx
and    $0xfffffff8,%ecx
sub    %rcx,%rax
ret

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

LLVM IR (-O2):
define i8* @coalesce(i8* %0) {
%2 = getelementptr inbounds i8, i8* %0, i64 -8
%3 = bitcast i8* %2 to i32*
%4 = load i32, i32* %3
%5 = and i32 %4, -8
%6 = zext i32 %5 to i64
%7 = sub nsw i64 0, %6
%8 = getelementptr inbounds i8, i8* %0, i64 %7
%9 = getelementptr inbounds i8, i8* %8, i64 -4
%10 = bitcast i8* %9 to i32*
%11 = load i32, i32* %10
%12 = and i32 %11, -8
%13 = zext i32 %12 to i64
%14 = getelementptr inbounds i8, i8* %8, i64 %13
%15 = getelementptr inbounds i8, i8* %14, i64 -8
%16 = bitcast i8* %15 to i32*
%17 = load i32, i32* %16
%18 = and i32 %17, 1
%19 = getelementptr inbounds i8, i8* %0, i64 -4
%20 = bitcast i8* %19 to i32*
%21 = load i32, i32* %20
%22 = and i32 %21, -8
%23 = zext i32 %22 to i64
%24 = getelementptr inbounds i8, i8* %0, i64 %23
%25 = getelementptr inbounds i8, i8* %24, i64 -4
%26 = bitcast i8* %25 to i32*
%27 = load i32, i32* %26
%28 = and i32 %27, 1
%29 = icmp ne i32 %18, 0
%30 = icmp ne i32 %28, 0
%31 = select i1 %29, i1 %30, i1 false
br i1 %31, label %81, label %32
32: ; preds = %1
%33 = icmp eq i32 %18, 0
%34 = select i1 %33, i1 true, i1 %30
br i1 %34, label %42, label %35
35: ; preds = %32
%36 = and i32 %27, -8
%37 = add i32 %36, %22
store i32 %37, i32* %20
%38 = zext i32 %37 to i64
%39 = getelementptr inbounds i8, i8* %0, i64 %38
%40 = getelementptr inbounds i8, i8* %39, i64 -8
%41 = bitcast i8* %40 to i32*
store i32 %37, i32* %41
br label %81
42: ; preds = %32
%43 = select i1 %33, i1 %30, i1 false
br i1 %43, label %44, label %60
44: ; preds = %42
%45 = add i32 %22, %12
%46 = getelementptr inbounds i8, i8* %24, i64 -8
%47 = bitcast i8* %46 to i32*
store i32 %45, i32* %47
%48 = load i32, i32* %3
%49 = and i32 %48, -8
%50 = zext i32 %49 to i64
%51 = sub nsw i64 0, %50
%52 = getelementptr inbounds i8, i8* %0, i64 %51
%53 = getelementptr inbounds i8, i8* %52, i64 -4
%54 = bitcast i8* %53 to i32*
store i32 %45, i32* %54
%55 = load i32, i32* %3
%56 = and i32 %55, -8
%57 = zext i32 %56 to i64
%58 = sub nsw i64 0, %57
%59 = getelementptr inbounds i8, i8* %0, i64 %58
br label %81
60: ; preds = %42
%61 = and i32 %27, -8
%62 = add i32 %22, %12
%63 = add i32 %62, %61
store i32 %63, i32* %10
%64 = load i32, i32* %20
%65 = and i32 %64, -8
%66 = zext i32 %65 to i64
%67 = getelementptr inbounds i8, i8* %0, i64 %66
%68 = getelementptr inbounds i8, i8* %67, i64 -4
%69 = bitcast i8* %68 to i32*
%70 = load i32, i32* %69
%71 = and i32 %70, -8
%72 = zext i32 %71 to i64
%73 = getelementptr inbounds i8, i8* %67, i64 %72
%74 = getelementptr inbounds i8, i8* %73, i64 -8
%75 = bitcast i8* %74 to i32*
store i32 %63, i32* %75
%76 = load i32, i32* %3
%77 = and i32 %76, -8
%78 = zext i32 %77 to i64
%79 = sub nsw i64 0, %78
%80 = getelementptr inbounds i8, i8* %0, i64 %79
br label %81
81: ; preds = %44, %60, %35, %1
%82 = phi i8* [ %0, %1 ], [ %59, %44 ], [ %80, %60 ], [ %0, %35 ]
ret i8* %82
}