LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/phluid61[P]hsf/src/token.c
// Function: SH_Token__init
SH_Token*
SH_Token__init(sh_char_t* value, size_t n, int* err) {
	SH_Token* obj;
	sh_char_t* ptr;
	sh_char_t  c;
	size_t m;

	__cascade(err, (SH_Token*)0);

	if (n < 1 || n > SH_TOKEN_LENGTH_MAX) {
		__raise(err, SH_E_TOKEN_TOO_LONG);
		return (SH_Token*)0;
	}

	c = *value;
	if (!LEGIT_START(c)) {
		__raise(err, SH_E_TOKEN_BAD_CHAR);
		return (SH_Token*)0;
	}

	ptr = value;
	m = 0;
	while (m < n) {
		c = *ptr;
		if (LEGIT(c)) {
			ptr++;
			m++;
		} else {
			__raise(err, SH_E_TOKEN_BAD_CHAR);
			return (SH_Token*)0;
		}
	}

	obj = (SH_Token*)malloc(sizeof(SH_Token));
	if ((SH_Token*)0 == obj) {
		__raise(err, SH_E_MALLOC_ERROR);
		return (SH_Token*)0;
	}

	obj->value = (sh_char_t*)malloc(sizeof(sh_char_t) * (m + 1));
	if ((sh_char_t*)0 == obj->value) {
		free(obj);
		__raise(err, SH_E_MALLOC_ERROR);
		return (SH_Token*)0;
	}

	memcpy((void*)obj->value, (const void*)value, m);
	obj->value[m] = SH_CHAR_C(0);
	obj->length = m;

	__clear(err);
	return obj;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
testq %rdx, %rdx
je 0x1164
cmpl $0x0, (%rbx)
jne 0x1173
leaq -0x201(%r14), %rax
cmpq $-0x200, %rax           # imm = 0xFE00
jae 0x117b
movl $0x140001, %eax         # imm = 0x140001
xorl %r12d, %r12d
jmp 0x1230
leaq -0x201(%r14), %rax
cmpq $-0x200, %rax           # imm = 0xFE00
jae 0x117b
xorl %r12d, %r12d
jmp 0x1232
movl $0xffffffc0, %eax       # imm = 0xFFFFFFC0
movzbl (%r15), %ecx
cmpq $0x40, %rcx
jb 0x11a1
addl %eax, %ecx
movabsq $0x7fffffe07fffffe, %rdx # imm = 0x7FFFFFE07FFFFFE
btq %rcx, %rdx
jb 0x11a6
jmp 0x1223
cmpl $0x2a, %ecx
jne 0x1223
xorl %ecx, %ecx
movabsq $0x57ffffffc7fffffe, %rdx # imm = 0x57FFFFFFC7FFFFFE
movabsq $0x7ffecfa00000000, %rsi # imm = 0x7FFECFA00000000
movzbl (%r15,%rcx), %edi
cmpq $0x40, %rdi
jb 0x11d1
addl %eax, %edi
btq %rdi, %rdx
jb 0x11d7
jmp 0x1223
btq %rdi, %rsi
jae 0x1223
incq %rcx
cmpq %rcx, %r14
jne 0x11bc
movl $0x10, %edi
callq 0x1050
testq %rax, %rax
je 0x123f
movq %rax, %r12
leaq 0x1(%r14), %rdi
callq 0x1050
movq %rax, (%r12)
testq %rax, %rax
je 0x1246
movq %rax, %r13
movq %rax, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1040
xorl %eax, %eax
movb $0x0, (%r13,%r14)
movq %r14, 0x8(%r12)
jmp 0x122b
movl $0x140002, %eax         # imm = 0x140002
xorl %r12d, %r12d
testq %rbx, %rbx
je 0x1232
movl %eax, (%rbx)
movq %r12, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movl $0x80000001, %eax       # imm = 0x80000001
jmp 0x1228
movq %r12, %rdi
callq 0x1030
xorl %r12d, %r12d
movl $0x80000001, %eax       # imm = 0x80000001
jmp 0x122b
// File: /workspace/github_c_makefile_star2_O3/nh13[P]ksw/src/parasail/tests/test_align.c
// Function: print_array_int
static void print_array_int(
        const char * filename,
        int * array,
        const char * const restrict s1, const int s1Len,
        const char * const restrict s2, const int s2Len,
        parasail_result_t *result)
{
    int i;
    int j;
    FILE *f = NULL;

    f = fopen(filename, "w");
    if (NULL == f) {
        printf("fopen(\"%s\") error: %s\n", filename, strerror(errno));
        exit(-1);
    }
    fprintf(f, "saturated=%d\n", parasail_result_is_saturated(result) ? 1 : 0);
    fprintf(f, " ");
    for (j=0; j<s2Len; ++j) {
        fprintf(f, "%4c", s2[j]);
    }
    fprintf(f, "\n");
    for (i=0; i<s1Len; ++i) {
        fprintf(f, "%c", s1[i]);
        for (j=0; j<s2Len; ++j) {
            fprintf(f, "%4d", array[i*s2Len + j]);
        }
        fprintf(f, "\n");
    }
    fclose(f);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %r9d, %ebx
movq %r8, %r13
movl %ecx, 0x8(%rsp)
movq %rdx, 0x20(%rsp)
movq %rsi, %r15
movq %rdi, %r14
movq 0x60(%rsp), %rbp
leaq 0x4236cf(%rip), %rsi    # 0x67465d
callq 0x1f01b0
testq %rax, %rax
je 0x251092
movq %rax, %r12
movq %rbp, %rdi
callq 0x2542be
xorl %edx, %edx
testl %eax, %eax
setne %dl
leaq 0x3fbab3(%rip), %rsi    # 0x64ca68
movq %r12, %rdi
xorl %eax, %eax
callq 0x1f0220
movl $0x20, %edi
movq %r12, %rsi
callq 0x1f01e0
movl %ebx, %r14d
movl %ebx, 0x14(%rsp)
testl %ebx, %ebx
jle 0x250ffb
leaq 0x3fba98(%rip), %rbp    # 0x64ca76
xorl %ebx, %ebx
movsbl (%r13,%rbx), %edx
movq %r12, %rdi
movq %rbp, %rsi
xorl %eax, %eax
callq 0x1f0220
incq %rbx
cmpq %rbx, %r14
jne 0x250fe0
movl $0xa, %edi
movq %r12, %rsi
callq 0x1f01e0
movl 0x8(%rsp), %eax
testl %eax, %eax
jle 0x25107c
movl %eax, %eax
movq %rax, 0x8(%rsp)
leaq (,%r14,4), %rax
movq %rax, 0x18(%rsp)
leaq 0x3fba4f(%rip), %r13    # 0x64ca7a
xorl %ebp, %ebp
movq 0x20(%rsp), %rax
movsbl (%rax,%rbp), %edi
movq %r12, %rsi
callq 0x1f01e0
cmpl $0x0, 0x14(%rsp)
jle 0x251060
xorl %ebx, %ebx
movl (%r15,%rbx,4), %edx
movq %r12, %rdi
movq %r13, %rsi
xorl %eax, %eax
callq 0x1f0220
incq %rbx
cmpq %rbx, %r14
jne 0x251047
movl $0xa, %edi
movq %r12, %rsi
callq 0x1f01e0
incq %rbp
addq 0x18(%rsp), %r15
cmpq 0x8(%rsp), %rbp
jne 0x25102d
movq %r12, %rdi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1f0170
callq 0x1f0030
movl (%rax), %edi
callq 0x1f0090
leaq 0x3fb9ac(%rip), %rdi    # 0x64ca51
movq %r14, %rsi
movq %rax, %rdx
xorl %eax, %eax
callq 0x1f0040
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x1f01d0
// File: /workspace/github_c_makefile_star2_O3/nh13[P]ksw/src/parasail/src/io.c
// Function: parasail_close
void parasail_close(parasail_file_t *pf)
{
    if (NULL == pf) {
        fprintf(stderr, "parasail_close: NULL file\n");
        return;
    }
#if defined(HAVE_SYS_MMAN_H)
    if (-1 == munmap((void*)pf->buf, pf->size)) {
        perror("munmap");
        fprintf(stderr, "parasail_close: cannot munmap file buffer\n");
    }
    if (-1 == close(pf->fd)) {
        perror("close");
        fprintf(stderr, "parasail_close: cannot close file descriptor\n");
    }
#else
    free((void*)pf->buf);
    /* file was already closed */
#endif
    free(pf);
}

// Assembly:
pushq %rbx
testq %rdi, %rdi
je 0x25131e
movq %rdi, %rbx
movq 0x8(%rdi), %rsi
movq 0x10(%rdi), %rdi
callq 0x1f00e0
cmpl $-0x1, %eax
je 0x251325
movl (%rbx), %edi
callq 0x1f02c0
cmpl $-0x1, %eax
je 0x25132c
movq %rbx, %rdi
popq %rbx
jmp 0x1f01c0
callq 0x1f067c
popq %rbx
retq
callq 0x1f0628
jmp 0x251309
callq 0x1f0652
jmp 0x251315
// File: /workspace/github_c_makefile_star2_O3/nh13[P]ksw/src/parasail/src/io.c
// Function: parasail_is_fasta
int parasail_is_fasta(const parasail_file_t *pf)
{
    if (NULL == pf) {
        fprintf(stderr, "parasail_is_fasta: NULL pointer\n");
        return -1;
    }

    return parasail_is_fasta_buffer(pf->buf, pf->size);
}

// Assembly:
pushq %rax
testq %rdi, %rdi
je 0x25134c
movq 0x10(%rdi), %rcx
testq %rcx, %rcx
je 0x251353
xorl %eax, %eax
cmpb $0x3e, (%rcx)
sete %al
popq %rcx
retq
callq 0x1f06b4
jmp 0x251358
callq 0x1f0698
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0x25134a
// File: /workspace/github_c_makefile_star2_O3/nh13[P]ksw/src/parasail/src/io.c
// Function: parasail_is_fastq
int parasail_is_fastq(const parasail_file_t *pf)
{
    if (NULL == pf) {
        fprintf(stderr, "parasail_is_fastq: NULL pointer\n");
        return -1;
    }

    return parasail_is_fastq_buffer(pf->buf, pf->size);
}

// Assembly:
pushq %rax
testq %rdi, %rdi
je 0x251396
movq 0x10(%rdi), %rcx
testq %rcx, %rcx
je 0x25139d
xorl %eax, %eax
cmpb $0x40, (%rcx)
sete %al
popq %rcx
retq
callq 0x1f0708
jmp 0x2513a2
callq 0x1f06ec
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0x251394
// File: /workspace/github_c_makefile_star2_O3/nh13[P]ksw/src/parasail/src/io.c
// Function: parasail_stat
parasail_file_stat_t* parasail_stat(const parasail_file_t *pf)
{
    parasail_file_stat_t *stat = NULL;

    if (NULL == pf) {
        fprintf(stderr, "parasail_stat: NULL pointer\n");
        return NULL;
    }

    if (1 == parasail_is_fasta(pf)) {
        stat = parasail_stat_fasta(pf);
    }
    else if (1 == parasail_is_fastq(pf)) {
        stat = parasail_stat_fastq(pf);
    }
    else {
        fprintf(stderr, "parasail_stat: cannot determine file format\n");
        return NULL;
    }

    if (NULL == stat) {
        fprintf(stderr, "parasail_stat: failed\n");
        return NULL;
    }

    return stat;
}

// Assembly:
pushq %rbx
testq %rdi, %rdi
je 0x25140a
movq %rdi, %rbx
callq 0x251333
cmpl $0x1, %eax
jne 0x2513e9
movq 0x8(%rbx), %rsi
movq 0x10(%rbx), %rdi
callq 0x251496
jmp 0x251403
movq %rbx, %rdi
callq 0x25137d
cmpl $0x1, %eax
jne 0x251418
movq 0x8(%rbx), %rsi
movq 0x10(%rbx), %rdi
callq 0x251910
testq %rax, %rax
je 0x251411
popq %rbx
retq
callq 0x1f0778
jmp 0x25141d
callq 0x1f075c
jmp 0x25141d
callq 0x1f0740
xorl %eax, %eax
jmp 0x251408
// File: /workspace/github_c_makefile_star2_O3/nh13[P]ksw/src/parasail/src/io.c
// Function: parasail_read
char * parasail_read(const parasail_file_t *pf, long * size)
{
    char * buffer = NULL;

    if (NULL == pf) {
        fprintf(stderr, "parasail_read: NULL pointer\n");
        return NULL;
    }

    if (NULL == size) {
        fprintf(stderr, "parasail_read: NULL size pointer\n");
        return NULL;
    }

    buffer = (char*)malloc(sizeof(char) * (pf->size+1));
    if (NULL == buffer) {
        perror("malloc");
        fprintf(stderr, "parasail_read: "
                "cannont malloc buffer for input file");
        return NULL;
    }

    (void)memcpy(buffer, pf->buf, pf->size);
    buffer[pf->size] = '\0';
    *size = pf->size;
    return buffer;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x251d10
movq %rsi, %rbx
testq %rsi, %rsi
je 0x251d17
movq %rdi, %r15
movq 0x8(%rdi), %r12
leaq 0x1(%r12), %rdi
callq 0x1f01f0
testq %rax, %rax
je 0x251d1e
movq %rax, %r14
movq 0x10(%r15), %rsi
movq %rax, %rdi
movq %r12, %rdx
callq 0x1f0130
movb $0x0, (%r14,%r12)
movq %r12, (%rbx)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
callq 0x1f0949
jmp 0x251d23
callq 0x1f092d
jmp 0x251d23
callq 0x1f0903
xorl %r14d, %r14d
jmp 0x251d01
// File: /workspace/github_c_makefile_star2_O3/nh13[P]ksw/src/parasail/src/io.c
// Function: parasail_pack
char * parasail_pack(const parasail_file_t *pf, long * size)
{
    char *packed = NULL;

    if (NULL == pf) {
        fprintf(stderr, "parasail_pack: NULL pointer\n");
        return NULL;
    }

    if (NULL == size) {
        fprintf(stderr, "parasail_pack: NULL size pointer\n");
        return NULL;
    }

    if (1 == parasail_is_fasta(pf)) {
        packed = parasail_pack_fasta(pf, size);
    }
    else if (1 == parasail_is_fastq(pf)) {
        packed = parasail_pack_fastq(pf, size);
    }
    else {
        fprintf(stderr, "parasail_pack: cannot determine file format\n");
        return NULL;
    }

    if (NULL == packed) {
        fprintf(stderr, "parasail_pack: failed\n");
        return NULL;
    }

    return packed;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x251d82
movq %rsi, %rbx
testq %rsi, %rsi
je 0x251d89
movq %rdi, %r14
callq 0x251333
cmpl $0x1, %eax
jne 0x251d58
movq 0x8(%r14), %rsi
movq 0x10(%r14), %rdi
movq %rbx, %rdx
callq 0x251e41
jmp 0x251d75
movq %r14, %rdi
callq 0x25137d
cmpl $0x1, %eax
jne 0x251d97
movq 0x8(%r14), %rsi
movq 0x10(%r14), %rdi
movq %rbx, %rdx
callq 0x252021
testq %rax, %rax
je 0x251d90
addq $0x8, %rsp
popq %rbx
popq %r14
retq
callq 0x1f09b9
jmp 0x251d9c
callq 0x1f099d
jmp 0x251d9c
callq 0x1f0981
jmp 0x251d9c
callq 0x1f0965
xorl %eax, %eax
jmp 0x251d7a
// File: /workspace/github_c_makefile_star2_O3/nh13[P]ksw/src/parasail/src/io.c
// Function: parasail_pack_fasta
char * parasail_pack_fasta(const parasail_file_t *pf, long * packed_size)
{
    if (NULL == pf) {
        fprintf(stderr, "parasail_pack_fasta: NULL pointer\n");
        return NULL;
    }

    if (NULL == packed_size) {
        fprintf(stderr, "parasail_pack_fasta: NULL size pointer\n");
        return NULL;
    }

    return parasail_pack_fasta_buffer(pf->buf, pf->size, packed_size);
}

// Assembly:
pushq %rax
testq %rdi, %rdi
je 0x251dbc
movq %rsi, %rdx
testq %rsi, %rsi
je 0x251dc3
movq 0x8(%rdi), %rsi
movq 0x10(%rdi), %rdi
popq %rax
jmp 0x251e41
callq 0x1f09f1
jmp 0x251dc8
callq 0x1f09d5
xorl %eax, %eax
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O3/nh13[P]ksw/src/parasail/src/io.c
// Function: parasail_pack_fastq
char * parasail_pack_fastq(const parasail_file_t *pf, long * size)
{
    if (NULL == pf) {
        fprintf(stderr, "parasail_pack_fastq: NULL pointer\n");
        return NULL;
    }

    if (NULL == size) {
        fprintf(stderr, "parasail_pack_fastq: NULL size pointer\n");
        return NULL;
    }

    return parasail_pack_fastq_buffer(pf->buf, pf->size, size);
}

// Assembly:
pushq %rax
testq %rdi, %rdi
je 0x251de8
movq %rsi, %rdx
testq %rsi, %rsi
je 0x251def
movq 0x8(%rdi), %rsi
movq 0x10(%rdi), %rdi
popq %rax
jmp 0x252021
callq 0x1f0a29
jmp 0x251df4
callq 0x1f0a0d
xorl %eax, %eax
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O3/nh13[P]ksw/src/parasail/src/pssw.c
// Function: parasail_ssw_init
parasail_profile_t* parasail_ssw_init(
        const char * const restrict s1, const int s1Len,
        const parasail_matrix_t* matrix, const int8_t score_size)
{
    parasail_profile_t *profile8 = NULL;
    parasail_profile_t *profile16 = NULL;

    if (score_size == 0 || score_size == 2) {
        profile8 = parasail_profile_create_8(s1, s1Len, matrix);
    }
    if (score_size == 1 || score_size == 2) {
        profile16 = parasail_profile_create_16(s1, s1Len, matrix);
    }

    if (profile8 && profile16) {
        profile8->profile16 = profile16->profile16;
        free(profile16);
        return profile8;
    }
    else if (profile8) {
        return profile8;
    }
    else if (profile16) {
        return profile16;
    }

    return NULL;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %ecx, %r12d
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %r15
testb $-0x3, %r12b
je 0x255445
xorl %ebx, %ebx
jmp 0x255455
movq %r15, %rdi
movl %ebp, %esi
movq %r14, %rdx
callq 0x294037
movq %rax, %rbx
decb %r12b
cmpb $0x2, %r12b
jae 0x255498
movq %r15, %rdi
movl %ebp, %esi
movq %r14, %rdx
callq 0x29402e
testq %rbx, %rbx
setne %cl
testq %rax, %rax
setne %dl
andb %cl, %dl
cmpb $0x1, %dl
jne 0x2554a0
movq 0x40(%rax), %rcx
movq %rcx, 0x40(%rbx)
movups 0x30(%rax), %xmm0
movups %xmm0, 0x30(%rbx)
movq %rax, %rdi
callq 0x1f01c0
jmp 0x2554a6
testq %rbx, %rbx
setne %cl
xorl %eax, %eax
testb %cl, %cl
cmoveq %rax, %rbx
movq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/nh13[P]ksw/src/parasail/src/pssw.c
// Function: parasail_ssw
parasail_result_ssw_t* parasail_ssw(
        const char * const restrict s1, const int s1Len,
        const char * const restrict s2, const int s2Len,
        const int open, const int gap, const parasail_matrix_t* matrix)
{
    parasail_profile_t *profile = parasail_ssw_init(s1, s1Len, matrix, 2);
    parasail_result_ssw_t *result = parasail_ssw_profile(profile, s2, s2Len, open, gap);
    parasail_profile_free(profile);
    return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %r9d, %ebx
movl %r8d, %ebp
movl %ecx, %r14d
movq %rdx, %r15
movq 0x30(%rsp), %rdx
movl $0x2, %ecx
callq 0x255428
movq %rax, %r12
movq %rax, %rdi
movq %r15, %rsi
movl %r14d, %edx
movl %ebp, %ecx
movl %ebx, %r8d
callq 0x255502
movq %rax, %rbx
movq %r12, %rdi
callq 0x2540e1
movq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/nh13[P]ksw/src/parasail/src/striped_unwind.c
// Function: parasail_striped_unwind_8
static inline int* CONCAT(parasail_striped_unwind_, T) (
        int lena,
        int lenb,
        int segWidth,
        void *array_)
{
    int i;
    int j;
    int *ret = (int*)malloc(sizeof(int)*lena*lenb);
    D *array = (D*)array_;
    const int32_t segLen = (lena + segWidth - 1) / segWidth;
    int32_t column_len = segLen * segWidth;
    for (j=0; j<lenb; ++j) {
        for (i=0; i<column_len; ++i) {
            int32_t i_unwound = i / segWidth + i % segWidth * segLen;
            if (i_unwound < lena) {
                ret[i_unwound*lenb + j] = (int)array[j*column_len + i];
            }
        }
    }
    return ret;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movl %edx, %r14d
movl %esi, %ebp
movl %edi, %r15d
movslq %edi, %r12
movslq %esi, %r13
movq %r12, %rdi
imulq %r13, %rdi
shlq $0x2, %rdi
callq 0x1f01f0
movq %rax, %rcx
leal (%r12,%r14), %eax
decl %eax
cltd
idivl %r14d
testl %r13d, %r13d
jle 0x2e46ae
movl %eax, %esi
movl %eax, %r8d
imull %r14d, %r8d
movl %ebp, %r9d
xorl %r10d, %r10d
testl %r8d, %r8d
jle 0x2e46a3
xorl %edi, %edi
movl %edi, %eax
cltd
idivl %r14d
imull %esi, %edx
addl %eax, %edx
cmpl %r15d, %edx
jge 0x2e469b
movsbl (%rbx,%rdi), %eax
imull %ebp, %edx
addl %r10d, %edx
movslq %edx, %rdx
movl %eax, (%rcx,%rdx,4)
incq %rdi
cmpq %rdi, %r8
jne 0x2e467b
incq %r10
addq %r8, %rbx
cmpq %r9, %r10
jne 0x2e4674
movq %rcx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/sharpyfox[P]citrusleaf-client/tests/loop_c/src/main.c
// Function: usage
void usage(void) {
	fprintf(stderr, "Usage key_c:\n");
	fprintf(stderr, "-h host [default 127.0.0.1] \n");
	fprintf(stderr, "-p port [default 3000]\n");
	fprintf(stderr, "-H host:port [default 127.0.0.1:3000]\n");
	fprintf(stderr, "-n namespace [default test]\n");
	fprintf(stderr, "-s set [default 'set']\n");
	fprintf(stderr, "-S Strict - verify all keys and halt on error\n");
	fprintf(stderr, "-b bin [default value]\n");
	fprintf(stderr, "-t threads [default 32]\n");
	fprintf(stderr, "-k keys [default 100000]\n");
	fprintf(stderr, "-K key size [default 10]\n");
	fprintf(stderr, "-V value size [default 20]\n");
	fprintf(stderr, "-r random seed [default random]\n");
	fprintf(stderr, "-m milliseconds timeout [default 200]\n");
	fprintf(stderr, "-f do not follow cluster [default do follow]\n");
	fprintf(stderr, "-v is verbose\n");
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq 0x13a61(%rip), %r12     # 0x15fe0
leaq 0xcb7f(%rip), %rdi      # 0xf105
movq (%r12), %rcx
pushq $0xd
popq %rsi
pushq $0x1
popq %rbx
movq %rbx, %rdx
callq 0x2540
movq (%r12), %rcx
leaq 0xcb70(%rip), %rdi      # 0xf113
pushq $0x1d
popq %rsi
movq %rbx, %rdx
callq 0x2540
movq (%r12), %rcx
leaq 0xcb78(%rip), %rdi      # 0xf131
pushq $0x17
popq %r15
movq %r15, %rsi
movq %rbx, %rdx
callq 0x2540
movq (%r12), %rcx
leaq 0xcb76(%rip), %rdi      # 0xf149
pushq $0x26
popq %r14
movq %r14, %rsi
movq %rbx, %rdx
callq 0x2540
movq (%r12), %rcx
leaq 0xcb83(%rip), %rdi      # 0xf170
pushq $0x1c
popq %rsi
movq %rbx, %rdx
callq 0x2540
movq (%r12), %rcx
leaq 0xcb8a(%rip), %rdi      # 0xf18d
movq %r15, %rsi
movq %rbx, %rdx
callq 0x2540
movq (%r12), %rcx
leaq 0xcb8c(%rip), %rdi      # 0xf1a5
pushq $0x2e
popq %rsi
movq %rbx, %rdx
callq 0x2540
movq (%r12), %rcx
leaq 0xcba5(%rip), %rdi      # 0xf1d4
movq %r15, %rsi
movq %rbx, %rdx
callq 0x2540
movq (%r12), %rcx
leaq 0xcba7(%rip), %rdi      # 0xf1ec
pushq $0x18
popq %rsi
movq %rbx, %rdx
callq 0x2540
movq (%r12), %rcx
leaq 0xcbaa(%rip), %rdi      # 0xf205
pushq $0x19
popq %r15
movq %r15, %rsi
movq %rbx, %rdx
callq 0x2540
movq (%r12), %rcx
leaq 0xcbaa(%rip), %rdi      # 0xf21f
movq %r15, %rsi
movq %rbx, %rdx
callq 0x2540
movq (%r12), %rcx
leaq 0xcbae(%rip), %rdi      # 0xf239
pushq $0x1b
popq %rsi
movq %rbx, %rdx
callq 0x2540
movq (%r12), %rcx
leaq 0xcbb4(%rip), %rdi      # 0xf255
pushq $0x20
popq %rsi
movq %rbx, %rdx
callq 0x2540
movq (%r12), %rcx
leaq 0xcbbf(%rip), %rdi      # 0xf276
movq %r14, %rsi
movq %rbx, %rdx
callq 0x2540
movq (%r12), %rcx
leaq 0xcbd0(%rip), %rdi      # 0xf29d
pushq $0x2d
popq %rsi
movq %rbx, %rdx
callq 0x2540
movq (%r12), %rcx
leaq 0xcbe8(%rip), %rdi      # 0xf2cb
pushq $0xe
popq %rsi
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x2540
// File: /workspace/github_c_makefile_star2_O3/sharpyfox[P]citrusleaf-client/src/cf_log.c
// Function: cf_default_log
static void
cf_default_log(cf_log_level level, const char* fmt_no_newline, ...)
{
	size_t fmt_size = strlen(fmt_no_newline) + 2;
	char* fmt = (char*)alloca(fmt_size);

	strncpy(fmt, fmt_no_newline, fmt_size);
	fmt[fmt_size - 2] = '\n';

	va_list ap;

	va_start(ap, fmt_no_newline);
	vfprintf(stderr, fmt, ap);
	va_end(ap);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0xd0, %rsp
leaq -0xf0(%rbp), %r12
movq %rsi, %rbx
testb %al, %al
movq %rdx, 0x10(%r12)
movq %rcx, 0x18(%r12)
movq %r8, 0x20(%r12)
movq %r9, 0x28(%r12)
je 0x2c89
movaps %xmm0, -0xc0(%rbp)
movaps %xmm1, -0xb0(%rbp)
movaps %xmm2, -0xa0(%rbp)
movaps %xmm3, -0x90(%rbp)
movaps %xmm4, -0x80(%rbp)
movaps %xmm5, -0x70(%rbp)
movaps %xmm6, -0x60(%rbp)
movaps %xmm7, -0x50(%rbp)
movq %rsi, %rdi
callq 0x20e0
movq %rax, %r14
leaq 0x2(%rax), %rdx
addq $0x11, %rax
movq %rsp, %r15
andq $-0x10, %rax
subq %rax, %r15
movq %r15, %rsp
movq %r15, %rdi
movq %rbx, %rsi
callq 0x2130
leaq -0x40(%rbp), %rdx
leaq 0x10(%rbp), %rax
movabsq $0x3000000010, %rcx     # imm = 0x3000000010
movq %r15, %rsi
movb $0xa, (%r14,%r15)
movq %rax, 0x8(%rdx)
movq 0x13307(%rip), %rax     # 0x15fe0
movq %r12, 0x10(%rdx)
movq %rcx, (%rdx)
movq (%rax), %rdi
callq 0x22f0
leaq -0x20(%rbp), %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nopw %cs:(%rax,%rax)
nop
// File: /workspace/github_c_makefile_star2_O3/sharpyfox[P]citrusleaf-client/tests/loop_c/src/main.c
// Function: atomic_int_create
atomic_int	*
atomic_int_create(uint64_t val)
{
	atomic_int *ai = malloc(sizeof(atomic_int));
	ai->val = val;
	pthread_mutex_init(&ai->lock,0);
	return(ai);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x30, %edi
callq 0x22e0
leaq 0x8(%rax), %rdi
xorl %esi, %esi
movq %rax, %r14
movq %rbx, (%rax)
callq 0x2400
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/sharpyfox[P]citrusleaf-client/tests/loop_c/src/main.c
// Function: start_counter_thread
void *
start_counter_thread(atomic_int *reads, atomic_int *writes, atomic_int *deletes, atomic_int *keys)
{
	counter_thread_control *ctc = (counter_thread_control *) malloc(sizeof(counter_thread_control));
	ctc->reads = reads;
	ctc->writes = writes;
	ctc->deletes = deletes;
	ctc->keys = keys;
	ctc->death = 0;
	pthread_create(&ctc->th, 0, counter_fn, ctc);
	return(ctc);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %r12
movl $0x30, %edi
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
callq 0x22e0
leaq 0x28(%rax), %rdi
leaq -0x43(%rip), %rdx       # 0x2e87
xorl %esi, %esi
movq %rax, %rcx
movq %r12, (%rax)
movq %r15, 0x8(%rax)
movq %r14, 0x10(%rax)
movq %rbx, 0x18(%rax)
movq %rax, %r13
movl $0x0, 0x20(%rax)
callq 0x24e0
movq %r13, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/sharpyfox[P]citrusleaf-client/tests/loop_c/src/main.c
// Function: rand_64
uint64_t
rand_64()
{
	uint64_t r;
	if (g_config.pseudo_seed) {

		r = random();
		
	}
	else {
		pthread_mutex_lock(&rand_buf_lock);
		if (rand_buf_off < sizeof(uint64_t) ) {
			if (seeded == 0) {
				int rfd = open("/dev/urandom",	O_RDONLY);
				int rsz = read(rfd, rand_buf, SEED_SZ);
				if (rsz < SEED_SZ) {
					fprintf(stderr, "warning! can't seed random number generator");
					return(0);
				}
				close(rfd);
				RAND_seed(rand_buf, rsz);
				seeded = 1;
			}
			if (1 != RAND_bytes(rand_buf, sizeof(rand_buf))) {
				fprintf(stderr, "RAND_bytes not so happy.\n");
				pthread_mutex_unlock(&rand_buf_lock);
				return(0);
			}
			rand_buf_off = sizeof(rand_buf);
		}
		
		rand_buf_off -= sizeof(uint64_t);
		r = *(uint64_t *) (&rand_buf[rand_buf_off]);
		pthread_mutex_unlock(&rand_buf_lock);
	}
	return(r);
}

// Assembly:
cmpl $0x0, 0x13440(%rip)     # 0x16360
jne 0x2120
pushq %r14
pushq %rbx
pushq %rax
leaq 0x1343f(%rip), %rdi     # 0x16370
callq 0x23b0
movl 0x1345c(%rip), %ebx     # 0x16398
cmpl $0x7, %ebx
ja 0x2fb0
cmpb $0x0, 0x13454(%rip)     # 0x1639c
jne 0x2f95
leaq 0xc161(%rip), %rdi      # 0xf0b2
xorl %esi, %esi
xorl %eax, %eax
callq 0x24b0
leaq 0x1343f(%rip), %rsi     # 0x163a0
movl $0x40, %edx
movl %eax, %edi
movl %eax, %ebx
callq 0x2390
movq %rax, %r14
cmpl $0x40, %r14d
jl 0x2fe2
movl %ebx, %edi
callq 0x2550
leaq 0x1341a(%rip), %rdi     # 0x163a0
movl %r14d, %esi
callq 0x24a0
movb $0x1, 0x13407(%rip)     # 0x1639c
leaq 0x13404(%rip), %rdi     # 0x163a0
movl $0x2000, %esi           # imm = 0x2000
movl $0x2000, %ebx           # imm = 0x2000
callq 0x23d0
cmpl $0x1, %eax
jne 0x2fdb
addl $-0x8, %ebx
leaq 0x133e6(%rip), %rax     # 0x163a0
leaq 0x133af(%rip), %rdi     # 0x16370
movl %ebx, 0x133d1(%rip)     # 0x16398
movq (%rbx,%rax), %rbx
callq 0x2190
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
callq 0x27f0
jmp 0x2fe7
callq 0x27d4
xorl %ebx, %ebx
jmp 0x2fd0
// File: /workspace/github_c_makefile_star2_O3/sharpyfox[P]citrusleaf-client/tests/loop_c/src/loop.c
// Function: my_itoa
void
my_itoa(char *s, uint64_t v, uint sz)
{
	s[sz] = 0;
	int i;
	for (i = sz-1; i >= 0; i--) {
		s[i] = (v % 10) + '0';
		if (v) v = v / 10;
	}
	
}

// Assembly:
movl %edx, %eax
decl %edx
movb $0x0, (%rdi,%rax)
js 0x326d
movl %edx, %ecx
movabsq $-0x3333333333333333, %r8 # imm = 0xCCCCCCCCCCCCCCCD
movq %rsi, %rax
mulq %r8
shrq $0x3, %rdx
leal (%rdx,%rdx), %eax
leal (%rax,%rax,4), %eax
subl %eax, %esi
orb $0x30, %sil
movb %sil, (%rdi,%rcx)
addq $-0x1, %rcx
movq %rdx, %rsi
jb 0x324a
retq
// File: /workspace/github_c_makefile_star2_O3/sharpyfox[P]citrusleaf-client/tests/loop_c/src/shash.c
// Function: shash_put
int
shash_put(shash *h, void *key, void *value)
{
	// Calculate hash
	uint hash = h->h_fn(key);
	hash %= h->table_len;

	pthread_mutex_t		*l = 0;
	if (h->flags & SHASH_CR_MT_BIGLOCK) {
		l = &h->biglock;
	}
	else if (h->flags & SHASH_CR_MT_MANYLOCK) {
		l = & (h->lock_table[hash]);
	}
	if (l)     pthread_mutex_lock( l );
		
	shash_elem *e = (shash_elem *) ( ((uint8_t *)h->table) + (SHASH_ELEM_SZ(h) * hash));	

	// most common case should be insert into empty bucket, special case
	if ( e->in_use == false )
		goto Copy;

	shash_elem *e_head = e;

	// This loop might be skippable if you know the key is not already in the hash
	// (like, you just searched and it's single-threaded)	
	while (e) {
		if ( memcmp( SHASH_ELEM_KEY_PTR(h, e) , key, h->key_len) == 0) {
			memcpy( SHASH_ELEM_VALUE_PTR(h, e), value, h->value_len);
			if (h->flags & SHASH_CR_MT_BIGLOCK)
				pthread_mutex_unlock(&h->biglock);
			return(SHASH_OK);
		}
		e = e->next;
	}

	e = (shash_elem *) malloc( SHASH_ELEM_SZ(h) );
	e->next = e_head->next;
	e_head->next = e;
	
Copy:
	memcpy(SHASH_ELEM_KEY_PTR(h, e), key, h->key_len);
	memcpy(SHASH_ELEM_VALUE_PTR(h, e), value, h->value_len);
	e->in_use = true;
	h->elements++;
	if (l)	pthread_mutex_unlock( l );
	return(SHASH_OK);	
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movq %rsi, %rdi
movq %rdx, %rbp
movq %rsi, %r15
callq *0x10(%rbx)
xorl %edx, %edx
divl 0x18(%rbx)
movl 0xc(%rbx), %eax
testb $0x4, %al
movl %edx, %r12d
jne 0x3b95
movb $0x1, %cl
testb $0x8, %al
je 0x3ba6
movq 0x50(%rbx), %rax
testq %rax, %rax
je 0x3ba6
leaq (%r12,%r12,4), %rcx
leaq (%rax,%rcx,8), %rdi
jmp 0x3b99
leaq 0x28(%rbx), %rdi
movq %rdi, (%rsp)
callq 0x23b0
xorl %ecx, %ecx
jmp 0x3bae
movq $0x0, (%rsp)
movl %ecx, 0xc(%rsp)
movl 0x4(%rbx), %r13d
movl 0x8(%rbx), %ecx
movq 0x20(%rbx), %rax
leaq 0x10(%r13,%rcx), %rdx
imulq %rdx, %r12
cmpb $0x0, 0x8(%rax,%r12)
leaq (%rax,%r12), %r14
je 0x3c22
movq %rbp, 0x10(%rsp)
movq %r14, %rbp
movq %rdx, 0x18(%rsp)
movq %rcx, 0x20(%rsp)
leaq 0x9(%rbp), %r12
movq %r15, %rsi
movq %r13, %rdx
movq %r12, %rdi
callq 0x2260
testl %eax, %eax
je 0x3c54
movq (%rbp), %rbp
testq %rbp, %rbp
jne 0x3be4
movq 0x18(%rsp), %rdi
callq 0x22e0
movq (%r14), %rcx
movq 0x10(%rsp), %rbp
movq %rcx, (%rax)
movq %rax, (%r14)
movq %rax, %r14
movl 0x4(%rbx), %r13d
leaq 0x9(%r14), %rdi
movq %r15, %rsi
movq %r13, %rdx
callq 0x21b0
movl 0x4(%rbx), %eax
movl 0x8(%rbx), %edx
movq %rbp, %rsi
leaq 0x9(%r14,%rax), %rdi
callq 0x21b0
movb $0x1, 0x8(%r14)
incl (%rbx)
cmpb $0x0, 0xc(%rsp)
je 0x3c77
jmp 0x3c80
movq 0x10(%rsp), %rsi
movq 0x20(%rsp), %rdx
addq %r13, %r12
movq %r12, %rdi
callq 0x21b0
testb $0x4, 0xc(%rbx)
je 0x3c80
addq $0x28, %rbx
movq %rbx, (%rsp)
movq (%rsp), %rdi
callq 0x2190
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/sharpyfox[P]citrusleaf-client/tests/loop_c/src/shash.c
// Function: shash_put_unique
int
shash_put_unique(shash *h, void *key, void *value)
{
	// Calculate hash
	uint hash = h->h_fn(key);
	hash %= h->table_len;

	pthread_mutex_t		*l = 0;
	if (h->flags & SHASH_CR_MT_BIGLOCK) {
		l = &h->biglock;
	}
	else if (h->flags & SHASH_CR_MT_MANYLOCK) {
		l = & (h->lock_table[hash]);
	}
	if (l)     pthread_mutex_lock( l );
		
	shash_elem *e = (shash_elem *) ( ((uint8_t *)h->table) + (SHASH_ELEM_SZ(h) * hash));	

	// most common case should be insert into empty bucket, special case
	if ( e->in_use == false ) {
		goto Copy;
	}

	shash_elem *e_head = e;

	while (e) {
		if ( memcmp(SHASH_ELEM_KEY_PTR(h, e), key, h->key_len) == 0) {
			if (h->flags & SHASH_CR_MT_BIGLOCK)
				pthread_mutex_unlock(&h->biglock);
			return(SHASH_ERR_FOUND);
		}
		e = e->next;
	}

	e = (shash_elem *) malloc( SHASH_ELEM_SZ(h) );
	e->next = e_head->next;
	e_head->next = e;
	
Copy:
	memcpy(SHASH_ELEM_KEY_PTR(h, e), key, h->key_len);
	memcpy(SHASH_ELEM_VALUE_PTR(h, e), value, h->value_len);
	e->in_use = true;
	h->elements++;
	if (l)	pthread_mutex_unlock( l );
	return(SHASH_OK);	

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movq %rsi, %rdi
movq %rdx, 0x10(%rsp)
movq %rsi, %r15
callq *0x10(%rbx)
xorl %edx, %edx
divl 0x18(%rbx)
movl 0xc(%rbx), %eax
testb $0x4, %al
movl %edx, %r12d
jne 0x3cd6
testb $0x8, %al
je 0x3cee
movq 0x50(%rbx), %rax
testq %rax, %rax
je 0x3cee
leaq (%r12,%r12,4), %rcx
leaq (%rax,%rcx,8), %rdi
jmp 0x3cda
leaq 0x28(%rbx), %rdi
movq %rdi, 0x8(%rsp)
callq 0x23b0
movl $0x0, 0x4(%rsp)
jmp 0x3cfd
movb $0x1, %al
movq $0x0, 0x8(%rsp)
movl %eax, 0x4(%rsp)
movl 0x4(%rbx), %r13d
movl 0x8(%rbx), %ecx
movq 0x20(%rbx), %rax
leaq 0x10(%r13,%rcx), %rbp
imulq %rbp, %r12
cmpb $0x0, 0x8(%rax,%r12)
leaq (%rax,%r12), %r14
je 0x3d55
movq %r14, %r12
leaq 0x9(%r12), %rdi
movq %r15, %rsi
movq %r13, %rdx
callq 0x2260
testl %eax, %eax
je 0x3d8b
movq (%r12), %r12
testq %r12, %r12
jne 0x3d20
movq %rbp, %rdi
callq 0x22e0
movq (%r14), %rcx
movq %rcx, (%rax)
movq %rax, (%r14)
movq %rax, %r14
movl 0x4(%rbx), %r13d
leaq 0x9(%r14), %rdi
movq %r15, %rsi
movq %r13, %rdx
callq 0x21b0
movl 0x4(%rbx), %eax
movl 0x8(%rbx), %edx
movq 0x10(%rsp), %rsi
leaq 0x9(%r14,%rax), %rdi
callq 0x21b0
movb $0x1, 0x8(%r14)
incl (%rbx)
xorl %ebp, %ebp
cmpb $0x0, 0x4(%rsp)
je 0x3d9f
jmp 0x3da9
testb $0x4, 0xc(%rbx)
movl $0xfffffffc, %ebp       # imm = 0xFFFFFFFC
je 0x3da9
addq $0x28, %rbx
movq %rbx, 0x8(%rsp)
movq 0x8(%rsp), %rdi
callq 0x2190
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/sharpyfox[P]citrusleaf-client/tests/loop_c/src/shash.c
// Function: shash_get
int
shash_get(shash *h, void *key, void *value)
{
	int rv = SHASH_ERR;
	
	uint hash = h->h_fn(key);
	hash %= h->table_len;

	pthread_mutex_t		*l = 0;
	if (h->flags & SHASH_CR_MT_BIGLOCK) {
		l = &h->biglock;
	}
	else if (h->flags & SHASH_CR_MT_MANYLOCK) {
		l = & (h->lock_table[hash]);
	}
	if (l)     pthread_mutex_lock( l );
	
	shash_elem *e = (shash_elem *) ( ((uint8_t *)h->table) + (SHASH_ELEM_SZ(h) * hash));	

	if (e->in_use == false) {
		rv = SHASH_ERR_NOTFOUND;
		goto Out;
	}
	
	do {
		if ( memcmp(SHASH_ELEM_KEY_PTR(h, e), key, h->key_len) == 0) {
			memcpy(value, SHASH_ELEM_VALUE_PTR(h, e), h->value_len);
			rv = SHASH_OK; 
			goto Out;
		}
		e = e->next;
	} while (e);
	rv = SHASH_ERR_NOTFOUND;
	
Out:
	if (l) pthread_mutex_unlock(l);

	return(rv);
					
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r12
movq %rsi, %rdi
movq %rdx, 0x10(%rsp)
movq %rsi, %r14
callq *0x10(%r12)
xorl %edx, %edx
divl 0x18(%r12)
movl 0xc(%r12), %eax
testb $0x4, %al
movl %edx, %ebx
jne 0x3e07
movb $0x1, %cl
testb $0x8, %al
je 0x3e1a
movq 0x50(%r12), %rax
testq %rax, %rax
je 0x3e1a
leaq (%rbx,%rbx,4), %rcx
leaq (%rax,%rcx,8), %rdi
jmp 0x3e0c
leaq 0x28(%r12), %rdi
movq %rdi, 0x8(%rsp)
callq 0x23b0
xorl %ecx, %ecx
jmp 0x3e23
movq $0x0, 0x8(%rsp)
movq 0x20(%r12), %r15
movl 0x4(%r12), %r13d
movl 0x8(%r12), %r12d
movl $0xfffffffd, %ebp       # imm = 0xFFFFFFFD
leaq 0x10(%r13,%r12), %rax
imulq %rax, %rbx
cmpb $0x0, 0x8(%r15,%rbx)
je 0x3e88
addq %rbx, %r15
movl %ecx, 0x4(%rsp)
leaq 0x9(%r15), %rbx
movq %r14, %rsi
movq %r13, %rdx
movq %rbx, %rdi
callq 0x2260
testl %eax, %eax
je 0x3e6f
movq (%r15), %r15
testq %r15, %r15
jne 0x3e4f
jmp 0x3e84
movq 0x10(%rsp), %rdi
addq %r13, %rbx
movq %r12, %rdx
movq %rbx, %rsi
callq 0x21b0
xorl %ebp, %ebp
movl 0x4(%rsp), %ecx
testb %cl, %cl
jne 0x3e96
movq 0x8(%rsp), %rdi
callq 0x2190
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/sharpyfox[P]citrusleaf-client/tests/loop_c/src/shash.c
// Function: shash_get_vlock
int
shash_get_vlock(shash *h, void *key, void **value, pthread_mutex_t **vlock)
{
	int rv = SHASH_ERR;
	
	uint hash = h->h_fn(key);
	hash %= h->table_len;

	pthread_mutex_t		*l = 0;
	if (h->flags & SHASH_CR_MT_BIGLOCK) {
		l = &h->biglock;
	}
	else if (h->flags & SHASH_CR_MT_MANYLOCK) {
		l = & (h->lock_table[hash]);
	}
	if (l)     pthread_mutex_lock( l );
	
	shash_elem *e = (shash_elem *) ( ((uint8_t *)h->table) + (SHASH_ELEM_SZ(h) * hash));	

	if (e->in_use == false) {
		rv = SHASH_ERR_NOTFOUND;
		goto Out;
	}
	
	do {
		if ( memcmp(SHASH_ELEM_KEY_PTR(h, e), key, h->key_len) == 0) {
			*value = SHASH_ELEM_VALUE_PTR(h, e);
			rv = SHASH_OK; 
			goto Out;
		}
		e = e->next;
	} while (e);
	
	rv = SHASH_ERR_NOTFOUND;
	
Out:
	if (l) {
		if (rv == SHASH_OK) {
			*vlock = l;
		}
		else {
			pthread_mutex_unlock( l );
			*vlock = 0;
		}
	}
	else {
		// for safety sake
		if (vlock) *vlock = 0;
	}

	return(rv);
					
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r13
movq %rsi, %rdi
movq %rcx, 0x8(%rsp)
movq %rdx, 0x10(%rsp)
movq %rsi, %r15
callq *0x10(%r13)
xorl %edx, %edx
divl 0x18(%r13)
movl 0xc(%r13), %eax
testb $0x4, %al
movl %edx, %ebx
jne 0x3ef3
testb $0x8, %al
je 0x3f09
movq 0x50(%r13), %rax
testq %rax, %rax
je 0x3f09
leaq (%rbx,%rbx,4), %rcx
leaq (%rax,%rcx,8), %r12
jmp 0x3ef7
leaq 0x28(%r13), %r12
movq %r12, %rdi
callq 0x23b0
movl $0x0, 0x4(%rsp)
jmp 0x3f12
movb $0x1, %al
xorl %r12d, %r12d
movl %eax, 0x4(%rsp)
movl 0x4(%r13), %ebp
movl 0x8(%r13), %eax
movq 0x20(%r13), %r14
leaq 0x10(%rbp,%rax), %rax
imulq %rax, %rbx
cmpb $0x0, 0x8(%r14,%rbx)
je 0x3f50
addq %rbx, %r14
leaq 0x9(%r14), %r13
movq %r15, %rsi
movq %rbp, %rdx
movq %r13, %rdi
callq 0x2260
testl %eax, %eax
je 0x3f70
movq (%r14), %r14
testq %r14, %r14
jne 0x3f32
cmpb $0x0, 0x4(%rsp)
movq 0x8(%rsp), %rbx
movl $0xfffffffd, %eax       # imm = 0xFFFFFFFD
jne 0x3f89
movq %r12, %rdi
callq 0x2190
movl $0xfffffffd, %eax       # imm = 0xFFFFFFFD
jmp 0x3f8e
movq 0x10(%rsp), %rax
addq %rbp, %r13
movq 0x8(%rsp), %rbx
movq %r13, (%rax)
xorl %eax, %eax
cmpb $0x0, 0x4(%rsp)
je 0x3f91
testq %rbx, %rbx
je 0x3f94
xorl %r12d, %r12d
movq %r12, (%rbx)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/sharpyfox[P]citrusleaf-client/tests/loop_c/src/shash.c
// Function: shash_delete
int
shash_delete(shash *h, void *key)
{

	// Calculate hash
	uint hash = h->h_fn(key);
	hash %= h->table_len;
	int rv = SHASH_ERR;

	pthread_mutex_t		*l = 0;
	if (h->flags & SHASH_CR_MT_BIGLOCK) {
		l = &h->biglock;
	}
	else if (h->flags & SHASH_CR_MT_MANYLOCK) {
		l = & (h->lock_table[hash]);
	}
	if (l)     pthread_mutex_lock( l );
		
	shash_elem *e = (shash_elem *) ( ((uint8_t *)h->table) + (SHASH_ELEM_SZ(h) * hash));	

	// If bucket empty, def can't delete
	if ( e->in_use == false ) {
		rv = SHASH_ERR_NOTFOUND;
		goto Out;
	}

	shash_elem *e_prev = 0;

	// Look for teh element and destroy if found
	while (e) {
		if ( memcmp(SHASH_ELEM_KEY_PTR(h, e), key, h->key_len) == 0) {
			// Found it
			// patchup pointers & free element if not head
			if (e_prev) {
				e_prev->next = e->next;
				free (e);
			}
			// am at head - more complicated
			else {
				// at head with no next - easy peasy!
				if (0 == e->next) {
					e->in_use = false;
				}
				// at head with a next - more complicated
				else {
					shash_elem *_t = e->next;
					memcpy(e, e->next, SHASH_ELEM_SZ(h) );
					free(_t);
				}
			}
			h->elements--;
			rv = SHASH_OK;
			goto Out;

		}
		e_prev = e;
		e = e->next;
	}
	rv = SHASH_ERR_NOTFOUND;

Out:
	if (l) 
		pthread_mutex_unlock(l);
	return(rv);	
	

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movq %rsi, %rdi
movq %rsi, %r15
callq *0x10(%rbx)
xorl %edx, %edx
divl 0x18(%rbx)
movl 0xc(%rbx), %eax
testb $0x4, %al
movl %edx, %r13d
jne 0x3fe6
movb $0x1, %dl
testb $0x8, %al
je 0x3ff8
movq 0x50(%rbx), %rax
testq %rax, %rax
je 0x3ff8
leaq (%r13,%r13,4), %rcx
leaq (%rax,%rcx,8), %rdi
jmp 0x3fea
leaq 0x28(%rbx), %rdi
movq %rdi, 0x8(%rsp)
callq 0x23b0
xorl %edx, %edx
jmp 0x4001
movq $0x0, 0x8(%rsp)
movl 0x4(%rbx), %r14d
movl 0x8(%rbx), %eax
movq 0x20(%rbx), %r12
movl $0xfffffffd, %ebp       # imm = 0xFFFFFFFD
leaq 0x10(%r14,%rax), %rsi
imulq %rsi, %r13
cmpb $0x0, 0x8(%r12,%r13)
sete %al
testq %r12, %r12
sete %cl
orb %al, %cl
jne 0x40b1
addq %r13, %r12
movq %rsi, 0x10(%rsp)
movl %edx, 0x4(%rsp)
movq %r15, %rsi
movq %r14, %rdx
leaq 0x9(%r12), %rdi
callq 0x2260
testl %eax, %eax
je 0x4079
movq %r12, %r13
movq (%r13), %r12
testq %r12, %r12
je 0x40ad
leaq 0x9(%r12), %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x2260
testl %eax, %eax
movq %r13, %rax
movq %r12, %r13
jne 0x4054
jmp 0x407b
xorl %eax, %eax
movq (%r12), %r14
testq %rax, %rax
je 0x408c
movq %r14, (%rax)
movq %r12, %rdi
jmp 0x40a4
testq %r14, %r14
je 0x40d0
movq 0x10(%rsp), %rdx
movq %r12, %rdi
movq %r14, %rsi
callq 0x21b0
movq %r14, %rdi
callq 0x22c0
decl (%rbx)
xorl %ebp, %ebp
movl 0x4(%rsp), %edx
testb %dl, %dl
jne 0x40bf
movq 0x8(%rsp), %rdi
callq 0x2190
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movb $0x0, 0x8(%r12)
jmp 0x40a9
// File: /workspace/github_c_makefile_star2_O3/sharpyfox[P]citrusleaf-client/tests/loop_c/src/shash.c
// Function: shash_delete_lockfree
int
shash_delete_lockfree(shash *h, void *key)
{
	// Calculate hash
	uint hash = h->h_fn(key);
	hash %= h->table_len;

	shash_elem *e = (shash_elem *) ( ((uint8_t *)h->table) + (SHASH_ELEM_SZ(h) * hash));	

	// If bucket empty, def can't delete
	if ( e->in_use == false )
		return( SHASH_ERR_NOTFOUND );

	shash_elem *e_prev = 0;

	// Look for teh element and destroy if found
	while (e) {
		if ( memcmp(SHASH_ELEM_KEY_PTR(h, e), key, h->key_len) == 0) {
			// Found it
			// patchup pointers & free element if not head
			if (e_prev) {
				e_prev->next = e->next;
				free (e);
			}
			// am at head - more complicated
			else {
				// at head with no next - easy peasy!
				if (0 == e->next) {
					e->in_use = false;
				}
				// at head with a next - more complicated
				else {
					shash_elem *_t = e->next;
					memcpy(e, e->next, SHASH_ELEM_SZ(h) );
					free(_t);
				}
			}
			h->elements--;
			return( SHASH_OK );
		}
		e_prev = e;
		e = e->next;
	}
	
	return ( SHASH_ERR_NOTFOUND );

	
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq %rsi, %rdi
movq %rsi, %r12
callq *0x10(%rbx)
xorl %edx, %edx
movl $0xfffffffd, %ebp       # imm = 0xFFFFFFFD
divl 0x18(%rbx)
movl 0x4(%rbx), %r13d
movl 0x8(%rbx), %eax
movq 0x20(%rbx), %r15
leaq 0x10(%r13,%rax), %rsi
imulq %rsi, %rdx
cmpb $0x0, 0x8(%r15,%rdx)
sete %al
testq %r15, %r15
sete %cl
orb %al, %cl
jne 0x4192
addq %rdx, %r15
movq %rsi, (%rsp)
movq %r12, %rsi
movq %r13, %rdx
leaq 0x9(%r15), %rdi
callq 0x2260
testl %eax, %eax
je 0x4160
movq %r15, %r14
movq (%r14), %r15
testq %r15, %r15
je 0x4192
leaq 0x9(%r15), %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x2260
testl %eax, %eax
movq %r14, %rax
movq %r15, %r14
jne 0x413d
jmp 0x4162
xorl %eax, %eax
movq (%r15), %r12
testq %rax, %rax
je 0x4172
movq %r12, (%rax)
movq %r15, %rdi
jmp 0x4189
testq %r12, %r12
je 0x41a3
movq (%rsp), %rdx
movq %r15, %rdi
movq %r12, %rsi
callq 0x21b0
movq %r12, %rdi
callq 0x22c0
decl (%rbx)
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movb $0x0, 0x8(%r15)
jmp 0x418e
// File: /workspace/github_c_makefile_star2_O3/sharpyfox[P]citrusleaf-client/tests/loop_c/src/shash.c
// Function: shash_reduce
int
shash_reduce(shash *h, shash_reduce_fn reduce_fn, void *udata)
{
	int rv = 0;
	
	if (h->flags & SHASH_CR_MT_BIGLOCK) {
		pthread_mutex_lock( &h->biglock);
	}

	for (uint i=0; i<h->table_len ; i++) {
		
		pthread_mutex_t *l = 0;
		if (h->flags & SHASH_CR_MT_MANYLOCK) {
			l = &(h->lock_table[i]);
			pthread_mutex_lock( l );
		}
		
		shash_elem *list_he = (shash_elem *) ( ((uint8_t *)h->table) + (SHASH_ELEM_SZ(h) * i));
		while (list_he) {
			
			// not in use is common at head pointer - unused bucket
			if (list_he->in_use == false) {
				if (l) 	pthread_mutex_unlock(l);
				break;
			}
			
			rv = reduce_fn(	SHASH_ELEM_KEY_PTR(h, list_he), SHASH_ELEM_VALUE_PTR(h, list_he), udata);
			if (0 != rv) {
				if (l)  pthread_mutex_unlock(l);
				goto Out;
			}
			
			list_he = list_he->next;
		};

		if (l)	pthread_mutex_unlock(l);

	}
Out:
	if (h->flags & SHASH_CR_MT_BIGLOCK)
		pthread_mutex_unlock(&h->biglock);

	return(rv);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testb $0x4, 0xc(%rdi)
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
je 0x433c
leaq 0x28(%rbx), %rdi
callq 0x23b0
cmpl $0x0, 0x18(%rbx)
je 0x43e5
xorl %r13d, %r13d
testb $0x8, 0xc(%rbx)
jne 0x4359
movq $0x0, (%rsp)
jmp 0x436f
leaq (%r13,%r13,4), %rdi
shlq $0x3, %rdi
addq 0x50(%rbx), %rdi
movq %rdi, (%rsp)
callq 0x23b0
movq 0x20(%rbx), %r12
testq %r12, %r12
je 0x43b2
movl 0x4(%rbx), %eax
movl 0x8(%rbx), %ecx
leaq 0x10(%rax,%rcx), %rax
imulq %r13, %rax
addq %rax, %r12
cmpb $0x0, 0x8(%r12)
je 0x43bd
movl 0x4(%rbx), %eax
leaq 0x9(%r12), %rdi
movq %r14, %rdx
leaq 0x9(%r12,%rax), %rsi
callq *%r15
testl %eax, %eax
jne 0x43e9
movq (%r12), %r12
testq %r12, %r12
jne 0x438a
movq (%rsp), %r12
testq %r12, %r12
jne 0x43ce
jmp 0x43d6
movq (%rsp), %r12
testq %r12, %r12
je 0x43d6
movq %r12, %rdi
callq 0x2190
movq %r12, %rdi
callq 0x2190
movl 0x18(%rbx), %eax
incq %r13
cmpq %rax, %r13
jb 0x4349
xorl %ebp, %ebp
jmp 0x43f9
movq (%rsp), %rdi
movl %eax, %ebp
testq %rdi, %rdi
je 0x43f9
callq 0x2190
testb $0x4, 0xc(%rbx)
je 0x440b
addq $0x28, %rbx
movq %rbx, %rdi
callq 0x2190
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/sharpyfox[P]citrusleaf-client/tests/loop_c/src/shash.c
// Function: shash_destroy
void
shash_destroy(shash *h)
{
	shash_elem *e_table = h->table;
	for (uint i=0;i<h->table_len;i++) {
		if (e_table->next) {
			shash_elem *e = e_table->next;
			shash_elem *t;
			while (e) {
				t = e->next;
				free(e);
				e = t;
			}
		}
		e_table = (shash_elem *) (((uint8_t *)e_table) + SHASH_ELEM_SZ(h));
	}

	if (h->flags & SHASH_CR_MT_BIGLOCK) {
		pthread_mutex_destroy(&h->biglock);
	}
	if (h->flags & SHASH_CR_MT_MANYLOCK) {
		for (uint i=0;i<h->table_len;i++) {
			pthread_mutex_destroy(&(h->lock_table[i]));
		}
		free(h->lock_table);
	}

	free(h->table);
	free(h);	
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl 0x18(%rdi), %eax
movq %rdi, %rbx
testl %eax, %eax
je 0x45b6
movq 0x20(%rbx), %r14
xorl %ebp, %ebp
movq (%r14), %rdi
testq %rdi, %rdi
je 0x45a2
movq (%rdi), %r15
callq 0x22c0
testq %r15, %r15
movq %r15, %rdi
jne 0x458f
movl 0x18(%rbx), %eax
movl 0x4(%rbx), %ecx
movl 0x8(%rbx), %edx
incl %ebp
addq %rcx, %rdx
cmpl %eax, %ebp
leaq 0x10(%r14,%rdx), %r14
jb 0x4587
movl 0xc(%rbx), %eax
testb $0x4, %al
je 0x45c9
leaq 0x28(%rbx), %rdi
callq 0x22b0
movl 0xc(%rbx), %eax
testb $0x8, %al
je 0x45fd
cmpl $0x0, 0x18(%rbx)
je 0x45f4
xorl %r14d, %r14d
xorl %r15d, %r15d
movq 0x50(%rbx), %rdi
addq %r14, %rdi
callq 0x22b0
movl 0x18(%rbx), %eax
incq %r15
addq $0x28, %r14
cmpq %rax, %r15
jb 0x45d9
movq 0x50(%rbx), %rdi
callq 0x22c0
movq 0x20(%rbx), %rdi
callq 0x22c0
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x22c0
// File: /workspace/github_c_makefile_star2_O3/sharpyfox[P]citrusleaf-client/src/citrusleaf.c
// Function: citrusleaf_object_init_str
void citrusleaf_object_init_str(cl_object *o, const char *str)
{
	o->type = CL_STR;
	o->sz = strlen(str);
	o->u.str = (char *) str;
	o->free = 0;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
movl $0x3, (%rdi)
movq %rsi, %rdi
movq %rsi, %rbx
callq 0x20e0
movq %rax, 0x8(%r14)
movq %rbx, 0x10(%r14)
movq $0x0, 0x18(%r14)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/sharpyfox[P]citrusleaf-client/src/citrusleaf.c
// Function: citrusleaf_copy_object
int citrusleaf_copy_object(cl_object *destobj, const cl_object *srcobj)
{
	destobj->type = srcobj->type;
	destobj->sz = srcobj->sz;
	destobj->free = 0; //By default assume that there is nothing to free

	//Each of the types of bins needs a different treatment in copying.
	switch(srcobj->type) {
		case CL_NULL:
			break;
		case CL_INT:
			destobj->u.i64 = srcobj->u.i64;
			break;
		case CL_STR:
			destobj->free = destobj->u.str = malloc(destobj->sz+1);
			if (destobj->free == NULL) {
				return -1;
			}
			memcpy(destobj->u.str, srcobj->u.str, destobj->sz);
			destobj->u.str[destobj->sz] = 0;
			break;
		case CL_BLOB:
		case CL_DIGEST:
		case CL_JAVA_BLOB:
		case CL_CSHARP_BLOB:
		case CL_PYTHON_BLOB:
		case CL_RUBY_BLOB:
		case CL_PHP_BLOB:
			destobj->free = destobj->u.blob = malloc(destobj->sz);
			if (destobj->free == NULL) {
				return -1;
			}
			memcpy(destobj->u.blob, srcobj->u.blob, destobj->sz);
			break;
		default:
			cf_error("Encountered an unknown bin type %d", srcobj->type);
			return -1;
			break;
	}

	return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movl (%rsi), %eax
movl %eax, (%rdi)
movq 0x8(%rsi), %rbx
movq %rbx, 0x8(%rdi)
movq $0x0, 0x18(%rdi)
movl (%rsi), %edx
cmpq $0xb, %rdx
ja 0x47bd
leaq 0xaf3c(%rip), %rax      # 0xf68c
movq %rsi, %r14
movq %rdi, %r15
movslq (%rax,%rdx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
movq %rbx, %rdi
callq 0x22e0
testq %rax, %rax
movq %rax, 0x10(%r15)
movq %rax, 0x18(%r15)
je 0x47b6
movq 0x10(%r14), %rsi
movq %rax, %rdi
movq %rbx, %rdx
callq 0x21b0
xorl %ebx, %ebx
jmp 0x47f5
leaq 0x1(%rbx), %rdi
callq 0x22e0
testq %rax, %rax
movq %rax, 0x10(%r15)
movq %rax, 0x18(%r15)
je 0x47b6
movq 0x10(%r14), %rsi
movq %rax, %rdi
movq %rbx, %rdx
movq %rax, %r12
callq 0x21b0
movb $0x0, (%r12,%rbx)
jmp 0x4783
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
jmp 0x47f5
leaq 0x11b04(%rip), %rax     # 0x162c8
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
cmpl $0x0, (%rax)
js 0x47f5
leaq 0x11afb(%rip), %rax     # 0x162d0
leaq 0xaff0(%rip), %rsi      # 0xf7cc
xorl %edi, %edi
movq (%rax), %rcx
xorl %eax, %eax
callq *%rcx
jmp 0x47f5
movl %edx, %ebx
jmp 0x47f5
movq 0x10(%r14), %rax
xorl %ebx, %ebx
movq %rax, 0x10(%r15)
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq