LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/DoubleString[P]RtConverter/src/Rtklib/rtcm3e.cpp
// Function: bamboo::encode_msm_rate(bamboo::rtcm_t*, int, double const*, int)
static int encode_msm_rate(rtcm_t *rtcm, int i, const double *rate, int ncell)
{
    int j,rate_val;
    
    for (j=0;j<ncell;j++) {
        if (rate[j]==0.0) {
            rate_val=-16384;
        }
        else if (fabs(rate[j])>1.6384) {
            trace(2,"msm fine phase-range-rate overflow %s rate=%.3f\n",
                 time_str(rtcm->time,0),rate[j]);
            rate_val=-16384;
        }
        else {
            rate_val=ROUND(rate[j]/0.0001);
        }
        setbitu(rtcm->buff,i,15,rate_val); i+=15;
    }
    return i;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %esi, %ebx
testl %ecx, %ecx
jle 0x4cca6
movq %rdx, %r14
movq %rdi, -0x30(%rbp)
leaq 0x9f0c4(%rdi), %r12
movl %ecx, %eax
movq %rax, -0x38(%rbp)
xorl %r15d, %r15d
movsd (%r14,%r15,8), %xmm0
movl $0xffffc000, %r13d      # imm = 0xFFFFC000
ucomisd 0x1dcea(%rip), %xmm0    # 0x6a908
jne 0x4cc22
jnp 0x4cc84
movapd %xmm0, %xmm1
andpd 0x1cd02(%rip), %xmm1    # 0x69930
ucomisd 0x23612(%rip), %xmm1    # 0x70248
jbe 0x4cc6a
movq -0x30(%rbp), %rax
movq 0x10(%rax), %rdi
movsd 0x18(%rax), %xmm0
xorl %esi, %esi
callq 0x4fdbe
movsd (%r14,%r15,8), %xmm0
movl $0x2, %edi
leaq 0x23ace(%rip), %rsi     # 0x7072c
movq %rax, %rdx
movb $0x1, %al
callq 0x4d55d
jmp 0x4cc84
divsd 0x1dcae(%rip), %xmm0    # 0x6a920
addsd 0x1effe(%rip), %xmm0    # 0x6bc78
callq 0x8ac0
cvttsd2si %xmm0, %r13d
movq %r12, %rdi
movl %ebx, %esi
movl $0xf, %edx
movl %r13d, %ecx
callq 0x4da98
addl $0xf, %ebx
incq %r15
cmpq %r15, -0x38(%rbp)
jne 0x4cc0a
movl %ebx, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/DoubleString[P]RtConverter/src/Rtklib/rtcm3e.cpp
// Function: bamboo::encode_msm_psrng_ex(bamboo::rtcm_t*, int, double const*, int)
static int encode_msm_psrng_ex(rtcm_t *rtcm, int i, const double *psrng,
                               int ncell)
{
    int j,psrng_val;
    
    for (j=0;j<ncell;j++) {
        if (psrng[j]==0.0) {
            psrng_val=-524288;
        }
        else if (fabs(psrng[j])>292.7) {
            trace(2,"msm fine pseudorange ext overflow %s psrng=%.3f\n",
                 time_str(rtcm->time,0),psrng[j]);
            psrng_val=-524288;
        }
        else {
            psrng_val=ROUND(psrng[j]/RANGE_MS/P2_29);
        }
        setbits(rtcm->buff,i,20,psrng_val); i+=20;
    }
    return i;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %esi, %ebx
testl %ecx, %ecx
jle 0x4cd8d
movq %rdx, %r14
movq %rdi, -0x30(%rbp)
leaq 0x9f0c4(%rdi), %r12
movl %ecx, %eax
movq %rax, -0x38(%rbp)
xorl %r15d, %r15d
movsd (%r14,%r15,8), %xmm0
movl $0xfff80000, %r13d      # imm = 0xFFF80000
ucomisd 0x1dc0b(%rip), %xmm0    # 0x6a908
jne 0x4cd01
jnp 0x4cd6b
movapd %xmm0, %xmm1
andpd 0x1cc23(%rip), %xmm1    # 0x69930
ucomisd 0x234ab(%rip), %xmm1    # 0x701c0
jbe 0x4cd49
movq -0x30(%rbp), %rax
movq 0x10(%rax), %rdi
movsd 0x18(%rax), %xmm0
xorl %esi, %esi
callq 0x4fdbe
movsd (%r14,%r15,8), %xmm0
movl $0x2, %edi
leaq 0x23a3d(%rip), %rsi     # 0x7077a
movq %rax, %rdx
movb $0x1, %al
callq 0x4d55d
jmp 0x4cd6b
divsd 0x220af(%rip), %xmm0    # 0x6ee00
mulsd 0x233e7(%rip), %xmm0    # 0x70140
addsd 0x1ef17(%rip), %xmm0    # 0x6bc78
callq 0x8ac0
cvttsd2si %xmm0, %r13d
movq %r12, %rdi
movl %ebx, %esi
movl $0x14, %edx
movl %r13d, %ecx
callq 0x4db0c
addl $0x14, %ebx
incq %r15
cmpq %r15, -0x38(%rbp)
jne 0x4cce9
movl %ebx, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/DoubleString[P]RtConverter/src/Rtklib/rtcm3e.cpp
// Function: bamboo::encode_msm_phrng_ex(bamboo::rtcm_t*, int, double const*, int)
static int encode_msm_phrng_ex(rtcm_t *rtcm, int i, const double *phrng,
                               int ncell)
{
    int j,phrng_val;
    
    for (j=0;j<ncell;j++) {
        if (phrng[j]==0.0) {
            phrng_val=-8388608;
        }
        else if (fabs(phrng[j])>1171.0) {
            trace(2,"msm fine phase-range ext overflow %s phrng=%.3f\n",
                 time_str(rtcm->time,0),phrng[j]);
            phrng_val=-8388608;
        }
        else {
            phrng_val=ROUND(phrng[j]/RANGE_MS/P2_31);
        }
        setbits(rtcm->buff,i,24,phrng_val); i+=24;
    }
    return i;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %esi, %ebx
testl %ecx, %ecx
jle 0x4ce74
movq %rdx, %r14
movq %rdi, -0x30(%rbp)
leaq 0x9f0c4(%rdi), %r12
movl %ecx, %eax
movq %rax, -0x38(%rbp)
xorl %r15d, %r15d
movsd (%r14,%r15,8), %xmm0
movl $0xff800000, %r13d      # imm = 0xFF800000
ucomisd 0x1db24(%rip), %xmm0    # 0x6a908
jne 0x4cde8
jnp 0x4ce52
movapd %xmm0, %xmm1
andpd 0x1cb3c(%rip), %xmm1    # 0x69930
ucomisd 0x233b4(%rip), %xmm1    # 0x701b0
jbe 0x4ce30
movq -0x30(%rbp), %rax
movq 0x10(%rax), %rdi
movsd 0x18(%rax), %xmm0
xorl %esi, %esi
callq 0x4fdbe
movsd (%r14,%r15,8), %xmm0
movl $0x2, %edi
leaq 0x23987(%rip), %rsi     # 0x707ab
movq %rax, %rdx
movb $0x1, %al
callq 0x4d55d
jmp 0x4ce52
divsd 0x21fc8(%rip), %xmm0    # 0x6ee00
mulsd 0x1dc60(%rip), %xmm0    # 0x6aaa0
addsd 0x1ee30(%rip), %xmm0    # 0x6bc78
callq 0x8ac0
cvttsd2si %xmm0, %r13d
movq %r12, %rdi
movl %ebx, %esi
movl $0x18, %edx
movl %r13d, %ecx
callq 0x4db0c
addl $0x18, %ebx
incq %r15
cmpq %r15, -0x38(%rbp)
jne 0x4cdd0
movl %ebx, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/DoubleString[P]RtConverter/src/Rtklib/rtcm3e.cpp
// Function: bamboo::encode_msm_cnr_ex(bamboo::rtcm_t*, int, float const*, int)
static int encode_msm_cnr_ex(rtcm_t *rtcm, int i, const float *cnr, int ncell)
{
    int j,cnr_val;
    
    for (j=0;j<ncell;j++) {
        cnr_val=ROUND(cnr[j]/0.0625);
        setbitu(rtcm->buff,i,10,cnr_val); i+=10;
    }
    return i;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %esi, %ebx
testl %ecx, %ecx
jle 0x4d26f
movq %rdx, %r14
movq %rdi, %r15
addq $0x9f0c4, %r15          # imm = 0x9F0C4
movl %ecx, %r12d
xorl %r13d, %r13d
xorps %xmm0, %xmm0
cvtss2sd (%r14,%r13,4), %xmm0
mulsd 0x1fb34(%rip), %xmm0    # 0x6cd78
addsd 0x1ea2c(%rip), %xmm0    # 0x6bc78
callq 0x8ac0
cvttsd2si %xmm0, %ecx
movq %r15, %rdi
movl %ebx, %esi
movl $0xa, %edx
callq 0x4da98
addl $0xa, %ebx
incq %r13
cmpq %r13, %r12
jne 0x4d233
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/DoubleString[P]RtConverter/src/Rtklib/rtkcmn.cpp
// Function: bamboo::satno(int, int)
extern int satno(int sys, int prn)
{
    if (prn<=0) return 0;
    switch (sys) {
        case SYS_GPS:
            if (prn<MINPRNGPS||MAXPRNGPS<prn) return 0;
            return prn-MINPRNGPS+1;
        case SYS_GLO:
            if (prn<MINPRNGLO||MAXPRNGLO<prn) return 0;
            return NSATGPS+prn-MINPRNGLO+1;
        case SYS_GAL:
            if (prn<MINPRNGAL||MAXPRNGAL<prn) return 0;
            return NSATGPS+NSATGLO+prn-MINPRNGAL+1;
        case SYS_QZS:
            if (prn<MINPRNQZS||MAXPRNQZS<prn) return 0;
            return NSATGPS+NSATGLO+NSATGAL+prn-MINPRNQZS+1;
        case SYS_CMP:
            if (prn<MINPRNCMP||MAXPRNCMP<prn) return 0;
            return NSATGPS+NSATGLO+NSATGAL+NSATQZS+prn-MINPRNCMP+1;
        case SYS_IRN:
            if (prn<MINPRNIRN||MAXPRNIRN<prn) return 0;
            return NSATGPS+NSATGLO+NSATGAL+NSATQZS+NSATCMP+prn-MINPRNIRN+1;
        case SYS_LEO:
            if (prn<MINPRNLEO||MAXPRNLEO<prn) return 0;
            return NSATGPS+NSATGLO+NSATGAL+NSATQZS+NSATCMP+NSATIRN+
                   prn-MINPRNLEO+1;
        case SYS_SBS:
            if (prn<MINPRNSBS||MAXPRNSBS<prn) return 0;
            return NSATGPS+NSATGLO+NSATGAL+NSATQZS+NSATCMP+NSATIRN+NSATLEO+
                   prn-MINPRNSBS+1;
    }
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
xorl %eax, %eax
testl %esi, %esi
jle 0x4d2f0
leal -0x1(%rdi), %ecx
cmpl $0x7, %ecx
ja 0x4d2b9
leaq 0x2357a(%rip), %rdx     # 0x70820
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
xorl %eax, %eax
cmpl $0x21, %esi
cmovbl %esi, %eax
jmp 0x4d2f0
cmpl $0x20, %edi
jne 0x4d2f0
leal 0x5f(%rsi), %ecx
xorl %eax, %eax
cmpl $0x26, %esi
jmp 0x4d2da
leal 0x20(%rsi), %ecx
xorl %eax, %eax
cmpl $0x1c, %esi
jmp 0x4d2da
leal 0x3b(%rsi), %ecx
xorl %eax, %eax
cmpl $0x25, %esi
cmovbl %ecx, %eax
jmp 0x4d2f0
leal -0x8f(%rsi), %ecx
addl $0xd, %esi
xorl %eax, %eax
cmpl $-0x17, %ecx
cmovael %esi, %eax
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/DoubleString[P]RtConverter/src/Rtklib/rtkcmn.cpp
// Function: bamboo::satexclude(int, double, int, bamboo::prcopt_t const*)
extern int satsys(int sat, int *prn)
{
    int sys=SYS_NONE;
    if (sat<=0||MAXRTKSAT<sat) sat=0;
    else if (sat<=NSATGPS) {
        sys=SYS_GPS; sat+=MINPRNGPS-1;
    }
    else if ((sat-=NSATGPS)<=NSATGLO) {
        sys=SYS_GLO; sat+=MINPRNGLO-1;
    }
    else if ((sat-=NSATGLO)<=NSATGAL) {
        sys=SYS_GAL; sat+=MINPRNGAL-1;
    }
    else if ((sat-=NSATGAL)<=NSATQZS) {
        sys=SYS_QZS; sat+=MINPRNQZS-1; 
    }
    else if ((sat-=NSATQZS)<=NSATCMP) {
        sys=SYS_CMP; sat+=MINPRNCMP-1; 
    }
    else if ((sat-=NSATCMP)<=NSATIRN) {
        sys=SYS_IRN; sat+=MINPRNIRN-1; 
    }
    else if ((sat-=NSATIRN)<=NSATLEO) {
        sys=SYS_LEO; sat+=MINPRNLEO-1; 
    }
    else if ((sat-=NSATLEO)<=NSATSBS) {
        sys=SYS_SBS; sat+=MINPRNSBS-1; 
    }
    else sat=0;
    if (prn) *prn=sat;
    return sys;
}

// Assembly:
leal -0x9c(%rdi), %eax
xorl %ecx, %ecx
cmpl $0xffffff65, %eax       # imm = 0xFFFFFF65
jb 0x4d501
movl $0x1, %ecx
cmpl $0x21, %edi
jb 0x4d501
movl $0x4, %ecx
cmpl $0x3c, %edi
jb 0x4d501
movl $0x8, %ecx
cmpl $0x60, %edi
jb 0x4d501
cmpl $0x85, %edi
movl $0x20, %eax
movl $0x2, %ecx
cmovbl %eax, %ecx
testl %esi, %esi
js 0x4d547
testq %rdx, %rdx
je 0x4d522
movslq %edi, %rax
movzbl 0x8a7(%rax,%rdx), %eax
cmpl $0x1, %eax
je 0x4d55c
cmpl $0x2, %eax
jne 0x4d528
xorl %eax, %eax
retq
testl %esi, %esi
jne 0x4d547
jmp 0x4d531
testl %esi, %esi
jne 0x4d547
andl 0xc(%rdx), %ecx
je 0x4d547
xorl %eax, %eax
ucomisd 0x2763d(%rip), %xmm0    # 0x74b78
jbe 0x4d55c
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jb 0x4d54d
movl $0x1, %eax
retq
pushq %rbp
movq %rsp, %rbp
callq 0x84e0
movl $0x1, %eax
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/DoubleString[P]RtConverter/src/Rtklib/rtkcmn.cpp
// Function: bamboo::satid2no(char const*)
extern int satid2no(const char *id)
{
    int sys,prn;
    char code;
    
    if (sscanf(id,"%d",&prn)==1) {
        if      (MINPRNGPS<=prn&&prn<=MAXPRNGPS) sys=SYS_GPS;
        else if (MINPRNSBS<=prn&&prn<=MAXPRNSBS) sys=SYS_SBS;
        else if (MINPRNQZS<=prn&&prn<=MAXPRNQZS) sys=SYS_QZS;
        else return 0;
        return satno(sys,prn);
    }
    if (sscanf(id,"%c%d",&code,&prn)<2) return 0;
    
    switch (code) {
        case 'G': sys=SYS_GPS; prn+=MINPRNGPS-1; break;
        case 'R': sys=SYS_GLO; prn+=MINPRNGLO-1; break;
        case 'E': sys=SYS_GAL; prn+=MINPRNGAL-1; break;
        case 'J': sys=SYS_QZS; prn+=MINPRNQZS-1; break;
        case 'C': sys=SYS_CMP; prn+=MINPRNCMP-1; break;
        case 'I': sys=SYS_IRN; prn+=MINPRNIRN-1; break;
        case 'L': sys=SYS_LEO; prn+=MINPRNLEO-1; break;
        case 'S': sys=SYS_SBS; prn+=100; break;
        default: return 0;
    }
    return satno(sys,prn);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %r14
leaq 0x28dbc(%rip), %rsi     # 0x7612b
xorl %ebx, %ebx
leaq -0x14(%rbp), %rdx
xorl %eax, %eax
callq 0x8610
cmpl $0x1, %eax
jne 0x4d3b0
movl -0x14(%rbp), %esi
leal -0x1(%rsi), %eax
movl $0x1, %edi
cmpl $0x20, %eax
jb 0x4d3ab
leal -0x78(%rsi), %eax
movl $0x2, %edi
cmpl $0x17, %eax
jb 0x4d3ab
testl %esi, %esi
jne 0x4d437
movl $0x10, %edi
jmp 0x4d430
leaq 0x27c2a(%rip), %rsi     # 0x74fe1
leaq -0x15(%rbp), %rdx
leaq -0x14(%rbp), %rcx
movq %r14, %rdi
xorl %eax, %eax
callq 0x8610
cmpl $0x2, %eax
jl 0x4d437
movzbl -0x15(%rbp), %eax
addl $-0x43, %eax
cmpl $0x10, %eax
ja 0x4d437
leaq 0x2345f(%rip), %rcx     # 0x70840
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl $0x20, %edi
jmp 0x4d42d
decl -0x14(%rbp)
movl $0x80, %edi
jmp 0x4d42d
movl $0x8, %edi
jmp 0x4d42d
movl $0x4, %edi
jmp 0x4d42d
addl $0x64, -0x14(%rbp)
movl $0x2, %edi
jmp 0x4d42d
movl $0x1, %edi
jmp 0x4d42d
decl -0x14(%rbp)
movl $0x40, %edi
jmp 0x4d42d
decl -0x14(%rbp)
movl $0x10, %edi
movl -0x14(%rbp), %esi
callq 0x4d28d
movl %eax, %ebx
movl %ebx, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/DoubleString[P]RtConverter/src/Rtklib/rtkcmn.cpp
// Function: bamboo::satno2id(int, char*)
extern void satno2id(int sat, char *id)
{
    int prn;
    switch (satsys(sat,&prn)) {
        case SYS_GPS: sprintf(id,"G%02d",prn-MINPRNGPS+1); return;
        case SYS_GLO: sprintf(id,"R%02d",prn-MINPRNGLO+1); return;
        case SYS_GAL: sprintf(id,"E%02d",prn-MINPRNGAL+1); return;
        case SYS_QZS: sprintf(id,"J%02d",prn-MINPRNQZS+1); return;
        case SYS_CMP: sprintf(id,"C%02d",prn-MINPRNCMP+1); return;
        case SYS_IRN: sprintf(id,"I%02d",prn-MINPRNIRN+1); return;
        case SYS_LEO: sprintf(id,"L%02d",prn-MINPRNLEO+1); return;
        case SYS_SBS: sprintf(id,"%03d" ,prn); return;
    }
    strcpy(id,"");
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl %edi, %eax
leal -0x9c(%rax), %ecx
cmpl $0xffffff65, %ecx       # imm = 0xFFFFFF65
jae 0x4d45b
movb $0x0, (%rsi)
popq %rbp
retq
cmpl $0x21, %eax
jae 0x4d469
leaq 0x27b7f(%rip), %rcx     # 0x74fe6
jmp 0x4d489
cmpl $0x3c, %eax
jae 0x4d47a
addl $-0x20, %eax
leaq 0x27b74(%rip), %rcx     # 0x74fec
jmp 0x4d489
cmpl $0x60, %eax
jae 0x4d499
addl $-0x3b, %eax
leaq 0x27b69(%rip), %rcx     # 0x74ff2
movq %rsi, %rdi
movq %rcx, %rsi
movl %eax, %edx
xorl %eax, %eax
popq %rbp
jmp 0x8120
leal -0xd(%rax), %ecx
leal -0x5f(%rax), %edx
cmpl $0x85, %eax
cmovael %ecx, %edx
jae 0x4d4b2
leaq 0x27b48(%rip), %rax     # 0x74ff8
jmp 0x4d4b9
leaq 0x27b45(%rip), %rax     # 0x74ffe
movq %rsi, %rdi
movq %rax, %rsi
jmp 0x4d491
// File: /workspace/github_cpp_makefile_star2_O3/DoubleString[P]RtConverter/src/Rtklib/rtkcmn.cpp
// Function: bamboo::testsnr(int, int, double, double, bamboo::snrmask_t const*)
extern int testsnr(int base, int freq, double el, double snr,
                   const snrmask_t *mask)
{
    double minsnr,a;
    int i;
    
    if (!mask->ena[base]||freq<0||freq>=NFREQ) return 0;
    
    a=(el*R2D+5.0)/10.0;
    i=(int)floor(a); a-=i;
    if      (i<1) minsnr=mask->mask[freq][0];
    else if (i>8) minsnr=mask->mask[freq][8];
    else minsnr=(1.0-a)*mask->mask[freq][i-1]+a*mask->mask[freq][i];
    
    return snr<minsnr;
}

// Assembly:
xorl %eax, %eax
cmpl $0x2, %esi
ja 0x4d635
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdx, %rbx
movslq %edi, %rcx
cmpl $0x0, (%rdx,%rcx,4)
je 0x4d62d
movl %esi, %r14d
movsd %xmm1, -0x18(%rbp)
mulsd 0x2189f(%rip), %xmm0    # 0x6ee38
addsd 0x1e227(%rip), %xmm0    # 0x6b7c8
divsd 0x1d51f(%rip), %xmm0    # 0x6aac8
movsd %xmm0, -0x20(%rbp)
callq 0x8ac0
cvttsd2si %xmm0, %eax
testl %eax, %eax
jle 0x4d5d4
cmpl $0x9, %eax
movsd -0x18(%rbp), %xmm1
jb 0x4d5e8
movl %r14d, %eax
leaq (%rax,%rax,8), %rax
movsd 0x48(%rbx,%rax,8), %xmm0
jmp 0x4d624
movl %r14d, %eax
leaq (%rax,%rax,8), %rax
movsd 0x8(%rbx,%rax,8), %xmm0
movsd -0x18(%rbp), %xmm1
jmp 0x4d624
cvttpd2dq %xmm0, %xmm0
cvtdq2pd %xmm0, %xmm0
movsd -0x20(%rbp), %xmm2
subsd %xmm0, %xmm2
movsd 0x1c31f(%rip), %xmm0    # 0x69920
subsd %xmm2, %xmm0
movl %r14d, %ecx
leaq (%rcx,%rcx,8), %rcx
leaq (%rbx,%rcx,8), %rcx
movl %eax, %edx
mulsd 0x8(%rcx,%rdx,8), %xmm2
decl %eax
mulsd 0x8(%rcx,%rax,8), %xmm0
addsd %xmm2, %xmm0
xorl %eax, %eax
ucomisd %xmm1, %xmm0
seta %al
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/DoubleString[P]RtConverter/src/Rtklib/rtkcmn.cpp
// Function: bamboo::obs2code(char const*, int*)
extern unsigned char obs2code(const char *obs, int *freq)
{
    int i;
    if (freq) *freq=0;
    for (i=1;*obscodes[i];i++) {
        if (strcmp(obscodes[i],obs)) continue;
        if (freq) *freq=obsfreqs[i];
        return (unsigned char)i;
    }
    return CODE_NONE;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %r14
movq %rdi, %r15
testq %rsi, %rsi
je 0x4d653
movl $0x0, (%r14)
leaq 0x2183e(%rip), %rdi     # 0x6ee98
xorl %ebx, %ebx
leaq 0x4028d(%rip), %r12     # 0x8d8f0
movq %r15, %rsi
callq 0x8880
testl %eax, %eax
je 0x4d681
movq 0x10(%r12,%rbx,8), %rdi
incq %rbx
cmpq $0x37, %rbx
jne 0x4d663
xorl %ebx, %ebx
jmp 0x4d697
testq %r14, %r14
je 0x4d695
leaq 0x248c3(%rip), %rax     # 0x71f50
movzbl 0x1(%rbx,%rax), %eax
movl %eax, (%r14)
incb %bl
movl %ebx, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/DoubleString[P]RtConverter/src/Rtklib/rtkcmn.cpp
// Function: bamboo::code2obs(unsigned char, int*)
extern char *code2obs(unsigned char code, int *freq)
{
    if (freq) *freq=0;
    if (code<=CODE_NONE||MAXCODE<code) return "";
    if (freq) *freq=obsfreqs[code];
    return obscodes[code];
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
testq %rsi, %rsi
je 0x4d6cb
movl $0x0, (%rsi)
leal -0x38(%rdi), %eax
cmpb $-0x37, %al
jb 0x4d6d2
movzbl %dil, %eax
leaq 0x2488d(%rip), %rcx     # 0x71f50
movzbl (%rax,%rcx), %ecx
movl %ecx, (%rsi)
jmp 0x4d6df
leal -0x38(%rdi), %eax
cmpb $-0x37, %al
jae 0x4d6db
leaq 0x1cf1c(%rip), %rax     # 0x6a5f5
jmp 0x4d6ea
movzbl %dil, %eax
leaq 0x4020a(%rip), %rcx     # 0x8d8f0
movq (%rcx,%rax,8), %rax
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/DoubleString[P]RtConverter/src/Rtklib/rtkcmn.cpp
// Function: bamboo::setcodepri(int, int, char const*)
extern void setcodepri(int sys, int freq, const char *pri)
{
    trace(3,"setcodepri:sys=%d freq=%d pri=%s\n",sys,freq,pri);
    
    if (freq<=0||MAXRTKFREQ<freq) return;
    if (sys&SYS_GPS) strcpy(codepris[0][freq-1],pri);
    if (sys&SYS_GLO) strcpy(codepris[1][freq-1],pri);
    if (sys&SYS_GAL) strcpy(codepris[2][freq-1],pri);
    if (sys&SYS_QZS) strcpy(codepris[3][freq-1],pri);
    if (sys&SYS_SBS) strcpy(codepris[4][freq-1],pri);
    if (sys&SYS_CMP) strcpy(codepris[5][freq-1],pri);
    if (sys&SYS_IRN) strcpy(codepris[6][freq-1],pri);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %r14d
leal -0x8(%r14), %eax
cmpl $-0x7, %eax
jb 0x4d7f7
movq %rdx, %rbx
movl %edi, %r15d
testb $0x1, %r15b
je 0x4d72c
leal -0x1(%r14), %eax
shlq $0x4, %rax
leaq 0x4162f(%rip), %rdi     # 0x8ed50
addq %rax, %rdi
movq %rbx, %rsi
callq 0x85c0
testb $0x4, %r15b
je 0x4d751
leal -0x1(%r14), %eax
shlq $0x4, %rax
leaq 0x4160f(%rip), %rcx     # 0x8ed50
leaq (%rax,%rcx), %rdi
addq $0x70, %rdi
movq %rbx, %rsi
callq 0x85c0
testb $0x8, %r15b
je 0x4d779
leal -0x1(%r14), %eax
shlq $0x4, %rax
leaq 0x415ea(%rip), %rcx     # 0x8ed50
leaq (%rax,%rcx), %rdi
addq $0xe0, %rdi
movq %rbx, %rsi
callq 0x85c0
testb $0x10, %r15b
je 0x4d7a1
leal -0x1(%r14), %eax
shlq $0x4, %rax
leaq 0x415c2(%rip), %rcx     # 0x8ed50
leaq (%rax,%rcx), %rdi
addq $0x150, %rdi            # imm = 0x150
movq %rbx, %rsi
callq 0x85c0
testb $0x2, %r15b
je 0x4d7c9
leal -0x1(%r14), %eax
shlq $0x4, %rax
leaq 0x4159a(%rip), %rcx     # 0x8ed50
leaq (%rax,%rcx), %rdi
addq $0x1c0, %rdi            # imm = 0x1C0
movq %rbx, %rsi
callq 0x85c0
testb $0x20, %r15b
je 0x4d7f1
leal -0x1(%r14), %eax
shlq $0x4, %rax
leaq 0x41572(%rip), %rcx     # 0x8ed50
leaq (%rax,%rcx), %rdi
addq $0x230, %rdi            # imm = 0x230
movq %rbx, %rsi
callq 0x85c0
testb $0x40, %r15b
jne 0x4d802
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
decl %r14d
shlq $0x4, %r14
leaq 0x41540(%rip), %rax     # 0x8ed50
leaq (%r14,%rax), %rdi
addq $0x2a0, %rdi            # imm = 0x2A0
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x85c0
// File: /workspace/github_cpp_makefile_star2_O3/DoubleString[P]RtConverter/src/Rtklib/rtkcmn.cpp
// Function: bamboo::getcodepri(int, unsigned char, char const*)
extern int getcodepri(int sys, unsigned char code, const char *opt)
{
    const char *p,*optstr;
    char *obs,str[8]="";
    int i,j;
    
    switch (sys) {
        case SYS_GPS: i=0; optstr="-GL%2s"; break;
        case SYS_GLO: i=1; optstr="-RL%2s"; break;
        case SYS_GAL: i=2; optstr="-EL%2s"; break;
        case SYS_QZS: i=3; optstr="-JL%2s"; break;
        case SYS_SBS: i=4; optstr="-SL%2s"; break;
        case SYS_CMP: i=5; optstr="-CL%2s"; break;
        case SYS_IRN: i=6; optstr="-IL%2s"; break;
        default: return 0;
    }
    obs=code2obs(code,&j);
    
    /* parse code options */
    for (p=opt;p&&(p=strchr(p,'-'));p++) {
        if (sscanf(p,optstr,str)<1||str[0]!=obs[0]) continue;
        return str[1]==obs[1]?15:0;
    }
    /* search code priority */
    return (p=strchr(codepris[i][j-1],obs[1]))?14-(int)(p-codepris[i][j-1]):0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq $0x0, -0x38(%rbp)
xorl %r8d, %r8d
cmpl $0xf, %edi
jg 0x4d87a
decl %edi
cmpl $0x7, %edi
ja 0x4d9b0
leaq 0x23024(%rip), %rax     # 0x70884
movslq (%rax,%rdi,4), %rcx
addq %rax, %rcx
jmpq *%rcx
movq $0x0, -0x30(%rbp)
leaq 0x2778b(%rip), %r14     # 0x75003
jmp 0x4d8f7
cmpl $0x10, %edi
je 0x4d8d5
cmpl $0x20, %edi
je 0x4d8e7
cmpl $0x40, %edi
jne 0x4d9b0
movl $0x6, %eax
movq %rax, -0x30(%rbp)
leaq 0x27790(%rip), %r14     # 0x7502d
jmp 0x4d8f7
movl $0x1, %eax
movq %rax, -0x30(%rbp)
leaq 0x2775b(%rip), %r14     # 0x7500a
jmp 0x4d8f7
movl $0x2, %eax
movq %rax, -0x30(%rbp)
leaq 0x27750(%rip), %r14     # 0x75011
jmp 0x4d8f7
movl $0x4, %eax
movq %rax, -0x30(%rbp)
leaq 0x2774c(%rip), %r14     # 0x7501f
jmp 0x4d8f7
movl $0x3, %eax
movq %rax, -0x30(%rbp)
leaq 0x27733(%rip), %r14     # 0x75018
jmp 0x4d8f7
movl $0x5, %eax
movq %rax, -0x30(%rbp)
leaq 0x2772f(%rip), %r14     # 0x75026
leal -0x38(%rsi), %eax
cmpb $-0x37, %al
jae 0x4d90e
leaq 0x1ccf0(%rip), %rbx     # 0x6a5f5
movq $-0x1, %r15
jmp 0x4d92c
movzbl %sil, %eax
leaq 0x24637(%rip), %rcx     # 0x71f50
movzbl (%rax,%rcx), %r15d
leaq 0x3ffcb(%rip), %rcx     # 0x8d8f0
movq (%rcx,%rax,8), %rbx
decq %r15
testq %rdx, %rdx
je 0x4d97d
movq %rdx, %rdi
movl $0x2d, %esi
callq 0x8250
testq %rax, %rax
je 0x4d97d
movq %rax, %r12
leaq -0x38(%rbp), %r13
movq %r12, %rdi
movq %r14, %rsi
movq %r13, %rdx
xorl %eax, %eax
callq 0x8610
testl %eax, %eax
jle 0x4d965
movb -0x38(%rbp), %al
cmpb (%rbx), %al
je 0x4d9c2
incq %r12
movq %r12, %rdi
movl $0x2d, %esi
callq 0x8250
movq %rax, %r12
testq %rax, %rax
jne 0x4d94a
imulq $0x70, -0x30(%rbp), %rax
leaq 0x413c7(%rip), %rcx     # 0x8ed50
shlq $0x4, %r15
addq %rcx, %r15
addq %rax, %r15
movsbl 0x1(%rbx), %esi
movq %r15, %rdi
callq 0x8250
subl %eax, %r15d
addl $0xe, %r15d
xorl %r8d, %r8d
testq %rax, %rax
cmovnel %r15d, %r8d
movl %r8d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movb -0x37(%rbp), %al
xorl %ecx, %ecx
cmpb 0x1(%rbx), %al
movl $0xf, %r8d
cmovnel %ecx, %r8d
jmp 0x4d9b0
// File: /workspace/github_cpp_makefile_star2_O3/DoubleString[P]RtConverter/src/Rtklib/rtkcmn.cpp
// Function: bamboo::rtk_crc32(unsigned char const*, int)
extern unsigned int rtk_crc32(const unsigned char *buff, int len)
{
    unsigned int crc=0;
    int i,j;
    
    trace(4,"rtk_crc32: len=%d\n",len);
    
    for (i=0;i<len;i++) {
        crc^=buff[i];
        for (j=0;j<8;j++) {
            if (crc&1) crc=(crc>>1)^POLYCRC32; else crc>>=1;
        }
    }
    return crc;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
testl %esi, %esi
jle 0x4db6f
movl %esi, %ecx
xorl %edx, %edx
xorl %eax, %eax
movzbl (%rdi,%rdx), %esi
xorl %esi, %eax
movl $0x8, %esi
movl %eax, %r8d
shrl %r8d
movl %r8d, %r9d
xorl $0xedb88320, %r9d       # imm = 0xEDB88320
testb $0x1, %al
movl %r9d, %eax
cmovel %r8d, %eax
decl %esi
jne 0x4db48
incq %rdx
cmpq %rcx, %rdx
jne 0x4db3d
jmp 0x4db71
xorl %eax, %eax
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/DoubleString[P]RtConverter/src/Rtklib/rtkcmn.cpp
// Function: bamboo::rtk_crc24q(unsigned char const*, int)
extern unsigned int rtk_crc24q(const unsigned char *buff, int len)
{
    unsigned int crc=0;
    int i;
    
    trace(4,"rtk_crc24q: len=%d\n",len);
    
    for (i=0;i<len;i++) crc=((crc<<8)&0xFFFFFF)^tbl_CRC24Q[(crc>>16)^buff[i]];
    return crc;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
testl %esi, %esi
jle 0x4dbad
movl %esi, %ecx
xorl %edx, %edx
leaq 0x2440a(%rip), %rsi     # 0x71f90
xorl %r8d, %r8d
movzwl %r8w, %eax
shll $0x8, %eax
shrl $0x10, %r8d
movzbl (%rdi,%rdx), %r9d
xorl %r8d, %r9d
xorl (%rsi,%r9,4), %eax
incq %rdx
movl %eax, %r8d
cmpq %rdx, %rcx
jne 0x4db89
jmp 0x4dbaf
xorl %eax, %eax
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/DoubleString[P]RtConverter/src/Rtklib/rtkcmn.cpp
// Function: bamboo::rtk_crc16(unsigned char const*, int)
extern unsigned short rtk_crc16(const unsigned char *buff, int len)
{
    unsigned short crc=0;
    int i;
    
    trace(4,"rtk_crc16: len=%d\n",len);
    
    for (i=0;i<len;i++) {
        crc=(crc<<8)^tbl_CRC16[((crc>>8)^buff[i])&0xFF];
    }
    return crc;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
testl %esi, %esi
jle 0x4dbef
movl %esi, %ecx
xorl %edx, %edx
leaq 0x247cc(%rip), %rsi     # 0x72390
xorl %r8d, %r8d
movl %r8d, %eax
shll $0x8, %eax
movzwl %r8w, %r8d
shrl $0x8, %r8d
movzbl (%rdi,%rdx), %r9d
xorl %r8d, %r9d
xorw (%rsi,%r9,2), %ax
incq %rdx
movl %eax, %r8d
cmpq %rdx, %rcx
jne 0x4dbc7
jmp 0x4dbf1
xorl %eax, %eax
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/DoubleString[P]RtConverter/src/Rtklib/rtkcmn.cpp
// Function: bamboo::decode_word(unsigned int, unsigned char*)
extern int decode_word(unsigned int word, unsigned char *data)
{
    const unsigned int hamming[]={
        0xBB1F3480,0x5D8F9A40,0xAEC7CD00,0x5763E680,0x6BB1F340,0x8B7A89C0
    };
    unsigned int parity=0,w;
    int i;
    
    trace(5,"decodeword: word=%08x\n",word);
    
    if (word&0x40000000) word^=0x3FFFFFC0;
    
    for (i=0;i<6;i++) {
        parity<<=1;
        for (w=(word&hamming[i])>>6;w;w>>=1) parity^=w&1;
    }
    if (parity!=(word&0x3F)) return 0;
    
    for (i=0;i<3;i++) data[i]=(unsigned char)(word>>(22-i*8));
    return 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl %edi, %edx
xorl $0x3fffffc0, %edx       # imm = 0x3FFFFFC0
btl $0x1e, %edi
cmovael %edi, %edx
xorl %eax, %eax
leaq 0x24981(%rip), %rdi     # 0x72590
xorl %ecx, %ecx
addl %ecx, %ecx
movl (%rdi,%rax,4), %r8d
andl %edx, %r8d
cmpl $0x40, %r8d
jb 0x4dc3d
shrl $0x6, %r8d
movl %r8d, %r9d
movl %r8d, %r10d
andl $0x1, %r10d
xorl %r10d, %ecx
shrl %r9d
cmpl $0x1, %r8d
movl %r9d, %r8d
ja 0x4dc27
incq %rax
cmpq $0x6, %rax
jne 0x4dc11
movl %edx, %edi
andl $0x3f, %edi
xorl %eax, %eax
cmpl %edi, %ecx
jne 0x4dc71
movl $0x16, %ecx
xorl %eax, %eax
movl %edx, %edi
shrl %cl, %edi
movb %dil, (%rsi,%rax)
incq %rax
addl $-0x8, %ecx
cmpq $0x3, %rax
jne 0x4dc58
movl $0x1, %eax
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/DoubleString[P]RtConverter/src/Rtklib/rtkcmn.cpp
// Function: bamboo::mat(int, int)
extern double *mat(int n, int m)
{
    double *p;
    
    if (n<=0||m<=0) return NULL;
    if (!(p=(double *)malloc(sizeof(double)*n*m))) {
        fatalerr("matrix memory allocation error: n=%d,m=%d\n",n,m);
    }
    return p;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
testl %edi, %edi
setle %al
testl %esi, %esi
setle %cl
orb %al, %cl
je 0x4dc8c
xorl %eax, %eax
jmp 0x4dca7
movl %esi, %ebx
movl %edi, %r14d
movl %edi, %eax
movl %esi, %edi
imulq %rax, %rdi
shlq $0x3, %rdi
callq 0x8840
testq %rax, %rax
je 0x4dcac
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x27389(%rip), %rdi     # 0x7503c
movl %r14d, %esi
movl %ebx, %edx
xorl %eax, %eax
callq 0x4dcbf
// File: /workspace/github_cpp_makefile_star2_O3/DoubleString[P]RtConverter/src/Rtklib/rtkcmn.cpp
// Function: bamboo::fatalerr(char const*, ...)
static void fatalerr(const char *format, ...)
{
    char msg[1024];
    va_list ap;
    va_start(ap,format); vsprintf(msg,format,ap); va_end(ap);
    if (fatalfunc) fatalfunc(msg);
    else fprintf(stderr,"%s",msg);
    exit(-9);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x4d0, %rsp            # imm = 0x4D0
movq %rdi, %r10
leaq -0xd0(%rbp), %rdi
movq %rsi, 0x8(%rdi)
movq %rdx, 0x10(%rdi)
movq %rcx, 0x18(%rdi)
movq %r8, 0x20(%rdi)
movq %r9, 0x28(%rdi)
testb %al, %al
je 0x4dd12
movaps %xmm0, -0xa0(%rbp)
movaps %xmm1, -0x90(%rbp)
movaps %xmm2, -0x80(%rbp)
movaps %xmm3, -0x70(%rbp)
movaps %xmm4, -0x60(%rbp)
movaps %xmm5, -0x50(%rbp)
movaps %xmm6, -0x40(%rbp)
movaps %xmm7, -0x30(%rbp)
leaq -0x20(%rbp), %rdx
movq %rdi, 0x10(%rdx)
leaq 0x10(%rbp), %rax
movq %rax, 0x8(%rdx)
movabsq $0x3000000008, %rax     # imm = 0x3000000008
movq %rax, (%rdx)
leaq -0x4d0(%rbp), %rdi
movq %r10, %rsi
callq 0x82e0
movq 0x4429b(%rip), %rax     # 0x91fe0
testq %rax, %rax
jne 0x4dd6a
movq 0x40287(%rip), %rax     # 0x8dfd8
movq (%rax), %rsi
leaq -0x4d0(%rbp), %rdi
callq 0x86d0
movl $0xfffffff7, %edi       # imm = 0xFFFFFFF7
callq 0x87b0
leaq -0x4d0(%rbp), %rdi
callq *%rax
jmp 0x4dd60
// File: /workspace/github_cpp_makefile_star2_O3/DoubleString[P]RtConverter/src/Rtklib/rtkcmn.cpp
// Function: bamboo::imat(int, int)
extern int *imat(int n, int m)
{
    int *p;
    
    if (n<=0||m<=0) return NULL;
    if (!(p=(int *)malloc(sizeof(int)*n*m))) {
        fatalerr("integer matrix memory allocation error: n=%d,m=%d\n",n,m);
    }
    return p;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
testl %edi, %edi
setle %al
testl %esi, %esi
setle %cl
orb %al, %cl
je 0x4dd8e
xorl %eax, %eax
jmp 0x4dda9
movl %esi, %ebx
movl %edi, %r14d
movl %edi, %eax
movl %esi, %edi
imulq %rax, %rdi
shlq $0x2, %rdi
callq 0x8840
testq %rax, %rax
je 0x4ddae
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x2727f(%rip), %rdi     # 0x75034
movl %r14d, %esi
movl %ebx, %edx
xorl %eax, %eax
callq 0x4dcbf
// File: /workspace/github_cpp_makefile_star2_O3/DoubleString[P]RtConverter/src/Rtklib/rtkcmn.cpp
// Function: bamboo::zeros(int, int)
extern double *zeros(int n, int m)
{
    double *p;
    
#if NOCALLOC
    if ((p=mat(n,m))) for (n=n*m-1;n>=0;n--) p[n]=0.0;
#else
    if (n<=0||m<=0) return NULL;
    if (!(p=(double *)calloc(sizeof(double),n*m))) {
        fatalerr("matrix memory allocation error: n=%d,m=%d\n",n,m);
    }
#endif
    return p;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
testl %edi, %edi
setle %al
testl %esi, %esi
setle %cl
orb %al, %cl
je 0x4ddda
xorl %eax, %eax
jmp 0x4ddf1
movl %esi, %ebx
movl %edi, %r14d
imull %edi, %esi
movl $0x8, %edi
callq 0x8440
testq %rax, %rax
je 0x4ddf6
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x2723f(%rip), %rdi     # 0x7503c
movl %r14d, %esi
movl %ebx, %edx
xorl %eax, %eax
callq 0x4dcbf
// File: /workspace/github_cpp_makefile_star2_O3/DoubleString[P]RtConverter/src/Rtklib/rtkcmn.cpp
// Function: bamboo::eye(int)
extern double *eye(int n)
{
    double *p;
    int i;
    
    if ((p=zeros(n,n))) for (i=0;i<n;i++) p[i+i*n]=1.0;
    return p;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movl %edi, %ebx
movl %edi, %esi
callq 0x4ddc1
testq %rax, %rax
sete %cl
testl %ebx, %ebx
setle %dl
orb %cl, %dl
jne 0x4de45
movl %ebx, %ecx
incl %ebx
xorl %edx, %edx
movabsq $0x3ff0000000000000, %rsi # imm = 0x3FF0000000000000
movslq %edx, %rdx
movq %rsi, (%rax,%rdx,8)
addl %ebx, %edx
decq %rcx
jne 0x4de37
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/DoubleString[P]RtConverter/src/Rtklib/rtkcmn.cpp
// Function: bamboo::normv3(double const*, double*)
extern int normv3(const double *a, double *b)
{
    double r;
    if ((r=norm(a,3))<=0.0) return 0;
    b[0]=a[0]/r;
    b[1]=a[1]/r;
    b[2]=a[2]/r;
    return 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
xorpd %xmm0, %xmm0
movl $0x4, %eax
movsd -0x10(%r14,%rax,8), %xmm1
mulsd %xmm1, %xmm1
addsd %xmm1, %xmm0
decq %rax
cmpq $0x1, %rax
ja 0x4df2a
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jb 0x4df52
sqrtsd %xmm0, %xmm0
jmp 0x4df5b
callq 0x84e0
xorpd %xmm1, %xmm1
xorl %eax, %eax
ucomisd %xmm0, %xmm1
jae 0x4df93
movsd (%r14), %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, (%rbx)
movsd 0x8(%r14), %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rbx)
movsd 0x10(%r14), %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, 0x10(%rbx)
movl $0x1, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/DoubleString[P]RtConverter/src/Rtklib/rtkcmn.cpp
// Function: bamboo::solve(char const*, double const*, double const*, int, int, double*)
extern int solve(const char *tr, const double *A, const double *Y, int n,
                 int m, double *X)
{
    double *B=mat(n,n);
    int info;
    
    matcpy(B,A,n,n);
    if (!(info=matinv(B,n))) matmul(tr[0]=='N'?"NN":"TN",n,m,n,1.0,B,Y,0.0,X);
    free(B);
    return info;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r9, -0x38(%rbp)
movl %r8d, -0x2c(%rbp)
movl %ecx, %r14d
movq %rdx, -0x40(%rbp)
movq %rsi, %rbx
movq %rdi, %r15
movl %ecx, %edi
movl %ecx, %esi
callq 0x4dc73
movq %rax, %r12
movslq %r14d, %r13
movq %r13, %rdx
imulq %r13, %rdx
shlq $0x3, %rdx
movq %rax, %rdi
movq %rbx, %rsi
callq 0x84f0
movq %r12, %rdi
movl %r13d, %esi
callq 0x4e1a3
movl %eax, %ebx
testl %eax, %eax
jne 0x4e691
cmpb $0x4e, (%r15)
leaq 0x26a09(%rip), %rax     # 0x75067
leaq 0x1e5fb(%rip), %rdi     # 0x6cc60
cmoveq %rax, %rdi
movq -0x38(%rbp), %rax
movq %rax, (%rsp)
movsd 0x1b2a7(%rip), %xmm0    # 0x69920
xorps %xmm1, %xmm1
movl %r14d, %esi
movl -0x2c(%rbp), %edx
movl %r14d, %ecx
movq %r12, %r8
movq -0x40(%rbp), %r9
callq 0x4dfb0
movq %r12, %rdi
callq 0x87a0
movl %ebx, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/DoubleString[P]RtConverter/src/Rtklib/rtkcmn.cpp
// Function: bamboo::lsq(double const*, double const*, int, int, double*, double*)
extern int lsq(const double *A, const double *y, int n, int m, double *x,
               double *Q)
{
    double *Ay;
    int info;
    
    if (m<n) return -1;
    Ay=mat(n,1);
    matmul("NN",n,1,m,1.0,A,y,0.0,Ay); /* Ay=A*y */
    matmul("NT",n,n,m,1.0,A,A,0.0,Q);  /* Q=A*A' */
    if (!(info=matinv(Q,n))) matmul("NN",n,1,n,1.0,Q,Ay,0.0,x); /* x=Q^-1*Ay */
    free(Ay);
    return info;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r9, -0x38(%rbp)
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
cmpl %edx, %ecx
jl 0x4e793
movl %ecx, %r12d
movl %edx, %r14d
movq %rsi, %rbx
movq %rdi, %r13
movq %r8, -0x30(%rbp)
movl %edx, %edi
movl $0x1, %esi
callq 0x4dc73
movq %rax, %r15
movq %rax, (%rsp)
leaq 0x26970(%rip), %rdi     # 0x75067
movsd 0x1b221(%rip), %xmm0    # 0x69920
xorps %xmm1, %xmm1
movl %r14d, %esi
movl $0x1, %edx
movl %r12d, %ecx
movq %r13, %r8
movq %rbx, %r9
callq 0x4dfb0
movq -0x38(%rbp), %rbx
movq %rbx, (%rsp)
leaq 0x2a34c(%rip), %rdi     # 0x78a73
xorps %xmm1, %xmm1
movl %r14d, %esi
movl %r14d, %edx
movl %r12d, %ecx
movq %r15, %r12
movsd 0x1b1e2(%rip), %xmm0    # 0x69920
movq %r13, %r8
movq %r13, %r9
callq 0x4dfb0
movq %rbx, %rdi
movl %r14d, %esi
callq 0x4e1a3
movl %eax, %r15d
testl %eax, %eax
jne 0x4e78b
movq -0x30(%rbp), %rax
movq %rax, (%rsp)
leaq 0x268fd(%rip), %rdi     # 0x75067
movsd 0x1b1ae(%rip), %xmm0    # 0x69920
xorps %xmm1, %xmm1
movl %r14d, %esi
movl $0x1, %edx
movl %r14d, %ecx
movq %rbx, %r8
movq %r12, %r9
callq 0x4dfb0
movq %r12, %rdi
callq 0x87a0
movl %r15d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/DoubleString[P]RtConverter/src/Rtklib/rtkcmn.cpp
// Function: bamboo::smoother(double const*, double const*, double const*, double const*, int, double*, double*)
extern int smoother(const double *xf, const double *Qf, const double *xb,
                    const double *Qb, int n, double *xs, double *Qs)
{
    double *invQf=mat(n,n),*invQb=mat(n,n),*xx=mat(n,1);
    int i,info=-1;
    
    matcpy(invQf,Qf,n,n);
    matcpy(invQb,Qb,n,n);
    if (!matinv(invQf,n)&&!matinv(invQb,n)) {
        for (i=0;i<n*n;i++) Qs[i]=invQf[i]+invQb[i];
        if (!(info=matinv(Qs,n))) {
            matmul("NN",n,1,n,1.0,invQf,xf,0.0,xx);
            matmul("NN",n,1,n,1.0,invQb,xb,1.0,xx);
            matmul("NN",n,1,n,1.0,Qs,xx,0.0,xs);
        }
    }
    free(invQf); free(invQb); free(xx);
    return info;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %r9, -0x48(%rbp)
movl %r8d, %r12d
movq %rcx, -0x58(%rbp)
movq %rdx, -0x40(%rbp)
movq %rsi, -0x50(%rbp)
movq %rdi, -0x38(%rbp)
movl %r8d, %edi
movl %r8d, %esi
callq 0x4dc73
movq %rax, %rbx
movl %r12d, %edi
movl %r12d, %esi
callq 0x4dc73
movq %rax, %r13
movl %r12d, %edi
movl $0x1, %esi
callq 0x4dc73
movq %rax, -0x30(%rbp)
movslq %r12d, %r14
movq %r14, %r15
imulq %r14, %r15
shlq $0x3, %r15
movq %rbx, %rdi
movq -0x50(%rbp), %rsi
movq %r15, %rdx
callq 0x84f0
movq %r13, %rdi
movq -0x58(%rbp), %rsi
movq %r15, %rdx
callq 0x84f0
movq %rbx, %rdi
movl %r14d, %esi
callq 0x4e1a3
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
testl %eax, %eax
je 0x4ec56
movq %r13, %r14
jmp 0x4ed41
movq %r13, %rdi
movl %r12d, %esi
callq 0x4e1a3
testl %eax, %eax
movq %r13, %r14
jne 0x4ed41
movq 0x10(%rbp), %r13
testl %r12d, %r12d
je 0x4ec9d
movl %r12d, %eax
imull %eax, %eax
cmpl $0x1, %eax
adcl $0x0, %eax
xorl %ecx, %ecx
movsd (%rbx,%rcx,8), %xmm0
addsd (%r14,%rcx,8), %xmm0
movsd %xmm0, (%r13,%rcx,8)
incq %rcx
cmpq %rcx, %rax
jne 0x4ec83
movq %r13, %rdi
movl %r12d, %esi
callq 0x4e1a3
testl %eax, %eax
jne 0x4ed41
movq -0x30(%rbp), %r15
movq %r15, (%rsp)
leaq 0x263a8(%rip), %rdi     # 0x75067
movsd 0x1ac59(%rip), %xmm0    # 0x69920
xorps %xmm1, %xmm1
movl %r12d, %esi
movl $0x1, %edx
movl %r12d, %ecx
movq %rbx, %r8
movq -0x38(%rbp), %r9
callq 0x4dfb0
movq %r15, (%rsp)
leaq 0x2637b(%rip), %rdi     # 0x75067
movl %r12d, %esi
movl $0x1, %edx
movl %r12d, %ecx
movsd 0x1ac21(%rip), %xmm0    # 0x69920
movq %r14, %r8
movq -0x40(%rbp), %r9
movaps %xmm0, %xmm1
callq 0x4dfb0
movq -0x48(%rbp), %rax
movq %rax, (%rsp)
xorps %xmm1, %xmm1
leaq 0x26347(%rip), %rdi     # 0x75067
movl %r12d, %esi
movl $0x1, %edx
movl %r12d, %ecx
movsd 0x1abed(%rip), %xmm0    # 0x69920
movq %r13, %r8
movq %r15, %r9
callq 0x4dfb0
xorl %r15d, %r15d
movq %rbx, %rdi
callq 0x87a0
movq %r14, %rdi
callq 0x87a0
movq -0x30(%rbp), %rdi
callq 0x87a0
movl %r15d, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/DoubleString[P]RtConverter/src/Rtklib/rtkcmn.cpp
// Function: bamboo::matfprint(double const*, int, int, int, int, _IO_FILE*)
extern void matfprint(const double A[], int n, int m, int p, int q, FILE *fp)
{
    int i,j;
    
    for (i=0;i<n;i++) {
        for (j=0;j<m;j++) fprintf(fp," %*.*f",p,q,A[i+j*n]);
        fprintf(fp,"\n");
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %r8d, -0x34(%rbp)
movl %ecx, -0x30(%rbp)
movl %edx, -0x2c(%rbp)
movq %rdi, -0x40(%rbp)
testl %esi, %esi
jle 0x4ee1e
movl %esi, %eax
movl -0x2c(%rbp), %ecx
movq %rcx, -0x48(%rbp)
movq %rax, -0x50(%rbp)
leaq (,%rax,8), %rax
movq %rax, -0x68(%rbp)
xorl %eax, %eax
movq %r9, -0x60(%rbp)
movl -0x30(%rbp), %r13d
movq %rax, -0x58(%rbp)
cmpl $0x0, -0x2c(%rbp)
movl -0x34(%rbp), %ebx
leaq 0x262a2(%rip), %r15     # 0x7506a
jle 0x4edf9
movq -0x48(%rbp), %r12
movq -0x40(%rbp), %r14
movsd (%r14), %xmm0
movq %r9, %rdi
movq %r15, %rsi
movl %r13d, %edx
movl %ebx, %ecx
movb $0x1, %al
callq 0x88c0
movq -0x68(%rbp), %rcx
movq -0x60(%rbp), %r9
addq %rcx, %r14
decq %r12
jne 0x4edd2
movl $0xa, %edi
movq %r9, %rbx
movq %r9, %rsi
callq 0x87e0
movq -0x58(%rbp), %rax
incq %rax
addq $0x8, -0x40(%rbp)
cmpq -0x50(%rbp), %rax
movq %rbx, %r9
jne 0x4edb6
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/DoubleString[P]RtConverter/src/Rtklib/rtkcmn.cpp
// Function: bamboo::str2num(char const*, int, int)
extern double str2num(const char *s, int i, int n)
{
    double value;
    char str[256],*p=str;
    
    if (i<0||(int)strlen(s)<i||(int)sizeof(str)-1<n) return 0.0;
    for (s+=i;*s&&--n>=0;s++) *p++=*s=='d'||*s=='D'?'E':*s;
    *p='\0';
    return sscanf(str,"%lf",&value)==1?value:0.0;
}

// Assembly:
xorps %xmm0, %xmm0
testl %esi, %esi
js 0x4eef8
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movl %edx, %ebx
movl %esi, %r15d
movq %rdi, %r14
callq 0x8290
cmpl $0xff, %ebx
jg 0x4eee1
cmpl %r15d, %eax
xorps %xmm0, %xmm0
jl 0x4eeeb
movl %r15d, %eax
movb (%r14,%rax), %dl
testb %dl, %dl
je 0x4eeb9
leaq (%rax,%r14), %rcx
incq %rcx
leaq -0x120(%rbp), %rax
testl %ebx, %ebx
jle 0x4eec0
movzbl %dl, %edi
movb $0x45, %sil
orl $0x20, %edi
cmpl $0x64, %edi
je 0x4eea6
movl %edx, %esi
movb %sil, (%rax)
incq %rax
movb (%rcx), %dl
incq %rcx
decl %ebx
testb %dl, %dl
jne 0x4ee92
jmp 0x4eec0
leaq -0x120(%rbp), %rax
movb $0x0, (%rax)
leaq 0x265c9(%rip), %rsi     # 0x75493
leaq -0x120(%rbp), %rdi
leaq -0x20(%rbp), %rdx
xorl %eax, %eax
callq 0x8610
cmpl $0x1, %eax
je 0x4eee6
xorps %xmm0, %xmm0
jmp 0x4eeeb
movsd -0x20(%rbp), %xmm0
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/DoubleString[P]RtConverter/src/Rtklib/rtkcmn.cpp
// Function: bamboo::str2time(char const*, int, int, bamboo::gtime_t*)
extern int str2time(const char *s, int i, int n, gtime_t *t)
{
    double ep[6];
    char str[256],*p=str;
    
    if (i<0||(int)strlen(s)<i||(int)sizeof(str)-1<i) return -1;
    for (s+=i;*s&&--n>=0;) *p++=*s++;
    *p='\0';
    if (sscanf(str,"%lf %lf %lf %lf %lf %lf",ep,ep+1,ep+2,ep+3,ep+4,ep+5)<6)
        return -1;
    if (ep[0]<100.0) ep[0]+=ep[0]<80.0?2000.0:1900.0;
    *t=epoch2time(ep);
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x138, %rsp            # imm = 0x138
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
testl %esi, %esi
js 0x4f012
movq %rcx, %rbx
movl %edx, %r15d
movl %esi, %r13d
movq %rdi, %r12
callq 0x8290
cmpl $0xff, %r13d
ja 0x4f012
cmpl %r13d, %eax
jl 0x4f012
movl %r13d, %eax
movb (%r12,%rax), %cl
testb %cl, %cl
sete %dl
testl %r15d, %r15d
setle %sil
orb %dl, %sil
jne 0x4ef85
leaq (%rax,%r12), %rdx
incq %rdx
leaq -0x160(%rbp), %rax
movb %cl, (%rax)
incq %rax
movb (%rdx), %cl
testb %cl, %cl
je 0x4ef8c
leal -0x1(%r15), %esi
incq %rdx
cmpl $0x1, %r15d
movl %esi, %r15d
ja 0x4ef68
jmp 0x4ef8c
leaq -0x160(%rbp), %rax
movb $0x0, (%rax)
leaq -0x58(%rbp), %rcx
leaq -0x50(%rbp), %r8
leaq -0x48(%rbp), %r9
leaq -0x40(%rbp), %r10
leaq -0x38(%rbp), %r11
leaq 0x26158(%rip), %rsi     # 0x75102
leaq -0x160(%rbp), %rdi
leaq -0x60(%rbp), %rdx
xorl %eax, %eax
pushq %r11
pushq %r10
callq 0x8610
addq $0x10, %rsp
cmpl $0x6, %eax
jl 0x4f012
movsd -0x60(%rbp), %xmm0
movsd 0x25baa(%rip), %xmm1    # 0x74b80
ucomisd %xmm0, %xmm1
jbe 0x4effe
movsd 0x25ba4(%rip), %xmm1    # 0x74b88
xorl %eax, %eax
ucomisd %xmm0, %xmm1
seta %al
leaq 0x25f0c(%rip), %rcx     # 0x74f00
addsd (%rcx,%rax,8), %xmm0
movsd %xmm0, -0x60(%rbp)
leaq -0x60(%rbp), %rdi
callq 0x4f027
movq %rax, (%rbx)
movsd %xmm0, 0x8(%rbx)
xorl %r14d, %r14d
movl %r14d, %eax
addq $0x138, %rsp            # imm = 0x138
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/DoubleString[P]RtConverter/src/Rtklib/rtkcmn.cpp
// Function: bamboo::epoch2time(double const*)
extern gtime_t epoch2time(const double *ep)
{
    const int doy[]={1,32,60,91,121,152,182,213,244,274,305,335};
    gtime_t time={0};
    int days,sec,year=(int)ep[0],mon=(int)ep[1],day=(int)ep[2];
    
    if (year<1970||2099<year||mon<1||12<mon) return time;
    
    /* leap year if year%4==0 in 1901-2099 */
    days=(year-1970)*365+(year-1969)/4+doy[mon-1]+day-2+(year%4==0&&mon>=3?1:0);
    sec=(int)floor(ep[5]);
    time.time=(time_t)days*86400+(int)ep[3]*3600+(int)ep[4]*60+sec;
    time.sec=ep[5]-sec;
    return time;
}

// Assembly:
cvttsd2si (%rdi), %ecx
cvttsd2si 0x8(%rdi), %eax
leal -0x834(%rcx), %edx
cmpl $0xffffff7e, %edx       # imm = 0xFFFFFF7E
setb %dl
leal -0xd(%rax), %esi
cmpl $-0xc, %esi
setb %sil
orb %dl, %sil
je 0x4f054
xorps %xmm0, %xmm0
xorl %eax, %eax
retq
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
cvttsd2si 0x10(%rdi), %edx
imull $0x16d, %ecx, %esi      # imm = 0x16D
leal -0x7b1(%rcx), %edi
shrl $0x2, %edi
leal -0x1(%rax), %r8d
leaq 0x2352f(%rip), %r9      # 0x725b0
testb $0x3, %cl
sete %cl
cmpl $0x3, %eax
setae %al
andb %cl, %al
movzbl %al, %eax
addl %esi, %edi
addl %eax, %edi
addl (%r9,%r8,4), %edi
leal (%rdx,%rdi), %r14d
addl $0xfff50734, %r14d      # imm = 0xFFF50734
movsd 0x28(%rbx), %xmm0
movsd %xmm0, -0x18(%rbp)
callq 0x8ac0
cvttsd2si %xmm0, %eax
movslq %r14d, %rcx
imulq $0x15180, %rcx, %rcx    # imm = 0x15180
cvttsd2si 0x18(%rbx), %edx
imull $0xe10, %edx, %edx      # imm = 0xE10
cvttsd2si 0x20(%rbx), %esi
movslq %edx, %rdx
imull $0x3c, %esi, %esi
movslq %esi, %rsi
cltq
addq %rdx, %rax
addq %rsi, %rax
cvttpd2dq %xmm0, %xmm0
addq %rcx, %rax
cvtdq2pd %xmm0, %xmm0
movsd -0x18(%rbp), %xmm1
subsd %xmm0, %xmm1
movapd %xmm1, %xmm0
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/DoubleString[P]RtConverter/src/Rtklib/rtkcmn.cpp
// Function: bamboo::time2epoch(bamboo::gtime_t, double*)
extern void time2epoch(gtime_t t, double *ep)
{
    const int mday[]={ /* # of days in a month */
        31,28,31,30,31,30,31,31,30,31,30,31,31,28,31,30,31,30,31,31,30,31,30,31,
        31,29,31,30,31,30,31,31,30,31,30,31,31,28,31,30,31,30,31,31,30,31,30,31
    };
    int days,sec,mon,day;
    
    /* leap year if year%4==0 in 1901-2099 */
    days=(int)(t.time/86400);
    sec=(int)(t.time-(time_t)days*86400);
    for (day=days%1461,mon=0;mon<48;mon++) {
        if (day>=mday[mon]) day-=mday[mon]; else break;
    }
    ep[0]=1970+days/1461*4+mon/12; ep[1]=mon%12+1; ep[2]=day+1;
    ep[3]=sec/3600; ep[4]=sec%3600/60; ep[5]=sec%60+t.sec;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movabsq $0x1845c8a0ce512957, %rcx # imm = 0x1845C8A0CE512957
movq %rdi, %rax
imulq %rcx
movq %rdx, %rax
shrq $0x3f, %rax
sarq $0xd, %rdx
addq %rax, %rdx
movslq %edx, %r9
imulq $0x166db073, %r9, %rax  # imm = 0x166DB073
movq %rax, %rcx
shrq $0x3f, %rcx
sarq $0x27, %rax
addl %ecx, %eax
imull $0x5b5, %eax, %ecx      # imm = 0x5B5
subl %ecx, %r9d
leaq 0x23493(%rip), %r10     # 0x725e0
xorl %ecx, %ecx
movl %r9d, %r8d
subl (%r10), %r8d
jl 0x4f16e
incq %rcx
addq $0x4, %r10
movl %r8d, %r9d
cmpq $0x30, %rcx
jne 0x4f152
movl $0x30, %ecx
jmp 0x4f171
movl %r9d, %r8d
imull $0xfffeae80, %edx, %edx # imm = 0xFFFEAE80
addl %edx, %edi
movl %ecx, %edx
movl $0xaaaaaaab, %r9d       # imm = 0xAAAAAAAB
imulq %rdx, %r9
shrq $0x23, %r9
leal (%r9,%rax,4), %eax
addl $0x7b2, %eax            # imm = 0x7B2
cvtsi2sd %eax, %xmm1
movsd %xmm1, (%rsi)
shll $0x2, %r9d
leal (%r9,%r9,2), %eax
negl %eax
addl %ecx, %eax
incl %eax
xorps %xmm1, %xmm1
cvtsi2sd %eax, %xmm1
movsd %xmm1, 0x8(%rsi)
incl %r8d
xorps %xmm1, %xmm1
cvtsi2sd %r8d, %xmm1
movslq %edi, %rax
imulq $-0x6e5d4c3b, %rax, %rcx # imm = 0x91A2B3C5
shrq $0x20, %rcx
addl %eax, %ecx
movl %ecx, %edx
shrl $0x1f, %edx
sarl $0xb, %ecx
addl %edx, %ecx
cvtsi2sd %ecx, %xmm2
movsd %xmm1, 0x10(%rsi)
movsd %xmm2, 0x18(%rsi)
imull $0xe10, %ecx, %ecx      # imm = 0xE10
movl %eax, %edx
subl %ecx, %edx
movswl %dx, %ecx
imull $0xffff8889, %ecx, %ecx # imm = 0xFFFF8889
shrl $0x10, %ecx
addl %edx, %ecx
movzwl %cx, %ecx
movswl %cx, %edx
shrl $0xf, %ecx
sarl $0x5, %edx
addl %ecx, %edx
movswl %dx, %ecx
xorps %xmm1, %xmm1
cvtsi2sd %ecx, %xmm1
movsd %xmm1, 0x20(%rsi)
imulq $-0x77777777, %rax, %rcx # imm = 0x88888889
shrq $0x20, %rcx
addl %eax, %ecx
movl %ecx, %edx
shrl $0x1f, %edx
sarl $0x5, %ecx
addl %edx, %ecx
imull $0x3c, %ecx, %ecx
subl %ecx, %eax
xorps %xmm1, %xmm1
cvtsi2sd %eax, %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, 0x28(%rsi)
popq %rbp
retq