// File: /workspace/github_cpp_makefile_star2_O2/BenLangmead[P]bowtie/./ebwt.h
// Function: EbwtParams::init(unsigned long, int, int, int, int, int, bool, bool)
void init(TIndexOffU len, int32_t lineRate, int32_t linesPerSide,
	          int32_t offRate, int32_t isaRate, int32_t ftabChars,
	          bool entireReverse, bool isBt2Index)
	{
		_isBt2Index = isBt2Index;
		_entireReverse = entireReverse;
		_len = len;
		_bwtLen = _len + 1;
		_sz = (len+3)/4;
		_bwtSz = (len/4 + 1);
		_lineRate = lineRate;
		_linesPerSide = _isBt2Index ? 1 : linesPerSide;
		_origOffRate = offRate;
		_offRate = offRate;
		_offMask = OFF_MASK << _offRate;
		_isaRate = isaRate;
		_isaMask = OFF_MASK << ((_isaRate >= 0) ? _isaRate : 0);
		_ftabChars = ftabChars;
		_eftabLen = _ftabChars*2;
		_eftabSz = _eftabLen*OFF_SIZE;
		_ftabLen = (1 << (_ftabChars*2))+1;
		_ftabSz = _ftabLen*OFF_SIZE;
		_offsLen = (_bwtLen + (1 << _offRate) - 1) >> _offRate;
		_offsSz = (uint64_t)_offsLen*OFF_SIZE;
		_isaLen = (_isaRate == -1)? 0 : ((_bwtLen + (1 << _isaRate) - 1) >> _isaRate);
		_isaSz = _isaLen*OFF_SIZE;
		_lineSz = 1 << _lineRate;
		_sideSz = _lineSz * _linesPerSide;
		_sideBwtSz = _sideSz - 2*OFF_SIZE;
		_sideBwtLen = _sideBwtSz*4;
		_numSidePairs = (_bwtSz+(2*_sideBwtSz)-1)/(2*_sideBwtSz);
		_numSides = _numSidePairs*2;
		_numLines = _numSides * _linesPerSide;
		_ebwtTotLen = _numSidePairs * (2*_sideSz);

		if (_isBt2Index) {
			_sideBwtSz = _sideSz - 4*OFF_SIZE;
			_sideBwtLen = _sideBwtSz*4;
			_numSides = (_bwtSz+(_sideBwtSz)-1)/(_sideBwtSz);
			_numSidePairs = _numSides / 2;
			_numLines = _numSides * _linesPerSide;
			_ebwtTotLen = _numSides * _sideSz;
		}

		_ebwtTotSz = _ebwtTotLen;
		assert(repOk());
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
leaq 0x3(%rsi), %rax
shrq $0x2, %rax
movq %rax, 0x8(%rsp)
movq %rsi, %r10
shrq $0x2, %r10
cmpb $0x0, 0x70(%rsp)
pushq $0x1
popq %r15
cmovnel %r15d, %ecx
movl %ecx, %r14d
pushq $-0x1
popq %rax
movq %rax, %r11
movl %r8d, %ecx
shlq %cl, %r11
movq %r11, 0x20(%rsp)
movl %r9d, %ecx
shlq %cl, %rax
testl %r9d, %r9d
pushq $-0x1
popq %rcx
cmovnsl %eax, %ecx
movl %ecx, 0x1c(%rsp)
movl 0x60(%rsp), %eax
leal (%rax,%rax), %ecx
movl %ecx, 0x18(%rsp)
movq %rax, %r11
movl %r15d, %r12d
shll %cl, %r12d
movl %r15d, %eax
movl %r8d, %ecx
movl %r8d, 0x14(%rsp)
shll %cl, %eax
movslq %eax, %r13
addq %rsi, %r13
shrq %cl, %r13
movl %edx, %ebp
movl %r15d, %eax
movl %r9d, %ecx
shll %cl, %eax
shll $0x4, %r11d
movslq %eax, %rbx
addq %rsi, %rbx
shrq %cl, %rbx
xorl %eax, %eax
cmpl $-0x1, %r9d
cmoveq %rax, %rbx
movl %ebp, %ecx
shll %cl, %r15d
movl %r14d, %r8d
shll %cl, %r14d
leal -0x20(,%r14,2), %ecx
leaq (%r10,%rcx), %rax
xorl %edx, %edx
divq %rcx
movb 0x70(%rsp), %cl
movb %cl, 0xb9(%rdi)
movb 0x68(%rsp), %cl
movb %cl, 0xb8(%rdi)
movq %rsi, (%rdi)
leaq 0x1(%rsi), %rcx
movq %rcx, 0x8(%rdi)
movq 0x8(%rsp), %rcx
movq %rcx, 0x10(%rdi)
movq %r10, 0x8(%rsp)
leaq 0x1(%r10), %rcx
movq %rcx, 0x18(%rdi)
movl %ebp, 0x20(%rdi)
movslq %r8d, %rcx
movl %ecx, 0x24(%rdi)
movl 0x14(%rsp), %edx
movl %edx, 0x28(%rdi)
movl %edx, 0x2c(%rdi)
movq 0x20(%rsp), %rdx
movq %rdx, 0x30(%rdi)
movl %r9d, 0x38(%rdi)
movl 0x1c(%rsp), %edx
movl %edx, 0x3c(%rdi)
movl 0x60(%rsp), %edx
movl %edx, 0x40(%rdi)
movl 0x18(%rsp), %edx
movl %edx, 0x44(%rdi)
movl %r11d, 0x48(%rdi)
leaq 0x1(%r12), %rdx
movq %rdx, 0x50(%rdi)
leaq 0x8(,%r12,8), %rdx
movq %rdx, 0x58(%rdi)
movq %r13, 0x60(%rdi)
leaq (,%r13,8), %rdx
movq %rdx, 0x68(%rdi)
movq %rbx, 0x70(%rdi)
leaq (,%rbx,8), %rdx
movq %rdx, 0x78(%rdi)
movl %r15d, 0x80(%rdi)
leal -0x10(%r14), %edx
movl %r14d, 0x84(%rdi)
movl %edx, 0x88(%rdi)
leal -0x40(,%r14,4), %edx
movl %edx, 0x8c(%rdi)
leal (%r14,%r14), %edx
imulq %rax, %rdx
movq %rax, 0x90(%rdi)
addq %rax, %rax
movq %rax, 0x98(%rdi)
imulq %rcx, %rax
movq %rax, 0xa0(%rdi)
movq %rdx, 0xa8(%rdi)
cmpb $0x0, 0x70(%rsp)
je 0xe933
leal -0x20(%r14), %esi
movl %esi, 0x88(%rdi)
leal -0x80(,%r14,4), %eax
movl %eax, 0x8c(%rdi)
movq 0x8(%rsp), %rax
addq %rsi, %rax
xorl %edx, %edx
divq %rsi
movq %rax, 0x98(%rdi)
imulq %rax, %rcx
movl %r14d, %edx
imulq %rax, %rdx
shrq %rax
movq %rax, 0x90(%rdi)
movq %rcx, 0xa0(%rdi)
movq %rdx, 0xa8(%rdi)
movq %rdx, 0xb0(%rdi)
callq 0xffd2
testb %al, %al
je 0xe952
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1a328(%rip), %rdi     # 0x28c81
leaq 0x1979d(%rip), %rsi     # 0x280fd
leaq 0x1aa3d(%rip), %rcx     # 0x293a4
movl $0xb7, %edx
callq 0x4190
nop