#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*/ uint8_t;
typedef size_t uint32_t;
typedef size_t uint16_t;
typedef int target;

/* Variables and functions */
size_t UINT16_MAX;
unsigned char *__ziplistCascadeUpdate(unsigned char *, unsigned char *);
int /*<<< orphan*/ memcpy(unsigned char *, unsigned char *, size_t);
int /*<<< orphan*/ memmove(unsigned char *, unsigned char *, size_t);
int /*<<< orphan*/ zfree(unsigned char *);
unsigned char *zrealloc(unsigned char *, size_t);
unsigned char *ziplistMerge(unsigned char **first, unsigned char **second) {
  if (first == NULL || *first == NULL || second == NULL || *second == NULL)
    return NULL;
  if (*first == *second)
    return NULL;
  size_t first_bytes = ((*((uint32_t *)(*first))));
  size_t first_len = ((*((uint16_t *)((*first) + sizeof(uint32_t) * 2))));
  size_t second_bytes = ((*((uint32_t *)(*second))));
  size_t second_len = ((*((uint16_t *)((*second) + sizeof(uint32_t) * 2))));
  int append;
  unsigned char *source, *target;
  size_t target_bytes, source_bytes;
  if (first_len >= second_len) {
    target = *first;
    target_bytes = first_bytes;
    source = *second;
    source_bytes = second_bytes;
    append = 1;
  } else {
    target = *second;
    target_bytes = second_bytes;
    source = *first;
    source_bytes = first_bytes;
    append = 0;
  }
  size_t zlbytes = first_bytes + second_bytes -
                   (sizeof(uint32_t) * 2 + sizeof(uint16_t)) -
                   (sizeof(uint8_t));
  size_t zllength = first_len + second_len;
  zllength = zllength < UINT16_MAX ? zllength : UINT16_MAX;
  size_t first_offset = ((*((uint32_t *)((*first) + sizeof(uint32_t)))));
  size_t second_offset = ((*((uint32_t *)((*second) + sizeof(uint32_t)))));
  target = zrealloc(target, zlbytes);
  if (append) {
    memcpy(target + target_bytes - (sizeof(uint8_t)),
           source + (sizeof(uint32_t) * 2 + sizeof(uint16_t)),
           source_bytes - (sizeof(uint32_t) * 2 + sizeof(uint16_t)));
  } else {
    memmove(target + source_bytes - (sizeof(uint8_t)),
            target + (sizeof(uint32_t) * 2 + sizeof(uint16_t)),
            target_bytes - (sizeof(uint32_t) * 2 + sizeof(uint16_t)));
    memcpy(target, source, source_bytes - (sizeof(uint8_t)));
  }
  (*((uint32_t *)(target))) = (zlbytes);
  (*((uint16_t *)((target) + sizeof(uint32_t) * 2))) = (zllength);
  (*((uint32_t *)((target) + sizeof(uint32_t)))) =
      ((first_bytes - (sizeof(uint8_t))) +
       (second_offset - (sizeof(uint32_t) * 2 + sizeof(uint16_t))));
  target = __ziplistCascadeUpdate(target, target + first_offset);
  if (append) {
    zfree(*second);
    *second = NULL;
    *first = target;
  } else {
    zfree(*first);
    *first = NULL;
    *second = target;
  }
  return target;
}


