//
// LevelEditorLayer::addTouchPoint from 0x46ac02 to 0x46ac30 (46 bytes)
//
// 2 xrefs:
// > LevelEditorLayer::didRotateGameplay @ 0x46ac56
// > LevelEditorLayer::postUpdate @ 0x46adaa
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:49:00 +0000
//
int __fastcall LevelEditorLayer::addTouchPoint(int result, const cocos2d::CCPoint *a2)
{
int v2; // r4
int v3; // r3
v2 = result + 11964;
v3 = *(_DWORD *)(result + 11968);
if ( v3 == *(_DWORD *)(result + 11972) )
return std::vector::__push_back_slow_path(result + 11964, a2);
if ( v3 )
result = cocos2d::CCPoint::CCPoint(*(cocos2d::CCPoint **)(result + 11968), a2);
*(_DWORD *)(v2 + 4) += 8;
return result;
}