//
// cocos2d::CCCamera::locate from 0x1800bc290 to 0x1800bc342 (178 bytes)
//
// 5 xrefs:
// > cocos2d::CCNode::transform @ 0x180005369
// > cocos2d::CCNode::transform @ 0x180005387
// > cocos2d::CCGridBase::afterDraw @ 0x18002263b
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b903c
//
// 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
//
void __fastcall cocos2d::CCCamera::locate(cocos2d::CCCamera *this)
{
kmMat4 *p_m_lookupMatrix; // rdi
float v3[4]; // [rsp+20h] [rbp-48h] BYREF
float v4[4]; // [rsp+30h] [rbp-38h] BYREF
float v5[4]; // [rsp+40h] [rbp-28h] BYREF
if ( this->m_bDirty )
{
kmVec3Fill(v5, this->m_fEyeX, this->m_fEyeY, this->m_fEyeZ);
kmVec3Fill(v4, this->m_fCenterX, this->m_fCenterY, this->m_fCenterZ);
kmVec3Fill(v3, this->m_fUpX, this->m_fUpY, this->m_fUpZ);
p_m_lookupMatrix = &this->m_lookupMatrix;
kmMat4LookAt((__int64)&this->m_lookupMatrix, v5, (__int64)v4, (__int64)v3);
this->m_bDirty = 0;
}
else
{
p_m_lookupMatrix = &this->m_lookupMatrix;
}
kmGLMultMatrix(p_m_lookupMatrix->mat);
}