// File: /workspace/github_c_makefile_star2_O0/sharpyfox[P]citrusleaf-client/src/cl_scan.c
// Function: citrusleaf_scan_all_nodes
cf_vector *
citrusleaf_scan_all_nodes (cl_cluster *asc, char *ns, char *set, cl_bin *bins, int n_bins, bool nobindata, uint8_t scan_pct,
		citrusleaf_get_many_cb cb, void *udata, cl_scan_parameters *scan_param)
{
	char *node_names = NULL;	
	int	n_nodes = 0;
	cl_cluster_get_node_names(asc, &n_nodes, &node_names);

	if (n_nodes == 0) {
		cf_error("citrusleaf scan all nodes: don't have any nodes?");
		return NULL;
	}

	cf_vector *rsp_v = cf_vector_create(sizeof(cl_node_response), n_nodes, 0);
	if (rsp_v == NULL) {
		cf_error("citrusleaf scan all nodes: cannot allocate for response array for %d nodes", n_nodes);
		free(node_names);
		return NULL;
	}
	 
	if (scan_param && scan_param->concurrent_nodes) {
		cf_error("citrusleaf scan all nodes: concurrent node scanning not yet supported");
	} else {
		char *nptr = node_names;
		for (int i=0;i< n_nodes; i++) {
			cl_rv r = citrusleaf_scan_node (asc, nptr, ns, set, bins, n_bins, nobindata, scan_pct,
				cb, udata, scan_param);
			cl_node_response resp_s;
			resp_s.node_response = r;
			memcpy(resp_s.node_name,nptr,NODE_NAME_SIZE);			
			cf_vector_append(rsp_v, (void *)&resp_s);
			nptr+=NODE_NAME_SIZE;					
		}
	}
	free(node_names);
	return rsp_v;
}

// Assembly:
pushq %rbp
pushq %rbx
subq $0x98, %rsp
movb %r9b, %al
movq 0xc8(%rsp), %r9
movq 0xc0(%rsp), %r9
movq 0xb8(%rsp), %r9
movb 0xb0(%rsp), %r9b
movq %rdi, 0x88(%rsp)
movq %rsi, 0x80(%rsp)
movq %rdx, 0x78(%rsp)
movq %rcx, 0x70(%rsp)
movl %r8d, 0x6c(%rsp)
andb $0x1, %al
movb %al, 0x6b(%rsp)
movq $0x0, 0x60(%rsp)
movl $0x0, 0x5c(%rsp)
movq 0x88(%rsp), %rdi
leaq 0x5c(%rsp), %rsi
leaq 0x60(%rsp), %rdx
callq 0x6410
cmpl $0x0, 0x5c(%rsp)
jne 0x12bf7
movq 0x10401(%rip), %rax     # 0x22fc8
movl (%rax), %ecx
xorl %eax, %eax
cmpl %ecx, %eax
jg 0x12be6
movq 0x103ca(%rip), %rax     # 0x22fa0
movq (%rax), %rcx
xorl %edi, %edi
leaq 0xaea5(%rip), %rsi      # 0x1da87
movb $0x0, %al
callq *%rcx
movq $0x0, 0x90(%rsp)
jmp 0x12d9a
movl 0x5c(%rsp), %esi
movl $0x18, %edi
xorl %edx, %edx
callq 0x67e0
movq %rax, 0x50(%rsp)
cmpq $0x0, 0x50(%rsp)
jne 0x12c59
movq 0x103ad(%rip), %rax     # 0x22fc8
movl (%rax), %ecx
xorl %eax, %eax
cmpl %ecx, %eax
jg 0x12c3e
movq 0x10376(%rip), %rax     # 0x22fa0
movq (%rax), %rcx
movl 0x5c(%rsp), %edx
xorl %edi, %edi
leaq 0xae7e(%rip), %rsi      # 0x1dab8
movb $0x0, %al
callq *%rcx
movq 0x60(%rsp), %rdi
callq 0x6070
movq $0x0, 0x90(%rsp)
jmp 0x12d9a
cmpq $0x0, 0xc8(%rsp)
je 0x12c9d
movq 0xc8(%rsp), %rax
testb $0x1, 0x8(%rax)
je 0x12c9d
movq 0x1034f(%rip), %rax     # 0x22fc8
movl (%rax), %ecx
xorl %eax, %eax
cmpl %ecx, %eax
jg 0x12c98
movq 0x10318(%rip), %rax     # 0x22fa0
movq (%rax), %rcx
xorl %edi, %edi
leaq 0xae6f(%rip), %rsi      # 0x1db03
movb $0x0, %al
callq *%rcx
jmp 0x12d83
movq 0x60(%rsp), %rax
movq %rax, 0x48(%rsp)
movl $0x0, 0x44(%rsp)
movl 0x44(%rsp), %eax
cmpl 0x5c(%rsp), %eax
jge 0x12d81
movq 0x88(%rsp), %rdi
movq 0x48(%rsp), %rsi
movq 0x80(%rsp), %rdx
movq 0x78(%rsp), %rcx
movq 0x70(%rsp), %r8
movl 0x6c(%rsp), %r9d
movb 0x6b(%rsp), %bpl
movb 0xb0(%rsp), %bl
movq 0xb8(%rsp), %r11
movq 0xc0(%rsp), %r10
movq 0xc8(%rsp), %rax
andb $0x1, %bpl
movzbl %bpl, %ebp
movl %ebp, (%rsp)
movzbl %bl, %ebx
movl %ebx, 0x8(%rsp)
movq %r11, 0x10(%rsp)
movq %r10, 0x18(%rsp)
movq %rax, 0x20(%rsp)
callq 0x6420
movl %eax, 0x40(%rsp)
movl 0x40(%rsp), %eax
movl %eax, 0x3c(%rsp)
movq 0x48(%rsp), %rax
movq (%rax), %rcx
movq %rcx, 0x28(%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0x30(%rsp)
movl 0x10(%rax), %eax
movl %eax, 0x38(%rsp)
movq 0x50(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0x6b40
movq 0x48(%rsp), %rax
addq $0x14, %rax
movq %rax, 0x48(%rsp)
movl 0x44(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x44(%rsp)
jmp 0x12caf
jmp 0x12d83
movq 0x60(%rsp), %rdi
callq 0x6070
movq 0x50(%rsp), %rax
movq %rax, 0x90(%rsp)
movq 0x90(%rsp), %rax
addq $0x98, %rsp
popq %rbx
popq %rbp
retq
nopl (%rax)