LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonglfw/src/window.c
// Function: SetWindowOpacity
static int SetWindowOpacity(lua_State *L)
    {
    win_t *win = checkwindow(L, 1);
    float opacity = luaL_checknumber(L, 2);
    CheckPfn(L, SetWindowOpacity, 3, 3, 0);
    glfw.SetWindowOpacity(win->window, opacity);
    return 0;
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x1, %esi
callq 0x5570
movq %rax, %r14
movq %rbx, %rdi
movl $0x2, %esi
callq 0x5230
movq 0x9e06(%rip), %rax      # 0x1bfe8
movq 0x310(%rax), %rax
testq %rax, %rax
je 0x12202
cvtsd2ss %xmm0, %xmm0
movq 0x28(%r14), %rdi
callq *%rax
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movl $0x3, %edi
movl $0x3, %esi
xorl %edx, %edx
callq 0x56a0
testl %eax, %eax
je 0x1222f
leaq 0x47b6(%rip), %rsi      # 0x169d4
movq %rbx, %rdi
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x55b0
leaq 0x4767(%rip), %rsi      # 0x1699d
movq %rbx, %rdi
movl $0x3, %edx
movl $0x3, %ecx
xorl %r8d, %r8d
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x55b0
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonglfw/src/window.c
// Function: RequestWindowAttention
static int RequestWindowAttention(lua_State *L)
    {
    win_t *win = checkwindow(L, 1);
    CheckPfn(L, RequestWindowAttention, 3, 3, 0);
    glfw.RequestWindowAttention(win->window);
    return 0;
    }

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl $0x1, %esi
callq 0x5570
movq 0x9d7f(%rip), %rcx      # 0x1bfe8
movq 0x318(%rcx), %rcx
testq %rcx, %rcx
je 0x1227f
movq 0x28(%rax), %rdi
callq *%rcx
xorl %eax, %eax
popq %rbx
retq
movl $0x3, %edi
movl $0x3, %esi
xorl %edx, %edx
callq 0x56a0
testl %eax, %eax
je 0x122a6
leaq 0x479d(%rip), %rsi      # 0x16a38
movq %rbx, %rdi
xorl %eax, %eax
popq %rbx
jmp 0x55b0
leaq 0x474e(%rip), %rsi      # 0x169fb
movq %rbx, %rdi
movl $0x3, %edx
movl $0x3, %ecx
xorl %r8d, %r8d
xorl %eax, %eax
popq %rbx
jmp 0x55b0
nopw %cs:(%rax,%rax)
nop
// File: /workspace/github_c_makefile_star2_O3/cirocosta[P]stress/src/print.c
// Function: thread_handler
void*
thread_handler(void* arg)
{
	thread_arg_t* targ = (thread_arg_t*)arg;
	char file_buffer[CHUNK_SIZE] = { 0 };
	unsigned long writes = targ->count * _STRESS_MB(1) / CHUNK_SIZE;

	memset(file_buffer, 65, CHUNK_SIZE);
	while (writes-- > 0) {
		_STRESS_MUST(write(targ->fd, file_buffer, CHUNK_SIZE) != -1,
		             "Couldn't properly write chunk to fd %d",
		             targ->fd);
	}

	return NULL;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x1008, %rsp           # imm = 0x1008
movq %rdi, %rbx
movslq (%rdi), %r12
notq %r12
shlq $0x8, %r12
movq %rsp, %r14
movl $0x1000, %edx           # imm = 0x1000
movq %r14, %rdi
movl $0x41, %esi
callq 0x10b0
addq $0x4, %rbx
movabsq $-0xfffffffffff01, %r15 # imm = 0xFFF00000000000FF
orq %r12, %r15
incq %r15
je 0x1b21
movl (%rbx), %edi
movl $0x1000, %edx           # imm = 0x1000
movq %r14, %rsi
callq 0x1060
cmpq $-0x1, %rax
jne 0x1aff
movq %rbx, %rdi
callq 0x13ac
xorl %eax, %eax
addq $0x1008, %rsp           # imm = 0x1008
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/cirocosta[P]stress/src/print.c
// Function: main
int
main(int argc, char** argv)
{
	stress_args_t args = { 0 };
	thread_arg_t stdout_arg = { .count = 0, .fd = STDOUT_FILENO };
	thread_arg_t stderr_arg = { .count = 0, .fd = STDERR_FILENO };
	pthread_t threads[2];

	setbuf(stdout, NULL);
	setbuf(stderr, NULL);

	stress_parse_args(argc, argv, &args);

	stdout_arg.count = args.n;
	stderr_arg.count = args.n;

	_STRESS_MUST(
	  (!pthread_create(&threads[0], NULL, &thread_handler, &stdout_arg)),
	  "Unexpected error creating stdout thread");
	_STRESS_MUST(
	  (!pthread_create(&threads[1], NULL, &thread_handler, &stderr_arg)),
	  "Unexpected error creating stderr thread");

	_STRESS_MUST((!pthread_join(threads[0], NULL)),
	             "Unexpected error waiting for stdout thread");

	_STRESS_MUST((!pthread_join(threads[1], NULL)),
	             "Unexpected error waiting for stderr thread");

	stress_wait_until_signalized();

	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x2038, %rsp           # imm = 0x2038
movq %rsi, %r14
movl %edi, %ebp
leaq 0x30(%rsp), %rbx
movl $0x2008, %edx           # imm = 0x2008
movq %rbx, %rdi
xorl %esi, %esi
callq 0x10b0
movabsq $0x100000000, %rax      # imm = 0x100000000
leaq 0x28(%rsp), %r15
movq %rax, (%r15)
movabsq $0x200000000, %rax      # imm = 0x200000000
movq %rax, 0x8(%rsp)
movq 0x2448(%rip), %rax      # 0x3fc8
movq (%rax), %rdi
xorl %esi, %esi
callq 0x1090
movq 0x2467(%rip), %rax      # 0x3ff8
movq (%rax), %rdi
xorl %esi, %esi
callq 0x1090
movl %ebp, %edi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x1889
movl (%rbx), %eax
movl %eax, (%r15)
movl %eax, 0x8(%rsp)
leaq -0xfa(%rip), %rdx       # 0x1abe
leaq 0x10(%rsp), %rdi
xorl %esi, %esi
movq %r15, %rcx
callq 0x10f0
testl %eax, %eax
jne 0x1c1c
leaq 0x18(%rsp), %rdi
leaq -0x119(%rip), %rdx      # 0x1abe
leaq 0x8(%rsp), %rcx
xorl %esi, %esi
callq 0x10f0
testl %eax, %eax
jne 0x1c21
movq 0x10(%rsp), %rdi
xorl %esi, %esi
callq 0x1140
testl %eax, %eax
jne 0x1c26
movq 0x18(%rsp), %rdi
xorl %esi, %esi
callq 0x1140
testl %eax, %eax
jne 0x1c2b
callq 0x19b2
xorl %eax, %eax
addq $0x2038, %rsp           # imm = 0x2038
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
callq 0x1465
callq 0x151b
callq 0x15d1
callq 0x1687
// File: /workspace/github_c_makefile_star2_O3/esheldon[P]xshear/src/cosmo.c
// Function: cosmo_print
void cosmo_print(Cosmo* c) {
    wlog("    H0: %lf\n", c->H0);
    wlog("    DH: %lf\n", c->DH);
    wlog("    flat: %d\n", c->flat);
    wlog("    omega_m: %lf\n", c->omega_m);
    wlog("    omega_l: %lf\n", c->omega_l);
    wlog("    omega_k: %lf\n", c->omega_k);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0xbc92(%rip), %r14      # 0xdff8
movq (%r14), %rdi
movsd 0x8(%rbx), %xmm0
leaq 0x6e1b(%rip), %rsi      # 0x9190
movb $0x1, %al
callq 0x21a0
movq (%r14), %rdi
movsd 0x10(%rbx), %xmm0
leaq 0x6e12(%rip), %rsi      # 0x919d
movb $0x1, %al
callq 0x21a0
movq (%r14), %rdi
movl (%rbx), %edx
leaq 0x6e0c(%rip), %rsi      # 0x91aa
xorl %eax, %eax
callq 0x21a0
movq (%r14), %rdi
movsd 0x18(%rbx), %xmm0
leaq 0x6e04(%rip), %rsi      # 0x91b8
movb $0x1, %al
callq 0x21a0
movq (%r14), %rdi
movsd 0x20(%rbx), %xmm0
leaq 0x6e00(%rip), %rsi      # 0x91ca
movb $0x1, %al
callq 0x21a0
movq (%r14), %rdi
movsd 0x28(%rbx), %xmm0
leaq 0x6dfc(%rip), %rsi      # 0x91dc
movb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x21a0
// File: /workspace/github_c_makefile_star2_O3/esheldon[P]xshear/src/lens.c
// Function: lcat_print_one
void lcat_print_one(LensCatalog* lcat, size_t el) {
    Lens* lens = &lcat->data[el];
    wlog("element %ld of lcat:\n", el);
    wlog("    ra:        %lf\n", lens->ra);
    wlog("    dec:       %lf\n", lens->dec);
    wlog("    z:         %lf\n", lens->z);
    wlog("    da:        %lf\n", lens->da);
    wlog("    maskflags: %ld\n", lens->maskflags);
    wlog("    sinlam:    %lf\n", lens->sinlam);
    wlog("    coslam:    %lf\n", lens->coslam);
    wlog("    sineta:    %lf\n", lens->sineta);
    wlog("    coseta:    %lf\n", lens->coseta);
    wlog("    n(hpix):   %lu", lens->hpix->size);
    wlog(" hpix[0]: %ld hpix[%lu]: %ld\n", 
            lens->hpix->data[0],
            lens->hpix->size-1,
            lens->hpix->data[lens->hpix->size-1]);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rdx
movq 0x8(%rdi), %rbx
movq %rsi, %r14
shlq $0x7, %r14
movq 0xb8c7(%rip), %r15      # 0xdff8
movq (%r15), %rdi
leaq 0x6bef(%rip), %rsi      # 0x932a
xorl %eax, %eax
callq 0x21a0
movq (%r15), %rdi
movsd 0x8(%rbx,%r14), %xmm0
leaq 0x6bed(%rip), %rsi      # 0x9340
movb $0x1, %al
callq 0x21a0
movq (%r15), %rdi
movsd 0x10(%rbx,%r14), %xmm0
leaq 0x6be9(%rip), %rsi      # 0x9354
movb $0x1, %al
callq 0x21a0
movq (%r15), %rdi
movsd 0x18(%rbx,%r14), %xmm0
leaq 0x6be5(%rip), %rsi      # 0x9368
movb $0x1, %al
callq 0x21a0
movq (%r15), %rdi
movsd 0x20(%rbx,%r14), %xmm0
leaq 0x6be1(%rip), %rsi      # 0x937c
movb $0x1, %al
callq 0x21a0
movq (%r15), %rdi
movq 0x48(%rbx,%r14), %rdx
leaq 0x6bdf(%rip), %rsi      # 0x9390
xorl %eax, %eax
callq 0x21a0
movq (%r15), %rdi
movsd 0x60(%rbx,%r14), %xmm0
leaq 0x6bdb(%rip), %rsi      # 0x93a4
movb $0x1, %al
callq 0x21a0
movq (%r15), %rdi
movsd 0x68(%rbx,%r14), %xmm0
leaq 0x6bd7(%rip), %rsi      # 0x93b8
movb $0x1, %al
callq 0x21a0
movq (%r15), %rdi
movsd 0x70(%rbx,%r14), %xmm0
leaq 0x6bd3(%rip), %rsi      # 0x93cc
movb $0x1, %al
callq 0x21a0
movq (%r15), %rdi
movsd 0x78(%rbx,%r14), %xmm0
leaq 0x6bcf(%rip), %rsi      # 0x93e0
movb $0x1, %al
callq 0x21a0
movq (%r15), %rdi
movq 0x50(%rbx,%r14), %rax
movq (%rax), %rdx
leaq 0x6bca(%rip), %rsi      # 0x93f4
xorl %eax, %eax
callq 0x21a0
movq (%r15), %rdi
movq 0x50(%rbx,%r14), %rax
movq (%rax), %rcx
movq 0x10(%rax), %rax
movq (%rax), %rdx
movq -0x8(%rax,%rcx,8), %r8
decq %rcx
leaq 0x6bb5(%rip), %rsi      # 0x9407
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
jmp 0x21a0
// File: /workspace/github_c_makefile_star2_O3/esheldon[P]xshear/src/lensum.c
// Function: lensum_print
void lensum_print(Lensum* self) {

    wlog("  index:    %lld\n", self->index);
    wlog("  weight:   %g\n",  self->weight);
    wlog("  totpairs: %lld\n", self->totpairs);
    wlog("  nbin:     %lld\n", self->nbin);                            
    wlog("  bin       npair          wsum          ssum       meanr          dsum          osum");
    wlog("     dsensum_w     osensum_w     dsensum_s     osensum_s  DeltaSigma");
    wlog("\n");

    for (size_t i=0; i<self->nbin; i++) {
        //wlog("  %3lu %11ld %15.6lf %15.6lf %15.6lf %15.6lf", 
        wlog("  %3lu %11lld %13.6g %13.6g %11.6g %13.6g %13.6g %13.6g %13.6g %13.6g %13.6g %11.6g", 
             i,
             self->npair[i],
             self->wsum[i],
             self->ssum[i],
             self->rsum[i]/max(self->wsum[i],DBL_MIN),
             self->dsum[i],
             self->osum[i],
             self->dsensum_w[i],
             self->osensum_w[i],
             self->dsensum_s[i],
             self->osensum_s[i],
             self->dsum[i]/max(self->dsensum_w[i],DBL_MIN)
              );
        wlog("\n");
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movq 0xb471(%rip), %r12      # 0xdff8
movq (%r12), %rdi
movq 0x10(%rbx), %rdx
leaq 0x695b(%rip), %rsi      # 0x94f1
xorl %eax, %eax
callq 0x21a0
movq (%r12), %rdi
movsd 0x18(%rbx), %xmm0
leaq 0x6956(%rip), %rsi      # 0x9503
movb $0x1, %al
callq 0x21a0
movq (%r12), %rdi
movq 0x20(%rbx), %rdx
leaq 0x6950(%rip), %rsi      # 0x9513
xorl %eax, %eax
callq 0x21a0
movq (%r12), %rdi
movq 0x28(%rbx), %rdx
leaq 0x694c(%rip), %rsi      # 0x9525
xorl %eax, %eax
callq 0x21a0
movq (%r12), %rcx
leaq 0x694c(%rip), %rdi      # 0x9537
pushq $0x55
popq %rsi
pushq $0x1
popq %r14
movq %r14, %rdx
callq 0x2290
movq (%r12), %rcx
leaq 0x6988(%rip), %rdi      # 0x958d
pushq $0x44
popq %rsi
movq %r14, %rdx
callq 0x2290
movq (%r12), %rsi
pushq $0xa
popq %rdi
callq 0x2150
cmpq $0x0, 0x28(%rbx)
je 0x2cf6
xorl %r14d, %r14d
leaq 0x69a1(%rip), %r15      # 0x95d2
pushq $0xa
popq %rbp
movq (%r12), %rdi
movq 0x30(%rbx), %rax
movq 0x38(%rbx), %rdx
movq (%rax,%r14,8), %rcx
movq 0x40(%rbx), %rax
movsd (%rax,%r14,8), %xmm0
movq 0x48(%rbx), %rax
movsd (%rax,%r14,8), %xmm1
movsd (%rdx,%r14,8), %xmm2
movapd %xmm0, %xmm3
movsd 0x67bd(%rip), %xmm10    # 0x9428
maxsd %xmm10, %xmm3
divsd %xmm3, %xmm2
movq 0x50(%rbx), %rax
movsd (%rax,%r14,8), %xmm3
movq 0x58(%rbx), %rax
movsd (%rax,%r14,8), %xmm4
movq 0x60(%rbx), %rax
movsd (%rax,%r14,8), %xmm5
movq 0x68(%rbx), %rax
movsd (%rax,%r14,8), %xmm6
movq 0x70(%rbx), %rax
movsd (%rax,%r14,8), %xmm7
movq 0x78(%rbx), %rax
movsd (%rax,%r14,8), %xmm8
movapd %xmm5, %xmm9
maxsd %xmm10, %xmm9
movapd %xmm3, %xmm10
divsd %xmm9, %xmm10
movsd %xmm10, 0x8(%rsp)
movsd %xmm8, (%rsp)
movq %r15, %rsi
movq %r14, %rdx
movb $0x8, %al
callq 0x21a0
movq (%r12), %rsi
movl %ebp, %edi
callq 0x2150
incq %r14
cmpq 0x28(%rbx), %r14
jb 0x2c34
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/esheldon[P]xshear/src/healpix.c
// Function: hpix_new
HealPix* hpix_new(int64 nside) {
    HealPix* hpix;

    if (nside < 1 || nside > NS_MAX) {
        fprintf(stderr,"nside %ld out of range [%d, %d]\n", nside, 1, NS_MAX);
        exit(EXIT_FAILURE);
    }

    hpix = malloc(sizeof(HealPix));
    if (hpix == NULL) {
        printf("Could not allocate HealPix\n");
        exit(EXIT_FAILURE);
    }

    hpix->nside = nside;
    hpix->npix = hpix_npix(nside);
    hpix->half_npix = hpix->npix/2;
    hpix->area = hpix_area(nside);
    hpix->ncap = 2*nside*(nside-1); // number of pixels in the north polar cap

    return hpix;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq $-0x10000001, %rax      # imm = 0xEFFFFFFF
leaq (%rdi,%rax), %rcx
cmpq %rax, %rcx
jbe 0x3dde
movl $0x28, %edi
callq 0x2200
testq %rax, %rax
je 0x3de6
movq %rbx, (%rax)
movq %rbx, %rcx
imulq %rbx, %rcx
shlq $0x2, %rcx
leaq (%rcx,%rcx,2), %rcx
movq %rcx, 0x8(%rax)
cvtsi2sd %rcx, %xmm0
shrq %rcx
movq %rcx, 0x10(%rax)
movsd 0x5244(%rip), %xmm1     # 0x9008
divsd %xmm0, %xmm1
movsd %xmm1, 0x20(%rax)
leaq -0x1(%rbx), %rcx
imulq %rbx, %rcx
addq %rcx, %rcx
movq %rcx, 0x18(%rax)
popq %rbx
retq
movq %rbx, %rdi
callq 0x22e0
leaq 0x5357(%rip), %rdi      # 0x9144
callq 0x2080
movl $0x1, %edi
callq 0x2280
// File: /workspace/github_c_makefile_star2_O3/esheldon[P]xshear/src/healpix.c
// Function: hpix_ring_num
int64 hpix_ring_num(const HealPix* hpix, double z) {
    int64 nside=hpix->nside;

    // rounds double to nearest long long int
    int64 iring = llrintl( nside*(2.-1.5*z) );

    // north cap
    if (z > M_TWOTHIRD) {
        iring = llrintl( nside* sqrt(3.*(1.-z)) );
        if (iring == 0) {
            iring = 1;
        }
    } else if (z < -M_TWOTHIRD) {
        iring = llrintl( nside* sqrt(3.*(1.+z)) );

        if (iring == 0) {
            iring = 1;
        }
        iring = 4*nside - iring;
    }

    return iring;
}

// Assembly:
pushq %rbx
subq $0x40, %rsp
movsd %xmm0, 0x20(%rsp)
movq (%rdi), %rbx
cvtsi2sd %rbx, %xmm1
movsd 0x4da7(%rip), %xmm2     # 0x9058
mulsd %xmm0, %xmm2
addsd 0x4d6b(%rip), %xmm2     # 0x9028
movsd %xmm1, 0x18(%rsp)
mulsd %xmm1, %xmm2
movsd %xmm2, 0x38(%rsp)
fldl 0x38(%rsp)
fstpt (%rsp)
callq 0x21e0
movsd 0x20(%rsp), %xmm1
ucomisd 0x4d79(%rip), %xmm1     # 0x9060
jbe 0x430d
movsd 0x4d2f(%rip), %xmm0     # 0x9020
subsd %xmm1, %xmm0
mulsd 0x4d1b(%rip), %xmm0     # 0x9018
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jb 0x433e
sqrtsd %xmm0, %xmm0
jmp 0x4343
movsd 0x4d53(%rip), %xmm0     # 0x9068
ucomisd %xmm1, %xmm0
jbe 0x4394
addsd 0x4cfd(%rip), %xmm1     # 0x9020
mulsd 0x4ced(%rip), %xmm1     # 0x9018
xorpd %xmm0, %xmm0
ucomisd %xmm0, %xmm1
jb 0x4365
xorps %xmm0, %xmm0
sqrtsd %xmm1, %xmm0
jmp 0x436e
callq 0x22b0
mulsd 0x18(%rsp), %xmm0
movsd %xmm0, 0x28(%rsp)
fldl 0x28(%rsp)
fstpt (%rsp)
callq 0x21e0
cmpq $0x1, %rax
adcq $0x0, %rax
jmp 0x4394
movapd %xmm1, %xmm0
callq 0x22b0
mulsd 0x18(%rsp), %xmm0
movsd %xmm0, 0x30(%rsp)
fldl 0x30(%rsp)
fstpt (%rsp)
callq 0x21e0
shlq $0x2, %rbx
cmpq $0x1, %rax
sbbq %rax, %rbx
movq %rbx, %rax
addq $0x40, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/esheldon[P]xshear/src/healpix.c
// Function: hpix_radec_degrees_to_thetaphi_radians
void hpix_radec_degrees_to_thetaphi_radians(double ra, double dec, double* theta, double* phi) {

    if (ra < 0.0 || ra > 360.) {
        printf("ra %g out of range [0,360.]\n", ra);
        exit(EXIT_FAILURE);
    }
    if (dec < -90. || dec > 90.) {
        printf("dec %g out of range [-90.,90.]\n", dec);
        exit(EXIT_FAILURE);
    }

    *phi = ra*D2R;
    *theta = -dec*D2R + M_PI_2;
}

// Assembly:
pushq %rax
xorpd %xmm2, %xmm2
ucomisd %xmm0, %xmm2
ja 0x48d3
ucomisd 0x4803(%rip), %xmm0     # 0x9098
ja 0x48d3
movapd 0x4821(%rip), %xmm2     # 0x90c0
andpd %xmm1, %xmm2
ucomisd 0x47f5(%rip), %xmm2     # 0x90a0
ja 0x48dc
movsd 0x47f3(%rip), %xmm2     # 0x90a8
mulsd %xmm2, %xmm0
movsd %xmm0, (%rsi)
mulsd %xmm2, %xmm1
movsd 0x4767(%rip), %xmm0     # 0x9030
subsd %xmm1, %xmm0
movsd %xmm0, (%rdi)
popq %rax
retq
leaq 0x482d(%rip), %rdi      # 0x9107
jmp 0x48e7
leaq 0x4841(%rip), %rdi      # 0x9124
movapd %xmm1, %xmm0
movb $0x1, %al
callq 0x20f0
movl $0x1, %edi
callq 0x2280
// File: /workspace/github_c_makefile_star2_O3/esheldon[P]xshear/src/cosmo.c
// Function: cosmo_new
Cosmo* cosmo_new(
        double H0, 
        int flat,
        double omega_m,
        double omega_l,
        double omega_k) {

    Cosmo* c;
    c=(Cosmo* ) calloc(1,sizeof(Cosmo));

    if (c == NULL) {
        return NULL;
    }

    c->H0=H0;
    c->DH=CLIGHT/H0;
    c->flat=flat;
    c->omega_m=omega_m;
    c->omega_l=omega_l;
    c->omega_k=omega_k;

    c->tcfac = 0;
    if (c->flat != 1) {
        if (c->omega_k > 0) {
            c->tcfac = sqrt(c->omega_k)/c->DH;
        } else {
            c->tcfac = sqrt(-c->omega_k)/c->DH;
        }
    }

    gauleg(-1.0,1.0, NPTS,  c->x,  c->w);
    gauleg(-1.0,1.0, VNPTS, c->vx, c->vw);

    return c;
}

// Assembly:
pushq %rbp
pushq %rbx
subq $0x28, %rsp
movaps %xmm3, (%rsp)
movsd %xmm2, 0x20(%rsp)
movsd %xmm1, 0x18(%rsp)
movl %edi, %ebp
movsd %xmm0, 0x10(%rsp)
movl $0x1, %edi
movl $0x128, %esi            # imm = 0x128
callq 0x2170
movq %rax, %rbx
testq %rax, %rax
je 0x49f9
movsd 0x10(%rsp), %xmm0
movsd %xmm0, 0x8(%rbx)
movsd 0x481c(%rip), %xmm2     # 0x9160
divsd %xmm0, %xmm2
movsd %xmm2, 0x10(%rbx)
movl %ebp, (%rbx)
movsd 0x18(%rsp), %xmm0
movsd %xmm0, 0x18(%rbx)
movsd 0x20(%rsp), %xmm0
movsd %xmm0, 0x20(%rbx)
movapd (%rsp), %xmm0
movsd %xmm0, 0x28(%rbx)
cmpl $0x1, %ebp
je 0x49ac
movapd 0x4734(%rip), %xmm1     # 0x90b0
xorpd %xmm0, %xmm1
maxsd %xmm1, %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jb 0x4994
sqrtsd %xmm0, %xmm0
jmp 0x49a3
movsd %xmm2, (%rsp)
callq 0x22b0
movsd (%rsp), %xmm2
divsd %xmm2, %xmm0
movsd %xmm0, 0x30(%rbx)
leaq 0x38(%rbx), %rsi
leaq 0x60(%rbx), %rdx
movsd 0x467c(%rip), %xmm0     # 0x9038
movsd 0x465c(%rip), %xmm1     # 0x9020
movl $0x5, %edi
callq 0x4a03
leaq 0x88(%rbx), %rsi
movq %rbx, %rdx
addq $0xd8, %rdx
movsd 0x4651(%rip), %xmm0     # 0x9038
movsd 0x4631(%rip), %xmm1     # 0x9020
movl $0xa, %edi
callq 0x4a03
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/esheldon[P]xshear/src/cosmo.c
// Function: ez_inverse_integral
double ez_inverse_integral(Cosmo* c, double zmin, double zmax) {
    int i;
    double f1, f2, z, ezinv_int=0, ezinv;

    f1 = (zmax-zmin)/2.;
    f2 = (zmax+zmin)/2.;

    ezinv_int = 0.0;

    for (i=0;i<NPTS;i++) {
        z = c->x[i]*f1 + f2;

        ezinv = ez_inverse(c, z);
        ezinv_int += f1*ezinv*c->w[i];
    }

    return ezinv_int;

}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movapd %xmm1, %xmm3
subsd %xmm0, %xmm3
movsd 0x43e6(%rip), %xmm2     # 0x9070
mulsd %xmm2, %xmm3
movsd %xmm3, 0x8(%rsp)
addsd %xmm1, %xmm0
mulsd %xmm2, %xmm0
movsd %xmm0, 0x10(%rsp)
xorpd %xmm0, %xmm0
movl $0x7, %r14d
movsd %xmm0, (%rsp)
movsd (%rbx,%r14,8), %xmm0
mulsd 0x8(%rsp), %xmm0
addsd 0x10(%rsp), %xmm0
movq %rbx, %rdi
callq 0x4df8
mulsd 0x8(%rsp), %xmm0
mulsd 0x28(%rbx,%r14,8), %xmm0
movsd (%rsp), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
movsd (%rsp), %xmm0
incq %r14
cmpq $0xc, %r14
jne 0x4cac
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/esheldon[P]xshear/src/cosmo.c
// Function: Dm
double Dm(Cosmo* c, double zmin, double zmax) {

    double d;

    d = Dc(c, zmin, zmax);

    if (!c->flat) {
        if (c->omega_k > 0) {
            d= sinh(d*c->tcfac)/c->tcfac;
        } else {
            d= sin(d*c->tcfac)/c->tcfac;
        }
    }
    return d;
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movsd 0x10(%rdi), %xmm2
movsd %xmm2, 0x8(%rsp)
callq 0x4c70
mulsd 0x8(%rsp), %xmm0
cmpl $0x0, (%rbx)
jne 0x4d44
movsd 0x28(%rbx), %xmm1
xorpd %xmm2, %xmm2
ucomisd %xmm2, %xmm1
mulsd 0x30(%rbx), %xmm0
jbe 0x4d3a
callq 0x21f0
jmp 0x4d3f
callq 0x2250
divsd 0x30(%rbx), %xmm0
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/esheldon[P]xshear/src/cosmo.c
// Function: Da
double Da(Cosmo* c, double zmin, double zmax) {
    double d;
    d = Dm(c, zmin, zmax);
    d /= (1.+zmax);
    return d;
}

// Assembly:
pushq %rax
movsd %xmm1, (%rsp)
callq 0x4cfc
movsd (%rsp), %xmm1
addsd 0x42be(%rip), %xmm1     # 0x9020
divsd %xmm1, %xmm0
popq %rax
retq
// File: /workspace/github_c_makefile_star2_O3/esheldon[P]xshear/src/cosmo.c
// Function: dV
double dV(Cosmo* c, double z) {
    double da, ezinv, oneplusz;
    double dv;

    oneplusz = 1.+z;

    da = Da(c, 0.0, z);
    ezinv = ez_inverse(c, z);
    dv = c->DH*da*da*ezinv*oneplusz*oneplusz;

    return dv;
}

// Assembly:
pushq %rbx
subq $0x20, %rsp
movapd %xmm0, %xmm1
movsd %xmm0, 0x10(%rsp)
movq %rdi, %rbx
movsd 0x4280(%rip), %xmm0     # 0x9020
addsd %xmm1, %xmm0
movsd %xmm0, 0x8(%rsp)
xorpd %xmm0, %xmm0
callq 0x4cfc
divsd 0x8(%rsp), %xmm0
movsd %xmm0, 0x18(%rsp)
movq %rbx, %rdi
movsd 0x10(%rsp), %xmm0
callq 0x4df8
movsd 0x10(%rbx), %xmm1
movsd 0x18(%rsp), %xmm2
mulsd %xmm2, %xmm1
mulsd %xmm2, %xmm1
mulsd %xmm1, %xmm0
movsd 0x8(%rsp), %xmm1
mulsd %xmm1, %xmm0
mulsd %xmm1, %xmm0
addq $0x20, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/esheldon[P]xshear/src/cosmo.c
// Function: ez_inverse
double ez_inverse(Cosmo* c, double z) {
    double oneplusz, oneplusz2;
    double ezi;

    oneplusz = 1.+z;
    if (c->flat) {
        ezi = c->omega_m*oneplusz*oneplusz*oneplusz + c->omega_l;
    } else {
        oneplusz2 = oneplusz*oneplusz;
        ezi = c->omega_m*oneplusz2*oneplusz + c->omega_k*oneplusz2 + c->omega_l;
    }
    ezi = sqrt(1.0/ezi);
    return ezi;
}

// Assembly:
addsd 0x4220(%rip), %xmm0     # 0x9020
cmpl $0x0, (%rdi)
je 0x4e18
movsd 0x18(%rdi), %xmm1
mulsd %xmm0, %xmm1
mulsd %xmm0, %xmm1
mulsd %xmm0, %xmm1
jmp 0x4e36
movapd %xmm0, %xmm2
mulsd %xmm0, %xmm2
movsd 0x18(%rdi), %xmm1
mulsd %xmm2, %xmm1
mulsd 0x28(%rdi), %xmm2
mulsd %xmm0, %xmm1
addsd %xmm2, %xmm1
addsd 0x20(%rdi), %xmm1
movsd 0x41dd(%rip), %xmm0     # 0x9020
divsd %xmm1, %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jb 0x22b0
sqrtsd %xmm0, %xmm0
retq
// File: /workspace/github_c_makefile_star2_O3/esheldon[P]xshear/src/cosmo.c
// Function: V
double V(Cosmo* c, double zmin, double zmax) {
    int i;
    double f1,f2,z;
    double dv;
    double v=0;

    f1 = (zmax-zmin)/2.;
    f2 = (zmax+zmin)/2.;

    for (i=0; i<VNPTS; i++) {
        z = c->vx[i]*f1 + f2;
        dv = dV(c, z);
        v += f1*dv*c->vw[i];
    }

    return v;

}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movapd %xmm1, %xmm3
subsd %xmm0, %xmm3
movsd 0x41fc(%rip), %xmm2     # 0x9070
mulsd %xmm2, %xmm3
movsd %xmm3, 0x8(%rsp)
addsd %xmm1, %xmm0
mulsd %xmm2, %xmm0
movsd %xmm0, 0x10(%rsp)
xorpd %xmm0, %xmm0
movl $0x11, %r14d
movsd %xmm0, (%rsp)
movsd (%rbx,%r14,8), %xmm0
mulsd 0x8(%rsp), %xmm0
addsd 0x10(%rsp), %xmm0
movq %rbx, %rdi
callq 0x4d86
mulsd 0x8(%rsp), %xmm0
mulsd 0x50(%rbx,%r14,8), %xmm0
movsd (%rsp), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
movsd (%rsp), %xmm0
incq %r14
cmpq $0x1b, %r14
jne 0x4e96
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/esheldon[P]xshear/src/cosmo.c
// Function: scinv
double scinv(Cosmo* c, double zl, double zs) {
    double dl, ds, dls;

    if (zs <= zl) {
        return 0.0;
    }

    dl = Da(c, 0.0, zl);
    ds = Da(c, 0.0, zs);
    dls = Da(c, zl, zs);
    return dls*dl/ds*FOUR_PI_G_OVER_C_SQUARED;
}

// Assembly:
movapd %xmm0, %xmm2
xorpd %xmm0, %xmm0
ucomisd %xmm1, %xmm2
jae 0x4f9b
pushq %rbx
subq $0x40, %rsp
movq %rdi, %rbx
xorpd %xmm0, %xmm0
movapd %xmm1, 0x10(%rsp)
movapd %xmm2, %xmm1
movapd %xmm2, 0x30(%rsp)
callq 0x4cfc
movapd %xmm0, (%rsp)
movapd 0x30(%rsp), %xmm0
movapd 0x10(%rsp), %xmm1
unpcklpd %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0]
addpd 0x424a(%rip), %xmm0     # 0x9180
movapd %xmm0, 0x20(%rsp)
xorpd %xmm0, %xmm0
movq %rbx, %rdi
callq 0x4cfc
movapd (%rsp), %xmm1
unpcklpd %xmm0, %xmm1            # xmm1 = xmm1[0],xmm0[0]
divpd 0x20(%rsp), %xmm1
movapd %xmm1, (%rsp)
movq %rbx, %rdi
movapd 0x30(%rsp), %xmm0
movaps 0x10(%rsp), %xmm1
callq 0x4cfc
movapd 0x20(%rsp), %xmm1
unpckhpd %xmm1, %xmm1            # xmm1 = xmm1[1,1]
divsd %xmm1, %xmm0
movapd (%rsp), %xmm1
mulsd %xmm1, %xmm0
unpckhpd %xmm1, %xmm1            # xmm1 = xmm1[1,1]
divsd %xmm1, %xmm0
mulsd 0x41e2(%rip), %xmm0     # 0x9178
addq $0x40, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/esheldon[P]xshear/src/tree.c
// Function: tree_insert
void tree_insert(TreeNode ** self, int64_t val, size_t index) {
    if(!(*self)) {
        *self = malloc(sizeof(TreeNode));
        (*self)->left = (*self)->right = NULL;
        (*self)->val=val;
        (*self)->indices = szvector_new();
        vector_push((*self)->indices, index);
        return;
    }
    if(val < (*self)->val) {
        tree_insert(&(*self)->left, val, index);
    } else if(val > (*self)->val) {
        tree_insert(&(*self)->right, val, index);
    } else {
        vector_push((*self)->indices, index);
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
movq (%rdi), %rax
testq %rax, %rax
je 0x500c
movl $0x18, %ecx
cmpq %r15, (%rax)
jg 0x5002
movl $0x10, %ecx
jge 0x50a2
leaq (%rax,%rcx), %r14
movq (%rax,%rcx), %rax
jmp 0x4fe8
movl $0x20, %edi
callq 0x2200
movq %rax, (%r14)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movq %r15, (%rax)
xorl %eax, %eax
callq 0x7744
movq (%r14), %rcx
movq %rax, 0x8(%rcx)
movq (%r14), %rax
movq 0x8(%rax), %rax
movq (%rax), %r12
cmpq 0x8(%rax), %r12
jne 0x5135
leaq (%r12,%r12), %rdx
testq %r12, %r12
movl $0x1, %r15d
cmovneq %rdx, %r15
movq %r12, %rcx
cmpq %r12, %r15
jae 0x5064
movq %rdx, (%rax)
movq %r15, %rcx
cmpq $0x1, %r15
adcq $0x0, %r15
cmpq %r12, %r15
je 0x50df
movq 0x10(%rax), %rdi
leaq (,%r15,8), %rsi
callq 0x2230
movq (%r14), %rcx
movq 0x8(%rcx), %rcx
movq %rax, 0x10(%rcx)
movq (%r14), %rax
movq 0x8(%rax), %rax
movq 0x10(%rax), %rcx
testq %rcx, %rcx
jne 0x5110
callq 0x2413
movq 0x8(%rax), %rax
movq (%rax), %r12
cmpq 0x8(%rax), %r12
jne 0x5135
leaq (%r12,%r12), %rdx
testq %r12, %r12
movl $0x1, %r15d
cmovneq %rdx, %r15
movq %r12, %rcx
cmpq %r12, %r15
jae 0x50d2
movq %rdx, (%rax)
movq %r15, %rcx
cmpq $0x1, %r15
adcq $0x0, %r15
cmpq %r12, %r15
jne 0x50e4
movq %rcx, %r12
jmp 0x5135
movq 0x10(%rax), %rdi
leaq (,%r15,8), %rsi
callq 0x2230
movq (%r14), %rcx
movq 0x8(%rcx), %rcx
movq %rax, 0x10(%rcx)
movq (%r14), %rax
movq 0x8(%rax), %rax
movq 0x10(%rax), %rcx
testq %rcx, %rcx
je 0x5151
movq %r15, %rdx
subq %r12, %rdx
jbe 0x512e
shlq $0x3, %rdx
leaq (%rcx,%r12,8), %rdi
xorl %esi, %esi
callq 0x2120
movq (%r14), %rax
movq 0x8(%rax), %rax
movq %r15, 0x8(%rax)
movq (%rax), %r12
leaq 0x1(%r12), %rcx
movq %rcx, (%rax)
movq 0x10(%rax), %rax
movq %rbx, (%rax,%r12,8)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
callq 0x23ee
// File: /workspace/github_c_makefile_star2_O3/esheldon[P]xshear/src/tree.c
// Function: tree_free
TreeNode* tree_free(TreeNode* self) {
    if (self != NULL) {
        vector_free(self->indices);
        self->left    = tree_free(self->left);
        self->right   = tree_free(self->right);
        free(self);
    }
    return NULL;
}

// Assembly:
testq %rdi, %rdi
je 0x51a5
pushq %rbx
movq %rdi, %rbx
movq 0x8(%rdi), %rax
testq %rax, %rax
je 0x5182
movq 0x10(%rax), %rdi
callq 0x2030
movq 0x8(%rbx), %rdi
callq 0x2030
movq $0x0, 0x8(%rbx)
movq 0x18(%rbx), %rdi
callq 0x5156
movq $0x0, 0x18(%rbx)
movq 0x10(%rbx), %rdi
callq 0x5156
movq %rbx, %rdi
callq 0x2030
popq %rbx
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/esheldon[P]xshear/src/tree.c
// Function: tree_find
TreeNode* tree_find(TreeNode* self, int64_t val) {
    if (!self) {
        return NULL;
    }
    if(val < self->val) {
        return tree_find(self->left, val);
    } else if(val > self->val) {
        return tree_find(self->right, val);
    } else {
        return self;
    }
}

// Assembly:
testq %rdi, %rdi
je 0x51ca
movq %rdi, %rax
movl $0x18, %ecx
cmpq %rsi, (%rax)
jg 0x51c1
movl $0x10, %ecx
jge 0x51cc
movq (%rax,%rcx), %rax
testq %rax, %rax
jne 0x51b0
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/esheldon[P]xshear/src/tree.c
// Function: tree_print
void tree_print( TreeNode *self, int level )
{
    if ( self == NULL ) {
        tree_print_padding ( '\t', level );
        fprintf(stderr,"~");
    } else {
        tree_print( self->right, level + 1 );
        tree_print_padding ( '\t', level );
        fprintf(stderr,"%ld\n", self->val);
        tree_print( self->left, level + 1 );
    }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
testq %rdi, %rdi
jne 0x5237
testl %ebx, %ebx
jle 0x521c
movq 0x8ded(%rip), %r14      # 0xdff8
movq (%r14), %rsi
movl $0x9, %edi
callq 0x2150
decl %ebx
jne 0x520b
movq 0x8dd5(%rip), %rax      # 0xdff8
movq (%rax), %rsi
movl $0x7e, %edi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x2150
movq %rdi, %rsi
leaq 0x4(%rsp), %r14
movl %ebx, %edi
movq %r14, %rdx
callq 0x2438
movl (%r14), %ebx
jmp 0x5200
// File: /workspace/github_c_makefile_star2_O3/esheldon[P]xshear/src/tree.c
// Function: tree_most_members
size_t tree_most_members( TreeNode *self )
{
    size_t max_ind=0, max_ind_left=0, max_ind_right=0;
    if (self != NULL) {
        max_ind = self->indices->size;

        max_ind_left = tree_most_members( self->left );
        max_ind_right = tree_most_members( self->right );

        max_ind = (max_ind > max_ind_left) ? max_ind : max_ind_left;
        max_ind = (max_ind > max_ind_right) ? max_ind : max_ind_right;
    }
    return max_ind;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
testq %rdi, %rdi
je 0x5286
movq %rdi, %r14
xorl %ebx, %ebx
movq 0x8(%r14), %rax
movq 0x18(%r14), %rdi
movq (%rax), %r15
callq 0x524e
movq 0x10(%r14), %r14
cmpq %rax, %r15
cmovaq %r15, %rax
cmpq %rbx, %rax
cmovaq %rax, %rbx
testq %r14, %r14
jne 0x525d
jmp 0x5288
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/esheldon[P]xshear/src/lens.c
// Function: lcat_new
LensCatalog* lcat_new(size_t n_lens) {

    if (n_lens == 0) {
        wlog("lcat_new: size must be > 0\n");
        exit(EXIT_FAILURE);
    }

    //LensCatalog* lcat = malloc(sizeof(LensCatalog));
    LensCatalog* lcat = calloc(1,sizeof(LensCatalog));
    if (lcat == NULL) {
        wlog("Could not allocate LensCatalog\n");
        exit(EXIT_FAILURE);
    }

    lcat->size = n_lens;

    //lcat->data = malloc(n_lens*sizeof(Lens));
    lcat->data = calloc(n_lens,sizeof(Lens));
    if (lcat->data == NULL) {
        wlog("Could not allocate %ld lenses in lcat\n", n_lens);
        exit(EXIT_FAILURE);
    }

    lcat->hpix_tree=NULL;

    return lcat;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x52db
movq %rdi, %rbx
movl $0x1, %edi
movl $0x18, %esi
callq 0x2170
testq %rax, %rax
je 0x52e0
movq %rax, %r14
movq %rbx, (%rax)
movl $0x80, %esi
movq %rbx, %rdi
callq 0x2170
movq %rax, 0x8(%r14)
testq %rax, %rax
je 0x52e5
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
callq 0x28c1
callq 0x289c
movq %rbx, %rdi
callq 0x2878
// File: /workspace/github_c_makefile_star2_O3/esheldon[P]xshear/src/lens.c
// Function: lcat_disc_intersect
void lcat_disc_intersect(LensCatalog* lcat, HealPix* hpix, double rmax) {


    for (size_t i=0; i<lcat->size; i++) {

        Lens* lens = &lcat->data[i];

        lens->hpix = lvector_new();

        double search_angle = rmax/lens->da;
        hpix_disc_intersect(
                hpix, 
                lens->ra, lens->dec, 
                search_angle, 
                lens->hpix);

        // this should speed up initial checks of sources
        // since we can ask if within min/max pixel values
        lvector_sort(lens->hpix);

    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movsd %xmm0, 0x8(%rsp)
cmpq $0x0, (%rdi)
je 0x5404
movq %rsi, %rbx
movq %rdi, %r14
movl $0x50, %r15d
xorl %r12d, %r12d
movq 0x8(%r14), %r13
xorl %eax, %eax
callq 0x7f7e
movq %rax, (%r13,%r15)
movsd 0x8(%rsp), %xmm2
divsd -0x30(%r13,%r15), %xmm2
movsd -0x48(%r13,%r15), %xmm0
movsd -0x40(%r13,%r15), %xmm1
movq %rbx, %rdi
movq %rax, %rsi
callq 0x3e06
movq (%r13,%r15), %rdi
callq 0x8349
incq %r12
subq $-0x80, %r15
cmpq (%r14), %r12
jb 0x53b8
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/esheldon[P]xshear/src/lens.c
// Function: lcat_build_hpix_tree
void lcat_build_hpix_tree(HealPix* hpix, LensCatalog* lcat) {
    int64* ptr=NULL;

    for (size_t i=0; i<lcat->size; i++) {

        Lens* lens = &lcat->data[i];

        // add to the tree
        for (size_t j=0; j<lens->hpix->size; j++) {
            ptr = &lens->hpix->data[j];
            tree_insert(&lcat->hpix_tree, (*ptr)-hpix->half_npix, i);
        }

    }

}

// Assembly:
movq (%rsi), %rax
testq %rax, %rax
je 0x548e
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x10(%rsi), %r15
xorl %r12d, %r12d
movq 0x8(%rbx), %rdx
movq %r12, %rsi
shlq $0x7, %rsi
movq 0x50(%rdx,%rsi), %rcx
cmpq $0x0, (%rcx)
je 0x5478
leaq (%rdx,%rsi), %r13
addq $0x50, %r13
xorl %ebp, %ebp
movq 0x10(%rcx), %rax
movq (%rax,%rbp,8), %rsi
subq 0x10(%r14), %rsi
movq %r15, %rdi
movq %r12, %rdx
callq 0x4fd4
incq %rbp
movq (%r13), %rcx
cmpq (%rcx), %rbp
jb 0x5452
movq (%rbx), %rax
incq %r12
cmpq %rax, %r12
jb 0x5432
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/esheldon[P]xshear/src/lens.c
// Function: lcat_free
LensCatalog* lcat_free(LensCatalog* lcat) {

    if (lcat != NULL) {
        Lens* lens=&lcat->data[0];
        for (size_t i=0; i<lcat->size; i++) {
            vector_free(lens->hpix);
            lens++;
        }
        free(lcat->data);
        lcat->hpix_tree = tree_free(lcat->hpix_tree);
        free(lcat);
    }
    return NULL;
}

// Assembly:
testq %rdi, %rdi
je 0x5500
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %rax
movq 0x8(%rdi), %r14
testq %rax, %rax
je 0x54e2
addq $0x50, %r14
xorl %r15d, %r15d
movq (%r14), %rcx
testq %rcx, %rcx
je 0x54d2
movq 0x10(%rcx), %rdi
callq 0x2030
movq (%r14), %rdi
callq 0x2030
movq $0x0, (%r14)
movq (%rbx), %rax
incq %r15
subq $-0x80, %r14
cmpq %rax, %r15
jb 0x54af
movq 0x8(%rbx), %r14
movq %r14, %rdi
callq 0x2030
movq 0x10(%rbx), %rdi
callq 0x5156
movq %rbx, %rdi
callq 0x2030
popq %rbx
popq %r14
popq %r15
xorl %eax, %eax
retq
nop
// File: /workspace/github_c_makefile_star2_O3/esheldon[P]xshear/src/lensum.c
// Function: lensums_write
void lensums_write(Lensums* self, FILE* stream) {

    Lensum* lensum = &self->data[0];
    for (size_t i=0; i<self->size; i++) {
        lensum_write(lensum, stream);
        
        lensum++;
    }
}

// Assembly:
cmpq $0x0, (%rdi)
je 0x5541
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq 0x8(%rdi), %r15
xorl %r12d, %r12d
movq %r15, %rdi
movq %rbx, %rsi
callq 0x5542
subq $-0x80, %r15
incq %r12
cmpq (%r14), %r12
jb 0x551f
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/esheldon[P]xshear/src/lensum.c
// Function: lensums_sum
Lensum* lensums_sum(Lensums* self) {
    Lensum* tsum=lensum_new(self->data[0].nbin,
                            self->data[0].shear_style, 
                            self->data[0].scstyle,
                            self->data[0].shear_units);


    for (size_t i=0; i<self->size; i++) {

        Lensum* lensum = &self->data[i];

        lensum_add(tsum, lensum);
    }
    return tsum;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x8(%rdi), %rax
movq 0x28(%rax), %rdi
movl 0x8(%rax), %edx
movl (%rax), %esi
movl 0x4(%rax), %ecx
callq 0x5840
movq %rax, %r14
cmpq $0x0, (%rbx)
je 0x5831
xorl %r15d, %r15d
xorl %r12d, %r12d
movq 0x8(%rbx), %rsi
addq %r15, %rsi
movq %r14, %rdi
callq 0x5a04
incq %r12
subq $-0x80, %r15
cmpq (%rbx), %r12
jb 0x5816
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/esheldon[P]xshear/src/lensum.c
// Function: lensums_free
Lensums* lensums_free(Lensums* self) {
    if (self != NULL) {
        if (self->data != NULL) {

            for (size_t i=0; i<self->size; i++) {
                Lensum* lensum = &self->data[i];
                free(lensum->npair);
                free(lensum->rsum);
                free(lensum->wsum);
                free(lensum->ssum);
                free(lensum->dsum);
                free(lensum->osum);
                free(lensum->dsensum_w);
                free(lensum->osensum_w);
                free(lensum->dsensum_s);
                free(lensum->osensum_s);
            }
            free(self->data);
        }
        free(self);
    }
    return NULL;
}

// Assembly:
testq %rdi, %rdi
je 0x5cdf
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
testq %rdi, %rdi
je 0x5ccc
cmpq $0x0, (%rbx)
je 0x5cc7
movl $0x78, %r14d
xorl %r15d, %r15d
movq 0x8(%rbx), %r12
movq -0x48(%r12,%r14), %rdi
callq 0x2030
movq -0x40(%r12,%r14), %rdi
callq 0x2030
movq -0x38(%r12,%r14), %rdi
callq 0x2030
movq -0x30(%r12,%r14), %rdi
callq 0x2030
movq -0x28(%r12,%r14), %rdi
callq 0x2030
movq -0x20(%r12,%r14), %rdi
callq 0x2030
movq -0x18(%r12,%r14), %rdi
callq 0x2030
movq -0x10(%r12,%r14), %rdi
callq 0x2030
movq -0x8(%r12,%r14), %rdi
callq 0x2030
movq (%r12,%r14), %rdi
callq 0x2030
incq %r15
subq $-0x80, %r14
cmpq (%rbx), %r15
jb 0x5c50
movq 0x8(%rbx), %rdi
callq 0x2030
movq %rbx, %rdi
callq 0x2030
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/esheldon[P]xshear/src/lensum.c
// Function: lensum_clear
void lensum_clear(Lensum* self) {

    self->index=-1;
    self->weight=0;
    self->totpairs=0;

    for (size_t i=0; i<self->nbin; i++) {
        self->npair[i] = 0;
        self->wsum[i] = 0;
        self->ssum[i] = 0;
        self->dsum[i] = 0;
        self->osum[i] = 0;
        self->rsum[i] = 0;
        self->dsensum_s[i] = 0;
        self->osensum_s[i] = 0;
        self->dsensum_w[i] = 0;
        self->osensum_w[i] = 0;
    }
}

// Assembly:
movq $-0x1, 0x10(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%rdi)
cmpq $0x0, 0x28(%rdi)
je 0x622c
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq 0x30(%rdi), %rax
movq 0x38(%rdi), %rcx
movq 0x40(%rdi), %rdx
movq 0x48(%rdi), %rsi
movq 0x50(%rdi), %r8
movq 0x58(%rdi), %r9
movq 0x70(%rdi), %r10
movq 0x78(%rdi), %r11
movq 0x60(%rdi), %rbx
movq 0x68(%rdi), %r14
xorl %r15d, %r15d
xorl %r12d, %r12d
movq %r15, (%rax,%r12,8)
movq %r15, (%rdx,%r12,8)
movq %r15, (%rsi,%r12,8)
movq %r15, (%r8,%r12,8)
movq %r15, (%r9,%r12,8)
movq %r15, (%rcx,%r12,8)
movq %r15, (%r10,%r12,8)
movq %r15, (%r11,%r12,8)
movq %r15, (%rbx,%r12,8)
movq %r15, (%r14,%r12,8)
incq %r12
cmpq 0x28(%rdi), %r12
jb 0x61f4
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/esheldon[P]xshear/src/sconfig.c
// Function: get_mask_style
static int get_mask_style(struct cfg *cfg) {
    enum cfg_status status=0;
    int mask_style=0;

    char *mstr = cfg_get_string(cfg,"mask_style", &status);
    if (status) {
        fprintf(stderr,
                "Config Error for key mask_style %s\n",
                cfg_status_string(status));
        exit(1);
    }

    if (0 == do_strncmp(mstr,MASK_STYLE_NONE_STR)) {
        mask_style=MASK_STYLE_NONE;
    } else if (0 == do_strncmp(mstr,MASK_STYLE_SDSS_STR)) {
        mask_style=MASK_STYLE_SDSS;
    } else if (0 == do_strncmp(mstr,MASK_STYLE_EQ_STR)) {
        mask_style=MASK_STYLE_EQ;
    } else {
        fprintf(stderr, "Config Error: bad mask_style '%s'\n", mstr);
        exit(1);
    }

    free(mstr);

    return mask_style;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
leaq 0xc(%rsp), %r14
movl $0x0, (%r14)
leaq 0x36db(%rip), %rsi      # 0x9926
movq %r14, %rdx
callq 0x7251
movl (%r14), %edi
testl %edi, %edi
jne 0x62c2
movq %rax, %rbx
leaq 0x36f1(%rip), %rsi      # 0x9955
movq %rax, %rdi
callq 0x667d
testl %eax, %eax
je 0x62a3
leaq 0x36e3(%rip), %rsi      # 0x995a
movq %rbx, %rdi
callq 0x667d
testl %eax, %eax
je 0x62aa
leaq 0x36d5(%rip), %rsi      # 0x995f
movq %rbx, %rdi
callq 0x667d
movl $0x3, %ebp
testl %eax, %eax
je 0x62af
movq %rbx, %rdi
callq 0x3479
movl $0x1, %ebp
jmp 0x62af
movl $0x2, %ebp
movq %rbx, %rdi
callq 0x2030
movl %ebp, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
callq 0x344d
// File: /workspace/github_c_makefile_star2_O3/esheldon[P]xshear/src/sconfig.c
// Function: get_shear_style
static int get_shear_style(struct cfg *cfg) {
    enum cfg_status status=0;
    int shear_style=0;

    char *mstr = cfg_get_string(cfg,"shear_style", &status);
    if (status) {
        fprintf(stderr,
                "Config Error for key shear_style %s\n",
                cfg_status_string(status));
        exit(1);
    }

    if (0 == do_strncmp(mstr,SHEAR_STYLE_REDUCED_STR)) {
        shear_style=SHEAR_STYLE_REDUCED;
    } else if (0 == do_strncmp(mstr,SHEAR_STYLE_LENSFIT_STR)) {
        shear_style=SHEAR_STYLE_LENSFIT;
    } else {
        fprintf(stderr, "Config Error: bad shear_style '%s'\n", mstr);
        exit(1);
    }

    free(mstr);

    return shear_style;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
leaq 0xc(%rsp), %r14
movl $0x0, (%r14)
leaq 0x36ab(%rip), %rsi      # 0x998d
movq %r14, %rdx
callq 0x7251
movl (%r14), %edi
testl %edi, %edi
jne 0x633f
movq %rax, %rbx
leaq 0x36c3(%rip), %rsi      # 0x99be
movq %rax, %rdi
callq 0x667d
testl %eax, %eax
je 0x6327
leaq 0x36b8(%rip), %rsi      # 0x99c6
movq %rbx, %rdi
callq 0x667d
movl $0x2, %ebp
testl %eax, %eax
je 0x632c
movq %rbx, %rdi
callq 0x34c9
movl $0x1, %ebp
movq %rbx, %rdi
callq 0x2030
movl %ebp, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
callq 0x349d
// File: /workspace/github_c_makefile_star2_O3/esheldon[P]xshear/src/sconfig.c
// Function: get_scstyle
static int get_scstyle(struct cfg *cfg) {
    enum cfg_status status=0;
    int scstyle=0;

    char *mstr = cfg_get_string(cfg,"sigmacrit_style", &status);
    if (status) {
        fprintf(stderr,
                "Config Error for key sigmacrit_style %s\n",
                cfg_status_string(status));
        exit(1);
    }

    if (0 == do_strncmp(mstr,SIGMACRIT_STYLE_POINT_STR)) {
        scstyle=SIGMACRIT_STYLE_POINT;
    } else if (0 == do_strncmp(mstr,SIGMACRIT_STYLE_INTERP_STR)) {
        scstyle=SIGMACRIT_STYLE_INTERP;
    } else if (0 == do_strncmp(mstr,SIGMACRIT_STYLE_SAMPLE_STR)) {
        scstyle=SIGMACRIT_STYLE_SAMPLE;
    } else {
        fprintf(stderr, "Config Error: bad sigmacrit_style '%s'\n", mstr);
        exit(1);
    }

    free(mstr);

    return scstyle;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
leaq 0xc(%rsp), %r14
movl $0x0, (%r14)
leaq 0x3693(%rip), %rsi      # 0x99f2
movq %r14, %rdx
callq 0x7251
movl (%r14), %edi
testl %edi, %edi
jne 0x63d6
movq %rax, %rbx
leaq 0x36b3(%rip), %rsi      # 0x9a2b
movq %rax, %rdi
callq 0x667d
testl %eax, %eax
je 0x63b7
leaq 0x335c(%rip), %rsi      # 0x96e7
movq %rbx, %rdi
callq 0x667d
testl %eax, %eax
je 0x63be
leaq 0x3693(%rip), %rsi      # 0x9a31
movq %rbx, %rdi
callq 0x667d
movl $0x3, %ebp
testl %eax, %eax
je 0x63c3
movq %rbx, %rdi
callq 0x3519
movl $0x1, %ebp
jmp 0x63c3
movl $0x2, %ebp
movq %rbx, %rdi
callq 0x2030
movl %ebp, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
callq 0x34ed
// File: /workspace/github_c_makefile_star2_O3/esheldon[P]xshear/src/sconfig.c
// Function: get_Dlens_input
static int get_Dlens_input(struct cfg *cfg) {
    enum cfg_status status=0;
    long Dlens_input=0;

    Dlens_input = cfg_get_long(cfg,"Dlens_input", &status);
    if (status) {
        wlog("    Dlens_input not sent, defaulting to false\n");
        // not sent, default to Mpc
        Dlens_input = 0;
    }

    return Dlens_input;
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
leaq 0xc(%rsp), %rbx
movl $0x0, (%rbx)
leaq 0x366e(%rip), %rsi      # 0x9a60
movq %rbx, %rdx
callq 0x7113
cmpl $0x0, (%rbx)
jne 0x6405
addq $0x10, %rsp
popq %rbx
retq
callq 0x353d
xorl %eax, %eax
jmp 0x63ff
// File: /workspace/github_c_makefile_star2_O3/esheldon[P]xshear/src/sconfig.c
// Function: get_sourceid_style
static int get_sourceid_style(struct cfg *cfg) {
    enum cfg_status status=0;
    int sourceid_style=0;

    char *mstr = cfg_get_string(cfg,"sourceid_style", &status);
    if (status) {
        // tacitly assume the user wants the default SOURCEID_STYLE_NONE
        sourceid_style=SOURCEID_STYLE_NONE;
        return sourceid_style;
    }

    if (0 == do_strncmp(mstr,SOURCEID_STYLE_NONE_STR)) {
        sourceid_style=SOURCEID_STYLE_NONE;
    } else if (0 == do_strncmp(mstr,SOURCEID_STYLE_INDEX_STR)) {
        sourceid_style=SOURCEID_STYLE_INDEX;
    } else {
        fprintf(stderr, "Config Error: bad sourceid_style '%s'\n", mstr);
        exit(1);
    }

    free(mstr);

    return sourceid_style;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
leaq 0xc(%rsp), %r14
movl $0x0, (%r14)
leaq 0x3672(%rip), %rsi      # 0x9a9b
movq %r14, %rdx
callq 0x7251
movl $0x1, %ebp
cmpl $0x0, (%r14)
jne 0x647f
movq %rax, %rbx
leaq 0x350f(%rip), %rsi      # 0x9955
movq %rax, %rdi
callq 0x667d
testl %eax, %eax
je 0x6472
leaq 0x3651(%rip), %rsi      # 0x9aaa
movq %rbx, %rdi
callq 0x667d
movl $0x2, %ebp
testl %eax, %eax
je 0x6477
movq %rbx, %rdi
callq 0x355f
movl $0x1, %ebp
movq %rbx, %rdi
callq 0x2030
movl %ebp, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/esheldon[P]xshear/src/sconfig.c
// Function: get_r_units
static int get_r_units(struct cfg *cfg) {
    enum cfg_status status=0;
    int r_units=0;

    char *mstr = cfg_get_string(cfg,"r_units", &status);
    if (status) {
        wlog("    radius units not sent, defaulting to Mpc\n");
        // not sent, default to Mpc
        return UNITS_MPC;
    }

    if (0 == do_strncmp(mstr,UNITS_MPC_STR)) {
        r_units=UNITS_MPC;
    } else if (0 == do_strncmp(mstr,UNITS_ARCMIN_STR)) {
        r_units=UNITS_ARCMIN;
    } else {
        fprintf(stderr, "Config Error: bad r_units: '%s'\n", mstr);
        exit(1);
    }

    free(mstr);

    return r_units;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
leaq 0xc(%rsp), %r14
movl $0x0, (%r14)
leaq 0x3690(%rip), %rsi      # 0x9b35
movq %r14, %rdx
callq 0x7251
cmpl $0x0, (%r14)
jne 0x6501
movq %rax, %rbx
leaq 0x3648(%rip), %rsi      # 0x9b05
movq %rax, %rdi
callq 0x667d
testl %eax, %eax
je 0x64e9
leaq 0x3639(%rip), %rsi      # 0x9b09
movq %rbx, %rdi
callq 0x667d
movl $0x2, %ebp
testl %eax, %eax
je 0x64ee
movq %rbx, %rdi
callq 0x35a5
movl $0x1, %ebp
movq %rbx, %rdi
callq 0x2030
movl %ebp, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
callq 0x3583
movl $0x1, %ebp
jmp 0x64f6
// File: /workspace/github_c_makefile_star2_O3/esheldon[P]xshear/src/sconfig.c
// Function: get_shear_units
static int get_shear_units(struct cfg *cfg) {
    enum cfg_status status=0;
    int shear_units=0;

    char *mstr = cfg_get_string(cfg,"shear_units", &status);
    if (status) {
        wlog("    shear units not sent, defaulting to deltasig\n");
        // not sent, default to Mpc
        return UNITS_DELTASIG;
    }

    if (0 == do_strncmp(mstr,UNITS_DELTASIG_STR)) {
        shear_units=UNITS_DELTASIG;
    } else if (0 == do_strncmp(mstr,UNITS_SHEAR_STR)) {
        shear_units=UNITS_SHEAR;
    } else if (0 == do_strncmp(mstr,UNITS_BOTH_STR)) {
        shear_units=UNITS_BOTH;
    } else {
        fprintf(stderr, "Config Error: bad shear_units: '%s'\n", mstr);
        exit(1);
    }

    free(mstr);

    return shear_units;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
leaq 0xc(%rsp), %r14
movl $0x0, (%r14)
leaq 0x3609(%rip), %rsi      # 0x9b31
movq %r14, %rdx
callq 0x7251
cmpl $0x0, (%r14)
jne 0x659e
movq %rax, %rbx
leaq 0x362f(%rip), %rsi      # 0x9b6f
movq %rax, %rdi
callq 0x667d
testl %eax, %eax
je 0x657f
leaq 0x3625(%rip), %rsi      # 0x9b78
movq %rbx, %rdi
callq 0x667d
testl %eax, %eax
je 0x6586
leaq 0x3618(%rip), %rsi      # 0x9b7e
movq %rbx, %rdi
callq 0x667d
movl $0x3, %ebp
testl %eax, %eax
je 0x658b
movq %rbx, %rdi
callq 0x35eb
movl $0x1, %ebp
jmp 0x658b
movl $0x2, %ebp
movq %rbx, %rdi
callq 0x2030
movl %ebp, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
callq 0x35c9
movl $0x1, %ebp
jmp 0x6593