// File: /workspace/github_cpp_makefile_star2_O1/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 0x36fc
cmpl $0x9, %r14d
jle 0xc3cc
movl $0x0, -0xe38(%rbp)
movl %r14d, %r13d
xorl %ebx, %ebx
leaq 0x2268(%rip), %r14      # 0xe3f4
leaq 0x22c1(%rip), %r15      # 0xe454
movq -0x38(%rbp), %rax
movq (%rax,%rbx,8), %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x30b0
testq %rax, %rax
je 0xc1b5
movl $0x1, -0xe38(%rbp)
movq %r12, %rdi
movq %r15, %rsi
callq 0x30b0
testq %rax, %rax
jne 0xc3cc
incq %rbx
cmpq %rbx, %r13
jne 0xc193
leaq -0x60(%rbp), %rcx
movq %rcx, -0x10(%rcx)
xorl %eax, %eax
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq -0xa0(%rbp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
movq -0x38(%rbp), %rbx
movq 0x8(%rbx), %rdi
callq 0x3420
movl %eax, -0x40(%rbp)
movq 0x10(%rbx), %rdi
callq 0x3420
movl %eax, %r15d
movq 0x18(%rbx), %rdi
callq 0x3420
movl %eax, %r13d
movq 0x20(%rbx), %rdi
callq 0x3420
movl %eax, -0x3c(%rbp)
movq 0x28(%rbx), %rdi
callq 0x3420
movl %eax, %r14d
movq 0x30(%rbx), %rdi
callq 0x3390
movsd %xmm0, -0x50(%rbp)
movq 0x38(%rbx), %rdi
callq 0x3390
movsd %xmm0, -0x48(%rbp)
movq 0x40(%rbx), %rsi
leaq -0x90(%rbp), %rdi
leaq -0x29(%rbp), %rdx
callq 0x3120
leaq -0x70(%rbp), %rdi
leaq -0x90(%rbp), %r12
movq %r12, %rsi
callq 0x3380
movq (%r12), %rdi
leaq -0x80(%rbp), %r12
cmpq %r12, %rdi
je 0xc287
callq 0x3280
movl -0x40(%rbp), %edi
movl %r15d, %esi
movl %r13d, %edx
callq 0xaaec
leaq -0xe3c(%rbp), %rsi
movl %eax, -0x4(%rsi)
cvtsi2sdl -0x3c(%rbp), %xmm2
cvtsi2sd %r14d, %xmm1
mulsd 0xd57(%rip), %xmm1      # 0xd008
mulsd 0xd57(%rip), %xmm2      # 0xd010
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 0xb6d4
movq -0x38(%rbp), %rax
movq 0x48(%rax), %rsi
leaq -0x90(%rbp), %rdi
leaq -0x29(%rbp), %rdx
callq 0x3120
leaq -0x720(%rbp), %rdi
leaq -0x90(%rbp), %rbx
movq %rbx, %rsi
callq 0x3380
movq (%rbx), %rdi
cmpq %r12, %rdi
je 0xc319
callq 0x3280
leaq -0x4f8(%rbp), %rdi
movq -0x70(%rbp), %rsi
callq 0x3270
leaq -0xe40(%rbp), %rdi
callq 0x3f7c
movq -0xb0(%rbp), %rdi
leaq -0xa0(%rbp), %rax
cmpq %rax, %rdi
je 0xc34d
callq 0x3280
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0xc35f
callq 0x3280
leaq -0xc8(%rbp), %rdi
callq 0x557a
leaq -0xe0(%rbp), %rdi
callq 0x55c8
leaq -0xf8(%rbp), %rdi
callq 0x560e
leaq -0xe20(%rbp), %rbx
leaq 0x59af(%rip), %rax      # 0x11d40
addq $0x10, %rax
movq %rax, (%rbx)
movq 0x700(%rbx), %rdi
leaq -0x710(%rbp), %rax
cmpq %rax, %rdi
je 0xc3b0
callq 0x3280
movq %rbx, %rdi
callq 0x5a5a
xorl %eax, %eax
addq $0xe18, %rsp            # imm = 0xE18
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0xc134
movl $0x1, %edi
callq 0x3370
jmp 0xc3df
jmp 0xc3df
movq %rax, %rbx
movq -0xb0(%rbp), %rdi
leaq -0xa0(%rbp), %rax
cmpq %rax, %rdi
je 0xc3fa
callq 0x3280
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0xc40c
callq 0x3280
leaq -0xe40(%rbp), %rdi
callq 0xc420
movq %rbx, %rdi
callq 0x34b0