//
// sub_1003B2E40 from 0x1003b2e40 to 0x1003b2f10 (208 bytes)
//
// 1 xrefs:
// > cocos2d::CCDirector::setProjection @ 0x10017554c
//
// 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_1003B2E40(__int64 a1, float a2, float a3, float a4, float a5)
{
float v9; // s11
float v10; // s0
__int64 result; // x0
float v12; // s13
float v13; // s0
v9 = sub_1001CBD74(a2 * 0.5);
v10 = sinf(v9);
result = 0;
if ( a3 != 0.0 )
{
v12 = a5 - a4;
if ( (float)(a5 - a4) != 0.0 && v10 != 0.0 )
{
v13 = cosf(v9) / v10;
*(_OWORD *)a1 = 0u;
*(_OWORD *)(a1 + 16) = 0u;
*(_OWORD *)(a1 + 32) = 0u;
*(_OWORD *)(a1 + 48) = 0u;
*(float *)a1 = v13 / a3;
*(float *)(a1 + 20) = v13;
*(float *)(a1 + 40) = (float)-(float)(a4 + a5) / v12;
*(_DWORD *)(a1 + 44) = -1082130432;
*(float *)(a1 + 56) = (float)((float)(a4 * -2.0) * a5) / v12;
*(_DWORD *)(a1 + 60) = 0;
return a1;
}
}
return result;
}