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

    aSig1 = extractFloat128Frac1( a );
    aSig0 = extractFloat128Frac0( a );
    aExp = extractFloat128Exp( a );
    bSig1 = extractFloat128Frac1( b );
    bSig0 = extractFloat128Frac0( b );
    bExp = extractFloat128Exp( b );
    expDiff = aExp - bExp;
    if ( 0 < expDiff ) {
        if ( aExp == 0x7FFF ) {
            if (aSig0 | aSig1) {
                return propagateFloat128NaN(a, b, status);
            }
            return a;
        }
        if ( bExp == 0 ) {
            --expDiff;
        }
        else {
            bSig0 |= LIT64( 0x0001000000000000 );
        }
        shift128ExtraRightJamming(
            bSig0, bSig1, 0, expDiff, &bSig0, &bSig1, &zSig2 );
        zExp = aExp;
    }
    else if ( expDiff < 0 ) {
        if ( bExp == 0x7FFF ) {
            if (bSig0 | bSig1) {
                return propagateFloat128NaN(a, b, status);
            }
            return packFloat128( zSign, 0x7FFF, 0, 0 );
        }
        if ( aExp == 0 ) {
            ++expDiff;
        }
        else {
            aSig0 |= LIT64( 0x0001000000000000 );
        }
        shift128ExtraRightJamming(
            aSig0, aSig1, 0, - expDiff, &aSig0, &aSig1, &zSig2 );
        zExp = bExp;
    }
    else {
        if ( aExp == 0x7FFF ) {
            if ( aSig0 | aSig1 | bSig0 | bSig1 ) {
                return propagateFloat128NaN(a, b, status);
            }
            return a;
        }
        add128( aSig0, aSig1, bSig0, bSig1, &zSig0, &zSig1 );
        if ( aExp == 0 ) {
            if (status->flush_to_zero) {
                if (zSig0 | zSig1) {
                    float_raise(float_flag_output_denormal, status);
                }
                return packFloat128(zSign, 0, 0, 0);
            }
            return packFloat128( zSign, 0, zSig0, zSig1 );
        }
        zSig2 = 0;
        zSig0 |= LIT64( 0x0002000000000000 );
        zExp = aExp;
        goto shiftRight1;
    }
    aSig0 |= LIT64( 0x0001000000000000 );
    add128( aSig0, aSig1, bSig0, bSig1, &zSig0, &zSig1 );
    --zExp;
    if ( zSig0 < LIT64( 0x0002000000000000 ) ) goto roundAndPack;
    ++zExp;
 shiftRight1:
    shift128ExtraRightJamming(
        zSig0, zSig1, zSig2, 1, &zSig0, &zSig1, &zSig2 );
 roundAndPack:
    return roundAndPackFloat128(zSign, zExp, zSig0, zSig1, zSig2, 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, -0x8c(%rbp)
xorl %eax, %eax
cmpl -0x8c(%rbp), %eax
jge 0x1f804
cmpl $0x7fff, -0x44(%rbp)    # imm = 0x7FFF
jne 0x1f7a5
movq -0x58(%rbp), %rax
orq -0x60(%rbp), %rax
cmpq $0x0, %rax
je 0x1f790
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 0x1fa86
movq -0x20(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x1fa86
cmpl $0x0, -0x48(%rbp)
jne 0x1f7bc
movl -0x8c(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x8c(%rbp)
jmp 0x1f7ce
movabsq $0x1000000000000, %rax  # imm = 0x1000000000000
orq -0x68(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x68(%rbp), %rdi
movq -0x70(%rbp), %rsi
movslq -0x8c(%rbp), %rcx
xorl %eax, %eax
movl %eax, %edx
leaq -0x68(%rbp), %r8
leaq -0x70(%rbp), %r9
leaq -0x88(%rbp), %rax
movq %rax, (%rsp)
callq 0x20420
movl -0x44(%rbp), %eax
movl %eax, -0x4c(%rbp)
jmp 0x1f9de
cmpl $0x0, -0x8c(%rbp)
jge 0x1f8d3
cmpl $0x7fff, -0x48(%rbp)    # imm = 0x7FFF
jne 0x1f870
movq -0x68(%rbp), %rax
orq -0x70(%rbp), %rax
cmpq $0x0, %rax
je 0x1f84e
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 0x1fa86
movl $0x7fff, %esi           # imm = 0x7FFF
xorl %eax, %eax
movl %eax, %ecx
movzbl -0x31(%rbp), %edi
movq %rcx, %rdx
callq 0x11a80
movq %rax, -0x10(%rbp)
movq %rdx, -0x8(%rbp)
jmp 0x1fa86
cmpl $0x0, -0x44(%rbp)
jne 0x1f887
movl -0x8c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x8c(%rbp)
jmp 0x1f899
movabsq $0x1000000000000, %rax  # imm = 0x1000000000000
orq -0x58(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rdi
movq -0x60(%rbp), %rsi
xorl %eax, %eax
subl -0x8c(%rbp), %eax
movslq %eax, %rcx
xorl %eax, %eax
movl %eax, %edx
leaq -0x58(%rbp), %r8
leaq -0x60(%rbp), %r9
leaq -0x88(%rbp), %rax
movq %rax, (%rsp)
callq 0x20420
movl -0x48(%rbp), %eax
movl %eax, -0x4c(%rbp)
jmp 0x1f9dc
cmpl $0x7fff, -0x44(%rbp)    # imm = 0x7FFF
jne 0x1f92d
movq -0x58(%rbp), %rax
orq -0x60(%rbp), %rax
orq -0x68(%rbp), %rax
orq -0x70(%rbp), %rax
cmpq $0x0, %rax
je 0x1f918
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 0x1fa86
movq -0x20(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x1fa86
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 0x18bd0
cmpl $0x0, -0x44(%rbp)
jne 0x1f9b7
movq -0x40(%rbp), %rax
cmpb $0x0, 0x4(%rax)
je 0x1f995
movq -0x78(%rbp), %rax
orq -0x80(%rbp), %rax
cmpq $0x0, %rax
je 0x1f976
movq -0x40(%rbp), %rsi
movl $0xffffff80, %edi       # imm = 0xFFFFFF80
callq 0x11080
xorl %esi, %esi
xorl %eax, %eax
movl %eax, %ecx
movzbl -0x31(%rbp), %edi
movq %rcx, %rdx
callq 0x11a80
movq %rax, -0x10(%rbp)
movq %rdx, -0x8(%rbp)
jmp 0x1fa86
movb -0x31(%rbp), %al
movq -0x78(%rbp), %rdx
movq -0x80(%rbp), %rcx
xorl %esi, %esi
movzbl %al, %edi
callq 0x11a80
movq %rax, -0x10(%rbp)
movq %rdx, -0x8(%rbp)
jmp 0x1fa86
movq $0x0, -0x88(%rbp)
movabsq $0x2000000000000, %rax  # imm = 0x2000000000000
orq -0x78(%rbp), %rax
movq %rax, -0x78(%rbp)
movl -0x44(%rbp), %eax
movl %eax, -0x4c(%rbp)
jmp 0x1fa31
jmp 0x1f9de
movabsq $0x1000000000000, %rax  # imm = 0x1000000000000
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 0x18bd0
movl -0x4c(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x4c(%rbp)
movabsq $0x2000000000000, %rax  # imm = 0x2000000000000
cmpq %rax, -0x78(%rbp)
jae 0x1fa28
jmp 0x1fa5d
movl -0x4c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4c(%rbp)
movq -0x78(%rbp), %rdi
movq -0x80(%rbp), %rsi
movq -0x88(%rbp), %rdx
movl $0x1, %ecx
leaq -0x78(%rbp), %r8
leaq -0x80(%rbp), %r9
leaq -0x88(%rbp), %rax
movq %rax, (%rsp)
callq 0x20420
movb -0x31(%rbp), %al
movl -0x4c(%rbp), %esi
movq -0x78(%rbp), %rdx
movq -0x80(%rbp), %rcx
movq -0x88(%rbp), %r8
movq -0x40(%rbp), %r9
movzbl %al, %edi
callq 0x20590
movq %rax, -0x10(%rbp)
movq %rdx, -0x8(%rbp)
movq -0x10(%rbp), %rax
movq -0x8(%rbp), %rdx
addq $0xa0, %rsp
popq %rbp
retq
nopw (%rax,%rax)