// File: /workspace/github_c_makefile_star2_O0/mbitsnbites[P]SoftFP/softfloat.c
// Function: float32_mul
float32 float32_mul(float32 a, float32 b, float_status *status)
{
    flag aSign, bSign, zSign;
    int_fast16_t aExp, bExp, zExp;
    uint32_t aSig, bSig;
    uint64_t zSig64;
    uint32_t zSig;

    a = float32_squash_input_denormal(a, status);
    b = float32_squash_input_denormal(b, status);

    aSig = extractFloat32Frac( a );
    aExp = extractFloat32Exp( a );
    aSign = extractFloat32Sign( a );
    bSig = extractFloat32Frac( b );
    bExp = extractFloat32Exp( b );
    bSign = extractFloat32Sign( b );
    zSign = aSign ^ bSign;
    if ( aExp == 0xFF ) {
        if ( aSig || ( ( bExp == 0xFF ) && bSig ) ) {
            return propagateFloat32NaN(a, b, status);
        }
        if ( ( bExp | bSig ) == 0 ) {
            float_raise(float_flag_invalid, status);
            return float32_default_nan;
        }
        return packFloat32( zSign, 0xFF, 0 );
    }
    if ( bExp == 0xFF ) {
        if (bSig) {
            return propagateFloat32NaN(a, b, status);
        }
        if ( ( aExp | aSig ) == 0 ) {
            float_raise(float_flag_invalid, status);
            return float32_default_nan;
        }
        return packFloat32( zSign, 0xFF, 0 );
    }
    if ( aExp == 0 ) {
        if ( aSig == 0 ) return packFloat32( zSign, 0, 0 );
        normalizeFloat32Subnormal( aSig, &aExp, &aSig );
    }
    if ( bExp == 0 ) {
        if ( bSig == 0 ) return packFloat32( zSign, 0, 0 );
        normalizeFloat32Subnormal( bSig, &bExp, &bSig );
    }
    zExp = aExp + bExp - 0x7F;
    aSig = ( aSig | 0x00800000 )<<7;
    bSig = ( bSig | 0x00800000 )<<8;
    shift64RightJamming( ( (uint64_t) aSig ) * bSig, 32, &zSig64 );
    zSig = zSig64;
    if ( 0 <= (int32_t) ( zSig<<1 ) ) {
        zSig <<= 1;
        --zExp;
    }
    return roundAndPackFloat32(zSign, zExp, zSig, status);

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movl %edi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movl -0x8(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0x11570
movl %eax, -0x8(%rbp)
movl -0xc(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0x11570
movl %eax, -0xc(%rbp)
movl -0x8(%rbp), %edi
callq 0x115f0
movl %eax, -0x3c(%rbp)
movl -0x8(%rbp), %edi
callq 0x115d0
movq %rax, -0x28(%rbp)
movl -0x8(%rbp), %edi
callq 0x12810
movb %al, -0x19(%rbp)
movl -0xc(%rbp), %edi
callq 0x115f0
movl %eax, -0x40(%rbp)
movl -0xc(%rbp), %edi
callq 0x115d0
movq %rax, -0x30(%rbp)
movl -0xc(%rbp), %edi
callq 0x12810
movb %al, -0x1a(%rbp)
movzbl -0x19(%rbp), %eax
movzbl -0x1a(%rbp), %ecx
xorl %ecx, %eax
movb %al, -0x1b(%rbp)
cmpq $0xff, -0x28(%rbp)
jne 0x143fa
cmpl $0x0, -0x3c(%rbp)
jne 0x143a1
cmpq $0xff, -0x30(%rbp)
jne 0x143b8
cmpl $0x0, -0x40(%rbp)
je 0x143b8
movl -0x8(%rbp), %edi
movl -0xc(%rbp), %esi
movq -0x18(%rbp), %rdx
callq 0x13be0
movl %eax, -0x4(%rbp)
jmp 0x14550
movq -0x30(%rbp), %rax
movl -0x40(%rbp), %ecx
orq %rcx, %rax
cmpq $0x0, %rax
jne 0x143e2
movq -0x18(%rbp), %rsi
movl $0x1, %edi
callq 0x11080
movl $0x7fc00000, -0x4(%rbp) # imm = 0x7FC00000
jmp 0x14550
movl $0xff, %esi
xorl %edx, %edx
movzbl -0x1b(%rbp), %edi
callq 0x11750
movl %eax, -0x4(%rbp)
jmp 0x14550
cmpq $0xff, -0x30(%rbp)
jne 0x14463
cmpl $0x0, -0x40(%rbp)
je 0x14421
movl -0x8(%rbp), %edi
movl -0xc(%rbp), %esi
movq -0x18(%rbp), %rdx
callq 0x13be0
movl %eax, -0x4(%rbp)
jmp 0x14550
movq -0x28(%rbp), %rax
movl -0x3c(%rbp), %ecx
orq %rcx, %rax
cmpq $0x0, %rax
jne 0x1444b
movq -0x18(%rbp), %rsi
movl $0x1, %edi
callq 0x11080
movl $0x7fc00000, -0x4(%rbp) # imm = 0x7FC00000
jmp 0x14550
movl $0xff, %esi
xorl %edx, %edx
movzbl -0x1b(%rbp), %edi
callq 0x11750
movl %eax, -0x4(%rbp)
jmp 0x14550
cmpq $0x0, -0x28(%rbp)
jne 0x14497
cmpl $0x0, -0x3c(%rbp)
jne 0x14487
xorl %eax, %eax
movl %eax, %esi
xorl %edx, %edx
movzbl -0x1b(%rbp), %edi
callq 0x11750
movl %eax, -0x4(%rbp)
jmp 0x14550
movl -0x3c(%rbp), %edi
leaq -0x28(%rbp), %rsi
leaq -0x3c(%rbp), %rdx
callq 0x135b0
cmpq $0x0, -0x30(%rbp)
jne 0x144cb
cmpl $0x0, -0x40(%rbp)
jne 0x144bb
xorl %eax, %eax
movl %eax, %esi
xorl %edx, %edx
movzbl -0x1b(%rbp), %edi
callq 0x11750
movl %eax, -0x4(%rbp)
jmp 0x14550
movl -0x40(%rbp), %edi
leaq -0x30(%rbp), %rsi
leaq -0x40(%rbp), %rdx
callq 0x135b0
movq -0x28(%rbp), %rax
addq -0x30(%rbp), %rax
subq $0x7f, %rax
movq %rax, -0x38(%rbp)
movl -0x3c(%rbp), %eax
orl $0x800000, %eax         # imm = 0x800000
shll $0x7, %eax
movl %eax, -0x3c(%rbp)
movl -0x40(%rbp), %eax
orl $0x800000, %eax         # imm = 0x800000
shll $0x8, %eax
movl %eax, -0x40(%rbp)
movl -0x3c(%rbp), %eax
movl %eax, %edi
movl -0x40(%rbp), %eax
imulq %rax, %rdi
movl $0x20, %esi
leaq -0x48(%rbp), %rdx
callq 0x11c20
movq -0x48(%rbp), %rax
movl %eax, -0x4c(%rbp)
movl -0x4c(%rbp), %ecx
shll %ecx
xorl %eax, %eax
cmpl %ecx, %eax
jg 0x14537
movl -0x4c(%rbp), %eax
shll %eax
movl %eax, -0x4c(%rbp)
movq -0x38(%rbp), %rax
addq $-0x1, %rax
movq %rax, -0x38(%rbp)
movb -0x1b(%rbp), %al
movq -0x38(%rbp), %rsi
movl -0x4c(%rbp), %edx
movq -0x18(%rbp), %rcx
movzbl %al, %edi
callq 0x11cb0
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x50, %rsp
popq %rbp
retq
nopl (%rax)