// File: BenLangmead[P]bowtie/./ebwt.h
// Function: Ebwt::postReadInit(EbwtParams&)
void postReadInit(EbwtParams& eh) {
		TIndexOffU sideNum     = _zOff / eh._sideBwtLen;
		TIndexOffU sideCharOff = _zOff % eh._sideBwtLen;
		TIndexOffU sideByteOff = sideNum * eh._sideSz;
		_zEbwtByteOff = sideCharOff >> 2;
		assert_lt(_zEbwtByteOff, eh._sideBwtSz);
		_zEbwtBpOff = sideCharOff & 3;
		assert_lt(_zEbwtBpOff, 4);
		if(!eh._isBt2Index && (sideNum & 1) == 0) {
			// This is an even (backward) side
			_zEbwtByteOff = eh._sideBwtSz - _zEbwtByteOff - 1;
			_zEbwtBpOff = 3 - _zEbwtBpOff;
			assert_lt(_zEbwtBpOff, 4);
		}
		_zEbwtByteOff += sideByteOff;
		assert(repOk(eh)); // Ebwt should be fully initialized now
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x30(%rbp)
movq 0x68(%rax), %rax
movq -0x10(%rbp), %rcx
movl 0x8c(%rcx), %ecx
xorl %edx, %edx
divq %rcx
movq %rax, %rcx
movq -0x30(%rbp), %rax
movq %rcx, -0x18(%rbp)
movq 0x68(%rax), %rax
movq -0x10(%rbp), %rcx
movl 0x8c(%rcx), %ecx
xorl %edx, %edx
divq %rcx
movq -0x30(%rbp), %rax
movq %rdx, -0x20(%rbp)
movq -0x18(%rbp), %rcx
movq -0x10(%rbp), %rdx
movl 0x84(%rdx), %edx
imulq %rdx, %rcx
movq %rcx, -0x28(%rbp)
movq -0x20(%rbp), %rcx
shrq $0x2, %rcx
movq %rcx, 0x70(%rax)
movq 0x70(%rax), %rax
movq -0x10(%rbp), %rcx
movl 0x88(%rcx), %ecx
cmpq %rcx, %rax
jb 0x1b919
movq 0x2e75f(%rip), %rdi     # 0x49fc0
leaq 0x239df(%rip), %rsi     # 0x3f247
callq 0x5360
movq %rax, %rdi
movq -0x30(%rbp), %rax
movq 0x70(%rax), %rsi
callq 0x50c0
movq %rax, %rdi
leaq 0x239d6(%rip), %rsi     # 0x3f25d
callq 0x5360
movq %rax, %rdi
movq -0x10(%rbp), %rax
movl 0x88(%rax), %esi
callq 0x5530
movq %rax, %rdi
leaq 0x25d10(%rip), %rsi     # 0x415b8
callq 0x5360
movq %rax, %rdi
movq 0x2e6c9(%rip), %rsi     # 0x49f80
callq 0x53c0
movq 0x2e6fd(%rip), %rdi     # 0x49fc0
leaq 0x237f3(%rip), %rsi     # 0x3f0bd
callq 0x5360
movq %rax, %rdi
leaq 0x24eb1(%rip), %rsi     # 0x4078a
callq 0x5360
movq %rax, %rdi
movl $0x418, %esi            # imm = 0x418
callq 0x5750
movq %rax, %rdi
movq 0x2e68b(%rip), %rsi     # 0x49f80
callq 0x53c0
leaq 0x24d69(%rip), %rdi     # 0x4066a
leaq 0x237b5(%rip), %rsi     # 0x3f0bd
movl $0x418, %edx            # imm = 0x418
leaq 0x24dd4(%rip), %rcx     # 0x406e8
callq 0x51e0
movq -0x30(%rbp), %rax
movq -0x20(%rbp), %rcx
andq $0x3, %rcx
movq %rcx, 0x78(%rax)
cmpq $0x4, 0x78(%rax)
jl 0x1b9ee
movq 0x2e685(%rip), %rdi     # 0x49fc0
leaq 0x23905(%rip), %rsi     # 0x3f247
callq 0x5360
movq %rax, %rdi
movq -0x30(%rbp), %rax
movq 0x78(%rax), %rsi
callq 0x57b0
movq %rax, %rdi
leaq 0x238fc(%rip), %rsi     # 0x3f25d
callq 0x5360
movq %rax, %rdi
movl $0x4, %esi
callq 0x5750
movq %rax, %rdi
leaq 0x25c3b(%rip), %rsi     # 0x415b8
callq 0x5360
movq %rax, %rdi
movq 0x2e5f4(%rip), %rsi     # 0x49f80
callq 0x53c0
movq 0x2e628(%rip), %rdi     # 0x49fc0
leaq 0x2371e(%rip), %rsi     # 0x3f0bd
callq 0x5360
movq %rax, %rdi
leaq 0x24ddc(%rip), %rsi     # 0x4078a
callq 0x5360
movq %rax, %rdi
movl $0x41a, %esi            # imm = 0x41A
callq 0x5750
movq %rax, %rdi
movq 0x2e5b6(%rip), %rsi     # 0x49f80
callq 0x53c0
leaq 0x24c94(%rip), %rdi     # 0x4066a
leaq 0x236e0(%rip), %rsi     # 0x3f0bd
movl $0x41a, %edx            # imm = 0x41A
leaq 0x24cff(%rip), %rcx     # 0x406e8
callq 0x51e0
movq -0x10(%rbp), %rax
testb $0x1, 0xb9(%rax)
jne 0x1baff
movq -0x18(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
jne 0x1baff
movq -0x30(%rbp), %rax
movq -0x10(%rbp), %rcx
movl 0x88(%rcx), %ecx
subq 0x70(%rax), %rcx
subq $0x1, %rcx
movq %rcx, 0x70(%rax)
movl $0x3, %ecx
subq 0x78(%rax), %rcx
movq %rcx, 0x78(%rax)
cmpq $0x4, 0x78(%rax)
jl 0x1bafd
movq 0x2e576(%rip), %rdi     # 0x49fc0
leaq 0x237f6(%rip), %rsi     # 0x3f247
callq 0x5360
movq %rax, %rdi
movq -0x30(%rbp), %rax
movq 0x78(%rax), %rsi
callq 0x57b0
movq %rax, %rdi
leaq 0x237ed(%rip), %rsi     # 0x3f25d
callq 0x5360
movq %rax, %rdi
movl $0x4, %esi
callq 0x5750
movq %rax, %rdi
leaq 0x25b2c(%rip), %rsi     # 0x415b8
callq 0x5360
movq %rax, %rdi
movq 0x2e4e5(%rip), %rsi     # 0x49f80
callq 0x53c0
movq 0x2e519(%rip), %rdi     # 0x49fc0
leaq 0x2360f(%rip), %rsi     # 0x3f0bd
callq 0x5360
movq %rax, %rdi
leaq 0x24ccd(%rip), %rsi     # 0x4078a
callq 0x5360
movq %rax, %rdi
movl $0x41f, %esi            # imm = 0x41F
callq 0x5750
movq %rax, %rdi
movq 0x2e4a7(%rip), %rsi     # 0x49f80
callq 0x53c0
leaq 0x24b85(%rip), %rdi     # 0x4066a
leaq 0x235d1(%rip), %rsi     # 0x3f0bd
movl $0x41f, %edx            # imm = 0x41F
leaq 0x24bf0(%rip), %rcx     # 0x406e8
callq 0x51e0
jmp 0x1baff
movq -0x30(%rbp), %rdi
movq -0x28(%rbp), %rax
addq 0x70(%rdi), %rax
movq %rax, 0x70(%rdi)
movq -0x10(%rbp), %rsi
callq 0x2af00
testb $0x1, %al
jne 0x1bb1e
jmp 0x1bb20
jmp 0x1bb3f
leaq 0x24be7(%rip), %rdi     # 0x4070e
leaq 0x2358f(%rip), %rsi     # 0x3f0bd
movl $0x422, %edx            # imm = 0x422
leaq 0x24bae(%rip), %rcx     # 0x406e8
callq 0x51e0
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nop