LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/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
pushq $0x18
popq %rax
pushq $0x10
popq %rcx
movq (%r14), %rdx
testq %rdx, %rdx
je 0x368c
movq %rax, %rsi
cmpq %r15, (%rdx)
jg 0x3684
movq %rcx, %rsi
jge 0x36b8
addq %rsi, %rdx
movq %rdx, %r14
jmp 0x366f
pushq $0x20
popq %rdi
callq 0x2200
movq %rax, (%r14)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movq %r15, (%rax)
xorl %eax, %eax
callq 0x6b20
movq (%r14), %rcx
movq %rax, 0x8(%rcx)
movq (%r14), %rax
movq 0x8(%rax), %rax
jmp 0x36bc
movq 0x8(%rdx), %rax
movq (%rax), %r15
cmpq 0x8(%rax), %r15
jne 0x3749
leaq (%r15,%r15), %rdx
testq %r15, %r15
pushq $0x1
popq %r12
cmovneq %rdx, %r12
movq %r15, %rcx
cmpq %r15, %r12
jae 0x36e6
movq %rdx, (%rax)
movq %r12, %rcx
cmpq $0x1, %r12
adcq $0x0, %r12
cmpq %r15, %r12
jne 0x36f8
movq %rcx, %r15
jmp 0x3749
movq 0x10(%rax), %rdi
leaq (,%r12,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 0x3764
movq %r12, %rdx
subq %r15, %rdx
jbe 0x3742
shlq $0x3, %rdx
leaq (%rcx,%r15,8), %rdi
xorl %esi, %esi
callq 0x2120
movq (%r14), %rax
movq 0x8(%rax), %rax
movq %r12, 0x8(%rax)
movq (%rax), %r15
leaq 0x1(%r15), %rcx
movq %rcx, (%rax)
movq 0x10(%rax), %rax
movq %rbx, (%rax,%r15,8)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq 0xa88d(%rip), %rax      # 0xdff8
movq (%rax), %rcx
leaq 0x597c(%rip), %rdi      # 0x90f1
pushq $0x15
popq %rsi
pushq $0x1
popq %rdx
callq 0x2290
pushq $0x1
popq %rdi
callq 0x2280
// File: /workspace/github_c_makefile_star2_O2/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 0x37d1
pushq %rbx
movq %rdi, %rbx
movq 0x8(%rdi), %rax
testq %rax, %rax
je 0x37b1
movq 0x10(%rax), %rdi
callq 0x2030
movq 0x8(%rbx), %rdi
callq 0x2030
andq $0x0, 0x8(%rbx)
movq 0x18(%rbx), %rdi
callq 0x3788
andq $0x0, 0x18(%rbx)
movq 0x10(%rbx), %rdi
callq 0x3788
movq %rbx, %rdi
callq 0x2030
popq %rbx
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O2/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:
movq %rdi, %rax
pushq $0x18
popq %rcx
pushq $0x10
popq %rdx
testq %rax, %rax
je 0x37f5
movq %rcx, %rdi
cmpq %rsi, (%rax)
jg 0x37ef
movq %rdx, %rdi
jge 0x37f5
movq (%rax,%rdi), %rax
jmp 0x37dd
retq
// File: /workspace/github_c_makefile_star2_O2/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 %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %esi, %r15d
movq %rdi, %rbx
pushq $0x9
popq %rbp
movq 0xa7bd(%rip), %r13      # 0xdff8
leaq 0x5bce(%rip), %r14      # 0x9410
testq %rbx, %rbx
je 0x387b
movq 0x10(%rbx), %rdi
leal 0x1(%r15), %r12d
movl %r12d, %esi
callq 0x3820
movl %ebp, %edi
movl %r15d, %esi
callq 0x37f6
movq (%r13), %rdi
movq (%rbx), %rdx
movq %r14, %rsi
xorl %eax, %eax
callq 0x21a0
movq 0x18(%rbx), %rbx
movl %r12d, %r15d
jmp 0x3842
pushq $0x9
popq %rdi
movl %r15d, %esi
callq 0x37f6
movq (%r13), %rsi
pushq $0x7e
popq %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2150
// File: /workspace/github_c_makefile_star2_O2/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
movq %rdi, %r14
xorl %ebx, %ebx
testq %r14, %r14
je 0x38d3
movq 0x8(%r14), %rax
movq 0x18(%r14), %rdi
movq (%rax), %r15
callq 0x38a0
movq 0x10(%r14), %r14
cmpq %rax, %r15
cmovaq %r15, %rax
cmpq %rbx, %rax
cmovaq %rax, %rbx
jmp 0x38aa
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x391f
movq %rdi, %rbx
pushq $0x1
popq %rdi
pushq $0x18
popq %rsi
callq 0x2170
testq %rax, %rax
je 0x3934
movq %rax, %r14
movq %rbx, (%rax)
movl $0x80, %esi
movq %rbx, %rdi
callq 0x2170
movq %rax, 0x8(%r14)
testq %rax, %rax
je 0x3952
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq 0xa6d2(%rip), %rax      # 0xdff8
movq (%rax), %rcx
leaq 0x58ae(%rip), %rdi      # 0x91de
pushq $0x1b
jmp 0x3947
movq 0xa6bd(%rip), %rax      # 0xdff8
movq (%rax), %rcx
leaq 0x58b5(%rip), %rdi      # 0x91fa
pushq $0x1f
popq %rsi
pushq $0x1
popq %rdx
callq 0x2290
jmp 0x396d
movq 0xa69f(%rip), %rax      # 0xdff8
movq (%rax), %rdi
leaq 0x58b7(%rip), %rsi      # 0x921a
movq %rbx, %rdx
xorl %eax, %eax
callq 0x21a0
pushq $0x1
popq %rdi
callq 0x2280
// File: /workspace/github_c_makefile_star2_O2/esheldon[P]xshear/src/lens.c
// Function: lcat_add_search_angle
void lcat_add_search_angle(LensCatalog* lcat, double rmax) {
    for (size_t i=0; i<lcat->size; i++) {
        Lens* lens = &lcat->data[i];

        double search_angle = rmax/lens->da;
        lens->cos_search_angle = cos(search_angle);
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movsd %xmm0, (%rsp)
movq %rdi, %rbx
pushq $0x58
popq %r14
xorl %r15d, %r15d
cmpq (%rbx), %r15
jae 0x3c89
movq 0x8(%rbx), %r12
movsd (%rsp), %xmm0
divsd -0x38(%r12,%r14), %xmm0
callq 0x2140
movsd %xmm0, (%r12,%r14)
incq %r15
subq $-0x80, %r14
jmp 0x3c60
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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)
movq %rsi, %rbx
movq %rdi, %r14
pushq $0x50
popq %r15
xorl %r12d, %r12d
cmpq (%r14), %r12
jae 0x3d03
movq 0x8(%r14), %r13
xorl %eax, %eax
callq 0x7444
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 0x24a2
movq (%r13,%r15), %rdi
callq 0x788d
incq %r12
subq $-0x80, %r15
jmp 0x3cb5
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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:
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
cmpq (%rbx), %r12
jae 0x3d6d
movq 0x8(%rbx), %rax
movq %r12, %rcx
shlq $0x7, %rcx
leaq (%rax,%rcx), %r13
addq $0x50, %r13
xorl %ebp, %ebp
movq (%r13), %rax
cmpq (%rax), %rbp
jae 0x3d68
movq 0x10(%rax), %rax
movq (%rax,%rbp,8), %rsi
subq 0x10(%r14), %rsi
movq %r15, %rdi
movq %r12, %rdx
callq 0x3658
incq %rbp
jmp 0x3d43
incq %r12
jmp 0x3d29
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 0xa262(%rip), %r15      # 0xdff8
movq (%r15), %rdi
leaq 0x557a(%rip), %rsi      # 0x931a
xorl %eax, %eax
callq 0x21a0
movq (%r15), %rdi
movsd 0x8(%rbx,%r14), %xmm0
leaq 0x5578(%rip), %rsi      # 0x9330
movb $0x1, %al
callq 0x21a0
movq (%r15), %rdi
movsd 0x10(%rbx,%r14), %xmm0
leaq 0x5574(%rip), %rsi      # 0x9344
movb $0x1, %al
callq 0x21a0
movq (%r15), %rdi
movsd 0x18(%rbx,%r14), %xmm0
leaq 0x5570(%rip), %rsi      # 0x9358
movb $0x1, %al
callq 0x21a0
movq (%r15), %rdi
movsd 0x20(%rbx,%r14), %xmm0
leaq 0x556c(%rip), %rsi      # 0x936c
movb $0x1, %al
callq 0x21a0
movq (%r15), %rdi
movq 0x48(%rbx,%r14), %rdx
leaq 0x556a(%rip), %rsi      # 0x9380
xorl %eax, %eax
callq 0x21a0
movq (%r15), %rdi
movsd 0x60(%rbx,%r14), %xmm0
leaq 0x5566(%rip), %rsi      # 0x9394
movb $0x1, %al
callq 0x21a0
movq (%r15), %rdi
movsd 0x68(%rbx,%r14), %xmm0
leaq 0x5562(%rip), %rsi      # 0x93a8
movb $0x1, %al
callq 0x21a0
movq (%r15), %rdi
movsd 0x70(%rbx,%r14), %xmm0
leaq 0x555e(%rip), %rsi      # 0x93bc
movb $0x1, %al
callq 0x21a0
movq (%r15), %rdi
movsd 0x78(%rbx,%r14), %xmm0
leaq 0x555a(%rip), %rsi      # 0x93d0
movb $0x1, %al
callq 0x21a0
movq (%r15), %rdi
movq 0x50(%rbx,%r14), %rax
movq (%rax), %rdx
leaq 0x5555(%rip), %rsi      # 0x93e4
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 0x5540(%rip), %rsi      # 0x93f7
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
jmp 0x21a0
// File: /workspace/github_c_makefile_star2_O2/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 0x3f3f
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x8(%rdi), %r14
addq $0x50, %r14
xorl %r15d, %r15d
cmpq (%rbx), %r15
jae 0x3f20
movq (%r14), %rax
testq %rax, %rax
je 0x3f17
movq 0x10(%rax), %rdi
callq 0x2030
movq (%r14), %rdi
callq 0x2030
andq $0x0, (%r14)
incq %r15
subq $-0x80, %r14
jmp 0x3ef5
movq 0x8(%rbx), %rdi
callq 0x2030
movq 0x10(%rbx), %rdi
callq 0x3788
movq %rbx, %rdi
callq 0x2030
popq %rbx
popq %r14
popq %r15
xorl %eax, %eax
retq
nop
// File: /workspace/github_c_makefile_star2_O2/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:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq 0x8(%rdi), %r15
xorl %r12d, %r12d
cmpq (%r14), %r12
jae 0x4205
movq %r15, %rdi
movq %rbx, %rsi
callq 0x4211
subq $-0x80, %r15
incq %r12
jmp 0x41ec
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x447f
movq %rax, %r14
xorl %r15d, %r15d
xorl %r12d, %r12d
cmpq (%rbx), %r12
jae 0x4470
movq 0x8(%rbx), %rsi
addq %r15, %rsi
movq %r14, %rdi
callq 0x464f
incq %r12
subq $-0x80, %r15
jmp 0x4453
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/esheldon[P]xshear/src/lensum.c
// Function: lensum_add
void lensum_add(Lensum* self, Lensum* src) {

    self->weight   += src->weight;
    self->totpairs += src->totpairs;

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

}

// Assembly:
movsd 0x18(%rsi), %xmm0
addsd 0x18(%rdi), %xmm0
movsd %xmm0, 0x18(%rdi)
movq 0x20(%rsi), %rax
addq %rax, 0x20(%rdi)
xorl %eax, %eax
cmpq 0x28(%rsi), %rax
jae 0x4759
movq 0x30(%rsi), %rcx
movq (%rcx,%rax,8), %rcx
movq 0x30(%rdi), %rdx
addq %rcx, (%rdx,%rax,8)
movq 0x38(%rsi), %rcx
movsd (%rcx,%rax,8), %xmm0
movq 0x38(%rdi), %rcx
addsd (%rcx,%rax,8), %xmm0
movsd %xmm0, (%rcx,%rax,8)
movq 0x40(%rsi), %rcx
movsd (%rcx,%rax,8), %xmm0
movq 0x40(%rdi), %rcx
addsd (%rcx,%rax,8), %xmm0
movsd %xmm0, (%rcx,%rax,8)
movq 0x48(%rsi), %rcx
movsd (%rcx,%rax,8), %xmm0
movq 0x48(%rdi), %rcx
addsd (%rcx,%rax,8), %xmm0
movsd %xmm0, (%rcx,%rax,8)
movq 0x50(%rsi), %rcx
movsd (%rcx,%rax,8), %xmm0
movq 0x50(%rdi), %rcx
addsd (%rcx,%rax,8), %xmm0
movsd %xmm0, (%rcx,%rax,8)
movq 0x58(%rsi), %rcx
movsd (%rcx,%rax,8), %xmm0
movq 0x58(%rdi), %rcx
addsd (%rcx,%rax,8), %xmm0
movsd %xmm0, (%rcx,%rax,8)
movq 0x60(%rsi), %rcx
movsd (%rcx,%rax,8), %xmm0
movq 0x60(%rdi), %rcx
addsd (%rcx,%rax,8), %xmm0
movsd %xmm0, (%rcx,%rax,8)
movq 0x68(%rsi), %rcx
movsd (%rcx,%rax,8), %xmm0
movq 0x68(%rdi), %rcx
addsd (%rcx,%rax,8), %xmm0
movsd %xmm0, (%rcx,%rax,8)
movq 0x70(%rsi), %rcx
movsd (%rcx,%rax,8), %xmm0
movq 0x70(%rdi), %rcx
addsd (%rcx,%rax,8), %xmm0
movsd %xmm0, (%rcx,%rax,8)
movq 0x78(%rsi), %rcx
movsd (%rcx,%rax,8), %xmm0
movq 0x78(%rdi), %rcx
addsd (%rcx,%rax,8), %xmm0
movsd %xmm0, (%rcx,%rax,8)
incq %rax
jmp 0x4668
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x986e(%rip), %r12      # 0xdff8
movq (%r12), %rdi
movq 0x10(%rbx), %rdx
leaq 0x4d48(%rip), %rsi      # 0x94e1
xorl %r14d, %r14d
xorl %eax, %eax
callq 0x21a0
movq (%r12), %rdi
movsd 0x18(%rbx), %xmm0
leaq 0x4d40(%rip), %rsi      # 0x94f3
movb $0x1, %al
callq 0x21a0
movq (%r12), %rdi
movq 0x20(%rbx), %rdx
leaq 0x4d3a(%rip), %rsi      # 0x9503
xorl %eax, %eax
callq 0x21a0
movq (%r12), %rdi
movq 0x28(%rbx), %rdx
leaq 0x4d36(%rip), %rsi      # 0x9515
xorl %eax, %eax
callq 0x21a0
movq (%r12), %rcx
leaq 0x4d36(%rip), %rdi      # 0x9527
pushq $0x55
popq %rsi
pushq $0x1
popq %r15
movq %r15, %rdx
callq 0x2290
movq (%r12), %rcx
leaq 0x4d72(%rip), %rdi      # 0x957d
pushq $0x44
popq %rsi
movq %r15, %rdx
callq 0x2290
movq (%r12), %rsi
pushq $0xa
popq %rbp
movl %ebp, %edi
callq 0x2150
leaq 0x4d97(%rip), %r15      # 0x95c2
cmpq 0x28(%rbx), %r14
jae 0x48f2
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 0x4bac(%rip), %xmm10    # 0x9418
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
jmp 0x482b
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/esheldon[P]xshear/src/lensum.c
// Function: lensum_free
Lensum* lensum_free(Lensum* self) {
    if (self != NULL) {
        free(self->npair);
        free(self->rsum);
        free(self->wsum);
        free(self->ssum);
        free(self->dsum);
        free(self->osum);
        free(self->dsensum_w);
        free(self->osensum_w);
        free(self->dsensum_s);
        free(self->osensum_s);
    }
    free(self);
    return NULL;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
testq %rdi, %rdi
je 0x4962
movq 0x30(%rbx), %rdi
callq 0x2030
movq 0x38(%rbx), %rdi
callq 0x2030
movq 0x40(%rbx), %rdi
callq 0x2030
movq 0x48(%rbx), %rdi
callq 0x2030
movq 0x50(%rbx), %rdi
callq 0x2030
movq 0x58(%rbx), %rdi
callq 0x2030
movq 0x60(%rbx), %rdi
callq 0x2030
movq 0x68(%rbx), %rdi
callq 0x2030
movq 0x70(%rbx), %rdi
callq 0x2030
movq 0x78(%rbx), %rdi
callq 0x2030
movq %rbx, %rdi
callq 0x2030
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x4a7a
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpq $0x0, 0x8(%rdi)
je 0x4a67
pushq $0x78
popq %r15
xorl %r12d, %r12d
movq 0x8(%rbx), %r14
cmpq (%rbx), %r12
jae 0x4a5f
movq -0x48(%r14,%r15), %rdi
callq 0x2030
movq -0x40(%r14,%r15), %rdi
callq 0x2030
movq -0x38(%r14,%r15), %rdi
callq 0x2030
movq -0x30(%r14,%r15), %rdi
callq 0x2030
movq -0x28(%r14,%r15), %rdi
callq 0x2030
movq -0x20(%r14,%r15), %rdi
callq 0x2030
movq -0x18(%r14,%r15), %rdi
callq 0x2030
movq -0x10(%r14,%r15), %rdi
callq 0x2030
movq -0x8(%r14,%r15), %rdi
callq 0x2030
movq (%r14,%r15), %rdi
callq 0x2030
incq %r12
subq $-0x80, %r15
jmp 0x49ea
movq %r14, %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_O2/esheldon[P]xshear/src/lensum.c
// Function: lensum_copy
Lensum* lensum_copy(Lensum* lensum) {
    int i=0;

    Lensum* copy=lensum_new(lensum->nbin, lensum->shear_style, lensum->scstyle, lensum->shear_units);
    copy->index = lensum->index;
    copy->weight = lensum->weight;
    copy->totpairs = lensum->totpairs;

    copy->nbin = lensum->nbin;

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

    return copy;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq 0x28(%rdi), %rdi
movl 0x8(%rbx), %edx
movl (%rbx), %esi
movl 0x4(%rbx), %ecx
callq 0x447f
movq 0x10(%rbx), %rcx
movq %rcx, 0x10(%rax)
movsd 0x18(%rbx), %xmm0
movsd %xmm0, 0x18(%rax)
movq 0x20(%rbx), %rcx
movq %rcx, 0x20(%rax)
movq 0x28(%rbx), %rcx
movq %rcx, 0x28(%rax)
xorl %edx, %edx
testq %rcx, %rcx
cmovleq %rdx, %rcx
cmpq %rdx, %rcx
je 0x4e18
movq 0x30(%rbx), %rsi
movq (%rsi,%rdx,8), %rsi
movq 0x30(%rax), %rdi
movq %rsi, (%rdi,%rdx,8)
movq 0x38(%rbx), %rsi
movsd (%rsi,%rdx,8), %xmm0
movq 0x38(%rax), %rsi
movsd %xmm0, (%rsi,%rdx,8)
movq 0x40(%rbx), %rsi
movsd (%rsi,%rdx,8), %xmm0
movq 0x40(%rax), %rsi
movsd %xmm0, (%rsi,%rdx,8)
movq 0x48(%rbx), %rsi
movsd (%rsi,%rdx,8), %xmm0
movq 0x48(%rax), %rsi
movsd %xmm0, (%rsi,%rdx,8)
movq 0x50(%rbx), %rsi
movsd (%rsi,%rdx,8), %xmm0
movq 0x50(%rax), %rsi
movsd %xmm0, (%rsi,%rdx,8)
movq 0x58(%rbx), %rsi
movsd (%rsi,%rdx,8), %xmm0
movq 0x58(%rax), %rsi
movsd %xmm0, (%rsi,%rdx,8)
movq 0x70(%rbx), %rsi
movsd (%rsi,%rdx,8), %xmm0
movq 0x70(%rax), %rsi
movsd %xmm0, (%rsi,%rdx,8)
movq 0x78(%rbx), %rsi
movsd (%rsi,%rdx,8), %xmm0
movq 0x78(%rax), %rsi
movsd %xmm0, (%rsi,%rdx,8)
movq 0x60(%rbx), %rsi
movsd (%rsi,%rdx,8), %xmm0
movq 0x60(%rax), %rsi
movsd %xmm0, (%rsi,%rdx,8)
movq 0x68(%rbx), %rsi
movsd (%rsi,%rdx,8), %xmm0
movq 0x68(%rax), %rsi
movsd %xmm0, (%rsi,%rdx,8)
incq %rdx
jmp 0x4d55
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/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:
orq $-0x1, 0x10(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%rdi)
xorl %eax, %eax
cmpq 0x28(%rdi), %rax
jae 0x4e8d
movq 0x30(%rdi), %rcx
andq $0x0, (%rcx,%rax,8)
movq 0x40(%rdi), %rcx
andq $0x0, (%rcx,%rax,8)
movq 0x48(%rdi), %rcx
andq $0x0, (%rcx,%rax,8)
movq 0x50(%rdi), %rcx
andq $0x0, (%rcx,%rax,8)
movq 0x58(%rdi), %rcx
andq $0x0, (%rcx,%rax,8)
movq 0x38(%rdi), %rcx
andq $0x0, (%rcx,%rax,8)
movq 0x70(%rdi), %rcx
andq $0x0, (%rcx,%rax,8)
movq 0x78(%rdi), %rcx
andq $0x0, (%rcx,%rax,8)
movq 0x60(%rdi), %rcx
andq $0x0, (%rcx,%rax,8)
movq 0x68(%rdi), %rcx
andq $0x0, (%rcx,%rax,8)
incq %rax
jmp 0x4e28
retq
nop
// File: /workspace/github_c_makefile_star2_O2/esheldon[P]xshear/src/sconfig.c
// Function: sconfig_free
ShearConfig* sconfig_free(ShearConfig* self) {
    if (self != NULL) {
        free(self->zl);
    }
    free(self);
    return NULL;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
testq %rdi, %rdi
je 0x572f
movq 0x38(%rbx), %rdi
callq 0x2030
movq %rbx, %rdi
callq 0x2030
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/esheldon[P]xshear/src/sconfig.c
// Function: sconfig_open_pair_url
void sconfig_open_pair_url(ShearConfig* c, const char* url) {
    c->pair_fd = fopen(url, "w");
    if(!c->pair_fd) {
        fprintf(stderr,"Could not open pair log file %s\n", url);
        exit(1);
    }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x3f7e(%rip), %rsi      # 0x98f3
movq %rbx, %rdi
callq 0x2240
movq %rax, 0x60(%r14)
testq %rax, %rax
je 0x598e
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq 0x8663(%rip), %rax      # 0xdff8
movq (%rax), %rdi
leaq 0x3f56(%rip), %rsi      # 0x98f5
movq %rbx, %rdx
xorl %eax, %eax
callq 0x21a0
pushq $0x1
popq %rdi
callq 0x2280
// File: /workspace/github_c_makefile_star2_O2/esheldon[P]xshear/src/config.c
// Function: cfg_strarr_free
char **cfg_strarr_free(char **arr, size_t size)
{
    size_t i=0;
    if (arr) {
        for (i=0; i<size; i++) {
            free(arr[i]);
            arr[i]=NULL;
        }
        free(arr); arr=NULL;
    }
    return NULL;
}

// Assembly:
testq %rdi, %rdi
je 0x5a20
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
xorl %r15d, %r15d
cmpq %r15, %r14
je 0x5a13
movq (%rbx,%r15,8), %rdi
callq 0x2030
andq $0x0, (%rbx,%r15,8)
incq %r15
jmp 0x59fb
movq %rbx, %rdi
callq 0x2030
popq %rbx
popq %r14
popq %r15
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O2/esheldon[P]xshear/src/config.c
// Function: cfg_free
struct cfg *cfg_free(struct cfg *self)
{
    if (self) {
        if (self->fields) {
            size_t i=0;
            for (i=0; i<self->size; i++) {
                self->fields[i] = cfg_field_free(self->fields[i]);
            }
        }
        free(self->fields); self->fields=NULL;
        free(self);
    }
    return NULL;
}

// Assembly:
testq %rdi, %rdi
je 0x5a88
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpq $0x0, 0x10(%rdi)
je 0x5a72
xorl %r14d, %r14d
movq 0x10(%rbx), %rdi
cmpq (%rbx), %r14
jae 0x5a74
movq (%rdi,%r14,8), %rdi
callq 0x5a8b
movq 0x10(%rbx), %rax
andq $0x0, (%rax,%r14,8)
incq %r14
jmp 0x5a52
xorl %edi, %edi
callq 0x2030
movq %rbx, %rdi
callq 0x2030
addq $0x8, %rsp
popq %rbx
popq %r14
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O2/esheldon[P]xshear/src/config.c
// Function: cfg_field_free
static struct cfg_field *cfg_field_free(struct cfg_field *self)
{
    if (self) {
        // We always zero memory on creation, so this is OK
        free(self->name);
        self->strvec = cfg_strvec_free(self->strvec);
        self->sub = cfg_free(self->sub);
        free(self);
    }
    return NULL;
}

// Assembly:
testq %rdi, %rdi
je 0x5adf
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %rdi
callq 0x2030
movq 0x10(%rbx), %r14
testq %r14, %r14
je 0x5ac2
movq 0x10(%r14), %rdi
testq %rdi, %rdi
je 0x5aba
movq 0x8(%r14), %rsi
callq 0x59e8
movq %r14, %rdi
callq 0x2030
andq $0x0, 0x10(%rbx)
movq 0x18(%rbx), %rdi
callq 0x5a3c
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x2030
retq
// File: /workspace/github_c_makefile_star2_O2/esheldon[P]xshear/src/config.c
// Function: cfg_print
void cfg_print(struct cfg *self, FILE* stream)
{
    size_t el=0;
    int n_indent=0;

    if (!self)
        return;

    for (el=0; el<self->size; el++) {
        cfg_field_print(self->fields[el], n_indent, stream);
    }

}

// Assembly:
testq %rdi, %rdi
je 0x5b14
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
xorl %r15d, %r15d
cmpq (%r14), %r15
jae 0x5b0f
movq 0x10(%r14), %rax
movq (%rax,%r15,8), %rdi
xorl %esi, %esi
movq %rbx, %rdx
callq 0x5b15
incq %r15
jmp 0x5af3
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/esheldon[P]xshear/src/config.c
// Function: cfg_field_print
static void cfg_field_print(struct cfg_field *self, int n_indent, FILE* stream)
{
    size_t el=0;
    if (!self)
        return;

    // scalars not allowed to be "empty"
    if (CFG_TYPE_SCALAR == CFG_FIELD_TYPE(self) && 0==CFG_FIELD_ARR_SIZE(self))
        return;

    print_spaces(n_indent, stream);
    fprintf(stream, "%s", CFG_FIELD_NAME(self));
    fprintf(stream," %c ", CFG_ASSIGN);
    if (CFG_TYPE_ARRAY==CFG_FIELD_TYPE(self)) {

        fprintf(stream,"%c", CFG_ARRAY_BEG);
        for (el=0; el<CFG_FIELD_ARR_SIZE(self); el++) {
            cfg_field_print_data(self, el, stream);
            /*
            if (el < (CFG_FIELD_ARR_SIZE(self)-1)) {
                fprintf(stream,"%c", CFG_ARRAY_SEP);
            }
            */
            if (el < (CFG_FIELD_ARR_SIZE(self)-1)) {
                fprintf(stream," ");
            }
        }
        fprintf(stream,"%c", CFG_ARRAY_END);

    } else if (CFG_TYPE_CFG == CFG_FIELD_TYPE(self)) {

        fprintf(stream,"%c\n", CFG_CFG_BEG);
        _cfg_print(CFG_FIELD_GET_SUB(self),n_indent+4,stream);
        print_spaces(n_indent, stream);
        fprintf(stream,"%c", CFG_CFG_END);

    } else {
        cfg_field_print_data(self, 0, stream);
    }
    fprintf(stream,"\n");
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
testq %rdi, %rdi
je 0x5bc5
movq %rdx, %rbx
movl %esi, %r15d
movq %rdi, %r14
cmpl $0x0, 0x8(%rdi)
jne 0x5b43
movq 0x10(%r14), %rax
cmpq $0x0, (%rax)
je 0x5bc5
movl %r15d, %edi
movq %rbx, %rsi
callq 0x66e9
movq (%r14), %rdi
movq %rbx, %rsi
callq 0x2110
leaq 0x4140(%rip), %rsi      # 0x9ca0
pushq $0x3d
popq %rdx
movq %rbx, %rdi
xorl %eax, %eax
callq 0x21a0
movl 0x8(%r14), %eax
cmpl $0x2, %eax
je 0x5bd2
cmpl $0x1, %eax
jne 0x5c2a
pushq $0x5b
popq %rdi
movq %rbx, %rsi
callq 0x2150
xorl %r15d, %r15d
pushq $0x20
popq %rbp
movq 0x10(%r14), %rax
cmpq (%rax), %r15
jae 0x5bce
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x6713
movq 0x10(%r14), %rax
movq (%rax), %rax
decq %rax
cmpq %rax, %r15
jae 0x5bc0
movl %ebp, %edi
movq %rbx, %rsi
callq 0x2150
incq %r15
jmp 0x5b90
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
pushq $0x5d
jmp 0x5c1f
leaq 0x40cc(%rip), %rsi      # 0x9ca5
pushq $0x7b
popq %rdx
movq %rbx, %rdi
xorl %eax, %eax
callq 0x21a0
movq 0x18(%r14), %r14
testq %r14, %r14
je 0x5c12
leal 0x4(%r15), %ebp
xorl %r12d, %r12d
cmpq (%r14), %r12
jae 0x5c12
movq 0x10(%r14), %rax
movq (%rax,%r12,8), %rdi
movl %ebp, %esi
movq %rbx, %rdx
callq 0x5b15
incq %r12
jmp 0x5bf6
movl %r15d, %edi
movq %rbx, %rsi
callq 0x66e9
pushq $0x7d
popq %rdi
movq %rbx, %rsi
callq 0x2150
jmp 0x5c37
movq %r14, %rdi
xorl %esi, %esi
movq %rbx, %rdx
callq 0x6713
pushq $0xa
popq %rdi
movq %rbx, %rsi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x2150
// File: /workspace/github_c_makefile_star2_O2/esheldon[P]xshear/src/config.c
// Function: cfg_read
struct cfg *cfg_read(const char* filename, enum cfg_status *status) 
{
    struct cfg *cfg=NULL;
    struct cfg_string *str=NULL;
    size_t current=0;

    str = read_whole_file(filename);
    if (!str) {
        *status = CFG_READ_ERROR;
        return NULL;
    }

    cfg=cfg_parse(str, &current, status);
    str=cfg_string_free(str);
    return cfg;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movq %rdi, %r15
andq $0x0, 0x8(%rsp)
leaq 0x3f02(%rip), %rsi      # 0x9b6c
callq 0x2240
testq %rax, %rax
je 0x5d31
movq %rax, %r14
pushq $0x2
popq %rdx
movq %rax, %rdi
xorl %esi, %esi
callq 0x2220
movq %r14, %rdi
callq 0x21b0
movq %rax, %r15
movq %r14, %rdi
callq 0x2100
leaq 0x1(%r15), %rsi
pushq $0x1
popq %rdi
callq 0x2170
testq %rax, %rax
je 0x5d91
movq %rax, %r12
pushq $0x1
popq %rsi
movq %rax, %rdi
movq %r15, %rdx
movq %r14, %rcx
callq 0x20b0
movq %rax, %r13
movq %r14, %rdi
callq 0x2090
cmpq %r15, %r13
jne 0x5d65
testl %eax, %eax
jne 0x5d65
pushq $0x1
popq %rdi
pushq $0x10
popq %rsi
callq 0x2170
testq %rax, %rax
je 0x5dae
movq %rax, %r13
movq %r15, (%rax)
movq %r12, 0x8(%rax)
movq %r14, %rdi
callq 0x20d0
testq %r13, %r13
je 0x5d4c
leaq 0x8(%rsp), %rsi
movq %r13, %rdi
movq %rbx, %rdx
callq 0x5dd2
movq %rax, %rbx
movq 0x8(%r13), %rdi
callq 0x2030
movq %r13, %rdi
callq 0x2030
jmp 0x5d54
movq 0x82c0(%rip), %rax      # 0xdff8
movq (%rax), %rdi
leaq 0x3f6a(%rip), %rsi      # 0x9cac
movq %r15, %rdx
xorl %eax, %eax
callq 0x21a0
movl $0x2, (%rbx)
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq 0x828c(%rip), %rax      # 0xdff8
movq (%rax), %rcx
leaq 0x3f81(%rip), %rdi      # 0x9cf7
pushq $0x13
popq %rsi
pushq $0x1
popq %rdx
callq 0x2290
movq %r12, %rdi
callq 0x2030
xorl %r13d, %r13d
jmp 0x5cfe
movq 0x8260(%rip), %rax      # 0xdff8
movq (%rax), %rdi
leaq 0x3f23(%rip), %rsi      # 0x9cc5
movq %r15, %rdx
xorl %eax, %eax
callq 0x21a0
jmp 0x5dca
movq 0x8243(%rip), %rax      # 0xdff8
movq (%rax), %rcx
leaq 0x3f4c(%rip), %rdi      # 0x9d0b
pushq $0x38
popq %rsi
pushq $0x1
popq %rdx
callq 0x2290
pushq $0x1
popq %rdi
callq 0x2280
// File: /workspace/github_c_makefile_star2_O2/esheldon[P]xshear/src/config.c
// Function: cfg_find
static const struct cfg_field *cfg_find(const struct cfg *self, 
                                        const char* name, 
                                        enum cfg_status *status)
{
    size_t i=0;
    const struct cfg_field *field=NULL, *tmp=NULL;

    *status=CFG_NOT_FOUND;
    if (!self) {
        return field;
    }
    for (i=0; i<CFG_SIZE(self); i++) {
        tmp = CFG_FIELD(self,i);
        if (0 == strcmp(name, CFG_FIELD_NAME(tmp))) {
            *status=CFG_SUCCESS;
            field=tmp;
            break;
        }
    }

    return field;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl $0x7, (%rdx)
testq %rdi, %rdi
je 0x6318
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq (%rdi), %r13
xorl %ebp, %ebp
cmpq %rbp, %r13
je 0x6318
movq 0x10(%r15), %rax
movq (%rax,%rbp,8), %r12
movq (%r12), %rsi
movq %r14, %rdi
callq 0x2180
incq %rbp
testl %eax, %eax
jne 0x62f3
andl $0x0, (%rbx)
jmp 0x631b
xorl %r12d, %r12d
movq %r12, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/esheldon[P]xshear/src/config.c
// Function: extract_double
static double extract_double(const char *str, enum cfg_status *status)
{
    char *endptr=NULL;
    double val=0;

    *status = CFG_SUCCESS;

    endptr=(char*) str;
    val = strtod(str, &endptr);
    if (endptr == str) {
        fprintf(stderr,"Failed to convert data to a double: '%s'\n", str);
        *status=CFG_TYPE_ERROR;
    }
    return val;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
andl $0x0, (%rsi)
movq %rdi, %r14
leaq 0x8(%rsp), %r15
movq %rdi, (%r15)
movq %r15, %rsi
callq 0x20c0
cmpq %r14, (%r15)
je 0x635e
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq 0x7c93(%rip), %rax      # 0xdff8
movq (%rax), %rdi
leaq 0x3aa8(%rip), %rsi      # 0x9e17
movq %r14, %rdx
xorl %eax, %eax
movsd %xmm0, (%rsp)
callq 0x21a0
movsd (%rsp), %xmm0
movl $0x9, (%rbx)
jmp 0x6354
// File: /workspace/github_c_makefile_star2_O2/esheldon[P]xshear/src/config.c
// Function: cfg_get_dblarr
double *cfg_get_dblarr(const struct cfg *self,
                       const char *name,
                       size_t *size,
                       enum cfg_status *status)
{
    double *arr=NULL;
    const struct cfg_field *field=NULL;

    field = cfg_find(self, name, status);
    if (*status==CFG_SUCCESS) {
        if (CFG_TYPE_ARRAY != CFG_FIELD_TYPE(field)) {
            *status = CFG_TYPE_ERROR;
        } else {
            arr = extract_dblarr(field, size, status);
        }
    }
    return arr;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rdx, %r14
movq %rcx, %rdx
callq 0x62cf
cmpl $0x0, (%rbx)
jne 0x6411
movq %rax, %r12
cmpl $0x1, 0x8(%rax)
jne 0x640b
andq $0x0, (%r14)
andl $0x0, (%rbx)
movq 0x10(%r12), %rbp
testq %rbp, %rbp
je 0x6411
movq (%rbp), %r13
testq %r13, %r13
je 0x6411
pushq $0x8
popq %rsi
movq %r13, %rdi
callq 0x2170
testq %rax, %rax
je 0x6435
movq %rax, %r15
xorl %r12d, %r12d
cmpq %r13, %r12
jae 0x6426
movq 0x10(%rbp), %rax
movq (%rax,%r12,8), %rdi
movq %rbx, %rsi
callq 0x632d
cmpl $0x0, (%rbx)
jne 0x642b
movsd %xmm0, (%r15,%r12,8)
incq %r12
movq (%rbp), %r13
jmp 0x63e2
movl $0x9, (%rbx)
xorl %r15d, %r15d
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r13, (%r14)
jmp 0x6414
movq %r15, %rdi
callq 0x2030
jmp 0x6411
movq 0x7bbc(%rip), %rax      # 0xdff8
movq (%rax), %rdi
movq (%r12), %rdx
leaq 0x39f7(%rip), %rsi      # 0x9e41
xorl %eax, %eax
callq 0x21a0
pushq $0x1
popq %rdi
callq 0x2280
// File: /workspace/github_c_makefile_star2_O2/esheldon[P]xshear/src/config.c
// Function: extract_long
static long extract_long(const char *str, enum cfg_status *status)
{
    char *endptr=NULL;
    long val=0;

    *status = CFG_SUCCESS;

    endptr=(char*) str;
    val = strtol(str, &endptr, 10);
    if (endptr == str) {
        fprintf(stderr,"Failed to convert data to a long : '%s'\n", str);
        *status=CFG_TYPE_ERROR;
    }
    return val;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
andl $0x0, (%rsi)
movq %rdi, %r14
movq %rsp, %r12
movq %rdi, (%r12)
pushq $0xa
popq %rdx
movq %r12, %rsi
callq 0x21c0
movq %rax, %r15
cmpq %r14, (%r12)
je 0x64c3
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq 0x7b2e(%rip), %rax      # 0xdff8
movq (%rax), %rdi
leaq 0x39a2(%rip), %rsi      # 0x9e76
movq %r14, %rdx
xorl %eax, %eax
callq 0x21a0
movl $0x9, (%rbx)
jmp 0x64b4
// File: /workspace/github_c_makefile_star2_O2/esheldon[P]xshear/src/config.c
// Function: cfg_get_lonarr
long *cfg_get_lonarr(const struct cfg *self,
                       const char *name,
                       size_t *size,
                       enum cfg_status *status)
{
    long *arr=NULL;
    const struct cfg_field *field=NULL;

    field = cfg_find(self, name, status);
    if (*status==CFG_SUCCESS) {
        if (CFG_TYPE_ARRAY != CFG_FIELD_TYPE(field)) {
            *status = CFG_TYPE_ERROR;
        } else {
            arr = extract_lonarr(field, size, status);
        }
    }
    return arr;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rdx, %r14
movq %rcx, %rdx
callq 0x62cf
cmpl $0x0, (%rbx)
jne 0x656a
movq %rax, %r12
cmpl $0x1, 0x8(%rax)
jne 0x6564
andq $0x0, (%r14)
andl $0x0, (%rbx)
movq 0x10(%r12), %rbp
testq %rbp, %rbp
je 0x656a
movq (%rbp), %r13
testq %r13, %r13
je 0x656a
pushq $0x8
popq %rsi
movq %r13, %rdi
callq 0x2170
testq %rax, %rax
je 0x658e
movq %rax, %r15
xorl %r12d, %r12d
cmpq %r13, %r12
jae 0x657f
movq 0x10(%rbp), %rax
movq (%rax,%r12,8), %rdi
movq %rbx, %rsi
callq 0x6488
cmpl $0x0, (%rbx)
jne 0x6584
movq %rax, (%r15,%r12,8)
incq %r12
movq (%rbp), %r13
jmp 0x653d
movl $0x9, (%rbx)
xorl %r15d, %r15d
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r13, (%r14)
jmp 0x656d
movq %r15, %rdi
callq 0x2030
jmp 0x656a
movq 0x7a63(%rip), %rax      # 0xdff8
movq (%rax), %rdi
movq (%r12), %rdx
leaq 0x38fc(%rip), %rsi      # 0x9e9f
xorl %eax, %eax
callq 0x21a0
pushq $0x1
popq %rdi
callq 0x2280
// File: /workspace/github_c_makefile_star2_O2/esheldon[P]xshear/src/config.c
// Function: cfg_get_string
char *cfg_get_string(const struct cfg *self,
                     const char *name,
                     enum cfg_status *status)
{
    char *str=NULL;
    const struct cfg_field *field=NULL;

    field = cfg_find(self, name, status);
    if (*status==CFG_SUCCESS) {
        if (CFG_TYPE_SCALAR != CFG_FIELD_TYPE(field)) {
            *status = CFG_TYPE_ERROR;
        } else {
            if (0==CFG_FIELD_ARR_SIZE(field)) {
                *status = CFG_EMPTY;
            } else {
                str = cfg_strdup( CFG_FIELD_GET_DATA(field, 0) );
            }
        }
    }
    return str;
}

// Assembly:
pushq %rbx
movq %rdx, %rbx
callq 0x62cf
cmpl $0x0, (%rbx)
jne 0x65cc
cmpl $0x0, 0x8(%rax)
je 0x65d0
movl $0x9, (%rbx)
xorl %eax, %eax
popq %rbx
retq
movq 0x10(%rax), %rax
cmpq $0x0, (%rax)
je 0x65e4
movq 0x10(%rax), %rax
movq (%rax), %rdi
popq %rbx
jmp 0x65ec
movl $0x8, (%rbx)
jmp 0x65cc
// File: /workspace/github_c_makefile_star2_O2/esheldon[P]xshear/src/config.c
// Function: cfg_get_strarr
char **cfg_get_strarr(const struct cfg *self,
                      const char *name,
                      size_t *size,
                      enum cfg_status *status)
{
    char **sarr=NULL;
    const struct cfg_field *field=NULL;

    field = cfg_find(self, name, status);
    if (*status==CFG_SUCCESS) {
        if (CFG_TYPE_ARRAY != CFG_FIELD_TYPE(field)) {
            *status = CFG_TYPE_ERROR;
        } else {
            sarr = cfg_strvec2arr(CFG_FIELD_GET_VEC(field), size);
            if (!sarr) {
                *status=CFG_EMPTY;
            }
        }
    }
    return sarr;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rcx, %r14
movq %rdx, %rbx
movq %rcx, %rdx
callq 0x62cf
cmpl $0x0, (%r14)
jne 0x668b
cmpl $0x1, 0x8(%rax)
jne 0x6685
movq 0x10(%rax), %r12
andq $0x0, (%rbx)
pushq $0x8
popq %rax
testq %r12, %r12
je 0x6688
movq (%r12), %r15
testq %r15, %r15
je 0x6688
movq %r15, (%rbx)
pushq $0x8
popq %rsi
movq %r15, %rdi
callq 0x2170
testq %rax, %rax
je 0x669b
movq %rax, %r14
xorl %r13d, %r13d
cmpq %r15, %r13
jae 0x668e
movq 0x10(%r12), %rax
movq (%rax,%r13,8), %rdi
callq 0x65ec
movq %rax, (%r14,%r13,8)
incq %r13
movq (%rbx), %r15
jmp 0x6666
pushq $0x9
popq %rax
movl %eax, (%r14)
xorl %r14d, %r14d
movq %r14, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq 0x7956(%rip), %rax      # 0xdff8
movq (%rax), %rcx
leaq 0x3826(%rip), %rdi      # 0x9ed2
pushq $0x26
popq %rsi
pushq $0x1
popq %rdx
callq 0x2290
pushq $0x1
popq %rdi
callq 0x2280
// File: /workspace/github_c_makefile_star2_O2/esheldon[P]xshear/src/config.c
// Function: cfg_field_print_data
static void cfg_field_print_data(struct cfg_field *self, size_t el, FILE* stream)
{
    char *tmp=NULL;
    size_t len=0, i=0;
    int c=0;
    if (CFG_ELTYPE_QUOTED_STRING==CFG_FIELD_ELTYPE(self)) {
        tmp = CFG_FIELD_GET_DATA(self,el);
        len=strlen(tmp);
        fprintf(stream,"\"");
        for (i=0; i<len; i++) {
            c=tmp[i];
            if (c == '"') {
                fprintf(stream,"\\\"");
            } else {
                fprintf(stream,"%c", c);
            }
        }
        fprintf(stream,"\"");
    } else {
        fprintf(stream, "%s", CFG_FIELD_GET_DATA(self,el));
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
cmpl $0x1, 0xc(%rdi)
movq 0x10(%rdi), %rax
movq 0x10(%rax), %rax
movq (%rax,%rsi,8), %r14
jne 0x6786
movq %r14, %rdi
callq 0x20e0
movq %rax, %r15
pushq $0x22
popq %rdi
movq %rbx, %rsi
callq 0x2150
xorl %r12d, %r12d
pushq $0x2
popq %r13
pushq $0x1
popq %rbp
cmpq %r12, %r15
je 0x679f
movsbl (%r14,%r12), %edi
cmpl $0x22, %edi
jne 0x6779
leaq 0x3540(%rip), %rdi      # 0x9ca9
movq %r13, %rsi
movq %rbp, %rdx
movq %rbx, %rcx
callq 0x2290
jmp 0x6781
movq %rbx, %rsi
callq 0x2150
incq %r12
jmp 0x6753
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2110
pushq $0x22
popq %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2150
// File: /workspace/github_c_makefile_star2_O2/esheldon[P]xshear/src/config.c
// Function: find_nonwhite
static size_t find_nonwhite(const struct cfg_string *str, size_t current, enum cfg_status *status)
{
    size_t i=0, loc=0;

    loc=current;

    *status=CFG_EOF;
    // this accounts for case where current is out of bounds
    for (i=current; i<str->size; i++) {
        if (!isspace(str->data[i])) {

            if (str->data[i] == CFG_COMMENT) {
                // found a comment, skip to next EOL
                i = skip_comment(str, i, status);
                // also set loc in case we exit the loop
                loc=i;
                if (*status==CFG_EOF) { // EOF, loc remains at current
                    break;
                }
                continue;
            }

            *status=CFG_SUCCESS;
            loc=i;
            break;
        }
    }
    return loc;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r15
movl $0x6, (%rdx)
pushq $0xa
popq %rbp
movq %rsi, %r12
cmpq (%r15), %rbx
jae 0x6817
callq 0x22c0
movq (%rax), %rcx
movq 0x8(%r15), %rax
movsbq (%rax,%rbx), %rax
testb $0x20, 0x1(%rcx,%rax,2)
jne 0x6812
cmpb $0x23, %al
jne 0x681c
movq %r15, %rdi
movq %rbx, %rsi
movl %ebp, %edx
movq %r14, %rcx
callq 0x682c
movq %rax, %rbx
cmpl $0x6, (%r14)
movq %rax, %r12
je 0x6820
incq %rbx
jmp 0x67d5
movq %r12, %rbx
jmp 0x6820
andl $0x0, (%r14)
movq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/esheldon[P]xshear/src/config.c
// Function: find_char
static size_t find_char(const struct cfg_string *str, size_t current, int ch, 
                        enum cfg_status *status)
{
    size_t i=0, loc=-1;

    *status=CFG_EOF;
    // this accounts for case where current is out of bounds
    for (i=current; i<str->size; i++) {
        if (str->data[i] == ch) {
            *status=CFG_SUCCESS;
            loc=i;
            break;
        }
    }
    return loc;
}

// Assembly:
movq %rsi, %rax
movl $0x6, (%rcx)
movq (%rdi), %r8
pushq $-0x1
popq %rsi
cmpq %r8, %rax
jae 0x6853
movq 0x8(%rdi), %r9
movsbl (%r9,%rax), %r9d
cmpl %edx, %r9d
je 0x6857
incq %rax
jmp 0x683b
movq %rsi, %rax
retq
andl $0x0, (%rcx)
retq