#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 long Window;
typedef int /*<<< orphan*/ Display;

/* Variables and functions */
int /*<<< orphan*/ XA_CARDINAL;
long *calloc(unsigned long, int);
int /*<<< orphan*/ free(long *);
long *get_client_list(int /*<<< orphan*/ *, unsigned long *, unsigned long *);
scalar_t__ get_property(int /*<<< orphan*/ *, long, int /*<<< orphan*/, char *,
                        int /*<<< orphan*/ *, int /*<<< orphan*/ *);
int /*<<< orphan*/ memcpy(long *, long *, int);
int /*<<< orphan*/ perror(char *);
Window *get_interesting_windows(Display *disp, unsigned long *num_windows) {
  Window *client_list, *ret, *tmp;
  unsigned long client_list_size, client_list_items, i;
  long *desktop;
  unsigned long num_needed = 0;
  if ((client_list = get_client_list(disp, &client_list_size,
                                     &client_list_items)) == NULL) {
    return NULL;
  }
  for (i = 0; i < client_list_items; i++) {
    if ((desktop = (long *)get_property(disp, client_list[i], XA_CARDINAL,
                                        "_NET_WM_DESKTOP", NULL, NULL)) ==
        NULL) {
      desktop = (long *)get_property(disp, client_list[i], XA_CARDINAL,
                                     "_WIN_WORKSPACE", NULL, NULL);
    }
    if (desktop && *desktop >= 0 && *desktop < 1000000) {
      num_needed++;
      free(desktop);
    }
  }
  ret = calloc(num_needed, sizeof(Window));
  if (!ret) {
    perror("get_interesting_window allocations");
    free(client_list);
    return NULL;
  }
  tmp = ret;
  for (i = 0; i < client_list_items; i++) {
    if ((desktop = (long *)get_property(disp, client_list[i], XA_CARDINAL,
                                        "_NET_WM_DESKTOP", NULL, NULL)) ==
        NULL) {
      desktop = (long *)get_property(disp, client_list[i], XA_CARDINAL,
                                     "_WIN_WORKSPACE", NULL, NULL);
    }
    if (desktop && *desktop >= 0 && *desktop < 1000000) {
      memcpy(tmp, &client_list[i], sizeof(Window));
      tmp++;
      free(desktop);
    }
  }
  free(client_list);
  *num_windows = num_needed;
  return ret;
}


