//
// LevelEditorLayer::addObjectsAtPosition from 0x78ae10 to 0x78af48 (312 bytes)
//
// 1 xrefs:
// > ??> @ 0xcf520
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 12:53:26 +0000
//
__int64 __fastcall LevelEditorLayer::addObjectsAtPosition(
float **a1,
const cocos2d::CCPoint *a2,
cocos2d::CCArray *a3,
cocos2d::CCArray *a4)
{
unsigned int v6; // w19
_BYTE *v9; // x23
GameObject *v10; // x20
_BYTE v12[16]; // [xsp+68h] [xbp+68h] BYREF
v6 = 0;
v9 = (char *)a1 + 14245;
while ( v6 < (unsigned int)cocos2d::CCArray::count(a3) )
{
v10 = (GameObject *)cocos2d::CCArray::objectAtIndex(a3, v6);
if ( LevelEditorLayer::validGroup((LevelEditorLayer *)a1, v10, 1) )
{
LevelEditorLayer::getObjectRect((LevelEditorLayer *)a1, v10, 0, 0, (cocos2d::CCRect *)v12);
if ( !*v9 )
{
if ( (unsigned __int8)cocos2d::CCRect::containsPoint((cocos2d::CCRect *)v12, a2) )
{
LABEL_8:
++v6;
cocos2d::CCArray::addObject(a4, v10);
continue;
}
if ( !*v9 )
{
++v6;
continue;
}
}
if ( OBB2D::overlaps(a1[1777], a1[260]) )
goto LABEL_8;
}
++v6;
}
return _stack_chk_guard;
}