// File: /workspace/github_c_makefile_star2_O1/sharpyfox[P]citrusleaf-client/src/cl_batch.c
// Function: batch_worker_fn
static void *
batch_worker_fn(void *dummy)
{
	do {
		digest_work work;
		
		if (0 != cf_queue_pop(g_batch_q, &work, CF_QUEUE_FOREVER)) {
			cf_error("queue pop failed");
		}
		
		/* See function citrusleaf_batch_shutdown() for more details */
		if(work.digests==NULL) {
			pthread_exit(NULL);
		}

		int an_int = do_batch_monte( work.asc, work.info1, work.info2, work.ns, work.digests, work.nodes, work.n_digests, work.bins, work.operator, work.operations, work.n_ops, work.my_node, work.my_node_digest_count, work.cb, work.udata );
		
		cf_queue_push(work.complete_q, (void *) &an_int);
		
	} while (1);

	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x9a28, %rsp           # imm = 0x9A28
leaq 0xd97b(%rip), %r15      # 0x172c8
movq 0xfae4(%rip), %rdi      # 0x19438
leaq 0xa8(%rsp), %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0xd0df
testl %eax, %eax
je 0x9987
cmpl $0x0, (%r15)
js 0x9987
leaq 0xd959(%rip), %rax      # 0x172d0
movq (%rax), %rcx
xorl %edi, %edi
leaq 0x7548(%rip), %rsi      # 0x10ecb
xorl %eax, %eax
callq *%rcx
movq 0xc0(%rsp), %r12
testq %r12, %r12
je 0xa3ef
movq 0xa8(%rsp), %rax
movq %rax, 0x28(%rsp)
movl 0xb0(%rsp), %eax
movl %eax, 0x40(%rsp)
movl 0xb4(%rsp), %eax
movl %eax, 0x60(%rsp)
movq 0xb8(%rsp), %rbp
movq 0xc8(%rsp), %r15
movl 0xd0(%rsp), %r13d
movq 0xd8(%rsp), %rax
movq %rax, 0x30(%rsp)
movl 0xe0(%rsp), %eax
movl %eax, 0x24(%rsp)
movq 0xe8(%rsp), %rax
movq %rax, 0x38(%rsp)
movl 0xf0(%rsp), %r14d
movq 0x110(%rsp), %rax
movq %rax, 0x58(%rsp)
movslq 0x118(%rsp), %rbx
movq 0xf8(%rsp), %rax
movq %rax, 0x70(%rsp)
movq 0x100(%rsp), %rax
movq %rax, 0x78(%rsp)
testq %rbp, %rbp
je 0x9a3e
movq %rbp, %rdi
callq 0x20e0
jmp 0x9a40
xorl %eax, %eax
cltq
movq %rax, 0x8(%rsp)
addq $0x23, %rax
movq %rbp, 0x50(%rsp)
testq %rbp, %rbp
movl $0x1e, %ecx
cmoveq %rcx, %rax
movq %rbx, 0x68(%rsp)
leaq (%rbx,%rbx,4), %rcx
leaq 0x6(%rax,%rcx,4), %rax
movq %rax, 0x1a20(%rsp)
testl %r14d, %r14d
jle 0x9abf
movq 0x30(%rsp), %rbx
xorl %ebp, %ebp
movq %rbx, %rdi
callq 0x20e0
movq 0x1a20(%rsp), %rcx
leaq 0x8(%rax,%rcx), %rax
movq %rax, 0x1a20(%rsp)
movq %rbx, %rdi
leaq 0x1a20(%rsp), %rsi
callq 0x49c8
testl %eax, %eax
jne 0x9c33
incq %rbp
addq $0x40, %rbx
cmpq %rbp, %r14
jne 0x9a7e
movq 0x1a20(%rsp), %rbp
cmpq $0x4001, %rbp           # imm = 0x4001
leaq 0x5a20(%rsp), %rbx
jb 0x9aec
movq %rbp, %rdi
callq 0x22e0
movq %rax, %rbx
testq %rax, %rax
je 0x9c69
movq %rbx, %rdi
xorl %esi, %esi
movq %rbp, %rdx
callq 0x2140
movq %rbx, 0x48(%rsp)
movq %rbx, %rdi
movq %rbp, 0x18(%rsp)
movq %rbp, %rsi
movl 0x40(%rsp), %edx
movl 0x60(%rsp), %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
pushq %r14
pushq $0x2
xorl %eax, %eax
pushq %rax
pushq %rax
callq 0x493b
addq $0x20, %rsp
movq %rax, %rbp
movq 0x50(%rsp), %rsi
testq %rsi, %rsi
je 0x9b5d
movb $0x0, 0x4(%rbp)
movq 0x8(%rsp), %rdx
leal 0x1(%rdx), %ebx
movl %ebx, (%rbp)
leaq 0x5(%rbp), %rdi
callq 0x21b0
leaq 0x4(%rbp,%rbx), %rbx
movq %rbp, %rdi
callq 0xcd01
movq %rbx, %rbp
movq 0x58(%rsp), %rsi
movb $0x6, 0x4(%rbp)
movq 0x68(%rsp), %rax
shll $0x2, %eax
leal 0x1(%rax,%rax,4), %eax
movl %eax, (%rbp)
testl %r13d, %r13d
jle 0x9bac
leaq 0x5(%rbp), %rax
cmpq %rsi, (%r15)
jne 0x9b9f
movl 0x10(%r12), %ecx
movl %ecx, 0x10(%rax)
movq (%r12), %rcx
movq 0x8(%r12), %rdx
movq %rdx, 0x8(%rax)
movq %rcx, (%rax)
addq $0x14, %rax
addq $0x14, %r12
addq $0x8, %r15
decq %r13
jne 0x9b7e
movl (%rbp), %r15d
movq %rbp, %rdi
callq 0xcd01
movl $0x0, 0x8(%rsp)
testl %r14d, %r14d
movb $0x1, %bl
jle 0x9c1a
addq $0x4, %rbp
addq %rbp, %r15
movq 0x30(%rsp), %r12
movq 0x38(%rsp), %rbp
cmpq $0x0, 0x30(%rsp)
je 0x9beb
movq %r12, %rdi
movl 0x24(%rsp), %esi
xorl %edx, %edx
jmp 0x9bf2
xorl %edi, %edi
xorl %esi, %esi
movq %rbp, %rdx
movq %r15, %rcx
callq 0x4a23
movl (%r15), %eax
leaq 0x4(%r15,%rax), %r13
movq %r15, %rdi
callq 0xccf0
addq $0x48, %rbp
addq $0x40, %r12
decq %r14
movq %r13, %r15
jne 0x9bd8
leaq 0xd6a7(%rip), %r15      # 0x172c8
leaq 0x120(%rsp), %r12
movq 0x18(%rsp), %r14
jmp 0x9cb4
movl $0xffffffff, 0x8(%rsp)  # imm = 0xFFFFFFFF
leaq 0xd686(%rip), %r15      # 0x172c8
cmpl $0x0, (%r15)
js 0x9c97
leaq 0xd681(%rip), %rax      # 0x172d0
movq (%rax), %r8
movl 0x20(%rbx), %edx
xorl %ebx, %ebx
xorl %edi, %edi
leaq 0x6be2(%rip), %rsi      # 0x10842
movl %ebp, %ecx
xorl %eax, %eax
callq *%r8
jmp 0x9c99
movl $0xffffffff, 0x8(%rsp)  # imm = 0xFFFFFFFF
movl $0x4000, %r14d          # imm = 0x4000
xorl %ebx, %ebx
leaq 0x5a20(%rsp), %rax
movq %rax, 0x48(%rsp)
leaq 0xd63b(%rip), %r15      # 0x172c8
leaq 0x120(%rsp), %r12
jmp 0x9cb4
xorl %ebx, %ebx
leaq 0x5a20(%rsp), %rax
movq %rax, 0x48(%rsp)
leaq 0x120(%rsp), %r12
movl $0x4000, %r14d          # imm = 0x4000
testb %bl, %bl
je 0xa2c7
movq 0x28(%rsp), %rax
movzbl 0x15(%rax), %edx
movq 0x58(%rsp), %rdi
xorl %esi, %esi
callq 0x864f
movl $0xffffffff, 0x8(%rsp)  # imm = 0xFFFFFFFF
cmpl $-0x1, %eax
leaq 0x10(%rsp), %rbx
je 0xa2e4
movl %eax, %edi
movq 0x48(%rsp), %rsi
movq %r14, %rdx
movl %eax, %ebp
callq 0xe615
testl %eax, %eax
jne 0xa2e4
movl %ebp, 0x18(%rsp)
movq $0x0, 0x40(%rsp)
movq $0x0, 0x38(%rsp)
movl $0x8, %edx
movl 0x18(%rsp), %edi
movq %rbx, %rsi
callq 0xe56c
testl %eax, %eax
jne 0xa309
movq %rbx, %rdi
callq 0xccb0
movzbl 0x10(%rsp), %edx
cmpl $0x2, %edx
jne 0xa33b
movzbl 0x11(%rsp), %edx
leal -0x5(%rdx), %eax
cmpb $-0x3, %al
jbe 0xa362
movl 0x12(%rsp), %eax
movzwl 0x16(%rsp), %ebp
shlq $0x20, %rbp
orq %rax, %rbp
testq %rbp, %rbp
movq 0x38(%rsp), %r14
je 0x9dab
cmpq $0x4001, %rbp           # imm = 0x4001
leaq 0x1a20(%rsp), %r14
jb 0x9d8b
movq %rbp, %rdi
callq 0x22e0
movq %rax, %r14
testq %r14, %r14
movl 0x18(%rsp), %edi
je 0xa3d2
movq %r14, %rsi
movq %rbp, %rdx
callq 0xe56c
testl %eax, %eax
jne 0xa38c
xorl %r13d, %r13d
cmpb $0x4, 0x11(%rsp)
jne 0x9e0a
movq %r14, %r13
movl $0x1, %edi
leaq 0x80(%rsp), %rsi
callq 0x2230
xorl %ebx, %ebx
leaq 0x160(%rsp), %rax
movq %rbx, 0x10(%rax)
movq %rbx, 0x8(%rax)
movq %rbx, (%rax)
movq %r12, %rdi
leaq 0x7265(%rip), %rsi      # 0x1104e
movl $0x70, %edx
callq 0x2200
movl $0xffffffff, 0x8(%rsp)  # imm = 0xFFFFFFFF
testl %eax, %eax
je 0x9e17
xorl %r14d, %r14d
xorl %r15d, %r15d
jmp 0x9eec
movl $0x0, 0x8(%rsp)
jmp 0x9f75
movq %rbp, 0x28(%rsp)
movq %r13, %rbp
movq (%r13), %rbx
movq %rbx, %rdi
callq 0x22e0
testq %rax, %rax
je 0x9e8e
movq %rax, %r14
movq 0x28(%rsp), %rax
addl $-0x8, %eax
movl %eax, 0x128(%rsp)
leaq 0x8(%rbp), %rax
movq %rax, 0x120(%rsp)
movl %ebx, 0x140(%rsp)
movq %r14, 0x138(%rsp)
movq %r12, %rdi
movl $0x4, %esi
callq 0x21a0
cmpl $0x1, %eax
jne 0x9eb0
movq %r12, %rdi
callq 0x2280
movl 0x140(%rsp), %eax
subq %rax, %rbx
movl $0x0, 0x8(%rsp)
movb $0x1, %r15b
jmp 0x9ee7
cmpl $0x0, (%r15)
js 0x9ed7
leaq 0xd435(%rip), %rax      # 0x172d0
movq (%rax), %rcx
xorl %edi, %edi
leaq 0x71ae(%rip), %rsi      # 0x11055
movq %rbx, %rdx
xorl %eax, %eax
callq *%rcx
jmp 0x9ed7
cmpl $0x0, (%r15)
js 0x9ecf
leaq 0xd413(%rip), %rcx      # 0x172d0
movq (%rcx), %rcx
xorl %edi, %edi
leaq 0x71b9(%rip), %rsi      # 0x11082
movl %eax, %edx
xorl %eax, %eax
callq *%rcx
movq %r14, %rdi
callq 0x22c0
movq %r12, %rdi
callq 0x2280
xorl %r14d, %r14d
xorl %ebx, %ebx
xorl %r15d, %r15d
movq 0x28(%rsp), %rbp
testb %r15b, %r15b
je 0x9f1d
leaq 0x1a20(%rsp), %rax
cmpq %rax, %r13
je 0x9f06
movq %r13, %rdi
callq 0x22c0
movl %ebx, 0x12(%rsp)
movq %rbx, %rax
shrq $0x20, %rax
movw %ax, 0x16(%rsp)
movb $0x3, 0x11(%rsp)
jmp 0x9f5f
leaq 0xd3a4(%rip), %rax      # 0x172c8
cmpl $0x0, (%rax)
movl 0x8(%rsp), %edx
js 0x9f44
leaq 0xd39c(%rip), %rax      # 0x172d0
movq (%rax), %rcx
xorl %edi, %edi
leaq 0x7072(%rip), %rsi      # 0x10fb2
xorl %eax, %eax
callq *%rcx
leaq 0x1a20(%rsp), %rax
movq %r13, %r14
cmpq %rax, %r13
je 0x9f5c
movq %r14, %rdi
callq 0x22c0
movq %rbp, %rbx
xorl %r13d, %r13d
testb %r15b, %r15b
movq %rbx, %rbp
leaq 0xd359(%rip), %r15      # 0x172c8
je 0xa3d2
movq %r14, 0x38(%rsp)
movq %r14, %rbx
movq %rbp, 0x28(%rsp)
movl %r13d, %r14d
cmpq %r14, %rbp
jbe 0xa251
movq %r14, 0x68(%rsp)
movq %rbx, %rdi
callq 0xcccd
leaq 0x16(%rbx), %r14
movzbl (%rbx), %ecx
cmpl $0x16, %ecx
jne 0xa0a8
movl %r13d, 0x24(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x90(%rsp)
movaps %xmm0, 0x80(%rsp)
movb $0x0, 0xa0(%rsp)
cmpw $0x0, 0x12(%rbx)
je 0xa0d6
xorl %r13d, %r13d
movq %r14, %r12
xorl %ebp, %ebp
movq $0x0, 0x30(%rsp)
movq %r12, %rdi
callq 0xcd01
movzbl 0x4(%r12), %eax
cmpq $0x4, %rax
ja 0xa088
leaq 0x6df2(%rip), %rcx      # 0x10df8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x5(%r12), %rsi
movl (%r12), %edx
decl %edx
leaq 0x80(%rsp), %rdi
callq 0x21b0
movl (%r12), %eax
decl %eax
movb $0x0, 0x80(%rsp,%rax)
jmp 0xa088
cmpl $0x0, (%r15)
js 0xa088
leaq 0xd28c(%rip), %rax      # 0x172d0
movq (%rax), %rcx
xorl %edi, %edi
leaq 0x6fdf(%rip), %rsi      # 0x1102f
xorl %eax, %eax
callq *%rcx
jmp 0xa088
movl (%r12), %edi
leal -0x1(%rdi), %r14d
callq 0x22e0
movq %rax, %rbp
leaq 0x5(%r12), %rsi
movq %rax, %rdi
movq %r14, %rdx
callq 0x21b0
movb $0x0, (%rbp,%r14)
jmp 0xa088
leaq 0x5(%r12), %rax
movq %rax, 0x30(%rsp)
movl (%r12), %r14d
addq $0x4, %r12
addq %r12, %r14
incl %r13d
movzwl 0x12(%rbx), %eax
cmpl %eax, %r13d
movq %r14, %r12
jb 0x9fe7
jmp 0xa0e1
cmpl $0x0, (%r15)
js 0xa1ec
leaq 0xd217(%rip), %rax      # 0x172d0
movq (%rax), %r8
xorl %ebx, %ebx
movl $0x16, %edx
xorl %edi, %edi
leaq 0x6f18(%rip), %rsi      # 0x10fe4
xorl %eax, %eax
callq *%r8
jmp 0xa23a
movq $0x0, 0x30(%rsp)
xorl %ebp, %ebp
movzwl 0x14(%rbx), %r15d
cmpq $0x64, %r15
leaq 0x120(%rsp), %r12
movq %r12, %rcx
jbe 0xa105
movl %r15d, %edi
shll $0x6, %edi
callq 0x22e0
movq %rax, %rcx
testq %rcx, %rcx
setne %al
movl %eax, 0x50(%rsp)
movl 0x24(%rsp), %r13d
je 0xa1f0
testw %r15w, %r15w
movq %rcx, 0x60(%rsp)
je 0xa164
movq %rcx, %r12
xorl %r13d, %r13d
movq %r14, %rdi
callq 0xccf0
movq %r14, %rdi
movq %r12, %rsi
callq 0x51f8
movl (%r14), %eax
leaq 0x4(%r14,%rax), %r14
incq %r13
movzwl 0x14(%rbx), %r15d
addq $0x40, %r12
cmpq %r15, %r13
jb 0xa12b
leaq 0x120(%rsp), %r12
movl 0x24(%rsp), %r13d
movzbl 0x5(%rbx), %eax
testb $-0x3, %al
je 0xa177
movb $0x1, %cl
movq %rcx, 0x40(%rsp)
movl %eax, 0x8(%rsp)
testb $0x1, 0x3(%rbx)
movq 0x40(%rsp), %rcx
movzbl %cl, %ecx
movl $0x1, %eax
cmovnel %eax, %ecx
movq %rcx, 0x40(%rsp)
cmpq $0x0, 0x70(%rsp)
je 0xa206
movzwl %r15w, %eax
testl %eax, %eax
leaq 0xd123(%rip), %r15      # 0x172c8
jne 0xa1ad
testb $0x20, 0x1(%rbx)
je 0xa20d
movl 0x6(%rbx), %ecx
movl 0xa(%rbx), %r8d
subq $0x8, %rsp
leaq 0x88(%rsp), %rdi
movq 0x38(%rsp), %rsi
movq %rbp, %rdx
movq 0x68(%rsp), %r9
pushq 0x80(%rsp)
pushq $0x0
pushq %rax
callq *0x90(%rsp)
addq $0x20, %rsp
movl $0x0, 0x8(%rsp)
jmp 0xa20d
xorl %ebx, %ebx
jmp 0xa23a
testq %rbp, %rbp
je 0xa1fd
movq %rbp, %rdi
callq 0x22c0
leaq 0xd0c4(%rip), %r15      # 0x172c8
jmp 0xa231
leaq 0xd0bb(%rip), %r15      # 0x172c8
movq 0x60(%rsp), %rdi
cmpq %r12, %rdi
je 0xa21c
callq 0x22c0
testq %rbp, %rbp
je 0xa229
movq %rbp, %rdi
callq 0x22c0
movl %r14d, %eax
subl %ebx, %eax
addl %eax, %r13d
movl 0x50(%rsp), %ebx
movq 0x28(%rsp), %rbp
testb %bl, %bl
movq %r14, %rbx
jne 0x9f82
leaq 0x10(%rsp), %rbx
movq 0x68(%rsp), %r14
jmp 0xa281
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
sete %al
leaq 0x1a20(%rsp), %rcx
cmpq %rcx, %rdi
sete %cl
orb %al, %cl
leaq 0x10(%rsp), %rbx
jne 0xa281
callq 0x22c0
movq $0x0, 0x38(%rsp)
cmpq %r14, %rbp
ja 0xa3d2
testb $0x1, 0x40(%rsp)
je 0x9d16
leaq 0x5a20(%rsp), %rax
movq 0x48(%rsp), %rdi
cmpq %rax, %rdi
je 0xa2ac
callq 0x22c0
cmpl $0x0, 0x8(%rsp)
movq 0x58(%rsp), %rdi
je 0xa3df
movl 0x18(%rsp), %edi
callq 0x2550
jmp 0xa2e4
cmpl $0x0, (%r15)
js 0xa2e4
leaq 0xcffc(%rip), %rax      # 0x172d0
movq (%rax), %rcx
xorl %edi, %edi
leaq 0x6bfc(%rip), %rsi      # 0x10edc
xorl %eax, %eax
callq *%rcx
movl 0x8(%rsp), %eax
movl %eax, 0x1a20(%rsp)
movq 0x108(%rsp), %rdi
leaq 0x1a20(%rsp), %rsi
callq 0xcf8b
jmp 0x994d
cmpl $0x0, (%r15)
js 0xa3d2
movl $0xffffffff, 0x8(%rsp)  # imm = 0xFFFFFFFF
leaq 0xcfae(%rip), %rcx      # 0x172d0
movq (%rcx), %r8
xorl %edi, %edi
leaq 0x6bf4(%rip), %rsi      # 0x10f22
movl %eax, %edx
movl 0x18(%rsp), %ecx
xorl %eax, %eax
callq *%r8
jmp 0xa2e4
cmpl $0x0, (%r15)
js 0xa3d2
movl $0xffffffff, 0x8(%rsp)  # imm = 0xFFFFFFFF
leaq 0xcf7c(%rip), %rax      # 0x172d0
movq (%rax), %rcx
xorl %edi, %edi
leaq 0x6be0(%rip), %rsi      # 0x10f40
jmp 0xa383
cmpl $0x0, (%r15)
js 0xa3d2
movl $0xffffffff, 0x8(%rsp)  # imm = 0xFFFFFFFF
leaq 0xcf59(%rip), %rax      # 0x172d0
movq (%rax), %rcx
xorl %edi, %edi
leaq 0x6bfa(%rip), %rsi      # 0x10f7d
xorl %eax, %eax
callq *%rcx
jmp 0xa2e4
cmpl $0x0, (%r15)
js 0xa3b0
leaq 0xcf37(%rip), %rcx      # 0x172d0
movq (%rcx), %r8
xorl %edi, %edi
leaq 0x6b7d(%rip), %rsi      # 0x10f22
movl %eax, %edx
movl 0x18(%rsp), %ecx
xorl %eax, %eax
callq *%r8
leaq 0x1a20(%rsp), %rax
cmpq %rax, %r14
je 0xa3d2
movl $0xffffffff, 0x8(%rsp)  # imm = 0xFFFFFFFF
movq %r14, %rdi
callq 0x22c0
jmp 0xa2e4
movl $0xffffffff, 0x8(%rsp)  # imm = 0xFFFFFFFF
jmp 0xa2e4
movl 0x18(%rsp), %esi
xorl %edx, %edx
callq 0x86b0
jmp 0xa2e4
xorl %edi, %edi
callq 0x24c0