x86 assembly (clang, -O0):
<get_interesting_windows>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
movq   $0x0,-0x58(%rbp)
mov    -0x10(%rbp),%rdi
lea    -0x38(%rbp),%rsi
lea    -0x40(%rbp),%rdx
call   1050 <get_client_list@plt>
mov    %rax,-0x20(%rbp)
cmp    $0x0,%rax
jne    11a4 <get_interesting_windows+0x44>
movq   $0x0,-0x8(%rbp)
jmp    13d2 <get_interesting_windows+0x272>
movq   $0x0,-0x48(%rbp)
mov    -0x48(%rbp),%rax
cmp    -0x40(%rbp),%rax
jae    127b <get_interesting_windows+0x11b>
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%rax
mov    -0x48(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
mov    0x2e0f(%rip),%rax
mov    (%rax),%edx
lea    0xe26(%rip),%rcx
xor    %eax,%eax
mov    %eax,%r9d
mov    %r9,%r8
call   1040 <get_property@plt>
mov    %rax,-0x50(%rbp)
cmp    $0x0,%rax
jne    1226 <get_interesting_windows+0xc6>
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%rax
mov    -0x48(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
mov    0x2dd4(%rip),%rax
mov    (%rax),%edx
lea    0xdfb(%rip),%rcx
xor    %eax,%eax
mov    %eax,%r9d
mov    %r9,%r8
call   1040 <get_property@plt>
mov    %rax,-0x50(%rbp)
cmpq   $0x0,-0x50(%rbp)
je     1265 <get_interesting_windows+0x105>
mov    -0x50(%rbp),%rax
cmpq   $0x0,(%rax)
jl     1265 <get_interesting_windows+0x105>
mov    -0x50(%rbp),%rax
cmpq   $0xf4240,(%rax)
jge    1265 <get_interesting_windows+0x105>
mov    -0x58(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x58(%rbp)
mov    -0x50(%rbp),%rdi
call   1030 <free@plt>
jmp    126a <get_interesting_windows+0x10a>
mov    -0x48(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x48(%rbp)
jmp    11ac <get_interesting_windows+0x4c>
mov    -0x58(%rbp),%rdi
mov    $0x8,%esi
call   1060 <calloc@plt>
mov    %rax,-0x28(%rbp)
cmpq   $0x0,-0x28(%rbp)
jne    12ba <get_interesting_windows+0x15a>
lea    0xd80(%rip),%rdi
call   1080 <perror@plt>
mov    -0x20(%rbp),%rdi
call   1030 <free@plt>
movq   $0x0,-0x8(%rbp)
jmp    13d2 <get_interesting_windows+0x272>
mov    -0x28(%rbp),%rax
mov    %rax,-0x30(%rbp)
movq   $0x0,-0x48(%rbp)
mov    -0x48(%rbp),%rax
cmp    -0x40(%rbp),%rax
jae    13b6 <get_interesting_windows+0x256>
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%rax
mov    -0x48(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
mov    0x2cf1(%rip),%rax
mov    (%rax),%edx
lea    0xd08(%rip),%rcx
xor    %eax,%eax
mov    %eax,%r9d
mov    %r9,%r8
call   1040 <get_property@plt>
mov    %rax,-0x50(%rbp)
cmp    $0x0,%rax
jne    1344 <get_interesting_windows+0x1e4>
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%rax
mov    -0x48(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
mov    0x2cb6(%rip),%rax
mov    (%rax),%edx
lea    0xcdd(%rip),%rcx
xor    %eax,%eax
mov    %eax,%r9d
mov    %r9,%r8
call   1040 <get_property@plt>
mov    %rax,-0x50(%rbp)
cmpq   $0x0,-0x50(%rbp)
je     13a0 <get_interesting_windows+0x240>
mov    -0x50(%rbp),%rax
cmpq   $0x0,(%rax)
jl     13a0 <get_interesting_windows+0x240>
mov    -0x50(%rbp),%rax
cmpq   $0xf4240,(%rax)
jge    13a0 <get_interesting_windows+0x240>
mov    -0x30(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    -0x48(%rbp),%rax
shl    $0x3,%rax
add    %rax,%rsi
mov    $0x8,%edx
call   1070 <memcpy@plt>
mov    -0x30(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x30(%rbp)
mov    -0x50(%rbp),%rdi
call   1030 <free@plt>
jmp    13a5 <get_interesting_windows+0x245>
mov    -0x48(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x48(%rbp)
jmp    12ca <get_interesting_windows+0x16a>
mov    -0x20(%rbp),%rdi
call   1030 <free@plt>
mov    -0x58(%rbp),%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x28(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_interesting_windows>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %rsi,%rbp
mov    %rdi,%rbx
lea    0x20(%rsp),%rsi
lea    0x8(%rsp),%rdx
call   1050 <get_client_list@plt>
test   %rax,%rax
je     1221 <get_interesting_windows+0xc1>
mov    %rax,%r13
mov    %rbp,0x18(%rsp)
cmpq   $0x0,0x8(%rsp)
je     1228 <get_interesting_windows+0xc8>
xor    %eax,%eax
mov    %rax,(%rsp)
mov    0x2e33(%rip),%r12
lea    0xe4c(%rip),%r15
lea    0xe55(%rip),%r14
xor    %ebp,%ebp
jmp    11cb <get_interesting_windows+0x6b>
nop
add    $0x1,%rbp
cmp    0x8(%rsp),%rbp
jae    122e <get_interesting_windows+0xce>
mov    0x0(%r13,%rbp,8),%rsi
mov    (%r12),%edx
mov    %rbx,%rdi
mov    %r15,%rcx
xor    %r8d,%r8d
xor    %r9d,%r9d
call   1040 <get_property@plt>
test   %rax,%rax
jne    1209 <get_interesting_windows+0xa9>
mov    0x0(%r13,%rbp,8),%rsi
mov    (%r12),%edx
mov    %rbx,%rdi
mov    %r14,%rcx
xor    %r8d,%r8d
xor    %r9d,%r9d
call   1040 <get_property@plt>
test   %rax,%rax
je     11c0 <get_interesting_windows+0x60>
cmpq   $0xf423f,(%rax)
ja     11c0 <get_interesting_windows+0x60>
addq   $0x1,(%rsp)
mov    %rax,%rdi
call   1030 <free@plt>
jmp    11c0 <get_interesting_windows+0x60>
xor    %eax,%eax
jmp    1315 <get_interesting_windows+0x1b5>
xor    %eax,%eax
mov    %rax,(%rsp)
mov    (%rsp),%rdi
mov    $0x8,%esi
call   1060 <calloc@plt>
test   %rax,%rax
je     1324 <get_interesting_windows+0x1c4>
mov    %rax,0x10(%rsp)
cmpq   $0x0,0x8(%rsp)
je     12fc <get_interesting_windows+0x19c>
xor    %r12d,%r12d
mov    %r13,%r15
mov    0x10(%rsp),%r14
jmp    127f <get_interesting_windows+0x11f>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
add    $0x1,%r12
add    $0x8,%r15
cmp    0x8(%rsp),%r12
jae    12fc <get_interesting_windows+0x19c>
mov    (%r15),%rsi
mov    0x2d57(%rip),%rax
mov    (%rax),%edx
mov    %rbx,%rdi
lea    0xd6b(%rip),%rcx
xor    %r8d,%r8d
xor    %r9d,%r9d
call   1040 <get_property@plt>
mov    %rax,%rbp
test   %rax,%rax
jne    12d1 <get_interesting_windows+0x171>
mov    (%r15),%rsi
mov    0x2d2e(%rip),%rax
mov    (%rax),%edx
mov    %rbx,%rdi
lea    0xd52(%rip),%rcx
xor    %r8d,%r8d
xor    %r9d,%r9d
call   1040 <get_property@plt>
mov    %rax,%rbp
test   %rax,%rax
je     1270 <get_interesting_windows+0x110>
cmpq   $0xf423f,0x0(%rbp)
ja     1270 <get_interesting_windows+0x110>
mov    %r14,%rdi
mov    %r15,%rsi
mov    $0x8,%edx
call   1070 <memcpy@plt>
add    $0x8,%r14
mov    %rbp,%rdi
call   1030 <free@plt>
jmp    1270 <get_interesting_windows+0x110>
mov    %r13,%rdi
call   1030 <free@plt>
mov    0x18(%rsp),%rax
mov    (%rsp),%rcx
mov    %rcx,(%rax)
mov    0x10(%rsp),%rax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xcf4(%rip),%rdi
call   1080 <perror@plt>
mov    %r13,%rdi
call   1030 <free@plt>
xor    %eax,%eax
jmp    1315 <get_interesting_windows+0x1b5>

LLVM IR (-O0):
@XA_CARDINAL = global i32 0
@.str = [16 x i8] c"_NET_WM_DESKTOP\00"
@.str.1 = [15 x i8] c"_WIN_WORKSPACE\00"
@.str.2 = [35 x i8] c"get_interesting_window allocations\00"
define i64* @get_interesting_windows(i32* %0, i64* %1) {
%3 = alloca i64*
%4 = alloca i32*
%5 = alloca i64*
%6 = alloca i64*
%7 = alloca i64*
%8 = alloca i64*
%9 = alloca i64
%10 = alloca i64
%11 = alloca i64
%12 = alloca i64*
%13 = alloca i64
store i32* %0, i32** %4
store i64* %1, i64** %5
store i64 0, i64* %13
%14 = load i32*, i32** %4
%15 = call i64* @get_client_list(i32* %14, i64* %9, i64* %10)
store i64* %15, i64** %6
%16 = icmp eq i64* %15, null
br i1 %16, label %17, label %18
17: ; preds = %2
store i64* null, i64** %3
br label %127
18: ; preds = %2
store i64 0, i64* %11
br label %19
19: ; preds = %59, %18
%20 = load i64, i64* %11
%21 = load i64, i64* %10
%22 = icmp ult i64 %20, %21
br i1 %22, label %23, label %62
23: ; preds = %19
%24 = load i32*, i32** %4
%25 = load i64*, i64** %6
%26 = load i64, i64* %11
%27 = getelementptr inbounds i64, i64* %25, i64 %26
%28 = load i64, i64* %27
%29 = load i32, i32* @XA_CARDINAL
%30 = call i64 @get_property(i32* %24, i64 %28, i32 %29, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i32* null, i32* null)
%31 = inttoptr i64 %30 to i64*
store i64* %31, i64** %12
%32 = icmp eq i64* %31, null
br i1 %32, label %33, label %42
33: ; preds = %23
%34 = load i32*, i32** %4
%35 = load i64*, i64** %6
%36 = load i64, i64* %11
%37 = getelementptr inbounds i64, i64* %35, i64 %36
%38 = load i64, i64* %37
%39 = load i32, i32* @XA_CARDINAL
%40 = call i64 @get_property(i32* %34, i64 %38, i32 %39, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i32* null, i32* null)
%41 = inttoptr i64 %40 to i64*
store i64* %41, i64** %12
br label %42
42: ; preds = %33, %23
%43 = load i64*, i64** %12
%44 = icmp ne i64* %43, null
br i1 %44, label %45, label %58
45: ; preds = %42
%46 = load i64*, i64** %12
%47 = load i64, i64* %46
%48 = icmp sge i64 %47, 0
br i1 %48, label %49, label %58
49: ; preds = %45
%50 = load i64*, i64** %12
%51 = load i64, i64* %50
%52 = icmp slt i64 %51, 1000000
br i1 %52, label %53, label %58
53: ; preds = %49
%54 = load i64, i64* %13
%55 = add i64 %54, 1
store i64 %55, i64* %13
%56 = load i64*, i64** %12
%57 = call i32 @free(i64* %56)
br label %58
58: ; preds = %53, %49, %45, %42
br label %59
59: ; preds = %58
%60 = load i64, i64* %11
%61 = add i64 %60, 1
store i64 %61, i64* %11
br label %19
62: ; preds = %19
%63 = load i64, i64* %13
%64 = call i64* @calloc(i64 %63, i32 8)
store i64* %64, i64** %7
%65 = load i64*, i64** %7
%66 = icmp ne i64* %65, null
br i1 %66, label %71, label %67
67: ; preds = %62
%68 = call i32 @perror(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.2, i64 0, i64 0))
%69 = load i64*, i64** %6
%70 = call i32 @free(i64* %69)
store i64* null, i64** %3
br label %127
71: ; preds = %62
%72 = load i64*, i64** %7
store i64* %72, i64** %8
store i64 0, i64* %11
br label %73
73: ; preds = %118, %71
%74 = load i64, i64* %11
%75 = load i64, i64* %10
%76 = icmp ult i64 %74, %75
br i1 %76, label %77, label %121
77: ; preds = %73
%78 = load i32*, i32** %4
%79 = load i64*, i64** %6
%80 = load i64, i64* %11
%81 = getelementptr inbounds i64, i64* %79, i64 %80
%82 = load i64, i64* %81
%83 = load i32, i32* @XA_CARDINAL
%84 = call i64 @get_property(i32* %78, i64 %82, i32 %83, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i32* null, i32* null)
%85 = inttoptr i64 %84 to i64*
store i64* %85, i64** %12
%86 = icmp eq i64* %85, null
br i1 %86, label %87, label %96
87: ; preds = %77
%88 = load i32*, i32** %4
%89 = load i64*, i64** %6
%90 = load i64, i64* %11
%91 = getelementptr inbounds i64, i64* %89, i64 %90
%92 = load i64, i64* %91
%93 = load i32, i32* @XA_CARDINAL
%94 = call i64 @get_property(i32* %88, i64 %92, i32 %93, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i32* null, i32* null)
%95 = inttoptr i64 %94 to i64*
store i64* %95, i64** %12
br label %96
96: ; preds = %87, %77
%97 = load i64*, i64** %12
%98 = icmp ne i64* %97, null
br i1 %98, label %99, label %117
99: ; preds = %96
%100 = load i64*, i64** %12
%101 = load i64, i64* %100
%102 = icmp sge i64 %101, 0
br i1 %102, label %103, label %117
103: ; preds = %99
%104 = load i64*, i64** %12
%105 = load i64, i64* %104
%106 = icmp slt i64 %105, 1000000
br i1 %106, label %107, label %117
107: ; preds = %103
%108 = load i64*, i64** %8
%109 = load i64*, i64** %6
%110 = load i64, i64* %11
%111 = getelementptr inbounds i64, i64* %109, i64 %110
%112 = call i32 @memcpy(i64* %108, i64* %111, i32 8)
%113 = load i64*, i64** %8
%114 = getelementptr inbounds i64, i64* %113, i32 1
store i64* %114, i64** %8
%115 = load i64*, i64** %12
%116 = call i32 @free(i64* %115)
br label %117
117: ; preds = %107, %103, %99, %96
br label %118
118: ; preds = %117
%119 = load i64, i64* %11
%120 = add i64 %119, 1
store i64 %120, i64* %11
br label %73
121: ; preds = %73
%122 = load i64*, i64** %6
%123 = call i32 @free(i64* %122)
%124 = load i64, i64* %13
%125 = load i64*, i64** %5
store i64 %124, i64* %125
%126 = load i64*, i64** %7
store i64* %126, i64** %3
br label %127
127: ; preds = %121, %67, %17
%128 = load i64*, i64** %3
ret i64* %128
}

LLVM IR (-O2):
@XA_CARDINAL = global i32 0
@.str = [16 x i8] c"_NET_WM_DESKTOP\00"
@.str.1 = [15 x i8] c"_WIN_WORKSPACE\00"
@.str.2 = [35 x i8] c"get_interesting_window allocations\00"
define i64* @get_interesting_windows(i32* %0, i64* nocapture writeonly %1) {
%3 = alloca i64
%4 = alloca i64
%5 = bitcast i64* %3 to i8*
%6 = bitcast i64* %4 to i8*
%7 = call i64* @get_client_list(i32* %0, i64* %3, i64* %4)
%8 = icmp eq i64* %7, null
br i1 %8, label %77, label %9
9: ; preds = %2
%10 = load i64, i64* %4
%11 = icmp eq i64 %10, 0
br i1 %11, label %38, label %12
12: ; preds = %9, %33
%13 = phi i64 [ %34, %33 ], [ 0, %9 ]
%14 = phi i64 [ %35, %33 ], [ 0, %9 ]
%15 = getelementptr inbounds i64, i64* %7, i64 %14
%16 = load i64, i64* %15
%17 = load i32, i32* @XA_CARDINAL
%18 = call i64 @get_property(i32* %0, i64 %16, i32 %17, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i32* null, i32* null)
%19 = icmp eq i64 %18, 0
br i1 %19, label %20, label %25
20: ; preds = %12
%21 = load i64, i64* %15
%22 = load i32, i32* @XA_CARDINAL
%23 = call i64 @get_property(i32* %0, i64 %21, i32 %22, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i32* null, i32* null)
%24 = icmp eq i64 %23, 0
br i1 %24, label %33, label %25
25: ; preds = %12, %20
%26 = phi i64 [ %23, %20 ], [ %18, %12 ]
%27 = inttoptr i64 %26 to i64*
%28 = load i64, i64* %27
%29 = icmp ult i64 %28, 1000000
br i1 %29, label %30, label %33
30: ; preds = %25
%31 = add i64 %13, 1
%32 = call i32 @free(i64* %27)
br label %33
33: ; preds = %20, %25, %30
%34 = phi i64 [ %31, %30 ], [ %13, %25 ], [ %13, %20 ]
%35 = add nuw i64 %14, 1
%36 = load i64, i64* %4
%37 = icmp ult i64 %35, %36
br i1 %37, label %12, label %38
38: ; preds = %33, %9
%39 = phi i64 [ 0, %9 ], [ %34, %33 ]
%40 = call i64* @calloc(i64 %39, i32 8)
%41 = icmp eq i64* %40, null
br i1 %41, label %45, label %42
42: ; preds = %38
%43 = load i64, i64* %4
%44 = icmp eq i64 %43, 0
br i1 %44, label %75, label %48
45: ; preds = %38
%46 = call i32 @perror(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.2, i64 0, i64 0))
%47 = call i32 @free(i64* %7)
br label %77
48: ; preds = %42, %70
%49 = phi i64 [ %72, %70 ], [ 0, %42 ]
%50 = phi i64* [ %71, %70 ], [ %40, %42 ]
%51 = getelementptr inbounds i64, i64* %7, i64 %49
%52 = load i64, i64* %51
%53 = load i32, i32* @XA_CARDINAL
%54 = call i64 @get_property(i32* %0, i64 %52, i32 %53, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i32* null, i32* null)
%55 = icmp eq i64 %54, 0
br i1 %55, label %56, label %61
56: ; preds = %48
%57 = load i64, i64* %51
%58 = load i32, i32* @XA_CARDINAL
%59 = call i64 @get_property(i32* %0, i64 %57, i32 %58, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i32* null, i32* null)
%60 = icmp eq i64 %59, 0
br i1 %60, label %70, label %61
61: ; preds = %48, %56
%62 = phi i64 [ %59, %56 ], [ %54, %48 ]
%63 = inttoptr i64 %62 to i64*
%64 = load i64, i64* %63
%65 = icmp ult i64 %64, 1000000
br i1 %65, label %66, label %70
66: ; preds = %61
%67 = call i32 @memcpy(i64* %50, i64* %51, i32 8)
%68 = getelementptr inbounds i64, i64* %50, i64 1
%69 = call i32 @free(i64* %63)
br label %70
70: ; preds = %56, %61, %66
%71 = phi i64* [ %68, %66 ], [ %50, %61 ], [ %50, %56 ]
%72 = add nuw i64 %49, 1
%73 = load i64, i64* %4
%74 = icmp ult i64 %72, %73
br i1 %74, label %48, label %75
75: ; preds = %70, %42
%76 = call i32 @free(i64* %7)
store i64 %39, i64* %1
br label %77
77: ; preds = %2, %75, %45
%78 = phi i64* [ %40, %75 ], [ null, %45 ], [ null, %2 ]
ret i64* %78
}