//
// sub_C4100 from 0xc4100 to 0xc4188 (136 bytes)
//
// 2 xrefs:
// > sub_C3BD4 @ 0xc3ccc
// > sub_C4404 @ 0xc44c4
//
// 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_C4100(__int64 a1, __int64 a2)
{
float v2; // s0
float v3; // s1
float v5; // s8
float v6; // s0
v2 = *(float *)(a2 + 20);
v3 = *(float *)&xmmword_1555F0;
if ( v2 < *(float *)&xmmword_1555F0 || (v3 = *((float *)&xmmword_1555F0 + 1), v2 > *((float *)&xmmword_1555F0 + 1)) )
{
v2 = v3;
*(float *)(a2 + 20) = v3;
}
*(float *)(a1 + 2052) = v2;
v5 = *(float *)(a2 + 20) * 0.007854;
*(float *)(a1 + 1208) = tanf(v5);
v6 = cosf(v5);
*(float *)(a1 + 1268) = __powisf2(*(unsigned int *)(a1 + 2028), v6);
return 0;
}