//
// LevelEditorLayer::addTouchPoint from 0x66e7b0 to 0x66e804 (84 bytes)
//
// 3 xrefs:
// > LevelEditorLayer::didRotateGameplay @ 0x66e854
// > LevelEditorLayer::postUpdate @ 0x66ed18
// > ??> @ 0x4fa58
//
// 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 LevelEditorLayer::addTouchPoint(LevelEditorLayer *a1, cocos2d::CCPoint a2)
{
const cocos2d::CCPoint *v2; // x1
float *v3; // x20
std::vector *p_m_touchPoints; // x19
cocos2d::CCPoint *m_finish; // x0
v3 = &a1->m_varianceValues.__elems_[1975];
p_m_touchPoints = &a1->m_touchPoints;
m_finish = a1->m_touchPoints.m_finish;
if ( m_finish == p_m_touchPoints->m_reserveEnd )
{
std::vector::_M_emplace_back_aux((__int64)p_m_touchPoints, v2);
}
else
{
if ( m_finish )
{
cocos2d::CCPoint::CCPoint(m_finish, v2);
m_finish = p_m_touchPoints->m_finish;
}
*((_QWORD *)v3 + 297) = m_finish + 1;
}
}