LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/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, %ecx
movq %rsi, %rax
movb $0x0, (%rdi,%rcx)
decq %rcx
pushq $0xa
popq %rsi
testl %ecx, %ecx
js 0x2e1a
xorl %edx, %edx
movl %ecx, %r8d
decq %rcx
divq %rsi
andl $0x7fffffff, %r8d       # imm = 0x7FFFFFFF
orb $0x30, %dl
movb %dl, (%rdi,%r8)
jmp 0x2dfb
retq
// File: /workspace/github_c_makefile_star2_O2/sharpyfox[P]citrusleaf-client/tests/loop_c/src/shash.c
// Function: shash_create
int
shash_create(shash **h_r, shash_hash_fn h_fn, uint32_t key_len, uint32_t value_len, uint32_t sz, uint flags)
{
	shash *h;

	h = malloc(sizeof(shash));
	if (!h)	return(SHASH_ERR);

	h->elements = 0;
	h->table_len = sz;
	h->key_len = key_len;
	h->value_len = value_len;
	h->flags = flags;
	h->h_fn = h_fn;

	if ((flags & SHASH_CR_MT_BIGLOCK) && (flags & SHASH_CR_MT_MANYLOCK)) {
		*h_r = 0;
		return(SHASH_ERR);
	}
	
	h->table = malloc(sz * SHASH_ELEM_SZ(h));
	if (!h->table) {
		free(h);
		*h_r = 0;
		return(SHASH_ERR);
	}
	
	shash_elem *table = h->table;
	for (uint i=0;i<sz;i++) {
		table->in_use = false;
		table->next = 0;
		// next element in head table
		table = (shash_elem *) (((uint8_t *)table) + SHASH_ELEM_SZ(h));
	}
	
	if (flags & SHASH_CR_MT_BIGLOCK) {
		if (0 != pthread_mutex_init ( &h->biglock, 0) ) {
			free(h->table); free(h);
			return(SHASH_ERR);
		}
	}
	else
		memset( &h->biglock, 0, sizeof( h->biglock ) );
	
	if (flags & SHASH_CR_MT_MANYLOCK) {
		h->lock_table = malloc( sizeof(pthread_mutex_t) * sz);
		if (! h->lock_table) {
			free(h);
			*h_r = 0;
			return(SHASH_ERR);
		}
		for (uint i=0;i<sz;i++) {
			pthread_mutex_init( &(h->lock_table[i]), 0 );
		}
	}
	else
		h->lock_table = 0;
	

	*h_r = h;

	return(SHASH_OK);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r9d, %r15d
movl %r8d, %r12d
movl %ecx, %r13d
movl %edx, %ebx
movq %rsi, %rbp
movq %rdi, (%rsp)
pushq $0x58
popq %rdi
callq 0x22e0
pushq $-0x1
popq %rcx
testq %rax, %rax
je 0x3867
andl $0x0, (%rax)
movl %r12d, 0x18(%rax)
movl %ebx, 0x4(%rax)
movl %r13d, 0x8(%rax)
movl %r15d, 0xc(%rax)
movq %rax, %r14
movq %rbp, 0x10(%rax)
movl %r15d, %eax
notl %eax
testb $0xc, %al
jne 0x378c
movq (%rsp), %rax
andq $0x0, (%rax)
jmp 0x3867
movl %ebx, %eax
movl %r13d, %ecx
movl %r12d, %ebp
leaq 0x10(%rax,%rcx), %rbx
movq %rbx, %rdi
imulq %rbp, %rdi
callq 0x22e0
testq %rax, %rax
movq %rax, 0x20(%r14)
je 0x3854
addq $0x8, %rax
subl $0x1, %r12d
jb 0x37c9
movb $0x0, (%rax)
andq $0x0, -0x8(%rax)
addq %rbx, %rax
jmp 0x37b6
movq %r14, %rdi
addq $0x28, %rdi
testb $0x4, %r15b
jne 0x37f0
andq $0x0, 0x20(%rdi)
andq $0x0, 0x18(%rdi)
andq $0x0, 0x10(%rdi)
andq $0x0, 0x8(%rdi)
andq $0x0, (%rdi)
jmp 0x380e
xorl %esi, %esi
callq 0x2400
testl %eax, %eax
je 0x380e
movq 0x20(%r14), %rdi
callq 0x22c0
movq %r14, %rdi
callq 0x22c0
jmp 0x3864
testb $0x8, %r15b
jne 0x3824
andq $0x0, 0x50(%r14)
movq (%rsp), %rax
xorl %ecx, %ecx
movq %r14, (%rax)
jmp 0x3867
imulq $0x28, %rbp, %r15
movq %r15, %rdi
callq 0x22e0
testq %rax, %rax
movq %rax, 0x50(%r14)
je 0x3854
xorl %ebx, %ebx
cmpq %rbx, %r15
je 0x3819
movq 0x50(%r14), %rdi
xorl %esi, %esi
addq %rbx, %rdi
callq 0x2400
addq $0x28, %rbx
jmp 0x383b
movq %r14, %rdi
callq 0x22c0
movq (%rsp), %rax
andq $0x0, (%rax)
pushq $-0x1
popq %rcx
movl %ecx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x38bf
movb $0x1, %cl
testb $0x8, %al
je 0x38d0
movq 0x50(%rbx), %rdi
testq %rdi, %rdi
je 0x38d0
imulq $0x28, %r12, %rax
addq %rax, %rdi
jmp 0x38c3
leaq 0x28(%rbx), %rdi
movq %rdi, (%rsp)
callq 0x23b0
xorl %ecx, %ecx
jmp 0x38d8
movq $0x0, (%rsp)
movl %ecx, 0xc(%rsp)
movl 0x8(%rbx), %ecx
movl 0x4(%rbx), %r13d
movq 0x20(%rbx), %rax
movq %rcx, 0x18(%rsp)
leaq 0x10(%r13,%rcx), %rcx
imulq %rcx, %r12
movq %rcx, 0x20(%rsp)
cmpb $0x0, 0x8(%rax,%r12)
leaq (%rax,%r12), %r14
je 0x394e
movq %rbp, 0x10(%rsp)
movq %r14, %rbp
testq %rbp, %rbp
je 0x392f
leaq 0x9(%rbp), %r12
movq %r15, %rsi
movq %r13, %rdx
movq %r12, %rdi
callq 0x2260
testl %eax, %eax
je 0x3980
movq (%rbp), %rbp
jmp 0x390e
movq 0x20(%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 0x39a3
jmp 0x39ac
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
addq %r13, %r12
movq %r12, %rdi
callq 0x21b0
testb $0x4, 0xc(%rbx)
je 0x39ac
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_O2/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, %r12
callq *0x10(%rbx)
xorl %edx, %edx
divl 0x18(%rbx)
movl 0xc(%rbx), %eax
testb $0x4, %al
movl %edx, %r15d
jne 0x3a01
testb $0x8, %al
je 0x3a19
movq 0x50(%rbx), %rdi
testq %rdi, %rdi
je 0x3a19
imulq $0x28, %r15, %rax
addq %rax, %rdi
jmp 0x3a05
leaq 0x28(%rbx), %rdi
movq %rdi, 0x8(%rsp)
callq 0x23b0
movl $0x0, 0x4(%rsp)
jmp 0x3a28
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, %r15
cmpb $0x0, 0x8(%rax,%r15)
leaq (%rax,%r15), %r14
je 0x3a80
movq %r14, %r15
testq %r15, %r15
je 0x3a68
leaq 0x9(%r15), %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x2260
testl %eax, %eax
je 0x3ab6
movq (%r15), %r15
jmp 0x3a4b
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 %r12, %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 0x3acd
jmp 0x3ad7
testb $0x4, 0xc(%rbx)
jne 0x3ac1
pushq $-0x4
popq %rbp
jmp 0x3ad7
addq $0x28, %rbx
pushq $-0x4
popq %rbp
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_O2/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 0x3b34
movb $0x1, %cl
testb $0x8, %al
je 0x3b47
movq 0x50(%r12), %rdi
testq %rdi, %rdi
je 0x3b47
imulq $0x28, %rbx, %rax
addq %rax, %rdi
jmp 0x3b39
leaq 0x28(%r12), %rdi
movq %rdi, 0x8(%rsp)
callq 0x23b0
xorl %ecx, %ecx
jmp 0x3b50
movq $0x0, 0x8(%rsp)
movq 0x20(%r12), %r15
movl 0x4(%r12), %r13d
movl 0x8(%r12), %r12d
leaq 0x10(%r13,%r12), %rax
imulq %rax, %rbx
pushq $-0x3
popq %rbp
cmpb $0x0, 0x8(%r15,%rbx)
je 0x3bb3
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 0x3b9a
movq (%r15), %r15
testq %r15, %r15
jne 0x3b7a
jmp 0x3baf
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 0x3bc1
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_O2/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 0x3c1d
testb $0x8, %al
je 0x3c33
movq 0x50(%r13), %r12
testq %r12, %r12
je 0x3c33
imulq $0x28, %rbx, %rax
addq %rax, %r12
jmp 0x3c21
leaq 0x28(%r13), %r12
movq %r12, %rdi
callq 0x23b0
movl $0x0, 0x4(%rsp)
jmp 0x3c3c
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 0x3c7a
addq %rbx, %r14
leaq 0x9(%r14), %r13
movq %r15, %rsi
movq %rbp, %rdx
movq %r13, %rdi
callq 0x2260
testl %eax, %eax
je 0x3c9d
movq (%r14), %r14
testq %r14, %r14
jne 0x3c5c
cmpb $0x0, 0x4(%rsp)
je 0x3c8b
pushq $-0x3
popq %rax
movq 0x8(%rsp), %rcx
jmp 0x3cb6
movq %r12, %rdi
callq 0x2190
pushq $-0x3
popq %rax
movq 0x8(%rsp), %rcx
jmp 0x3cbb
movq 0x10(%rsp), %rax
addq %rbp, %r13
movq 0x8(%rsp), %rcx
movq %r13, (%rax)
xorl %eax, %eax
cmpb $0x0, 0x4(%rsp)
je 0x3cbe
testq %rcx, %rcx
je 0x3cc1
xorl %r12d, %r12d
movq %r12, (%rcx)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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, %r14d
jne 0x3d0f
testb $0x8, %al
je 0x3d25
movq 0x50(%rbx), %r12
testq %r12, %r12
je 0x3d25
imulq $0x28, %r14, %rax
addq %rax, %r12
jmp 0x3d13
leaq 0x28(%rbx), %r12
movq %r12, %rdi
callq 0x23b0
movl $0x0, 0x4(%rsp)
jmp 0x3d2e
movb $0x1, %al
xorl %r12d, %r12d
movl %eax, 0x4(%rsp)
movl 0x4(%rbx), %r13d
movl 0x8(%rbx), %ecx
movq 0x20(%rbx), %rax
leaq 0x10(%r13,%rcx), %rcx
imulq %rcx, %r14
movq %rcx, 0x10(%rsp)
pushq $-0x3
popq %rbp
cmpb $0x0, 0x8(%rax,%r14)
je 0x3dbe
movq %r12, 0x8(%rsp)
addq %r14, %rax
xorl %r12d, %r12d
testq %rax, %rax
je 0x3d80
leaq 0x9(%rax), %rdi
movq %r15, %rsi
movq %r13, %rdx
movq %rax, %r14
callq 0x2260
testl %eax, %eax
je 0x3d87
movq (%r14), %rax
movq %r14, %r12
jmp 0x3d5d
movq 0x8(%rsp), %r12
jmp 0x3dbe
movq (%r14), %r15
testq %r12, %r12
je 0x3d98
movq %r15, (%r12)
movq %r14, %rdi
jmp 0x3db0
testq %r15, %r15
je 0x3ddf
movq 0x10(%rsp), %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0x21b0
movq %r15, %rdi
callq 0x22c0
movq 0x8(%rsp), %r12
decl (%rbx)
xorl %ebp, %ebp
movl 0x4(%rsp), %eax
testb %al, %al
jne 0x3dce
movq %r12, %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(%r14)
jmp 0x3db5
// File: /workspace/github_c_makefile_star2_O2/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, %r14
callq *0x10(%rbx)
xorl %edx, %edx
divl 0x18(%rbx)
movl 0x4(%rbx), %r12d
movl 0x8(%rbx), %ecx
movq 0x20(%rbx), %rax
leaq 0x10(%r12,%rcx), %rcx
imulq %rcx, %rdx
pushq $-0x3
popq %rbp
cmpb $0x0, 0x8(%rax,%rdx)
je 0x3e7f
addq %rdx, %rax
xorl %r15d, %r15d
movq %rcx, (%rsp)
testq %rax, %rax
je 0x3e7f
leaq 0x9(%rax), %rdi
movq %r14, %rsi
movq %r12, %rdx
movq %rax, %r13
callq 0x2260
testl %eax, %eax
je 0x3e4e
movq (%r13), %rax
movq %r13, %r15
jmp 0x3e2a
movq (%r13), %r14
testq %r15, %r15
je 0x3e5f
movq %r14, (%r15)
movq %r13, %rdi
jmp 0x3e76
testq %r14, %r14
je 0x3e90
movq (%rsp), %rdx
movq %r13, %rdi
movq %r14, %rsi
callq 0x21b0
movq %r14, %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(%r13)
jmp 0x3e7b
// File: /workspace/github_c_makefile_star2_O2/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 0x3ff8
leaq 0x28(%rbx), %rdi
callq 0x23b0
xorl %ebp, %ebp
movl 0x18(%rbx), %eax
cmpq %rax, %rbp
jae 0x40ba
testb $0x8, 0xc(%rbx)
jne 0x4011
xorl %r12d, %r12d
jmp 0x4021
imulq $0x28, %rbp, %r12
addq 0x50(%rbx), %r12
movq %r12, %rdi
callq 0x23b0
movl 0x4(%rbx), %eax
movl 0x8(%rbx), %ecx
movq %rbp, (%rsp)
leaq 0x10(%rax,%rcx), %r13
imulq %rbp, %r13
addq 0x20(%rbx), %r13
testq %r13, %r13
je 0x4060
cmpb $0x0, 0x8(%r13)
je 0x4067
movl 0x4(%rbx), %eax
leaq 0x9(%r13), %rdi
movq %r14, %rdx
leaq 0x9(%r13,%rax), %rsi
callq *%r15
testl %eax, %eax
jne 0x4088
movq (%r13), %r13
jmp 0x4038
testq %r12, %r12
jne 0x4074
jmp 0x407c
testq %r12, %r12
je 0x407c
movq %r12, %rdi
callq 0x2190
movq %r12, %rdi
callq 0x2190
movq (%rsp), %rbp
incq %rbp
jmp 0x3ffa
movl %eax, %ebp
testq %r12, %r12
je 0x4097
movq %r12, %rdi
callq 0x2190
testb $0x4, 0xc(%rbx)
je 0x40a9
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
xorl %ebp, %ebp
jmp 0x4097
// File: /workspace/github_c_makefile_star2_O2/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
movq 0x20(%rdi), %r14
movq %rdi, %rbx
xorl %ebp, %ebp
cmpl 0x18(%rbx), %ebp
jae 0x424a
movq (%r14), %rdi
testq %rdi, %rdi
jne 0x4233
jmp 0x4238
movq (%rdi), %r15
callq 0x22c0
movq %r15, %rdi
testq %rdi, %rdi
jne 0x4228
movl 0x4(%rbx), %eax
movl 0x8(%rbx), %ecx
incl %ebp
addq %rax, %rcx
leaq 0x10(%r14,%rcx), %r14
jmp 0x4219
movl 0xc(%rbx), %eax
testb $0x4, %al
je 0x425d
leaq 0x28(%rbx), %rdi
callq 0x22b0
movl 0xc(%rbx), %eax
testb $0x8, %al
je 0x4289
xorl %r14d, %r14d
xorl %r15d, %r15d
movl 0x18(%rbx), %eax
movq 0x50(%rbx), %rdi
cmpq %rax, %r15
jae 0x4284
addq %r14, %rdi
callq 0x22b0
incq %r15
addq $0x28, %r14
jmp 0x4267
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_O2/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)
andq $0x0, 0x18(%r14)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/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)
andq $0x0, 0x18(%rdi)
movl (%rsi), %edx
cmpq $0xb, %rdx
ja 0x4429
leaq 0xa2ce(%rip), %rax      # 0xe68c
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 0x4424
movq 0x10(%r14), %rsi
movq %rax, %rdi
movq %rbx, %rdx
callq 0x21b0
xorl %ebx, %ebx
jmp 0x445f
leaq 0x1(%rbx), %rdi
callq 0x22e0
testq %rax, %rax
movq %rax, 0x10(%r15)
movq %rax, 0x18(%r15)
je 0x4424
movq 0x10(%r14), %rsi
movq %rax, %rdi
movq %rbx, %rdx
movq %rax, %r12
callq 0x21b0
movb $0x0, (%r12,%rbx)
jmp 0x43f1
pushq $-0x1
popq %rbx
jmp 0x445f
leaq 0x10e98(%rip), %rax     # 0x152c8
pushq $-0x1
popq %rbx
cmpl $0x0, (%rax)
js 0x445f
leaq 0x10e91(%rip), %rax     # 0x152d0
leaq 0xa386(%rip), %rsi      # 0xe7cc
xorl %edi, %edi
movq (%rax), %rcx
xorl %eax, %eax
callq *%rcx
jmp 0x445f
movl %edx, %ebx
jmp 0x445f
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
// File: /workspace/github_c_makefile_star2_O2/sharpyfox[P]citrusleaf-client/src/citrusleaf.c
// Function: citrusleaf_copy_bins
int citrusleaf_copy_bins(cl_bin **destbins, const cl_bin *srcbins, int n_bins)
{
	int rv;

	cl_bin *newbins = calloc(sizeof(struct cl_bin_s), n_bins);
	if (newbins == NULL) {
		return -1;
	}

	for (int i=0; i<n_bins; i++) {
		rv = citrusleaf_copy_bin(&newbins[i], &srcbins[i]);
		if (rv == -1) {
			// Unwind previous bin allocations.
			if (i > 0) {
				citrusleaf_bins_free(newbins, i);
			}
			free(newbins);
			return -1;
		}
	}

	*destbins = newbins;
	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r13
movl %edx, %r15d
movq %rdi, %r14
movslq %edx, %rsi
pushq $0x40
popq %rdi
callq 0x2170
pushq $-0x1
popq %rbx
testq %rax, %rax
je 0x4514
xorl %ebp, %ebp
testl %r15d, %r15d
movq %r14, (%rsp)
movq %rax, %r12
movq %rax, %r14
cmovlel %ebp, %r15d
cmpq %rbp, %r15
je 0x44f2
movq %r14, %rdi
movq %r13, %rsi
callq 0x446d
cmpl $-0x1, %eax
je 0x44fd
incq %rbp
addq $0x40, %r13
addq $0x40, %r14
jmp 0x44d0
movq (%rsp), %rax
xorl %ebx, %ebx
movq %r12, (%rax)
jmp 0x4514
testq %rbp, %rbp
je 0x450c
movq %r12, %rdi
movl %ebp, %esi
callq 0x4366
movq %r12, %rdi
callq 0x22c0
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/sharpyfox[P]citrusleaf-client/src/citrusleaf.c
// Function: cl_write_header
uint8_t *
cl_write_header(uint8_t *buf, size_t msg_sz, uint info1, uint info2, uint info3, uint32_t generation, uint32_t record_ttl, uint32_t transaction_ttl, uint32_t n_fields, uint32_t n_ops )
{
	as_msg *msg = (as_msg *) buf;
	
	msg->proto.version = CL_PROTO_VERSION;
	msg->proto.type = CL_PROTO_TYPE_CL_MSG;
	msg->proto.sz = msg_sz - sizeof(cl_proto);
	cl_proto_swap(&msg->proto);
	msg->m.header_sz = sizeof(cl_msg);
	msg->m.info1 = info1;
	msg->m.info2 = info2;
	msg->m.info3 = info3;
	msg->m.unused = 0;
	msg->m.result_code = 0;
	msg->m.generation = generation;
	msg->m.record_ttl = record_ttl;
	msg->m.transaction_ttl = transaction_ttl;
	msg->m.n_fields = n_fields;
	msg->m.n_ops = n_ops;
	cl_msg_swap_header(&msg->m);
	return (buf + sizeof(as_msg));
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl 0x40(%rsp), %r13d
addq $-0x8, %rsi
movw $0x302, (%rdi)          # imm = 0x302
movl %r9d, %ebp
movl %r8d, %r14d
movl %ecx, %r15d
movl %edx, %r12d
movq %rdi, %rbx
movl %esi, 0x2(%rdi)
shrq $0x20, %rsi
movw %si, 0x6(%rdi)
callq 0xbd64
movl 0x48(%rsp), %eax
movzwl 0x50(%rsp), %edx
movzwl 0x58(%rsp), %ecx
movb $0x16, 0x8(%rbx)
movb %r12b, 0x9(%rbx)
movb %r15b, 0xa(%rbx)
movb %r14b, 0xb(%rbx)
andw $0x0, 0xc(%rbx)
leaq 0x8(%rbx), %rdi
movl %ebp, 0xe(%rbx)
movl %r13d, 0x12(%rbx)
movl %eax, 0x16(%rbx)
movw %dx, 0x1a(%rbx)
movw %cx, 0x1c(%rbx)
callq 0xbd80
addq $0x1e, %rbx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/sharpyfox[P]citrusleaf-client/src/citrusleaf.c
// Function: cl_value_to_op_get_size
int
cl_value_to_op_get_size(cl_bin *v, size_t *sz)
{
	switch(v->object.type) {
		case CL_NULL:
			break;
		case CL_INT:
			*sz += value_to_op_int_sz(v->object.u.i64);
			break;
		case CL_STR:
			*sz += v->object.sz;
			break;
		case CL_PYTHON_BLOB:
		case CL_RUBY_BLOB:
		case CL_JAVA_BLOB:
		case CL_CSHARP_BLOB:
		case CL_BLOB:
		case CL_PHP_BLOB:
			*sz += v->object.sz;
			break;
		default:
			cf_error("internal error value_to_op get size has unknown value type %d", v->object.type);
			return(-1);
	}
	return(0);
}

// Assembly:
pushq %rbx
movl 0x20(%rdi), %edx
cmpq $0xb, %rdx
ja 0x45e4
leaq 0xa0fa(%rip), %rax      # 0xe6bc
movslq (%rax,%rdx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
movq 0x28(%rdi), %rax
xorl %ebx, %ebx
addq %rax, (%rsi)
movl %ebx, %eax
popq %rbx
retq
movl %edx, %ebx
jmp 0x45d4
addq $0x8, (%rsi)
xorl %ebx, %ebx
jmp 0x45d4
leaq 0x10cdd(%rip), %rax     # 0x152c8
pushq $-0x1
popq %rbx
cmpl $0x0, (%rax)
js 0x45d4
leaq 0x10cd6(%rip), %rax     # 0x152d0
leaq 0xa1ee(%rip), %rsi      # 0xe7ef
xorl %edi, %edi
movq (%rax), %rcx
xorl %eax, %eax
callq *%rcx
jmp 0x45d4
// File: /workspace/github_c_makefile_star2_O2/sharpyfox[P]citrusleaf-client/src/citrusleaf.c
// Function: cl_set_value_particular
void
cl_set_value_particular(cl_msg_op *op, cl_bin *value)
{
	if (op->name_sz > sizeof(value->bin_name)) {
#ifdef DEBUG		
		cf_debug("Set Value Particular: bad response from server");
#endif	
		return;
	}
	
	memcpy(value->bin_name, op->name, op->name_sz);
	value->bin_name[op->name_sz] = 0;
	set_object(op, &value->object);
}

// Assembly:
movzbl 0x7(%rdi), %edx
cmpq $0x20, %rdx
jbe 0x4d07
retq
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x8(%rdi), %rsi
movq %rbx, %rdi
callq 0x21b0
movzbl 0x7(%r14), %eax
movq %r14, %rdi
movb $0x0, (%rbx,%rax)
addq $0x20, %rbx
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x4d39
// File: /workspace/github_c_makefile_star2_O2/sharpyfox[P]citrusleaf-client/src/citrusleaf.c
// Function: set_object
static int
set_object(cl_msg_op *op, cl_object *obj)
{
	int rv = 0;
	
	obj->type = op->particle_type;
	
	switch(op->particle_type) {
		case CL_NULL:
			obj->sz = 0;
			obj->free = 0;
			break;
		case CL_INT:
			obj->sz = 0; // unused in integer case
			obj->free = 0;
			rv = op_to_value_int(cl_msg_op_get_value_p(op), cl_msg_op_get_value_sz(op),&(obj->u.i64));
			break;
		case CL_STR:
			obj->sz = cl_msg_op_get_value_sz(op);
			obj->free = obj->u.str = malloc(obj->sz+1);
			if (obj->free == NULL)	return(-1);
			memcpy(obj->u.str, cl_msg_op_get_value_p(op), obj->sz);
			obj->u.str[obj->sz] = 0;
			break;
		case CL_BLOB:
		case CL_JAVA_BLOB:
		case CL_CSHARP_BLOB:
		case CL_PYTHON_BLOB:
		case CL_RUBY_BLOB:
		case CL_PHP_BLOB:
			obj->sz = cl_msg_op_get_value_sz(op);
			obj->free = obj->u.blob = malloc(obj->sz);
			if (obj->free == 0)	return(-1);
			memcpy(obj->u.blob, cl_msg_op_get_value_p(op), obj->sz);
			break;
		default:
			cf_error("parse: received unknown object type %d", op->particle_type);
			return(-1);
	}
	return(rv);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movzbl 0x5(%rdi), %eax
movl %eax, (%rsi)
movzbl 0x5(%rdi), %edx
cmpq $0xb, %rdx
ja 0x4e4d
leaq 0x9a14(%rip), %rax      # 0xe770
movq %rsi, %rbx
movq %rdi, %r14
movslq (%rax,%rdx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
movl (%r14), %r15d
movzbl 0x7(%r14), %eax
subl %eax, %r15d
addl $-0x4, %r15d
movq %r15, %rdi
movq %r15, 0x8(%rbx)
callq 0x22e0
testq %rax, %rax
movq %rax, 0x10(%rbx)
movq %rax, 0x18(%rbx)
je 0x4eb5
movzbl 0x7(%r14), %ecx
movq %rax, %rdi
movq %r15, %rdx
leaq 0x8(%r14,%rcx), %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x21b0
movl (%r14), %r15d
movzbl 0x7(%r14), %eax
subl %eax, %r15d
addl $-0x4, %r15d
leaq 0x1(%r15), %rdi
movq %r15, 0x8(%rbx)
callq 0x22e0
testq %rax, %rax
movq %rax, 0x10(%rbx)
movq %rax, 0x18(%rbx)
je 0x4eb5
movq %rax, %r12
movzbl 0x7(%r14), %eax
movq %r15, %rdx
movq %r12, %rdi
leaq 0x8(%r14,%rax), %rsi
callq 0x21b0
movb $0x0, (%r12,%r15)
jmp 0x4eb5
andq $0x0, 0x8(%rbx)
andq $0x0, 0x18(%rbx)
jmp 0x4eb5
andq $0x0, 0x8(%rbx)
andq $0x0, 0x18(%rbx)
movzbl 0x7(%r14), %ecx
movl (%r14), %eax
subl %ecx, %eax
addl $-0x4, %eax
cmpl $0x8, %eax
jg 0x4eb5
testl %eax, %eax
je 0x4e86
leaq 0x8(%r14,%rcx), %rdx
cmpl $0x1, %eax
je 0x4e7b
cmpl $0x8, %eax
jne 0x4e8a
movq (%rdx), %rcx
jmp 0x4eae
leaq 0x10474(%rip), %rax     # 0x152c8
cmpl $0x0, (%rax)
js 0x4eb5
leaq 0x10470(%rip), %rax     # 0x152d0
leaq 0x9a98(%rip), %rsi      # 0xe8ff
xorl %edi, %edi
movq (%rax), %rcx
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmpq *%rcx
movzbl (%rdx), %ecx
cmpq $0x7e, %rcx
ja 0x4e8c
jmp 0x4eb1
movl %eax, %ecx
jmp 0x4eb1
movb (%rdx), %cl
testb %cl, %cl
js 0x4eab
xorl %ecx, %ecx
testl %eax, %eax
cmovlel %ecx, %eax
subl $0x1, %eax
jb 0x4eb1
movzbl (%rdx), %esi
shlq $0x8, %rcx
incq %rdx
orq %rsi, %rcx
jmp 0x4e97
movzbl %cl, %ecx
bswapq %rcx
movq %rcx, 0x10(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/sharpyfox[P]citrusleaf-client/src/citrusleaf.c
// Function: citrusleaf_get
extern cl_rv
citrusleaf_get(cl_cluster *asc, const char *ns, const char *set, const cl_object *key, cl_bin *values, int n_values, int timeout_ms, uint32_t *cl_gen)
{
    if (!g_initialized) return(-1);

    	uint64_t trid=0;
	cl_write_parameters cl_w_p;
	cl_write_parameters_set_default(&cl_w_p);
	cl_w_p.timeout_ms = timeout_ms;

	return( do_the_full_monte( asc, CL_MSG_INFO1_READ, 0, 0, ns, set, key, 0, &values, 
			CL_OP_READ, 0, &n_values, cl_gen, &cl_w_p, &trid, NULL) );
}

// Assembly:
subq $0x88, %rsp
cmpb $0x1, 0x121ba(%rip)     # 0x173a0
movq %r8, 0x60(%rsp)
movl %r9d, 0x5c(%rsp)
jne 0x5289
movq %rdx, %rax
movq 0x98(%rsp), %rdx
leaq 0x68(%rsp), %r8
movq %rsi, %r10
leaq 0x70(%rsp), %r11
movabsq $0x200000000, %r9       # imm = 0x200000000
movl 0x90(%rsp), %esi
andq $0x0, 0x48(%rsp)
andq $0x0, 0x20(%rsp)
andq $0x0, 0x8(%rsp)
movq %rcx, (%rsp)
movl $0x1, 0x18(%rsp)
movq %r9, 0x10(%r11)
andq $0x0, (%r8)
andl $0x0, (%r11)
movb $0x0, 0x4(%r11)
movq %r8, 0x40(%rsp)
movq %r11, 0x38(%rsp)
movq %rdx, 0x30(%rsp)
leaq 0x5c(%rsp), %rdx
movl %esi, 0xc(%r11)
movq %rdx, 0x28(%rsp)
leaq 0x60(%rsp), %rdx
movq %rdx, 0x10(%rsp)
pushq $0x1
popq %rsi
xorl %edx, %edx
xorl %ecx, %ecx
movq %r10, %r8
movq %rax, %r9
callq 0x5294
jmp 0x528c
pushq $-0x1
popq %rax
addq $0x88, %rsp
retq
// File: /workspace/github_c_makefile_star2_O2/sharpyfox[P]citrusleaf-client/src/citrusleaf.c
// Function: citrusleaf_get_digest
extern cl_rv
citrusleaf_get_digest(cl_cluster *asc, const char *ns, const cf_digest *digest, cl_bin *values, int n_values, int timeout_ms, uint32_t *cl_gen)
{
	
    if (!g_initialized) return(-1);
    
    	uint64_t trid=0;
	cl_write_parameters cl_w_p;
	cl_write_parameters_set_default(&cl_w_p);
	cl_w_p.timeout_ms = timeout_ms;

	return( do_the_full_monte( asc, CL_MSG_INFO1_READ, 0, 0, ns, 0,0, digest, &values, 
			CL_OP_READ, 0, &n_values, cl_gen, &cl_w_p, &trid, NULL) );
}

// Assembly:
subq $0x88, %rsp
cmpb $0x1, 0x11bf1(%rip)     # 0x173a0
movq %rcx, 0x60(%rsp)
movl %r8d, 0x5c(%rsp)
jne 0x5848
movq 0x90(%rsp), %rcx
movq %rsi, %rax
leaq 0x68(%rsp), %rsi
leaq 0x70(%rsp), %r10
movabsq $0x200000000, %r8       # imm = 0x200000000
andq $0x0, 0x48(%rsp)
andq $0x0, 0x20(%rsp)
andq $0x0, (%rsp)
movq %rdx, 0x8(%rsp)
movl $0x1, 0x18(%rsp)
movq %r8, 0x10(%r10)
andq $0x0, (%rsi)
andl $0x0, (%r10)
movb $0x0, 0x4(%r10)
movl %r9d, 0xc(%r10)
movq %rsi, 0x40(%rsp)
movq %r10, 0x38(%rsp)
movq %rcx, 0x30(%rsp)
leaq 0x5c(%rsp), %rcx
movq %rcx, 0x28(%rsp)
leaq 0x60(%rsp), %rcx
movq %rcx, 0x10(%rsp)
pushq $0x1
popq %rsi
xorl %edx, %edx
xorl %ecx, %ecx
movq %rax, %r8
xorl %r9d, %r9d
callq 0x5294
jmp 0x584b
pushq $-0x1
popq %rax
addq $0x88, %rsp
retq
// File: /workspace/github_c_makefile_star2_O2/sharpyfox[P]citrusleaf-client/src/citrusleaf.c
// Function: citrusleaf_put
extern cl_rv
citrusleaf_put(cl_cluster *asc, const char *ns, const char *set, const cl_object *key, const cl_bin *values, int n_values, const cl_write_parameters *cl_w_p)
{
    if (!g_initialized) return(-1);

    	uint64_t trid=0;
	return( do_the_full_monte( asc, 0, CL_MSG_INFO2_WRITE, 0, ns, set, key, 0, 
			(cl_bin **) &values, CL_OP_WRITE, 0, &n_values, NULL, cl_w_p, 
			&trid, NULL) );
}

// Assembly:
subq $0x68, %rsp
cmpb $0x1, 0x11b42(%rip)     # 0x173a0
movq %r8, 0x58(%rsp)
movl %r9d, 0x54(%rsp)
jne 0x58d1
movq %rdx, %rax
movq 0x70(%rsp), %rdx
movq %rsi, %r10
leaq 0x60(%rsp), %rsi
andq $0x0, 0x48(%rsp)
andq $0x0, 0x30(%rsp)
andq $0x0, 0x20(%rsp)
andl $0x0, 0x18(%rsp)
andq $0x0, 0x8(%rsp)
leaq 0x58(%rsp), %r11
movq %rcx, (%rsp)
andq $0x0, (%rsi)
movq %rsi, 0x40(%rsp)
movq %r11, 0x10(%rsp)
movq %rdx, 0x38(%rsp)
leaq 0x54(%rsp), %rdx
movq %rdx, 0x28(%rsp)
pushq $0x1
popq %rdx
xorl %esi, %esi
xorl %ecx, %ecx
movq %r10, %r8
movq %rax, %r9
callq 0x5294
jmp 0x58d4
pushq $-0x1
popq %rax
addq $0x68, %rsp
retq
// File: /workspace/github_c_makefile_star2_O2/sharpyfox[P]citrusleaf-client/src/citrusleaf.c
// Function: citrusleaf_put_digest
extern cl_rv
citrusleaf_put_digest(cl_cluster *asc, const char *ns, const cf_digest *digest, const cl_bin *values, int n_values, const cl_write_parameters *cl_w_p)
{
    if (!g_initialized) return(-1);

    
    	uint64_t trid=0;
	return( do_the_full_monte( asc, 0, CL_MSG_INFO2_WRITE, 0, ns, 0, 0, digest, 
			(cl_bin **) &values, CL_OP_WRITE, 0, &n_values, NULL, cl_w_p, 
			&trid, NULL) );
}

// Assembly:
subq $0x68, %rsp
cmpb $0x1, 0x11abc(%rip)     # 0x173a0
movq %rcx, 0x58(%rsp)
movl %r8d, 0x54(%rsp)
jne 0x594f
leaq 0x60(%rsp), %rcx
andq $0x0, 0x48(%rsp)
andq $0x0, 0x30(%rsp)
andq $0x0, 0x20(%rsp)
andl $0x0, 0x18(%rsp)
andq $0x0, (%rsp)
movq %rsi, %rax
movq %r9, 0x38(%rsp)
movq %rdx, 0x8(%rsp)
andq $0x0, (%rcx)
movq %rcx, 0x40(%rsp)
leaq 0x54(%rsp), %rcx
movq %rcx, 0x28(%rsp)
leaq 0x58(%rsp), %rcx
movq %rcx, 0x10(%rsp)
pushq $0x1
popq %rdx
xorl %esi, %esi
xorl %ecx, %ecx
movq %rax, %r8
xorl %r9d, %r9d
callq 0x5294
jmp 0x5952
pushq $-0x1
popq %rax
addq $0x68, %rsp
retq
// File: /workspace/github_c_makefile_star2_O2/sharpyfox[P]citrusleaf-client/src/citrusleaf.c
// Function: citrusleaf_put_replace
cl_rv
citrusleaf_put_replace(cl_cluster *asc, const char *ns, const char *set, const cl_object *key, const cl_bin *values, int n_values, const cl_write_parameters *cl_w_p)
{
    if (!g_initialized) return(-1);

    uint64_t trid=0;
	return( do_the_full_monte( asc, 0, CL_MSG_INFO2_WRITE, CL_MSG_INFO3_REPLACE, ns, 
			set, key, 0, (cl_bin **) &values, CL_OP_WRITE, 0, &n_values, 
			NULL, cl_w_p, &trid, NULL) );
}

// Assembly:
subq $0x68, %rsp
cmpb $0x1, 0x11a3e(%rip)     # 0x173a0
movq %r8, 0x58(%rsp)
movl %r9d, 0x54(%rsp)
jne 0x59d6
movq %rdx, %rax
movq 0x70(%rsp), %rdx
movq %rsi, %r10
leaq 0x60(%rsp), %rsi
andq $0x0, 0x48(%rsp)
andq $0x0, 0x30(%rsp)
andq $0x0, 0x20(%rsp)
andl $0x0, 0x18(%rsp)
andq $0x0, 0x8(%rsp)
leaq 0x58(%rsp), %r11
movq %rcx, (%rsp)
andq $0x0, (%rsi)
movq %rsi, 0x40(%rsp)
movq %r11, 0x10(%rsp)
movq %rdx, 0x38(%rsp)
leaq 0x54(%rsp), %rdx
movq %rdx, 0x28(%rsp)
pushq $0x1
popq %rdx
pushq $0x8
popq %rcx
xorl %esi, %esi
movq %r10, %r8
movq %rax, %r9
callq 0x5294
jmp 0x59d9
pushq $-0x1
popq %rax
addq $0x68, %rsp
retq
// File: /workspace/github_c_makefile_star2_O2/sharpyfox[P]citrusleaf-client/src/citrusleaf.c
// Function: citrusleaf_restore
extern cl_rv
citrusleaf_restore(cl_cluster *asc, const char *ns, const cf_digest *digest, const char *set, const cl_bin *values, int n_values, const cl_write_parameters *cl_w_p)
{
    if (!g_initialized) return(-1);

    uint64_t trid=0;
	return( do_the_full_monte( asc, 0, CL_MSG_INFO2_WRITE, 0, ns, set, 0, digest, 
			(cl_bin **) &values, CL_OP_WRITE, 0, &n_values, NULL, cl_w_p, 
			&trid, NULL) );
}

// Assembly:
subq $0x68, %rsp
cmpb $0x1, 0x119b7(%rip)     # 0x173a0
movq %r8, 0x58(%rsp)
movl %r9d, 0x54(%rsp)
jne 0x5a5c
movq %rcx, %rax
movq 0x70(%rsp), %rcx
movq %rsi, %r10
leaq 0x60(%rsp), %rsi
andq $0x0, 0x48(%rsp)
andq $0x0, 0x30(%rsp)
andq $0x0, 0x20(%rsp)
andl $0x0, 0x18(%rsp)
andq $0x0, (%rsp)
movq %rdx, 0x8(%rsp)
andq $0x0, (%rsi)
movq %rsi, 0x40(%rsp)
movq %rcx, 0x38(%rsp)
leaq 0x54(%rsp), %rcx
movq %rcx, 0x28(%rsp)
leaq 0x58(%rsp), %rcx
movq %rcx, 0x10(%rsp)
pushq $0x1
popq %rdx
xorl %esi, %esi
xorl %ecx, %ecx
movq %r10, %r8
movq %rax, %r9
callq 0x5294
jmp 0x5a5f
pushq $-0x1
popq %rax
addq $0x68, %rsp
retq
// File: /workspace/github_c_makefile_star2_O2/sharpyfox[P]citrusleaf-client/src/citrusleaf.c
// Function: citrusleaf_async_put_forget
extern cl_rv
citrusleaf_async_put_forget(cl_cluster *asc, const char *ns, const char *set, const cl_object *key,
	const cl_bin *bins, int n_bins, const cl_write_parameters *cl_w_p)
{
	if (!g_initialized) return(-1);
	uint64_t trid = 0;

	return( cl_do_async_monte( asc, 0, CL_MSG_INFO2_WRITE, ns, set, key, 0, (cl_bin **) &bins,
		CL_OP_WRITE, 0, &n_bins, NULL, cl_w_p, &trid, 0) );
}

// Assembly:
subq $0x68, %rsp
cmpb $0x1, 0x11831(%rip)     # 0x173a0
movq %r8, 0x58(%rsp)
movl %r9d, 0x54(%rsp)
jne 0x5bde
movq %rdx, %r10
movq 0x70(%rsp), %rdx
movq %rcx, %rax
movq %rsi, %rcx
leaq 0x60(%rsp), %rsi
andq $0x0, 0x40(%rsp)
andq $0x0, 0x28(%rsp)
andq $0x0, 0x18(%rsp)
andl $0x0, 0x10(%rsp)
andq $0x0, (%rsp)
leaq 0x58(%rsp), %r11
andq $0x0, (%rsi)
movq %rsi, 0x38(%rsp)
movq %r11, 0x8(%rsp)
movq %rdx, 0x30(%rsp)
leaq 0x54(%rsp), %rdx
movq %rdx, 0x20(%rsp)
pushq $0x1
popq %rdx
xorl %esi, %esi
movq %r10, %r8
movq %rax, %r9
callq 0x99a4
jmp 0x5be1
pushq $-0x1
popq %rax
addq $0x68, %rsp
retq
// File: /workspace/github_c_makefile_star2_O2/sharpyfox[P]citrusleaf-client/src/citrusleaf.c
// Function: citrusleaf_async_put_digest_forget
extern cl_rv
citrusleaf_async_put_digest_forget(cl_cluster *asc, const char *ns, const cf_digest *d, const char *set,
	const cl_bin *bins, int n_bins, const cl_write_parameters *cl_w_p)
{
	if (!g_initialized) return(-1);
	uint64_t trid = 0;

	return( cl_do_async_monte( asc, 0, CL_MSG_INFO2_WRITE, ns, set, 0, d, (cl_bin **) &bins,
		CL_OP_WRITE, 0, &n_bins, NULL, cl_w_p, &trid, 0) );
}

// Assembly:
subq $0x68, %rsp
cmpb $0x1, 0x117af(%rip)     # 0x173a0
movq %r8, 0x58(%rsp)
movl %r9d, 0x54(%rsp)
jne 0x5c5c
movq %rcx, %rax
movq %rsi, %rcx
movq 0x70(%rsp), %rsi
leaq 0x60(%rsp), %r8
andq $0x0, 0x40(%rsp)
andq $0x0, 0x28(%rsp)
andq $0x0, 0x18(%rsp)
andl $0x0, 0x10(%rsp)
movq %rdx, (%rsp)
andq $0x0, (%r8)
movq %r8, 0x38(%rsp)
movq %rsi, 0x30(%rsp)
leaq 0x54(%rsp), %rsi
movq %rsi, 0x20(%rsp)
leaq 0x58(%rsp), %rsi
movq %rsi, 0x8(%rsp)
pushq $0x1
popq %rdx
xorl %esi, %esi
movq %rax, %r8
xorl %r9d, %r9d
callq 0x99a4
jmp 0x5c5f
pushq $-0x1
popq %rax
addq $0x68, %rsp
retq
// File: /workspace/github_c_makefile_star2_O2/sharpyfox[P]citrusleaf-client/src/citrusleaf.c
// Function: citrusleaf_check_cluster_health
extern cl_rvclient
citrusleaf_check_cluster_health(cl_cluster *asc)
{
	int number_of_nodes_alive = 0;

	pthread_mutex_lock(&asc->LOCK);
	for (uint i = 0; i < cf_vector_size(&asc->node_v); i++) {
		cl_cluster_node *cn = cf_vector_pointer_get(&asc->node_v, i);

		if (cn->dunned == false){
			number_of_nodes_alive++;
		}
	}
	pthread_mutex_unlock(&asc->LOCK);

	if (number_of_nodes_alive > 0)
		return CITRUSLEAF_FAIL_DC_UP;
	else
		return CITRUSLEAF_FAIL_DC_DOWN;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
leaq 0x158(%rdi), %rbx
movq %rdi, %r14
movq %rbx, %rdi
callq 0x23b0
leaq 0xf8(%r14), %r15
xorl %r13d, %r13d
movq %rsp, %r12
xorl %ebp, %ebp
cmpl 0x104(%r14), %ebp
jae 0x5d37
movq %r15, %rdi
movl %ebp, %esi
movq %r12, %rdx
callq 0xd967
movq (%rsp), %rax
incl %ebp
movzbl 0x18(%rax), %eax
xorl $0x1, %eax
addl %eax, %r13d
jmp 0x5d0f
movq %rbx, %rdi
callq 0x2190
cmpl $0x1, %r13d
pushq $0x2
popq %rax
sbbl $0x0, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/sharpyfox[P]citrusleaf-client/src/citrusleaf.c
// Function: citrusleaf_delete
extern cl_rv
citrusleaf_delete(cl_cluster *asc, const char *ns, const char *set, const cl_object *key, const cl_write_parameters *cl_w_p)
{
    if (!g_initialized) return(-1);
    
    	uint64_t trid=0;
	return( do_the_full_monte( asc, 0, CL_MSG_INFO2_DELETE | CL_MSG_INFO2_WRITE, 0, 
			ns, set, key, 0, 0, 0, 0, 0, NULL, cl_w_p, &trid, NULL) );
}

// Assembly:
cmpb $0x1, 0x11641(%rip)     # 0x173a0
jne 0x5dbf
subq $0x58, %rsp
leaq 0x50(%rsp), %r10
andq $0x0, 0x48(%rsp)
andq $0x0, 0x30(%rsp)
andq $0x0, 0x28(%rsp)
andq $0x0, 0x20(%rsp)
andl $0x0, 0x18(%rsp)
andq $0x0, 0x10(%rsp)
andq $0x0, 0x8(%rsp)
movq %rdx, %r9
movq %rsi, %rax
movq %r8, 0x38(%rsp)
movq %rcx, (%rsp)
andq $0x0, (%r10)
movq %r10, 0x40(%rsp)
pushq $0x3
popq %rdx
xorl %esi, %esi
xorl %ecx, %ecx
movq %rax, %r8
callq 0x5294
addq $0x58, %rsp
retq
pushq $-0x1
popq %rax
retq
// File: /workspace/github_c_makefile_star2_O2/sharpyfox[P]citrusleaf-client/src/citrusleaf.c
// Function: citrusleaf_delete_digest
extern cl_rv
citrusleaf_delete_digest(cl_cluster *asc, const char *ns, const cf_digest *digest, const cl_write_parameters *cl_w_p)
{
    if (!g_initialized) return(-1);
    
    	uint64_t trid=0;
	return( do_the_full_monte( asc, 0, CL_MSG_INFO2_DELETE | CL_MSG_INFO2_WRITE, 0, 
			ns, 0, 0, digest, 0, 0, 0, 0, NULL, cl_w_p, &trid, NULL) );
}

// Assembly:
cmpb $0x1, 0x115d6(%rip)     # 0x173a0
jne 0x5e27
subq $0x58, %rsp
leaq 0x50(%rsp), %rax
andq $0x0, 0x48(%rsp)
andq $0x0, 0x30(%rsp)
andq $0x0, 0x28(%rsp)
andq $0x0, 0x20(%rsp)
andl $0x0, 0x18(%rsp)
andq $0x0, 0x10(%rsp)
andq $0x0, (%rsp)
movq %rsi, %r8
movq %rcx, 0x38(%rsp)
movq %rdx, 0x8(%rsp)
andq $0x0, (%rax)
movq %rax, 0x40(%rsp)
pushq $0x3
popq %rdx
xorl %esi, %esi
xorl %ecx, %ecx
xorl %r9d, %r9d
callq 0x5294
addq $0x58, %rsp
retq
pushq $-0x1
popq %rax
retq
// File: /workspace/github_c_makefile_star2_O2/sharpyfox[P]citrusleaf-client/src/citrusleaf.c
// Function: citrusleaf_async_delete_digest_xdr
extern cl_rv
citrusleaf_async_delete_digest_xdr(cl_cluster *asc, const char *ns, const cf_digest *digest, const cl_write_parameters *cl_w_p, void *udata)
{
    if (!g_initialized) return(-1);
    
    	uint64_t trid=0;
	return( cl_do_async_monte( asc, CL_MSG_INFO1_XDS, CL_MSG_INFO2_DELETE | CL_MSG_INFO2_WRITE, ns,
			NULL, 0, digest, NULL, CL_OP_WRITE, 0, NULL, NULL, cl_w_p, &trid, udata));
}

// Assembly:
cmpb $0x1, 0x1156e(%rip)     # 0x173a0
jne 0x5e8d
subq $0x58, %rsp
leaq 0x50(%rsp), %r10
andq $0x0, 0x28(%rsp)
andq $0x0, 0x20(%rsp)
andq $0x0, 0x18(%rsp)
andl $0x0, 0x10(%rsp)
andq $0x0, 0x8(%rsp)
movq %rsi, %rax
movq %r8, 0x40(%rsp)
movq %rcx, 0x30(%rsp)
movq %rdx, (%rsp)
andq $0x0, (%r10)
movq %r10, 0x38(%rsp)
pushq $0x10
popq %rsi
pushq $0x3
popq %rdx
movq %rax, %rcx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x99a4
addq $0x58, %rsp
retq
pushq $-0x1
popq %rax
retq
// File: /workspace/github_c_makefile_star2_O2/sharpyfox[P]citrusleaf-client/src/citrusleaf.c
// Function: citrusleaf_exists_key
extern cl_rv
citrusleaf_exists_key(cl_cluster *asc, const char *ns, const char *set, const cl_object *key, cl_bin *values, int n_values, int timeout_ms, uint32_t *cl_gen)
{
    if (!g_initialized) return(-1);

    	uint64_t trid=0;
	cl_write_parameters cl_w_p;
	cl_write_parameters_set_default(&cl_w_p);
	cl_w_p.timeout_ms = timeout_ms;

	return( do_the_full_monte( asc, CL_MSG_INFO1_READ | CL_MSG_INFO1_NOBINDATA, 0, 0, 
			ns, set, key, 0, &values, CL_OP_READ, 0, &n_values, cl_gen, 
			&cl_w_p, &trid, NULL) );
}

// Assembly:
subq $0x88, %rsp
cmpb $0x1, 0x11501(%rip)     # 0x173a0
movq %r8, 0x60(%rsp)
movl %r9d, 0x5c(%rsp)
jne 0x5f42
movq %rdx, %rax
movq 0x98(%rsp), %rdx
leaq 0x68(%rsp), %r8
movq %rsi, %r10
leaq 0x70(%rsp), %r11
movabsq $0x200000000, %r9       # imm = 0x200000000
movl 0x90(%rsp), %esi
andq $0x0, 0x48(%rsp)
andq $0x0, 0x20(%rsp)
andq $0x0, 0x8(%rsp)
movq %rcx, (%rsp)
movl $0x1, 0x18(%rsp)
movq %r9, 0x10(%r11)
andq $0x0, (%r8)
andl $0x0, (%r11)
movb $0x0, 0x4(%r11)
movq %r8, 0x40(%rsp)
movq %r11, 0x38(%rsp)
movq %rdx, 0x30(%rsp)
leaq 0x5c(%rsp), %rdx
movl %esi, 0xc(%r11)
movq %rdx, 0x28(%rsp)
leaq 0x60(%rsp), %rdx
movq %rdx, 0x10(%rsp)
pushq $0x21
popq %rsi
xorl %edx, %edx
xorl %ecx, %ecx
movq %r10, %r8
movq %rax, %r9
callq 0x5294
jmp 0x5f45
pushq $-0x1
popq %rax
addq $0x88, %rsp
retq