// File: /workspace/github_cpp_makefile_star2_O3/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 0x3e9e
movq 0xe656(%rip), %rbx      # 0x11fd8
leaq 0x974b(%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 0xe624(%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 0x3e5c
leaq (%rax,%rbp), %rdi
addq $-0x328, %rdi           # imm = 0xFCD8
leaq -0x110(%rbp), %r13
movq -0x48(%rbp), %rax
leaq 0xd48(%rax), %rcx
movq %rcx, -0x100(%rbp)
addq $0xd60, %rax            # imm = 0xD60
movq %rax, -0xf8(%rbp)
leaq -0xf0(%rbp), %rbx
leaq -0x120(%rbp), %r15
movl $0xa, %esi
callq 0x3290
movsbl %al, %edx
movq %r14, %rdi
leaq -0xb8(%rbp), %rsi
callq 0x34d0
movq -0xb8(%rbp), %rdi
callq 0xb2cd
testl %eax, %eax
je 0x3e3c
movq -0xb8(%rbp), %r12
movq %r12, %rdi
leaq 0x968c(%rip), %rsi      # 0xd0ea
callq 0x30b0
testq %rax, %rax
je 0x3c5f
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 %r12, %rdi
leaq 0x965f(%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 0xa984
cvtsi2sdl -0x34(%rbp), %xmm0
cvtsi2sdl -0x30(%rbp), %xmm1
mulsd 0x9522(%rip), %xmm1     # 0xd008
mulsd 0x9522(%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 0x3b2c
movl %eax, %edi
movsd 0x94ff(%rip), %xmm1     # 0xd018
leaq -0x98(%rbp), %rsi
leaq -0x90(%rbp), %rdx
callq 0xb5a9
cmpl $0x0, -0x2c(%rbp)
jle 0x3c39
xorl %r12d, %r12d
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 0x9599(%rip), %rsi      # 0xd10a
movq %rbx, %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 %r13, -0x120(%rbp)
movq %rbx, %rdi
callq 0x3150
leaq (%rax,%rbp), %rdx
addq $-0xf0, %rdx
movq %r15, %rdi
movq %rbx, %rsi
callq 0x5ef8
leaq -0x88(%rbp), %rdi
movq %r15, %rsi
callq 0x5718
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 %r13, %rdi
je 0x3c2c
callq 0x3280
incl %r12d
cmpl -0x2c(%rbp), %r12d
jl 0x3b39
movq -0x100(%rbp), %rdi
leaq -0x98(%rbp), %rsi
callq 0x5798
leaq -0x88(%rbp), %rdi
callq 0x5b66
movq -0xb8(%rbp), %r12
movq %r12, %rdi
leaq 0x94b8(%rip), %rsi      # 0xd121
callq 0x30b0
testq %rax, %rax
je 0x3e3c
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 %r12, %rdi
leaq 0x9454(%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 0xa984
xorps %xmm0, %xmm0
cvtsi2sdl -0x34(%rbp), %xmm0
xorps %xmm1, %xmm1
cvtsi2sdl -0x30(%rbp), %xmm1
mulsd 0x9311(%rip), %xmm1     # 0xd008
mulsd 0x9311(%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 0x3d3d
movl %eax, %edi
movsd 0x92ee(%rip), %xmm1     # 0xd018
leaq -0x98(%rbp), %rsi
leaq -0x90(%rbp), %rdx
callq 0xb5a9
cmpl $0x0, -0x2c(%rbp)
jle 0x3e1d
xorl %r12d, %r12d
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 0x93a3(%rip), %rsi      # 0xd129
movq %rbx, %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 %r13, -0x120(%rbp)
movq %rbx, %rdi
callq 0x3150
leaq (%rax,%rbp), %rdx
addq $-0xf0, %rdx
movq %r15, %rdi
movq %rbx, %rsi
callq 0x5ef8
leaq -0x88(%rbp), %rdi
movq %r15, %rsi
callq 0x57e2
movupd -0xf0(%rbp), %xmm0
movupd -0xe0(%rbp), %xmm1
movupd %xmm1, 0x10(%rax)
movupd %xmm0, (%rax)
movq -0x120(%rbp), %rdi
cmpq %r13, %rdi
je 0x3e10
callq 0x3280
incl %r12d
cmpl -0x2c(%rbp), %r12d
jl 0x3d4a
movq -0xf8(%rbp), %rdi
leaq -0x98(%rbp), %rsi
callq 0x5862
leaq -0x88(%rbp), %rdi
callq 0x5bfa
movq -0x328(%rbp), %rax
movq -0x18(%rax), %rax
leaq (%rax,%rbp), %rdi
addq $-0x328, %rdi           # imm = 0xFCD8
testb $0x2, 0x20(%rdi)
je 0x3a1d
leaq -0x328(%rbp), %rdi
callq 0x3090
leaq -0x328(%rbp), %rdi
callq 0x30d0
movq -0xb8(%rbp), %rdi
leaq -0xa8(%rbp), %rax
cmpq %rax, %rdi
je 0x3e8c
callq 0x3280
addq $0x308, %rsp            # imm = 0x308
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0xe133(%rip), %rdi      # 0x11fd8
leaq 0x9200(%rip), %rsi      # 0xd0ac
movl $0x27, %edx
callq 0x3330
movq %rbx, %rdi
callq 0x3150
movq 0xe113(%rip), %rdi      # 0x11fd8
movq %rbx, %rsi
movq %rax, %rdx
callq 0x3330
movq 0xe101(%rip), %rdi      # 0x11fd8
callq 0x3170
movl $0x1, %edi
callq 0x3370
movq %rax, %rbx
jmp 0x3f52
jmp 0x3ef1
jmp 0x3f26
jmp 0x3f37
movq %rax, %rbx
jmp 0x3f46
jmp 0x3f26
movq %rax, %rbx
movq -0x120(%rbp), %rdi
cmpq %r13, %rdi
je 0x3f29
callq 0x3280
jmp 0x3f29
movq %rax, %rbx
movq -0x120(%rbp), %rdi
cmpq %r13, %rdi
je 0x3f3a
callq 0x3280
jmp 0x3f3a
jmp 0x3f37
movq %rax, %rbx
leaq -0x88(%rbp), %rdi
callq 0x5bfa
jmp 0x3f46
movq %rax, %rbx
leaq -0x88(%rbp), %rdi
callq 0x5b66
leaq -0x328(%rbp), %rdi
callq 0x30d0
movq -0xb8(%rbp), %rdi
leaq -0xa8(%rbp), %rax
cmpq %rax, %rdi
je 0x3f6a
callq 0x3280
movq %rbx, %rdi
callq 0x34b0