//
// LevelEditorLayer::findStartPosObject from 0x4622ac to 0x462302 (86 bytes)
//
// 1 xrefs:
// > LevelEditorLayer::onPlaytest @ 0x468342
//
// 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:53 +0000
//
int __fastcall LevelEditorLayer::findStartPosObject(LevelEditorLayer *this)
{
cocos2d::CCArray *v2; // r0
cocos2d::CCObject *v3; // r1
int v4; // r3
cocos2d::CCArray *v5; // r6
_DWORD *v7; // r2
cocos2d::CCObject **v8; // r5
cocos2d::CCObject **v9; // r4
cocos2d::CCObject *v10; // t1
v2 = (cocos2d::CCArray *)cocos2d::CCArray::create(this);
v4 = *((_DWORD *)this + 522);
v5 = v2;
if ( v4 )
{
v7 = *(_DWORD **)(v4 + 52);
if ( *v7 )
{
v8 = (cocos2d::CCObject **)v7[3];
v9 = &v8[*v7] + 0x3FFFFFFF;
while ( v8 <= v9 )
{
v10 = *v8++;
v3 = v10;
if ( !v10 )
break;
if ( *((_DWORD *)v3 + 223) == 31 && !*(_BYTE *)(*((_DWORD *)v3 + 412) + 384) )
cocos2d::CCArray::addObject(v5, v3);
}
}
}
return GJBaseGameLayer::findStartPosWinnerInArray(v5, v3);
}