//
// LevelEditorLayer::findStartPosObject from 0x78d200 to 0x78d294 (148 bytes)
//
// 2 xrefs:
// > LevelEditorLayer::onPlaytest @ 0x79650c
// > ??> @ 0x445a8
//
// 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:27 +0000
//
__int64 __fastcall LevelEditorLayer::findStartPosObject(LevelEditorLayer *this)
{
unsigned int *v2; // x1
cocos2d::CCArray *v3; // x21
__int64 v4; // x0
unsigned int **v5; // x19
unsigned int **i; // x20
v3 = (cocos2d::CCArray *)cocos2d::CCArray::create(this);
v4 = *((_QWORD *)this + 410);
if ( v4 )
{
v2 = *(unsigned int **)(v4 + 56);
if ( *v2 )
{
v5 = *((unsigned int ***)v2 + 2);
for ( i = &v5[*v2 - 1]; i >= v5; ++v5 )
{
v2 = *v5;
if ( !*v5 )
break;
if ( v2[257] == 31 && !*(_BYTE *)(*((_QWORD *)v2 + 230) + 464LL) )
cocos2d::CCArray::addObject(v3, (cocos2d::CCObject *)v2);
}
}
}
return GJBaseGameLayer::findStartPosWinnerInArray(v3, (cocos2d::CCArray *)v2);
}