//
// __common_ssin_cout_rare from 0x180123e50 to 0x180123ec0 (112 bytes)
//
// 3 xrefs:
// > _sse2_sinf4 @ 0x180120ff4
// > _sse4_sinf4 @ 0x180121934
// > ??> @ 0x180202624
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall _common_ssin_cout_rare(__int64 a1, float *a2)
{
float v2; // xmm1_4
__int64 result; // rax
float v4; // xmm1_4
float v5; // [rsp+20h] [rbp-8h]
v5 = *(float *)a1;
v2 = *(float *)a1;
if ( (*(_WORD *)(a1 + 2) & 0x7F80) != 0x7F80 )
return 0;
HIBYTE(v5) = HIBYTE(*(_DWORD *)a1) & 0x7F;
if ( v5 == INFINITY )
{
result = 1;
v4 = v2 * 0.0;
}
else
{
v4 = v2 * *(float *)a1;
result = 0;
}
*a2 = v4;
return result;
}