x86 assembly (clang, -O0):
<ziplistMerge>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
cmpq   $0x0,-0x10(%rbp)
je     1195 <ziplistMerge+0x45>
mov    -0x10(%rbp),%rax
cmpq   $0x0,(%rax)
je     1195 <ziplistMerge+0x45>
cmpq   $0x0,-0x18(%rbp)
je     1195 <ziplistMerge+0x45>
mov    -0x18(%rbp),%rax
cmpq   $0x0,(%rax)
jne    11a2 <ziplistMerge+0x52>
movq   $0x0,-0x8(%rbp)
jmp    1401 <ziplistMerge+0x2b1>
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
mov    -0x18(%rbp),%rcx
cmp    (%rcx),%rax
jne    11c3 <ziplistMerge+0x73>
movq   $0x0,-0x8(%rbp)
jmp    1401 <ziplistMerge+0x2b1>
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
mov    (%rax),%rax
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
mov    0x10(%rax),%rax
mov    %rax,-0x28(%rbp)
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
mov    (%rax),%rax
mov    %rax,-0x30(%rbp)
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
mov    0x10(%rax),%rax
mov    %rax,-0x38(%rbp)
mov    -0x28(%rbp),%rax
cmp    -0x38(%rbp),%rax
jb     123d <ziplistMerge+0xed>
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x50(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,-0x58(%rbp)
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x48(%rbp)
mov    -0x30(%rbp),%rax
mov    %rax,-0x60(%rbp)
movl   $0x1,-0x3c(%rbp)
jmp    126a <ziplistMerge+0x11a>
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x50(%rbp)
mov    -0x30(%rbp),%rax
mov    %rax,-0x58(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x48(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,-0x60(%rbp)
movl   $0x0,-0x3c(%rbp)
mov    -0x20(%rbp),%rax
add    -0x30(%rbp),%rax
sub    $0x18,%rax
sub    $0x4,%rax
mov    %rax,-0x68(%rbp)
mov    -0x28(%rbp),%rax
add    -0x38(%rbp),%rax
mov    %rax,-0x70(%rbp)
mov    -0x70(%rbp),%rax
mov    0x2d4b(%rip),%rcx
cmp    (%rcx),%rax
jae    12ae <ziplistMerge+0x15e>
mov    -0x70(%rbp),%rax
mov    %rax,-0x88(%rbp)
jmp    12bf <ziplistMerge+0x16f>
mov    0x2d2b(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x88(%rbp)
mov    -0x88(%rbp),%rax
mov    %rax,-0x70(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x78(%rbp)
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x80(%rbp)
mov    -0x50(%rbp),%rdi
mov    -0x68(%rbp),%rsi
call   1050 <zrealloc@plt>
mov    %rax,-0x50(%rbp)
cmpl   $0x0,-0x3c(%rbp)
je     1329 <ziplistMerge+0x1d9>
mov    -0x50(%rbp),%rdi
add    -0x58(%rbp),%rdi
add    $0xfffffffffffffffc,%rdi
mov    -0x48(%rbp),%rsi
add    $0x18,%rsi
mov    -0x60(%rbp),%rdx
sub    $0x18,%rdx
call   1040 <memcpy@plt>
jmp    135f <ziplistMerge+0x20f>
mov    -0x50(%rbp),%rdi
add    -0x60(%rbp),%rdi
add    $0xfffffffffffffffc,%rdi
mov    -0x50(%rbp),%rsi
add    $0x18,%rsi
mov    -0x58(%rbp),%rdx
sub    $0x18,%rdx
call   1060 <memmove@plt>
mov    -0x50(%rbp),%rdi
mov    -0x48(%rbp),%rsi
mov    -0x60(%rbp),%rdx
sub    $0x4,%rdx
call   1040 <memcpy@plt>
mov    -0x68(%rbp),%rcx
mov    -0x50(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x70(%rbp),%rcx
mov    -0x50(%rbp),%rax
mov    %rcx,0x10(%rax)
mov    -0x20(%rbp),%rcx
sub    $0x4,%rcx
mov    -0x80(%rbp),%rax
sub    $0x18,%rax
add    %rax,%rcx
mov    -0x50(%rbp),%rax
mov    %rcx,0x8(%rax)
mov    -0x50(%rbp),%rdi
mov    -0x50(%rbp),%rsi
add    -0x78(%rbp),%rsi
call   1030 <__ziplistCascadeUpdate@plt>
mov    %rax,-0x50(%rbp)
cmpl   $0x0,-0x3c(%rbp)
je     13d7 <ziplistMerge+0x287>
mov    -0x18(%rbp),%rax
mov    (%rax),%rdi
call   1070 <zfree@plt>
mov    -0x18(%rbp),%rax
movq   $0x0,(%rax)
mov    -0x50(%rbp),%rcx
mov    -0x10(%rbp),%rax
mov    %rcx,(%rax)
jmp    13f9 <ziplistMerge+0x2a9>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
call   1070 <zfree@plt>
mov    -0x10(%rbp),%rax
movq   $0x0,(%rax)
mov    -0x50(%rbp),%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x50(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ziplistMerge>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
test   %rdi,%rdi
je     1252 <ziplistMerge+0x102>
mov    %rsi,%r14
xor    %ebp,%ebp
test   %rsi,%rsi
je     12bb <ziplistMerge+0x16b>
mov    %rdi,%r15
mov    (%rdi),%r12
test   %r12,%r12
je     12bb <ziplistMerge+0x16b>
mov    (%r14),%rbx
xor    %ebp,%ebp
test   %rbx,%rbx
je     12bb <ziplistMerge+0x16b>
cmp    %rbx,%r12
je     12bb <ziplistMerge+0x16b>
mov    0x10(%r12),%rax
mov    0x10(%rbx),%rcx
cmp    %rcx,%rax
mov    %rcx,(%rsp)
mov    %rax,%rdx
mov    %rax,0x8(%rsp)
mov    %r12,%rdi
cmovb  %rbx,%rdi
mov    (%r12),%r13
mov    0x8(%r12),%rax
mov    %rax,0x30(%rsp)
lea    -0x1c(%r13),%rax
mov    %rax,0x28(%rsp)
mov    (%rbx),%rbp
mov    0x8(%rbx),%rax
mov    %rax,0x20(%rsp)
lea    -0x1c(%r13,%rbp,1),%rsi
lea    (%rcx,%rdx,1),%rax
mov    0x2df3(%rip),%rcx
mov    (%rcx),%rcx
cmp    %rcx,%rax
cmovb  %rax,%rcx
mov    %rcx,0x10(%rsp)
mov    %rsi,0x18(%rsp)
call   1050 <zrealloc@plt>
mov    %r13,%rdx
mov    (%rsp),%rcx
cmp    %rcx,0x8(%rsp)
cmovb  %rbp,%rdx
cmovb  %r13,%rbp
cmovb  %r12,%rbx
mov    %rax,%r12
jae    1256 <ziplistMerge+0x106>
lea    (%rax,%rbp,1),%rdi
add    $0xfffffffffffffffc,%rdi
lea    0x18(%rax),%rsi
add    $0xffffffffffffffe8,%rdx
call   1060 <memmove@plt>
add    $0xfffffffffffffffc,%rbp
mov    %r12,%rdi
mov    %rbx,%rsi
mov    %rbp,%rdx
call   1040 <memcpy@plt>
mov    %r14,%rbx
mov    %r15,%r14
jmp    1274 <ziplistMerge+0x124>
xor    %ebp,%ebp
jmp    12bb <ziplistMerge+0x16b>
lea    (%rax,%rdx,1),%rdi
add    $0xfffffffffffffffc,%rdi
add    $0x18,%rbx
add    $0xffffffffffffffe8,%rbp
mov    %rbx,%rsi
mov    %rbp,%rdx
call   1040 <memcpy@plt>
mov    %r15,%rbx
mov    0x18(%rsp),%rax
mov    %rax,(%r12)
mov    0x10(%rsp),%rax
mov    %rax,0x10(%r12)
mov    0x28(%rsp),%rax
add    0x20(%rsp),%rax
mov    %rax,0x8(%r12)
mov    %r12,%rsi
add    0x30(%rsp),%rsi
mov    %r12,%rdi
call   1030 <__ziplistCascadeUpdate@plt>
mov    %rax,%rbp
mov    (%r14),%rdi
call   1070 <zfree@plt>
movq   $0x0,(%r14)
mov    %rbp,(%rbx)
mov    %rbp,%rax
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@UINT16_MAX = global i64 0
define i8* @ziplistMerge(i8** %0, i8** %1) {
%3 = alloca i8*
%4 = alloca i8**
%5 = alloca i8**
%6 = alloca i64
%7 = alloca i64
%8 = alloca i64
%9 = alloca i64
%10 = alloca i32
%11 = alloca i8*
%12 = alloca i8*
%13 = alloca i64
%14 = alloca i64
%15 = alloca i64
%16 = alloca i64
%17 = alloca i64
%18 = alloca i64
store i8** %0, i8*** %4
store i8** %1, i8*** %5
%19 = load i8**, i8*** %4
%20 = icmp eq i8** %19, null
br i1 %20, label %32, label %21
21: ; preds = %2
%22 = load i8**, i8*** %4
%23 = load i8*, i8** %22
%24 = icmp eq i8* %23, null
br i1 %24, label %32, label %25
25: ; preds = %21
%26 = load i8**, i8*** %5
%27 = icmp eq i8** %26, null
br i1 %27, label %32, label %28
28: ; preds = %25
%29 = load i8**, i8*** %5
%30 = load i8*, i8** %29
%31 = icmp eq i8* %30, null
br i1 %31, label %32, label %33
32: ; preds = %28, %25, %21, %2
store i8* null, i8** %3
br label %173
33: ; preds = %28
%34 = load i8**, i8*** %4
%35 = load i8*, i8** %34
%36 = load i8**, i8*** %5
%37 = load i8*, i8** %36
%38 = icmp eq i8* %35, %37
br i1 %38, label %39, label %40
39: ; preds = %33
store i8* null, i8** %3
br label %173
40: ; preds = %33
%41 = load i8**, i8*** %4
%42 = load i8*, i8** %41
%43 = bitcast i8* %42 to i64*
%44 = load i64, i64* %43
store i64 %44, i64* %6
%45 = load i8**, i8*** %4
%46 = load i8*, i8** %45
%47 = getelementptr inbounds i8, i8* %46, i64 16
%48 = bitcast i8* %47 to i64*
%49 = load i64, i64* %48
store i64 %49, i64* %7
%50 = load i8**, i8*** %5
%51 = load i8*, i8** %50
%52 = bitcast i8* %51 to i64*
%53 = load i64, i64* %52
store i64 %53, i64* %8
%54 = load i8**, i8*** %5
%55 = load i8*, i8** %54
%56 = getelementptr inbounds i8, i8* %55, i64 16
%57 = bitcast i8* %56 to i64*
%58 = load i64, i64* %57
store i64 %58, i64* %9
%59 = load i64, i64* %7
%60 = load i64, i64* %9
%61 = icmp uge i64 %59, %60
br i1 %61, label %62, label %69
62: ; preds = %40
%63 = load i8**, i8*** %4
%64 = load i8*, i8** %63
store i8* %64, i8** %12
%65 = load i64, i64* %6
store i64 %65, i64* %13
%66 = load i8**, i8*** %5
%67 = load i8*, i8** %66
store i8* %67, i8** %11
%68 = load i64, i64* %8
store i64 %68, i64* %14
store i32 1, i32* %10
br label %76
69: ; preds = %40
%70 = load i8**, i8*** %5
%71 = load i8*, i8** %70
store i8* %71, i8** %12
%72 = load i64, i64* %8
store i64 %72, i64* %13
%73 = load i8**, i8*** %4
%74 = load i8*, i8** %73
store i8* %74, i8** %11
%75 = load i64, i64* %6
store i64 %75, i64* %14
store i32 0, i32* %10
br label %76
76: ; preds = %69, %62
%77 = load i64, i64* %6
%78 = load i64, i64* %8
%79 = add i64 %77, %78
%80 = sub i64 %79, 24
%81 = sub i64 %80, 4
store i64 %81, i64* %15
%82 = load i64, i64* %7
%83 = load i64, i64* %9
%84 = add i64 %82, %83
store i64 %84, i64* %16
%85 = load i64, i64* %16
%86 = load i64, i64* @UINT16_MAX
%87 = icmp ult i64 %85, %86
br i1 %87, label %88, label %90
88: ; preds = %76
%89 = load i64, i64* %16
br label %92
90: ; preds = %76
%91 = load i64, i64* @UINT16_MAX
br label %92
92: ; preds = %90, %88
%93 = phi i64 [ %89, %88 ], [ %91, %90 ]
store i64 %93, i64* %16
%94 = load i8**, i8*** %4
%95 = load i8*, i8** %94
%96 = getelementptr inbounds i8, i8* %95, i64 8
%97 = bitcast i8* %96 to i64*
%98 = load i64, i64* %97
store i64 %98, i64* %17
%99 = load i8**, i8*** %5
%100 = load i8*, i8** %99
%101 = getelementptr inbounds i8, i8* %100, i64 8
%102 = bitcast i8* %101 to i64*
%103 = load i64, i64* %102
store i64 %103, i64* %18
%104 = load i8*, i8** %12
%105 = load i64, i64* %15
%106 = call i8* @zrealloc(i8* %104, i64 %105)
store i8* %106, i8** %12
%107 = load i32, i32* %10
%108 = icmp ne i32 %107, 0
br i1 %108, label %109, label %119
109: ; preds = %92
%110 = load i8*, i8** %12
%111 = load i64, i64* %13
%112 = getelementptr inbounds i8, i8* %110, i64 %111
%113 = getelementptr inbounds i8, i8* %112, i64 -4
%114 = load i8*, i8** %11
%115 = getelementptr inbounds i8, i8* %114, i64 24
%116 = load i64, i64* %14
%117 = sub i64 %116, 24
%118 = call i32 @memcpy(i8* %113, i8* %115, i64 %117)
br label %134
119: ; preds = %92
%120 = load i8*, i8** %12
%121 = load i64, i64* %14
%122 = getelementptr inbounds i8, i8* %120, i64 %121
%123 = getelementptr inbounds i8, i8* %122, i64 -4
%124 = load i8*, i8** %12
%125 = getelementptr inbounds i8, i8* %124, i64 24
%126 = load i64, i64* %13
%127 = sub i64 %126, 24
%128 = call i32 @memmove(i8* %123, i8* %125, i64 %127)
%129 = load i8*, i8** %12
%130 = load i8*, i8** %11
%131 = load i64, i64* %14
%132 = sub i64 %131, 4
%133 = call i32 @memcpy(i8* %129, i8* %130, i64 %132)
br label %134
134: ; preds = %119, %109
%135 = load i64, i64* %15
%136 = load i8*, i8** %12
%137 = bitcast i8* %136 to i64*
store i64 %135, i64* %137
%138 = load i64, i64* %16
%139 = load i8*, i8** %12
%140 = getelementptr inbounds i8, i8* %139, i64 16
%141 = bitcast i8* %140 to i64*
store i64 %138, i64* %141
%142 = load i64, i64* %6
%143 = sub i64 %142, 4
%144 = load i64, i64* %18
%145 = sub i64 %144, 24
%146 = add i64 %143, %145
%147 = load i8*, i8** %12
%148 = getelementptr inbounds i8, i8* %147, i64 8
%149 = bitcast i8* %148 to i64*
store i64 %146, i64* %149
%150 = load i8*, i8** %12
%151 = load i8*, i8** %12
%152 = load i64, i64* %17
%153 = getelementptr inbounds i8, i8* %151, i64 %152
%154 = call i8* @__ziplistCascadeUpdate(i8* %150, i8* %153)
store i8* %154, i8** %12
%155 = load i32, i32* %10
%156 = icmp ne i32 %155, 0
br i1 %156, label %157, label %164
157: ; preds = %134
%158 = load i8**, i8*** %5
%159 = load i8*, i8** %158
%160 = call i32 @zfree(i8* %159)
%161 = load i8**, i8*** %5
store i8* null, i8** %161
%162 = load i8*, i8** %12
%163 = load i8**, i8*** %4
store i8* %162, i8** %163
br label %171
164: ; preds = %134
%165 = load i8**, i8*** %4
%166 = load i8*, i8** %165
%167 = call i32 @zfree(i8* %166)
%168 = load i8**, i8*** %4
store i8* null, i8** %168
%169 = load i8*, i8** %12
%170 = load i8**, i8*** %5
store i8* %169, i8** %170
br label %171
171: ; preds = %164, %157
%172 = load i8*, i8** %12
store i8* %172, i8** %3
br label %173
173: ; preds = %171, %39, %32
%174 = load i8*, i8** %3
ret i8* %174
}

LLVM IR (-O2):
@UINT16_MAX = global i64 0
define i8* @ziplistMerge(i8** %0, i8** %1) {
%3 = icmp eq i8** %0, null
br i1 %3, label %70, label %4
4: ; preds = %2
%5 = load i8*, i8** %0
%6 = icmp eq i8* %5, null
%7 = icmp eq i8** %1, null
%8 = or i1 %7, %6
br i1 %8, label %70, label %9
9: ; preds = %4
%10 = load i8*, i8** %1
%11 = icmp eq i8* %10, null
%12 = icmp eq i8* %5, %10
%13 = select i1 %11, i1 true, i1 %12
br i1 %13, label %70, label %14
14: ; preds = %9
%15 = bitcast i8* %5 to i64*
%16 = load i64, i64* %15
%17 = getelementptr inbounds i8, i8* %5, i64 16
%18 = bitcast i8* %17 to i64*
%19 = load i64, i64* %18
%20 = bitcast i8* %10 to i64*
%21 = load i64, i64* %20
%22 = getelementptr inbounds i8, i8* %10, i64 16
%23 = bitcast i8* %22 to i64*
%24 = load i64, i64* %23
%25 = icmp ult i64 %19, %24
%26 = select i1 %25, i8* %10, i8* %5
%27 = select i1 %25, i64 %21, i64 %16
%28 = select i1 %25, i64 %16, i64 %21
%29 = select i1 %25, i8* %5, i8* %10
%30 = add i64 %16, -28
%31 = add i64 %30, %21
%32 = add i64 %24, %19
%33 = load i64, i64* @UINT16_MAX
%34 = icmp ult i64 %32, %33
%35 = select i1 %34, i64 %32, i64 %33
%36 = getelementptr inbounds i8, i8* %5, i64 8
%37 = bitcast i8* %36 to i64*
%38 = load i64, i64* %37
%39 = getelementptr inbounds i8, i8* %10, i64 8
%40 = bitcast i8* %39 to i64*
%41 = load i64, i64* %40
%42 = tail call i8* @zrealloc(i8* %26, i64 %31)
br i1 %25, label %49, label %43
43: ; preds = %14
%44 = getelementptr inbounds i8, i8* %42, i64 %27
%45 = getelementptr inbounds i8, i8* %44, i64 -4
%46 = getelementptr inbounds i8, i8* %29, i64 24
%47 = add i64 %28, -24
%48 = tail call i32 @memcpy(i8* %45, i8* %46, i64 %47)
br label %57
49: ; preds = %14
%50 = getelementptr inbounds i8, i8* %42, i64 %28
%51 = getelementptr inbounds i8, i8* %50, i64 -4
%52 = getelementptr inbounds i8, i8* %42, i64 24
%53 = add i64 %27, -24
%54 = tail call i32 @memmove(i8* %51, i8* %52, i64 %53)
%55 = add i64 %28, -4
%56 = tail call i32 @memcpy(i8* %42, i8* %29, i64 %55)
br label %57
57: ; preds = %49, %43
%58 = phi i8** [ %1, %49 ], [ %0, %43 ]
%59 = phi i8** [ %0, %49 ], [ %1, %43 ]
%60 = bitcast i8* %42 to i64*
store i64 %31, i64* %60
%61 = getelementptr inbounds i8, i8* %42, i64 16
%62 = bitcast i8* %61 to i64*
store i64 %35, i64* %62
%63 = add i64 %30, %41
%64 = getelementptr inbounds i8, i8* %42, i64 8
%65 = bitcast i8* %64 to i64*
store i64 %63, i64* %65
%66 = getelementptr inbounds i8, i8* %42, i64 %38
%67 = tail call i8* @__ziplistCascadeUpdate(i8* %42, i8* %66)
%68 = load i8*, i8** %59
%69 = tail call i32 @zfree(i8* %68)
store i8* null, i8** %59
store i8* %67, i8** %58
br label %70
70: ; preds = %57, %2, %4, %9
%71 = phi i8* [ null, %9 ], [ null, %4 ], [ null, %2 ], [ %67, %57 ]
ret i8* %71
}