//
// sub_10048CC78 from 0x10048cc78 to 0x10048cff4 (892 bytes)
//
// 1 xrefs:
// > sub_10048D3C0 @ 0x10048d4f4
//
// 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 sub_10048CC78(__int64 a1, int a2)
{
int v2; // w23
int v3; // w24
unsigned int v4; // w21
char v5; // w25
int v6; // w25
int v7; // w21
if ( a2 >= 1 )
{
v2 = 0;
v3 = a2;
v4 = 0 / ((1 << a2) / 2);
do
{
v5 = v4;
v4 >>= 1;
v6 = v5 & 1 | (2 * v2);
v2 = v6;
--v3;
}
while ( v3 );
v7 = vcvts_n_s32_f32((float)(1.0 / (float)(1 << a2)) * (float)v6, 0xFu);
if ( v7 < 0 )
v7 = -v7;
__asm { BR X24 }
}
return 0;
}