// File: /workspace/github_c_makefile_star2_O1/mbitsnbites[P]SoftFP/softfloat.c
// Function: subFloat128Sigs
static float128 subFloat128Sigs(float128 a, float128 b, flag zSign,
                                float_status *status)
{
    int32 aExp, bExp, zExp;
    uint64_t aSig0, aSig1, bSig0, bSig1, zSig0, zSig1;
    int32 expDiff;
    float128 z;

    aSig1 = extractFloat128Frac1( a );
    aSig0 = extractFloat128Frac0( a );
    aExp = extractFloat128Exp( a );
    bSig1 = extractFloat128Frac1( b );
    bSig0 = extractFloat128Frac0( b );
    bExp = extractFloat128Exp( b );
    expDiff = aExp - bExp;
    shortShift128Left( aSig0, aSig1, 14, &aSig0, &aSig1 );
    shortShift128Left( bSig0, bSig1, 14, &bSig0, &bSig1 );
    if ( 0 < expDiff ) goto aExpBigger;
    if ( expDiff < 0 ) goto bExpBigger;
    if ( aExp == 0x7FFF ) {
        if ( aSig0 | aSig1 | bSig0 | bSig1 ) {
            return propagateFloat128NaN(a, b, status);
        }
        float_raise(float_flag_invalid, status);
        z.low = float128_default_nan_low;
        z.high = float128_default_nan_high;
        return z;
    }
    if ( aExp == 0 ) {
        aExp = 1;
        bExp = 1;
    }
    if ( bSig0 < aSig0 ) goto aBigger;
    if ( aSig0 < bSig0 ) goto bBigger;
    if ( bSig1 < aSig1 ) goto aBigger;
    if ( aSig1 < bSig1 ) goto bBigger;
    return packFloat128(status->float_rounding_mode == float_round_down,
                        0, 0, 0);
 bExpBigger:
    if ( bExp == 0x7FFF ) {
        if (bSig0 | bSig1) {
            return propagateFloat128NaN(a, b, status);
        }
        return packFloat128( zSign ^ 1, 0x7FFF, 0, 0 );
    }
    if ( aExp == 0 ) {
        ++expDiff;
    }
    else {
        aSig0 |= LIT64( 0x4000000000000000 );
    }
    shift128RightJamming( aSig0, aSig1, - expDiff, &aSig0, &aSig1 );
    bSig0 |= LIT64( 0x4000000000000000 );
 bBigger:
    sub128( bSig0, bSig1, aSig0, aSig1, &zSig0, &zSig1 );
    zExp = bExp;
    zSign ^= 1;
    goto normalizeRoundAndPack;
 aExpBigger:
    if ( aExp == 0x7FFF ) {
        if (aSig0 | aSig1) {
            return propagateFloat128NaN(a, b, status);
        }
        return a;
    }
    if ( bExp == 0 ) {
        --expDiff;
    }
    else {
        bSig0 |= LIT64( 0x4000000000000000 );
    }
    shift128RightJamming( bSig0, bSig1, expDiff, &bSig0, &bSig1 );
    aSig0 |= LIT64( 0x4000000000000000 );
 aBigger:
    sub128( aSig0, aSig1, bSig0, bSig1, &zSig0, &zSig1 );
    zExp = aExp;
 normalizeRoundAndPack:
    --zExp;
    return normalizeRoundAndPackFloat128(zSign, zExp - 14, zSig0, zSig1,
                                         status);

}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdx, %r11
movq %rsi, %r10
movabsq $0x4000000000000000, %r15 # imm = 0x4000000000000000
movq %rsi, %r13
shrq $0x30, %r13
movl $0x7fff, %eax           # imm = 0x7FFF
andl %eax, %r13d
movq %rcx, %rsi
shrq $0x30, %rsi
andl %eax, %esi
movq %rdi, %r14
shlq $0xe, %r14
movq %r10, %rax
shlq $0xe, %rax
leaq -0x4000(%r15), %rdx
andq %rdx, %rax
movq %rdi, %r12
shrq $0x32, %r12
orq %rax, %r12
movq %r11, %rax
shlq $0xe, %rax
movq %rcx, %rbx
shlq $0xe, %rbx
andq %rdx, %rbx
movq %r11, %rdx
shrq $0x32, %rdx
orq %rbx, %rdx
movl %r13d, %ebx
subl %esi, %ebx
jle 0x1277f
cmpl $0x7fff, %r13d          # imm = 0x7FFF
jne 0x127ba
orq %r14, %r12
je 0x129b0
movq %r10, %rsi
movq %r11, %rdx
movq %r9, %r8
callq 0x12261
jmp 0x129aa
js 0x1280f
testl %r13d, %r13d
je 0x1285c
cmpl $0x7fff, %r13d          # imm = 0x7FFF
jne 0x12867
orq %r14, %r12
orq %rax, %r12
orq %rdx, %r12
jne 0x1276c
orb $0x1, 0x2(%r9)
movabsq $0x7fff800000000000, %r10 # imm = 0x7FFF800000000000
jmp 0x12895
movq %rdx, %rdi
orq %r15, %rdi
xorl %ecx, %ecx
testl %esi, %esi
sete %cl
cmoveq %rdx, %rdi
subl %ecx, %ebx
je 0x1292b
movl %ebx, %edx
negb %dl
andb $0x3f, %dl
cmpl $0x3f, %ebx
ja 0x1283e
movq %rdi, %rsi
movl %edx, %ecx
shlq %cl, %rsi
movq %rax, %r10
movl %ebx, %ecx
shrq %cl, %r10
orq %rsi, %r10
movl %edx, %ecx
shlq %cl, %rax
xorl %edx, %edx
testq %rax, %rax
setne %dl
orq %r10, %rdx
movl %ebx, %ecx
shrq %cl, %rdi
movq %rdx, %rax
jmp 0x1292b
cmpl $0x7fff, %esi           # imm = 0x7FFF
jne 0x1289c
orq %rax, %rdx
jne 0x1276c
notb %r8b
movzbl %r8b, %eax
shlq $0x3f, %rax
movabsq $0x7fff000000000000, %r10 # imm = 0x7FFF000000000000
orq %rax, %r10
jmp 0x12895
cmpl $0x40, %ebx
jne 0x128ff
xorl %ecx, %ecx
testq %rax, %rax
setne %cl
orq %rcx, %rdi
movq %rdi, %rax
xorl %edi, %edi
jmp 0x1292b
movl $0x1, %r13d
movl $0x1, %esi
cmpq %r12, %rdx
jb 0x12931
ja 0x1298e
cmpq %r14, %rax
jb 0x12931
ja 0x1298e
xorl %r10d, %r10d
cmpb $0x1, 0x1(%r9)
sete %r10b
shlq $0x3f, %r10
xorl %edi, %edi
jmp 0x129b0
movq %r12, %r11
orq %r15, %r11
xorl %edi, %edi
testl %r13d, %r13d
sete %dil
cmoveq %r12, %r11
negl %edi
movl %edi, %r10d
subl %ebx, %r10d
subl %ebx, %edi
je 0x12988
negb %r10b
andb $0x3f, %r10b
cmpl $0x3f, %edi
ja 0x12942
movq %r11, %rbx
movl %r10d, %ecx
shlq %cl, %rbx
movq %r14, %r12
movl %edi, %ecx
shrq %cl, %r12
orq %rbx, %r12
movl %r10d, %ecx
shlq %cl, %r14
xorl %r10d, %r10d
testq %r14, %r14
setne %r10b
orq %r12, %r10
movl %edi, %ecx
shrq %cl, %r11
movq %r10, %r14
jmp 0x12988
cmpl $0x7f, %ebx
ja 0x1291e
movq %rdi, %rsi
movl %ebx, %ecx
shrq %cl, %rsi
movl %edx, %ecx
shlq %cl, %rdi
xorl %ecx, %ecx
orq %rax, %rdi
setne %cl
orq %rsi, %rcx
jmp 0x12926
xorl %ecx, %ecx
orq %rax, %rdi
setne %cl
xorl %edi, %edi
movq %rcx, %rax
orq %r15, %r12
movq %rdi, %rdx
subq %rax, %r14
sbbq %rdx, %r12
movq %r12, %rdx
movq %r14, %rax
movl %r13d, %esi
jmp 0x12998
cmpl $0x40, %edi
jne 0x1295a
xorl %ecx, %ecx
testq %r14, %r14
setne %cl
orq %rcx, %r11
movq %r11, %r14
xorl %r11d, %r11d
jmp 0x12988
cmpl $0x7f, %edi
ja 0x1297a
movq %r11, %rbx
movl %edi, %ecx
shrq %cl, %rbx
movl %r10d, %ecx
shlq %cl, %r11
xorl %ecx, %ecx
orq %r14, %r11
setne %cl
orq %rbx, %rcx
jmp 0x12982
xorl %ecx, %ecx
orq %r14, %r11
setne %cl
xorl %r11d, %r11d
movq %rcx, %r14
orq %r15, %rdx
movq %r11, %r12
subq %r14, %rax
sbbq %r12, %rdx
xorb $0x1, %r8b
addl $-0xf, %esi
movzbl %r8b, %edi
movq %rax, %rcx
movq %r9, %r8
callq 0xa33b
movq %rax, %rdi
movq %rdx, %r10
movq %rdi, %rax
movq %r10, %rdx
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq