// File: /workspace/github_c_makefile_star2_O0/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 %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
movb %r8b, %al
movq %rdi, -0x20(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x30(%rbp)
movq %rcx, -0x28(%rbp)
movb %al, -0x31(%rbp)
movq %r9, -0x40(%rbp)
movq -0x20(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x1e410
movq %rax, -0x60(%rbp)
movq -0x20(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x1e430
movq %rax, -0x58(%rbp)
movq -0x20(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x1e450
movl %eax, -0x44(%rbp)
movq -0x30(%rbp), %rdi
movq -0x28(%rbp), %rsi
callq 0x1e410
movq %rax, -0x70(%rbp)
movq -0x30(%rbp), %rdi
movq -0x28(%rbp), %rsi
callq 0x1e430
movq %rax, -0x68(%rbp)
movq -0x30(%rbp), %rdi
movq -0x28(%rbp), %rsi
callq 0x1e450
movl %eax, -0x48(%rbp)
movl -0x44(%rbp), %eax
subl -0x48(%rbp), %eax
movl %eax, -0x84(%rbp)
movq -0x58(%rbp), %rdi
movq -0x60(%rbp), %rsi
movl $0xe, %edx
leaq -0x58(%rbp), %rcx
leaq -0x60(%rbp), %r8
callq 0x121c0
movq -0x68(%rbp), %rdi
movq -0x70(%rbp), %rsi
movl $0xe, %edx
leaq -0x68(%rbp), %rcx
leaq -0x70(%rbp), %r8
callq 0x121c0
xorl %eax, %eax
cmpl -0x84(%rbp), %eax
jge 0x1fb78
jmp 0x1fd83
cmpl $0x0, -0x84(%rbp)
jge 0x1fb86
jmp 0x1fc93
cmpl $0x7fff, -0x44(%rbp)    # imm = 0x7FFF
jne 0x1fc14
movq -0x58(%rbp), %rax
orq -0x60(%rbp), %rax
orq -0x68(%rbp), %rax
orq -0x70(%rbp), %rax
cmpq $0x0, %rax
je 0x1fbcf
movq -0x40(%rbp), %r8
movq -0x20(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x30(%rbp), %rdx
movq -0x28(%rbp), %rcx
callq 0x1f480
movq %rax, -0x10(%rbp)
movq %rdx, -0x8(%rbp)
jmp 0x1fe7d
movq -0x40(%rbp), %rsi
movl $0x1, %edi
callq 0x11080
movq $0x0, -0x98(%rbp)
movabsq $0x7fff800000000000, %rax # imm = 0x7FFF800000000000
movq %rax, -0x90(%rbp)
movq -0x98(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x90(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x1fe7d
cmpl $0x0, -0x44(%rbp)
jne 0x1fc28
movl $0x1, -0x44(%rbp)
movl $0x1, -0x48(%rbp)
movq -0x68(%rbp), %rax
cmpq -0x58(%rbp), %rax
jae 0x1fc37
jmp 0x1fe2c
movq -0x58(%rbp), %rax
cmpq -0x68(%rbp), %rax
jae 0x1fc46
jmp 0x1fd51
movq -0x70(%rbp), %rax
cmpq -0x60(%rbp), %rax
jae 0x1fc55
jmp 0x1fe2c
movq -0x60(%rbp), %rax
cmpq -0x70(%rbp), %rax
jae 0x1fc64
jmp 0x1fd51
movq -0x40(%rbp), %rax
movsbl 0x1(%rax), %eax
cmpl $0x1, %eax
sete %al
andb $0x1, %al
movzbl %al, %eax
xorl %esi, %esi
xorl %ecx, %ecx
movzbl %al, %edi
movq %rcx, %rdx
callq 0x11a80
movq %rax, -0x10(%rbp)
movq %rdx, -0x8(%rbp)
jmp 0x1fe7d
cmpl $0x7fff, -0x48(%rbp)    # imm = 0x7FFF
jne 0x1fcf6
movq -0x68(%rbp), %rax
orq -0x70(%rbp), %rax
cmpq $0x0, %rax
je 0x1fcd0
movq -0x40(%rbp), %r8
movq -0x20(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x30(%rbp), %rdx
movq -0x28(%rbp), %rcx
callq 0x1f480
movq %rax, -0x10(%rbp)
movq %rdx, -0x8(%rbp)
jmp 0x1fe7d
movzbl -0x31(%rbp), %eax
xorl $0x1, %eax
movl $0x7fff, %esi           # imm = 0x7FFF
xorl %ecx, %ecx
movzbl %al, %edi
movq %rcx, %rdx
callq 0x11a80
movq %rax, -0x10(%rbp)
movq %rdx, -0x8(%rbp)
jmp 0x1fe7d
cmpl $0x0, -0x44(%rbp)
jne 0x1fd0d
movl -0x84(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x84(%rbp)
jmp 0x1fd1f
movabsq $0x4000000000000000, %rax # imm = 0x4000000000000000
orq -0x58(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rdi
movq -0x60(%rbp), %rsi
xorl %eax, %eax
subl -0x84(%rbp), %eax
movslq %eax, %rdx
leaq -0x58(%rbp), %rcx
leaq -0x60(%rbp), %r8
callq 0x19c20
movabsq $0x4000000000000000, %rax # imm = 0x4000000000000000
orq -0x68(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x68(%rbp), %rdi
movq -0x70(%rbp), %rsi
movq -0x58(%rbp), %rdx
movq -0x60(%rbp), %rcx
leaq -0x78(%rbp), %r8
leaq -0x80(%rbp), %r9
callq 0x18b70
movl -0x48(%rbp), %eax
movl %eax, -0x4c(%rbp)
movzbl -0x31(%rbp), %eax
xorl $0x1, %eax
movb %al, -0x31(%rbp)
jmp 0x1fe4f
cmpl $0x7fff, -0x44(%rbp)    # imm = 0x7FFF
jne 0x1fdd5
movq -0x58(%rbp), %rax
orq -0x60(%rbp), %rax
cmpq $0x0, %rax
je 0x1fdc0
movq -0x40(%rbp), %r8
movq -0x20(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x30(%rbp), %rdx
movq -0x28(%rbp), %rcx
callq 0x1f480
movq %rax, -0x10(%rbp)
movq %rdx, -0x8(%rbp)
jmp 0x1fe7d
movq -0x20(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x1fe7d
cmpl $0x0, -0x48(%rbp)
jne 0x1fdec
movl -0x84(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x84(%rbp)
jmp 0x1fdfe
movabsq $0x4000000000000000, %rax # imm = 0x4000000000000000
orq -0x68(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x68(%rbp), %rdi
movq -0x70(%rbp), %rsi
movslq -0x84(%rbp), %rdx
leaq -0x68(%rbp), %rcx
leaq -0x70(%rbp), %r8
callq 0x19c20
movabsq $0x4000000000000000, %rax # imm = 0x4000000000000000
orq -0x58(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rdi
movq -0x60(%rbp), %rsi
movq -0x68(%rbp), %rdx
movq -0x70(%rbp), %rcx
leaq -0x78(%rbp), %r8
leaq -0x80(%rbp), %r9
callq 0x18b70
movl -0x44(%rbp), %eax
movl %eax, -0x4c(%rbp)
movl -0x4c(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x4c(%rbp)
movb -0x31(%rbp), %al
movl -0x4c(%rbp), %esi
subl $0xe, %esi
movq -0x78(%rbp), %rdx
movq -0x80(%rbp), %rcx
movq -0x40(%rbp), %r8
movzbl %al, %edi
callq 0x12660
movq %rax, -0x10(%rbp)
movq %rdx, -0x8(%rbp)
movq -0x10(%rbp), %rax
movq -0x8(%rbp), %rdx
addq $0xa0, %rsp
popq %rbp
retq
nop