// File: /workspace/github_c_makefile_star2_O3/lh3[P]fermi2/sub.c
// Function: fm_sub
rld_t *fm_sub(rld_t *e, const uint64_t *sub, int n_threads, int is_comp, int is_both)
{
	shared_t d;
	rld_t *r;
	d.bits = calloc((e->mcnt[0] + 63) / 64, 8);
	d.sub = sub, d.e = e, d.n_threads = n_threads, d.is_both = is_both, d.n_ss = 0;
	kt_for(n_threads, worker, &d, n_threads);
	r = gen_idx(e, d.bits, is_comp);
	free(d.bits);
	if (is_both) fprintf(stderr, "[M::%s] # single-stranded: %ld\n", __func__, (long)d.n_ss);
	return r;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movl %r8d, %ebp
movl %ecx, 0xc(%rsp)
movl %edx, %ebx
movq %rsi, %r12
movq %rdi, %r15
movabsq $0x333333335555779b, %r13 # imm = 0x333333335555779B
movabsq $0x400000000000000, %r14 # imm = 0x400000000000000
movq 0x28(%rdi), %rax
movq (%rax), %rdi
addq $0x3f, %rdi
shrq $0x6, %rdi
movl $0x8, %esi
callq 0x2190
leaq 0x80(%rsp), %rcx
movq %rax, -0x8(%rcx)
movq %r12, -0x10(%rcx)
movq %r15, -0x18(%rcx)
movl %ebx, 0x8(%rcx)
movl %ebp, 0x1c(%rsp)
movl %ebp, 0xc(%rcx)
movq %r14, %rbp
movq $0x0, (%rcx)
movslq %ebx, %rcx
leaq 0x3c2(%rip), %rsi       # 0x5de1
leaq 0x68(%rsp), %rbx
movl %ecx, %edi
movq %rbx, %rdx
callq 0x340c
movq 0x10(%rbx), %rax
movq %rax, 0x28(%rsp)
movzbl (%r15), %edi
movsbl 0x3(%r15), %esi
callq 0x35b0
movq $0x0, 0x10(%rsp)
leaq 0x90(%rsp), %rsi
movq %rax, 0x20(%rsp)
movq %rax, %rdi
xorl %edx, %edx
callq 0x376f
leaq 0x30(%rsp), %rsi
movq %r15, %rdi
xorl %edx, %edx
callq 0x376f
movl $0xffffffff, %r10d      # imm = 0xFFFFFFFF
xorl %ebx, %ebx
movq 0x40(%rsp), %rsi
movq (%rsi), %rax
movl 0x30(%rsp), %edi
movl %edi, %ecx
negb %cl
shlq %cl, %rax
cmpq 0x50(%rsp), %rsi
sete %cl
cmpl $0x40, %edi
sete %dl
orb %cl, %dl
je 0x5aa6
xorl %r14d, %r14d
jmp 0x5aaf
movl %edi, %ecx
movq 0x8(%rsi), %r14
shrq %cl, %r14
orq %rax, %r14
js 0x5b04
movq %r14, %rcx
shrq $0x39, %rcx
andb $0x3c, %cl
movq %r13, %rax
shrq %cl, %rax
movl %eax, %ecx
andl $0xf, %ecx
cmpq %rbp, %r14
jae 0x5ad3
cmpl $0xb, %ecx
je 0x5b43
negb %cl
movq %r14, %r8
shrq %cl, %r8
andl $0xf, %eax
movq %r14, %r9
movl %eax, %ecx
shlq %cl, %r9
leaq -0x1(%r8), %rdx
movb $0x41, %cl
subb %r8b, %cl
shrq %cl, %r9
movl $0x1, %r12d
movl %edx, %ecx
shll %cl, %r12d
orq %r9, %r12
addl %edx, %eax
jmp 0x5b0f
movl $0x1, %r12d
movl $0x1, %eax
movl %eax, %ecx
shlq %cl, %r14
movsbl 0x2(%r15), %ecx
addl %ecx, %eax
negb %cl
shrq %cl, %r14
cmpl %eax, %edi
jg 0x5b30
addq $0x8, %rsi
movq %rsi, 0x40(%rsp)
addl $0x40, %edi
subl %eax, %edi
movl %edi, 0x30(%rsp)
movzbl (%r15), %eax
cmpl %eax, %r14d
jle 0x5cb5
movq 0x10(%r15), %r14
shrq $0x3, %r14
movb 0x3(%r15), %cl
shrq %cl, %r14
shlq %cl, %r14
movq 0x58(%rsp), %rax
movq (%rax), %rdi
subq %rdi, %rsi
sarq $0x3, %rsi
movslq 0x8(%r15), %rcx
movl $0x800000, %edx         # imm = 0x800000
subq %rcx, %rdx
cmpq %rdx, %rsi
jle 0x5ba0
movl %r10d, %r12d
callq 0x2040
movl %r12d, %r10d
movq 0x58(%rsp), %rax
movq $0x0, (%rax)
movq 0x58(%rsp), %rcx
leaq 0x8(%rcx), %rax
movq %rax, 0x58(%rsp)
movq 0x8(%rcx), %rcx
jmp 0x5ba9
shlq $0x3, %rcx
addq 0x48(%rsp), %rcx
movq %rcx, 0x48(%rsp)
movq 0x18(%r15), %rdx
movq %r14, %rsi
shrq $0x17, %rsi
andl $0x7fffff, %r14d        # imm = 0x7FFFFF
shll $0x3, %r14d
addq (%rdx,%rsi,8), %r14
cmpq %r14, %rcx
je 0x5d46
movq (%rcx), %rdx
shrq $0x3e, %rdx
movsbq 0x5(%r15,%rdx), %rdx
leaq (%rcx,%rdx,8), %rsi
movq %rsi, 0x40(%rsp)
movq %rsi, 0x60(%rsp)
movslq 0x8(%r15), %rdx
leaq (%rcx,%rdx,8), %rcx
movq %rcx, %rdx
subq (%rax), %rdx
xorl %eax, %eax
cmpq $0x4000000, %rdx        # imm = 0x4000000
setne %al
shll $0x3, %eax
orq $-0x10, %rax
addq %rcx, %rax
movq %rax, 0x50(%rsp)
movl $0x40, 0x30(%rsp)
movq (%rsi), %r14
testq %r14, %r14
js 0x5c79
movq %r14, %rcx
shrq $0x39, %rcx
andb $0x3c, %cl
movq %r13, %rax
shrq %cl, %rax
movl %eax, %ecx
andl $0xf, %ecx
cmpq %rbp, %r14
jae 0x5c48
cmpl $0xb, %ecx
je 0x5a7c
negb %cl
movq %r14, %rdi
shrq %cl, %rdi
andl $0xf, %eax
movq %r14, %r8
movl %eax, %ecx
shlq %cl, %r8
leaq -0x1(%rdi), %rdx
movb $0x41, %cl
subb %dil, %cl
shrq %cl, %r8
movl $0x1, %r12d
movl %edx, %ecx
shll %cl, %r12d
orq %r8, %r12
addl %edx, %eax
jmp 0x5c84
movl $0x1, %r12d
movl $0x1, %eax
movl %eax, %ecx
shlq %cl, %r14
movsbl 0x2(%r15), %edx
movl %edx, %ecx
negb %cl
shrq %cl, %r14
addl %edx, %eax
movl $0x40, %ecx
cmpl $0x40, %eax
jl 0x5caf
addq $0x8, %rsi
movq %rsi, 0x40(%rsp)
movl $0x80, %ecx
subl %eax, %ecx
movl %ecx, 0x30(%rsp)
testq %r12, %r12
js 0x5d46
movq %r12, %rbp
movq 0x10(%rsp), %r13
movl 0xc(%rsp), %edx
movq 0x28(%rsp), %rsi
testl %edx, %edx
setne %al
movq %r13, %rcx
sarq $0x6, %rcx
movq (%rsi,%rcx,8), %rcx
btq %r13, %rcx
sbbb $0x0, %al
je 0x5d20
cmpl %r10d, %r14d
jne 0x5cf1
incq %rbx
jmp 0x5d1d
testq %rbx, %rbx
je 0x5d18
movzbl %r10b, %ecx
movq 0x20(%rsp), %rdi
leaq 0x90(%rsp), %rsi
movq %rbx, %rdx
callq 0x37ea
movq 0x28(%rsp), %rsi
movl 0xc(%rsp), %edx
movl $0x1, %ebx
movl %r14d, %r10d
incq %r13
decq %rbp
jne 0x5ccf
addq %r12, 0x10(%rsp)
movabsq $0x333333335555779b, %r13 # imm = 0x333333335555779B
movabsq $0x400000000000000, %rbp # imm = 0x400000000000000
jmp 0x5a7c
testq %rbx, %rbx
movq 0x20(%rsp), %r14
je 0x5d67
movzbl %r10b, %ecx
leaq 0x90(%rsp), %rsi
movq %r14, %rdi
movq %rbx, %rdx
callq 0x37ea
movq 0x28(%r15), %rax
movq 0x10(%rsp), %rcx
cmpq (%rax), %rcx
jne 0x5dc2
movq %r15, %rdi
callq 0x36d4
leaq 0x90(%rsp), %rsi
movq %r14, %rdi
callq 0x3d90
movq 0x78(%rsp), %rdi
callq 0x2040
cmpl $0x0, 0x1c(%rsp)
jne 0x5db3
movq %r14, %rax
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x80(%rsp), %rdi
callq 0x2390
jmp 0x5d9e
leaq 0x175b3(%rip), %rdi     # 0x1d37c
leaq 0x175bd(%rip), %rsi     # 0x1d38d
leaq 0x175bc(%rip), %rcx     # 0x1d393
movl $0x3d, %edx
callq 0x2120