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

    aSig = extractFloat32Frac( a );
    aExp = extractFloat32Exp( a );
    bSig = extractFloat32Frac( b );
    bExp = extractFloat32Exp( b );
    expDiff = aExp - bExp;
    aSig <<= 7;
    bSig <<= 7;
    if ( 0 < expDiff ) goto aExpBigger;
    if ( expDiff < 0 ) goto bExpBigger;
    if ( aExp == 0xFF ) {
        if (aSig | bSig) {
            return propagateFloat32NaN(a, b, status);
        }
        float_raise(float_flag_invalid, status);
        return float32_default_nan;
    }
    if ( aExp == 0 ) {
        aExp = 1;
        bExp = 1;
    }
    if ( bSig < aSig ) goto aBigger;
    if ( aSig < bSig ) goto bBigger;
    return packFloat32(status->float_rounding_mode == float_round_down, 0, 0);
 bExpBigger:
    if ( bExp == 0xFF ) {
        if (bSig) {
            return propagateFloat32NaN(a, b, status);
        }
        return packFloat32( zSign ^ 1, 0xFF, 0 );
    }
    if ( aExp == 0 ) {
        ++expDiff;
    }
    else {
        aSig |= 0x40000000;
    }
    shift32RightJamming( aSig, - expDiff, &aSig );
    bSig |= 0x40000000;
 bBigger:
    zSig = bSig - aSig;
    zExp = bExp;
    zSign ^= 1;
    goto normalizeRoundAndPack;
 aExpBigger:
    if ( aExp == 0xFF ) {
        if (aSig) {
            return propagateFloat32NaN(a, b, status);
        }
        return a;
    }
    if ( bExp == 0 ) {
        --expDiff;
    }
    else {
        bSig |= 0x40000000;
    }
    shift32RightJamming( bSig, expDiff, &bSig );
    aSig |= 0x40000000;
 aBigger:
    zSig = aSig - bSig;
    zExp = aExp;
 normalizeRoundAndPack:
    --zExp;
    return normalizeRoundAndPackFloat32(zSign, zExp, zSig, status);

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movl %edx, %ebp
movl $0x7fffff, %ecx         # imm = 0x7FFFFF
movl %edi, %r8d
andl %ecx, %r8d
movl %edi, %edx
shrl $0x17, %edx
movl $0xff, %eax
movl %edx, %r13d
andl %eax, %r13d
andl %esi, %ecx
movl %esi, %r12d
shrl $0x17, %r12d
andl %eax, %r12d
movl %r8d, %r15d
shll $0x7, %r15d
movl %ecx, %r14d
shll $0x7, %r14d
movq %r13, %rax
movl %r15d, 0x4(%rsp)
movl %r14d, (%rsp)
subq %r12, %rax
jle 0xa71f
cmpl $0xff, %r13d
jne 0xa73f
testl %r8d, %r8d
je 0xa7b5
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xa3b6
js 0xa751
testb %dl, %dl
je 0xa79a
movzbl %dl, %eax
cmpl $0xff, %eax
jne 0xa7a1
orl %r15d, %r14d
jne 0xa709
orb $0x1, 0x2(%rbx)
movl $0x7fc00000, %edi       # imm = 0x7FC00000
jmp 0xa7b5
testq %r12, %r12
je 0xa770
orl $0x40000000, %r14d      # imm = 0x40000000
movl %r14d, (%rsp)
jmp 0xa773
cmpl $0xff, %r12d
jne 0xa7c6
testl %ecx, %ecx
jne 0xa709
notb %bpl
movzbl %bpl, %edi
shll $0x1f, %edi
orl $0x7f800000, %edi       # imm = 0x7F800000
jmp 0xa7b5
decq %rax
movq %rsp, %r12
movl %r14d, %edi
movq %rax, %rsi
movq %r12, %rdx
callq 0xb590
orl $0x40000000, %r15d      # imm = 0x40000000
movl (%r12), %r14d
subl %r14d, %r15d
movq %r13, %r12
movl %r15d, %r14d
jmp 0xa804
pushq $0x1
popq %r13
movq %r13, %r12
cmpl %r15d, %r14d
jb 0xa78f
ja 0xa7fd
xorl %edi, %edi
cmpb $0x1, 0x1(%rbx)
sete %dil
shll $0x1f, %edi
movl %edi, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
testq %r13, %r13
je 0xa7d9
orl $0x40000000, %r15d      # imm = 0x40000000
movl %r15d, 0x4(%rsp)
jmp 0xa7dc
incq %rax
negq %rax
leaq 0x4(%rsp), %r13
movl %r15d, %edi
movq %rax, %rsi
movq %r13, %rdx
callq 0xb590
orl $0x40000000, %r14d      # imm = 0x40000000
movl (%r13), %r15d
subl %r15d, %r14d
xorb $0x1, %bpl
decq %r12
movzbl %bpl, %edi
movq %r12, %rsi
movl %r14d, %edx
movq %rbx, %rcx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x9270