// File: /workspace/github_cpp_makefile_star2_O1/DoubleString[P]eph_converter/src/B2bDecoder.cpp
// Function: B2b::m_loadorbclk()
void B2b::m_loadorbclk(){
	string line;
	ifstream in;
	int iyear,imon,iday,ih,imin,iv,nsat;
	double dsec;
	in.open(File, ios::in | ios::binary);
	if (!in.is_open()) {
		cout << "***ERROR(m_loadorbclk):can't open file " << File << endl;
		exit(1);
	}
	cout << "start reading file..." << endl;
	while (!in.eof()) {
		getline(in, line);
		if (!len_trim(line.c_str()))
			continue;
		if (strstr(line.c_str(), "> ORBIT") != nullptr) {
			orbit orb_epoch;
			sscanf(line.c_str(),"%*s%*s%d%d%d%d%d%lf%d%d",&iyear,&imon,&iday,&ih,&imin,&dsec,&iv,&nsat);
			orb_epoch.mjd = md_julday(iyear,imon,iday);
			orb_epoch.sod = ih * 3600.0 + imin * 60.0 + dsec;
			if(lbdtime){ timinc(orb_epoch.mjd,orb_epoch.sod,14,&orb_epoch.mjd,&orb_epoch.sod);}
			for(int it = 0;it < nsat;it++){
				getline(in,line);
				sat_orb orb;
				sscanf(line.c_str(),"%s%d%lf%lf%lf%lf%lf%lf",orb.cprn,&orb.iode,orb.orb,orb.orb+1,orb.orb+2,orb.orb+3,
						orb.orb+4,orb.orb+5);
				orb_epoch.ORB[orb.cprn] = orb;
			}
			ORB_ALL.push_back(orb_epoch);
		}
		if(strstr(line.c_str(),"> CLOCK") != nullptr){
			clk clk_epoch;
			sscanf(line.c_str(),"%*s%*s%d%d%d%d%d%lf%d%d",&iyear,&imon,&iday,&ih,&imin,&dsec,&iv,&nsat);
			clk_epoch.mjd = md_julday(iyear,imon,iday);
			clk_epoch.sod = ih * 3600.0 + imin * 60.0 + dsec;
			if(lbdtime){ timinc(clk_epoch.mjd,clk_epoch.sod,14,&clk_epoch.mjd,&clk_epoch.sod);}
			for(int it = 0;it < nsat;it++){
				getline(in,line);
				sat_clk clk;
				sscanf(line.c_str(),"%s%d%lf%lf%lf",clk.cprn,&clk.iode,clk.clk,clk.clk + 1,clk.clk + 2);
				clk_epoch.CLK[clk.cprn] = clk;
			}
			CLK_ALL.push_back(clk_epoch);
		}
	}
	in.close();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x308, %rsp            # imm = 0x308
movq %rdi, %r15
leaq -0xa8(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq -0x328(%rbp), %rdi
callq 0x3320
leaq 0x948(%r15), %rbx
leaq -0x328(%rbp), %r14
movq %r14, %rdi
movq %rbx, %rsi
movl $0xc, %edx
callq 0x31c0
leaq -0x2b0(%rbp), %rdi
callq 0x30c0
testb %al, %al
je 0x3ea8
movq 0xe646(%rip), %rbx      # 0x11fd8
leaq 0x973b(%rip), %rsi      # 0xd0d4
movl $0x15, %edx
movq %rbx, %rdi
callq 0x3330
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x3290
movsbl %al, %esi
movq 0xe614(%rip), %rdi      # 0x11fd8
callq 0x3030
movq %rax, %rdi
callq 0x31f0
movq %r15, -0x48(%rbp)
movq -0x328(%rbp), %rax
movq -0x18(%rax), %rax
testb $0x2, -0x308(%rbp,%rax)
jne 0x3e66
leaq (%rax,%rbp), %rdi
addq $-0x328, %rdi           # imm = 0xFCD8
leaq -0x110(%rbp), %r12
movq -0x48(%rbp), %rax
leaq 0xd48(%rax), %rcx
movq %rcx, -0x100(%rbp)
addq $0xd60, %rax            # imm = 0xD60
movq %rax, -0xf8(%rbp)
leaq -0xf0(%rbp), %r15
leaq -0x120(%rbp), %r13
movl $0xa, %esi
callq 0x3290
movsbl %al, %edx
movq %r14, %rdi
leaq -0xb8(%rbp), %rsi
callq 0x34d0
movq -0xb8(%rbp), %rdi
callq 0xb420
testl %eax, %eax
je 0x3e46
movq -0xb8(%rbp), %rbx
movq %rbx, %rdi
leaq 0x967c(%rip), %rsi      # 0xd0ea
callq 0x30b0
testq %rax, %rax
je 0x3c65
movl $0x0, -0x80(%rbp)
xorl %ecx, %ecx
movq %rcx, -0x78(%rbp)
leaq -0x80(%rbp), %rax
movq %rax, -0x70(%rbp)
movq %rax, -0x68(%rbp)
movq %rcx, -0x60(%rbp)
movq %rbx, %rdi
leaq 0x964f(%rip), %rsi      # 0xd0f2
leaq -0x40(%rbp), %rdx
leaq -0x3c(%rbp), %rcx
leaq -0x38(%rbp), %r8
leaq -0x34(%rbp), %r9
xorl %eax, %eax
leaq -0x2c(%rbp), %r10
pushq %r10
leaq -0x54(%rbp), %r10
pushq %r10
leaq -0x50(%rbp), %r10
pushq %r10
leaq -0x30(%rbp), %r10
pushq %r10
callq 0x32a0
addq $0x20, %rsp
movl -0x40(%rbp), %edi
movl -0x3c(%rbp), %esi
movl -0x38(%rbp), %edx
callq 0xaaec
cvtsi2sdl -0x34(%rbp), %xmm0
cvtsi2sdl -0x30(%rbp), %xmm1
mulsd 0x9512(%rip), %xmm1     # 0xd008
mulsd 0x9512(%rip), %xmm0     # 0xd010
addsd %xmm1, %xmm0
addsd -0x50(%rbp), %xmm0
movl %eax, -0x98(%rbp)
movsd %xmm0, -0x90(%rbp)
movq -0x48(%rbp), %rcx
cmpl $0x0, 0x8(%rcx)
je 0x3b3c
movl %eax, %edi
movsd 0x94ef(%rip), %xmm1     # 0xd018
leaq -0x98(%rbp), %rsi
leaq -0x90(%rbp), %rdx
callq 0xb6d4
cmpl $0x0, -0x2c(%rbp)
jle 0x3c46
xorl %ebx, %ebx
movq -0x328(%rbp), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3290
movsbl %al, %edx
movq %r14, %rdi
leaq -0xb8(%rbp), %rsi
callq 0x34d0
movq -0xb8(%rbp), %rdi
leaq 0x958a(%rip), %rsi      # 0xd10a
movq %r15, %rdx
leaq -0xec(%rbp), %rcx
leaq -0xe8(%rbp), %r8
leaq -0xe0(%rbp), %r9
xorl %eax, %eax
leaq -0xc0(%rbp), %r10
pushq %r10
leaq -0xc8(%rbp), %r10
pushq %r10
leaq -0xd0(%rbp), %r10
pushq %r10
leaq -0xd8(%rbp), %r10
pushq %r10
callq 0x32a0
addq $0x20, %rsp
movq %r12, -0x120(%rbp)
movq %r15, %rdi
callq 0x3150
leaq (%rax,%rbp), %rdx
addq $-0xf0, %rdx
movq %r13, %rdi
movq %r15, %rsi
callq 0x5e72
leaq -0x88(%rbp), %rdi
movq %r13, %rsi
callq 0x5692
movq -0xc0(%rbp), %rcx
movq %rcx, 0x30(%rax)
movupd -0xf0(%rbp), %xmm0
movupd -0xe0(%rbp), %xmm1
movups -0xd0(%rbp), %xmm2
movups %xmm2, 0x20(%rax)
movupd %xmm1, 0x10(%rax)
movupd %xmm0, (%rax)
movq -0x120(%rbp), %rdi
cmpq %r12, %rdi
je 0x3c3b
callq 0x3280
incl %ebx
cmpl -0x2c(%rbp), %ebx
jl 0x3b48
movq -0x100(%rbp), %rdi
leaq -0x98(%rbp), %rsi
callq 0x5712
leaq -0x88(%rbp), %rdi
callq 0x5ae0
movq -0xb8(%rbp), %rbx
movq %rbx, %rdi
leaq 0x94ab(%rip), %rsi      # 0xd121
callq 0x30b0
testq %rax, %rax
je 0x3e46
movl $0x0, -0x80(%rbp)
xorl %ecx, %ecx
movq %rcx, -0x78(%rbp)
leaq -0x80(%rbp), %rax
movq %rax, -0x70(%rbp)
movq %rax, -0x68(%rbp)
movq %rcx, -0x60(%rbp)
movq %rbx, %rdi
leaq 0x9447(%rip), %rsi      # 0xd0f2
leaq -0x40(%rbp), %rdx
leaq -0x3c(%rbp), %rcx
leaq -0x38(%rbp), %r8
leaq -0x34(%rbp), %r9
xorl %eax, %eax
leaq -0x2c(%rbp), %r10
pushq %r10
leaq -0x54(%rbp), %r10
pushq %r10
leaq -0x50(%rbp), %r10
pushq %r10
leaq -0x30(%rbp), %r10
pushq %r10
callq 0x32a0
addq $0x20, %rsp
movl -0x40(%rbp), %edi
movl -0x3c(%rbp), %esi
movl -0x38(%rbp), %edx
callq 0xaaec
xorps %xmm0, %xmm0
cvtsi2sdl -0x34(%rbp), %xmm0
xorps %xmm1, %xmm1
cvtsi2sdl -0x30(%rbp), %xmm1
mulsd 0x9304(%rip), %xmm1     # 0xd008
mulsd 0x9304(%rip), %xmm0     # 0xd010
addsd %xmm1, %xmm0
addsd -0x50(%rbp), %xmm0
movl %eax, -0x98(%rbp)
movsd %xmm0, -0x90(%rbp)
movq -0x48(%rbp), %rcx
cmpl $0x0, 0x8(%rcx)
je 0x3d4a
movl %eax, %edi
movsd 0x92e1(%rip), %xmm1     # 0xd018
leaq -0x98(%rbp), %rsi
leaq -0x90(%rbp), %rdx
callq 0xb6d4
cmpl $0x0, -0x2c(%rbp)
jle 0x3e27
xorl %ebx, %ebx
movq -0x328(%rbp), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3290
movsbl %al, %edx
movq %r14, %rdi
leaq -0xb8(%rbp), %rsi
callq 0x34d0
movq -0xb8(%rbp), %rdi
subq $0x8, %rsp
leaq 0x9397(%rip), %rsi      # 0xd129
movq %r15, %rdx
leaq -0xec(%rbp), %rcx
leaq -0xe8(%rbp), %r8
leaq -0xe0(%rbp), %r9
xorl %eax, %eax
leaq -0xd8(%rbp), %r10
pushq %r10
callq 0x32a0
addq $0x10, %rsp
movq %r12, -0x120(%rbp)
movq %r15, %rdi
callq 0x3150
leaq (%rax,%rbp), %rdx
addq $-0xf0, %rdx
movq %r13, %rdi
movq %r15, %rsi
callq 0x5e72
leaq -0x88(%rbp), %rdi
movq %r13, %rsi
callq 0x575c
movupd -0xf0(%rbp), %xmm0
movupd -0xe0(%rbp), %xmm1
movupd %xmm1, 0x10(%rax)
movupd %xmm0, (%rax)
movq -0x120(%rbp), %rdi
cmpq %r12, %rdi
je 0x3e1c
callq 0x3280
incl %ebx
cmpl -0x2c(%rbp), %ebx
jl 0x3d56
movq -0xf8(%rbp), %rdi
leaq -0x98(%rbp), %rsi
callq 0x57dc
leaq -0x88(%rbp), %rdi
callq 0x5b74
movq -0x328(%rbp), %rax
movq -0x18(%rax), %rax
leaq (%rax,%rbp), %rdi
addq $-0x328, %rdi           # imm = 0xFCD8
testb $0x2, 0x20(%rdi)
je 0x3a2d
leaq -0x328(%rbp), %rdi
callq 0x3090
leaq -0x328(%rbp), %rdi
callq 0x30d0
movq -0xb8(%rbp), %rdi
leaq -0xa8(%rbp), %rax
cmpq %rax, %rdi
je 0x3e96
callq 0x3280
addq $0x308, %rsp            # imm = 0x308
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0xe129(%rip), %rdi      # 0x11fd8
leaq 0x91f6(%rip), %rsi      # 0xd0ac
movl $0x27, %edx
callq 0x3330
movq %rbx, %rdi
callq 0x3150
movq 0xe109(%rip), %rdi      # 0x11fd8
movq %rbx, %rsi
movq %rax, %rdx
callq 0x3330
movq 0xe0f7(%rip), %rdi      # 0x11fd8
callq 0x3170
movl $0x1, %edi
callq 0x3370
movq %rax, %rbx
jmp 0x3f5c
jmp 0x3efb
jmp 0x3f30
jmp 0x3f41
movq %rax, %rbx
jmp 0x3f50
jmp 0x3f30
movq %rax, %rbx
movq -0x120(%rbp), %rdi
cmpq %r12, %rdi
je 0x3f33
callq 0x3280
jmp 0x3f33
movq %rax, %rbx
movq -0x120(%rbp), %rdi
cmpq %r12, %rdi
je 0x3f44
callq 0x3280
jmp 0x3f44
jmp 0x3f41
movq %rax, %rbx
leaq -0x88(%rbp), %rdi
callq 0x5b74
jmp 0x3f50
movq %rax, %rbx
leaq -0x88(%rbp), %rdi
callq 0x5ae0
leaq -0x328(%rbp), %rdi
callq 0x30d0
movq -0xb8(%rbp), %rdi
leaq -0xa8(%rbp), %rax
cmpq %rax, %rdi
je 0x3f74
callq 0x3280
movq %rbx, %rdi
callq 0x34b0