// File: /workspace/github_c_makefile_star2_O2/mbitsnbites[P]SoftFP/softfloat.c
// Function: addFloat64Sigs
static float64 addFloat64Sigs(float64 a, float64 b, flag zSign,
                              float_status *status)
{
    int_fast16_t aExp, bExp, zExp;
    uint64_t aSig, bSig, zSig;
    int_fast16_t expDiff;

    aSig = extractFloat64Frac( a );
    aExp = extractFloat64Exp( a );
    bSig = extractFloat64Frac( b );
    bExp = extractFloat64Exp( b );
    expDiff = aExp - bExp;
    aSig <<= 9;
    bSig <<= 9;
    if ( 0 < expDiff ) {
        if ( aExp == 0x7FF ) {
            if (aSig) {
                return propagateFloat64NaN(a, b, status);
            }
            return a;
        }
        if ( bExp == 0 ) {
            --expDiff;
        }
        else {
            bSig |= LIT64( 0x2000000000000000 );
        }
        shift64RightJamming( bSig, expDiff, &bSig );
        zExp = aExp;
    }
    else if ( expDiff < 0 ) {
        if ( bExp == 0x7FF ) {
            if (bSig) {
                return propagateFloat64NaN(a, b, status);
            }
            return packFloat64( zSign, 0x7FF, 0 );
        }
        if ( aExp == 0 ) {
            ++expDiff;
        }
        else {
            aSig |= LIT64( 0x2000000000000000 );
        }
        shift64RightJamming( aSig, - expDiff, &aSig );
        zExp = bExp;
    }
    else {
        if ( aExp == 0x7FF ) {
            if (aSig | bSig) {
                return propagateFloat64NaN(a, b, status);
            }
            return a;
        }
        if ( aExp == 0 ) {
            if (status->flush_to_zero) {
                if (aSig | bSig) {
                    float_raise(float_flag_output_denormal, status);
                }
                return packFloat64(zSign, 0, 0);
            }
            return packFloat64( zSign, 0, ( aSig + bSig )>>9 );
        }
        zSig = LIT64( 0x4000000000000000 ) + aSig + bSig;
        zExp = aExp;
        goto roundAndPack;
    }
    aSig |= LIT64( 0x2000000000000000 );
    zSig = ( aSig + bSig )<<1;
    --zExp;
    if ( (int64_t) zSig < 0 ) {
        zSig = aSig + bSig;
        ++zExp;
    }
 roundAndPack:
    return roundAndPackFloat64(zSign, zExp, zSig, status);

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %rbx
movl %edx, %ebp
movabsq $0xfffffffffffff, %rcx  # imm = 0xFFFFFFFFFFFFF
movq %rdi, %rdx
andq %rcx, %rdx
movq %rdi, %r12
shrq $0x34, %r12
movl $0x7ff, %eax            # imm = 0x7FF
andq %rax, %r12
andq %rsi, %rcx
movq %rsi, %r13
shrq $0x34, %r13
andq %rax, %r13
movq %rdx, %r15
shlq $0x9, %r15
movq %rcx, %r14
shlq $0x9, %r14
movq %r12, %rax
movq %r15, 0x10(%rsp)
movq %r14, 0x8(%rsp)
subq %r13, %rax
jle 0xcd59
cmpl $0x7ff, %r12d           # imm = 0x7FF
jne 0xcd7b
testq %rdx, %rdx
je 0xce4e
movq %rbx, %rdx
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xcb8c
js 0xcd8c
testq %r12, %r12
je 0xce0c
cmpl $0x7ff, %r12d           # imm = 0x7FF
jne 0xce25
orq %r15, %r14
jne 0xcd43
jmp 0xce4e
testq %r13, %r13
je 0xcdb8
btsq $0x3d, %r14
movq %r14, 0x8(%rsp)
jmp 0xcdbb
cmpl $0x7ff, %r13d           # imm = 0x7FF
jne 0xce2f
testq %rcx, %rcx
jne 0xcd43
movzbl %bpl, %eax
shlq $0x3f, %rax
movabsq $0x7ff0000000000000, %rdi # imm = 0x7FF0000000000000
orq %rax, %rdi
jmp 0xce4e
decq %rax
leaq 0x8(%rsp), %r13
movq %r14, %rdi
movq %rax, %rsi
movq %r13, %rdx
callq 0x93e7
movq (%r13), %r14
btsq $0x3d, %r15
addq %r14, %r15
xorl %eax, %eax
movq %r15, %r14
addq %r15, %r14
setns %al
cmovsq %r15, %r14
subq %rax, %r12
movzbl %bpl, %edi
movq %r12, %rsi
movq %r14, %rdx
movq %rbx, %rcx
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x973e
cmpb $0x0, 0x4(%rbx)
je 0xce40
orq %r15, %r14
je 0xce1b
orb $-0x80, 0x2(%rbx)
movzbl %bpl, %edi
shlq $0x3f, %rdi
jmp 0xce4e
addq %r15, %r14
btsq $0x3e, %r14
jmp 0xcdec
testq %r12, %r12
je 0xce60
btsq $0x3d, %r15
movq %r15, 0x10(%rsp)
jmp 0xce63
addq %rdx, %rcx
movzbl %bpl, %edi
shlq $0x3f, %rdi
orq %rcx, %rdi
movq %rdi, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
incq %rax
negq %rax
leaq 0x10(%rsp), %r12
movq %r15, %rdi
movq %rax, %rsi
movq %r12, %rdx
callq 0x93e7
movq (%r12), %r15
movq %r13, %r12
jmp 0xcdd2