//
// sub_C4100 from 0xc4100 to 0xc4188 (136 bytes)
//
// 2 xrefs:
// > sub_C3BD4 @ 0xc3ccc
// > sub_C4404 @ 0xc44c4
//
// This function is hookable on this platform (idp: arm, 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 12:14:45 +0000
//
__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;
}