// File: /workspace/github_cpp_makefile_star2_O2/DoubleString[P]RtConverter/src/Rtklib/rtkcmn.cpp
// Function: bamboo::uniqnav(bamboo::nav_t*)
extern void uniqnav(nav_t *nav)
{
    int i,j;
    
    trace(3,"uniqnav: neph=%d ngeph=%d nseph=%d\n",nav->n,nav->ng,nav->ns);
    
    /* unique ephemeris */
    uniqeph (nav);
    uniqgeph(nav);
    uniqseph(nav);
    
    /* update carrier wave length */
    for (i=0;i<MAXRTKSAT;i++) for (j=0;j<NFREQ;j++) {
        nav->lam[i][j]=satwavelen(i+1,j,nav);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
movslq (%rdi), %rsi
testq %rsi, %rsi
jle 0x49db7
movq 0x40(%rbx), %rdi
leaq 0x35da(%rip), %rcx      # 0x4d2e9
movl $0x120, %r14d           # imm = 0x120
movl $0x120, %edx            # imm = 0x120
callq 0x8c10
xorl %r15d, %r15d
pushq $0x1
popq %r12
movslq (%rbx), %rax
cmpq %rax, %r12
jge 0x49d7c
movq 0x40(%rbx), %rax
movl (%rax,%r14), %edx
movslq %r15d, %rcx
imulq $0x120, %rcx, %rcx      # imm = 0x120
cmpl (%rax,%rcx), %edx
jne 0x49d52
addq %rax, %rcx
movl 0x4(%rax,%r14), %edx
cmpl 0x4(%rcx), %edx
je 0x49d70
leaq (%rax,%r14), %rsi
incl %r15d
movslq %r15d, %rcx
imulq $0x120, %rcx, %rdi      # imm = 0x120
addq %rax, %rdi
movl $0x120, %edx            # imm = 0x120
callq 0x84f0
incq %r12
addq $0x120, %r14            # imm = 0x120
jmp 0x49d26
incl %r15d
movl %r15d, (%rbx)
movq 0x40(%rbx), %rdi
movslq %r15d, %rax
imulq $0x120, %rax, %rsi      # imm = 0x120
callq 0x8a70
testq %rax, %rax
je 0x49da5
movq %rax, 0x40(%rbx)
movl (%rbx), %eax
movl %eax, 0x4(%rbx)
jmp 0x49db7
movq 0x40(%rbx), %rdi
callq 0x8780
andq $0x0, 0x40(%rbx)
andq $0x0, (%rbx)
movslq 0x8(%rbx), %rsi
testq %rsi, %rsi
jle 0x49e82
movq 0x48(%rbx), %rdi
leaq 0x3542(%rip), %rcx      # 0x4d311
movl $0x98, %edx
callq 0x8c10
xorl %r15d, %r15d
xorl %r12d, %r12d
xorl %r14d, %r14d
movslq 0x8(%rbx), %rax
cmpq %rax, %r12
jge 0x49e44
movq 0x48(%rbx), %rax
movl (%rax,%r15), %edx
movslq %r14d, %rcx
imulq $0x98, %rcx, %rcx
cmpl (%rax,%rcx), %edx
jne 0x49e1a
addq %rax, %rcx
movq 0x18(%rax,%r15), %rdx
cmpq 0x18(%rcx), %rdx
jne 0x49e1a
movl 0xc(%rax,%r15), %edx
cmpl 0xc(%rcx), %edx
je 0x49e38
leaq (%rax,%r15), %rsi
incl %r14d
movslq %r14d, %rcx
imulq $0x98, %rcx, %rdi
addq %rax, %rdi
movl $0x98, %edx
callq 0x84f0
incq %r12
addq $0x98, %r15
jmp 0x49de2
incl %r14d
movl %r14d, 0x8(%rbx)
movq 0x48(%rbx), %rdi
movslq %r14d, %rax
imulq $0x98, %rax, %rsi
callq 0x8a70
testq %rax, %rax
je 0x49e6f
movq %rax, 0x48(%rbx)
movl 0x8(%rbx), %eax
movl %eax, 0xc(%rbx)
jmp 0x49e82
movq 0x48(%rbx), %rdi
callq 0x8780
andq $0x0, 0x48(%rbx)
andq $0x0, 0x8(%rbx)
movslq 0x10(%rbx), %rsi
testq %rsi, %rsi
jle 0x49f43
movq 0x50(%rbx), %rdi
leaq 0x349f(%rip), %rcx      # 0x4d339
movl $0x88, %edx
callq 0x8c10
xorl %r15d, %r15d
xorl %r12d, %r12d
xorl %r14d, %r14d
movslq 0x10(%rbx), %rax
cmpq %rax, %r12
jge 0x49f05
movq 0x50(%rbx), %rax
movl (%rax,%r15), %edx
movslq %r14d, %rcx
imulq $0x88, %rcx, %rcx
cmpl (%rax,%rcx), %edx
jne 0x49edb
addq %rax, %rcx
movq 0x8(%rax,%r15), %rdx
cmpq 0x8(%rcx), %rdx
je 0x49ef9
leaq (%rax,%r15), %rsi
incl %r14d
movslq %r14d, %rcx
imulq $0x88, %rcx, %rdi
addq %rax, %rdi
movl $0x88, %edx
callq 0x84f0
incq %r12
addq $0x88, %r15
jmp 0x49ead
incl %r14d
movl %r14d, 0x10(%rbx)
movq 0x50(%rbx), %rdi
movslq %r14d, %rax
imulq $0x88, %rax, %rsi
callq 0x8a70
testq %rax, %rax
je 0x49f30
movq %rax, 0x50(%rbx)
movl 0x10(%rbx), %eax
movl %eax, 0x14(%rbx)
jmp 0x49f43
movq 0x50(%rbx), %rdi
callq 0x8780
andq $0x0, 0x50(%rbx)
andq $0x0, 0x10(%rbx)
leaq 0x298(%rbx), %r12
xorl %r14d, %r14d
cmpq $0x9b, %r14
je 0x49f81
incq %r14
xorl %r15d, %r15d
cmpq $0x3, %r15
je 0x49f7b
movl %r14d, %edi
movl %r15d, %esi
movq %rbx, %rdx
callq 0x49f8a
movsd %xmm0, (%r12,%r15,8)
incq %r15
jmp 0x49f5c
addq $0x18, %r12
jmp 0x49f4d
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq