//
// LevelEditorLayer::addPlayer2Point from 0x46ac70 to 0x46acdc (108 bytes)
//
// 1 xrefs:
// > LevelEditorLayer::postUpdate @ 0x46ae7c
//
// 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
//
cocos2d::CCPoint *__fastcall LevelEditorLayer::addPlayer2Point(_DWORD *a1, const cocos2d::CCPoint *a2, int a3)
{
char ***v5; // r0
char **v6; // r3
int v7; // r4
cocos2d::CCPoint *result; // r0
v5 = (char ***)(a1 + 2988);
if ( a3 || (char **)a1[2988] == v5[1] )
{
v6 = v5[1];
if ( (unsigned int)v6 >= a1[2990] )
{
std::vector>::__emplace_back_slow_path<>(v5);
}
else
{
if ( v6 )
{
*v6 = nullptr;
v6[1] = nullptr;
v6[2] = nullptr;
}
v5[1] += 3;
}
}
v7 = a1[2989];
result = *(cocos2d::CCPoint **)(v7 - 8);
if ( result == *(cocos2d::CCPoint **)(v7 - 4) )
return (cocos2d::CCPoint *)std::vector::__push_back_slow_path(
v7 - 12,
a2);
if ( result )
result = (cocos2d::CCPoint *)cocos2d::CCPoint::CCPoint(result, a2);
*(_DWORD *)(v7 - 8) += 8;
return result;
}