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

    aSig = extractFloatx80Frac( a );
    aExp = extractFloatx80Exp( a );
    bSig = extractFloatx80Frac( b );
    bExp = extractFloatx80Exp( b );
    expDiff = aExp - bExp;
    if ( 0 < expDiff ) goto aExpBigger;
    if ( expDiff < 0 ) goto bExpBigger;
    if ( aExp == 0x7FFF ) {
        if ( (uint64_t) ( ( aSig | bSig )<<1 ) ) {
            return propagateFloatx80NaN(a, b, status);
        }
        float_raise(float_flag_invalid, status);
        z.low = floatx80_default_nan_low;
        z.high = floatx80_default_nan_high;
        return z;
    }
    if ( aExp == 0 ) {
        aExp = 1;
        bExp = 1;
    }
    zSig1 = 0;
    if ( bSig < aSig ) goto aBigger;
    if ( aSig < bSig ) goto bBigger;
    return packFloatx80(status->float_rounding_mode == float_round_down, 0, 0);
 bExpBigger:
    if ( bExp == 0x7FFF ) {
        if ((uint64_t)(bSig << 1)) {
            return propagateFloatx80NaN(a, b, status);
        }
        return packFloatx80( zSign ^ 1, 0x7FFF, LIT64( 0x8000000000000000 ) );
    }
    if ( aExp == 0 ) ++expDiff;
    shift128RightJamming( aSig, 0, - expDiff, &aSig, &zSig1 );
 bBigger:
    sub128( bSig, 0, aSig, zSig1, &zSig0, &zSig1 );
    zExp = bExp;
    zSign ^= 1;
    goto normalizeRoundAndPack;
 aExpBigger:
    if ( aExp == 0x7FFF ) {
        if ((uint64_t)(aSig << 1)) {
            return propagateFloatx80NaN(a, b, status);
        }
        return a;
    }
    if ( bExp == 0 ) --expDiff;
    shift128RightJamming( bSig, 0, expDiff, &bSig, &zSig1 );
 aBigger:
    sub128( aSig, 0, bSig, zSig1, &zSig0, &zSig1 );
    zExp = aExp;
 normalizeRoundAndPack:
    return normalizeRoundAndPackFloatx80(status->floatx80_rounding_precision,
                                         zSign, zExp, zSig0, zSig1, status);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x90, %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 0x1bbcc
jmp 0x1bd87
cmpl $0x0, -0x74(%rbp)
jge 0x1bbd7
jmp 0x1bcbf
cmpl $0x7fff, -0x44(%rbp)    # imm = 0x7FFF
jne 0x1bc57
movq -0x58(%rbp), %rax
orq -0x60(%rbp), %rax
shlq %rax
cmpq $0x0, %rax
je 0x1bc1a
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 0x1be51
movq -0x40(%rbp), %rsi
movl $0x1, %edi
callq 0x11080
movabsq $-0x4000000000000000, %rax # imm = 0xC000000000000000
movq %rax, -0x88(%rbp)
movw $0xffff, -0x80(%rbp)    # imm = 0xFFFF
movq -0x88(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x80(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x1be51
cmpl $0x0, -0x44(%rbp)
jne 0x1bc6b
movl $0x1, -0x44(%rbp)
movl $0x1, -0x48(%rbp)
movq $0x0, -0x70(%rbp)
movq -0x60(%rbp), %rax
cmpq -0x58(%rbp), %rax
jae 0x1bc82
jmp 0x1be00
movq -0x58(%rbp), %rax
cmpq -0x60(%rbp), %rax
jae 0x1bc91
jmp 0x1bd55
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
movl %ecx, %edx
movzbl %al, %edi
callq 0x11990
movq %rax, -0x10(%rbp)
movw %dx, -0x8(%rbp)
jmp 0x1be51
cmpl $0x7fff, -0x48(%rbp)    # imm = 0x7FFF
jne 0x1bd29
movq -0x60(%rbp), %rax
shlq %rax
cmpq $0x0, %rax
je 0x1bcfe
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 0x1be51
movzbl -0x31(%rbp), %eax
xorl $0x1, %eax
movl $0x7fff, %esi           # imm = 0x7FFF
movabsq $-0x8000000000000000, %rdx # imm = 0x8000000000000000
movzbl %al, %edi
callq 0x11990
movq %rax, -0x10(%rbp)
movw %dx, -0x8(%rbp)
jmp 0x1be51
cmpl $0x0, -0x44(%rbp)
jne 0x1bd38
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 0x19c20
movq -0x60(%rbp), %rdi
movq -0x58(%rbp), %rdx
movq -0x70(%rbp), %rcx
xorl %eax, %eax
movl %eax, %esi
leaq -0x68(%rbp), %r8
leaq -0x70(%rbp), %r9
callq 0x18b70
movl -0x48(%rbp), %eax
movl %eax, -0x4c(%rbp)
movzbl -0x31(%rbp), %eax
xorl $0x1, %eax
movb %al, -0x31(%rbp)
jmp 0x1be23
cmpl $0x7fff, -0x44(%rbp)    # imm = 0x7FFF
jne 0x1bdd8
movq -0x58(%rbp), %rax
shlq %rax
cmpq $0x0, %rax
je 0x1bdc6
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 0x1be51
movq -0x20(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x1be51
cmpl $0x0, -0x48(%rbp)
jne 0x1bde7
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 0x19c20
movq -0x58(%rbp), %rdi
movq -0x60(%rbp), %rdx
movq -0x70(%rbp), %rcx
xorl %eax, %eax
movl %eax, %esi
leaq -0x68(%rbp), %r8
leaq -0x70(%rbp), %r9
callq 0x18b70
movl -0x44(%rbp), %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 0x1d360
movq %rax, -0x10(%rbp)
movw %dx, -0x8(%rbp)
movq -0x10(%rbp), %rax
movw -0x8(%rbp), %dx
addq $0x90, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)