//
// __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 (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 10:54:54 +0000
//
__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;
}