// File: /workspace/github_c_makefile_star2_O2/mbitsnbites[P]SoftFP/softfloat.c
// Function: addFloat32Sigs
static float32 addFloat32Sigs(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 <<= 6;
    bSig <<= 6;
    if ( 0 < expDiff ) {
        if ( aExp == 0xFF ) {
            if (aSig) {
                return propagateFloat32NaN(a, b, status);
            }
            return a;
        }
        if ( bExp == 0 ) {
            --expDiff;
        }
        else {
            bSig |= 0x20000000;
        }
        shift32RightJamming( bSig, expDiff, &bSig );
        zExp = aExp;
    }
    else if ( expDiff < 0 ) {
        if ( bExp == 0xFF ) {
            if (bSig) {
                return propagateFloat32NaN(a, b, status);
            }
            return packFloat32( zSign, 0xFF, 0 );
        }
        if ( aExp == 0 ) {
            ++expDiff;
        }
        else {
            aSig |= 0x20000000;
        }
        shift32RightJamming( aSig, - expDiff, &aSig );
        zExp = bExp;
    }
    else {
        if ( aExp == 0xFF ) {
            if (aSig | bSig) {
                return propagateFloat32NaN(a, b, status);
            }
            return a;
        }
        if ( aExp == 0 ) {
            if (status->flush_to_zero) {
                if (aSig | bSig) {
                    float_raise(float_flag_output_denormal, status);
                }
                return packFloat32(zSign, 0, 0);
            }
            return packFloat32( zSign, 0, ( aSig + bSig )>>6 );
        }
        zSig = 0x40000000 + aSig + bSig;
        zExp = aExp;
        goto roundAndPack;
    }
    aSig |= 0x20000000;
    zSig = ( aSig + bSig )<<1;
    --zExp;
    if ( (int32_t) zSig < 0 ) {
        zSig = aSig + bSig;
        ++zExp;
    }
 roundAndPack:
    return roundAndPackFloat32(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, %edx
andl %ecx, %edx
movl %edi, %r8d
shrl $0x17, %r8d
movl $0xff, %eax
movl %r8d, %r15d
andl %eax, %r15d
andl %esi, %ecx
movl %esi, %r13d
shrl $0x17, %r13d
andl %eax, %r13d
movl %edx, %r14d
shll $0x6, %r14d
movl %ecx, %r12d
shll $0x6, %r12d
movq %r15, %rax
movl %r14d, 0x4(%rsp)
movl %r12d, (%rsp)
subq %r13, %rax
jle 0xa580
cmpl $0xff, %r15d
jne 0xa5a4
testl %edx, %edx
je 0xa66c
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xa3b6
js 0xa5b6
testb %r8b, %r8b
je 0xa62a
movzbl %r8b, %eax
cmpl $0xff, %eax
jne 0xa642
orl %r14d, %r12d
jne 0xa56a
jmp 0xa66c
testq %r13, %r13
je 0xa5d9
orl $0x20000000, %r12d      # imm = 0x20000000
movl %r12d, (%rsp)
jmp 0xa5dc
cmpl $0xff, %r13d
jne 0xa64e
testl %ecx, %ecx
jne 0xa56a
movzbl %bpl, %edi
shll $0x1f, %edi
orl $0x7f800000, %edi       # imm = 0x7F800000
jmp 0xa66c
decq %rax
movq %rsp, %r13
movl %r12d, %edi
movq %rax, %rsi
movq %r13, %rdx
callq 0xb590
movl (%r13), %r12d
orl $0x20000000, %r14d      # imm = 0x20000000
addl %r12d, %r14d
xorl %eax, %eax
movl %r14d, %edx
addl %r14d, %edx
setns %al
cmovsl %r14d, %edx
subq %rax, %r15
movzbl %bpl, %edi
movq %r15, %rsi
movq %rbx, %rcx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x9421
cmpb $0x0, 0x4(%rbx)
je 0xa661
orl %r14d, %r12d
je 0xa639
orb $-0x80, 0x2(%rbx)
movzbl %bpl, %edi
shll $0x1f, %edi
jmp 0xa66c
leal (%r12,%r14), %edx
addl $0x40000000, %edx       # imm = 0x40000000
jmp 0xa60d
testq %r15, %r15
je 0xa67d
orl $0x20000000, %r14d      # imm = 0x20000000
movl %r14d, 0x4(%rsp)
jmp 0xa680
addl %edx, %ecx
movzbl %bpl, %edi
shll $0x1f, %edi
orl %ecx, %edi
movl %edi, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
incq %rax
negq %rax
leaq 0x4(%rsp), %r15
movl %r14d, %edi
movq %rax, %rsi
movq %r15, %rdx
callq 0xb590
movl (%r15), %r14d
movq %r13, %r15
jmp 0xa5f1