//
// LevelEditorLayer::findStartPosObject from 0x1000c5610 to 0x1000c5696 (134 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: pc, 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:20:35 +0000
//
__int64 __fastcall LevelEditorLayer::findStartPosObject(__int64 a1)
{
__int64 v1; // rbx
__int64 v2; // rax
unsigned int *v3; // rax
__int64 *v4; // r14
unsigned __int64 v5; // r15
__int64 v6; // rsi
v1 = sub_1007FE900(a1);
v2 = *(_QWORD *)(a1 + 3280);
if ( v2 )
{
v3 = *(unsigned int **)(v2 + 56);
if ( *v3 )
{
v4 = *((__int64 **)v3 + 2);
v5 = (unsigned __int64)&v4[*v3 - 1];
do
{
v6 = *v4;
if ( !*v4 )
break;
if ( *(_DWORD *)(v6 + 1028) == 31 && !*(_BYTE *)(*(_QWORD *)(v6 + 1840) + 464LL) )
sub_1007FEBF0(v1, v6);
++v4;
}
while ( (unsigned __int64)v4 <= v5 );
}
}
return GJBaseGameLayer::findStartPosWinnerInArray(v1);
}