//
// kmVec3TransformCoord from 0x5ca1d4 to 0x5ca240 (108 bytes)
//
// 2 xrefs:
// > cocos2d::CCDirector::convertToGL @ 0x5c32ec
// > cocos2d::CCDirector::convertToUI @ 0x5c3372
//
// 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
//
float *__fastcall kmVec3TransformCoord(float *a1, _DWORD *a2, int a3)
{
float v5; // s14
float v7[3]; // [sp+Ch] [bp-28h] BYREF
float v8; // [sp+18h] [bp-1Ch]
_BYTE v9[16]; // [sp+1Ch] [bp-18h] BYREF
kmVec4Fill(v9, *a2, a2[1], a2[2], 1065353216);
kmVec4Transform(v7, v9, a3);
v5 = v8;
*a1 = v7[0] / v8;
a1[1] = v7[1] / v5;
a1[2] = v7[2] / v5;
return a1;
}