// File: /workspace/github_cpp_makefile_star2_O2/DoubleString[P]eph_converter/src/main.cpp
// Function: main
int main(int argc,char* args[]){
	B2b b2b;
	if(argc < 10){
		printUsages();
		exit(1);
	}
	b2b.lbdtime = false;
	for(int iargc= 0;iargc < argc;iargc++){
		if(strstr(args[iargc],"-bdtime"))
			b2b.lbdtime = true;
		if(strstr(args[iargc],"-help")){
			printUsages();
			exit(1);
		}
	}
	int iyear,imon,iday,ihour,imin;
	double dsec,dseslen;
	string obsfile,ephfile;
	iyear=atoi(args[1]);
	imon=atoi(args[2]);
	iday=atoi(args[3]);
	ihour=atoi(args[4]);
	imin=atoi(args[5]);
	dsec=atof(args[6]);
	dseslen = atof(args[7]);
	obsfile=string(args[8]);
	b2b.mjd0 = md_julday(iyear,imon,iday);
	b2b.sod0 = ihour * 3600.0 + imin * 60.0 + dsec;
	timinc(b2b.mjd0,b2b.sod0,dseslen,&b2b.mjd1,&b2b.sod1);
	b2b.nav.navfilename=string(args[9]);
	strcpy(b2b.File,obsfile.c_str());

	b2b.m_process();
	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe18, %rsp            # imm = 0xE18
movq %rsi, -0x38(%rbp)
movl %edi, %r14d
leaq -0xe40(%rbp), %rdi
callq 0x369c
cmpl $0x9, %r14d
jle 0xb81a
andl $0x0, -0xe38(%rbp)
movl %r14d, %r13d
xorl %ebx, %ebx
leaq 0x1beb(%rip), %r14      # 0xd3c4
leaq 0x1c44(%rip), %r15      # 0xd424
cmpq %rbx, %r13
je 0xb827
movq -0x38(%rbp), %rax
movq (%rax,%rbx,8), %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x30b0
testq %rax, %rax
je 0xb807
movl $0x1, -0xe38(%rbp)
movq %r12, %rdi
movq %r15, %rsi
callq 0x30b0
incq %rbx
testq %rax, %rax
je 0xb7e0
callq 0xb788
pushq $0x1
popq %rdi
callq 0x3320
leaq -0x60(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
leaq -0xa0(%rbp), %rcx
movq %rcx, -0x10(%rcx)
andq $0x0, -0x8(%rcx)
xorl %edx, %edx
movb %dl, (%rax)
movb %dl, (%rcx)
movq -0x38(%rbp), %rbx
movq 0x8(%rbx), %rdi
callq 0x33f0
movl %eax, -0x40(%rbp)
movq 0x10(%rbx), %rdi
callq 0x33f0
movl %eax, %r15d
movq 0x18(%rbx), %rdi
callq 0x33f0
movl %eax, %r13d
movq 0x20(%rbx), %rdi
callq 0x33f0
movl %eax, -0x3c(%rbp)
movq 0x28(%rbx), %rdi
callq 0x33f0
movl %eax, %r14d
movq 0x30(%rbx), %rdi
callq 0x3340
movsd %xmm0, -0x50(%rbp)
movq 0x38(%rbx), %rdi
callq 0x3340
movsd %xmm0, -0x48(%rbp)
movq 0x40(%rbx), %rsi
leaq -0x90(%rbp), %rdi
leaq -0x29(%rbp), %rdx
callq 0x3110
leaq -0x70(%rbp), %rdi
leaq -0x90(%rbp), %r12
movq %r12, %rsi
callq 0x3330
movq %r12, %rdi
callq 0x3150
movl -0x40(%rbp), %edi
movl %r15d, %esi
movl %r13d, %edx
callq 0xa4d0
leaq -0xe3c(%rbp), %rsi
movl %eax, -0x4(%rsi)
cvtsi2sdl -0x3c(%rbp), %xmm2
cvtsi2sd %r14d, %xmm1
mulsd 0x709(%rip), %xmm1      # 0xc008
mulsd 0x709(%rip), %xmm2      # 0xc010
addsd %xmm1, %xmm2
movsd -0x50(%rbp), %xmm0
addsd %xmm2, %xmm0
movsd %xmm0, 0xc(%rsi)
leaq -0xe28(%rbp), %rdx
movl %eax, %edi
movsd -0x48(%rbp), %xmm1
callq 0xb032
movq -0x38(%rbp), %rax
movq 0x48(%rax), %rsi
leaq -0x90(%rbp), %rdi
leaq -0x29(%rbp), %rdx
callq 0x3110
leaq -0x720(%rbp), %rdi
leaq -0x90(%rbp), %rbx
movq %rbx, %rsi
callq 0x3330
movq %rbx, %rdi
callq 0x3150
leaq -0x4f8(%rbp), %rdi
movq -0x70(%rbp), %rsi
callq 0x3250
leaq -0xe40(%rbp), %rdi
callq 0x3d48
leaq -0xb0(%rbp), %rdi
callq 0x3150
leaq -0x70(%rbp), %rdi
callq 0x3150
leaq -0xe40(%rbp), %rdi
callq 0xb9e4
xorl %eax, %eax
addq $0xe18, %rsp            # imm = 0xE18
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xb9b7
jmp 0xb9b7
movq %rax, %rbx
leaq -0xb0(%rbp), %rdi
callq 0x3150
leaq -0x70(%rbp), %rdi
callq 0x3150
leaq -0xe40(%rbp), %rdi
callq 0xb9e4
movq %rbx, %rdi
callq 0x3490
nop