//
// cocos2d::CCOrbitCamera::update from 0xab44f4 to 0xab45bc (200 bytes)
//
// 2 xrefs:
// > ??> @ 0x7f008
// > ??> @ 0x11fb5b8
//
// 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 cocos2d::CCOrbitCamera::update(cocos2d::CCOrbitCamera *a1, float a2)
{
float v4; // s8
float ZEye; // s0
float v6; // s10
float v7; // s8
float v8; // s11
float v9; // s9
float v10; // s3
float v11; // s0
float v12; // s11
cocos2d::CCCamera *v13; // x0
float v14; // [xsp+40h] [xbp+40h]
float v15; // [xsp+50h] [xbp+50h]
v4 = *(float *)&a1[1].m_uIndexInArray + (float)(*(float *)&a1[1].m_uUnknown * a2);
ZEye = cocos2d::CCCamera::getZEye();
v6 = *(float *)&a1[1].m_pOriginalTarget + (float)(*((float *)&a1[1].m_pOriginalTarget + 1) * a2);
v7 = v4 * ZEye;
v8 = *(float *)&a1[1].m_pTarget + (float)(*((float *)&a1[1].m_pTarget + 1) * a2);
v9 = sinf(v6);
v10 = v9 * cosf(v8);
v11 = v8;
v12 = *((float *)&a1->m_bFirstTick + 1) + (float)(v10 * v7);
v14 = *(float *)&a1[1].__vftable + (float)((float)(v9 * sinf(v11)) * v7);
v15 = *((float *)&a1[1].__vftable + 1) + (float)(cosf(v6) * v7);
v13 = a1->m_pTarget->getCamera(a1->m_pTarget);
cocos2d::CCCamera::setEyeXYZ(v13, v12, v14, v15);
}