// File: /workspace/github_c_makefile_star2_O2/mbitsnbites[P]SoftFP/softfloat.c
// Function: addFloatx80Sigs
static floatx80 addFloatx80Sigs(floatx80 a, floatx80 b, flag zSign,
                                float_status *status)
{
    int32 aExp, bExp, zExp;
    uint64_t aSig, bSig, zSig0, zSig1;
    int32 expDiff;

    aSig = extractFloatx80Frac( a );
    aExp = extractFloatx80Exp( a );
    bSig = extractFloatx80Frac( b );
    bExp = extractFloatx80Exp( b );
    expDiff = aExp - bExp;
    if ( 0 < expDiff ) {
        if ( aExp == 0x7FFF ) {
            if ((uint64_t)(aSig << 1)) {
                return propagateFloatx80NaN(a, b, status);
            }
            return a;
        }
        if ( bExp == 0 ) --expDiff;
        shift64ExtraRightJamming( bSig, 0, expDiff, &bSig, &zSig1 );
        zExp = aExp;
    }
    else if ( expDiff < 0 ) {
        if ( bExp == 0x7FFF ) {
            if ((uint64_t)(bSig << 1)) {
                return propagateFloatx80NaN(a, b, status);
            }
            return packFloatx80( zSign, 0x7FFF, LIT64( 0x8000000000000000 ) );
        }
        if ( aExp == 0 ) ++expDiff;
        shift64ExtraRightJamming( aSig, 0, - expDiff, &aSig, &zSig1 );
        zExp = bExp;
    }
    else {
        if ( aExp == 0x7FFF ) {
            if ( (uint64_t) ( ( aSig | bSig )<<1 ) ) {
                return propagateFloatx80NaN(a, b, status);
            }
            return a;
        }
        zSig1 = 0;
        zSig0 = aSig + bSig;
        if ( aExp == 0 ) {
            normalizeFloatx80Subnormal( zSig0, &zExp, &zSig0 );
            goto roundAndPack;
        }
        zExp = aExp;
        goto shiftRight1;
    }
    zSig0 = aSig + bSig;
    if ( (int64_t) zSig0 < 0 ) goto roundAndPack;
 shiftRight1:
    shift64ExtraRightJamming( zSig0, zSig1, 1, &zSig0, &zSig1 );
    zSig0 |= LIT64( 0x8000000000000000 );
    ++zExp;
 roundAndPack:
    return roundAndPackFloatx80(status->floatx80_rounding_precision,
                                zSign, zExp, zSig0, zSig1, status);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r9, %rbx
movl %r8d, %ebp
movq %rdx, %r14
movl %esi, %edx
movq %rdi, %r15
movq %rdi, 0x10(%rsp)
movl $0x7fff, %eax           # imm = 0x7FFF
movl %esi, %r12d
andl %eax, %r12d
movq %r14, 0x8(%rsp)
movl %ecx, %r13d
andl %eax, %r13d
movl %r12d, %eax
subl %r13d, %eax
jle 0xedbd
cmpl $0x7fff, %r12d          # imm = 0x7FFF
jne 0xedf3
leaq (,%r15,2), %rax
jmp 0xedd5
js 0xee29
cmpl $0x7fff, %r12d          # imm = 0x7FFF
jne 0xee5b
movq %r14, %rax
orq %r15, %rax
shlq %rax
testq %rax, %rax
je 0xee9e
movq %r15, %rdi
movl %edx, %esi
movq %r14, %rdx
movq %rbx, %r8
callq 0xec53
jmp 0xee9b
cmpl $0x1, %r13d
sbbl $0x0, %eax
leaq 0x8(%rsp), %r13
movq %rsp, %r8
movq %r14, %rdi
xorl %esi, %esi
movq %rax, %rdx
movq %r13, %rcx
callq 0x9cb8
movq (%r13), %r14
addq %r15, %r14
movq (%rsp), %r8
js 0xee85
xorl %eax, %eax
testq %r8, %r8
setne %al
jmp 0xee65
cmpl $0x7fff, %r13d          # imm = 0x7FFF
jne 0xeeb0
leaq (,%r14,2), %rax
testq %rax, %rax
jne 0xedde
movabsq $0x7fffffffffffffff, %r15 # imm = 0x7FFFFFFFFFFFFFFF
movzbl %bpl, %edx
shll $0xf, %edx
orl $0x7fff, %edx           # imm = 0x7FFF
incq %r15
jmp 0xee9e
addq %r15, %r14
testl %r12d, %r12d
je 0xeedb
xorl %eax, %eax
movq %r14, %r8
shlq $0x3f, %r8
orq %rax, %r8
shrq %r14
movabsq $0x7fffffffffffffff, %rax # imm = 0x7FFFFFFFFFFFFFFF
addq %rax, %r14
incq %r14
incl %r12d
movsbl 0x3(%rbx), %edi
movzbl %bpl, %esi
movl %r12d, %edx
movq %r14, %rcx
movq %rbx, %r9
callq 0xf265
movq %rax, %r15
movq %r15, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %edx, %edx
cmpl $0x1, %r12d
sbbl %edx, %edx
subl %eax, %edx
leaq 0x10(%rsp), %r12
movq %rsp, %r8
movq %r15, %rdi
xorl %esi, %esi
movq %r12, %rcx
callq 0x9cb8
movq (%r12), %r15
movl %r13d, %r12d
jmp 0xee16
testq %r14, %r14
je 0xeeea
bsrq %r14, %rcx
xorq $0x3f, %rcx
jmp 0xeeed
pushq $0x40
popq %rcx
shlq %cl, %r14
pushq $0x1
popq %r12
subl %ecx, %r12d
xorl %r8d, %r8d
jmp 0xee85