//
// GJBaseGameLayer::processStartPosObjects from 0x100100c10 to 0x100100d13 (259 bytes)
//
// 1 xrefs:
// > PlayLayer::setupHasCompleted @ 0x10007b26b
//
// 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:21:20 +0000
//
__int64 __fastcall GJBaseGameLayer::processStartPosObjects(__int64 a1)
{
__int64 v2; // r14
int v3; // r15d
__int64 v4; // r12
__int64 v5; // rax
__int64 result; // rax
int v8; // r14d
__int64 v9; // r14
__int64 v10; // rdi
if ( (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 12440)) >= 2 )
{
v2 = sub_100100AD0(*(_QWORD *)(a1 + 12440));
sub_1007FF190(*(_QWORD *)(a1 + 12440));
v3 = sub_1007FEF90(v2) - 1;
if ( v3 >= 0 )
{
do
{
v4 = *(_QWORD *)(a1 + 12440);
v5 = sub_1007FEFE0(v2, (unsigned int)v3);
sub_1007FEBF0(v4, v5);
}
while ( v3-- != 0 );
}
}
result = *(_QWORD *)(a1 + 1936);
if ( *(_DWORD *)(result + 1140) == 2 )
{
result = sub_1007FEF90(*(_QWORD *)(a1 + 12440));
v8 = result - 1;
while ( v8 >= 0 )
{
result = sub_1007FEFE0(*(_QWORD *)(a1 + 12440), (unsigned int)v8--);
if ( !*(_BYTE *)(*(_QWORD *)(result + 1840) + 464LL) )
{
if ( *(_QWORD *)(a1 + 12432) != result )
{
v9 = result;
result = cocos2d::CCObject::retain(result);
v10 = *(_QWORD *)(a1 + 12432);
if ( v10 )
result = cocos2d::CCObject::release(v10);
*(_QWORD *)(a1 + 12432) = v9;
*(_BYTE *)(a1 + 12616) = 1;
}
return result;
}
}
}
return result;
}