// File: /workspace/github_c_makefile_star2_O2/mbitsnbites[P]SoftFP/softfloat.c
// Function: subFloat64Sigs
static float64 subFloat64Sigs(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 <<= 10;
    bSig <<= 10;
    if ( 0 < expDiff ) goto aExpBigger;
    if ( expDiff < 0 ) goto bExpBigger;
    if ( aExp == 0x7FF ) {
        if (aSig | bSig) {
            return propagateFloat64NaN(a, b, status);
        }
        float_raise(float_flag_invalid, status);
        return float64_default_nan;
    }
    if ( aExp == 0 ) {
        aExp = 1;
        bExp = 1;
    }
    if ( bSig < aSig ) goto aBigger;
    if ( aSig < bSig ) goto bBigger;
    return packFloat64(status->float_rounding_mode == float_round_down, 0, 0);
 bExpBigger:
    if ( bExp == 0x7FF ) {
        if (bSig) {
            return propagateFloat64NaN(a, b, status);
        }
        return packFloat64( zSign ^ 1, 0x7FF, 0 );
    }
    if ( aExp == 0 ) {
        ++expDiff;
    }
    else {
        aSig |= LIT64( 0x4000000000000000 );
    }
    shift64RightJamming( aSig, - expDiff, &aSig );
    bSig |= LIT64( 0x4000000000000000 );
 bBigger:
    zSig = bSig - aSig;
    zExp = bExp;
    zSign ^= 1;
    goto normalizeRoundAndPack;
 aExpBigger:
    if ( aExp == 0x7FF ) {
        if (aSig) {
            return propagateFloat64NaN(a, b, status);
        }
        return a;
    }
    if ( bExp == 0 ) {
        --expDiff;
    }
    else {
        bSig |= LIT64( 0x4000000000000000 );
    }
    shift64RightJamming( bSig, expDiff, &bSig );
    aSig |= LIT64( 0x4000000000000000 );
 aBigger:
    zSig = aSig - bSig;
    zExp = aExp;
 normalizeRoundAndPack:
    --zExp;
    return normalizeRoundAndPackFloat64(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, %r13
shrq $0x34, %r13
movl $0x7ff, %eax            # imm = 0x7FF
andq %rax, %r13
andq %rsi, %rcx
movq %rsi, %r12
shrq $0x34, %r12
andq %rax, %r12
movq %rdx, %r15
shlq $0xa, %r15
movq %rcx, %r14
shlq $0xa, %r14
movq %r13, %rax
movq %r15, 0x10(%rsp)
movq %r14, 0x8(%rsp)
subq %r12, %rax
jle 0xcf0c
cmpl $0x7ff, %r13d           # imm = 0x7FF
jne 0xcf3c
testq %rdx, %rdx
je 0xcfcf
movq %rbx, %rdx
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xcb8c
js 0xcf5c
testq %r13, %r13
je 0xcfb3
cmpl $0x7ff, %r13d           # imm = 0x7FF
jne 0xcfba
orq %r15, %r14
jne 0xcef6
orb $0x1, 0x2(%rbx)
movabsq $0x7ff8000000000000, %rdi # imm = 0x7FF8000000000000
jmp 0xcfcf
movl %ebp, 0x4(%rsp)
movq %rbx, %rbp
movabsq $0x4000000000000000, %rbx # imm = 0x4000000000000000
testq %r12, %r12
je 0xcf84
orq %rbx, %r14
movq %r14, 0x8(%rsp)
jmp 0xcf87
cmpl $0x7ff, %r12d           # imm = 0x7FF
jne 0xcfe1
testq %rcx, %rcx
jne 0xcef6
notb %bpl
movzbl %bpl, %eax
shlq $0x3f, %rax
movabsq $0x7ff0000000000000, %rdi # imm = 0x7FF0000000000000
orq %rax, %rdi
jmp 0xcfcf
decq %rax
leaq 0x8(%rsp), %r12
movq %r14, %rdi
movq %rax, %rsi
movq %r12, %rdx
callq 0x93e7
orq %rbx, %r15
movq (%r12), %r14
movq %rbp, %rbx
movl 0x4(%rsp), %ebp
subq %r14, %r15
movq %r13, %r12
movq %r15, %r14
jmp 0xd023
pushq $0x1
popq %r13
movq %r13, %r12
cmpq %r15, %r14
jb 0xcfa8
ja 0xd01c
xorl %edi, %edi
cmpb $0x1, 0x1(%rbx)
sete %dil
shlq $0x3f, %rdi
movq %rdi, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movabsq $0x4000000000000000, %rcx # imm = 0x4000000000000000
testq %r13, %r13
je 0xcffa
orq %rcx, %r15
movq %r15, 0x10(%rsp)
jmp 0xcffd
incq %rax
movq %rcx, %r13
negq %rax
leaq 0x10(%rsp), %rdx
movq %r15, %rdi
movq %rax, %rsi
movq %rdx, %r15
callq 0x93e7
orq %r13, %r14
movq (%r15), %r15
subq %r15, %r14
xorb $0x1, %bpl
decq %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 0x9591