//
// LevelEditorLayer::addObjectsAtPosition from 0x460b24 to 0x460bca (166 bytes)
//
// 0 xrefs:
//
// 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:48:52 +0000
//
unsigned int __fastcall LevelEditorLayer::addObjectsAtPosition(
float **a1,
const cocos2d::CCPoint *a2,
cocos2d::CCArray *a3,
cocos2d::CCArray *a4)
{
_BYTE *v6; // r7
float **v7; // r8
unsigned int i; // r6
unsigned int result; // r0
cocos2d::CCObject *v12; // r5
_BYTE v13[16]; // [sp+14h] [bp-18h] BYREF
v6 = (char *)a1 + 11853;
v7 = a1 + 2958;
for ( i = 0; ; ++i )
{
result = cocos2d::CCArray::count(a3);
if ( i >= result )
break;
v12 = (cocos2d::CCObject *)cocos2d::CCArray::objectAtIndex(a3, i);
if ( LevelEditorLayer::validGroup((LevelEditorLayer *)a1, v12, 1) )
{
if ( (LevelEditorLayer::getObjectRect((LevelEditorLayer *)v13, (GameObject *)a1, v12, 0, 0), !*v6)
&& cocos2d::CCRect::containsPoint((cocos2d::CCRect *)v13, a2)
|| *v6 && OBB2D::overlaps(*v7, a1[372]) )
{
cocos2d::CCArray::addObject(a4, v12);
}
}
}
return result;
}