// File: /workspace/github_c_makefile_star2_O0/mbitsnbites[P]SoftFP/softfloat.c
// Function: addFloatx80Sigs
static floatx80 addFloatx80Sigs(floatx80 a, floatx80 b, flag zSign,
                                float_status *status)
{
    int32 aExp, bExp, zExp;
    uint64_t aSig, bSig, zSig0, zSig1;
    int32 expDiff;

    aSig = extractFloatx80Frac( a );
    aExp = extractFloatx80Exp( a );
    bSig = extractFloatx80Frac( b );
    bExp = extractFloatx80Exp( b );
    expDiff = aExp - bExp;
    if ( 0 < expDiff ) {
        if ( aExp == 0x7FFF ) {
            if ((uint64_t)(aSig << 1)) {
                return propagateFloatx80NaN(a, b, status);
            }
            return a;
        }
        if ( bExp == 0 ) --expDiff;
        shift64ExtraRightJamming( bSig, 0, expDiff, &bSig, &zSig1 );
        zExp = aExp;
    }
    else if ( expDiff < 0 ) {
        if ( bExp == 0x7FFF ) {
            if ((uint64_t)(bSig << 1)) {
                return propagateFloatx80NaN(a, b, status);
            }
            return packFloatx80( zSign, 0x7FFF, LIT64( 0x8000000000000000 ) );
        }
        if ( aExp == 0 ) ++expDiff;
        shift64ExtraRightJamming( aSig, 0, - expDiff, &aSig, &zSig1 );
        zExp = bExp;
    }
    else {
        if ( aExp == 0x7FFF ) {
            if ( (uint64_t) ( ( aSig | bSig )<<1 ) ) {
                return propagateFloatx80NaN(a, b, status);
            }
            return a;
        }
        zSig1 = 0;
        zSig0 = aSig + bSig;
        if ( aExp == 0 ) {
            normalizeFloatx80Subnormal( zSig0, &zExp, &zSig0 );
            goto roundAndPack;
        }
        zExp = aExp;
        goto shiftRight1;
    }
    zSig0 = aSig + bSig;
    if ( (int64_t) zSig0 < 0 ) goto roundAndPack;
 shiftRight1:
    shift64ExtraRightJamming( zSig0, zSig1, 1, &zSig0, &zSig1 );
    zSig0 |= LIT64( 0x8000000000000000 );
    ++zExp;
 roundAndPack:
    return roundAndPackFloatx80(status->floatx80_rounding_precision,
                                zSign, zExp, zSig0, zSig1, status);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movb %r8b, %al
movq %rdi, -0x20(%rbp)
movw %si, -0x18(%rbp)
movq %rdx, -0x30(%rbp)
movw %cx, -0x28(%rbp)
movb %al, -0x31(%rbp)
movq %r9, -0x40(%rbp)
movq -0x20(%rbp), %rdi
movzwl -0x18(%rbp), %esi
callq 0x1ab30
movq %rax, -0x58(%rbp)
movq -0x20(%rbp), %rdi
movzwl -0x18(%rbp), %esi
callq 0x1ab50
movl %eax, -0x44(%rbp)
movq -0x30(%rbp), %rdi
movzwl -0x28(%rbp), %esi
callq 0x1ab30
movq %rax, -0x60(%rbp)
movq -0x30(%rbp), %rdi
movzwl -0x28(%rbp), %esi
callq 0x1ab50
movl %eax, -0x48(%rbp)
movl -0x44(%rbp), %eax
subl -0x48(%rbp), %eax
movl %eax, -0x74(%rbp)
xorl %eax, %eax
cmpl -0x74(%rbp), %eax
jge 0x1b982
cmpl $0x7fff, -0x44(%rbp)    # imm = 0x7FFF
jne 0x1b94f
movq -0x58(%rbp), %rax
shlq %rax
cmpq $0x0, %rax
je 0x1b93a
movq -0x40(%rbp), %r8
movq -0x20(%rbp), %rdi
movw -0x18(%rbp), %ax
movq -0x30(%rbp), %rdx
movzwl %ax, %esi
movzwl -0x28(%rbp), %ecx
callq 0x1b670
movq %rax, -0x10(%rbp)
movw %dx, -0x8(%rbp)
jmp 0x1bb30
movq -0x20(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x1bb30
cmpl $0x0, -0x48(%rbp)
jne 0x1b95e
movl -0x74(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x74(%rbp)
movq -0x60(%rbp), %rdi
movslq -0x74(%rbp), %rdx
xorl %eax, %eax
movl %eax, %esi
leaq -0x60(%rbp), %rcx
leaq -0x70(%rbp), %r8
callq 0x12ce0
movl -0x44(%rbp), %eax
movl %eax, -0x4c(%rbp)
jmp 0x1bab6
cmpl $0x0, -0x74(%rbp)
jge 0x1ba27
cmpl $0x7fff, -0x48(%rbp)    # imm = 0x7FFF
jne 0x1b9f0
movq -0x60(%rbp), %rax
shlq %rax
cmpq $0x0, %rax
je 0x1b9cb
movq -0x40(%rbp), %r8
movq -0x20(%rbp), %rdi
movw -0x18(%rbp), %ax
movq -0x30(%rbp), %rdx
movzwl %ax, %esi
movzwl -0x28(%rbp), %ecx
callq 0x1b670
movq %rax, -0x10(%rbp)
movw %dx, -0x8(%rbp)
jmp 0x1bb30
movl $0x7fff, %esi           # imm = 0x7FFF
movabsq $-0x8000000000000000, %rdx # imm = 0x8000000000000000
movzbl -0x31(%rbp), %edi
callq 0x11990
movq %rax, -0x10(%rbp)
movw %dx, -0x8(%rbp)
jmp 0x1bb30
cmpl $0x0, -0x44(%rbp)
jne 0x1b9ff
movl -0x74(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x74(%rbp)
movq -0x58(%rbp), %rdi
xorl %eax, %eax
subl -0x74(%rbp), %eax
movslq %eax, %rdx
xorl %eax, %eax
movl %eax, %esi
leaq -0x58(%rbp), %rcx
leaq -0x70(%rbp), %r8
callq 0x12ce0
movl -0x48(%rbp), %eax
movl %eax, -0x4c(%rbp)
jmp 0x1bab4
cmpl $0x7fff, -0x44(%rbp)    # imm = 0x7FFF
jne 0x1ba7f
movq -0x58(%rbp), %rax
orq -0x60(%rbp), %rax
shlq %rax
cmpq $0x0, %rax
je 0x1ba6a
movq -0x40(%rbp), %r8
movq -0x20(%rbp), %rdi
movw -0x18(%rbp), %ax
movq -0x30(%rbp), %rdx
movzwl %ax, %esi
movzwl -0x28(%rbp), %ecx
callq 0x1b670
movq %rax, -0x10(%rbp)
movw %dx, -0x8(%rbp)
jmp 0x1bb30
movq -0x20(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x1bb30
movq $0x0, -0x70(%rbp)
movq -0x58(%rbp), %rax
addq -0x60(%rbp), %rax
movq %rax, -0x68(%rbp)
cmpl $0x0, -0x44(%rbp)
jne 0x1baac
movq -0x68(%rbp), %rdi
leaq -0x4c(%rbp), %rsi
leaq -0x68(%rbp), %rdx
callq 0x1c210
jmp 0x1bb02
movl -0x44(%rbp), %eax
movl %eax, -0x4c(%rbp)
jmp 0x1bacd
jmp 0x1bab6
movq -0x58(%rbp), %rax
addq -0x60(%rbp), %rax
movq %rax, -0x68(%rbp)
cmpq $0x0, -0x68(%rbp)
jge 0x1bacb
jmp 0x1bb02
jmp 0x1bacd
movq -0x68(%rbp), %rdi
movq -0x70(%rbp), %rsi
movl $0x1, %edx
leaq -0x68(%rbp), %rcx
leaq -0x70(%rbp), %r8
callq 0x12ce0
movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000
orq -0x68(%rbp), %rax
movq %rax, -0x68(%rbp)
movl -0x4c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4c(%rbp)
movq -0x40(%rbp), %rax
movb 0x3(%rax), %sil
movb -0x31(%rbp), %al
movl -0x4c(%rbp), %edx
movq -0x68(%rbp), %rcx
movq -0x70(%rbp), %r8
movq -0x40(%rbp), %r9
movsbl %sil, %edi
movzbl %al, %esi
callq 0x1c260
movq %rax, -0x10(%rbp)
movw %dx, -0x8(%rbp)
movq -0x10(%rbp), %rax
movw -0x8(%rbp), %dx
addq $0x80, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)